.dispatch-card{background:#fff;border:1px solid #dce5e9;border-radius:15px;padding:24px;margin:16px 0;box-shadow:0 3px 12px #16344808}.dispatch-top,.dispatch-meta,.dispatch-buttons{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.dispatch-top{justify-content:space-between}.dispatch-top>strong{font-size:22px}.dispatch-card h2{font-size:20px;margin:16px 0 8px}.dispatch-card ul{padding-left:22px;line-height:1.8}.dispatch-meta{padding:14px 0;color:#4d626d}.dispatch-buttons{margin-top:10px}.dispatch-card button,.commerce-form button,.cart-panel button,.customer-site button{padding:12px 18px;border:1px solid #cfddad;border-radius:8px;background:#e6f6bd;color:#183241;font-weight:700;cursor:pointer}.dispatch-card button:disabled{opacity:.5}.commerce-form{display:grid;gap:14px;max-width:580px;background:#fff;padding:24px;margin:20px 0;border:1px solid #dce5e9;border-radius:14px}.commerce-form label{display:grid;gap:7px;font-weight:600;color:#405762}.commerce-form input,.commerce-form select,.commerce-form textarea{padding:12px;border:1px solid #b8c9d3;border-radius:7px;font:inherit;width:100%;box-sizing:border-box}.commerce-form input[type=checkbox]{width:auto;justify-self:start}.commerce-form fieldset{border:0;padding:0;display:grid;gap:12px}.commerce-form fieldset[hidden]{display:none}.commerce-dialog{border:0;border-radius:16px;max-width:620px;width:90%;max-height:90vh;padding:0}.commerce-dialog::backdrop{background:#102a3d99}.commerce-dialog .commerce-form{border:0;margin:0}.customer-site{margin:0;background:#f3f6f3;color:#183241;font-family:system-ui,sans-serif}.customer-main{max-width:1180px;margin:auto;padding:30px 20px}.customer-main header{padding:25px 0}.customer-main header h1{font-size:38px;margin-bottom:10px}.customer-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:30px}.cart-panel{background:#fff;border-radius:18px;padding:24px}.cart-panel .commerce-form{padding:0;border:0}.address-suggestions{max-height:220px;overflow:auto;border:1px solid #c9d6df;border-radius:10px;background:white}.address-suggestions button{display:block;width:100%;border:0;border-bottom:1px solid #dde5ea;text-align:left;background:white;padding:12px;cursor:pointer}.address-suggestions small{display:block;color:#647a8a}.address-suggestions button:hover{background:#f0f8e5}[hidden]{display:none!important}.rider-summary{margin-top:30px;border-top:1px solid #dde5ea;padding-top:20px}.rider-portal-card{box-sizing:border-box;max-width:600px;width:calc(100% - 24px);padding:22px}.rider-order button{min-height:52px;font-size:17px}.invite-box a{display:inline-block;text-decoration:none}.orders-table{overflow:visible}.dispatch-card .order-status{white-space:normal}#roleGate{overflow:auto;align-items:start}#roleGate .role-card{margin:auto}
@media(max-width:720px){.customer-layout{grid-template-columns:1fr}.dispatch-card{padding:18px}.dispatch-top>strong{font-size:18px}.dispatch-buttons button{width:100%}.customer-main header h1{font-size:30px}.main-content{margin-left:0}.commerce-form{padding:18px}}
@media print{body>*{display:none!important}body>#printReceipt{display:block!important;color:#000;font:16px monospace;width:72mm;margin:0}#printReceipt h1{font-size:20px}#printReceipt h2{font-size:18px}#printReceipt ul{padding-left:18px}@page{margin:5mm}}
.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dispatch-card .order-status,.orders-table .order-status{padding:9px 13px;border:2px solid currentColor;border-radius:9px;font-size:14px!important;font-weight:900;letter-spacing:.015em;line-height:1.2;box-shadow:0 4px 12px #102b3a14}.status-pill--orange{color:#a84a00;background:#fff0df}.status-pill--blue{color:#075f9f;background:#dcefff}.status-pill--yellow{color:#795500;background:#ffedaa}.status-pill--red{color:#a7192b;background:#ffe0e4}.status-pill--green{color:#086b43;background:#d9f6e8}.status-pill--gray{color:#405762;background:#edf2f4}@media(max-width:620px){.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dispatch-card .order-status,.orders-table .order-status{font-size:13px!important;padding:8px 10px}}
.customer-totals{display:grid;gap:5px;padding:14px 0;border-top:1px solid #e1e9e4;border-bottom:1px solid #e1e9e4}.customer-totals strong{font-size:21px}.coupon-discount{color:#087348;font-weight:850}.coupon-entry{display:grid;gap:10px;padding:16px;border:1px solid #cfe4d7;border-radius:13px;background:linear-gradient(135deg,#f3fff7,#f7fbf8)}.coupon-entry>div:first-child{display:grid;gap:2px}.coupon-entry small{color:#60776a}.coupon-entry__row{display:grid;grid-template-columns:1fr auto;gap:8px}.coupon-entry__row input{text-transform:uppercase}.coupon-entry__row button{background:#173f34;color:#fff;border-color:#173f34}.coupon-entry p{min-height:20px;margin:0;color:#087348;font-weight:750}
.coupon-order-discount{color:#087348;font-weight:850}
.dispatch-card .dispatch-schedule{display:grid;gap:7px;min-width:230px;margin-left:auto}.dispatch-card .dispatch-schedule-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid;border-radius:10px;padding:9px 13px}.dispatch-card .dispatch-schedule-row>span{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.dispatch-card .dispatch-schedule-row>strong{font-size:24px;line-height:1.2;font-weight:900;font-variant-numeric:tabular-nums}.dispatch-card .dispatch-schedule-row--prep{background:#fff5e8;border-color:#f3d1a2;color:#97510c}.dispatch-card .dispatch-schedule-row--due{background:#eaf4ff;border-color:#bad8ef;color:#15598a}.dispatch-card .dispatch-schedule>small{font-size:12px;text-align:right;font-weight:750;color:#566876}.dispatch-card .dispatch-schedule>.dispatch-schedule-late{color:#b42336}@media(max-width:540px){.dispatch-card .dispatch-schedule{width:100%;min-width:0;margin-left:0}}
 .checkout-summary{display:grid;gap:7px;padding:16px;border:1px solid #cfe4d7;border-radius:13px;background:linear-gradient(135deg,#f4fff7,#edf8f0);color:#173f34}.checkout-summary small{font-size:11px;font-weight:900;letter-spacing:.08em;color:#547064}.checkout-summary span{display:flex;justify-content:space-between;gap:12px;font-size:14px}.checkout-summary strong{display:flex;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid #cfe1d5;font-size:20px}.checkout-summary .checkout-summary-discount{color:#087348;font-weight:850}
 .customer-thankyou{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,#1b7381,#0d3041 62%);font-family:"DM Sans",system-ui,sans-serif;color:#173543}.customer-thankyou>section{width:min(100%,560px);padding:42px 34px;border-radius:26px;background:#fff;text-align:center;box-shadow:0 28px 80px #031b2766}.thankyou-mark{display:grid;place-items:center;width:74px;height:74px;margin:0 auto 18px;border-radius:50%;background:#bdf51d;color:#214000;font-size:38px;font-weight:950;box-shadow:0 10px 24px #9ecb1748}.customer-thankyou>section>small{color:#147d58;font-weight:950;letter-spacing:.12em}.customer-thankyou h1{margin:8px 0;font-size:34px;color:#143846}.customer-thankyou p{margin:0;color:#60747c;line-height:1.55}.thankyou-arrival{display:grid;gap:6px;margin:25px 0 14px;padding:20px;border:1px solid #bfe1d5;border-radius:17px;background:linear-gradient(135deg,#effbf4,#f8fffb)}.thankyou-arrival span{font-size:11px;font-weight:950;letter-spacing:.1em;color:#287053}.thankyou-arrival strong{font-size:25px;color:#11583e}.thankyou-arrival small{color:#668078}.thankyou-order{display:grid;grid-template-columns:1fr auto;gap:10px;margin:16px 0;padding:16px;border-top:1px solid #e1e9e5;border-bottom:1px solid #e1e9e5;text-align:left}.thankyou-order span{color:#70818a}.thankyou-order b{color:#163f4d}.thankyou-review{margin:22px 0 12px!important}.thankyou-review-button,.thankyou-back{display:block;width:100%;box-sizing:border-box;margin-top:10px;padding:14px 18px;border-radius:12px;font:inherit;font-weight:900;text-decoration:none;cursor:pointer}.thankyou-review-button{background:#153f51;color:#fff}.thankyou-back{border:1px solid #cbdadd;background:#fff;color:#244b59}@media(max-width:520px){.customer-thankyou{padding:14px}.customer-thankyou>section{padding:32px 20px}.customer-thankyou h1{font-size:29px}}
 .auto-assignment-panel{margin:14px 0;padding:15px 18px;border:1px solid #b9dfcf;border-radius:14px;background:#f1fbf6}.auto-assignment-panel label{display:flex;gap:12px;align-items:flex-start;cursor:pointer}.auto-assignment-panel input{width:19px;height:19px;margin-top:2px;accent-color:#168457}.auto-assignment-panel b,.auto-assignment-panel small{display:block}.auto-assignment-panel small{margin-top:4px;color:#587269;line-height:1.4}
.customer-thankyou{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at top,#eaffbf,#eef7f2 48%,#dfecef);font-family:system-ui,sans-serif}.customer-thankyou section{width:min(600px,100%);box-sizing:border-box;padding:44px 32px;text-align:center;background:#fff;border:1px solid #d8e5df;border-radius:28px;box-shadow:0 28px 70px #153d5230}.thankyou-mark{display:grid;place-items:center;width:76px;height:76px;margin:0 auto 16px;border-radius:50%;background:#168557;color:#fff;font-size:42px;font-weight:900;box-shadow:0 10px 24px #16855745}.customer-thankyou small{font-weight:900;letter-spacing:.09em;color:#168557}.customer-thankyou h1{margin:8px 0 12px;font-size:34px;color:#153d52}.customer-thankyou p{line-height:1.55;color:#526b73}.thankyou-arrival{margin:26px 0;padding:20px;border-radius:16px;background:#f3fbdf}.thankyou-arrival span,.thankyou-arrival small{display:block}.thankyou-arrival strong{display:block;margin:8px 0;font-size:22px;color:#153d52}.thankyou-order{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:18px;border-top:1px solid #e3ece8;border-bottom:1px solid #e3ece8}.thankyou-order span{font-size:13px;color:#6e8184}.thankyou-order b{font-size:19px;color:#153d52}.thankyou-review-button,.thankyou-back{display:block;width:100%;box-sizing:border-box;margin-top:14px;padding:14px;border:0;border-radius:12px;font:inherit;font-weight:900;text-decoration:none}.thankyou-review-button{background:#168557;color:#fff}.thankyou-back{background:#eef3f1;color:#254953;cursor:pointer}

/* Centrale operativa: le nuove comande restano al centro, la cucina è compatta. */
.delivery-board{display:grid;grid-template-columns:minmax(245px,.72fr) minmax(0,1.65fr);gap:20px;align-items:start}.delivery-board-left{display:grid;gap:16px;position:sticky;top:16px}.delivery-board-main{display:grid;gap:20px}.delivery-board-section{border:1px solid #dce7e5;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 5px 18px #153d520b}.delivery-board-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-bottom:1px solid #e4ece9}.delivery-board-section header div{display:grid;gap:2px}.delivery-board-section header small{font-size:10px;font-weight:900;letter-spacing:.1em;color:#69817a}.delivery-board-section h2{margin:0;color:#173f34;font-size:19px}.delivery-board-section>header>b{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:999px;background:#eaf6eb;color:#087348;font-size:14px}.delivery-board-cards{padding:0 14px 14px}.delivery-board-empty{margin:0;padding:17px 4px;color:#72838a;font-size:13px}.delivery-board-section--preparing>header{background:#fff6e8}.delivery-board-section--preparing>header>b{background:#f7ae3f;color:#573300}.delivery-board-section--kitchen>header{background:#eef6ff}.delivery-board-section--kitchen>header>b{background:#b9ddfa;color:#135a88}.delivery-board-section--future>header{background:linear-gradient(90deg,#eaffbf,#f6ffe8)}.delivery-board-section--future>header>b{background:#bdf51d;color:#294400}.delivery-board-section--live>header{background:#eefafa}.delivery-board-section--completed>header{background:#f4f6f6}.delivery-board-section--completed{opacity:.9}.delivery-board-left .dispatch-card{padding:14px;margin:12px 0;box-shadow:none;border-radius:12px}.delivery-board-left .dispatch-card h2{font-size:15px;margin:10px 0 5px}.delivery-board-left .dispatch-card ul,.delivery-board-left .dispatch-card>p:not(:first-of-type),.delivery-board-left .dispatch-schedule,.delivery-board-left .dispatch-meta span:not(:last-of-type),.delivery-board-left .dispatch-buttons [data-print-order]{display:none}.delivery-board-left .dispatch-meta{padding:8px 0 0;font-size:12px}.delivery-board-left .dispatch-buttons{margin-top:8px}.delivery-board-left .dispatch-buttons button{width:100%;padding:10px;font-size:13px}.delivery-board--compact{grid-template-columns:210px minmax(0,1fr);gap:13px}.delivery-board--compact .delivery-board-section>header{padding:11px 13px}.delivery-board--compact .delivery-board-section h2{font-size:15px}.delivery-board--compact .delivery-board-cards{padding:0 10px 10px}.delivery-board--compact .delivery-board-main{gap:13px}.delivery-board--compact .dispatch-card{padding:12px;margin:10px 0}.delivery-board--compact .dispatch-card h2{font-size:15px;margin:8px 0 4px}.delivery-board--compact .dispatch-card ul,.delivery-board--compact .dispatch-card>p:not(:first-of-type),.delivery-board--compact .dispatch-schedule,.delivery-board--compact .dispatch-meta span:not(:last-of-type),.delivery-board--compact .dispatch-buttons [data-print-order]{display:none}.delivery-board--compact .dispatch-meta{padding:7px 0 0;font-size:12px}.delivery-board--compact .dispatch-buttons{margin-top:8px}.delivery-board--compact .dispatch-buttons button{padding:9px 10px;font-size:12px}.dispatch-assigned-rider{color:#126a4b;font-weight:900}@media(max-width:900px){.delivery-board,.delivery-board--compact{grid-template-columns:1fr}.delivery-board-left{position:static;grid-template-columns:1fr 1fr}.delivery-board--compact .delivery-board-left{grid-template-columns:1fr}.delivery-board-left .dispatch-card ul,.delivery-board-left .dispatch-card>p:not(:first-of-type),.delivery-board-left .dispatch-schedule,.delivery-board-left .dispatch-meta span:not(:last-of-type),.delivery-board-left .dispatch-buttons [data-print-order]{display:block}}@media(max-width:600px){.delivery-board-left{grid-template-columns:1fr}.delivery-board-section>header{padding:13px}.delivery-board-cards{padding:0 10px 10px}}
.orders-table .delivery-board{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.delivery-board-wide{grid-column:1/-1}
.delivery-board-future,.delivery-board-kitchen{min-width:0}
.delivery-board .delivery-board-section--future{background:#edf5ff;border-color:#b8d5f3}
.delivery-board .delivery-board-section--future>header{background:#d9eaff}
.delivery-board .delivery-board-section--preparing{background:#fff1e8;border-color:#efb890}
.delivery-board .delivery-board-section--preparing>header{background:#ffdfc8}
.delivery-board .delivery-board-section--completed{background:#ecf9f0;border-color:#b8dfc5;opacity:1}
.delivery-board .delivery-board-section--completed>header{background:#d6f0df}
.delivery-board .dispatch-card{margin:12px 0 0;padding:16px;min-width:0}
.delivery-board .dispatch-top{gap:8px}
.delivery-board .dispatch-card h2{font-size:17px;overflow-wrap:anywhere}
.delivery-board .dispatch-schedule{min-width:0;width:100%;margin:0}
.delivery-board .dispatch-buttons{gap:8px}
.delivery-board .dispatch-buttons button{padding:10px 12px;white-space:normal;height:auto}
.live-console-lower.live-console-lower--stacked{grid-template-columns:minmax(0,1fr)}
.live-console-lower--stacked>.side-panel{min-height:0}
#dashboardView #riderList{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;max-height:none;overflow:visible}
#riderList .live-rider-group{display:contents}
#riderList .live-rider-group-title{display:none}
#riderList .live-rider-overview{grid-column:1/-1}
#riderList .live-rider-card{margin:0;padding:12px;align-content:start;min-width:0}
#riderList .live-rider-main strong{font-size:14px;white-space:normal;overflow-wrap:anywhere}
#riderList .live-rider-return{padding:9px}
#riderList .live-rider-return b{font-size:16px}
@media(max-width:650px){.orders-table .delivery-board{grid-template-columns:minmax(0,1fr)}}
.delivery-board .delivery-board-section>header>b{min-width:56px;height:56px;font-size:30px;font-weight:950;border-radius:16px;box-shadow:0 4px 10px #18374816}
.delivery-board .delivery-board-section--future>header>b{background:#1767b0;color:white}
.delivery-board .delivery-board-section--preparing>header>b{background:#c85b24;color:white}
.delivery-board .delivery-board-section--completed>header>b{background:#188050;color:white}
#riderList .live-rider-card{position:relative;padding-top:38px}
.rider-position{position:absolute;top:8px;left:12px;background:#153e50;color:white;border-radius:8px;min-width:27px;padding:3px 7px;text-align:center;font-size:14px;font-weight:900}
.rider-queue-help{grid-column:1/-1;color:#536e7b}
.minimum-order-settings{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:18px 0;padding:22px;border:1px solid #d9e8df;border-radius:20px;background:linear-gradient(135deg,#f4fff8,#fff);box-shadow:0 10px 28px rgba(23,80,52,.08)}
.minimum-order-settings h2{margin:3px 0 5px}.minimum-order-settings p{margin:0;color:#607068}.minimum-order-settings small{font-weight:900;letter-spacing:.12em;color:#168252}.minimum-order-settings form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.minimum-order-settings label{font-weight:800}.minimum-order-settings input{display:block;min-width:150px;margin-top:6px;padding:12px;border:1px solid #b9cec1;border-radius:12px;font:inherit}.minimum-order-settings span{width:100%;font-size:.86rem;color:#607068}
.minimum-order-banner{display:inline-flex;margin:8px 0 0;padding:8px 13px;border-radius:999px;background:#ecfff3;color:#0b7544;font-weight:900;border:1px solid #bce8cd}.minimum-order-warning{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#fff4e8;color:#9b4b00;font-weight:800}
@media(max-width:720px){.minimum-order-settings{align-items:stretch;flex-direction:column}.minimum-order-settings form,.minimum-order-settings label,.minimum-order-settings input,.minimum-order-settings button{width:100%}}
.orders-panel>.panel-header{flex-wrap:wrap}.operational-guide{position:relative;margin-left:auto}.operational-guide summary{display:flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid #cfe0dc;border-radius:11px;background:#f5fbf8;color:#176346;font-size:12px;font-weight:900;cursor:pointer;list-style:none}.operational-guide summary::-webkit-details-marker{display:none}.operational-guide summary span{font-size:16px}.operational-guide[open] summary{background:#176346;color:#fff}.operational-guide-grid{position:absolute;z-index:1000;right:0;top:46px;width:min(680px,80vw);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:14px;border:1px solid #ccded8;border-radius:16px;background:#fff;box-shadow:0 18px 50px rgba(17,53,42,.2)}.operational-guide-grid>div{display:flex;gap:10px;padding:11px;border-radius:12px;background:#f6faf8}.operational-guide-grid>div:last-child{grid-column:1/-1}.operational-guide-grid b{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:50%;background:#cafa38;color:#294516}.operational-guide-grid p{display:grid;gap:3px;margin:0}.operational-guide-grid strong{font-size:12px;color:#163d32}.operational-guide-grid span{font-size:11px;line-height:1.4;color:#60736d}@media(max-width:700px){.operational-guide{width:100%;margin:0}.operational-guide summary{justify-content:center}.operational-guide-grid{position:static;width:auto;margin-top:8px;grid-template-columns:1fr}.operational-guide-grid>div:last-child{grid-column:auto}}
.dispatch-rider-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0;padding:11px 13px;border:1px solid #8fc9ae;border-radius:11px;color:#075b3b;background:linear-gradient(100deg,#e1f8ea,#f6fff9)}.dispatch-rider-banner span{font-size:9px;font-weight:950;letter-spacing:.1em}.dispatch-rider-banner strong{font-size:16px}.dispatch-rider-banner.is-waiting{color:#755106;border-color:#e4c274;background:#fff7df}.dispatch-payment-banner{display:grid;gap:3px;margin:13px 0;padding:13px 15px;border:2px solid;border-radius:12px}.dispatch-payment-banner strong{font-size:17px;line-height:1.2}.dispatch-payment-banner span{font-size:13px;font-weight:800}.dispatch-payment-banner.is-paid{color:#075f3e;border-color:#75c49d;background:#ddf8e9}.dispatch-payment-banner.is-cash,.dispatch-payment-banner.is-due{color:#8f3d00;border-color:#efa962;background:#fff0df}.dispatch-payment-banner.is-card{color:#075f99;border-color:#7fbee5;background:#e4f3ff}.delivery-board--compact .dispatch-rider-banner,.delivery-board-left .dispatch-rider-banner{display:grid;padding:9px 10px}.delivery-board--compact .dispatch-payment-banner,.delivery-board-left .dispatch-payment-banner{padding:10px 11px}.delivery-board--compact .dispatch-payment-banner strong,.delivery-board-left .dispatch-payment-banner strong{font-size:14px}
