:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#173b4b;background:#eef6f8}*{box-sizing:border-box}body{margin:0}.staff-app{min-height:100vh;padding-bottom:24px}.staff-header{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid #d7e7ed;display:flex;align-items:center;justify-content:space-between;padding:12px 20px;box-shadow:0 5px 20px #163b4b14}.brand{display:flex;gap:12px;align-items:center}.brand img{width:58px;height:48px;object-fit:contain}.brand strong,.brand span{display:block}.brand strong{font-size:15px}.brand span{font-size:13px;color:#67818b}.health{display:flex;gap:8px;flex-wrap:wrap}.pill{padding:7px 10px;border-radius:999px;background:#e8f1f4;font-size:12px;font-weight:800}.pill.ok{background:#daf4e5;color:#17623b}.pill.warn{background:#fff0c8;color:#77570a}.pill.bad{background:#ffe1df;color:#922e27}.dashboard{padding:20px;max-width:1440px;margin:auto}.toolbar{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}.eyebrow{font-size:12px;letter-spacing:.15em;font-weight:900;color:#177f98;margin:0 0 5px}.toolbar h1{margin:0;font-size:32px}.toolbar-actions{display:flex;gap:8px}button{border:0;border-radius:12px;padding:12px 15px;font-weight:800;cursor:pointer;background:#166d89;color:white}.secondary{background:#e2eef2;color:#214858}.orders-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px}.order-card{background:#fff;border-radius:18px;padding:18px;border:1px solid #d9e8ed;box-shadow:0 8px 24px #173b4b10}.order-card.new{border:3px solid #db6b26;box-shadow:0 0 0 6px #f8d9c255}.order-top{display:flex;justify-content:space-between;gap:12px}.order-top h2{margin:0;font-size:23px}.order-meta{margin:8px 0 14px;color:#506c78;font-size:14px}.coordinator{padding:10px 12px;border-radius:10px;background:#edf7f9;font-weight:800;margin-bottom:12px}.coordinator.mine{background:#daf4e5}.coordinator.other{background:#fff0c8}.items{list-style:none;padding:0;margin:0 0 14px}.items li{display:flex;justify-content:space-between;gap:10px;padding:9px 4px;border-bottom:1px solid #eef3f5}.items li.mine{font-weight:900;background:#f3fafb;border-radius:8px;padding:9px}.station-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.station-state{padding:9px;background:#f4f8fa;border-radius:9px;font-size:12px}.station-state strong{display:block}.actions{display:flex;gap:7px;flex-wrap:wrap}.actions button{flex:1;min-width:90px}.actions .done{background:#2c8a55}.actions .ready{background:#7b5bb6}.actions .print{background:#465a64}.billing{margin-top:12px;padding:10px;background:#fff8dc;border-radius:10px;font-size:13px}.empty{text-align:center;padding:70px 20px;color:#728995;background:#fff;border-radius:18px}.offline{padding:12px 15px;margin-bottom:14px;background:#ffe1df;color:#7d2d27;border-radius:12px;font-weight:700}.pair-screen{display:grid;min-height:80vh;place-items:center;padding:24px}.pair-card{width:min(520px,100%);padding:30px;background:#fff;border-radius:22px;box-shadow:0 16px 50px #173b4b1f}.pair-card h1{margin:5px 0}.pair-card label{display:block;font-weight:700;margin:16px 0}.pair-card input{display:block;width:100%;margin-top:6px;padding:14px;border:1px solid #bdd1d8;border-radius:10px;font-size:18px}.pair-card button{width:100%}.message{min-height:20px;color:#a33}.hidden{display:none!important}footer{text-align:center;color:#71858e;font-size:12px;padding:20px}@media(max-width:650px){.staff-header{padding:9px 12px}.health{justify-content:flex-end}.brand img{width:46px}.dashboard{padding:12px}.toolbar{align-items:flex-start;flex-direction:column}.orders-grid{grid-template-columns:1fr}.station-grid{grid-template-columns:1fr}.order-card{padding:14px}}

