:root{color-scheme:light;--ink:#102a43;--muted:#65758b;--blue:#1864ab;--line:#e5ebf1;--bg:#f4f7fb;--green:#16835d;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);min-height:100vh}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1160px)/2));position:sticky;top:0;z-index:4}.brand{display:flex;align-items:center;gap:12px}.brand-home{border:0;background:transparent;padding:0;cursor:pointer;text-align:left}.brand strong{font-size:17px;display:block}.brand-logo{display:block;width:auto;height:44px;max-width:min(52vw,220px);object-fit:contain}.account{display:flex;align-items:center;gap:15px;font-size:13px}.account span{font-weight:600}main{max-width:1160px;margin:0 auto;padding:40px 24px 70px}h1,h2,p{margin-top:0}h1{font-size:34px;line-height:1.18;letter-spacing:-.7px;margin-bottom:8px}h2{font-size:21px;letter-spacing:-.2px;margin:6px 0 0}.muted{color:var(--muted);font-size:14px;line-height:1.5;margin-bottom:0}.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#6a8199}.login-layout{min-height:calc(100vh - 190px);display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:8vw}.hero h1{font-size:clamp(38px,5vw,60px);line-height:1.08;margin:14px 0 18px}.hero>p{font-size:17px;color:var(--muted);max-width:420px}.hero-note{margin-top:42px;font-size:13px;color:#4b647d;display:flex;align-items:center;gap:9px}.dot{width:8px;height:8px;background:#22a06b;border-radius:99px;box-shadow:0 0 0 4px #e4f5ec}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;margin-bottom:20px;box-shadow:0 7px 22px #132f4c08}.login-card{padding:30px;display:grid;gap:18px}.login-card h2{font-size:26px}.login-card .muted{margin-top:-10px}label{display:grid;gap:7px;font-weight:650;font-size:12px;color:#41566c}input,textarea{font:inherit;font-size:14px;color:var(--ink);border:1px solid #d6e0ea;border-radius:9px;padding:11px 12px;width:100%;background:#fff;outline:none}input:focus,textarea:focus{border-color:#4385bd;box-shadow:0 0 0 3px #3683c31b}textarea{resize:vertical}.button{font:inherit;border:0;border-radius:9px;padding:10px 15px;font-weight:700;font-size:13px;cursor:pointer;transition:.15s}.button:hover{filter:brightness(.96);transform:translateY(-1px)}.primary{color:white;background:var(--blue)}.secondary{color:#164f81;background:#eaf3fa}.ghost{color:#536a80;background:transparent}.page-head{display:flex;align-items:center;justify-content:space-between;margin:2px 0 30px}.page-head h1{margin-top:8px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end}.compact{padding-top:18px}.location-panel{display:flex;align-items:center;justify-content:space-between;gap:20px}.location-panel strong{font-size:14px}.location-panel .muted{margin:5px 0}.small{font-size:11px}.orders-list{display:grid;gap:12px}.order-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center}.order-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.order-number{font-weight:800;font-size:14px}.order-restaurant{color:var(--muted);font-size:12px}.order-address{display:inline-block;font-size:14px;margin:4px 0;color:#1759a0;text-decoration:none}.order-address:hover{text-decoration:underline}.order-details{font-size:12px;color:var(--muted);line-height:1.5}.badge{font-size:10px;font-weight:800;border-radius:99px;padding:5px 9px;background:#edf1f5;color:#53687a}.badge.waiting{background:#fff2d9;color:#865300}.badge.assigned{background:#e6f1ff;color:#1759a0}.badge.picked_up{background:#f0e9ff;color:#6742a0}.badge.delivered{background:#e2f5ec;color:#13734e}.order-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.order-actions select{max-width:170px;border:1px solid #d6e0ea;border-radius:8px;padding:9px;font:inherit;font-size:12px;background:#fff}.count-pill{background:#e8eef4;border-radius:99px;padding:5px 10px;color:#496177;font-size:12px;font-weight:800}.empty-state{text-align:center;background:#fff;border:1px dashed #cdd9e5;border-radius:14px;padding:48px 20px;color:#426078}.empty-state strong{display:block;margin:12px}.empty-state p{font-size:13px;color:var(--muted);margin:0}.empty-icon{font-size:22px;background:#e5f5ed;color:var(--green);border-radius:50%;width:42px;height:42px;margin:auto;display:grid;place-items:center}.couriers-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}.courier-card{border:1px solid var(--line);border-radius:11px;padding:13px}.courier-card strong{font-size:13px}.courier-card p{font-size:11px;color:var(--muted);margin:7px 0 0}details summary{font-weight:700;font-size:14px;cursor:pointer}.message{padding:12px 14px;border-radius:9px;font-size:13px;margin-bottom:16px}.message.error{background:#fff0f0;color:#9f2929}.message.success{background:#eaf7ef;color:#176744}.hidden{display:none!important}.empty-state:not(.hidden){display:block}footer{text-align:center;border-top:1px solid var(--line);color:#8392a1;padding:20px;font-size:11px}@media(max-width:760px){.topbar{height:66px;padding:0 17px}.brand-mark{width:35px;height:35px}.account{gap:6px}.account span{max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}main{padding:26px 16px 54px}.login-layout{min-height:auto;grid-template-columns:1fr;gap:30px;padding:38px 0}.hero h1{font-size:42px}.hero-note{margin-top:20px}.login-card{padding:24px}.page-head{margin-bottom:22px}.page-head h1{font-size:28px}.panel{padding:18px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.order-card{grid-template-columns:1fr;padding:15px}.order-actions{justify-content:flex-start}.location-panel{align-items:flex-start;flex-direction:column}.location-panel .button{width:100%}.section-title{gap:10px}.small{max-width:120px;text-align:right}}

.role-tabs{display:flex;gap:8px;overflow-x:auto;margin:0 0 24px;padding:0 0 4px;border-bottom:1px solid var(--line)}.role-tab{flex:0 0 auto;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);padding:11px 15px;font:inherit;font-weight:700;cursor:pointer;border-radius:9px 9px 0 0}.role-tab:hover{background:#edf3f8;color:var(--ink)}.role-tab.active{color:var(--blue);border-bottom-color:var(--blue);background:#eaf3fb}.role-tab:focus-visible{outline:3px solid #9bc8ed;outline-offset:2px}

select{font:inherit;color:var(--ink);border:1px solid #d6e0ea;border-radius:9px;padding:11px 12px;background:#fff}.users-list{display:grid;gap:10px;margin-top:20px}.user-card{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--line);border-radius:11px;padding:14px}.user-card strong{font-size:13px}.user-card p{font-size:11px;color:var(--muted);margin:6px 0 0}.user-card .button{flex:0 0 auto}@media(max-width:760px){.user-card{align-items:flex-start;flex-direction:column}.user-card .button{width:100%}}
.close-order{grid-column:1/-1;border-top:1px solid var(--line);padding-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}.close-order>strong{grid-column:1/-1;font-size:13px}.close-order>label{font-size:11px}.payment-rows{grid-column:1/-1;display:grid;gap:8px}.payment-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.close-order>button{justify-self:start}.close-order input,.close-order select{font-size:12px;padding:9px 10px}@media(max-width:760px){.close-order{grid-template-columns:1fr}.payment-row{grid-template-columns:1fr 1fr auto}.close-order>strong,.payment-rows{grid-column:1/-1}}
.receipt-tools{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:9px;align-items:end;background:#f7f9fc;border:1px solid var(--line);border-radius:10px;padding:12px}.receipt-tools span{grid-column:1/-1}.receipt-tools .button{justify-self:start}@media(max-width:760px){.receipt-tools{grid-template-columns:1fr}.receipt-tools span{grid-column:1}}
.operation-filters{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 12px}.operation-filters .button{display:flex;align-items:center;gap:8px}.operation-filters .button.active{box-shadow:inset 0 0 0 2px #1864ab}.operation-toolbar{display:flex;gap:10px;margin-bottom:14px}.operation-toolbar input{max-width:440px}.operation-toolbar .button{flex:0 0 auto}#account-create-details{border:1px solid var(--line);border-radius:10px;padding:13px 14px}#account-create-details[open]{margin-bottom:16px}#users-empty:not(.hidden){margin-top:14px;padding:24px}.count-pill{white-space:nowrap}@media(max-width:560px){.operation-toolbar{flex-direction:column}.operation-toolbar input{max-width:none}.operation-toolbar .button{width:100%}.operation-filters .button{flex:1;justify-content:center}}
.intervention-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:18px}.intervention-group{border:1px solid var(--line);border-radius:12px;padding:14px}.intervention-group h3{font-size:13px;margin:0 0 12px}.intervention-item{font-size:12px;padding:9px 0;border-top:1px solid var(--line);line-height:1.45}.date-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.date-filter label{min-width:160px}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:18px 0}.summary-card{background:#f7f9fc;border:1px solid var(--line);border-radius:12px;padding:16px}.summary-card strong{font-size:20px}.summary-card p{margin:6px 0 0;color:var(--muted);font-size:12px}.report-days{display:grid;gap:6px}.report-row{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:8px;padding:11px;border-bottom:1px solid var(--line);font-size:12px}.settings-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:20px;max-width:900px}.settings-form label{min-width:0}.settings-form .checkbox-control{display:flex;align-items:center;gap:10px}.settings-form .checkbox-control input{width:auto;min-width:20px;min-height:20px}.settings-form .settings-group{grid-column:1/-1}@media(max-width:560px){.date-filter{align-items:stretch;flex-direction:column}.date-filter label{width:100%}.date-filter button{width:100%}.settings-form{grid-template-columns:1fr}.report-row{grid-template-columns:1fr 1fr}.report-row span:nth-child(2n){text-align:right}}

.intervention-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:16px 0}.intervention-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:16px}.intervention-categories .button{display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:48px}.intervention-categories .button.active{background:#d8eafb;box-shadow:inset 0 0 0 1px #9cc7e8}.count-pill{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#fff;font-size:12px}.intervention-heading{grid-column:1/-1;margin:6px 0}.intervention-groups>.orders-list{grid-column:1/-1}.intervention-groups>.orders-list .order-card{margin-bottom:10px}.intervention-groups>.user-card{grid-column:1/-1}
.sub-tabs{display:flex;gap:8px;overflow-x:auto;padding:8px 2px 14px;margin:0 0 12px;border-bottom:1px solid var(--line);scrollbar-width:thin}.sub-tab{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:#fff;color:#34536f;padding:9px 13px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.sub-tab:hover{border-color:#9cc7e8;background:#f3f9fd}.sub-tab.active{background:#1864ab;border-color:#1864ab;color:#fff}.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;background:#fff3d6;color:#795400;font-size:11px;font-weight:800}.sub-tabs::-webkit-scrollbar{height:5px}.sub-tabs::-webkit-scrollbar-thumb{background:#c8d7e5;border-radius:99px}@media(max-width:560px){.role-tabs{overflow-x:auto;flex-wrap:nowrap}.sub-tabs{margin-left:-4px;margin-right:-4px}.sub-tab{padding:9px 11px}}

.courier-status-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.courier-status-actions .button{min-height:46px}@media(max-width:560px){.courier-status-actions{flex-direction:column}.courier-status-actions .button{width:100%}}

.shift-rows{display:grid;gap:14px;margin-top:18px}.shift-row{display:grid;grid-template-columns:1.2fr auto 1fr 1fr;gap:10px;align-items:center;padding:10px;border-bottom:1px solid var(--line)}.shift-row strong,.shift-view-row strong{font-size:13px}.shift-row input[type=checkbox]{width:20px;height:20px}.shift-row input[type=time]{padding:8px}.shift-list{display:grid;gap:0}.shift-view-row{display:flex;justify-content:space-between;gap:12px;padding:13px 4px;border-bottom:1px solid var(--line);font-size:13px}.shift-view-row span{color:var(--muted)}#courier-shift-form>button{margin-top:14px}@media(max-width:560px){.shift-row{grid-template-columns:1fr auto 1fr 1fr;gap:6px}.shift-row strong{font-size:11px}.shift-row input[type=time]{font-size:11px;padding:8px 4px}}
.tariff-rows{display:grid;gap:.65rem;margin:1rem 0}.tariff-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:.5rem;align-items:center}.restaurant-address-form{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin-top:.75rem}.restaurant-address-form input{flex:1;min-width:12rem}.tariff-row input{min-width:0}@media(max-width:600px){.tariff-row{grid-template-columns:1fr 1fr}.tariff-row button{grid-column:1/-1}.restaurant-address-form input{width:100%}}
.restaurant-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px}.restaurant-week-controls{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-top:18px}.restaurant-week-controls label{min-width:205px}.restaurant-week-controls .button{min-height:42px}.account-subheading{font-size:15px;margin:24px 0 10px}.badge.cancelled{background:#fde8e8;color:#9c2d2d}@media(max-width:620px){.restaurant-pagination{gap:8px;flex-wrap:wrap}.restaurant-pagination .muted{order:-1;width:100%;text-align:center}.restaurant-week-controls{align-items:stretch;flex-direction:column}.restaurant-week-controls label{width:100%}.restaurant-week-controls .button{width:100%}}


.settings-group{border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;gap:10px}.settings-group legend{font-weight:700;padding:0 6px}.settings-group .check-label{display:flex;align-items:center;gap:8px}.settings-group .check-label input{width:auto}

.courier-groups-list{display:grid;gap:14px;margin:16px 0}.group-card{border:1px solid var(--line);border-radius:14px;padding:14px;display:grid;gap:12px}.group-card-head{display:flex;align-items:end;gap:10px}.group-card-head label{flex:1}.group-member-section h4{margin:0 0 8px;font-size:14px}.group-members-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:6px;max-height:220px;overflow:auto;padding:8px;border:1px solid var(--line);border-radius:10px}.group-member{display:flex;align-items:center;gap:8px;font-size:13px}.group-member input{width:auto}.group-member [data-group-priority]{width:64px;min-width:64px;padding:6px}
.admin-map-card{margin:20px 0 22px;border:1px solid var(--line);border-radius:14px;background:#f9fbfd;overflow:hidden}.admin-map-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px}.admin-map-heading h3{font-size:15px;margin:0 0 4px}.admin-map-heading p{margin:0}.admin-map-heading .form-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-map-heading select{min-width:165px;border:1px solid #d6e0ea;border-radius:8px;padding:9px;font:inherit;font-size:12px;background:#fff}.admin-map{width:100%;height:clamp(300px,48vh,500px);background:#e9eff4}.admin-map-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:11px 15px;background:#fff;border-top:1px solid var(--line);font-size:11px;color:#40566a}.admin-map-legend>span{display:inline-flex;align-items:center;gap:7px}.map-dot{display:inline-block;width:11px;height:11px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #9aa9b7}.restaurant-dot{background:#cf3030}.courier-dot{background:#1769aa}@media(max-width:560px){.admin-map-heading{align-items:stretch;flex-direction:column}.admin-map-heading .form-actions{display:grid;grid-template-columns:1fr}.admin-map-heading .button,.admin-map-heading select{width:100%}.admin-map{height:340px}.admin-map-legend{align-items:flex-start;flex-direction:column;gap:8px}}

.admin-order-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin:0 0 18px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f9fbfd}.admin-order-filters label{font-size:12px}.admin-order-filters input,.admin-order-filters select{width:100%;min-width:0}.admin-order-filters .form-actions{align-self:end;display:flex;gap:8px;flex-wrap:wrap}.admin-order-filters .form-actions .button{min-height:42px}@media(max-width:560px){.admin-order-filters{grid-template-columns:1fr}.admin-order-filters .form-actions{display:grid;grid-template-columns:1fr 1fr}}

/* Yönetici çekmece menüsü */
.icon-button{display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:22px;line-height:1;cursor:pointer}.icon-button:hover{background:#f2f6fa;border-color:#c8d7e5}.icon-button:focus-visible,.admin-home-link:focus-visible,.admin-nav button:focus-visible{outline:3px solid #9bc8ed;outline-offset:2px}
.admin-drawer{position:fixed;inset:0 auto 0 0;z-index:20;display:flex;flex-direction:column;gap:12px;width:min(340px,88vw);height:100dvh;padding:18px 14px 14px;background:#fff;border-right:1px solid var(--line);box-shadow:12px 0 36px #102a4326;transform:translateX(-105%);transition:transform .22s ease;overflow-y:auto;overscroll-behavior:contain}.admin-drawer-open .admin-drawer{transform:translateX(0)}body.courier-drawer-open #courier-drawer{transform:translateX(0)}body.restaurant-drawer-open #restaurant-drawer{transform:translateX(0)}body.admin-drawer-open #restaurant-drawer,body.courier-drawer-open #restaurant-drawer,body.restaurant-drawer-open #admin-drawer,body.restaurant-drawer-open #courier-drawer{transform:translateX(-105%)}
.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px 12px;border-bottom:1px solid var(--line)}.drawer-heading strong{font-size:16px}.admin-home-link,.admin-nav-group-toggle,.admin-nav-link{width:100%;display:flex;align-items:center;gap:10px;border:0;border-radius:9px;background:transparent;color:#29445d;text-align:left;font:inherit;cursor:pointer}.admin-home-link{min-height:44px;padding:10px 12px;font-size:14px;font-weight:750}.admin-home-link:hover,.admin-nav-link:hover{background:#f1f6fa}.admin-home-link.active,.admin-nav-link.active{background:#e8f2fb;color:#145b93}.admin-nav{display:grid;gap:6px;overflow-y:auto}.admin-nav-group{border:1px solid transparent;border-radius:11px;overflow:hidden}.admin-nav-group:has(.admin-nav-group-toggle[aria-expanded=true]){border-color:#e5ebf1;background:#fbfcfe}.admin-nav-group-toggle{justify-content:space-between;min-height:44px;padding:10px 12px;font-size:13px;font-weight:750}.admin-nav-group-toggle:hover{background:#f1f6fa}.admin-nav-group-toggle[aria-expanded=true]{color:#145b93}.admin-nav-chevron{color:#70849a;font-size:15px;transition:transform .18s}.admin-nav-group-toggle[aria-expanded=true] .admin-nav-chevron{transform:rotate(180deg)}.admin-nav-children{display:grid;gap:3px;padding:0 7px 7px 14px}.admin-nav-children[hidden]{display:none!important}.admin-nav-link{min-height:38px;padding:8px 11px;font-size:12px}.drawer-note{margin:auto 5px 0;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.drawer-backdrop{display:none;position:fixed;inset:0;z-index:19;width:100%;height:100%;border:0;background:#102a4366;cursor:pointer}.drawer-backdrop.visible{display:block}.admin-drawer-open,body.restaurant-drawer-open{overflow:hidden}
@media(prefers-reduced-motion:reduce){.admin-drawer,.admin-nav-chevron{transition:none}}

body.restaurant-view #page-heading-copy{display:none!important}body.restaurant-view #app-view>.page-head{justify-content:flex-end;margin:0 0 8px;padding:0}body.restaurant-view #app-view>#role-tabs,body.restaurant-view #app-view>#sub-tabs{display:none!important}body.restaurant-view #create-order-panel,body.restaurant-view #orders-panel{margin-top:0}
/* Yönetici ana ekranındaki müdahale kartları */
.admin-dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px;margin:20px 0}.admin-action-card{width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;align-items:start;gap:7px 12px;padding:15px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}.admin-action-card:hover{transform:translateY(-2px);border-color:#b8cde0;box-shadow:0 6px 18px #132f4c12}.admin-action-card:focus-visible{outline:3px solid #9bc8ed;outline-offset:2px}.admin-action-top{grid-column:1;grid-row:1;font-size:13px;font-weight:750;line-height:1.35}.admin-action-count{grid-column:2;grid-row:1/3;align-self:center;display:grid;place-items:center;min-width:36px;height:36px;padding:0 8px;border-radius:999px;background:#edf3f8;color:#34536f;font-size:17px}.admin-action-detail{grid-column:1/-1;grid-row:2;color:var(--muted);font-size:12px;line-height:1.45}.admin-action-link{grid-column:1/-1;grid-row:3;margin-top:4px;padding-top:9px;border-top:1px solid var(--line);color:var(--blue);font-size:12px;font-weight:750}.admin-action-card.good{border-left:4px solid #16835d}.admin-action-card.good .admin-action-count{background:#e6f5ed;color:#13734e}.admin-action-card.warning{border-left:4px solid #d59b27}.admin-action-card.warning .admin-action-count{background:#fff3d6;color:#795400}.admin-action-card.urgent{border-left:4px solid #c83b3b}.admin-action-card.urgent .admin-action-count{background:#fde8e8;color:#9c2d2d}.admin-home-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}.status-pill.attention{background:#fff0d5;color:#805400}
/* Kurye paneli konum ve rota düğmeleri */
.location-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.location-actions .button{min-height:42px}@media(max-width:560px){.admin-dashboard-grid{grid-template-columns:1fr}.admin-action-card{padding:14px}.admin-home-footer{align-items:stretch;flex-direction:column}.admin-home-footer .button{width:100%}.location-actions{display:grid;grid-template-columns:1fr;width:100%}.location-actions .button{width:100%}}

.report-head{font-weight:700;background:#f7f9fc;position:sticky;top:0}.report-row span{min-width:0;overflow-wrap:anywhere}.report-head span{white-space:normal}.report-days{max-width:100%}@media print{body>*{display:none!important}#app-view{display:block!important}#reports-panel{display:block!important;box-shadow:none;border:0}.date-filter button{display:none!important}.report-days{overflow:visible!important}.report-row{break-inside:avoid}}
/* Courier dashboard: map above today's active order cards */
body.courier-view #app-view{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "tabs" "notice" "map" "orders";gap:10px}
body.courier-view #app-view>.page-head{grid-area:head;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
body.courier-view #app-view>#role-tabs,body.courier-view #app-view>#sub-tabs{grid-area:tabs}
body.courier-view #app-view>#notice{grid-area:notice}
body.courier-view #courier-map-panel{grid-area:map;margin-bottom:0}
body.courier-view #orders-panel{grid-area:orders;margin-bottom:0}
.courier-map{width:100%;height:clamp(280px,48vh,540px);border-radius:12px;background:#e9eff4}
.courier-status-control{position:relative;margin-left:auto}
.courier-status-button{min-height:44px;min-width:170px;border:1px solid #bbd9c8;border-radius:11px;background:#e8f7ee;color:#126342;padding:10px 14px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.courier-status-button.break{background:#fff5df;border-color:#f0d89f;color:#765300}
.courier-status-button.danger{background:#fff0f0;border-color:#edb6b6;color:#9f2929}
.courier-status-button.off-duty{background:#eef2f5;border-color:#d8e0e7;color:#506477}
.courier-status-menu{position:absolute;z-index:10;right:0;top:calc(100% + 6px);min-width:220px;display:grid;gap:3px;padding:7px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 32px #102a4322}
.courier-status-menu button{border:0;border-radius:8px;background:#fff;color:var(--ink);text-align:left;padding:10px 12px;font:inherit;font-size:13px;cursor:pointer}
.courier-status-menu button:hover{background:#eef5fa}
body.courier-drawer-open #admin-drawer{transform:translateX(-105%)}
body.admin-drawer-open #courier-drawer,body.admin-drawer-open #restaurant-drawer{transform:translateX(-105%)}
@media(max-width:760px){body.courier-view #app-view>.page-head{align-items:flex-start}.courier-status-control{margin-left:0}.courier-map{height:36vh;min-height:250px}.eta-choices{display:flex;gap:6px;flex-wrap:wrap}}
@media(min-width:761px){.eta-choices{display:flex;gap:6px;flex-wrap:wrap}}

/* Kurye durum menüsü: telefon ekranında görünür konum ve durum işaretleri */
.courier-status-menu button{display:flex;align-items:center;gap:10px;min-height:42px}
.courier-status-menu button::before{content:"";display:inline-block;flex:0 0 12px;width:12px;height:12px;border-radius:50%;background:#9aa7b4;box-shadow:0 0 0 3px #eef2f5}
.courier-status-menu button[data-courier-action="start"]::before{background:#16835d;box-shadow:0 0 0 3px #e5f5ed}
.courier-status-menu button[data-courier-action="end"]::before{background:#c83b3b;box-shadow:0 0 0 3px #fdeaea}
.courier-status-menu button[data-courier-action^="break"]::before{background:#d8a51e;box-shadow:0 0 0 3px #fff4d5}
.courier-status-menu button[data-courier-action="accident"]::before{background:#17212b;box-shadow:0 0 0 3px #e6e9ec}
@media(max-width:760px){.courier-status-menu{left:0;right:auto;width:min(260px,calc(100vw - 32px));min-width:0;max-width:calc(100vw - 32px)}}

body.courier-view.courier-home-view .page-head{margin:0 0 10px;justify-content:flex-end;gap:10px;flex-wrap:wrap}body.courier-view.courier-home-view .page-head>div:first-child{display:none}body.courier-view.courier-home-view #courier-status-control{margin-right:auto}

.address-review-form{margin-top:14px}.address-correction-map{height:280px;width:100%;border-radius:12px;border:1px solid #d5dde5}

/* Admin home: compact operation board with staged order queue and courier rail */
.admin-quick-counters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:18px 0 16px}.admin-quick-counter{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:12px;border:1px solid var(--line);border-left:4px solid #9aafc1;border-radius:11px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.admin-quick-counter span{font-size:11px;font-weight:700;line-height:1.3}.admin-quick-counter strong{display:grid;place-items:center;min-width:30px;height:30px;border-radius:50%;background:#edf3f8;font-size:15px}.admin-quick-counter.good{border-left-color:#16835d}.admin-quick-counter.warning{border-left-color:#d59b27}.admin-quick-counter.urgent{border-left-color:#c83b3b}.admin-quick-counter.warning strong{background:#fff3d6;color:#795400}.admin-quick-counter.urgent strong{background:#fde8e8;color:#9c2d2d}.admin-ops-board{margin-top:10px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}.admin-ops-heading,.admin-ops-courier-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.admin-ops-heading{margin-bottom:13px}.admin-ops-heading h3,.admin-ops-courier-heading h3{margin:3px 0 0;font-size:16px}.admin-ops-stage-tabs{display:flex;gap:7px;overflow-x:auto;padding:2px 0 12px;border-bottom:1px solid var(--line)}.admin-ops-stage{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-height:38px;padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:#f7f9fc;color:#40566a;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.admin-ops-stage strong{display:grid;place-items:center;min-width:22px;height:22px;border-radius:99px;background:#fff;font-size:11px}.admin-ops-stage.active{border-color:#7eb2dc;background:#e8f3fb;color:#164f81}.admin-ops-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,280px);gap:14px;padding-top:13px}.admin-ops-order-list{display:grid;gap:8px}.admin-ops-order{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff}.admin-ops-order-main{min-width:0;display:grid;gap:4px}.admin-ops-order-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.admin-ops-order-title>strong{font-size:13px}.admin-ops-order-customer{font-size:12px;font-weight:650}.admin-ops-order-address,.admin-ops-order-meta{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.admin-row-actions{display:flex;align-items:center;gap:6px}.admin-row-action{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #d6e0ea;border-radius:9px;background:#f7fafd;color:#1759a0;font-size:18px;font-weight:800;cursor:pointer}.admin-row-action:hover{background:#e8f3fb}.admin-row-action:disabled{cursor:not-allowed;opacity:.45}.admin-row-more{position:relative}.admin-row-menu{position:absolute;z-index:4;right:0;top:40px;display:grid;min-width:170px;padding:5px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 8px 24px #132f4c20}.admin-row-menu a,.admin-row-menu button{padding:9px;border:0;border-radius:6px;background:transparent;color:var(--ink);font:inherit;font-size:12px;text-align:left;text-decoration:none;cursor:pointer}.admin-row-menu a:hover,.admin-row-menu button:hover{background:#f1f6fa}.admin-row-menu button{color:#a32f2f}.admin-ops-couriers{min-width:0;padding:12px;border:1px solid var(--line);border-radius:11px;background:#f9fbfd}.admin-ops-courier-heading{margin-bottom:9px}.admin-ops-courier-heading h3{font-size:14px}.admin-home-courier-list{display:grid;gap:7px;max-height:440px;overflow:auto}.admin-home-courier{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:9px;border:1px solid var(--line);border-radius:9px;background:#fff}.admin-home-courier strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.admin-home-courier-status{font-size:10px;font-weight:750;color:#35627f}.admin-home-courier small{grid-column:1/-1;color:var(--muted);font-size:10px}.admin-home-courier a{grid-column:1/-1;color:#1759a0;font-size:10px;text-decoration:none}.admin-ops-pagination{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding-top:11px}.admin-ops-pagination span{margin:0 5px;color:var(--muted);font-size:11px}.admin-order-dialog{width:min(620px,calc(100vw - 28px));max-height:min(82vh,760px);overflow:auto;padding:0;border:0;border-radius:15px;box-shadow:0 18px 60px #102a4350}.admin-order-dialog::backdrop{background:#102a4380}.admin-order-dialog-content{padding:18px}.admin-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.admin-dialog-heading h3{margin:0;font-size:17px}.admin-dialog-form{display:grid;gap:12px}.admin-dialog-form select{width:100%;margin-top:7px;border:1px solid #d6e0ea;border-radius:8px;padding:11px;background:#fff;font:inherit}.admin-dialog-form .button{justify-self:end}.admin-order-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--line)}.admin-order-detail-item{display:grid;gap:5px;padding:10px;background:#fff}.admin-order-detail-item span{color:var(--muted);font-size:10px}.admin-order-detail-item strong{overflow-wrap:anywhere;font-size:12px}
@media(max-width:980px){.admin-quick-counters{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-ops-layout{grid-template-columns:1fr}.admin-ops-couriers{order:0}.admin-home-courier-list{max-height:none}}
@media(max-width:640px){.admin-quick-counters{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.admin-quick-counter{padding:10px}.admin-ops-board{padding:12px}.admin-ops-heading{align-items:flex-start}.admin-ops-heading .button{padding:9px;font-size:11px}.admin-ops-layout{grid-template-columns:1fr}.admin-ops-order{grid-template-columns:minmax(0,1fr);gap:9px;padding:11px}.admin-row-actions{justify-content:flex-end}.admin-row-action{width:42px;height:42px}.admin-ops-couriers{order:0}.admin-home-courier-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:230px}.admin-ops-pagination{justify-content:space-between}.admin-order-detail-grid{grid-template-columns:1fr}}

#admin-order-dialog-content{padding:18px}

/* Telefon: yönetici ana ekranında açıklamaları sadeleştir, yenilemeyi operasyon başlığına al. */
.admin-home-title-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}.admin-home-title-actions #admin-home-refresh{display:inline-flex;white-space:nowrap}
@media(max-width:760px){body.admin-view.admin-home-active #app-view>.page-head{display:none}body.admin-view.admin-home-active .admin-home-eyebrow,body.admin-view.admin-home-active .admin-home-description,body.admin-view.admin-home-active .admin-map-help{display:none}body.admin-view.admin-home-active .admin-home-title-copy{width:100%}body.admin-view.admin-home-active .admin-home-title-actions{width:100%;margin-top:-4px;gap:6px}body.admin-view.admin-home-active .admin-home-title-actions #admin-home-refresh{display:inline-flex;white-space:nowrap;padding:9px 12px}body.admin-view.admin-home-active .admin-home-title-actions .status-pill{white-space:nowrap}body.admin-view.admin-home-active .section-title{flex-wrap:wrap;align-items:center;gap:8px}}

/* Yönetici ana ekranını masaüstü ve telefonda aynı sade başlıkta tut. */
body.admin-view.admin-home-active #app-view>.page-head{display:none}body.admin-view.admin-home-active .admin-home-eyebrow,body.admin-view.admin-home-active .admin-home-description,body.admin-view.admin-home-active .admin-map-help{display:none}

/* Harita simgelerinin açıklamalarını dar ekranda yan yana tut. */
@media(max-width:560px){.admin-map-legend{display:grid;grid-template-columns:max-content max-content;gap:8px 16px;font-size:10px;padding:10px 12px}.admin-map-legend>span{white-space:nowrap}}


/* Telefonda acil müdahale başlığı ve harita durumu tek satırda kalsın. */
@media(max-width:560px){body.admin-view.admin-home-active #admin-home-panel>.section-title{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:6px}body.admin-view.admin-home-active .admin-home-title-copy{width:auto!important;flex:1 1 auto;min-width:0}body.admin-view.admin-home-active .admin-home-title-copy h2{white-space:nowrap;font-size:clamp(16px,4.6vw,20px);letter-spacing:-.35px}body.admin-view.admin-home-active .admin-home-title-actions{width:auto!important;flex:0 0 auto;flex-wrap:nowrap;margin-top:0!important;gap:4px}body.admin-view.admin-home-active .admin-home-title-actions .status-pill{white-space:nowrap;font-size:9px;padding:4px 7px}body.admin-view.admin-home-active .admin-home-title-actions #admin-home-refresh{white-space:nowrap;font-size:11px;padding:8px 9px}.admin-map-heading>div:first-child{width:100%;min-width:0}#admin-map-status{white-space:nowrap;font-size:clamp(9px,2.4vw,10px);letter-spacing:-.15px}}

/* Region groups stay inside their panel on mobile and desktop. */
#hex-regions-panel{min-width:0;overflow:hidden}
#hex-regions-panel .form-actions{flex-wrap:wrap;gap:8px;align-items:end}
#hex-regions-panel label{min-width:0}
#hex-regions-panel button{white-space:normal}
.hex-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:12px;margin:14px 0 24px}
.hex-group-card{min-width:0;border:1px solid #dbe5ee;border-top:5px solid #2563eb;border-radius:12px;padding:16px;background:#fff;overflow-wrap:anywhere}
.hex-group-card strong{font-size:17px}.hex-group-state{float:right;padding:3px 9px;border-radius:20px;background:#eef2f6;font-size:12px}
.hex-group-members{line-height:1.7;color:#52677c}.hex-group-card .form-actions{display:flex}
.hex-summary{padding:12px 16px;border-radius:10px;background:#edf4fb;color:#234e70}
.hex-settings{border:1px solid #dbe5ee;border-radius:10px;padding:12px;margin:14px 0}
.hex-settings summary{cursor:pointer;font-weight:600}.hex-settings[open] summary{margin-bottom:12px}
.hex-editor{border:1px solid #dbe5ee;border-radius:12px;padding:16px;margin:16px 0}
.hex-manual-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:8px;margin:12px 0}
.hex-manual-row{display:flex;justify-content:space-between;align-items:center;border:1px solid #dbe5ee;border-radius:8px;padding:8px;gap:8px;min-width:0}

.receipt-create{padding-bottom:20px;border-bottom:1px solid #dae5ed;margin-bottom:18px}#manual-order-details summary{cursor:pointer;color:#1764a8;font-weight:700;padding:12px 0}.receipt-dialog{max-width:min(92vw,850px);max-height:92vh;border:0;border-radius:14px;padding:16px}.receipt-dialog img{display:block;max-width:100%;height:auto;margin-top:12px}.receipt-dialog::backdrop{background:#102c46aa}

.tracking-dialog{width:min(90vw,750px);border:0;border-radius:14px;padding:18px}.tracking-map{height:min(60vh,480px);width:100%;min-height:240px}.tracking-dialog::backdrop{background:#102c46aa}

.courier-flow-dialog{width:min(94vw,680px);max-height:90dvh;overflow:auto;border:0;border-radius:16px;padding:20px}.courier-flow-dialog::backdrop{background:rgba(10,30,45,.55)}.courier-flow-dialog .close-order{border:0;padding:0;margin-top:16px}.courier-destination-map{height:340px;width:100%;border-radius:12px;margin:12px 0}.courier-flow-dialog .payment-row{display:flex;flex-wrap:wrap;gap:8px}.courier-flow-dialog .payment-row>*{min-width:0;flex:1}.courier-flow-dialog .payment-row button{flex:0 0 auto}

/* Address review owns its layout; generic horizontal account cards do not apply. */
#location-corrections-panel{min-width:0;max-width:100%}
#location-corrections-panel>p{color:var(--muted);font-size:14px;line-height:1.6;max-width:72ch}
#location-corrections-panel>label{display:inline-grid;min-width:200px;max-width:100%;margin:14px 12px 0 0}
#dispatch-address-reviews-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.location-review-card{display:block;min-width:0;max-width:100%;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow-wrap:anywhere}
.location-review-summary{display:flex;align-items:center;gap:12px;list-style:none;min-height:52px;cursor:pointer}
.location-review-summary::-webkit-details-marker{display:none}
.location-review-heading{flex:1;min-width:0}.location-review-heading strong{font-size:14px}.location-review-heading p{font-size:13px;line-height:1.5;color:var(--muted);margin:7px 0 0}
.location-review-open{color:var(--blue);font-size:12px;white-space:nowrap}.location-review-open::after{content:' ＋'}.location-review-card[open] .location-review-open::after{content:' −'}
.location-review-card[open]>.location-review-summary{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.location-review-card>input{display:block;width:100%;min-width:0;margin:10px 0}
.location-review-card>.button{max-width:100%;white-space:normal;line-height:1.5;margin:6px 8px 6px 0}
.location-review-card>p{font-size:13px;line-height:1.6;margin:12px 0;color:var(--muted)}
.location-review-card>details{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.location-review-card>details p{font-size:13px;line-height:1.6;margin-top:12px}
@media(max-width:760px){.location-review-summary{flex-wrap:wrap;gap:10px}.location-review-heading{flex-basis:100%}.location-review-card>.button{display:block;width:100%;margin:8px 0}.location-review-card{padding:14px}.location-review-open{margin-left:auto}#location-corrections-panel>label{display:grid;width:100%;margin-right:0}#dispatch-address-reviews-refresh{margin-top:10px;min-height:44px}}

.account-operation-card,.account-information-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0}.account-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.account-card-actions>form{flex:1 1 210px;min-width:0}.account-card-actions>.form-actions{flex-wrap:wrap}.account-information-fields{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);gap:8px 14px;margin:14px 0}.account-information-fields dt{font-weight:600}.account-information-fields dd{margin:0;overflow-wrap:anywhere}.account-information-card details{width:100%}@media(max-width:540px){.account-information-fields{grid-template-columns:1fr;gap:4px}.account-information-fields dd{margin-bottom:10px}}

.intervention-guide{width:100%;padding:12px;background:#f5f8fc;border:1px solid #e3eaf1;border-radius:10px;box-sizing:border-box}.intervention-guide p{margin:0 0 8px;overflow-wrap:anywhere}.intervention-guide .button{margin:4px 6px 0 0}.order-action-feedback{width:100%;margin:8px 0 0;font-size:13px;overflow-wrap:anywhere}.order-action-feedback.pending{color:#526575}.order-action-feedback.error{color:#a4262c}.order-action-feedback.success{color:#16704a}

.order-card.has-intervention-guide{display:flex;flex-wrap:wrap;align-items:flex-start}.order-card.has-intervention-guide>div:first-child{flex:1 1 260px;min-width:0}.order-card.has-intervention-guide>.intervention-guide,.order-card.has-intervention-guide>.order-action-feedback{flex:0 0 100%}

.courier-bonus-tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}.courier-bonus-tier{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.courier-bonus-tier p{margin:8px 0 0}.courier-bonus-tier.current{background:#c90019;color:#fff;border-color:#c90019}

/* Photo order preparation choices: one native radio group, four visible buttons. */
.ready-time-picker{border:0;padding:0;margin:0;min-width:0}
.ready-time-picker legend{margin-bottom:8px;font-weight:600}
.ready-time-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ready-time-option{position:relative;display:block;min-width:0;cursor:pointer}
.ready-time-option input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;margin:0}
.ready-time-option span{display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 4px;border:2px solid #bcccdc;border-radius:10px;background:#fff;color:#102a43;font-weight:700;white-space:nowrap}
.ready-time-option input:checked+span{background:#102a43;border-color:#102a43;color:#fff}
.ready-time-option input:focus-visible+span{outline:3px solid #2684ff;outline-offset:3px}

.admin-courier-shift{grid-column:1/-1;margin-top:6px}.admin-courier-shift summary{cursor:pointer;font-size:12px;font-weight:700;padding:8px 0}.admin-courier-shift .button{margin:4px 6px 0 0;min-height:44px;font-size:12px}

/* Courier delivery confirmation: visible, thumb-sized choices. */
.courier-flow-dialog.courier-pool-sheet{margin:auto auto 0;width:min(560px,100vw);box-sizing:border-box;border-radius:24px 24px 0 0;padding:16px 22px max(22px,env(safe-area-inset-bottom));max-height:90dvh;overscroll-behavior:contain;touch-action:pan-y}
.courier-sheet-handle{width:42px;height:5px;border-radius:8px;background:#c8d4de;margin:0 auto 18px}
.courier-pool-form{display:grid;gap:14px}.courier-pool-form label{display:grid;gap:8px}.courier-pool-form select{width:100%;min-width:0;min-height:48px}.courier-pool-form>.button{width:100%;min-height:48px}
.courier-payment-summary{overflow-wrap:anywhere}.close-order .payment-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;min-width:0;align-items:center}.close-order .payment-row>.courier-payment-methods{grid-column:1/-1}.close-order .payment-row>select:not(.hidden),.close-order .payment-row>input[type=text]{grid-column:1/-1;min-width:0;width:100%;box-sizing:border-box}.close-order .payment-row>input[type=number]{width:100%;min-width:0;box-sizing:border-box}.close-order .payment-row>.hidden{display:none}
.courier-address-buttons,.courier-payment-methods{display:flex;gap:.6rem;flex-wrap:wrap;margin:.5rem 0}
.courier-address-buttons>.button,.courier-payment-methods>.button{flex:1 1 110px;min-height:48px;border-radius:12px}
.courier-address-buttons>.selected,.courier-payment-methods>.selected{background:#d9f4e3;border:2px solid #148143;color:#075c30;font-weight:700}
.close-order>.button.primary[type=submit]{width:100%;min-height:52px;background:#087d36;border-color:#087d36;color:white;font-weight:700}
@media(max-width:500px){.payment-row{flex-wrap:wrap}.courier-payment-methods{width:100%}}

/* Restaurant arrival / wait on courier order card */
.courier-arrival-controls{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin:.5rem 0}
.courier-arrival-controls .button{min-height:48px;min-width:72px;border-radius:12px}
.courier-restaurant-icon{font-size:1.35rem}
.courier-restaurant-icon.selected{background:#d9f4e3;border-color:#148143}

/* Responsive administrator overview. Browser and installed PWA share this layout. */
body.admin-view.admin-home-active main {
  max-width: 1560px;
  padding: 24px clamp(12px, 3vw, 40px) 48px;
}

body.admin-view.admin-home-active .topbar {
  padding-inline: max(12px, calc((100vw - 1480px) / 2));
}

#admin-home-panel {
  --overview-gap: clamp(12px, 1.4vw, 20px);
  --overview-padding: clamp(12px, 1.5vw, 22px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#admin-home-panel .admin-overview-title {
  margin: 0 0 var(--overview-gap);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

#admin-home-panel .admin-overview-alerts,
#admin-home-panel .admin-ops-board,
#admin-home-panel .admin-ops-couriers,
#admin-home-panel #admin-map-details,
#admin-home-panel .admin-home-footer {
  min-width: 0;
  padding: var(--overview-padding);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(16 42 67 / 5%);
}

#admin-home-panel .admin-overview-alerts .section-title {
  flex-wrap: wrap;
  gap: 8px 12px;
}

#admin-home-panel .admin-home-title-copy,
#admin-home-panel .admin-home-title-actions {
  width: auto;
  margin-top: 0;
}

#admin-home-panel .admin-home-title-copy h2,
#admin-home-panel .admin-ops-heading h3,
#admin-home-panel .admin-ops-courier-heading h3 {
  font-size: clamp(18px, 2vw, 24px);
}

#admin-home-panel .admin-quick-counters {
  margin: 12px 0 0;
}

#admin-home-panel .admin-quick-counter {
  min-height: 52px;
}

#admin-home-panel .admin-quick-counter span,
#admin-home-panel .admin-ops-stage {
  font-size: 13px;
}

#admin-home-panel .admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--overview-gap);
  margin-block: var(--overview-gap);
}

#admin-home-panel .admin-ops-board {
  margin-top: 0;
}

#admin-home-panel .admin-ops-orders {
  min-width: 0;
  padding-top: 12px;
}

#admin-home-panel .admin-ops-courier-heading {
  margin-bottom: 12px;
}

#admin-home-panel .admin-home-courier {
  padding: 10px 12px;
}

#admin-home-panel .admin-home-courier strong {
  font-size: 14px;
}

#admin-home-panel .admin-home-courier small,
#admin-home-panel .admin-home-courier-status {
  font-size: 12px;
}

#admin-home-panel .admin-home-courier-status {
  align-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf3f8;
}

#admin-home-panel #admin-map-details > summary,
#admin-home-panel .admin-courier-shift > summary {
  cursor: pointer;
}

#admin-home-panel .admin-home-footer {
  flex-direction: row;
  align-items: center;
  margin-top: var(--overview-gap);
}

#admin-home-panel .admin-home-footer .button {
  width: auto;
}

@media (max-width: 760px) {
  #admin-home-panel .admin-overview-grid,
  #admin-home-panel .admin-home-courier-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #admin-home-panel .admin-home-courier-list {
    max-height: none;
  }

  #admin-home-panel .admin-quick-counters,
  #admin-home-panel .admin-ops-stage-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #admin-home-panel .admin-quick-counter {
    padding-inline: 8px;
  }

  #admin-home-panel .admin-ops-stage {
    justify-content: space-between;
  }

  #admin-home-panel .button,
  #admin-home-panel .admin-ops-stage,
  #admin-home-panel .admin-courier-shift > summary {
    min-height: 44px;
  }
}


/* Delegated manager permissions: keep labels beside their checkboxes on phones. */
.delegated-admin-dialog{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:20px;color:var(--ink,#18344b)}
.delegated-admin-dialog::backdrop{background:rgba(15,30,45,.45)}
.delegated-admin-form{margin-top:20px;min-width:0}
.delegated-admin-form>h3,.delegated-admin-form>p,.delegated-admin-form>fieldset,.delegated-admin-form>button{grid-column:1/-1}
.delegated-admin-form>h3{margin:12px 0 0}
.delegated-permission-row{display:flex;flex-wrap:wrap;gap:12px 24px;min-width:0;margin:0;border:1px solid var(--line);border-radius:10px;padding:12px}
.delegated-permission-row legend{padding:0 6px;font-weight:700}
.delegated-admin-dialog label.delegated-permission-option{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:32px;margin:0}
.delegated-admin-dialog .delegated-permission-option input[type=checkbox]{width:20px;height:20px;min-width:20px;flex:0 0 20px;margin:0;padding:0}
@media(max-width:560px){.delegated-admin-dialog{padding:16px}.delegated-admin-form{grid-template-columns:minmax(0,1fr)}}

/* Restored approved administrator layout, adapted to the responsive overview DOM. */
@media(min-width:981px){
 body.admin-view.admin-home-active main,body.admin-view main{max-width:none;padding:28px 32px 48px}
 body.admin-view.admin-home-active .topbar,body.admin-view .topbar{justify-content:flex-start;gap:24px;padding-inline:32px}
 body.admin-view .topbar .account{margin-inline-start:auto}
 body.admin-view #admin-home-panel .admin-overview-grid{grid-template-columns:minmax(0,1fr) minmax(280px,30%);align-items:start}
 body.admin-view #admin-home-panel .admin-home-courier-list{max-height:none;overflow:visible}
 #admin-home-panel .admin-home-title-copy h2{font-size:32px}
 #admin-home-panel .admin-ops-order-customer,
 #admin-home-panel .admin-ops-order-address,
 #admin-home-panel .admin-ops-order-meta{font-size:13px}
}
.admin-row-action.admin-row-action-labeled{width:auto;min-height:44px;height:auto;padding:8px 11px;font-size:13px;text-align:center}
.admin-row-action.admin-row-action-assign:not(:disabled){background:#bd1928;border-color:#bd1928;color:#fff}
.admin-row-action.admin-row-action-assign:not(:disabled):hover{background:#a21522;border-color:#a21522}
.admin-ops-order .admin-row-actions{flex-wrap:wrap}
.admin-ops-order-address,.admin-ops-order-meta{white-space:normal;overflow-wrap:anywhere}
@media(min-width:641px) and (max-width:1200px){.admin-ops-order{grid-template-columns:minmax(0,1fr)}}
/* Account and matching surfaces use the same spacing and red primary actions. */
.operation-match-layout{display:grid;gap:16px}
.operation-match-card{min-width:0;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow-wrap:anywhere}
.operation-match-card h3{margin:0 0 12px}
.operation-match-card>label{margin-top:14px}
.operation-match-card .user-card,#accounts-panel .account-card-actions{flex-wrap:wrap}
#accounts-panel #new-account,#restaurant-courier-add-form .primary{background:#bd1928;color:#fff}
@media(min-width:981px){.operation-match-layout{grid-template-columns:minmax(0,35fr) minmax(0,65fr);align-items:start}}
/* Courier delivery cards: each package is independent and stays fully visible. */
body.courier-view #orders-list{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
body.courier-view #courier-map-panel{padding:12px}
body.courier-view .courier-map{height:160px;min-height:160px;max-height:22vh}
body.courier-view .courier-package{display:grid;grid-template-columns:minmax(0,1fr);padding:18px;gap:16px;border-radius:18px;border:1px solid #dce5ed;box-shadow:0 4px 18px #17324b08}
.courier-package>div{min-width:0}.courier-package .order-top{margin-bottom:14px;gap:8px}.courier-package .order-number{font-size:20px;color:#122c40}.courier-package-amount{margin-left:auto;font-size:18px;white-space:nowrap}.courier-package .badge{font-size:11px;padding:6px 10px}.courier-package .badge.picked_up{background:#e3f5e9;color:#137448}
.courier-package-restaurant{margin:0 0 8px;font-size:16px;color:#18384d}.courier-package-address{font-size:17px;line-height:1.5;font-weight:650;overflow-wrap:anywhere;margin:0 0 12px;color:#18384d}.courier-package-customer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;color:#617687;font-size:13px}.courier-package-customer .button{min-height:44px;display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap}.courier-package-note{padding:10px;border-radius:10px;background:#f6f8fb;font-size:13px;line-height:1.5;margin:8px 0}.courier-address-warning{background:#fff5df;color:#7b5707;padding:10px;border-radius:10px;font-size:12px;line-height:1.5;margin:8px 0}
.courier-package-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;justify-content:stretch}.courier-package-actions>.button{display:flex;align-items:center;justify-content:center;min-height:50px;padding:10px 6px;text-decoration:none;text-align:center;font-size:13px;border-radius:11px}.courier-package-actions>.courier-pickup{grid-column:1/-1;background:#cf0020}.courier-package-actions>.courier-navigate{background:#086ac4;color:white}.courier-package-actions>.courier-deliver{background:#148242;color:white}.courier-package .button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.courier-flow-dialog{width:min(520px,calc(100vw - 24px));padding:20px;border-radius:20px;box-shadow:0 20px 80px #102a4350}.courier-flow-dialog h2{font-size:20px;line-height:1.35;margin:0 0 14px}.courier-flow-dialog>.button{min-height:44px}.courier-flow-dialog .close-order{display:grid;gap:14px}.courier-flow-dialog .close-order>strong{font-size:17px}.courier-flow-dialog .muted{font-size:13px}.courier-flow-dialog .payment-rows{display:grid;gap:14px}.courier-flow-dialog .payment-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;border:1px solid #dce5ed;border-radius:12px}.courier-flow-dialog .courier-payment-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1;margin:0 0 4px;gap:8px}.courier-payment-methods>.button{min-width:0;font-size:13px;min-height:50px}.courier-payment-methods>.selected{background:#fff0f2;border:2px solid #cf0020;color:#a40017}.courier-flow-dialog .payment-row>select,.courier-flow-dialog .payment-row>input[type=text]{grid-column:1/-1;width:100%;min-height:48px;padding:10px;border:1px solid #cbd7e1;border-radius:9px;font:inherit;background:white}.courier-address-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.courier-gps-status{font-size:12px;line-height:1.5;color:#4a677a;margin:0}.courier-flow-dialog button:disabled{opacity:.45;cursor:not-allowed}.courier-payment-summary{font-size:13px;color:#26485c;line-height:1.5}
@media(max-width:600px){body.courier-view main{padding:16px 12px 40px}body.courier-view .account span{max-width:76px;font-size:10px}body.courier-view .panel{padding:14px}body.courier-view #courier-map-panel{padding:8px}body.courier-view .courier-package{padding:14px}.courier-package-address{font-size:16px}.courier-package-amount{font-size:16px}.courier-package-actions>.button{font-size:12px}.courier-flow-dialog{max-height:92dvh;margin:auto auto 0;border-radius:20px 20px 0 0;width:100%;padding:18px 16px max(18px,env(safe-area-inset-bottom))}.courier-flow-dialog .small{max-width:none;text-align:left}}

.courier-success-message{padding:20px;background:#e6f6ec;color:#087d36;border-radius:14px;font-size:19px;font-weight:750;text-align:center}.courier-success-summary{padding:14px;border:1px solid var(--line);border-radius:12px;margin-bottom:14px}.courier-success-summary p{margin:4px 0}.courier-flow-dialog>.button.primary{width:100%;margin:8px 0}


/* Adapt card styling to existing controls; preserve all action handlers. */
.courier-package .order-address{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.courier-package .order-details{overflow-wrap:anywhere}
.courier-package-actions>.courier-arrival-controls{grid-column:1/-1}
.courier-package-actions>.button.ghost{grid-column:1/-1}
.courier-flow-dialog{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:600px){.courier-flow-dialog{max-height:92dvh}}

/* Matching controls must shrink inside their cards, including native selects. */
#restaurant-courier-links-panel .operation-match-layout{grid-template-columns:minmax(0,1fr)}
#restaurant-courier-links-panel :is(.operation-match-card,label,form,.user-card){min-width:0;max-width:100%}
#restaurant-courier-links-panel select{display:block;box-sizing:border-box;min-width:0;width:100%;max-width:100%;min-height:48px;padding:10px 12px;border:1px solid #d6e0ea;border-radius:9px;font:inherit;font-size:16px;color:var(--ink);background:#fff}
#restaurant-courier-add-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
#restaurant-courier-add-form .button{min-height:48px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
body.admin-view:has(#restaurant-courier-links-panel:not(.hidden)) #today-label,
body.admin-view:has(#restaurant-courier-links-panel:not(.hidden)) .page-head>#refresh,
#restaurant-courier-links-panel>.section-title>div{display:none}
#restaurant-courier-links-panel>.section-title{justify-content:flex-end}
@media(min-width:981px){
 #restaurant-courier-links-panel .operation-match-layout{grid-template-columns:minmax(0,35fr) minmax(0,65fr)}
}
@media(max-width:760px){
 #restaurant-courier-add-form{grid-template-columns:minmax(0,1fr);align-items:stretch}
 #restaurant-courier-add-form .button{width:100%;justify-self:stretch}
 #restaurant-courier-links-panel .operation-match-card{padding:14px}
 body.admin-view .page-head{gap:12px;align-items:flex-start}
 body.admin-view .page-head>div{min-width:0}
 body.admin-view .page-head h1{overflow-wrap:anywhere}
 body.admin-view .topbar{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:8px;padding-inline:12px}
 body.admin-view .brand{min-width:0;width:100%}
 body.admin-view .brand-logo{width:100%;max-width:220px;object-position:left center}
 body.admin-view .account{min-width:0;gap:4px}
 body.admin-view .account span{max-width:76px}
 body.admin-view .account .button{padding-inline:6px;white-space:nowrap}
}

/* History views share the existing role navigation and order actions. */
#orders-panel[data-history-role]:not([data-history-role=""]) .section-title h2{font-size:clamp(1.35rem,3vw,1.8rem)}

.history-shortcuts{display:flex;gap:8px;flex-wrap:wrap;grid-column:1/-1;width:100%;margin-bottom:6px}
.history-item,.history-head{border:1px solid #dce3ec;border-radius:12px;background:#fff}
.history-columns{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) 12px;gap:10px;align-items:center;padding:12px;overflow-wrap:anywhere}
summary.history-columns{cursor:pointer;list-style:none}
summary.history-columns::-webkit-details-marker{display:none}
[data-history-role="admin"] .history-columns{grid-template-columns:.6fr 1.6fr 1fr 1fr 1fr 14px}
.history-head{font-weight:700;background:#f2f5f9}
.history-secondary,.history-money small{display:block;color:#526176}
.history-money strong{display:block}
.history-money small:not(:first-child){margin-top:4px}
.history-badge{justify-self:start;padding:4px 7px;border-radius:6px;background:#eef2f7;font-size:.82rem}
.history-delivered{background:#e4f6e9;color:#165c35}
.history-pending{background:#fff0cf;color:#794a04}
.history-arrow{font-size:1.4rem;color:#ad0824}
.history-item[open] .history-arrow{transform:rotate(90deg)}
.history-item>.order-card{margin:0 8px 8px}
@media(max-width:700px){
 [data-history-role="admin"] .history-head{display:none}
 [data-history-role="admin"] summary.history-columns{grid-template-columns:repeat(2,minmax(0,1fr)) 14px}
 [data-history-role="admin"] .history-arrow{grid-area:1/3}
}

[data-history-role="courier"] .history-head{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0}

#orders-panel[data-history-role]:not([data-history-role=""]) #admin-order-filters.hidden,
#orders-panel[data-history-role="courier"] #admin-order-filters,
#orders-panel[data-history-role="restaurant"] #admin-order-filters{display:none!important}
[data-history-role="courier"] #courier-history-filters:not(.history-custom-range)>:not(.history-shortcuts),
[data-history-role="restaurant"] #restaurant-history-filters:not(.history-custom-range)>:not(.history-shortcuts){display:none}
#courier-history-today[hidden],#restaurant-history-clear{display:none}
.history-restaurant-summary{padding:14px;border:1px solid #dce3ec;border-radius:12px;background:white}
.history-metrics,.history-payment{display:flex;gap:10px;flex-wrap:wrap}
.history-metric{flex:1 1 140px;padding:10px;background:#f2f5f9;border-radius:8px}
.history-metric small,.history-metric strong{display:block}
.history-metric strong{font-size:1.15rem;margin-top:4px}
.history-restaurant-summary h3{font-size:.9rem;margin:12px 0 6px}
.history-payment span{font-size:.85rem;padding:5px 8px;background:#f2f5f9;border-radius:6px}

#app-view:has(#orders-panel[data-history-role="courier"]:not(.hidden)) #page-heading-copy,
#orders-panel[data-history-role="admin"] > .section-title > div,
#orders-panel[data-history-role]:not([data-history-role=""]) #orders-eyebrow,
#orders-panel[data-history-role="admin"] #courier-history-filters,
#orders-panel[data-history-role="admin"] #restaurant-history-filters{display:none!important}




/* Keep native inputs inside narrow history filters and rows. */
#orders-panel[data-history-role] :is(form,label,.history-columns>*,.history-metric){min-width:0;max-width:100%}
#orders-panel[data-history-role] :is(input,select){box-sizing:border-box;min-width:0;width:100%;max-width:100%}
.history-item .order-card{min-width:0}
.history-item .order-details,.history-item .order-address{overflow-wrap:anywhere}
@media(max-width:760px){
 #orders-panel[data-history-role] .history-shortcuts .button{flex:1 1 80px;min-height:44px}
 #orders-panel[data-history-role] :is(#courier-history-filters,#restaurant-history-filters){display:flex;flex-wrap:wrap;gap:12px}
 #orders-panel[data-history-role] :is(#courier-history-filters,#restaurant-history-filters).hidden{display:none!important}
 #orders-panel[data-history-role] :is(#courier-history-filters,#restaurant-history-filters)>label{flex:1 1 140px}
 .history-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 12px}
 .history-columns>.history-arrow{grid-area:1/3;align-self:start}
 .history-columns>.history-money{grid-column:1/3}
 [data-history-role="admin"] summary.history-columns{grid-template-columns:repeat(2,minmax(0,1fr)) 14px}
}
/* Retain the approved operation account typography and spacing. */
body.admin-view:has(#accounts-panel:not(.hidden)) #today-label,
body.admin-view #accounts-panel>.section-title>div{display:none}
@media(min-width:981px){
 #accounts-panel .operation-toolbar input{max-width:min(55%,720px)}
 #accounts-panel .user-card strong,#restaurant-courier-linked .user-card strong{font-size:16px}
 #accounts-panel .user-card p,#restaurant-courier-linked .user-card p{font-size:13px}
}

@media(max-width:760px){
 body:is(.admin-view,.courier-view,.restaurant-view) .topbar{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:8px;padding-inline:12px}
 body:is(.admin-view,.courier-view,.restaurant-view) .brand{min-width:0;width:100%}
 body:is(.admin-view,.courier-view,.restaurant-view) .brand-logo{width:100%;max-width:220px;object-position:left center}
 body:is(.admin-view,.courier-view,.restaurant-view) .account{min-width:0;gap:4px}
 body:is(.admin-view,.courier-view,.restaurant-view) .account span{max-width:76px}
 body:is(.admin-view,.courier-view,.restaurant-view) .account .button{padding-inline:6px;white-space:nowrap}
}
/* Place every admin history field explicitly; fees must never occupy the arrow column. */
@media(max-width:760px){
 [data-history-role="admin"] summary.history-columns>:nth-child(1){grid-area:1/1}
 [data-history-role="admin"] summary.history-columns>:nth-child(2){grid-area:1/2}
 [data-history-role="admin"] summary.history-columns>:nth-child(3){grid-area:2/1}
 [data-history-role="admin"] summary.history-columns>:nth-child(4){grid-area:2/2}
 [data-history-role="admin"] summary.history-columns>:nth-child(5){grid-column:1/3;grid-row:3;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
 [data-history-role="admin"] summary.history-columns>:nth-child(5)::before{content:'Teslimat bedeli';font-size:12px;font-weight:500}
}
body.courier-view #app-view:has(#orders-panel[data-history-role="courier"]:not(.hidden)){display:block}
body.courier-view #app-view:has(#orders-panel[data-history-role="courier"]:not(.hidden))>.page-head{justify-content:flex-end;margin:0 0 12px}
.admin-drawer{box-sizing:border-box;overflow:hidden}
.admin-drawer>.drawer-heading{flex:0 0 auto;background:#fff}
.drawer-scroll{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:12px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding-bottom:max(8px,env(safe-area-inset-bottom))}
.drawer-scroll>.admin-home-link,.drawer-scroll>.admin-nav,.drawer-scroll>.drawer-note{flex:0 0 auto}
.drawer-scroll>.admin-nav{overflow:visible;align-content:start;grid-auto-rows:max-content}
.drawer-scroll .admin-nav-group{overflow:visible}
@media(max-width:980px){
 #admin-home-panel #admin-ops-orders{position:relative;max-height:52vh;max-height:clamp(180px,52dvh,560px);overflow-y:auto;overflow-x:hidden;grid-auto-rows:max-content;align-content:start;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;overflow-anchor:none}
 #admin-ops-orders .admin-row-actions:has(.admin-row-menu:not(.hidden)){flex-wrap:wrap}
 #admin-ops-orders .admin-row-more:has(.admin-row-menu:not(.hidden)){flex-basis:100%}
 #admin-ops-orders .admin-row-menu{position:static;min-width:0;width:100%;box-sizing:border-box;margin-top:6px}
}


.courier-package-row{grid-column:1/-1;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
.courier-package-row>.button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:50px;padding:10px 4px;text-align:center;text-decoration:none;font-size:clamp(11px,3vw,13px);line-height:1.2;border-radius:11px;overflow-wrap:anywhere}
.courier-package-row>.courier-pickup,.courier-package-row>.courier-deliver{background:#cf0020;color:white}

#admin-home-panel .admin-home-courier-list{grid-template-columns:minmax(0,1fr);align-content:start;max-height:var(--courier-list-height,none);overflow-y:auto}

.admin-home-courier-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:8px}
.admin-home-courier-filters>.admin-ops-stage{justify-content:center;flex-wrap:wrap;min-width:0;padding:6px 3px;text-align:center}
.admin-home-courier-filters>[aria-pressed="true"]{background:#e8f2fb;border-color:#73a6cb;color:#12486f}

body.restaurant-view #orders-list .restaurant-active-card{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:16px;border-radius:16px;background:#fff}
.restaurant-active-card .order-top{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.restaurant-active-card .order-number,.restaurant-active-price{font-size:18px;color:#102a43}
.restaurant-active-price{margin-inline-start:auto;white-space:nowrap}
.restaurant-active-card .badge.waiting{background:#fff0cb;color:#795008}
.restaurant-active-card .badge.assigned{background:#e4efff;color:#124e87}
.restaurant-active-card .badge.picked_up{background:#e0f4e8;color:#14633c}
.restaurant-active-customer,.restaurant-active-card .order-address{display:block;font-size:15px;overflow-wrap:anywhere}
.restaurant-active-courier{font-size:14px;margin:4px 0;color:#51697e;overflow-wrap:anywhere}
.restaurant-active-card .order-details:empty,.restaurant-active-card .order-actions:empty{display:none}
.restaurant-active-card .order-actions>.button{min-height:44px}

body.restaurant-view #orders-list .restaurant-active-card{border:1px solid #dce4ed;gap:14px}
.restaurant-active-card .order-top{padding-bottom:12px;border-bottom:1px solid #dce4ed}
.restaurant-active-card .order-top .badge{font-size:clamp(11px,3vw,13px)}
.restaurant-active-card .restaurant-card-label{display:block;color:#516478;font-size:13px;font-weight:500}
.restaurant-active-customer,.restaurant-active-courier,.restaurant-active-destination{margin:12px 0;color:#102a43}
.restaurant-active-customer>.small{display:block;margin-top:3px}
.restaurant-active-destination{background:#e9f0f8;border-radius:12px;padding:11px 13px}
.restaurant-active-destination .order-address{color:#183952;font-weight:650;margin:3px 0 0}
.restaurant-active-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #dce4ed;padding-top:10px;margin:12px 0}
.restaurant-active-facts>div{padding-inline:8px;overflow-wrap:anywhere}
.restaurant-active-facts>div:first-child{padding-inline-start:0}
.restaurant-active-facts>div+div{border-inline-start:1px solid #dce4ed}
.restaurant-active-facts strong{font-size:clamp(12px,3.4vw,15px)}
.restaurant-active-card .restaurant-active-warning{padding:10px 12px;margin:12px 0 0;background:#fff3d7;color:#724a12;border:1px solid #f1d9a4;border-radius:12px;font-size:13px}
.restaurant-active-warning strong{display:block;margin-bottom:3px}
.restaurant-active-card .order-actions>.button{width:100%;background:#e5edf7;color:#16344e;font-weight:650}
.restaurant-active-destination,.restaurant-active-courier{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:12px;align-items:center}
.restaurant-active-destination::before,.restaurant-active-courier::before{content:'';grid-row:span 2;width:30px;height:30px;background:#dce7f4 center/17px no-repeat;border-radius:50%}
.restaurant-active-destination::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23344f70'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 10a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E")}
.restaurant-active-courier::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23344f70'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2z'/%3E%3C/svg%3E")}

.receipt-photo-options{border:0;padding:0;margin:0;min-inline-size:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.receipt-photo-options legend{padding:0;margin-bottom:8px}
.receipt-photo-options .button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px}

#restaurant-home-refresh{display:none}
body.restaurant-view #restaurant-home-refresh{display:inline-flex;align-items:center;min-height:44px}
body.restaurant-view:has(#create-order-panel:not(.hidden)) #refresh{display:none}
body.restaurant-view #receipt-scan-state:empty{display:none}
body.restaurant-view #manual-order-details{margin-top:12px;padding-top:10px}
body.restaurant-view #manual-order-details>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border-radius:10px;background:#e9eff6;color:#102a43;list-style:none}
body.restaurant-view #manual-order-details>summary::-webkit-details-marker{display:none}
body.restaurant-view #manual-order-details>summary::before{content:'+';font-size:20px;line-height:1}
body.restaurant-view #manual-order-details>summary::after{content:'';margin-inline-start:auto;width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
body.restaurant-view #manual-order-details[open]>summary::after{transform:rotate(225deg)}

/* Kurye ana ekranı */
.courier-map-status-text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.courier-view.courier-home-view #orders-eyebrow,
body.courier-view.courier-home-view .pilot-footer-note{display:none}
body.courier-view.courier-home-view #app-view>.page-head{margin-bottom:0;align-items:center}
body.courier-view.courier-home-view #courier-map-panel{padding:7px}

body.courier-view:has(#courier-restaurants-panel:not(.hidden)) .page-head>div:first-child,
body.courier-view:has(#courier-restaurants-panel:not(.hidden)) #refresh{display:none}
body.courier-view #courier-restaurants-panel{background:transparent;border:0;box-shadow:none;padding:0}
#courier-restaurants-panel .section-title{align-items:center}
#courier-restaurants-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}
.courier-business-card{display:grid;gap:12px;min-width:0;padding:16px;background:#fff;border:1px solid #dce4ed;border-radius:16px}
.courier-business-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.courier-business-head h3,.courier-business-bank h4{margin:0;color:#102a43}
.courier-business-field{display:grid;gap:3px;overflow-wrap:anywhere}
.courier-business-field span{color:#516478}
.courier-business-bank{display:grid;gap:8px;padding:12px;background:#eaf0f7;border-radius:10px;color:#516478}
.courier-business-bank .courier-business-field{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px}

body.courier-view:has(#courier-bonuses-panel:not(.hidden)) #refresh,
body.courier-view:has(#courier-bonuses-panel:not(.hidden)) .page-head .eyebrow{display:none}
body.courier-view #courier-bonuses-panel{background:transparent;border:0;box-shadow:none;padding:0}
.courier-bonus-overview,.courier-bonus-rules{background:#fff;border:1px solid #dce4ed;border-radius:16px;padding:14px}
.courier-bonus-overview .section-title{align-items:center;gap:8px}
.courier-bonus-overview h2,.courier-bonus-heading{font-size:clamp(17px,4.5vw,22px)}
.courier-bonus-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;color:#516478;font-size:14px}
.courier-bonus-metrics>div+div{border-inline-start:1px solid #dce4ed;padding-inline-start:12px}
.courier-bonus-metrics strong{display:block;color:#102a43;font-size:clamp(22px,6vw,30px)}
#courier-bonus-meter{display:block;width:100%;height:12px;margin-top:14px;accent-color:#579bd4}
#courier-bonus-progress{margin:8px 0 0;font-size:14px}
.courier-bonus-rules{margin-top:10px}
.courier-bonus-rules summary{cursor:pointer;font-weight:650}
.courier-bonus-heading{margin:16px 0 10px}
#courier-bonus-tiers{grid-template-columns:repeat(2,minmax(0,1fr))}
.courier-bonus-tier.next{background:#e4f0fb;border-color:#accbe6}

body.courier-view:has(#courier-earnings-panel:not(.hidden)) #refresh{display:none}
body.courier-view #courier-earnings-panel{padding:0;background:transparent;border:0;box-shadow:none}
#courier-earnings-panel>.section-title{display:none}
#courier-earnings-panel>.date-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;background:#fff;border:1px solid #dce4ed;border-radius:14px}
#courier-earnings-panel>.date-filter input{width:100%;min-width:0}
#load-courier-earnings{grid-column:1/-1;min-height:44px}
#courier-earnings-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
#courier-earnings-summary>.summary-card{background:#fff;border:1px solid #dce4ed}
#courier-earnings-summary>.summary-card:nth-child(-n+3){background:#e5effb}
#courier-earnings-summary>.summary-card:first-child{grid-column:1/-1;display:flex;flex-direction:column-reverse}
#courier-earnings-summary>.summary-card:first-child strong{font-size:clamp(26px,7vw,36px)}
#courier-earnings-list>.user-card{display:flex;justify-content:space-between;align-items:center;gap:10px;overflow-wrap:anywhere}
.courier-earnings-heading{margin:12px 0 0;color:#102a43}
.courier-earnings-amount{white-space:nowrap}


.weekly-plan{display:grid;gap:12px;margin-top:12px}
.weekly-plan-card{background:#fff;border:1px solid #dce4ed;border-radius:14px;padding:14px}
.weekly-plan-card h3{margin:0 0 10px;color:#102a43}
.weekly-plan-card fieldset{border:0;padding:0;margin:10px 0;min-width:0}
.weekly-plan-card legend{font-weight:700;margin-bottom:6px}
.weekly-plan-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;border-bottom:1px solid #e5ebf1}
.weekly-plan-row>strong,.weekly-plan-row>label{flex:1;min-width:100px}
.weekly-plan-row label{display:flex;align-items:center;gap:8px}
.weekly-plan-row input[type="radio"]{width:auto}
.weekly-plan-row input[type="time"]{width:auto;min-width:0}
.weekly-plan-row.leave{background:#fff3d7;border-radius:8px}
body.courier-view:has(#courier-shifts-panel:not(.hidden)) #courier-shifts-panel>.section-title{display:none}
.weekly-plan-card h3{padding:10px 12px;background:#eaf1f9;border-radius:9px}
.weekly-plan-status{padding:8px 10px;border-radius:8px;font-weight:650}
.weekly-plan-status.approved,.weekly-plan-row:has(input[type="radio"]:checked){background:#e0f4e8;color:#14633c}
.weekly-plan-status.pending{background:#fff3d7;color:#724a12}
.weekly-plan-card .form-actions{flex-wrap:wrap;gap:8px}
.weekly-plan-card .form-actions>.button{min-height:44px}

body.courier-view #courier-profile-panel{padding:0;background:transparent;border:0;box-shadow:none}
.courier-profile-note{margin:0 0 14px}
#courier-profile-form{grid-template-columns:minmax(0,1fr);gap:12px}
.courier-profile-card,.courier-profile-notifications{min-inline-size:0;margin:0;padding:12px 14px 14px;background:#fff;border:1px solid #dce4ed;border-radius:14px}
.courier-profile-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.courier-profile-card legend{padding:0 6px;color:#102a43;font-weight:700}
.courier-profile-card label{grid-column:1/-1;min-width:0}
.courier-profile-card:first-child label:nth-of-type(-n+2){grid-column:auto}
.courier-profile-card :is(input,select,textarea){width:100%;min-width:0}
.courier-profile-notifications{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.courier-profile-notifications:has(#courier-web-push.hidden),#courier-web-push-status:empty{display:none}
#courier-web-push-status{flex-basis:100%;margin:0}
#courier-profile-form .form-actions>.button{width:100%;min-height:44px}

/* Sipariş işlem saatleri */
.courier-package { container: courier-package / inline-size; }
.courier-receipt-time { font-size: 12px; color: #51697e; white-space: nowrap; }
.courier-receipt-button .courier-receipt-time-only { display: none; }
.courier-package .courier-receipt-placed-in-button .courier-receipt-caption { display: none; }
.courier-package .courier-receipt-placed-in-button .courier-receipt-time-only { display: inline; }
@container courier-package (max-width: 325px) {
 .courier-package .order-top .courier-receipt-time-with-button { display: none; }
 .courier-receipt-button:has(.courier-receipt-time-only) .courier-receipt-caption { display: none; }
 .courier-receipt-button .courier-receipt-time-only { display: inline; }
}
.restaurant-active-card .restaurant-card-label.restaurant-courier-times {
 position: relative;
}
.restaurant-courier-times > small {
 position: absolute; inset-inline-end: 0; inset-block-start: 50%;
 transform: translateY(-50%);
 font-size: 11px; line-height: 1; white-space: nowrap;
}
.order-event-times {
 display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,136px),1fr));
 gap: 8px; margin: 0; padding: 10px 12px; font-size: 12px; color: #51697e;
}
.order-event-times dd { margin: 2px 0 0; color: #102a43; font-weight: 600; }

/* The native assignment opens this dialog over the ordinary courier panel. */
#courier-assignment-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(540px, calc(100vw - 24px));
  min-width: 0;
  max-width: calc(100vw - 24px);
  max-height: 56vh;
  max-height: 56dvh;
  padding: 12px;
  border: 1px solid var(--line, #dce5ed);
  border-radius: 16px;
  background: #fff;
  color: var(--ink, #18344b);
  overflow: auto;
  overscroll-behavior: contain;
}

#courier-assignment-dialog::backdrop {
  background: rgb(16 42 67 / 42%);
}

#courier-assignment-dialog > button:first-child {
  display: block;
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 0 8px auto;
  min-height: 44px;
  background: #edf4f9;
}

#courier-assignment-dialog > .courier-package {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

/* Keep the payment and price together on narrow courier cards. */
.courier-package .order-top{flex-wrap:wrap}
.courier-card-total{display:inline-flex;align-items:center;gap:6px;margin-left:auto;max-width:100%}
.courier-card-total .courier-package-amount{margin-left:0;flex-shrink:0}
.courier-card-payment{background:#e5f0fa;color:#123752;border-radius:7px;padding:4px 7px;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.courier-card-customer-details{min-width:0}
.courier-card-customer-code{font-size:12px;line-height:1.4;margin:3px 0 0;color:#18384d;overflow-wrap:anywhere}

/* OnlyKurye restaurant platform settings */
.okp-actions,.okp-card-heading,.okp-dialog-head {display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.okp-actions {margin:.4rem 0 .85rem}
.okp-actions [aria-pressed="true"] {background:#123752;color:white}
.okp-grid,.okp-inbox {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:.8rem;align-items:start}
.okp-card {display:grid;gap:.72rem;border:1px solid #d8e2eb;border-radius:12px;background:#fff;padding:1rem;min-width:0;overflow-wrap:anywhere}
.okp-card h3,.okp-card p,.okp-facts,.okp-dialog h2 {margin:0}
.okp-card > .button {justify-self:start}
.okp-card-heading,.okp-dialog-head {justify-content:space-between}
.okp-state {font-size:.8rem;font-weight:700;background:#f0f3f6;color:#34495a;border-radius:6px;padding:.25rem .55rem}
.okp-connected {color:#145734;background:#e2f5e9}
.okp-facts {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.2rem .7rem;font-size:.9rem}
.okp-facts dt {color:#526776}
.okp-facts dd {margin:0}
.okp-credentials {display:grid;gap:.65rem;border-top:1px solid #e0e6eb;padding-top:.75rem}
.okp-credentials label,.okp-mode label {display:grid;gap:.25rem;min-width:0}
.okp-credentials input,.okp-mode select {width:100%;max-width:100%;box-sizing:border-box;font-size:1rem;min-height:44px}
.okp-mode {display:flex;align-items:end;flex-wrap:wrap;gap:.45rem}
.okp-mode label {flex:1 1 9rem}
.okp-confirm {flex-basis:100%;border-left:3px solid #31709a;padding:.55rem .75rem;background:#edf5fa;display:flex;flex-wrap:wrap;gap:.45rem}
.okp-confirm p {width:100%}
.okp-feedback:empty {display:none}
.okp-error {color:#9a2424}
.okp-dialog {width:min(54rem,calc(100% - 1.25rem));max-width:100%;max-height:90dvh;box-sizing:border-box;border:1px solid #c8d6e2;border-radius:16px;color:#102a43;background:#fff;padding:1rem;overflow:auto}
.okp-dialog::backdrop {background:rgba(16,42,67,.55)}
.okp-dialog-head {margin-bottom:.7rem}
.okp-dialog h2 {font-size:1.2rem;overflow-wrap:anywhere}
.okp-transfer-dialog {width:min(29rem,calc(100% - 1.25rem))}
.okp-transfer-dialog > p {margin:.35rem 0 1rem;text-align:start}
.okp-transfer-dialog .ready-time-options {grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:28rem){.okp-transfer-dialog .ready-time-options {grid-template-columns:repeat(4,minmax(0,1fr))}}
.okp-transfer-dialog .okp-actions {justify-content:flex-end;margin:1rem 0 0}
.okp-transfer-dialog button:disabled {opacity:.5;cursor:default}
.okp-dialog button,#okp-restaurant button {min-height:44px;white-space:normal}
@media(max-width:550px){.okp-grid,.okp-inbox {grid-template-columns:1fr}.okp-dialog-head{align-items:start}.okp-dialog h2{flex:1 1 55%}}

.okp-nav-group > summary {cursor:pointer;list-style-position:inside}
.okp-nav-group > button {margin-inline-start:.75rem}

.okp-review {grid-column:1/-1;display:grid;gap:.55rem;background:#fff7e6;color:#503e20;border-inline-start:3px solid #b77a1c;border-radius:6px;padding:.8rem 1rem;min-width:0;overflow-wrap:anywhere}
.okp-review h3,.okp-review p {margin:0}
.okp-review ul {list-style:none;padding:0;margin:0;display:grid;gap:.35rem}
.okp-review li {display:flex;flex-wrap:wrap;column-gap:.5rem}
.okp-card > p.small,.okp-review > p.small,.okp-feedback.small,.account-information-card > .okp-summary {max-width:none;text-align:start}
.okp-delivery-setting {display:grid;gap:.55rem;border-top:1px solid #d8e2eb;padding-top:.75rem}
.okp-delivery-setting h4 {flex:1;margin:0;font-size:1rem}
.okp-delivery-setting > .button {justify-self:start}
.okp-history {grid-column:1/-1;display:grid;gap:.6rem;min-width:0}
.okp-history h3,.okp-history h4,.okp-history p,.okp-history ul,.okp-operations h3 {margin:0}
.okp-history ul {padding:0;list-style:none;display:grid;gap:.45rem}
.okp-history li {display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem .7rem}
.okp-order-warning,.okp-operations:not(:empty) {display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;background:#fff7e6;color:#503e20;border-inline-start:3px solid #b77a1c;border-radius:6px;padding:.65rem .8rem;margin-block:.5rem;overflow-wrap:anywhere}
.okp-operations h3 {flex-basis:100%;font-size:1rem}
.okp-order-history,.admin-order-detail-grid > .okp-order-warning {grid-column:1/-1}
.okp-order-history {margin-block:.5rem;min-width:0}
.okp-order-history summary {cursor:pointer;padding-block:.3rem}

@media (max-width: 600px) {
  .courier-package.order-card .order-top {
    flex-wrap: nowrap;
    gap: clamp(2px, 0.8vw, 5px);
  }
  .courier-package .order-top .order-number { font-size: 14px; }
  .courier-package .order-top .badge,
  .courier-package .order-top .courier-card-payment {
    font-size: clamp(10px, 2.7vw, 12px);
    padding: 3px clamp(2px, 0.8vw, 5px);
    white-space: nowrap;
  }
  .courier-package .order-top .courier-card-total { gap: 3px; min-width: 0; }
  .courier-package .order-top .courier-package-amount {
    font-size: clamp(10px, 2.85vw, 13px);
  }
}
.courier-profile-notifications.apple-push-guide:has(#courier-web-push.hidden){display:flex}

dialog.order-receipt-overlay[open] {
  position:fixed; inset:0; margin:0; width:100%; height:100%;
  max-width:none; max-height:none; box-sizing:border-box; border:0;
  padding:16px; background:transparent; display:grid; place-items:center;
  overflow:hidden; overscroll-behavior:contain;
}
.order-receipt-overlay::backdrop { background:rgba(16,44,70,.68); }
.order-receipt-panel { background:white; padding:12px; border-radius:14px; max-width:100%; box-sizing:border-box; }
.order-receipt-panel button { margin-bottom:8px; }
.order-receipt-frame { display:grid; place-items:center; overflow:hidden; touch-action:none; user-select:none; }
.order-receipt-frame img { display:block; max-width:min(78vw,800px); max-height:70vh; max-height:70dvh; width:auto; height:auto; transform-origin:center; }

body.restaurant-view #orders-panel #admin-order-filters { display: none !important; }

#restaurant-sections {display:none}
@media(min-width:760px){
 body.restaurant-view #restaurant-sections {display:flex;align-items:stretch;gap:.35rem;flex-wrap:wrap;padding:.4rem;margin:0 0 1rem;background:#fff;border:1px solid #d9e3ed;border-radius:14px}
 .restaurant-section-link {min-height:42px;padding:.55rem .95rem;border:0;border-radius:9px;background:transparent;color:#29435a;font:inherit;font-weight:600;cursor:pointer}
 .restaurant-section-link[aria-current="page"] {background:#e6f1fb;color:#113957}
 .restaurant-section-link:hover {background:#f0f5f8}
 .restaurant-section-link:focus-visible {outline:2px solid #1c6389;outline-offset:1px}
}

/* Restaurant account and dated orders */
body.restaurant-view #restaurant-account-summary {display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
body.restaurant-view .rest-week-range {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:1.06rem;font-weight:700}
body.restaurant-view .rest-week-range span {border-radius:999px;padding:.25em .7em;background:#edf3f8;color:#28465f;font-size:.82rem}
body.restaurant-view .rest-week-metrics {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px}
body.restaurant-view .rest-week-metrics .summary-card {display:flex;flex-direction:column;gap:.45rem;min-width:0}
body.restaurant-view #restaurant-account-summary details {padding:.65rem .85rem;background:#f7f9fb;border:1px solid #dce5ed;border-radius:10px}
body.restaurant-view #restaurant-account-summary summary {cursor:pointer;font-weight:600}
body.restaurant-view #restaurant-account-summary dl {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.5rem 1rem}
body.restaurant-view #restaurant-account-summary dd {margin:0;text-align:end;font-variant-numeric:tabular-nums}
body.restaurant-view .rest-profile-group {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;min-width:0;margin:0;border:1px solid #dce5ed;border-radius:12px;padding:14px}
body.restaurant-view .rest-profile-group legend {font-weight:700;padding:0 5px}
body.restaurant-view .rest-profile-group label {min-width:0}
body.restaurant-view #restaurant-history-range {display:none}
body.restaurant-view [data-history-role="restaurant"] #restaurant-history-range {display:block;margin-top:4px;font-size:.85rem;color:#486176}
@media(max-width:600px) {body.restaurant-view .rest-profile-group{grid-template-columns:minmax(0,1fr);gap:10px}body.restaurant-view .rest-week-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Restaurant dashboard: keep the photo controls one tap away while prioritising decisions. */
body.restaurant-view #create-order-panel .eyebrow { display:none; }
body.restaurant-view #create-order-panel .section-title { margin-bottom:12px; }
body.restaurant-view #photo-order-form { gap:12px; margin-bottom:0; padding-bottom:12px; }
body.restaurant-view #manual-order-details { padding-top:0; margin-top:10px; }
body.restaurant-view #photo-order-form legend { font-weight:600; }
@media(min-width:760px) {
  body.restaurant-view #photo-order-form {
    grid-template-columns:minmax(170px,1fr) minmax(230px,1.5fr) auto;
    align-items:end;
  }
  body.restaurant-view #photo-order-form fieldset { grid-column:auto; min-width:0; }
  body.restaurant-view #photo-order-form .form-actions { grid-column:auto; margin:0; }
  body.restaurant-view #photo-order-form .button,
  body.restaurant-view #photo-order-form .ready-time-option span { min-height:44px; }
}
body.restaurant-view .restaurant-incoming-orders:not([hidden]) {
  display:grid; gap:10px; margin:0 0 22px; padding:16px;
  border:1px solid #e5c890; border-inline-start:4px solid #aa741d;
  border-radius:14px; background:#fffbf3; color:#23384b;
}
body.restaurant-view .restaurant-incoming-orders[hidden],
body.restaurant-view .restaurant-incoming-orders .okp-feedback:empty { display:none; }
body.restaurant-view .restaurant-incoming-orders h3 { margin:0; }
body.restaurant-view .restaurant-incoming-orders .okp-card { background:white; min-width:0; }
body.restaurant-view .restaurant-incoming-orders button { min-height:44px; }
body.restaurant-view #orders-list .restaurant-active-card { gap:12px; border-radius:14px; padding:16px; }
body.restaurant-view .restaurant-active-card .restaurant-order-channel {
  color:#4a5f72; font-size:.82rem; font-weight:650; overflow-wrap:anywhere;
}
body.restaurant-view .restaurant-active-card .order-top { row-gap:7px; }
body.restaurant-view .restaurant-active-card .restaurant-active-price { font-size:1rem; white-space:normal; }
body.restaurant-view .restaurant-active-card .restaurant-location-time { color:#516478; grid-column:2; }
body.restaurant-view .restaurant-active-card .order-actions {
  display:flex; flex-wrap:wrap; gap:8px; align-items:stretch;
}
body.restaurant-view .restaurant-active-card .order-actions:empty { display:none; }
body.restaurant-view .restaurant-active-card .order-actions>.button { width:auto; min-height:44px; }
body.restaurant-view .restaurant-active-card .order-actions>.button:focus-visible,
body.restaurant-view .restaurant-incoming-orders button:focus-visible { outline:3px solid #1764a8; outline-offset:2px; }
@media(max-width:480px) {
  body.restaurant-view #create-order-panel,body.restaurant-view #orders-list .restaurant-active-card,
  body.restaurant-view .restaurant-incoming-orders:not([hidden]) { padding:12px; }
  body.restaurant-view .restaurant-active-card .order-actions>.button { flex:1 1 8em; }
}

body.restaurant-view #okp-restaurant .okp-restaurant-tabs {display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; border-bottom:1px solid #d8e2eb; padding-bottom:.75rem;}
body.restaurant-view #okp-restaurant .okp-restaurant-tabs .button[aria-pressed="true"] {background:#18374c; color:white;}
body.restaurant-view #okp-restaurant .okp-mode-guide {flex-basis:100%; margin:.1rem 0 .35rem;}
body.restaurant-view #okp-restaurant .okp-facts dd {margin:0; overflow-wrap:anywhere;}

#restaurant-desk-bar, .order-entry-heading-desktop { display:none; }
@media (min-width:760px) {
 body.restaurant-view {
   --rest-frame:100%;
   --rest-side:clamp(12px,1.25vw,24px);
   background:#f2f6fb;
 }
 body.restaurant-view .topbar {
   display:flex; justify-content:space-between; align-items:center; height:68px; gap:16px;
   padding-inline:var(--rest-side);
   border-bottom:1px solid #dce5ee; background:#fff;
 }
 body.restaurant-view .topbar #restaurant-menu-toggle { display:none; }
 body.restaurant-view .topbar #brand-home {width:auto; min-width:0}
 body.restaurant-view .topbar .brand-logo {height:36px;width:auto;object-position:left center}
 body.restaurant-view .topbar #account {margin-left:auto;gap:16px;min-width:0}
 body.restaurant-view .topbar #whoami {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:42vw;color:#193550;font-weight:700}
 body.restaurant-view .topbar #logout {border-left:1px solid #cfdae6;border-radius:0;padding-left:16px;color:#22476a}
 body.restaurant-view main {box-sizing:border-box;width:var(--rest-frame);max-width:none;margin:0 auto;padding:0 var(--rest-side) 56px}
 body.restaurant-view #app-view>.page-head {display:none!important}
 body.restaurant-view #restaurant-desk-bar {
   display:flex;align-items:center;gap:12px;min-width:0;margin:0 0 22px;padding:0;
   border-bottom:1px solid #cfdde9;background:#fff;
   box-shadow:0 0 0 100vmax #fff;clip-path:inset(0 -100vmax);
 }
 body.restaurant-view #restaurant-sections {
   display:flex;align-items:stretch;flex:1 1 auto;flex-wrap:nowrap;min-width:0;gap:clamp(4px,1vw,16px);
   overflow-x:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;
 }
 body.restaurant-view .restaurant-section-link {
   display:flex;align-items:center;min-height:54px;flex:0 0 auto;padding:0 clamp(6px,1vw,14px);
   background:transparent;color:#324c66;border:0;border-bottom:3px solid transparent;
   border-radius:0;font-size:clamp(.82rem,1.2vw,1rem);font-weight:650;white-space:nowrap
 }
 body.restaurant-view .restaurant-section-link svg {display:none}
 body.restaurant-view .restaurant-section-link[aria-current="page"] {
   border-bottom-color:#145fc9;background:transparent;color:#103765;font-weight:750
 }
 body.restaurant-view .restaurant-section-link:hover {background:#f2f7fc}
 body.restaurant-view #restaurant-desk-refresh {display:inline-flex;align-items:center;justify-content:center;flex:none;gap:7px;min-height:38px;
   padding:6px 12px;color:#1654a3;background:#fff;border:1px solid #abc4e2}
 body.restaurant-view #restaurant-home-refresh,
 body.restaurant-view .okp-restaurant-tabs [data-restaurant-platform-reload] {display:none}
 body.restaurant-view #app-view:not(.hidden):has(>#create-order-panel:not(.hidden)):has(>#orders-panel:not(.hidden)) {
   display:grid;grid-template-columns:clamp(245px,28%,360px) minmax(0,1fr);column-gap:clamp(16px,2vw,30px);align-items:start
 }
 body.restaurant-view #app-view>#restaurant-desk-bar,
 body.restaurant-view #app-view>#notice {grid-column:1/-1}
 body.restaurant-view #app-view:has(>#orders-panel:not(.hidden))>#create-order-panel:not(.hidden) {grid-column:1}
 body.restaurant-view #app-view:has(>#create-order-panel:not(.hidden))>#orders-panel:not(.hidden) {grid-column:2;min-width:0}
 body.restaurant-view #create-order-panel {
   padding:clamp(16px,1.5vw,24px);border:1px solid #cfdeeb;border-radius:14px;background:#fff;min-width:0;
   box-shadow:0 5px 16px rgb(22 53 89 /.045)
 }
 body.restaurant-view #create-order-panel .order-entry-heading-default {display:none}
 body.restaurant-view #create-order-panel .order-entry-heading-desktop {display:inline}
 body.restaurant-view #create-order-panel .section-title {margin:0 0 18px}
 body.restaurant-view #create-order-panel .section-title h2 {margin:0;font-size:clamp(1.18rem,1.8vw,1.5rem)}
 body.restaurant-view #photo-order-form {display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:stretch}
 body.restaurant-view #photo-order-form > fieldset,body.restaurant-view #photo-order-form > .form-actions {
   grid-column:1/-1;min-width:0;margin:0
 }
 body.restaurant-view #photo-order-form legend {margin-bottom:8px;color:#254563;font-weight:650}
 body.restaurant-view #photo-order-form .receipt-photo-options button {min-height:66px;flex-direction:column;gap:5px}
 body.restaurant-view #photo-order-form .ready-time-options {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}
 body.restaurant-view #photo-order-form .ready-time-option span {padding-inline:2px;white-space:nowrap}
 body.restaurant-view #photo-order-form .form-actions>.button {width:100%;min-height:44px}
 body.restaurant-view #receipt-scan-state:empty {display:none}
 body.restaurant-view #create-order-panel #order-form {grid-template-columns:minmax(0,1fr)}
 body.restaurant-view #create-order-panel #manual-order-details {margin:12px 0 0}
}
@media (min-width:1150px) {
 body.restaurant-view .restaurant-section-link {gap:.45rem}
 body.restaurant-view .restaurant-section-link svg {
   display:block;width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round
 }
}

/* Restaurant operations, active rows and integration queue. */
body.restaurant-view #orders-list {gap:6px;}
body.restaurant-view .restaurant-incoming-orders .okp-inbox {grid-template-columns:minmax(0,1fr);gap:7px;}
body.restaurant-view .restaurant-incoming-orders .rp-incoming-count {color:#683a05;background:#ffdaa0;border-radius:6px;padding:2px 8px;font-size:.88em;margin-inline-start:4px;}
body.restaurant-view #orders-panel[data-history-role=""]>.section-title {display:flex;justify-content:start;align-items:center;gap:8px;margin:0 0 7px;background:#e8eef7;border-radius:9px;padding:7px 12px;}
body.restaurant-view #orders-panel[data-history-role=""]>.section-title #orders-eyebrow {display:none;}
body.restaurant-view #orders-panel[data-history-role=""]>.section-title h2 {font-size:1.08rem;margin:0;}
body.restaurant-view #orders-panel[data-history-role=""]>.section-title .count-pill {background:#d5e6fd;color:#18426d;font-weight:700;}
body.restaurant-view #orders-list .rp-order-row,
body.restaurant-view .restaurant-incoming-orders .rp-pending-row {display:block;overflow:visible;margin:0;border:1px solid #d9e1ec;border-inline-start:5px solid #70b1fa;padding:0;border-radius:11px;background:#fff;box-shadow:0 1px 3px #1738620a;}
body.restaurant-view .rp-order-row .rp-order-toggle,
body.restaurant-view .rp-pending-row .rp-pending-toggle {appearance:none;box-sizing:border-box;border:0;background:transparent;color:#17273e;min-width:0;width:100%;text-align:start;font:inherit;cursor:pointer;position:relative;}
body.restaurant-view .rp-order-row .rp-order-toggle {padding:12px 33px 12px 14px;display:flex;align-items:center;gap:12px;min-height:48px;}
body.restaurant-view .rp-order-name {min-width:0;overflow-wrap:anywhere;font-size:1rem;}
body.restaurant-view .rp-short-address {color:#4a596d;font-size:.88rem;min-width:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-inline-start:1px solid #d6dfeb;padding-inline-start:12px;flex:1;}
body.restaurant-view .rp-order-toggle .badge,body.restaurant-view .rp-pending-status {font-size:.8rem;font-weight:650;padding:4px 8px;border-radius:6px;line-height:1.25;}
body.restaurant-view .rp-order-toggle .badge.waiting,body.restaurant-view .rp-pending-status {background:#fff0cc;color:#784500;}
body.restaurant-view .rp-order-toggle .badge.assigned {background:#e1effe;color:#164d86;}
body.restaurant-view .rp-order-toggle .badge.picked_up {background:#dff2e5;color:#165731;}
body.restaurant-view .rp-review-cue {font-size:.72rem;color:#843d0b;}
body.restaurant-view .rp-order-toggle .rp-prep-badge {background:#e1effe;color:#164d86;}
body.restaurant-view .rp-arrival-cue {font-size:.82rem;color:#843d0b;}
body.restaurant-view .rp-order-status {font-size:.82rem;color:#4a596d;}
body.restaurant-view :is(.rp-order-toggle,.rp-pending-toggle)::after {content:'';display:block;position:absolute;inset-inline-end:15px;top:50%;width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-65%) rotate(-45deg);}
body.restaurant-view [data-row-open="true"]>:is(.rp-order-toggle,.rp-pending-toggle)::after {transform:translateY(-35%) rotate(225deg);}
body.restaurant-view :is(.rp-order-toggle,.rp-pending-toggle):focus-visible {outline:3px solid #1764a8;outline-offset:-3px;border-radius:8px;}
body.restaurant-view .rp-order-detail {padding:14px;border-top:1px solid #e3e9f1;}
body.restaurant-view .rp-order-row[data-row-open="false"]>.rp-order-detail {display:none;}
body.restaurant-view .restaurant-incoming-orders:not([hidden]) {background:none;border:0;border-radius:0;padding:0;gap:8px;}
body.restaurant-view .restaurant-incoming-orders>h3 {background:#fff1d8;color:#6a3b0a;padding:8px 12px;border-radius:9px;font-size:1.08rem;}
body.restaurant-view .restaurant-incoming-orders .rp-pending-row {border-inline-start-color:#f3b637;padding:12px 14px;position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(154px,32%);grid-template-rows:auto 1fr;column-gap:12px;row-gap:4px;}
body.restaurant-view .rp-pending-heading {display:flex;flex-wrap:wrap;align-items:center;gap:8px;grid-column:1;}
body.restaurant-view .rp-pending-title {font-size:1rem;margin:0;overflow-wrap:anywhere;}
body.restaurant-view .rp-pending-row .rp-pending-toggle {display:none;}
body.restaurant-view .rp-pending-body {display:contents;}
body.restaurant-view .rp-pending-facts {grid-column:1;min-width:0;}
body.restaurant-view .rp-pending-facts p {margin:.14em 0;line-height:1.4;overflow-wrap:anywhere;}
body.restaurant-view .rp-pending-customer,body.restaurant-view .rp-pending-payment {font-weight:600;}
body.restaurant-view .rp-pending-time {color:#516478;font-size:.77rem;}
body.restaurant-view .rp-pending-actions {grid-column:2;grid-row:1/3;align-self:center;display:grid;gap:7px;min-width:0;}
body.restaurant-view .rp-pending-actions .button {min-height:44px;width:100%;justify-content:center;margin:0;}
body.restaurant-view .rp-pending-actions .button.primary {background:#085bd8;color:white;}
body.restaurant-view .rp-pending-actions .button.secondary {background:white;border:1px solid #83abe4;color:#134b98;}
body.restaurant-view .rp-pending-row>.okp-confirm {grid-column:1/-1;}

@media(max-width:759px){
 body.restaurant-view .rp-short-address {display:none;}
 body.restaurant-view .rp-order-row .rp-order-toggle {gap:6px 8px;flex-wrap:wrap;padding:10px 28px 10px 10px;}
 body.restaurant-view .rp-order-name {flex:1 1 100%;}
 body.restaurant-view .rp-order-toggle .badge {font-size:.76rem;}
 body.restaurant-view .rp-order-detail {padding:12px;}
 body.restaurant-view .restaurant-incoming-orders .rp-pending-row {display:block;padding:0;}
 body.restaurant-view .rp-pending-heading {display:none;}
 body.restaurant-view .rp-pending-row .rp-pending-toggle {display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;padding:11px 32px 9px 12px;}
 body.restaurant-view .rp-pending-preview {display:none;flex-basis:100%;color:#46546a;font-size:.86rem;}
 body.restaurant-view .rp-pending-row[data-row-open="false"] .rp-pending-preview {display:block;}
 body.restaurant-view .rp-pending-row[data-row-open="false"] .rp-pending-status {display:none;}
 body.restaurant-view .rp-pending-row[data-row-open="false"] .rp-pending-body {display:none;}
 body.restaurant-view .rp-pending-body {display:block;padding:0 12px 12px;}
 body.restaurant-view .rp-pending-actions {margin-top:8px;}
 body.restaurant-view .rp-pending-row>.okp-confirm {margin:0 12px 12px;}
}

#restaurant-mobile-order-header {display:none}
@media(max-width:759px){
 body.restaurant-view[data-restaurant-orders-home] #restaurant-mobile-order-header {
  display:grid;gap:12px;padding:0 0 14px
 }
 body.restaurant-view[data-restaurant-orders-home] #app-view:not(.hidden) #create-order-panel,
 body.restaurant-view[data-restaurant-orders-home] #app-view>.page-head {display:none!important}
 .restaurant-mobile-page-title,.restaurant-sheet-heading {display:flex;align-items:center;justify-content:space-between;gap:12px}
 .restaurant-mobile-page-title h1 {margin:0;font-size:1.45rem}
 #restaurant-mobile-refresh,#restaurant-new-order-trigger {min-height:44px}
 #restaurant-new-order-trigger {width:100%;justify-content:center}
 #restaurant-new-order-sheet[open] {
  box-sizing:border-box;inset:auto 0 0;margin:0 auto;width:100%;max-width:620px;
  max-height:90vh;max-height:90dvh;padding:0 0 max(16px,env(safe-area-inset-bottom));
  overflow:auto;overscroll-behavior:contain;border:0;border-radius:20px 20px 0 0;
  color:#172e42;background:#fff;box-shadow:0 -8px 40px #18345b26
 }
 #restaurant-new-order-sheet::backdrop {background:#14283b85}
 #restaurant-new-order-sheet .restaurant-sheet-heading {
  position:sticky;top:0;z-index:1;background:#fff;padding:14px 16px 10px;border-bottom:1px solid #dce5ed
 }
 #restaurant-new-order-sheet .restaurant-sheet-heading h2 {margin:0;font-size:1.2rem}
 #restaurant-new-order-sheet .restaurant-sheet-heading button {min-height:44px}
 #restaurant-new-order-sheet #create-order-panel {
  display:block!important;box-shadow:none;margin:0;padding:14px 16px;border:0
 }
 #restaurant-new-order-sheet #create-order-panel>.section-title {display:none}
 #restaurant-new-order-sheet .restaurant-sheet-error:not([hidden]) {margin:12px 16px 0;color:#a0212e}
 #restaurant-new-order-sheet input,#restaurant-new-order-sheet select,#restaurant-new-order-sheet textarea {font-size:max(1rem,16px)}
}

@media(max-width:759px) {
 body.restaurant-view #restaurant-drawer {
   --restaurant-menu-safe-x:max(8px,env(safe-area-inset-left));
   --restaurant-menu-right:max(8px,env(safe-area-inset-right));
   --restaurant-menu-bottom:max(8px,env(safe-area-inset-bottom));
   --restaurant-menu-width:min(276px,calc(100% - var(--restaurant-menu-safe-x) - var(--restaurant-menu-right)));
   position:fixed;
   inset:auto;
   top:max(4px,var(--restaurant-menu-anchor-y,64px));
   left:clamp(var(--restaurant-menu-safe-x),var(--restaurant-menu-anchor-x,12px),calc(100% - var(--restaurant-menu-width) - var(--restaurant-menu-right)));
   width:var(--restaurant-menu-width);
   height:auto; max-height:calc(100vh - var(--restaurant-menu-anchor-y,64px) - var(--restaurant-menu-bottom));
   max-height:calc(100dvh - var(--restaurant-menu-anchor-y,64px) - var(--restaurant-menu-bottom));
   min-height:0; padding:6px; gap:0; border:1px solid #d1dfeb; border-radius:12px;
   background:#fff; box-shadow:0 12px 28px rgb(16 42 67 /.17);
   transform:none; visibility:hidden; pointer-events:none; transition:none; overflow:hidden;
 }
 body.restaurant-view.restaurant-drawer-open #restaurant-drawer {visibility:visible;pointer-events:auto}
 body.restaurant-view #restaurant-drawer .drawer-heading {height:45px;min-height:45px;gap:8px;padding:0 0 0 9px}
 body.restaurant-view #restaurant-drawer .drawer-heading strong {font-size:.86rem;color:#334c64}
 body.restaurant-view #restaurant-menu-close {display:grid;place-items:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:0;font-size:1.15rem}
 body.restaurant-view #restaurant-drawer .drawer-scroll {flex:0 1 auto;gap:0;padding:3px 0 0;overflow:auto}
 body.restaurant-view #restaurant-drawer .drawer-note {display:none}
 body.restaurant-view #restaurant-drawer-nav {display:grid;gap:1px;margin:0;padding:0}
 body.restaurant-view #restaurant-drawer-nav .admin-nav-link {min-height:44px;height:auto;gap:11px;padding:8px 11px;border-radius:8px;font-weight:550;font-size:.91rem;line-height:1.25}
 body.restaurant-view #restaurant-drawer-nav svg {display:block;width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
 body.restaurant-view #restaurant-drawer-nav [aria-current="page"] {background:#e7f1fd;color:#154f8e;font-weight:700;box-shadow:inset 3px 0 #286ab3}
 body.restaurant-view #restaurant-drawer button:focus-visible {outline:2px solid #286ab3;outline-offset:-2px}
 body.restaurant-view #restaurant-drawer-backdrop {background:rgb(16 42 67 /.18)}
}

@media(max-width:759px){
 #restaurant-new-order-sheet[open] {
   transform:translateY(var(--restaurant-sheet-offset,0px));
   transition:transform .16s ease-out;
 }
 #restaurant-new-order-sheet[data-dragging] {transition:none}
 #restaurant-new-order-sheet .restaurant-sheet-heading {
   padding-top:25px;
   touch-action:pinch-zoom;
   user-select:none;
 }
 #restaurant-new-order-sheet .restaurant-sheet-heading::before {
   content:"";
   position:absolute;top:8px;left:50%;transform:translateX(-50%);
   width:42px;height:5px;border-radius:4px;background:#8598aa;
   pointer-events:none;
 }
}
@media(prefers-reduced-motion:reduce){
 #restaurant-new-order-sheet[open] {transition:none}
}

/* Restaurant business profile */
body.restaurant-view:has(#app-view:not(.hidden) > #restaurant-business-profile-panel:not(.hidden)) {
  background: #eaf1f9;
}
body.restaurant-view #restaurant-business-profile-panel {
  --profile-ink: #111f34;
  --profile-muted: #435366;
  --profile-border: #dce3ec;
  padding: 0;
  margin: 0;
  min-width: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--profile-ink);
}
body.restaurant-view #restaurant-business-profile-panel > .section-title {
  margin: 0 0 5px;
}
body.restaurant-view #restaurant-business-profile-panel > .section-title .eyebrow {
  display: none;
}
body.restaurant-view #restaurant-business-profile-panel > .section-title h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}
body.restaurant-view #restaurant-business-profile-panel > .rest-profile-subtitle {
  margin: 0 0 clamp(16px, 1.65vw, 26px);
  color: var(--profile-muted);
  line-height: 1.45;
  font-size: 1rem;
}
body.restaurant-view #restaurant-business-profile-panel .rest-profile-subtitle-mobile {
  display: none;
}
body.restaurant-view #restaurant-business-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "contact address" "contact payment" "save save";
  gap: clamp(12px, 1.25vw, 20px);
  align-items: stretch;
  margin: 0;
  min-width: 0;
}
body.restaurant-view #restaurant-business-profile-form > [data-profile-group="contact"] { grid-area: contact; }
body.restaurant-view #restaurant-business-profile-form > [data-profile-group="address"] { grid-area: address; }
body.restaurant-view #restaurant-business-profile-form > [data-profile-group="payment"] { grid-area: payment; }
body.restaurant-view #restaurant-business-profile-form .rest-profile-card {
  margin: 0;
  min-width: 0;
  padding: clamp(18px, 1.8vw, 30px);
  border: 1px solid var(--profile-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(24 51 81 / .045);
}
body.restaurant-view #restaurant-business-profile-form .rest-profile-card-heading {
  margin: 0;
  font-size: clamp(1.12rem, 1.5vw, 1.45rem);
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -.018em;
}
body.restaurant-view #restaurant-business-profile-form .rest-profile-heading-static,
body.restaurant-view #restaurant-business-profile-form .rest-profile-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}
body.restaurant-view #restaurant-business-profile-form .rest-profile-icon {
  flex: 0 0 auto;
  width: 1.45em;
  height: 1.45em;
}
body.restaurant-view #restaurant-business-profile-form [hidden] { display: none !important; }
body.restaurant-view #restaurant-business-profile-form .rest-profile-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 20px;
}
body.restaurant-view #restaurant-business-profile-form .rest-profile-fields > label {
  min-width: 0;
  gap: 6px;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.35;
  color: #334558;
}
body.restaurant-view #restaurant-business-profile-form :is(input, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #afbbc8;
  border-radius: 8px;
  background: #fff;
  color: #17283d;
  font-family: inherit;
  font-size: max(16px, 1rem);
  font-weight: 450;
  line-height: 1.4;
  scroll-margin-block: 5rem;
}
body.restaurant-view #restaurant-business-profile-form textarea {
  min-height: 88px;
  resize: vertical;
}
body.restaurant-view #restaurant-business-profile-form :is(input, textarea):focus {
  outline: 2px solid #2467bc;
  outline-offset: 1px;
  border-color: #2467bc;
}
body.restaurant-view #restaurant-business-profile-form .rest-profile-save {
  grid-area: save;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
}
body.restaurant-view #restaurant-business-profile-form .rest-profile-save > button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 46px;
  padding: 11px 22px;
  background: #065ccf;
  color: #fff;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}
body.restaurant-view #restaurant-business-profile-form .rest-profile-save-icon {
  height: 1.3em;
  width: 1.3em;
  flex: 0 0 auto;
}
body.restaurant-view #restaurant-business-profile-form button:focus-visible {
  outline: 3px solid #195aa7;
  outline-offset: 3px;
}
body.restaurant-view #restaurant-business-profile-panel > .account-password-section {
  display: block;
  margin-top: 22px;
}

@media (max-width: 759px) {
  body.restaurant-view main:has(> #app-view:not(.hidden) > #restaurant-business-profile-panel:not(.hidden)) {
    padding: 18px max(10px, env(safe-area-inset-right)) 32px max(10px, env(safe-area-inset-left));
  }
  /* Keep the existing mobile refresh action alongside the page title. */
  body.restaurant-view #app-view:has(> #restaurant-business-profile-panel:not(.hidden)) > .page-head {
    float: right;
    position: relative;
    margin: 0 0 4px 8px;
  }
  body.restaurant-view #restaurant-business-profile-panel > .section-title {
    margin-inline: 4px;
  }
  body.restaurant-view #restaurant-business-profile-panel > .section-title h2 {
    font-size: 1.55rem;
  }
  body.restaurant-view #restaurant-business-profile-panel > .rest-profile-subtitle {
    clear: both;
    margin: 0 4px 16px;
    font-size: .94rem;
  }
  body.restaurant-view #restaurant-business-profile-panel .rest-profile-subtitle-mobile { display: inline; }
  body.restaurant-view #restaurant-business-profile-panel .rest-profile-subtitle-desktop { display: none; }
  body.restaurant-view #restaurant-business-profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: calc(100vh - 128px);
    min-height: calc(100svh - 128px);
  }
  body.restaurant-view #restaurant-business-profile-form .rest-profile-card {
    padding: 0;
    border-radius: 13px;
  }
  body.restaurant-view #restaurant-business-profile-form .rest-profile-card-heading {
    font-size: 1.12rem;
  }
  body.restaurant-view #restaurant-business-profile-form .rest-profile-toggle {
    width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 13px 16px;
    gap: 12px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--profile-ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
  }
  body.restaurant-view #restaurant-business-profile-form .rest-profile-toggle:focus-visible {
    outline-offset: -3px;
    border-radius: 12px;
  }
  body.restaurant-view #restaurant-business-profile-form .rest-profile-label {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 3px;
  }
  body.restaurant-view #restaurant-business-profile-form .rest-profile-preview {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--profile-muted);
    font-size: .875rem;
    font-weight: 450;
    line-height: 1.4;
    letter-spacing: 0;
  }
  body.restaurant-view #restaurant-business-profile-form .rest-profile-chevron {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }
  body.restaurant-view #restaurant-business-profile-form [aria-expanded="true"] > .rest-profile-chevron {
    transform: rotate(180deg);
  }
  body.restaurant-view #restaurant-business-profile-form .rest-profile-fields {
    margin: 0;
    padding: 0 15px 17px;
    gap: 12px;
  }
  body.restaurant-view #restaurant-business-profile-form .rest-profile-fields > label {
    font-size: .92rem;
    gap: 5px;
  }
  /* A sticky last item stays inside the profile form and scrolls away
     before the separate password form comes into view. */
  body.restaurant-view #restaurant-business-profile-form .rest-profile-save {
    position: sticky;
    bottom: 0;
    z-index: 2;
    align-self: stretch;
    margin-top: auto;
    padding: 11px 12px max(11px, env(safe-area-inset-bottom));
    border: 1px solid var(--profile-border);
    border-radius: 13px 13px 0 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgb(24 51 81 / .06);
  }
  body.restaurant-view #restaurant-business-profile-form .rest-profile-save > button {
    width: 100%;
    min-height: 46px;
  }
  body.restaurant-view #restaurant-business-profile-form :is(input, textarea) {
    scroll-margin-bottom: calc(86px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 759px) and (max-height: 480px) {
  body.restaurant-view #restaurant-business-profile-form { min-height: 0; }
  body.restaurant-view #restaurant-business-profile-form .rest-profile-save { position: static; }
}

/* OnlyKurye kurye ana ekranı · kuryehome1 */
body.courier-view.courier-home-view #app-view > .page-head {
  justify-content:space-between;
  flex-wrap:nowrap;
}
body.courier-view.courier-home-view #courier-status-control {
  margin-inline:0 auto;
  min-width:0;
}
body.courier-view.courier-home-view #courier-status-menu {
  left:0;
  right:auto;
  max-width:calc(100vw - 32px);
}
body.courier-view.courier-home-view #courier-status-toggle {
  min-width:min(134px,49vw);
}
body.courier-view.courier-home-view #courier-status-toggle.busy {
  color:#872225;
  border-color:#efb4b6;
  background:#fce9e9;
}
body.courier-view.courier-home-view #courier-home-gps {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  column-gap:8px;
  padding:4px 3px 0;
  min-height:20px;
}
body.courier-view.courier-home-view #courier-panel-map-health {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:.75rem;
  font-weight:500;
  line-height:1.4;
  color:#475569;
}
body.courier-view.courier-home-view #courier-panel-map-health::before {
  content:"";
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:#718093;
}
body.courier-view.courier-home-view #courier-home-gps[data-signal="current"] #courier-panel-map-health::before {background:#238452}
body.courier-view.courier-home-view #courier-home-gps[data-signal="stale"] #courier-panel-map-health::before {background:#ae680c}
body.courier-view.courier-home-view #courier-home-retry {
  padding:4px 10px;
  min-height:40px;
  font-size:.8125rem;
}
body.courier-view.courier-home-view #courier-home-gps-issue {font-size:.75rem;color:#6e4c14}
body.courier-view.courier-home-view #orders-panel > .section-title {display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:10px}
body.courier-view.courier-home-view #plan-route {margin-inline-start:auto;min-height:44px}
body.courier-view.courier-home-view #courier-home-plan {margin:0 0 14px}
body.courier-view.courier-home-view #courier-home-plan .orders-list {margin-top:6px}
#courier-home-gps[hidden], #courier-home-retry[hidden], #courier-home-gps-issue[hidden],
#courier-home-plan[hidden], #plan-route[hidden], body:not(.courier-home-view) #plan-route,
body:not(.courier-home-view) #courier-home-plan, body:not(.courier-view) #plan-route,
body:not(.courier-view) #courier-home-plan {display:none!important}
@media(max-width:760px) {
  body.courier-view.courier-home-view #orders-panel > .section-title {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
  }
  body.courier-view.courier-home-view #plan-route {grid-column:1 / -1;width:100%;margin:0}
  body.courier-view.courier-home-view #courier-home-retry {min-height:44px}
}

/* Restaurant order notification sound */
body.restaurant-view .restaurant-sound-toggle {
  box-sizing:border-box;display:inline-grid;place-items:center;flex:none;
  inline-size:38px;block-size:38px;min-height:38px;min-width:0;padding:0;
  color:#1654a3;background:#fff;border:1px solid #abc4e2;border-radius:9px;
}
body.restaurant-view .restaurant-sound-toggle[hidden],
.restaurant-sound-toggle[data-sound="on"] .sound-cross,
.restaurant-sound-toggle[data-sound="off"] .sound-waves {display:none;}
body.restaurant-view .restaurant-sound-toggle[data-sound="off"] {color:#516478;}
body.restaurant-view .restaurant-sound-toggle:not(:disabled):hover {background:#f0f5fb;}
body.restaurant-view .restaurant-sound-toggle:focus-visible {outline:2px solid #175ab3;outline-offset:2px;}
@media(min-width:760px) {
  body.restaurant-view[data-restaurant-orders-home] #restaurant-desk-bar {column-gap:8px;margin-bottom:14px;}
}
@media(max-width:759px) {
  body.restaurant-view[data-restaurant-orders-home] #restaurant-mobile-order-header {padding-bottom:8px;}
  body.restaurant-view .restaurant-mobile-page-title {gap:8px;}
  body.restaurant-view .restaurant-mobile-page-title > .restaurant-sound-toggle {
    inline-size:44px;block-size:44px;min-height:44px;margin-inline-start:auto;
  }
}

/* OnlyKurye administrator restaurant board */
#restaurant-board, #rb-action {
  box-sizing: border-box; padding: 0; border: 1px solid #c7d6e5; border-radius: 16px;
  color: #112e4a; background: white; box-shadow: 0 18px 68px #0d253c38; font: inherit;
}
#restaurant-board { width: min(1536px, 96vw); max-width: 96vw; height: min(1080px, 90vh); height: min(1080px, 90dvh); max-height: 94dvh; margin: auto; overflow: hidden; }
#restaurant-board[open] { display: flex; flex-direction: column; }
#restaurant-board::backdrop { background: rgb(20 40 66 / 47%); }
#restaurant-board [hidden] { display: none !important; }
#restaurant-board button, #restaurant-board input { font-family: inherit; }
#restaurant-board button, .rb-trigger { cursor: pointer; }
#restaurant-board button:disabled { opacity: .55; cursor: default; }
#restaurant-board button:focus-visible, #restaurant-board input:focus-visible, #restaurant-board .rb-rows:focus-visible, .rb-trigger:focus-visible { outline: 3px solid #2477bf; outline-offset: -2px; }
.rb-header, .rb-toolbar { display: flex; align-items: center; gap: 12px; padding: 15px 22px; flex: none; }
.rb-header { border-bottom: 1px solid #dce5ef; }
.rb-shop-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #ccd9e8; border-radius: 10px; background: #f2f7fb; color: #21456a; }
#restaurant-board h2, #restaurant-board h3, #restaurant-board p { margin: 0; }
#rb-title { font-size: 24px; line-height: 1.2; } #rb-count, #rb-action-order { color: #526982; font-size: 13px; margin-top: 3px !important; }
.rb-icon-button, .rb-text-button, .rb-more, .rb-assign, .rb-filters button, .rb-command {
  border: 1px solid #cad9e7; background: #f7faff; border-radius: 7px; font-weight: 650; color: #163856; padding: 6px 10px;
}
.rb-icon-button { margin-left: auto; font-size: 22px; width: 36px; height: 36px; line-height: 1; padding: 2px; flex: none; }
.rb-toolbar { flex-wrap: wrap; gap: 8px; padding-block: 10px; }
.rb-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.rb-filters button, .rb-text-button { font-size: 13px; min-height: 33px; }
.rb-filters [aria-pressed="true"], .rb-trigger { color: #0d518a; background: #e6f2ff; border-color: #86b9ea; }
.rb-trigger { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; } .rb-trigger svg { width: 15px; height: 15px; }
#rb-search { margin-left: auto; padding: 6px 10px; width: min(220px, 100%); min-height: 33px; border: 1px solid #c3d3e2; border-radius: 7px; font-size: 14px; }
#rb-notice, #rb-action-message { background: #eff6fb; color: #254c6d; padding: 7px 14px; font-size: 13px; }
#rb-notice[data-error="true"], #rb-action-message[data-error="true"] { background: #fff1e9; color: #7e330e; }
.rb-scroll { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; background: #f0f5fa; padding: 14px; border-top: 1px solid #dce5ef; }
#rb-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; align-content: start; }
.rb-card { --rb-row-height: 44px; min-width: 0; background: #fff; border: 1px solid #cedbe8; border-radius: 10px; overflow: hidden; }
.rb-card[data-priority="late"] { border-inline-start: 3px solid #d04442; } .rb-card[data-priority="waiting"] { border-inline-start: 3px solid #df9a2b; }
.rb-card-header, .rb-row { display: flex; align-items: center; gap: 7px; }
.rb-card-header { padding: 9px 12px; min-height: 43px; box-sizing: border-box; border-bottom: 1px solid #dbe6f0; }
.rb-card-header h3 { font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; } .rb-card-count { margin-left: auto; flex: none; border-radius: 16px; padding: 3px 8px; background: #eef4fa; color: #375671; font-size: 12px; font-weight: 650; }
.rb-rows { height: calc(4 * var(--rb-row-height)); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #93abc2 #f0f5fa; overflow-anchor: none; }
.rb-row { box-sizing: border-box; height: var(--rb-row-height); padding: 0 9px; border-bottom: 1px solid #e5ecf3; font-size: 13px; }
.rb-order-number { flex: none; font-variant-numeric: tabular-nums; }
.rb-state { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; padding: 3px 6px; background: #f0f3f6; color: #40526a; }
.rb-state[data-tone="late"] { background: #ffebeb; color: #a22623; } .rb-state[data-tone="waiting"] { background: #fff2d9; color: #835309; }
.rb-state[data-tone="assigned"] { background: #e9f2ff; color: #24558c; } .rb-state[data-tone="picked_up"] { background: #e2f5f1; color: #17635e; }
.rb-assign, .rb-more { min-height: 30px; flex: none; font-size: 12px; line-height: 1.1; }
.rb-assign { margin-left: auto; color: #07538c; background: #edf6ff; border-color: #87b7e3; white-space: nowrap; }
.rb-more { margin-left: auto; font-size: 17px; line-height: 1; padding: 2px 7px; } .rb-assign:not([hidden]) + .rb-more { margin-left: 0; }
#rb-empty { padding: 48px 12px; text-align: center; color: #536a81; }
#rb-action { position: fixed; margin: 0; width: min(340px, calc(100vw - 24px)); max-height: min(65vh, 490px); overflow: auto; padding: 15px; border-radius: 12px; }
#rb-action::backdrop { background: rgb(20 40 66 / 12%); }
.rb-action-header, .rb-candidate { display: flex; align-items: center; gap: 12px; }
#rb-action-title { font-size: 18px; } #rb-action-body { margin-top: 12px; }
.rb-candidate { justify-content: space-between; padding-block: 8px; border-top: 1px solid #e2eaf1; }
.rb-candidate span { display: block; color: #526982; font-size: 12px; } .rb-candidate .rb-assign { color: white; background: #1365ac; }
.rb-command { display: block; width: 100%; min-height: 36px; text-align: left; margin-top: 5px; } .rb-danger { color: #a92d2b; border-color: #efc5c4; background: #fff5f4; }
#rb-action-message:not([hidden]) { margin-top: 10px; border-radius: 6px; } #rb-action-body > p { font-size: 14px; margin-bottom: 12px; }
@media(max-width: 1150px) { #rb-grid {grid-template-columns: repeat(2,minmax(0,1fr));} }
@media(max-width: 710px) {
  #restaurant-board { width: 97vw; max-width: 97vw; height: 93dvh; max-height: 96dvh; }
  #rb-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .rb-header, .rb-toolbar { padding: 9px 12px; } .rb-scroll { padding: 8px; }
  .rb-filters { width: 100%; } #rb-search { margin-left: 0; flex: 1; min-width: 0; } .rb-row { padding-inline: 7px; }
}

#bonus-schedule-panel [hidden]{display:none!important}
#bonus-schedule-panel h2,#bonus-schedule-panel h3{margin:0 0 .55rem}
#bonus-schedule-panel>p:empty,#bonus-schedule-validation:empty{display:none}
.bonus-schedule-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);align-items:start;gap:clamp(16px,3vw,44px);margin-top:20px}
.bonus-schedule-table{width:100%;border-collapse:collapse;text-align:left;color:#15324b}
.bonus-schedule-table th{background:#eef3f8;padding:10px;color:#28415b;font-size:.92em}
.bonus-schedule-table td{padding:7px 10px;border-bottom:1px solid #dce5ee}
.bonus-schedule-table input{min-width:0;width:100%;box-sizing:border-box}
.bonus-schedule-table td:last-child{width:3em}
.bonus-schedule-money{position:relative;display:block}
.bonus-schedule-money input{padding-right:2.6em}
.bonus-schedule-money>span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#557086;pointer-events:none}
.bonus-schedule-trash{padding:6px;background:transparent;border:0;color:#425b71;min-width:32px;min-height:36px;cursor:pointer}
.bonus-schedule-trash:hover{color:#a42121}
.bonus-schedule-controls,.bonus-schedule-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bonus-schedule-controls{margin-top:12px}
.bonus-schedule-footer{margin-top:18px;padding-top:14px;border-top:1px solid #dbe5ef;justify-content:space-between}
.bonus-schedule-footer .bonus-schedule-controls{margin:0}
.bonus-schedule-preview{padding:20px;background:#f2f7fc;border:1px solid #cdddec;border-radius:12px}
.bonus-schedule-preview dl{margin:14px 0 8px}
.bonus-schedule-preview dl div{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dbe5ee;padding:9px 0}
.bonus-schedule-preview dd{margin:0;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
#bonus-schedule-after{color:#1860a8;font-size:1.3em}
.bonus-schedule-error{color:#a41b27;font-weight:600}
#bonus-schedule-panel input[aria-invalid="true"]{border-color:#b42c38}
#bonus-schedule-dialog{width:min(540px,calc(100% - 32px));max-height:85vh;overflow:auto;box-sizing:border-box;border:1px solid #cad9e6;border-radius:14px;padding:22px;color:#15324b}
#bonus-schedule-dialog::backdrop{background:rgba(16,42,67,.45)}
#bonus-schedule-dialog .bonus-schedule-controls{justify-content:flex-end}
#bonus-schedule-diff td{width:auto}
.bonus-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:740px){.bonus-schedule-grid{grid-template-columns:1fr}.bonus-schedule-preview{padding:14px}.bonus-schedule-table td,.bonus-schedule-table th{padding:6px 4px}.bonus-schedule-footer .button{min-height:40px}}

/* Restaurant weekly account */
body.restaurant-view[data-week-account] {
  --wa-ink:#10233d; --wa-muted:#53677e; --wa-line:#d6e0eb; --wa-blue:#145dc6;
  background:#f2f5fa;
}
body.restaurant-view[data-week-account] .admin-drawer[aria-hidden=true] {box-shadow:none}
body.restaurant-view[data-week-account] #app-view>.page-head {display:none!important}
body.restaurant-view[data-week-account] main {max-width:none;width:100%;padding:0 clamp(14px,2.2vw,40px) 36px}
#restaurant-account-panel.panel {
  width:100%;max-width:1660px;margin:0 auto;padding:clamp(20px,2.2vw,38px) 0 0;
  color:var(--wa-ink,#10233d);background:transparent;border:0;border-radius:0;box-shadow:none;
  font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:16px;line-height:1.45;
  font-variant-numeric:tabular-nums;
}
#restaurant-account-panel [hidden] {display:none!important}
#restaurant-account-panel :is(h2,h3,p,dl,dd,ul) {margin:0}
#restaurant-account-panel button, #restaurant-account-panel summary {font:inherit;cursor:pointer;touch-action:manipulation}
#restaurant-account-panel button:focus-visible, #restaurant-account-panel summary:focus-visible,
#restaurant-account-panel [role='tabpanel']:focus-visible, #restaurant-account-panel .wa-calendar:focus-within {
  outline:3px solid #3677db;outline-offset:3px
}
#restaurant-account-panel button:disabled {opacity:.5;cursor:default}
.wa-heading-row {display:flex;justify-content:space-between;align-items:center;gap:12px 24px;margin:0 6px clamp(18px,1.65vw,28px)}
#restaurant-account-panel .wa-heading-row h2 {font-size:clamp(26px,2.45vw,40px);line-height:1.13;letter-spacing:-.045em;font-weight:760;color:#0c213a}
#restaurant-account-panel .wa-heading-row p {margin-top:5px;color:#445970;font-size:clamp(14px,1.12vw,17px)}
.wa-week {display:flex;align-items:center;gap:8px;flex:none}
.wa-week button,.wa-calendar,.wa-pager button,.wa-history button,#wa-retry {
  border:1px solid #cad7e5;color:#173653;background:#fff;border-radius:8px;
  display:inline-flex;align-items:center;justify-content:center;min-height:42px;line-height:1.2
}
.wa-week .wa-arrow {width:42px;padding:0}
.wa-chevron {display:inline-block;width:9px;height:9px;border:solid currentColor;border-width:0 1.8px 1.8px 0;transform:rotate(-45deg);flex:none}
.wa-chevron.wa-left {transform:rotate(135deg)}
.wa-calendar {position:relative;gap:9px;margin:0;min-width:190px;padding:0 14px;color:#142e50;font-size:clamp(14px,1.04vw,17px);font-weight:700;cursor:pointer}
.wa-calendar svg,.wa-card h3 svg {width:21px;height:21px;display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wa-calendar input[type=date] {position:absolute;inset:0;height:100%;width:100%;opacity:0;cursor:pointer;margin:0;padding:0;min-width:0}
.wa-calendar input::-webkit-calendar-picker-indicator {position:absolute;inset:0;width:auto;height:auto;margin:0;cursor:pointer}
#restaurant-account-panel .wa-today {font-size:14px;font-weight:700;background:#e0edfe;border-color:#d0e1f8;color:#124b99;padding:0 16px}
#restaurant-account-panel .wa-week button:hover, .wa-calendar:hover, .wa-pager button:not(:disabled):hover, .wa-history button:not(:disabled):hover {background:#eaf2fc}
.wa-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.wa-balance,.wa-card,.wa-ledger,.wa-details,.wa-history {
  min-width:0;border:1px solid var(--wa-line);border-radius:13px;background:#fff;box-shadow:0 2px 5px rgb(24 48 76 / .035);
}
.wa-balance,.wa-card {padding:clamp(18px,1.55vw,26px);min-height:174px;display:flex;flex-direction:column}
.wa-balance {border-color:#102c48;background:#102d49;color:#fff}
.wa-balance-heading {display:flex;align-items:center;justify-content:space-between;gap:10px}
#restaurant-account-panel .wa-balance h3,#restaurant-account-panel .wa-card h3,#restaurant-account-panel .wa-details h3 {font-size:clamp(17px,1.37vw,22px);font-weight:720;line-height:1.25;letter-spacing:-.025em}
#wa-status {display:inline-flex;border-radius:7px;padding:4px 9px;background:#e6edf6;color:#213b55;font-size:13px;font-weight:700}
#wa-status[data-status=unpaid],#wa-status[data-status=partial] {background:#ffe5b2;color:#704204}
#wa-status[data-status=paid],#wa-status[data-status=overpaid] {background:#d5f3e7;color:#12543f}
#wa-balance {display:block;font-size:clamp(34px,3.05vw,52px);font-weight:760;letter-spacing:-.05em;line-height:1.15;margin:10px 0 15px;overflow-wrap:anywhere}
#restaurant-account-panel #wa-credit {margin:-8px 0 10px;color:#d9f7eb;font-size:14px}
#restaurant-account-panel #wa-details-button {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;margin-top:auto;padding:12px 3px 0 0;border:0;border-top:1px solid #547087;background:transparent;text-align:left;color:#fff;font-weight:650}
#restaurant-account-panel #wa-details-button:hover {color:#d6e9ff}
#wa-details-button[aria-expanded=true] .wa-chevron,.wa-expand[aria-expanded=true] .wa-chevron {transform:rotate(45deg)}
.wa-card h3 {display:flex;align-items:center;gap:11px;color:#10243c}
.wa-card h3 svg {height:27px;width:27px;color:#196be3}
#restaurant-account-panel .wa-card dl {display:flex;flex-direction:column;justify-content:center;flex:1;margin-top:14px}
.wa-card dl>div,.wa-details dl>div {display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:7px 0;line-height:1.35}
.wa-card dl>div+div,.wa-details dl>div {border-top:1px solid #e2e8ef}
.wa-card dt {color:#30445c;font-size:clamp(14px,1.05vw,17px)}
.wa-card dd {flex:none;font-weight:700;text-align:right}
.wa-details,.wa-history {margin-top:14px;padding:16px 22px}
#restaurant-account-panel .wa-details dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 30px;margin-top:15px;font-size:14px}
.wa-details dd {text-align:right;font-weight:650}
#restaurant-account-panel .wa-details p {margin-top:12px;color:var(--wa-muted);font-size:14px}
.wa-ledger {margin-top:clamp(16px,1.6vw,26px)}
.wa-tabs {display:flex;gap:8px;border-bottom:1px solid var(--wa-line);padding:0 clamp(12px,1.5vw,24px)}
#restaurant-account-panel .wa-tab {border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#54677b;padding:15px clamp(9px,1.0vw,16px) 12px;min-height:52px;font-weight:700}
#restaurant-account-panel .wa-tab[aria-selected=true] {color:var(--wa-blue);border-bottom-color:#1b6cdb}
.wa-count {display:inline-block;min-width:22px;padding:1px 6px;margin-left:2px;border-radius:5px;background:#e6f0ff;font-size:.88em}
#wa-fees-panel,#wa-entries-panel {padding:clamp(14px,1.55vw,26px)}
.wa-table {width:100%;border-spacing:0;border-collapse:separate;table-layout:fixed;text-align:left}
.wa-table th,.wa-table td {border:0;padding:11px clamp(8px,1.25vw,20px);font-size:clamp(14px,1.1vw,17px);line-height:1.35;vertical-align:middle}
.wa-table th {color:#24394f;background:#edf1f7;font-size:clamp(13px,1vw,16px);font-weight:700}
.wa-table th:first-child {border-radius:7px 0 0 7px;width:20%}
.wa-table th:nth-child(2) {width:16%}
.wa-table th:nth-child(3) {width:17%}
.wa-table th:nth-child(4),.wa-table th:nth-child(5) {width:21%}
.wa-table th:last-child {border-radius:0 7px 7px 0}
.wa-table td {border-bottom:1px solid #e0e7ef}
.wa-table .wa-money,.wa-col-amount,.wa-col-fee {text-align:right}
.wa-col-order,.wa-col-fee {font-weight:700}
.wa-record:hover {background:#f8fbff}
.wa-table .wa-action {padding:0 5px;text-align:center}
#restaurant-account-panel .wa-expand {display:inline-grid;place-items:center;width:35px;min-height:37px;border:0;border-radius:6px;color:#264564;background:transparent}
#restaurant-account-panel .wa-expand:hover {background:#e7f0fc}
.wa-mobile-label {display:none}
.wa-row-detail td {background:#f4f8fc}
#restaurant-account-panel .wa-row-detail dl {display:flex;gap:18px 42px;flex-wrap:wrap}
.wa-row-detail dt {color:#52677d;font-weight:600;font-size:13px}
.wa-row-detail dd {margin-top:3px;overflow-wrap:anywhere}
.wa-total {display:grid;grid-template-columns:1fr auto 6%;align-items:center;margin-top:12px;padding:12px 0;background:#e1edfd;color:#102e50;border-radius:8px;font-weight:710}
.wa-total>span,.wa-total>strong {padding:0 clamp(8px,1.25vw,20px)}
.wa-total strong {font-size:clamp(17px,1.3vw,21px)}
.wa-breakdown {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 22px;margin:15px 0 0;color:var(--wa-muted);font-size:14px}
.wa-breakdown strong {margin-left:4px;color:#213951}
.wa-pager {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;color:var(--wa-muted);font-size:14px}
.wa-pager span {margin-right:auto}
.wa-pager button,.wa-history button,#wa-retry {min-height:36px;padding:5px 12px;font-size:14px}
#restaurant-account-panel .wa-empty {padding:22px 10px;font-size:15px;color:var(--wa-muted);text-align:center}
.wa-entries,.wa-history ul {list-style:none;padding:0}
.wa-entries li,.wa-history li {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 3px;overflow-wrap:anywhere}
.wa-entries li+li,.wa-history li+li {border-top:1px solid #e1e7ef}
.wa-entries small,.wa-history small {display:block;color:var(--wa-muted);font-size:14px;margin-top:3px}
.wa-entry-amount {white-space:nowrap}
.wa-history {max-width:none}
#restaurant-account-panel .wa-history summary {color:#3b536b;font-size:15px;font-weight:650}
#restaurant-account-panel .wa-history[open] ul {margin-top:12px}
#wa-feedback {display:flex;align-items:center;gap:12px;padding:12px 15px;margin:0 0 12px;border-radius:8px;background:#e7eff9;color:#294761;font-size:14px}
#wa-feedback.wa-error {background:#fff1d9;color:#704015}
.wa-sr {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
@media(min-width:1160px) {
  body.restaurant-view[data-week-account] .topbar {height:68px;gap:clamp(10px,1.4vw,28px);padding-inline:clamp(20px,2.2vw,42px)}
  body.restaurant-view[data-week-account] .topbar #brand-home {border-right:1px solid #d2dce8;border-radius:0;padding-right:clamp(12px,2vw,36px)}
  body.restaurant-view[data-week-account] .topbar .brand-logo {height:38px}
  body.restaurant-view[data-week-account] .topbar #restaurant-desk-bar {flex:1 1 auto;align-self:stretch;margin:0;border:0;box-shadow:none;clip-path:none;gap:7px}
  body.restaurant-view[data-week-account] .topbar #restaurant-sections {align-self:stretch;gap:clamp(3px,.65vw,14px);overflow:visible}
  body.restaurant-view[data-week-account] .topbar .restaurant-section-link {padding:0 clamp(4px,.75vw,14px);color:#213650;font-size:clamp(13px,.99vw,16px);font-weight:650;gap:7px}
  body.restaurant-view[data-week-account] .topbar .restaurant-section-link[aria-current=page] {color:#134c94;border-color:#1c68d4}
  body.restaurant-view[data-week-account] .topbar .restaurant-section-link svg {display:block;width:17px;height:17px}
  body.restaurant-view[data-week-account] .topbar #restaurant-desk-refresh {min-height:36px;width:36px;padding:0;gap:0;border-color:transparent;color:#40617d;font-size:0}
  body.restaurant-view[data-week-account] .topbar #account {flex:none;padding-left:14px;border-left:1px solid #d2dce8}
  body.restaurant-view[data-week-account] .topbar #whoami {max-width:clamp(115px,12vw,240px)}
}
@media(max-width:960px) {
  .wa-heading-row {margin-inline:0}
  .wa-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .wa-balance {grid-column:1/-1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;column-gap:24px}
  .wa-balance-heading {grid-column:1/-1}
  #wa-balance {margin:8px 0 0}
  #restaurant-account-panel #wa-credit {grid-row:3;grid-column:1/-1;margin:3px 0 0}
  #restaurant-account-panel #wa-details-button {border:0;gap:16px;min-height:40px;padding:0 5px}
  .wa-card {min-height:0}
}
@media(max-width:700px) {
  body.restaurant-view[data-week-account] main {padding-inline:12px}
  #restaurant-account-panel.panel {padding-top:18px;font-size:15px}
  .wa-heading-row {align-items:flex-start;flex-direction:column;gap:14px}
  .wa-week {flex-wrap:wrap;max-width:100%;gap:6px}
  .wa-calendar {min-width:0;padding:0 9px;gap:5px;font-size:14px}
  .wa-week .wa-arrow {width:36px}
  #restaurant-account-panel .wa-today {padding-inline:10px}
  .wa-grid {grid-template-columns:minmax(0,1fr);gap:10px}
  .wa-balance,.wa-card {padding:14px 16px}
  .wa-balance {display:flex}
  #wa-balance {margin:7px 0 12px;font-size:36px}
  #restaurant-account-panel #wa-details-button {border-top:1px solid #547087;min-height:36px;padding:9px 3px 0 0}
  #restaurant-account-panel .wa-card dl {margin-top:8px}
  .wa-card dl>div {padding:5px 0}
  .wa-card h3 svg {width:22px;height:22px}
  .wa-tabs {gap:0;padding:0 7px}
  #restaurant-account-panel .wa-tab {font-size:14px;min-height:46px;padding:12px 9px 9px}
  #wa-fees-panel,#wa-entries-panel {padding:8px 12px 12px}
  .wa-table,.wa-table tbody {display:block;width:100%}
  .wa-table thead {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
  .wa-record {display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:7px 8px;padding:11px 0;border-bottom:1px solid #dde5ef}
  .wa-table .wa-record td {display:block;padding:0;border:0;text-align:left;font-size:14px}
  .wa-mobile-label {display:block;font-size:11px;font-weight:550;color:#54677c}
  .wa-col-order {grid-column:1;grid-row:1}
  .wa-table .wa-col-day {grid-column:2;grid-row:1;color:#496078}
  .wa-col-day .wa-mobile-label,.wa-col-order .wa-mobile-label {display:none}
  .wa-col-km {grid-column:1;grid-row:2}
  .wa-col-amount {grid-column:2;grid-row:2}
  .wa-col-fee {grid-column:3;grid-row:2;justify-self:end}
  .wa-record .wa-action {grid-column:3;grid-row:1;justify-self:end}
  #restaurant-account-panel .wa-expand {width:37px;min-height:32px}
  .wa-table .wa-row-detail,.wa-table .wa-row-detail td {display:block}
  .wa-table .wa-row-detail td {padding:12px}
  #restaurant-account-panel .wa-row-detail dl {display:grid;gap:8px}
  .wa-total {display:flex;justify-content:space-between;gap:8px;padding:10px;margin-top:9px}
  .wa-total>span,.wa-total>strong {padding:0}
  .wa-details,.wa-history {padding:13px 16px}
  #restaurant-account-panel .wa-details dl {grid-template-columns:minmax(0,1fr)}
  .wa-history button {flex:none}
  .wa-breakdown {flex-direction:column;align-items:flex-end}
}

/* Weekly finance statements */
body.admin-view #app-view:has(:is(#restaurant-settlement-panel,#courier-settlement-panel):not(.hidden)) > .page-head {display:none}
:is(#restaurant-settlement-panel,#courier-settlement-panel) {--rr-line:#d8e2ed;--rr-ink:#112e4a;--rr-muted:#51667b;--rr-blue:#155db0;width:100%;max-width:none;min-width:0;margin:0;padding:0;background:transparent;border:0;box-shadow:none;color:var(--rr-ink)}
:is(#restaurant-settlement-panel,#courier-settlement-panel) [hidden] {display:none!important}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-head,.rr-box-head {display:flex;align-items:center;justify-content:space-between;gap:1rem}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-head {margin-bottom:1.25rem}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-context {margin:0 0 .3rem;color:var(--rr-muted);font-size:.875rem}
:is(#restaurant-settlement-panel,#courier-settlement-panel) h1 {margin:0;font-size:clamp(1.55rem,2.5vw,2.3rem);line-height:1.15;letter-spacing:-.035em}
:is(#restaurant-settlement-panel,#courier-settlement-panel) h2 {margin:0;font-size:clamp(1.08rem,1.55vw,1.38rem);letter-spacing:-.025em}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .button {min-height:42px;white-space:nowrap}
.rr-filters {display:flex;flex-wrap:wrap;align-items:end;gap:.75rem;margin-bottom:1.35rem}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-filters label {display:grid;gap:.35rem;min-width:min(15rem,100%);margin:0;font-size:.875rem;color:var(--rr-ink)}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-filters label:first-child {min-width:min(19rem,100%)}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-filters select,.rr-week {width:100%;min-height:43px;border:1px solid #b6c6d7;background:white;border-radius:8px;padding:.55rem .75rem;color:var(--rr-ink);font:inherit;font-weight:600}
.rr-week {box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:space-between;gap:.85rem}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-week input {position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer;opacity:0}
.rr-week input::-webkit-calendar-picker-indicator {position:absolute;inset:0;width:auto;height:auto;margin:0;cursor:pointer}
.rr-week:focus-within,:is(#restaurant-settlement-panel,#courier-settlement-panel) :is(button,summary):focus-visible {outline:3px solid #327ac7;outline-offset:2px}
.rr-status {padding:1rem 1.25rem;color:var(--rr-muted);background:white;border:1px solid var(--rr-line);border-radius:10px}
.rr-content {display:grid;gap:1rem}
.rr-summary {display:grid;grid-template-columns:1.25fr repeat(3,minmax(0,1fr));gap:.8rem}
.rr-metric,.rr-surface,.rr-disclosure {border:1px solid var(--rr-line);border-radius:12px;background:white}
.rr-metric {padding:clamp(.85rem,1.5vw,1.28rem);min-width:0;display:grid;align-content:center;gap:.4rem;font-variant-numeric:tabular-nums}
.rr-metric>div {display:flex;align-items:center;justify-content:space-between;gap:.35rem;flex-wrap:wrap;color:var(--rr-muted);font-size:.9rem;font-weight:600}
.rr-caption {font-size:.83rem;line-height:1.3;color:var(--rr-muted)}
.rr-metric>strong {font-size:clamp(1.35rem,2.8vw,2.3rem);line-height:1.15;letter-spacing:-.04em;overflow-wrap:anywhere}
.rr-metric:first-child {background:#102e51;color:#fff;border-color:#102e51}
.rr-metric:first-child>div {color:#fff}
.rr-badge {display:inline-block;border-radius:5px;background:#fce4ac;color:#62420b;font-size:.72rem;font-weight:700;line-height:1.4;padding:.15rem .45rem}
.rr-badge[data-status="paid"] {background:#d4f3e6;color:#14533f}
.rr-surface {padding:clamp(.8rem,1.5vw,1.3rem)}
.rr-box-head {margin-bottom:.9rem}
.rr-grid {display:grid;grid-template-columns:minmax(7.5rem,1.18fr) minmax(4.4rem,.7fr) minmax(5.4rem,1fr);align-items:center;gap:.65rem}
.rr-grid>:last-child {text-align:right}
.rr-columns {color:var(--rr-muted);border-top:1px solid var(--rr-line);font-size:.84rem;font-weight:650;padding:.65rem .8rem .55rem}
.rr-columns>:first-child {padding-left:1.45rem}
.rr-group {border-top:1px solid var(--rr-line)}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-band {width:100%;padding:.82rem .8rem;border:0;border-radius:5px;background:transparent;color:var(--rr-ink);font:inherit;font-variant-numeric:tabular-nums;font-weight:680;text-align:left;cursor:pointer}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-band:not(:disabled):hover {background:#eff5fc}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-band[aria-expanded="true"] {background:#e2efff;color:#103a70}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-band:disabled {opacity:1;color:var(--rr-muted);cursor:default}
.rr-range {display:flex;align-items:center;gap:.65rem}
.rr-range::before,.rr-disclosure>summary::after {content:"";width:.48rem;height:.48rem;flex:0 0 auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.rr-band[aria-expanded="true"] .rr-range::before,.rr-disclosure>summary::after {transform:rotate(45deg)}
.rr-band:disabled .rr-range::before {visibility:hidden}
.rr-packages {margin:0 0 .55rem;padding:.6rem .65rem .55rem clamp(.65rem,2vw,2.25rem);border:1px solid var(--rr-line);border-top:0;border-radius:0 0 8px 8px}
.rr-table {width:100%;border-collapse:collapse;font-size:.92rem;font-variant-numeric:tabular-nums}
.rr-table th,.rr-table td {padding:.54rem .6rem;text-align:left;overflow-wrap:anywhere;border-bottom:1px solid #e3ebf2;vertical-align:middle}
.rr-table th {background:#f4f7fa;color:var(--rr-muted);font-size:.8rem}
.rr-table :is(td,th):last-child {text-align:right}
.rr-table td:first-child,.rr-table td:last-child {font-weight:650}
.rr-pages {display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;margin-top:.4rem}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-link {background:transparent;color:var(--rr-blue);border:0;padding:.4rem .15rem;border-radius:3px;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:.88rem;font-weight:600;cursor:pointer}
:is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-link:disabled {opacity:.45;cursor:default}
.rr-pages>span,.rr-note {font-size:.86rem;color:var(--rr-muted)}
.rr-note {margin:.6rem 0}
.rr-disclosure {overflow:clip}
.rr-disclosure>summary {display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1.2rem;list-style:none;cursor:pointer;font-weight:700}
.rr-disclosure>summary::-webkit-details-marker {display:none}
.rr-disclosure[open]>summary::after {transform:rotate(225deg)}
.rr-disclosure>summary::after {margin-right:.25rem}
.rr-bonuses h3 {margin:1rem 0 .45rem;font-size:1rem}
.rr-inner {padding:.25rem 1.2rem 1rem}
.rr-amounts {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.35rem 1rem;margin:0 0 .65rem}
.rr-amounts div {display:flex;justify-content:space-between;gap:.5rem;padding:.55rem 0;border-bottom:1px solid var(--rr-line)}
.rr-amounts dd {margin:0;font-weight:650}
.rr-entry {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.3rem 1rem;padding:.7rem 0;border-top:1px solid var(--rr-line)}
.rr-entry small {grid-column:1/-1;color:var(--rr-muted);overflow-wrap:anywhere}
@media(max-width:760px){
 .rr-summary {grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
 :is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-head {align-items:flex-start;flex-wrap:wrap}
 :is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-filters label {min-width:0;flex:1 1 12rem}
 :is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-filters label:first-child {min-width:0;flex:1 1 16rem}
 .rr-columns,.rr-grid {column-gap:.35rem}
 .rr-columns {font-size:.75rem}
 :is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-band {font-size:.88rem}
 .rr-grid {grid-template-columns:minmax(0,1.12fr) minmax(0,.6fr) minmax(0,1fr)}
 .rr-columns,.rr-band {padding-inline:.35rem!important}
 .rr-table,.rr-table tbody {display:block}
 .rr-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .rr-table tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem .65rem;padding:.65rem 0;border-bottom:1px solid var(--rr-line)}
 .rr-table td {display:block;border:0;padding:0}
 .rr-table td::before {display:block;content:attr(data-label);font-size:.7rem;color:var(--rr-muted);font-weight:500}
 .rr-table td:last-child {text-align:left}
 .rr-packages {padding-inline:.55rem}
 .rr-range {gap:.45rem}
}


body.admin-view main:has(.finance-statement:not(.hidden)) {
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin-inline:0;
  padding:clamp(14px,1.6vw,26px) clamp(12px,1.6vw,32px) 24px;
}
#app-view:has(.finance-statement:not(.hidden)) {min-width:0;max-width:none}
.finance-statement :is(.rr-content,.rr-ledger,.rr-packages,.rr-inner) {min-width:0}
.finance-statement .form-grid :is(label,input,select) {min-width:0;max-width:100%}
.finance-statement .rr-amounts dd {text-align:right}
@media (min-width:761px) and (max-height:1000px) {
  body.admin-view main:has(.finance-statement:not(.hidden)) {padding-block:12px 16px}
  :is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-head {margin-bottom:.65rem}
  .finance-statement .rr-filters {margin-bottom:.75rem}
  .finance-statement .rr-content {gap:.6rem}
  .finance-statement .rr-metric {padding:.6rem 1rem;gap:.18rem}
  .finance-statement .rr-metric>strong {font-size:1.75rem}
  .finance-statement .rr-surface {padding:.7rem 1rem}
  .finance-statement .rr-box-head {margin-bottom:.45rem}
  :is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-band {padding-block:.53rem}
  .finance-statement .rr-table :is(th,td) {padding-block:.35rem}
  .finance-statement .rr-disclosure>summary {padding-block:.65rem}
}
@media (min-width:981px) and (max-height:850px) {
  :is(#restaurant-settlement-panel,#courier-settlement-panel):not(.hidden) {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    align-items:end;
    gap:.7rem 1rem;
  }
  :is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-head {display:contents}
  .finance-statement .rr-head>div {grid-area:1/1;align-self:center}
  .finance-statement .rr-head>button {grid-area:1/3}
  .finance-statement .rr-filters {grid-area:1/2;flex-wrap:nowrap;margin:0}
  :is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-filters label {
    min-width:0;width:clamp(10rem,13vw,14rem);
  }
  :is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-filters label:first-child {
    min-width:0;width:clamp(10rem,16vw,18rem);
  }
  .finance-statement>.rr-status,.finance-statement>.rr-content {grid-column:1/-1;margin:0}
  .finance-statement .rr-content {grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .finance-statement .rr-content>:is(.rr-summary,.rr-surface),.finance-statement .rr-disclosure[open] {grid-column:1/-1}
}
@media (min-width:981px) and (max-height:760px) {
  .finance-statement .rr-columns {padding-block:.3rem}
  :is(#restaurant-settlement-panel,#courier-settlement-panel) .rr-band {padding-block:.36rem}
  .finance-statement .rr-packages {padding-block:.25rem;margin-bottom:.3rem}
  .finance-statement .rr-pages {margin-top:.12rem}
  .finance-statement .rr-box-head {margin-bottom:.25rem}
}
@media (max-width:600px) {
  .finance-statement .form-grid {grid-template-columns:minmax(0,1fr)}
  .finance-statement .rr-inner {padding-inline:.8rem}
}

/* Pilot operations overview */
body.admin-view:has(#admin-home-panel:not(.hidden)) main {max-width:none;width:100%;padding-inline:clamp(12px,1.55vw,30px);box-sizing:border-box}
#admin-home-panel.op-home {--op-line:#d9e3ed;--op-ink:#142f48;--op-muted:#516779;--op-blue:#0965b3;--op-gap:12px;--op-data:5rem minmax(8rem,1.5fr) 4rem minmax(5.75rem,.8fr) minmax(4.75rem,1fr);--op-actions:10.5rem;color:var(--op-ink);padding:0;margin:0;width:100%;max-width:none;border:0;background:transparent;box-shadow:none}
.op-home *,.op-assignment *,.op-order-menu * {box-sizing:border-box}
.op-home [hidden],.op-order-menu [hidden],.op-assignment [hidden] {display:none!important}
.op-page-head,.op-map-foot,.op-actions,.op-assignment-actions {display:flex;align-items:center;gap:8px}
.op-page-head {justify-content:space-between;margin:0 0 12px}
#admin-home-panel .op-page-head .admin-overview-title {font-size:clamp(21px,2vw,31px);margin:0;line-height:1.18;letter-spacing:-.035em}
.op-box,#admin-home-panel.op-home #admin-map-details {border:1px solid var(--op-line);background:#fff;border-radius:12px;padding:0;box-shadow:0 1px 3px #162b4410;min-width:0;margin:0}
.op-summary,.op-courier-line {list-style:none;cursor:pointer}
.op-summary::-webkit-details-marker,.op-courier-line::-webkit-details-marker {display:none}
#admin-home-panel.op-home .op-summary {display:flex;align-items:center;gap:.65rem;padding:12px 15px;margin:0;font-size:1.05rem;line-height:1.2;color:var(--op-ink);min-height:44px}
.op-summary::after {content:'';margin-inline-start:auto;width:8px;height:8px;border:solid currentColor;border-width:0 1.7px 1.7px 0;transform:rotate(45deg);flex:none}
details[open]>.op-summary::after {transform:rotate(225deg)}
.op-home :is(button,summary,a,input):focus-visible,.op-order-menu :focus-visible,.op-assignment :focus-visible {outline:3px solid #2682d0;outline-offset:2px}
.op-health {font-size:.76rem;color:var(--op-muted);font-weight:600}
.op-health.attention {color:#834700;background:#fff1d4;border-radius:6px;padding:3px 7px}
#admin-home-panel.op-home .admin-quick-counters {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:0 12px 5px}
#admin-home-panel.op-home .admin-quick-counter {border:0;background:#f2f6fa;border-radius:6px;min-height:34px;padding:5px 9px;gap:4px}
#admin-home-panel.op-home .admin-quick-counter span {font-size:.8rem}
#admin-home-panel.op-home .admin-quick-counter strong {padding:2px 6px;min-width:1.4rem;background:#e3ebf2;text-align:center}
#admin-home-panel.op-home .admin-quick-counter:is(.warning,.urgent) strong {color:#844800;background:#ffedc4}
.op-read {font-size:.72rem;line-height:1.3;color:var(--op-muted);margin:6px 14px 9px}
.op-read:empty {display:none}
.op-columns {display:grid;grid-template-columns:minmax(0,2.25fr) minmax(16.5rem,1fr);gap:var(--op-gap);align-items:start;margin:var(--op-gap) 0}
.op-roster {display:grid;gap:8px;min-width:0}
.op-roster h3 {display:flex;align-items:center;gap:6px;font-size:1rem;margin:0;padding:12px 14px;line-height:1.15}
.op-roster h3 i {width:.65rem;height:.65rem;border-radius:50%;background:#16834b}
.op-roster .op-break h3 i {background:#bc710b}
.op-roster b {font-size:.8rem;border-radius:6px;background:#edf2f7;min-width:1.4rem;padding:2px 5px;text-align:center}
.op-courier-list {max-height:15rem;overflow:auto}
.op-courier {margin:0 12px;border-top:1px solid #e6ebf0}
.op-courier-line {display:grid;align-items:center;grid-template-columns:1.8rem minmax(0,1fr) auto;gap:7px;min-height:40px;font-size:.875rem}
.op-avatar {display:grid;place-items:center;width:26px;height:26px;font-size:.69rem;font-weight:700;border-radius:50%;background:#e9eff5;color:#29475e}
.op-courier-name {overflow-wrap:anywhere}
.op-load {color:#3a5065;font-size:.78rem;white-space:nowrap}
.op-break .op-load {background:#ffefd5;color:#8b4d0c;border-radius:5px;padding:3px 5px}
.op-courier-tools {display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:4px 0 10px}
.op-roster-empty {margin:3px 13px 10px;font-size:.8rem;color:var(--op-muted)}
#admin-home-panel.op-home .op-off>.op-summary {font-size:.84rem;min-height:34px;padding-block:7px}
.op-short {display:none}
#admin-home-panel.op-home #admin-ops-stage-tabs {display:flex;align-items:center;gap:3px;flex-wrap:wrap;margin:0 12px 7px;padding:0;border:0}
#admin-home-panel.op-home .admin-ops-stage {width:auto;border:0;border-radius:5px;background:transparent;color:var(--op-muted);padding:6px 8px;gap:5px;min-height:32px;box-shadow:none}
#admin-home-panel.op-home .admin-ops-stage.active {background:#e6f1ff;color:#10599d}
#admin-home-panel.op-home .admin-ops-stage strong {font-size:.78rem;background:#e4ebf2;color:inherit;min-width:16px;padding:1px 4px;border-radius:4px}
.op-table-head,.op-order-line {display:grid;grid-template-columns:minmax(0,1fr) var(--op-actions);align-items:center}
.op-table-head {grid-template-columns:var(--op-data) var(--op-actions);padding:7px 10px;margin:0 8px;background:#f2f6fa;color:#53697c;font-size:.75rem;font-weight:600}
.op-table-head>span:first-child {padding-left:1rem}
.op-table-head>span:last-child {text-align:right;padding-right:10px}
#admin-home-panel.op-home #admin-ops-orders {display:block;max-height:none;height:auto;overflow:visible;touch-action:auto;scrollbar-gutter:auto;margin:0 8px;padding:0;position:static}
.op-order {border:0;border-bottom:1px solid #e2e8ee;margin:0;padding:0}
.op-order:last-child {border-bottom:0}
.op-order-line {padding:0 10px;min-height:43px}
.op-order-line:hover {background:#f6f9fc}
.op-order-toggle {appearance:none;background:transparent;border:0;color:inherit;font:inherit;display:grid;grid-template-columns:var(--op-data);align-items:center;text-align:left;cursor:pointer;padding:6px 0;min-height:43px;font-size:.875rem;gap:0}
.op-order-toggle>span,.op-order-toggle>time {min-width:0;overflow-wrap:anywhere;padding-right:5px}
.op-number {white-space:nowrap;font-size:.88rem}
.op-number::before {content:'›';display:inline-block;font-size:1.1em;color:#526c81;width:1rem;transition:transform .12s}
.op-order-toggle[aria-expanded=true] .op-number::before {transform:rotate(90deg)}
.op-time,.op-rider {color:var(--op-muted);font-size:.8rem}
.op-stage {display:inline-flex;align-items:center;gap:5px;justify-self:start;border-radius:5px;padding:3px 6px;font-size:.76rem;font-weight:650;line-height:1.15;background:#eef2f6}
.op-stage-waiting {background:#fff0d1;color:#83470b}
.op-stage-assigned {background:#e5effe;color:#14579a}
.op-stage-picked_up {background:#dff3ec;color:#126749}
.op-actions {justify-content:flex-end;gap:3px}
.op-assign,.op-more,.op-close {cursor:pointer;font:inherit}
#admin-home-panel.op-home .op-assign {border:1px solid var(--op-blue);color:white;background:var(--op-blue);font-size:.79rem;font-weight:650;padding:5px 8px;min-height:32px;border-radius:6px;white-space:nowrap}
#admin-home-panel.op-home .op-change {background:white;color:var(--op-blue)}
.op-assign:disabled {opacity:.55;cursor:default}
.op-more,.op-close {border:0;background:transparent;color:#28445b;border-radius:6px;font-size:1.25rem;line-height:1;min-width:34px;min-height:38px}
.op-more:hover,.op-close:hover {background:#eaf2fa}
.op-order-body {background:#f5f8fc;margin:0 8px 8px;border:1px solid var(--op-line);padding:10px 12px;border-radius:6px}
.op-facts {display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:7px;margin:0;font-size:.8rem}
.op-facts dt {color:var(--op-muted);font-size:.73rem}
.op-facts dd {margin:2px 0 0;overflow-wrap:anywhere}
#admin-home-panel.op-home #admin-ops-pagination {margin:6px 10px}
#admin-home-panel.op-home #admin-ops-pagination:empty {display:none}
#admin-home-panel.op-home #admin-ops-empty {margin:10px;padding:20px}
#admin-home-panel.op-home #admin-map-details {position:relative}
#op-map-filters {display:flex;flex-wrap:wrap;align-items:center;gap:8px 17px;padding:0 15px 9px}
#op-map-filters label {display:inline-flex;flex-direction:row;align-items:center;gap:6px;font-size:.86rem;line-height:1.15;color:var(--op-ink);cursor:pointer;margin:0;min-height:28px;white-space:nowrap}
#op-map-filters input {width:16px;height:16px;margin:0;accent-color:#16834b}
#op-map-filters [value=order] {accent-color:#7543bd}
#op-map-filters [value=restaurant] {accent-color:#ce2635}
#op-map-legend {font-size:.77rem;color:var(--op-muted)}
#op-map-legend i {font-style:normal;border-radius:50%;display:inline-grid;place-items:center;width:17px;height:17px;background:#ce2635;color:white;font-weight:700}
#admin-home-panel.op-home #admin-map {width:100%;height:clamp(285px,40vh,520px);min-height:0;border:0;border-radius:0;background:#edf2f5}
.op-map-foot {padding:6px 12px;flex-wrap:wrap}
.op-map-foot p {flex:1 1 12rem;margin:0;color:var(--op-muted);font-size:.74rem}
.op-map-foot button {font-size:.76rem;padding:5px 8px}
.op-map-tag {background:white;border:1px solid #d5dfe7;border-radius:5px;padding:2px 5px;transform:translateX(calc(50% + 9px));box-shadow:0 1px 3px #152c4325;pointer-events:none}
.op-point-info p {margin:4px 0;font-size:.85rem}
#op-map-selection {display:flex;align-items:start;justify-content:space-between;gap:8px;padding:12px;border-top:1px solid #dce5ed}
dialog.op-order-menu {position:fixed;inset:auto;margin:0;width:max-content;min-width:220px;max-width:calc(100vw - 16px);padding:6px;border:1px solid #cad7e3;border-radius:11px;color:#142f48;background:white;box-shadow:0 10px 36px #132c4733}
.op-order-menu::backdrop {background:#19334c12}
.op-menu-heading {display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:.8rem;padding:0 5px;border-bottom:1px solid #dce5ed}
.op-menu-items {display:grid;gap:2px;padding-top:5px}
.op-menu-items button,.op-menu-items a {display:flex;align-items:center;gap:9px;justify-content:flex-start;border:0;background:white;border-radius:5px;font:inherit;font-size:.9rem;font-weight:500;text-align:left;text-decoration:none;color:#18394f;min-height:38px;padding:7px 10px;cursor:pointer}
.op-menu-items small {font-size:.72rem;color:#657582}
.op-menu-items button:hover,.op-menu-items a:hover,.op-menu-items .op-receipt {background:#eaf3ff}
.op-menu-items button:disabled {color:#698091;background:#f2f5f7;cursor:default}
.op-menu-items .op-cancel {color:#aa2632;border-top:1px solid #e9dadd;border-radius:0;margin-top:4px}
#admin-order-dialog:has(.op-assignment) {width:min(490px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:18px;border:1px solid #d5dfe8;border-radius:14px;color:#15334b}
.op-assignment {display:grid;gap:12px}
.op-assignment-order,.op-current-rider {border-radius:7px;background:#f2f6fa;padding:11px;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.op-assignment-order small {flex-basis:100%;color:#506575}
.op-current-rider {display:grid;gap:3px}.op-current-rider span {font-size:.77rem;color:#566c7c}
.op-candidates {position:relative;min-width:0;padding:0;border:0;margin:0}
.op-candidates legend {font-weight:700;margin-bottom:6px}
.op-courier-search {width:100%;min-height:40px}
.op-select-proxy {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0!important}
.op-options {display:grid;gap:5px;margin-top:9px;max-height:33dvh;overflow:auto}
.op-options .op-option {display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:2px 8px;min-height:46px;padding:7px 10px;border:1px solid #d9e3ed;border-radius:7px;cursor:pointer;color:#18394f}
.op-option:has(input:checked){background:#e8f2ff;border-color:#5a99de}
.op-options input {width:16px;height:16px;grid-row:span 2;accent-color:#0867bb}
.op-option small {grid-column:2 / -1;color:#53697c;font-size:.73rem}
.op-option-load,.op-choice-status {font-size:.8rem;color:#486071}
.op-assignment-actions {justify-content:flex-end;padding-top:10px;border-top:1px solid #e2e8ee}
@media(min-width:1060px) {
 #admin-home-panel #admin-map-details[open]>.op-summary {padding-right:65%;min-height:48px}
 #admin-home-panel #admin-map-details[open]>.op-summary::after {position:absolute;right:17px}
 #op-map-filters {position:absolute;top:9px;left:clamp(240px,23%,350px);right:42px;padding:0}
}
@media(max-width:1120px) and (min-width:861px) {
 #admin-home-panel.op-home {--op-data:4.3rem minmax(6.4rem,1.3fr) 3rem minmax(4.5rem,.8fr) minmax(4rem,.8fr);--op-actions:8.5rem}
 .op-order-line,.op-table-head {padding-inline:5px}.op-columns {grid-template-columns:minmax(0,2.4fr) minmax(12.5rem,1fr)}
}
@media(max-width:860px) {
 body.admin-view:has(#admin-home-panel:not(.hidden)) main {padding-inline:8px}
 #admin-home-panel.op-home {--op-gap:8px}
 .op-columns {display:flex;flex-direction:column}
 .op-columns>* {width:100%}
 .op-roster {order:-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px}
 .op-roster .op-off {grid-column:1 / -1}
 .op-courier-list {max-height:7.2rem}
 .op-page-head {margin:0 0 7px}
 .op-roster h3 {padding:9px 8px 6px;font-size:.92rem}
 .op-roster .op-long,.op-assign .op-long {display:none}
 .op-roster .op-short,.op-assign .op-short {display:inline}
 #admin-home-panel.op-home .op-summary {padding:9px 11px;min-height:40px;font-size:1rem}
 #admin-home-panel.op-home .op-off>.op-summary {font-size:.76rem;min-height:27px;padding:4px 9px}
 .op-courier {margin-inline:7px}
 .op-courier-line {grid-template-columns:minmax(0,1fr) auto;min-height:27px;gap:4px;font-size:.8rem}
 .op-avatar {display:none}.op-load {font-size:.72rem}
 #admin-home-panel.op-home .admin-quick-counters {grid-template-columns:repeat(2,minmax(0,1fr))}
 #admin-home-panel.op-home #admin-ops-stage-tabs {flex-wrap:nowrap;overflow-x:auto;margin:0 6px 3px;gap:1px}
 #admin-home-panel.op-home .admin-ops-stage {flex:0 0 auto;gap:3px;padding:5px;font-size:.78rem;min-height:34px}
 .op-table-head {display:none}
 #admin-home-panel.op-home #admin-ops-orders {margin-inline:3px}
 .op-order-line {grid-template-columns:minmax(0,1fr) auto;min-height:46px;padding:0 2px}
 .op-order-toggle {display:flex;flex-wrap:wrap;align-items:baseline;align-content:center;min-height:46px;gap:1px 4px;padding:3px 0 3px 14px;position:relative;font-size:.84rem}
 .op-number {font-size:.86rem}
 .op-number::before {position:absolute;left:2px;width:9px}
 .op-order-toggle .op-restaurant {flex:1 1 52%;min-width:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .op-time {display:none}
 .op-order-toggle .op-stage {border-radius:0;padding:0;font-size:.73rem;background:transparent;flex:0 1 auto}
 .op-stage::before {content:'';width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
 .op-order-toggle .op-rider {flex:1 1 50%;font-size:.71rem;padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .op-order-toggle .op-rider:not(.op-unassigned)::before {content:'· ';color:#8194a3}
 .op-order-toggle .op-unassigned {visibility:hidden}
 .op-actions {gap:1px}
 #admin-home-panel.op-home .op-assign {min-height:35px;font-size:.75rem;padding:5px 7px}
 .op-more {min-width:33px;min-height:44px}
 #op-map-filters {gap:1px 12px;padding:0 10px 5px}
 #op-map-filters label {font-size:.79rem;min-height:36px}
 #admin-home-panel.op-home #admin-map {height:clamp(305px,53dvh,550px)}
}
@media(max-width:700px) {
 dialog.op-order-menu,#admin-order-dialog:has(.op-assignment) {inset:auto 0 0;position:fixed;margin:0 auto;padding:12px 14px max(12px,env(safe-area-inset-bottom));max-width:100%;width:100%;border-radius:15px 15px 0 0;max-height:89dvh}
 .op-order-menu::backdrop {background:#13283d55}
 .op-menu-items button,.op-menu-items a {min-height:44px}
 .op-assignment-actions button {flex:1;min-height:44px}
}

.op-identity,.op-state-line {display:contents}
.op-find {appearance:none;background:transparent;border:0;color:#155b9c;font:inherit;font-size:.74rem;font-weight:600;cursor:pointer}
.op-find-mobile {display:none}
@media(min-width:861px) {
 .op-courier:has(.op-find) {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:5px}
 .op-find {align-self:start;min-height:40px}
 #op-alerts[open] {position:relative;padding-top:4px}
 #admin-home-panel.op-home #op-alerts[open]>.op-summary {position:absolute;top:4px;left:0;min-height:34px;width:148px;font-size:.95rem}
 #op-alerts[open] .op-health {display:none}
 #admin-home-panel.op-home #op-alerts[open] .admin-quick-counters {margin:0 9px 0 150px}
 #op-alerts[open] .op-read {margin:3px 12px 5px}
 #op-alerts #okp-operations:empty {display:none}
}
@media(max-width:860px) {
 .op-find {display:none}.op-find-mobile {display:inline-flex}
 .op-order-toggle {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:2px}
 .op-order-toggle>.op-identity,.op-order-toggle>.op-state-line {display:flex;gap:5px;min-width:0;align-items:baseline;padding:0}
 .op-order-toggle .op-restaurant {flex:1 1 0%;padding:0}
 .op-order-toggle .op-stage {padding:0}
 .op-order-toggle .op-rider {flex:1 1 0%;padding:0}
 .op-order-toggle .op-unassigned {display:none}
}

#op-mobile-urgent {display:none}
@media(max-width:860px) {
 #op-mobile-urgent {display:inline}
 #op-alerts #admin-home-health {display:none}
 #admin-home-panel.op-home #rb-trigger {font-size:0;gap:0;padding:6px;min-width:28px;justify-content:center}
 #admin-home-panel.op-home #rb-trigger svg {width:17px;height:17px}
}
@media(max-width:365px) {
 #admin-home-panel.op-home #admin-ops-stage-tabs {gap:0;margin-inline:4px}
 #admin-home-panel.op-home #admin-ops-stage-tabs .admin-ops-stage {padding-inline:3px;font-size:.72rem;gap:2px}
 #admin-home-panel.op-home #admin-ops-stage-tabs #rb-trigger {font-size:0}
}

/* OnlyKurye finance reports, cash and reconciliation */
body.admin-view main:has(.fs-screen:not(.hidden)) {width:100%;max-width:none;box-sizing:border-box;padding:clamp(16px,2.1vw,36px) clamp(12px,2.2vw,42px)}
body.admin-view #app-view:has(>.fs-screen:not(.hidden))>.page-head {display:none}
#app-view>.fs-screen {--fs-ink:#142c44;--fs-sub:#4e6276;--fs-line:#d6e1ea;--fs-blue:#145fa9;--fs-light:#f3f7fb;--fs-pad:clamp(12px,1.4vw,24px);min-width:0;max-width:none;border:0;padding:0;margin:0;background:transparent;color:var(--fs-ink);box-shadow:none;font-size:15px}
.fs-screen [hidden],.fs-screen .hidden {display:none!important}
.fs-screen *, .fs-screen *::before,.fs-screen *::after {box-sizing:border-box}
.fs-screen :is(h1,h2,p,dl,dd,fieldset) {margin:0}
.fs-screen .fs-head,.fs-screen .fs-card-title,.fs-screen .fs-actions,.fs-screen .fs-form-actions,.fs-screen .fs-filters,.fs-screen .fs-shortcuts,.fs-screen .fs-tabs,.fs-screen .fs-pager {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fs-screen .fs-head,.fs-screen .fs-card-title {justify-content:space-between}
.fs-screen .fs-head {margin-bottom:20px;gap:14px}
.fs-screen h1 {font-size:clamp(25px,2.3vw,36px);line-height:1.15;letter-spacing:-.035em}
.fs-screen h2 {font-size:clamp(18px,1.3vw,22px);line-height:1.3;letter-spacing:-.018em}
.fs-screen .fs-breadcrumb,.fs-screen .fs-rule,.fs-screen .fs-note,.fs-screen .fs-sub,.fs-screen .fs-footnote,.fs-screen .fs-card-title>span,.fs-screen small {color:var(--fs-sub)}
.fs-screen .fs-breadcrumb {font-size:13px;margin-bottom:5px}
.fs-screen .fs-sub,.fs-screen .fs-note,.fs-screen .fs-rule,.fs-screen .fs-footnote {font-size:14px;line-height:1.5}
.fs-screen .fs-sub {margin-top:6px}
.fs-screen .button,.fs-screen .fs-x,.fs-screen summary {min-height:40px}
.fs-screen .button {padding:8px 14px;font-size:14px}
.fs-screen :is(button,summary,input,textarea):focus-visible {outline:3px solid #4188ce;outline-offset:2px}
.fs-screen button:disabled {cursor:default;opacity:.62}
.fs-screen .fs-card,.fs-screen .fs-stat {background:#fff;border:1px solid var(--fs-line);border-radius:11px;min-width:0}
.fs-screen .fs-filters {margin-bottom:15px;align-items:flex-end}
.fs-screen .fs-stats {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px;margin-bottom:16px}
.fs-screen .fs-stat {padding:14px var(--fs-pad);display:grid;align-content:center;gap:4px;overflow-wrap:anywhere}
.fs-screen .fs-stat span {color:var(--fs-sub);font-size:14px}
.fs-screen .fs-stat strong {font-size:clamp(21px,2.1vw,32px);letter-spacing:-.035em;line-height:1.22;font-variant-numeric:tabular-nums}
.fs-screen .fs-stat:first-child {background:#142f49;border-color:#142f49;color:#fff}
.fs-screen .fs-stat:first-child span {color:#e0eaf3}
.fs-screen .fs-card-title {padding:14px var(--fs-pad) 4px}
.fs-screen .fs-tabs {flex-wrap:nowrap;border-bottom:1px solid var(--fs-line);gap:6px;padding:0 10px}
.fs-screen .fs-tabs button,.fs-screen .fs-account-toggle,.fs-screen .fs-day-toggle {color:var(--fs-ink);background:transparent;border:none;box-shadow:none;font:inherit;cursor:pointer;line-height:1.35;text-align:left}
.fs-screen .fs-tabs button {border-bottom:3px solid transparent;border-radius:0;padding:13px 12px 10px;color:var(--fs-sub);font-weight:600;min-height:44px}
.fs-screen .fs-tabs button[aria-pressed="true"] {border-color:var(--fs-blue);color:var(--fs-blue)}
.fs-screen .fs-tabs button span:not(:empty) {display:inline-block;padding:1px 6px;border-radius:7px;background:#eaf1f8;font-size:.84em}
.fs-screen .fs-content {padding:12px var(--fs-pad) 15px;min-width:0}
.fs-screen :is(.fs-note,.fs-empty) {padding:6px 0 14px}
.fs-screen .fs-empty {color:var(--fs-sub);margin:0}
.fs-screen table.fs-table {border-collapse:collapse;width:100%;font-size:15px;line-height:1.35;min-width:0;font-variant-numeric:tabular-nums}
.fs-screen .fs-table :is(th,td) {padding:12px 10px;border:0;border-bottom:1px solid var(--fs-line);text-align:left;vertical-align:middle;background:transparent;overflow-wrap:anywhere}
.fs-screen .fs-table th {background:#f1f5f9;color:var(--fs-sub);font-size:13px;font-weight:630}
.fs-screen :is(.fs-days,.fs-methods,.fs-accounts) th:not(:first-child),.fs-screen .fs-ledger th:last-child,.fs-screen .fs-table .fs-number {text-align:right}
.fs-screen .fs-table tfoot td {background:#edf3f9;font-weight:720;color:var(--fs-ink);border-bottom:0}
.fs-screen .fs-table tbody tr:last-child>td {border-bottom:0}
.fs-screen .fs-desktop-day,.fs-screen .fs-methods td:first-child {font-weight:650}
.fs-screen .fs-table small {display:block;margin-top:3px}
.fs-screen .fs-day-toggle,.fs-screen .fs-mobile-values {display:none}
.fs-screen .fs-picker {position:relative;min-width:215px}
.fs-screen .fs-picker summary,.fs-screen .fs-week-date {display:flex;align-items:center;gap:8px;min-height:41px;background:white;border:1px solid #bdcedf;border-radius:7px;padding:8px 12px;color:var(--fs-ink);cursor:pointer;position:relative}
.fs-screen .fs-picker summary,.fs-screen .fs-side-card summary {list-style:none}
.fs-screen summary::-webkit-details-marker {display:none}
.fs-screen .fs-picker summary span {color:var(--fs-sub);font-size:13px}
.fs-screen .fs-picker summary:after,.fs-screen .fs-week-date:after,.fs-screen .fs-side-card summary:after {content:'';width:7px;height:7px;border:solid var(--fs-sub);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:-4px 1px 0 auto}
.fs-screen .fs-picker[open]>summary:after,.fs-screen .fs-side-card[open]>summary:after {transform:rotate(225deg);margin-top:4px}
.fs-screen .fs-picker-body {position:absolute;z-index:6;top:calc(100% + 4px);left:0;display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:300px;padding:14px;background:#fff;border:1px solid var(--fs-line);border-radius:9px;box-shadow:0 8px 24px #1b395523}
.fs-screen .fs-picker-body button {grid-column:1/-1;justify-self:end}
.fs-screen .fs-shortcuts [aria-pressed="true"] {background:#e5f0fd;color:#114c88}
.fs-screen .fs-week-picker,.fs-screen .fs-picker-body label,.fs-screen .fs-form>label {display:grid;gap:5px;font-size:13px;font-weight:630;color:var(--fs-sub);min-width:0}
.fs-screen .fs-week-date {min-width:210px;font-size:15px}
.fs-screen .fs-week-date input {opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer}
.fs-screen .fs-week-date input::-webkit-calendar-picker-indicator {position:absolute;inset:0;width:auto;height:auto;cursor:pointer}
.fs-screen .fs-week-date:focus-within {outline:3px solid #4188ce}
.fs-screen .fs-rule {margin:auto 0 10px auto}
.fs-screen .fs-badge,.fs-screen .fs-tag {display:inline-flex;align-items:center;padding:4px 9px;border-radius:6px;background:#e5f0fc;color:#16578d;font-size:13px;font-weight:650}
.fs-screen .fs-badge {margin-bottom:7px}
.fs-screen .fs-final,.fs-screen .fs-in {background:#e5f4ec;color:#15624b}
.fs-screen .fs-out {background:#fff0dd;color:#854511}
.fs-screen .fs-positive {color:#126749}
.fs-screen .fs-attention {color:#8c4814}
.fs-screen .fs-cash-layout,.fs-screen .fs-week-layout,.fs-screen .fs-week-side {display:grid;gap:14px;align-items:start;min-width:0}
.fs-screen .fs-cash-layout.fs-editing {grid-template-columns:minmax(0,1fr) minmax(290px,32%)}
.fs-screen .fs-week-layout {grid-template-columns:minmax(0,1fr) minmax(245px,28%)}
.fs-screen .fs-week-side {gap:12px}
.fs-screen .fs-pager {padding:0 var(--fs-pad) 14px;justify-content:flex-end;font-size:14px}
.fs-screen .fs-account-line {cursor:pointer}
.fs-screen .fs-account-line:hover {background:var(--fs-light)}
.fs-screen .fs-account-toggle,.fs-screen .fs-day-toggle {display:inline-flex;align-items:center;gap:9px;font-weight:650;padding:3px 0}
.fs-screen .fs-day-toggle {display:none}
.fs-screen :is(.fs-account-toggle,.fs-day-toggle):before {content:'';height:7px;width:7px;flex:0 0 7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)}
.fs-screen :is(.fs-account-toggle,.fs-day-toggle)[aria-expanded="true"]:before {transform:rotate(45deg)}
.fs-screen .fs-table .fs-extra>td {background:#eff5fb;padding:12px 15px}
.fs-screen .fs-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px 15px}
.fs-screen .fs-mobile-values {display:none}
.fs-screen .fs-fields dt {font-size:13px;color:var(--fs-sub)}
.fs-screen .fs-fields dd {font-weight:650;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.fs-screen .fs-footnote {display:block;margin-top:8px}
.fs-screen .fs-side-card>summary {display:flex;align-items:center;font-weight:730;font-size:17px;padding:12px var(--fs-pad);cursor:pointer}
.fs-screen .fs-side-card>.fs-fields {display:block;padding:0 var(--fs-pad) 10px}
.fs-screen .fs-side-card .fs-fields>div {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid var(--fs-line)}
.fs-screen .fs-side-card .fs-fields dd {text-align:right}
.fs-screen .fs-warning {display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:12px var(--fs-pad);margin-bottom:14px;border:1px solid #ecd1a5;border-radius:8px;background:#fff5e7;color:#774212;font-size:14px}
.fs-screen .fs-balance-links {display:flex;gap:6px;flex-wrap:wrap}
.fs-screen .fs-balance-link {font:inherit;color:#774212;background:#fffbf4;border:1px solid #dfc69f;border-radius:6px;padding:6px 9px;cursor:pointer}
.fs-screen .fs-more-balances summary {cursor:pointer;min-height:28px}
.fs-screen .fs-editor .fs-form,.fs-screen .fs-opening,.fs-screen .fs-reopen {padding:var(--fs-pad)}
.fs-screen .fs-opening,.fs-screen .fs-reopen {margin-bottom:14px}
.fs-screen .fs-opening summary small {font-size:12px;margin-left:6px;color:var(--fs-blue)}
.fs-screen .fs-opening .fs-form {margin-top:13px;max-width:740px}
.fs-screen .fs-form {display:grid;gap:13px}
.fs-screen .fs-form fieldset {border:0;padding:0;min-width:0}
.fs-screen .fs-form legend {font-size:13px;font-weight:650;color:var(--fs-sub);margin-bottom:5px}
.fs-screen .fs-form>button {justify-self:start}
.fs-screen .fs-form textarea,.fs-screen .fs-form input:not([type=radio]),.fs-screen .fs-picker-body input {display:block;width:100%;padding:9px 10px;border:1px solid #bccddd;border-radius:6px;font:inherit;font-size:15px;background:white;color:var(--fs-ink)}
.fs-screen .fs-form textarea {resize:vertical;min-height:64px;max-height:220px}
.fs-screen .fs-radio {display:flex;gap:7px;flex-wrap:wrap}
.fs-screen .fs-radio label {display:flex;flex:1 1 112px;align-items:center;justify-content:center;gap:6px;min-height:40px;border:1px solid var(--fs-line);border-radius:7px;cursor:pointer}
.fs-screen .fs-radio label:has(:checked) {background:#e6f0ff;border-color:#8db6df;color:#174f84}
.fs-screen .fs-radio input {width:auto;height:auto;margin:0;accent-color:var(--fs-blue)}
.fs-screen .fs-form-actions {justify-content:flex-end}
.fs-screen .fs-x {width:40px;border:0;background:transparent;font-size:25px;color:var(--fs-sub);cursor:pointer}
.fs-screen .fs-reopen {max-width:600px;margin-left:auto}
.fs-screen .fs-reopen .fs-card-title {padding:0}
.fs-screen .fs-event {border-left:2px solid #bdd1e5;padding:4px 12px 13px;margin:0 0 5px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;overflow-wrap:anywhere}
.fs-screen .fs-event p,.fs-screen .fs-event small {grid-column:1/-1}
.fs-screen .fs-event time {font-size:13px;color:var(--fs-sub)}
.fs-screen .fs-sr {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1000px) and (min-width:761px) {
  .fs-screen .fs-stat {padding:11px}.fs-screen .fs-stat strong {font-size:21px}
  .fs-screen .fs-table :is(th,td) {padding-inline:6px}
}
@media(max-width:760px) {
  body.admin-view main:has(.fs-screen:not(.hidden)) {padding:12px max(9px,env(safe-area-inset-right)) 18px max(9px,env(safe-area-inset-left))}
  .fs-screen .fs-head {margin-bottom:12px;align-items:flex-start}
  .fs-screen .fs-stats {grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:10px}
  .fs-screen .fs-stat {padding:8px 11px;gap:2px}.fs-screen .fs-stat:first-child {grid-column:1/-1}
  .fs-screen .fs-stat strong {font-size:21px}.fs-screen .fs-stat:first-child strong {font-size:26px}
  .fs-screen .fs-stat span {font-size:12px}
  #cash-ledger-summary .fs-stat:last-child {display:none}
  .fs-screen .fs-head .fs-actions {gap:6px}
  .fs-screen .fs-filters {gap:6px;margin-bottom:10px}
  .fs-screen .fs-picker {min-width:0;flex:1 1 145px}.fs-screen .fs-picker summary {padding:7px 9px;font-size:14px}.fs-screen .fs-picker summary span {display:none}
  .fs-screen .fs-shortcuts {order:2;flex-basis:100%;gap:5px}.fs-screen .fs-shortcuts .button {font-size:12px;padding:4px 10px;min-height:34px}
  .fs-screen .fs-picker-body {min-width:min(295px,calc(100vw - 30px))}
  .fs-screen .fs-week-picker {flex:1 1 150px}.fs-screen .fs-week-date {min-width:0}.fs-screen .fs-rule {flex-basis:100%;margin:2px 0 0;font-size:12px}
  .fs-screen .fs-week-layout,.fs-screen .fs-cash-layout.fs-editing {grid-template-columns:minmax(0,1fr);gap:8px}
  .fs-screen .fs-cash-layout.fs-editing .fs-editor {order:-1}
  .fs-screen .fs-content {padding:6px 10px 9px}
  .fs-screen .fs-tabs {gap:1px;padding:0 4px}.fs-screen .fs-tabs button {font-size:13px;padding:9px 6px;min-height:44px}
  .fs-screen .fs-table :is(th,td) {padding:8px 3px;font-size:14px}.fs-screen .fs-table th {font-size:12px}
  .fs-screen :is(.fs-ledger,.fs-days,.fs-accounts),.fs-screen :is(.fs-ledger,.fs-days,.fs-accounts) :is(tbody,tfoot) {display:block}
  .fs-screen :is(.fs-ledger,.fs-days,.fs-accounts) thead {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
  .fs-screen :is(.fs-ledger,.fs-days,.fs-accounts) tr {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 9px;border-bottom:1px solid var(--fs-line);padding:8px 3px}
  .fs-screen :is(.fs-ledger,.fs-days,.fs-accounts) td {padding:2px 0;border:0!important}
  .fs-screen .fs-ledger .fs-cash-dir,.fs-screen .fs-desktop-day,.fs-screen .fs-accounts .fs-desk-value {display:none}
  .fs-screen .fs-ledger .fs-cash-kind {grid-area:1/1}.fs-screen .fs-ledger .fs-cash-date {grid-area:2/1/3/-1;font-size:12px;color:var(--fs-sub)}
  .fs-screen .fs-ledger .fs-cash-amount {grid-area:1/2;font-weight:650}
  .fs-screen .fs-day-toggle {display:inline-flex}
  .fs-screen .fs-day-count,.fs-screen .fs-deliveries {font-size:12px;color:var(--fs-sub)}
  .fs-screen .fs-day-count:after {content:' sipariş'}
  .fs-screen .fs-days tbody tr:not(.fs-expanded) .fs-day-value {display:none}
  .fs-screen .fs-days .fs-day-value {grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
  .fs-screen .fs-day-value:before {content:attr(data-label);color:var(--fs-sub);font-size:12px;text-align:left}
  .fs-screen .fs-table tfoot tr {padding:7px 6px;background:#edf3f9}
  .fs-screen .fs-account-name {grid-area:1/1}.fs-screen .fs-accounts .fs-balance {grid-area:1/2;font-weight:bold}
  .fs-screen .fs-accounts .fs-deliveries {grid-area:2/1;text-align:left;padding-left:16px}.fs-screen .fs-deliveries:after {content:' teslimat'}
  .fs-screen .fs-accounts .fs-account-line:after {content:'Kalan bakiye';grid-area:2/2;font-size:11px;text-align:right;color:var(--fs-sub)}
  .fs-screen .fs-account-line:has([aria-expanded="true"]){border-bottom:0}
  .fs-screen .fs-accounts .fs-extra {display:block;padding:0}.fs-screen .fs-accounts .fs-extra>td {display:block;padding:10px}
  .fs-screen .fs-mobile-values {display:grid;margin-bottom:6px}
  .fs-screen .fs-fields dt {font-size:12px}.fs-screen .fs-fields dd {font-size:14px}
  .fs-screen .fs-note {font-size:13px;padding:5px 1px 9px}
  .fs-screen .fs-warning {margin-bottom:9px}.fs-screen .fs-rule,.fs-screen .fs-footnote {font-size:12px}
  .fs-screen .fs-event {grid-template-columns:1fr}.fs-screen .fs-event time {grid-row:2}
}

.fs-screen .fs-opening>summary {font-weight:700;font-size:17px;cursor:pointer;min-height:26px;line-height:26px}

/* OnlyKurye manager intervention workspace */
body.admin-view main:has(#ic-panel:not(.hidden)){width:100%;max-width:none;padding:0;box-sizing:border-box}
body.admin-view #app-view:has(>#ic-panel:not(.hidden))>.page-head{display:none}
#app-view>#ic-panel{--ic-ink:#142d43;--ic-sub:#52697b;--ic-blue:#155fac;--ic-border:#d5e0e9;--ic-bg:#f4f7fa;--ic-tint:#eaf3fd;display:grid;grid-template-columns:clamp(182px,15.3vw,225px) minmax(0,1fr);gap:0;min-height:calc(100svh - 100px);width:100%;max-width:none;margin:0;padding:0;border:0;box-shadow:none;border-radius:0;color:var(--ic-ink);background:var(--ic-bg);font-size:15px;line-height:1.45;box-sizing:border-box}
#app-view>#ic-panel.hidden,#ic-panel [hidden],#ic-panel .hidden{display:none!important}
#ic-panel *,#ic-panel *::before,#ic-panel *::after{box-sizing:border-box}
#ic-panel .ic-rail{background:white;border-right:1px solid var(--ic-border);padding:28px 12px}
.ic-rail-title{font-size:.75rem;letter-spacing:.065em;font-weight:750;text-transform:uppercase;padding:2px 11px 14px;color:var(--ic-sub)}
#ic-rail{display:grid;gap:5px}
#ic-panel button,.ic-confirm button{font:inherit;cursor:pointer}
#ic-panel .ic-btn,.ic-confirm .ic-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;width:auto;max-width:100%;margin:0;padding:8px 14px;border:1px solid #d1dee8;border-radius:8px;background:white;color:#20425d;box-shadow:none;text-align:center;font-size:.9rem;font-weight:650;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
#ic-panel .ic-btn:hover,.ic-confirm .ic-btn:hover{background:#eff5fa}
#ic-panel .ic-btn:focus-visible,.ic-confirm .ic-btn:focus-visible,#ic-panel :is(select,input,summary):focus-visible{outline:3px solid #307dcc;outline-offset:2px}
#ic-panel .ic-primary,.ic-confirm .ic-primary{background:#155fac;border-color:#155fac;color:white}
#ic-panel .ic-primary:hover,.ic-confirm .ic-primary:hover{background:#104f91;color:white}
#ic-panel button:disabled,.ic-confirm button:disabled{opacity:.53;cursor:default}
#ic-panel .ic-text{border-color:transparent;background:transparent;color:var(--ic-blue)}
#ic-panel .ic-nav{justify-content:flex-start;text-align:left;min-height:42px;position:relative;padding-left:19px;border:0;background:transparent;color:var(--ic-sub)}
#ic-panel .ic-nav[aria-current=page]{color:var(--ic-blue);background:var(--ic-tint)}
.ic-nav[aria-current=page]::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;background:var(--ic-blue);border-radius:3px}
#ic-panel .ic-nav-system{margin-top:17px}
.ic-main{min-width:0;padding:clamp(18px,2.1vw,36px) clamp(16px,2.2vw,42px) 32px}
.ic-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ic-crumb{color:var(--ic-sub);font-size:.78rem;font-weight:650}
#ic-panel h1{margin:5px 0 3px;font-size:clamp(25px,2.15vw,36px);letter-spacing:-.035em;line-height:1.14}
#ic-subtitle{margin:7px 0 0;color:var(--ic-sub)}
.ic-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#ic-page-actions{flex-shrink:0}
#ic-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:19px 0 16px;border-bottom:1px solid var(--ic-border)}
#ic-panel .ic-tab{border:0;border-radius:0;background:transparent;color:var(--ic-sub);min-height:42px;padding:8px 13px;border-bottom:3px solid transparent}
#ic-panel .ic-tab[aria-pressed=true]{color:var(--ic-blue);border-bottom-color:var(--ic-blue)}
#ic-feedback:empty,#ic-metrics:empty{display:none}
#ic-feedback{margin:10px 0;color:var(--ic-sub)}
#ic-feedback.ic-error{color:#963b26}
.ic-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px;margin:0 0 17px}
.ic-metric{padding:16px 19px;border:1px solid var(--ic-border);border-radius:11px;background:white;display:grid;align-content:center;gap:5px;min-width:0}
.ic-metric:first-child{background:#143650;border-color:#143650;color:white}
.ic-metric>span{font-size:.84rem;font-weight:650;color:var(--ic-sub)}.ic-metric:first-child>span{color:#d8e8f4}
.ic-metric>strong{font-size:clamp(21px,1.7vw,30px);line-height:1.2;letter-spacing:-.03em;overflow-wrap:anywhere}
.ic-split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(265px,1fr);gap:15px;align-items:start}
.ic-card{min-width:0;background:white;border:1px solid var(--ic-border);border-radius:12px;box-shadow:0 2px 5px #122a4109;padding-bottom:15px;overflow-wrap:anywhere}
.ic-card-head{padding:18px 18px 13px;border-bottom:1px solid #e6edf2}
#ic-panel h2{font-size:clamp(17px,1.22vw,21px);line-height:1.25;margin:0;letter-spacing:-.014em}
#ic-panel h3{font-size:1rem;margin:5px 0}
.ic-card-head small,.ic-cell small,.ic-record small,.ic-mini-row small{display:block;color:var(--ic-sub);font-size:.81rem}
.ic-card-head small{margin-top:4px}
.ic-inner{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:17px 18px 5px;min-width:0}
.ic-inner>.ic-facts,.ic-inner>.ic-record,.ic-inner>.ic-note,.ic-inner>.ic-mini-row{width:100%}
#ic-panel .ic-mini-row{display:flex;justify-content:space-between;text-align:left;border:0;border-bottom:1px solid #e4ebef;border-radius:0;width:100%;padding:13px 18px;gap:14px;min-height:45px}
#ic-panel .ic-mini-row small{text-align:right}
.ic-table{width:100%;min-width:0}
.ic-thead,#ic-panel .ic-row{display:grid;grid-template-columns:var(--ic-cols) 12px;align-items:center;gap:8px;width:100%;text-align:left}
.ic-thead{background:#f0f4f7;color:var(--ic-sub);font-size:.76rem;font-weight:700;padding:9px 15px}
#ic-panel .ic-row{border:0;border-radius:0;border-bottom:1px solid #e1e9ee;background:white;font-size:.91rem;font-weight:450;min-height:55px;padding:11px 15px;justify-content:stretch}
#ic-panel .ic-row[aria-pressed=true]{box-shadow:inset 3px 0 0 var(--ic-blue);background:var(--ic-tint)}
.ic-cell{display:block;min-width:0;color:var(--ic-ink)}.ic-cell strong{font-weight:700}.ic-cell small{margin-top:3px}
.ic-arrow{color:var(--ic-sub);font-size:1.25rem}
.ic-chip{display:inline-block;width:fit-content;max-width:100%;border-radius:12px;padding:3px 9px;font-size:.78rem;line-height:1.35;font-weight:700;background:#eaf0f4;color:#42596b;vertical-align:middle}
.ic-tone-blue,.ic-note-blue{color:#155995!important;background:#e6f2ff!important}
.ic-tone-amber,.ic-note-amber{color:#82460b!important;background:#fff1d9!important}
.ic-tone-red{color:#a13834;background:#fbe8e5}.ic-tone-green{color:#086749;background:#e1f4ec}.ic-tone-violet{color:#62488e;background:#f0ebf9}
.ic-note{padding:11px 13px;border-radius:8px;background:#f0f4f7;color:#4a6071;font-size:.86rem;line-height:1.48;margin:0}
.ic-card>.ic-note{margin:14px 17px 0}
.ic-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr));gap:12px 18px;margin:0}
.ic-facts>div{min-width:0;padding-bottom:6px}.ic-facts dt{color:#52697b;font-size:.8rem;font-weight:600}.ic-facts dd{font-weight:690;margin:4px 0 0;font-size:1rem}
.ic-prose{margin:0;color:var(--ic-ink);white-space:pre-line}
.ic-pager,.ic-tools{display:flex;gap:8px;align-items:end;padding:13px 16px;flex-wrap:wrap}
.ic-pager{align-items:center;justify-content:space-between;color:var(--ic-sub);font-size:.8rem}
.ic-field{display:grid;gap:4px;min-width:0;flex:1 1 132px;font-size:.79rem;color:var(--ic-sub);font-weight:650}
#ic-panel :is(input,select,textarea){max-width:100%;width:100%;min-width:0;min-height:37px;padding:7px 9px;font:inherit;font-size:.88rem;color:var(--ic-ink);background:white;border:1px solid #bdcedb;border-radius:7px}
#ic-panel input[type=checkbox]{width:17px;min-height:17px;accent-color:var(--ic-blue)}
.ic-record{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:11px 0;border-bottom:1px solid var(--ic-border)}
.ic-record small{flex:1 0 100%}
.ic-empty{align-items:center;padding:35px 15px}
#ic-panel .ic-back,.ic-mobile-menu{display:none}
#ic-panel .ic-address-source{display:block;padding:12px 15px;margin:0}
#ic-panel .ic-address-source>:not(.location-review-card){display:none!important}
#ic-panel .location-review-card{border:0;padding:0;margin:0;box-shadow:none;background:white}
#ic-panel .location-review-card>summary:first-child{display:none}
#ic-panel .location-review-card.hidden,#ic-panel .location-review-card[hidden]{display:none!important}
#ic-panel .location-review-card label{margin:.45rem 0}
#ic-panel .location-review-card>.button{width:fit-content;max-width:100%;white-space:normal}
.ic-confirm{display:grid;gap:14px}
body:has(#ic-panel:not(.hidden)) #admin-order-dialog{box-sizing:border-box;max-width:min(600px,96vw);max-height:90dvh;overflow:auto}
body:has(#ic-panel:not(.hidden)) #admin-order-dialog :is(form,select,input,textarea,.form-actions){min-width:0;max-width:100%}
@media(max-width:1080px){#app-view>#ic-panel{grid-template-columns:155px minmax(0,1fr)}#ic-panel .ic-rail{padding:22px 7px}.ic-main{padding:19px 14px}.ic-split{grid-template-columns:minmax(0,1.2fr) minmax(245px,1fr)}.ic-thead,#ic-panel .ic-row{gap:5px;padding-left:9px;padding-right:9px}}
@media(min-width:761px) and (max-width:900px){#app-view>#ic-panel{grid-template-columns:1fr}#ic-panel .ic-rail{display:none}.ic-mobile-menu{display:flex;align-items:center;gap:8px;margin-bottom:14px}.ic-mobile-menu label{font-size:.8rem;font-weight:600}.ic-mobile-menu select{width:auto!important}}
@media(max-width:760px){
 #app-view>#ic-panel{display:block;min-height:calc(100svh - 70px)}
 #ic-panel .ic-rail{display:none}.ic-main{padding:13px 10px 28px}.ic-mobile-menu{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin:0 0 11px}.ic-mobile-menu label{font-size:.8rem;font-weight:650;color:var(--ic-sub)}
 .ic-head{align-items:flex-start;gap:8px;flex-wrap:wrap}.ic-crumb{display:none}.ic-head>div:first-child{flex:1 1 215px}#ic-page-actions{flex-shrink:1}#ic-subtitle{font-size:.87rem}
 #ic-tabs{gap:3px;margin:12px 0}#ic-panel .ic-tab{padding:8px;font-size:.83rem;min-height:42px}
 .ic-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:10px}.ic-metric{padding:10px 11px}.ic-metric>span{font-size:.75rem}.ic-metric>strong{font-size:21px}
 .ic-split{display:block}.ic-split:not(.ic-drill)>.ic-detail,.ic-split.ic-drill>.ic-list{display:none}
 .ic-split.ic-overview-pair>.ic-card{display:block;margin-bottom:10px}.ic-overview-pair .ic-back{display:none!important}
 #ic-panel .ic-split.ic-drill .ic-back{display:inline-flex;margin:10px 11px 0;min-height:39px}
 .ic-thead{display:none}#ic-panel .ic-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(72px,.86fr) 10px;padding:11px 12px;gap:6px;text-align:left;min-height:63px}
 .ic-cell:first-child{grid-area:1 / 1;font-weight:700}.ic-cell:nth-child(2){grid-area:1 / 2}.ic-cell:nth-child(3){grid-area:2 / 1}.ic-cell:nth-child(4){grid-area:2 / 2}.ic-row .ic-arrow{grid-column:3;grid-row:1 / span 2;text-align:right}.ic-cell:not(:first-child):not(:has(.ic-chip))::before{content:attr(data-label);display:block;font-size:.68rem;line-height:1.1;margin-bottom:2px;color:var(--ic-sub)}.ic-cell small{font-size:.78rem}.ic-card-head{padding:14px 12px 11px}
 .ic-inner{padding:13px 12px 4px}.ic-facts{gap:8px}.ic-tools{padding:10px;gap:6px}.ic-chip{font-size:.72rem}.ic-field{flex-basis:120px}
 #ic-panel .ic-inner>.ic-btn,#ic-panel .ic-empty>.ic-btn{justify-content:center;min-height:42px;width:100%}
 body:has(#ic-panel:not(.hidden)) #admin-order-dialog[open]{width:100%;max-width:100%;margin:auto 0 0;border-radius:16px 16px 0 0;padding:16px;max-height:93dvh}
}
.ic-audit{display:grid;width:100%;gap:10px}.ic-audit .ic-record{display:grid;gap:4px}.ic-audit p{margin:0}
#admin-order-dialog .ic-collection{display:grid;gap:14px;width:100%;min-width:0}
.ic-collection-total{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;border-radius:8px;border:1px solid #c5dfd3;background:#eff8f3;color:#17533a;padding:12px}
.ic-collection-total.ic-different{background:#fff5e6;border-color:#e7c79a;color:#774b0c}
.ic-collection-total span{font-size:.85rem}.ic-reason-label{display:grid;gap:6px;font-weight:650}
#admin-order-dialog .ic-collection .ic-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
#admin-order-dialog .ic-collection .ic-sub{border:1px solid #bdcddd;border-radius:7px;background:white;color:#1d4262;padding:8px 14px}
#ic-panel [hidden]{display:none!important}

/* OnlyKurye courier home */
body.courier-view {
  --ch-ink:#142f45; --ch-muted:#52697d; --ch-rule:#d3dfe9; --ch-blue:#145da0;
  --ch-gutter:clamp(14px,1.6vw,26px);
  --ch-top:env(safe-area-inset-top,0px);
  --ch-left:env(safe-area-inset-left,0px);
  --ch-right:env(safe-area-inset-right,0px);
  --ch-bottom:env(safe-area-inset-bottom,0px);
}
@media (orientation:portrait) {
  /* Embedded clients that report a zero top inset still need room for the camera. */
  body.courier-view.ch-android-host { --ch-top:max(env(safe-area-inset-top,0px),36px); }
}
@media (orientation:landscape) and (max-height:600px) {
  body.courier-view.ch-android-host {
    --ch-left:max(env(safe-area-inset-left,0px),34px);
    --ch-right:max(env(safe-area-inset-right,0px),34px);
  }
}
body.courier-view .topbar {
  display:grid; grid-template-columns:44px max-content minmax(0,1fr); gap:14px;
  align-items:center; justify-items:start; position:sticky; top:0;
  width:100%; max-width:none; margin:0; height:auto; min-height:0;
  padding:calc(6px + var(--ch-top)) max(var(--ch-gutter),var(--ch-right)) 6px max(var(--ch-gutter),var(--ch-left));
  background:#fff; border-bottom:1px solid var(--ch-rule); box-shadow:none;
}
body.courier-view #courier-menu-toggle {
  grid-column:1; grid-row:1; width:44px; height:44px; padding:0; display:flex; align-items:center; justify-content:center;
  font-size:0; border:1px solid var(--ch-rule); border-radius:9px; color:var(--ch-ink); background:#fff;
}
body.courier-view #courier-menu-toggle::before {
  content:''; width:20px; height:14px; border-block:2px solid currentColor;
  background:linear-gradient(currentColor,currentColor) center / 100% 2px no-repeat;
}
body.courier-view #brand-home {grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;min-height:44px;padding:0;max-width:100%}
body.courier-view #brand-home .brand-logo {display:block;width:clamp(120px,12vw,155px);height:auto;max-width:100%;object-fit:contain}
body.courier-view #account {grid-column:3;grid-row:1;justify-self:end;min-width:0;display:flex;align-items:center;gap:10px}
body.courier-view #account[data-ch-initials]::before {
  content:attr(data-ch-initials);display:grid;place-items:center;width:36px;height:36px;border-radius:50%;
  background:#e7eef4;color:#274763;font-size:13px;font-weight:700;
}
body.courier-view #whoami {display:grid;gap:1px;min-width:0;max-width:none;text-transform:none;letter-spacing:normal;font-size:14px;line-height:1.25;color:var(--ch-ink)}
body.courier-view #whoami>span {font:inherit;font-weight:650;color:inherit;max-width:38vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.courier-view #whoami>small {font-size:12px;font-weight:500;color:var(--ch-muted)}
body.courier-view #logout,body.courier-home-view #refresh {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;color:var(--ch-blue);background:white;border:1px solid var(--ch-rule);border-radius:9px;padding:6px 13px;font-size:14px;font-weight:650}
body.courier-view #logout {border-color:transparent;color:var(--ch-ink)}
body.courier-view #logout::before,body.courier-home-view #refresh::before,body.courier-home-view #empty-state::before {
  content:'';display:inline-block;width:18px;height:18px;flex:none;background:currentColor;
  -webkit-mask:var(--ch-icon) center/contain no-repeat;mask:var(--ch-icon) center/contain no-repeat;
}
body.courier-view #logout {--ch-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H4v16h6m-1-8h12m-5-5 5 5-5 5'/%3E%3C/svg%3E")}
body.courier-home-view #refresh {--ch-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7v5h-5M4 17v-5h5M5.4 8.4a7.3 7.3 0 0 1 12-2.8L20 8M4 16l2.5 2.6a7.3 7.3 0 0 0 12-3'/%3E%3C/svg%3E")}
body.courier-view :is(#courier-menu-toggle,#logout,#ch-map-expand,#ch-map-close,#refresh):focus-visible,
body.courier-view #courier-drawer button:focus-visible {outline:2px solid #1776c2;outline-offset:2px}
body.courier-view.courier-home-view main {
  width:100%;max-width:none;margin:0;
  padding:6px max(var(--ch-gutter),var(--ch-right)) max(24px,var(--ch-bottom)) max(var(--ch-gutter),var(--ch-left));
}
body.courier-view.courier-home-view #app-view {display:flex;flex-direction:column;gap:0;min-width:0}
body.courier-view.courier-home-view #app-view>.page-head {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;
  margin:0 0 6px;padding:0;min-height:44px;width:100%;order:0;
}
body.courier-view.courier-home-view #app-view>.page-head>div:first-child:not(#courier-status-control){display:none}
body.courier-view.courier-home-view #courier-status-control {margin:0 auto 0 0;min-width:0}
body.courier-view.courier-home-view #courier-status-toggle {
  display:inline-flex;align-items:center;gap:9px;min-width:0;min-height:44px;padding:7px 13px;
  font-size:14px;line-height:1.25;border-radius:9px;background:#edf2f5;border:1px solid #cfdbe3;color:#486071;--ch-dot:#718598;
}
body.courier-view.courier-home-view #courier-status-toggle::before {content:'';display:block;flex:none;width:9px;height:9px;background:var(--ch-dot);border-radius:50%}
body.courier-view.courier-home-view #courier-status-toggle::after {content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:-3px 2px 0 3px}
body.courier-view.courier-home-view #courier-status-toggle[aria-expanded="true"]::after {transform:rotate(225deg);margin-top:3px}
body.courier-view.courier-home-view #courier-status-toggle[data-ch-state="available"] {--ch-dot:#168250;background:#e9f6ee;border-color:#b1d9c1;color:#155a39}
body.courier-view.courier-home-view #courier-status-toggle:is([data-ch-state="busy"],[data-ch-state="danger"]) {--ch-dot:#c43a42;background:#fff0ef;border-color:#efc9c4;color:#9b252b}
body.courier-view.courier-home-view #courier-status-toggle[data-ch-state="break"] {--ch-dot:#b36b0c;background:#fff4df;border-color:#ecd199;color:#785009}
body.courier-view.courier-home-view #courier-status-menu {z-index:9;top:calc(100% + 4px);left:0;right:auto;max-width:calc(100vw - 28px)}
body.courier-view.courier-home-view #notice {order:3;margin:0 0 6px}
body.courier-view.courier-home-view #courier-map-panel {order:2;min-width:0;padding:0;margin:0 0 16px;width:100%;border:1px solid var(--ch-rule);border-radius:12px;background:#fff;box-shadow:none}
#ch-map-frame,#ch-map-surface {position:relative;min-width:0}
#ch-map-frame {border-radius:11px 11px 0 0;overflow:hidden}
body.courier-view.courier-home-view #courier-map {
  width:100%;height:clamp(270px,45vh,550px);height:clamp(270px,45svh,550px);
  min-height:0;max-height:none;border:0;border-radius:0;background:#e9eff3;
}
#ch-map-surface #courier-map:empty + #courier-map-status {
  position:absolute;inset:0;display:grid;place-content:center;text-align:center;
  width:auto;height:auto;clip-path:none;margin:0;padding:14px 52px;overflow:auto;white-space:normal;
  color:#425c70;font-size:14px;pointer-events:none;
}
.ch-map-tool {position:absolute;top:8px;right:8px;z-index:2;width:44px;height:44px;display:grid;place-items:center;background:#fff;color:#203b50;border:1px solid #d2dfe9;border-radius:9px;box-shadow:0 2px 6px #1c385023;cursor:pointer}
.ch-map-tool svg,.ch-icon {display:inline-block;flex:none;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#ch-map-dialog:not([open]) {display:none}
#ch-map-dialog[open] {position:fixed;inset:0;display:block;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#e9eff3}
#ch-map-dialog::backdrop {background:#0e243b}
#ch-map-dialog[open] #ch-map-surface,body.courier-view #ch-map-dialog[open] #courier-map {width:100%;height:100%;min-height:0;max-height:none}
#ch-map-close {top:calc(var(--ch-top,0px) + 10px);right:max(10px,var(--ch-right,0px));font-size:26px;line-height:1}
body.courier-view.courier-home-view #courier-home-gps {display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;border-top:1px solid var(--ch-rule);padding:3px 12px;min-height:44px;margin:0}
body.courier-view.courier-home-view #courier-panel-map-health {font-size:13px;font-weight:600;gap:8px}
body.courier-view.courier-home-view #courier-home-retry {margin-left:auto;min-height:44px;padding:6px 9px;color:var(--ch-blue);background:transparent;border:0;font-size:13px}
body.courier-view.courier-home-view #courier-home-gps-issue:not([hidden]) {flex-basis:100%}
body.courier-view.courier-home-view #orders-panel {order:4;min-width:0;width:100%;margin:0;padding:0}
body.courier-view.courier-home-view #orders-panel>.section-title {display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:10px;margin:0 0 12px}
body.courier-view.courier-home-view #orders-panel>.section-title h2 {font-size:clamp(20px,1.65vw,27px);line-height:1.16;letter-spacing:-.025em;margin:0}
body.courier-view.courier-home-view #order-count {font-size:13px;min-width:30px;padding:4px 9px}
body.courier-view.courier-home-view #orders-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,410px),1fr));gap:12px;margin:0;align-items:start}
body.courier-view.courier-home-view #orders-list:empty {display:none}
body.courier-view.courier-home-view #empty-state:not(.hidden) {border:1px solid var(--ch-rule);border-radius:12px;background:white;margin:0;padding:clamp(22px,3.1vh,37px) 16px;color:var(--ch-muted)}
body.courier-view.courier-home-view #empty-state::before {
  width:34px;height:34px;color:#8297a8;
  --ch-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-5 9 5v10l-9 5-9-5zM3 7l9 5 9-5m-9 5v10M7.5 4.5l9 5'/%3E%3C/svg%3E");
}
body.courier-view.courier-home-view #empty-state .empty-icon {display:none}
body.courier-view.courier-home-view #empty-state strong {color:var(--ch-ink);font-size:17px;margin:7px 0 3px}
#orders-list .ch-home-card {min-width:0;border:1px solid #cfdae4;box-shadow:0 1px 2px #1a344309;border-radius:12px;padding:15px 17px;background:white}
#orders-list .ch-home-card .order-top {display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 10px}
#orders-list .ch-home-card .order-number {font-size:18px;line-height:1.25}
#orders-list .ch-home-card .courier-package-restaurant {min-width:0;flex:1 1 auto;margin:0;font-size:17px;line-height:1.28;overflow-wrap:anywhere}
#orders-list .ch-home-card .badge.assigned {color:#155398;background:#e8f1fd}
#orders-list .ch-home-card .courier-card-restaurant-row:empty,#orders-list .ch-home-card .courier-restaurant-actions:empty,#orders-list .ch-home-card .courier-package-row:empty {display:none}
#orders-list .ch-pickup-address {display:flex;align-items:baseline;gap:8px;margin:8px 0;color:var(--ch-muted);font-size:13px;overflow-wrap:anywhere}
#orders-list .ch-pickup-address svg {align-self:center;width:17px;height:17px}
#orders-list .ch-pickup-actions {display:flex;gap:8px;align-items:stretch;margin:9px 0 12px}
#orders-list .ch-pickup-actions a {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:14px;font-weight:650;padding:6px 14px;text-decoration:none;border-radius:8px}
#orders-list .ch-direction {color:white;background:var(--ch-blue);border:1px solid var(--ch-blue)}
#orders-list .ch-phone {color:var(--ch-blue);background:white;border:1px solid var(--ch-rule);min-width:44px}
#orders-list .ch-home-card .order-actions:empty {display:none}
body.courier-view :is(#admin-drawer,#restaurant-drawer) {visibility:hidden;pointer-events:none}
body.courier-view #courier-drawer {
  --ch-menu-width:min(276px,calc(100vw - max(8px,var(--ch-left)) - max(8px,var(--ch-right))));
  position:fixed;inset:auto;top:var(--ch-menu-y,64px);
  left:clamp(max(8px,var(--ch-left)),var(--ch-menu-x,12px),calc(100% - var(--ch-menu-width) - max(8px,var(--ch-right))));
  width:var(--ch-menu-width);height:auto;min-height:0;
  max-height:calc(var(--ch-menu-bottom,100vh) - var(--ch-menu-y,64px) - max(8px,var(--ch-bottom)));
  padding:6px;gap:0;background:#fff;color:var(--ch-ink);border:1px solid var(--ch-rule);border-radius:12px;
  box-shadow:0 10px 28px #102f462a;transform:none;transition:none;visibility:hidden;pointer-events:none;overflow:hidden;
}
body.courier-view.courier-drawer-open #courier-drawer {visibility:visible;pointer-events:auto;transform:none}
body.courier-view #courier-drawer .drawer-heading {flex:none;height:45px;padding:0 0 0 9px;border-bottom:1px solid #e1e8ef}
body.courier-view #courier-drawer .drawer-heading strong {font-size:15px}
body.courier-view #courier-menu-close {width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;font-size:22px}
body.courier-view #courier-drawer .drawer-scroll {display:block;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:3px 0 0}
body.courier-view #courier-drawer .drawer-note {display:none}
body.courier-view #courier-drawer-nav {display:grid;gap:1px;margin:0}
body.courier-view #courier-drawer .admin-nav-link {display:flex;align-items:center;gap:12px;width:100%;min-height:44px;text-align:left;padding:6px 10px;border:0;border-radius:7px;background:transparent;color:var(--ch-ink);font-size:14px;font-weight:550}
body.courier-view #courier-drawer .admin-nav-link:is(:hover,.active,[aria-current="page"]) {background:#eaf2f9;color:#155997}
body.courier-view #courier-drawer-backdrop {background:rgba(16,42,67,.18)}
@media(max-width:760px) {
  body.courier-view {--ch-gutter:12px}
  body.courier-view .topbar {grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}
  body.courier-view #brand-home {justify-self:center}
  body.courier-view #brand-home .brand-logo {width:128px}
  body.courier-view #account[data-ch-initials]::before,body.courier-view #whoami {display:none}
  body.courier-view #logout {padding:0;width:44px;font-size:0;gap:0}
  body.courier-view.courier-home-view #courier-map {height:clamp(148px,27vh,246px);height:clamp(148px,27svh,246px)}
  body.courier-view.courier-home-view #courier-map-panel {margin-bottom:14px}
  body.courier-view.courier-home-view #plan-route:not([hidden]) {width:auto;min-height:44px;flex:0 1 auto;margin-inline-start:auto}
  #orders-list .ch-home-card {padding:13px}
  #orders-list .ch-pickup-actions .ch-direction {flex:1}
}
@media(max-height:550px) and (orientation:landscape) {
  body.courier-view.courier-home-view #courier-map {height:clamp(125px,37svh,190px)}
}
body.courier-view.courier-home-view :is(#courier-home-gps,#courier-home-retry,#courier-home-gps-issue)[hidden] {display:none!important}

/* Preparation recorded on the order and opening of its current courier assignment. */
#admin-home-panel.op-home {
  --op-data:4.6rem minmax(7rem,1.3fr) minmax(6.85rem,.58fr) 3.7rem minmax(5.4rem,.7fr) minmax(6.25rem,1fr);
}
#admin-home-panel .op-order-line,#admin-home-panel .op-order-toggle {min-width:0}
#admin-home-panel .op-prep-value {
  display:inline-flex;align-items:center;gap:.32em;justify-self:start;align-self:center;max-width:100%;
  padding:3px 7px;border-radius:6px;background:#e4effd;color:#124e88;
  font-size:.8rem;font-weight:680;line-height:1.25;white-space:nowrap;
}
#admin-home-panel .op-prep-value:not(.op-prep-empty)::before {
  content:'';width:1.1em;height:1.1em;flex:none;background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 6v6l4 2.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
#admin-home-panel .op-prep-empty {color:#577080;background:transparent;font-weight:500}
#admin-home-panel .op-rider.op-rider-read {
  display:grid;grid-template-columns:1.2em minmax(0,1fr);gap:1px 5px;align-items:center;
  min-width:0;line-height:1.22;color:#203b54;
}
#admin-home-panel .op-rider-read::before {content:none}
.op-rider-name,.op-read-note {min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.op-read-note {grid-column:2;color:#4a6074;font-size:.71rem;line-height:1.22}
.op-read-symbol {grid-column:1;grid-row:1;display:inline-grid;place-items:center;width:1.2em;height:1.2em;border-radius:50%;font:750 1em/1 system-ui}
.op-read-yes {color:#0d7044;background:#dbf4e5}.op-read-no {color:#a82532;background:#fce5e7}
.op-read-unknown {color:#5a6874;background:#edf1f4}
.op-open-order {font:inherit;color:inherit;border:0;background:transparent;cursor:pointer;display:inline-flex;align-items:center;gap:3px;padding:0 3px 0 0;min-height:28px;white-space:nowrap}
.op-open-order span {font-weight:700;font-size:1em;color:#285e8a}
.op-open-order:focus-visible {outline:2px solid #286cbb;outline-offset:2px}
.op-package-detail {max-width:min(420px,94vw);width:100%;border:1px solid #cbd9e6;border-radius:14px;padding:22px;color:#17354d}
.op-package-detail::backdrop {background:rgb(12 35 55 / .46)}
.op-package-detail h2 {font-size:1.17rem;margin:0 0 14px}
.op-package-facts {display:grid;gap:8px;margin:0 0 16px}
.op-package-facts dt {font-size:.78rem;color:#50687f}.op-package-facts dd {margin:1px 0 0;overflow-wrap:anywhere}
@media(min-width:861px) and (max-width:1120px) {
  #admin-home-panel.op-home {--op-data:3.8rem minmax(4.4rem,1.2fr) 6.45rem 2.8rem minmax(4.2rem,.7fr) minmax(4.85rem,1fr);--op-actions:7.3rem}
}
@media(max-width:860px) {
  #admin-home-panel .op-order-toggle .op-prep-value {flex:none;margin-inline-start:auto;font-size:.71rem;padding:2px 5px}
  #admin-home-panel .op-state-line .op-rider-read {flex:1 1 auto;align-items:center}
  #admin-home-panel .op-identity .op-restaurant {min-width:0}
}

#text-order-trigger{margin-top:.6rem}
#text-order-trigger>summary{cursor:pointer;padding:14px 16px;border-radius:10px;background:#e8f0f7;color:#164a72;font-weight:600}
#text-order-dialog{padding:.75rem 0}
#text-order-dialog dl{display:grid;grid-template-columns:auto 1fr;gap:.45rem 1rem;padding:.85rem;background:#edf4fa;border-radius:.65rem}
#text-order-dialog dd{margin:0;text-align:end;overflow-wrap:anywhere}
.order-text-receipt{white-space:pre-wrap;overflow-wrap:anywhere}

.op-page-head .ok-notices{position:relative;margin-inline-start:auto;margin-inline-end:8px}
.ok-notices[hidden],#ok-notice-list[hidden]{display:none!important}
.ok-notice-toggle{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:#a61920;cursor:pointer;font-weight:bold;padding:6px}
.ok-notice-toggle b,.ok-notice-toggle span{background:#b71921;color:white;padding:2px 7px;border-radius:5px}
.ok-notice-toggle b{border-radius:50%}
#ok-notice-list{position:absolute;z-index:60;right:-3rem;top:100%;width:min(360px,85vw);background:white;border:1px solid #cad6e4;border-radius:12px;padding:12px;box-shadow:0 8px 26px #1c365630;text-align:left;color:#102e44}
.ok-notice-rows{display:grid;max-height:min(58vh,480px);overflow:auto;margin-top:8px}
.ok-notice-row{background:white;padding:10px;border:0;border-top:1px solid #e2e8ee;text-align:left;cursor:pointer;color:inherit}
.ok-notice-row small{display:block;color:#4d6675;margin-top:2px;overflow-wrap:anywhere}
.ok-notice-row.urgent{background:#fff0f0;color:#971923}
.ok-notice-row:hover,.ok-notice-row:focus-visible{background:#eaf4ff}

.op-input-details{grid-column:1/-1;min-width:0}.op-input-details h4{margin:.6rem 0}.op-input-wide{grid-column:1/-1}.op-input-details dd{white-space:pre-wrap;overflow-wrap:anywhere}

:is(#orders-list .courier-package, .courier-package) .order-top.courier-pickup-top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 4px 6px;
}
.courier-pickup-identity {
  display: flex; align-items: center; gap: 4px; min-width: 0;
}
:is(#orders-list .courier-package, .courier-package) .courier-pickup-identity .order-number { flex: none; }
:is(#orders-list .courier-package, .courier-package) .courier-pickup-identity .courier-package-restaurant {
  flex: 0 1 auto; min-width: 0; margin: 0; overflow-wrap: anywhere;
}
:is(#orders-list .courier-package, .courier-package) .courier-pickup-identity .courier-restaurant-actions {
  flex: none; display: flex; gap: 0;
}
:is(#orders-list .courier-package, .courier-package) .courier-pickup-identity .courier-card-icon {
  position: relative; isolation: isolate; display: inline-grid; place-items: center;
  width: 40px; min-width: 0; height: 44px; min-height: 44px; padding: 0; border: 0;
  background: transparent; box-shadow: none; color: #14588a;
}
.courier-pickup-identity .courier-card-icon::before {
  content: ''; position: absolute; inset: 6px 3px; z-index: -1;
  border-radius: 8px; background: #e7f1fb;
}
.courier-pickup-identity .courier-card-icon:active::before { background: #cfdfef; }
.courier-pickup-identity .courier-card-icon svg { width: 16px; height: 16px; fill: currentColor; }
.courier-pickup-status { display: grid; justify-items: end; align-content: center; gap: 3px; }
.courier-pickup-status .badge { margin: 0; }
.courier-pickup-status .courier-preparation-pill {
  white-space: normal; text-align: right; font-size: 11px; line-height: 1.2;
  max-width: 112px; padding: 3px 6px; border-radius: 6px;
}
:is(#orders-list .courier-package, .courier-package) .courier-pickup-top > .courier-card-total {
  grid-row: 2; grid-column: 1 / -1; justify-self: end;
}
:is(#orders-list .courier-package, .courier-package) .courier-pickup-top > .courier-receipt-time {
  grid-row: 3; grid-column: 1 / -1; justify-self: start;
}
.courier-arrival-eta {
  grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0;
  border: 1px solid #d4e0ec; border-radius: 9px; background: #fff;
}
.courier-arrival-eta > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px;
  padding: 5px 11px; box-sizing: border-box; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 650; color: #18384d;
}
.courier-arrival-eta > summary::-webkit-details-marker { display: none; }
.courier-arrival-eta > summary::after {
  content: ''; width: 7px; height: 7px; margin-inline-end: 3px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.courier-arrival-eta[open] > summary::after { transform: rotate(225deg); }
.courier-eta-options {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 0 8px 8px;
}
.courier-eta-options .button { min-width: 0; min-height: 40px; padding: 5px 2px; }
.courier-eta-options .button:disabled { cursor:default; }
.courier-eta-options [aria-pressed="true"] { background: #155da4; color: #fff; }
.courier-eta-feedback { margin: 0 8px 8px; font-size: 12px; color: #365975; }
@media (max-width: 390px) {
  :is(#orders-list .courier-package, .courier-package) .courier-pickup-identity .courier-card-icon { width: 33px; }
  :is(#orders-list .courier-package, .courier-package) .courier-pickup-identity .courier-package-restaurant { font-size: 15px; }
  .courier-pickup-identity { gap: 2px; }
}

/* Scoped to the manager's menu and order archive. */
body.admin-view #admin-drawer {
 inset:var(--menu-top,65px) auto auto var(--menu-left,16px);
 width:min(304px,calc(100vw - 24px));height:auto;
 max-height:calc(100vh - var(--menu-top,65px) - 12px);
 max-height:calc(100dvh - var(--menu-top,65px) - max(12px,env(safe-area-inset-bottom)));
 padding:8px;gap:4px;border:1px solid #d5e0ec;border-radius:15px;
 background:white;box-shadow:0 16px 42px #142e4a32,0 2px 8px #152d491a;
 visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-5px);
 transition:opacity .14s ease,transform .14s ease;z-index:61;
}
body.admin-view.admin-drawer-open #admin-drawer {visibility:visible;opacity:1;pointer-events:auto;transform:none}
body.admin-view #admin-drawer-backdrop {background:#102a433b;z-index:60}
#admin-drawer .drawer-heading {padding:5px 5px 9px 11px;color:#102a43;border-bottom:1px solid #e4ebf3}
#admin-drawer .drawer-heading strong {font-size:16px;letter-spacing:-.02em}
#admin-drawer .drawer-heading .icon-button {width:34px;min-width:34px;height:34px;min-height:34px;border:0;border-radius:8px;color:#536981;background:#f2f5f8;font-size:21px}
#admin-drawer .drawer-scroll {gap:3px;padding:3px 1px;scrollbar-width:thin}
#admin-drawer .drawer-note {display:none}
#admin-drawer .admin-nav {display:grid;gap:2px;padding:0}
#admin-drawer :is(.admin-home-link,.admin-nav-group-toggle,.admin-nav-link,.admin-access-link) {display:flex;align-items:center;justify-content:flex-start;gap:10px;background:transparent;border:0;text-align:left;border-radius:8px;line-height:1.24;box-shadow:none}
#admin-drawer :is(.admin-home-link,.admin-nav-group-toggle,.admin-access-link) {min-height:40px;width:100%;padding:8px 11px;color:#213b55;font-weight:650;font-size:14px}
.admin-control-icon {width:18px;height:18px;flex:0 0 18px}
#admin-drawer .admin-control-icon {color:#49657f}
#admin-drawer .admin-nav-chevron {flex:none;margin-left:auto;width:8px;height:8px;border-right:1.7px solid currentColor;border-top:1.7px solid currentColor;font-size:0;transform:rotate(45deg)}
#admin-drawer button[aria-expanded=true] .admin-nav-chevron {transform:rotate(135deg)}
#admin-drawer :is(.admin-nav-group-toggle.on-page,.admin-home-link.active,.admin-nav-link.active) {color:#0a558f;background:#e5f1fc}
#admin-drawer :is(.on-page,.active)>.admin-control-icon {color:#1563a0}
#admin-drawer button:hover {background:#eff5fa}
#admin-drawer button:focus-visible,.admin-history-tab:focus-visible {outline:2px solid #1769a9;outline-offset:-2px}
#admin-drawer .admin-nav-children {margin:4px 2px 6px 18px;padding:0 0 0 8px;border-left:1px solid #cfdeed;gap:2px}
#admin-drawer .admin-nav-link {width:100%;min-height:34px;padding:6px 9px;color:#415771;font-size:13px;font-weight:550}
#admin-drawer .admin-nav-link>.admin-control-icon {width:16px;height:16px;flex-basis:16px}
#admin-drawer .admin-access-link {margin-top:4px;border-top:1px solid #e0e8f0;border-radius:0 0 8px 8px}
body.admin-view #admin-menu-toggle {border-radius:9px}
body.admin-view #admin-history-total {display:none}
body.admin-view:has(#orders-panel:not(.hidden)[data-history-role="admin"]) #admin-history-total:not([hidden]) {display:inline-flex;vertical-align:middle;align-items:center;gap:7px;padding:6px 10px;color:#124e81;background:#e5f1fc;border:1px solid #d2e5f4;border-radius:8px;font-size:13px;font-weight:650;white-space:nowrap}
body.admin-view:has(#orders-panel:not(.hidden)[data-history-role="admin"]) #greeting {display:inline-block;vertical-align:middle;margin:0 12px 4px 0}
body.admin-view:has(#orders-panel:not(.hidden)[data-history-role="admin"]) :is(#today-label,#role-label) {display:none}
#orders-panel[data-history-role="admin"]>.section-title {display:none}
#orders-panel[data-history-role="admin"] label:has(select[name="status"]) {display:none}
.admin-history-tabs {display:flex;align-items:stretch;gap:8px;margin:0 0 14px;border-bottom:1px solid #cedbe7;max-width:100%}
.admin-history-tabs[hidden],#orders-panel:not([data-history-role="admin"]) .admin-history-tabs {display:none}
.admin-history-tab {border:0;border-bottom:3px solid transparent;background:transparent;color:#506176;font:inherit;font-size:14px;font-weight:600;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 14px;cursor:pointer}
.admin-history-tab[aria-selected="true"] {color:#0d5999;border-color:#176bb0}
.admin-history-tab:hover {background:#edf5fc}
#orders-panel[data-history-role="admin"] .history-shortcuts button.chosen {color:white;background:#1764a6}
#orders-panel[data-history-role="admin"] .history-columns {grid-template-columns:minmax(80px,.69fr) minmax(74px,.66fr) minmax(140px,1.7fr) minmax(105px,1fr) minmax(84px,.9fr) minmax(93px,1fr) 16px;gap:12px}
#orders-panel[data-history-role="admin"] .history-sequence {color:#123c63;font-size:1.08rem;font-variant-numeric:tabular-nums;line-height:1.2}
#orders-panel[data-history-role="admin"] .history-sequence small {font-size:.68em;font-weight:500;margin-top:3px}
#orders-panel[data-history-role="admin"] .history-ticket {color:#425974}
#orders-panel[data-history-role="admin"] .history-cancelled {background:#fce9e9;color:#893535}
#orders-panel[data-history-role="admin"] .history-returned {background:#f1ebfa;color:#62448b}
@media(max-width:760px) {
 #orders-panel[data-history-role="admin"] .history-head {display:none}
 #orders-panel[data-history-role="admin"] summary.history-columns {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 14px;gap:6px 8px}
 #orders-panel[data-history-role="admin"] summary.history-columns>:nth-child(1) {grid-area:1/1}
 #orders-panel[data-history-role="admin"] summary.history-columns>:nth-child(2) {grid-area:1/2}
 #orders-panel[data-history-role="admin"] summary.history-columns>:nth-child(3) {grid-area:2/1}
 #orders-panel[data-history-role="admin"] summary.history-columns>:nth-child(4) {grid-area:2/2}
 #orders-panel[data-history-role="admin"] summary.history-columns>:nth-child(5) {grid-area:3/1;display:block}
 #orders-panel[data-history-role="admin"] summary.history-columns>:nth-child(6) {grid-area:3/2}
 #orders-panel[data-history-role="admin"] summary.history-columns>:nth-child(7) {grid-area:1/3}
 #orders-panel[data-history-role="admin"] summary .history-sequence::before {content:'Günlük sıra ';}
 #orders-panel[data-history-role="admin"] summary .history-ticket::before {content:'Sipariş ';}
 #orders-panel[data-history-role="admin"] summary.history-columns>:nth-child(5)::before {content:'Sipariş tutarı';display:block}
 #orders-panel[data-history-role="admin"] summary.history-columns>:nth-child(6)::before {content:'Teslimat bedeli';display:block}
 #orders-panel[data-history-role="admin"] summary.history-columns>:is(:nth-child(5),:nth-child(6))::before {font-size:11px;font-weight:500;color:#506176}
 .admin-history-tabs {gap:0}
 .admin-history-tab {flex:1 1 0;padding:7px 3px;font-size:13px;line-height:1.2}
 .admin-history-tab .admin-control-icon {width:15px;height:15px;flex-basis:15px}
}
@media(max-width:380px) {.admin-history-tab .admin-control-icon {display:none}}
@media(pointer:coarse) {#admin-drawer :is(.admin-home-link,.admin-nav-group-toggle,.admin-nav-link,.admin-access-link) {min-height:44px}}
@media(prefers-reduced-motion:reduce) {body.admin-view #admin-drawer {transition:none}}
#orders-panel[data-history-role="admin"] #admin-order-filters:not(.hidden) {display:grid;grid-template-columns:minmax(165px,1.4fr) repeat(2,minmax(110px,1fr)) repeat(2,minmax(118px,.9fr)) auto;align-items:end;gap:10px 12px}
#orders-panel[data-history-role="admin"] #admin-order-filters>.history-shortcuts,
#orders-panel[data-history-role="admin"] #admin-order-focus {grid-column:1/-1}
#orders-panel[data-history-role="admin"] #admin-order-filters label {display:grid;align-content:end;gap:5px}
#orders-panel[data-history-role="admin"] #admin-order-filters label:has(select[name="status"]) {display:none}
#orders-panel[data-history-role="admin"] #admin-order-filters :is(input,select) {width:100%;height:42px;min-width:0}
#orders-panel[data-history-role="admin"] #admin-order-filters .form-actions {display:flex;flex-flow:row wrap;align-items:center;align-self:end;justify-content:flex-start;gap:4px;max-width:none}
#orders-panel[data-history-role="admin"] #admin-order-filters>.form-actions:not(#admin-order-focus) {flex-wrap:nowrap}
#orders-panel[data-history-role="admin"] #admin-order-filters>.form-actions:not(#admin-order-focus) button {flex:0 1 auto;width:auto}
@media(min-width:761px) and (max-width:1090px) {
 #orders-panel[data-history-role="admin"] #admin-order-filters:not(.hidden) {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px) {
 #orders-panel[data-history-role="admin"] #admin-order-filters:not(.hidden) {grid-template-columns:repeat(2,minmax(0,1fr));padding:11px;gap:8px}
 #orders-panel[data-history-role="admin"] #admin-order-filters label:has([name="q"]),
 #orders-panel[data-history-role="admin"] #admin-order-filters>.form-actions {grid-column:1/-1}
 #orders-panel[data-history-role="admin"] #admin-order-filters .history-shortcuts {gap:5px}
 #orders-panel[data-history-role="admin"] #admin-order-filters .history-shortcuts .button {padding:6px 4px;flex:1 1 0;min-height:40px}
 #orders-panel[data-history-role="admin"] #admin-order-filters>.form-actions:not(#admin-order-focus) {justify-content:flex-start}
}