/* v2.0.9 urgent order alerts */
.alert-status{max-width:760px;margin:0 0 14px;padding:10px 13px;border-radius:11px;background:#fff2c9;color:#745400;font-size:13px;font-weight:800}
.alert-status.ok{background:#daf4e5;color:#17623b}.alert-status.bad{background:#ffe1df;color:#922e27}.alert-status.warn{background:#fff2c9;color:#745400}
.urgent-order-overlay{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:rgba(7,28,39,.78);backdrop-filter:blur(5px)}
.urgent-order-panel{position:relative;width:min(560px,100%);background:#fff;border-radius:26px;padding:30px;text-align:center;box-shadow:0 30px 90px rgba(0,0,0,.4);border:4px solid #e56d28;animation:coralAlertPulse 1.25s ease-in-out infinite alternate}
.urgent-order-panel .urgent-icon{font-size:58px;line-height:1;margin-bottom:8px}.urgent-order-panel h2{font-size:34px;margin:4px 0 8px;color:#153f58}.urgent-order-copy{font-size:18px;font-weight:900;color:#385a68;margin:0 0 20px}.urgent-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:13px}.urgent-actions button{min-height:52px;font-size:15px}.urgent-dismiss{position:absolute;right:12px;top:12px;width:42px;height:42px;padding:0;border-radius:50%;font-size:28px;background:#eaf2f5;color:#264b5b}.urgent-order-panel small{display:block;color:#6f838c}.urgent-order-overlay.hidden{display:none!important}
@keyframes coralAlertPulse{from{box-shadow:0 30px 90px rgba(0,0,0,.4),0 0 0 0 rgba(229,109,40,.35)}to{box-shadow:0 30px 90px rgba(0,0,0,.4),0 0 0 12px rgba(229,109,40,.05)}}
@media(max-width:650px){.urgent-order-panel{padding:26px 18px 20px}.urgent-order-panel h2{font-size:27px}.urgent-order-copy{font-size:16px}.urgent-actions{grid-template-columns:1fr}.toolbar-actions{flex-wrap:wrap}.toolbar-actions button{flex:1 1 150px}}
/* v2.0.15 workflow filters, history and optional staff login */
.order-viewbar{display:flex;justify-content:space-between;gap:14px;align-items:end;margin:0 0 16px;padding:14px;background:#fff;border:1px solid #d7e7ed;border-radius:16px}.segmented{display:flex;padding:4px;background:#eaf2f5;border-radius:12px}.segmented button{background:transparent;color:#345766}.segmented button.active{background:#166d89;color:#fff}.history-search{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.history-search label{font-size:12px;font-weight:800;color:#58717f}.history-search input{display:block;margin-top:4px;padding:10px;border:1px solid #bfd2da;border-radius:10px}.history-banner,.autostart-note{padding:11px 14px;margin:0 0 14px;border-radius:12px;background:#e8f1f4;color:#385967;font-size:13px}.history-banner{background:#fff0c8;color:#77570a;font-weight:800}.station-state span{display:block;margin-top:3px;font-weight:900}.status-ready,.status-served{background:#daf4e5}.status-preparing{background:#e8e1fa}.status-waiting{background:#fff0c8}.pair-card select{display:block;width:100%;margin-top:6px;padding:14px;border:1px solid #bdd1d8;border-radius:10px;font-size:17px;background:#fff}@media(max-width:700px){.order-viewbar{align-items:stretch;flex-direction:column}.segmented button{flex:1}.history-search>*{flex:1 1 120px}.history-search input{width:100%}}

/* v2.0.17 cancellation workflow */
.items li{position:relative}.items li.cancelled-item{opacity:.62;background:#f5f5f5}.items li.cancelled-item>span{text-decoration:line-through}.item-cancel{margin-top:8px;padding:7px 10px!important;border-radius:9px!important;background:#fff1f1!important;color:#8f2b2b!important;border:1px solid #e7b6b6!important;font-size:12px!important}.actions .cancel{background:#8f3b3b!important;color:#fff!important}.actions{flex-wrap:wrap}
