.sandbox-screen{position:fixed;inset:0;margin:0;padding:0;border:0;border-radius:0;width:100%;max-width:none;height:100dvh;max-height:none;background:#f4f7fb;color:#182c48;overflow:hidden;box-sizing:border-box}
.sandbox-screen[open]{display:flex;flex-direction:column}
.sandbox-screen-head{display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));background:linear-gradient(110deg,#175bc3,#0a378d);color:white;min-height:62px;box-sizing:border-box}
.sandbox-screen-head h2{margin:0;font-size:20px;color:white}.sandbox-screen-head button{flex:none;min-height:40px;padding:8px 15px;border:1px solid #ffffff77;border-radius:10px;background:#ffffff18;color:white;font:700 15px sans-serif;cursor:pointer}
.sandbox-screen>iframe{display:block;flex:1;width:100%;min-height:0;border:0;background:#f4f7fb;padding-bottom:env(safe-area-inset-bottom);box-sizing:border-box}.sandbox-screen-open{overflow:hidden!important}
.sandbox-embedded .sandbox-bar,.sandbox-embedded #sandboxBack,.sandbox-embedded #sandboxHome,.sandbox-embedded .admin-page>.shell>header{display:none!important}
.sandbox-embedded body.admin-page>.shell{padding-bottom:0!important;width:100%!important;max-width:none!important;margin:0!important}
.sandbox-embedded .notice-editor,.sandbox-embedded .oai-popup,.sandbox-embedded .sandbox-tools-dialog{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-sizing:border-box}
.sandbox-embedded .oai-popup-close,.sandbox-embedded .notice-editor header [data-close],.sandbox-embedded .sandbox-tools-dialog .dialog-heading{display:none!important}

.sandbox-embedded #panel>#orderAiAssistant{display:none!important}

.sandbox-driver-screen #driverManagerDialog{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-sizing:border-box}
.sandbox-driver-screen #driverManagerDialog>.fee-dialog-head{display:none!important}

.sandbox-embedded #backToAdminBtn{display:none!important}

/* A full-screen menu already provides its page title in the outer header. */
.sandbox-embedded #ordersTab>.section-title,
.sandbox-embedded #statsTab>.section-title,
.sandbox-embedded #customersTab>.section-title,
.sandbox-embedded .sandbox-page-title,
.sandbox-embedded .notice-editor>form>header,
.sandbox-embedded .oai-popup #orderAiAssistant>summary,
.sandbox-embedded body.manager-view>header{display:none!important}
.sandbox-embedded #productsTab>.section-title{margin-top:0!important}

#hallaLiveDeliverySettings{margin:12px 0;padding:0;border:1px solid #d8e2e0;border-radius:14px;background:#fff;color:#203b32}#hallaLiveDeliverySettings>summary{padding:14px 16px;cursor:pointer;font-weight:700;font-size:16px}#hallaLiveDeliverySettings .delivery-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#hallaLiveDeliverySettings label{display:flex;flex-direction:column;gap:6px;font-size:13px}#hallaLiveDeliverySettings input{box-sizing:border-box;width:100%;min-width:0;padding:11px;border:1px solid #cbd8d2;border-radius:9px;font-size:16px}#hallaLiveDeliverySettings button{margin:4px 4px 4px 0;min-height:42px}#hallaLiveDeliverySettings small{display:block;line-height:1.6;color:#65736d}

.driver-pay-settings>summary{font-size:16px;font-weight:700;cursor:pointer;padding:2px 0}.driver-pay-settings[open]>summary{margin-bottom:14px}.driver-pay-settings p{font-size:12px;line-height:1.6;color:#65736d}.driver-pay-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.driver-pay-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px}.driver-pay-grid input{box-sizing:border-box;width:100%;min-width:0;font-size:16px;padding:11px}.driver-pay-settings #paidFeeForm>button{margin-top:8px;min-height:42px}.driver-pay-settings #freeFeeForm{flex-wrap:wrap}

.delivery-settings-group{margin:12px 0}.delivery-settings-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.delivery-settings-buttons>button{width:100%;min-width:0;min-height:50px;padding:12px 6px;border:1px solid #cddbd4;border-radius:12px;background:#fff;color:#244a3b;font-size:14px;font-weight:700;white-space:normal;line-height:1.35}.delivery-settings-buttons>button.selected{background:#1d503e;color:#fff;border-color:#1d503e}.delivery-settings-panel[hidden]{display:none!important}.delivery-settings-panel{margin-top:10px;padding:12px;border:1px solid #d8e2de;border-radius:14px;background:#f7faf8}.delivery-settings-panel #hallaLiveDeliverySettings{border:0;margin:0;background:transparent}.delivery-settings-panel #hallaLiveDeliverySettings>summary{display:none!important}.delivery-settings-panel #hallaLiveDeliverySettings>div{padding:0!important}.delivery-settings-panel .driver-pay-settings{margin:0 0 12px;padding:14px;border:1px solid #d8e2de;box-shadow:none}.delivery-settings-panel h3{margin:0 0 12px;font-size:16px}.delivery-settings-close{display:block;margin:10px 0 0 auto;font-size:13px;min-height:40px}

.driver-payment-settings{margin:0 0 16px;border:1px solid #d1ded7;border-radius:12px;background:white}.driver-payment-settings>summary{padding:14px 16px;font-size:16px;font-weight:700;cursor:pointer}.driver-payment-settings>.delivery-settings-panel{margin:0;border:0;border-top:1px solid #d1ded7;border-radius:0 0 12px 12px}

.manager-view #feeDialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0}.manager-view #feeDialog .fee-dialog-head{position:sticky;top:0}.fee-driver-group,.fee-date-group{border:1px solid #d8e3dc;border-radius:12px;background:#fff;margin:10px 0;overflow:hidden}.fee-tree-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:15px 12px;font-size:14px;cursor:pointer;list-style:none}.fee-tree-row::-webkit-details-marker{display:none}.fee-tree-row>strong{white-space:nowrap;color:#184e38}.fee-tree-row .fee-name{font-weight:700}.fee-tree-row .fee-count{font-size:12px;color:#6b7e72}.fee-tree-row:not(:has(.fee-count)){grid-template-columns:minmax(0,1fr) auto}.fee-driver-group>summary:after,.fee-date-group>summary:after{content:'＋';grid-column:4;color:#658474}.fee-driver-group[open]>summary:after,.fee-date-group[open]>summary:after{content:'−'}.fee-driver-group>summary{background:#f0f6f2}.fee-tree-days{padding:0 10px 8px}.fee-date-name{display:flex;flex-direction:column;gap:4px}.fee-date-name span{font-size:12px;color:#6b7e72}.fee-tree-details{padding:0 10px 10px}.fee-tree-details .fee-detail-row{margin-top:8px;padding:12px}.fee-payment-row{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e2eae5;padding:14px 0;font-size:13px}.fee-payment-row small{display:block;color:#6d7e74;font-size:11px;margin:4px 0}.fee-payment-row>div:last-child{text-align:right}.fee-payment-row strong{font-size:16px}.fee-unpaid-row{cursor:default;border:1px solid #d8e3dc;border-radius:12px;margin:10px 0;background:#fff}.manager-view #adminDriverView{margin-top:12px}

.driver-manager-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.driver-manager-actions button{min-width:0;padding:12px 8px;font-size:15px}.registered-drivers-title{font-size:17px;margin:20px 0 10px}.driver-settings-modal{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#f6f8f5;color:#173b2d;box-sizing:border-box}.driver-settings-modal .fee-dialog-head{position:sticky;top:0}.driver-settings-modal #driverEditor{padding:0;margin:0;border:0;background:transparent;box-shadow:none}.driver-settings-modal .driver-pay-settings{padding:16px;margin:0 0 14px}.driver-settings-modal h3{font-size:17px;margin:0 0 12px}



#loginForm.initial-password-setup .driver-identity-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}#loginForm.initial-password-setup .driver-identity-row>label{min-width:0}#loginForm.initial-password-setup .driver-identity-row input{width:100%;min-width:0;box-sizing:border-box;font-size:16px;padding:11px 8px}
/* Compact spacing applies only after entering initial password setup. */
#login.driver-login:has(.initial-password-setup){padding:12px;margin:8px auto;border-radius:12px}
#login.driver-login:has(.initial-password-setup) h1{font-size:22px;line-height:1.3;margin:4px 0 6px}
#login.driver-login:has(.initial-password-setup) #loginGuide{margin:0 0 8px;line-height:1.4}
#loginForm.initial-password-setup{display:flex;flex-direction:column;gap:8px;min-width:0}
#loginForm.initial-password-setup .driver-identity-row{gap:8px}
#loginForm.initial-password-setup label{margin:0;font-size:13px;line-height:1.35}
#loginForm.initial-password-setup input{height:40px;min-height:40px;margin-top:3px;padding:7px 9px;font-size:16px;line-height:1.3;border-radius:8px;min-width:0;width:100%;box-sizing:border-box}
#loginForm.initial-password-setup button{min-height:42px;margin-top:0;padding:8px 10px;font-size:15px;line-height:1.4;border-radius:9px}
#login.driver-login:has(.initial-password-setup) .hint{margin:8px 0 0;font-size:11px;line-height:1.4}

.sandbox-screen.sandbox-map-fullscreen>.sandbox-screen-head{display:none}.sandbox-screen.sandbox-map-fullscreen>iframe{padding-bottom:0}

#drivers{display:grid;gap:10px;min-width:0}.driver-swipe-hint{font-size:12px;color:#728278;margin:0 0 10px}
#drivers .driver-swipe{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;border:1px solid #d6e2d9;border-radius:15px;background:#fff;margin:0;padding:0;min-width:0;max-width:100%}
#drivers .driver-swipe::-webkit-scrollbar{display:none}
#drivers .driver-card-face{flex:0 0 100%;min-width:0;box-sizing:border-box;padding:14px 15px 10px;scroll-snap-align:start;background:white}
.driver-card-heading{display:flex;align-items:center;gap:10px;justify-content:space-between}.driver-card-heading>b{font-size:17px;overflow-wrap:anywhere;color:#173f30}
.driver-status{flex:none;font-size:11px;line-height:1.5;padding:3px 9px;border-radius:20px;background:#e4efdf;color:#375b37;font-weight:700}.driver-status.is-pending{background:#fff2d5;color:#916715}.driver-status.is-disabled{background:#f4e4e2;color:#9a4240}
.driver-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:3px}.driver-phone{font-size:15px;color:#51685b;white-space:nowrap}
#drivers .driver-reveal{min-height:32px;min-width:36px;border:0;background:transparent;font-size:22px;padding:0 5px;color:#6c8274}
#drivers .driver-swipe-actions{flex:0 0 auto;display:flex;gap:0;align-items:stretch;scroll-snap-align:end;background:#eaf1ed;padding:0}
#drivers .driver-swipe-actions>button{width:120px;min-height:100%;border:0;border-left:1px solid #d6e2d9;border-radius:0;background:#eaf1ed;padding:12px 8px;font-size:13px;white-space:normal;color:#214d3b}
#drivers .driver-swipe-actions>.driver-stop{width:88px;background:#fbebea;color:#a53d37}

.driver-manager-actions:has(>button:only-child){grid-template-columns:1fr;margin-bottom:8px}

#stockAlertsTab{padding:8px 12px}#stockAlertsTab.hide{display:none!important}.sandbox-embedded #stockAlertsTab>#lowStockPanel>summary{display:none}#stockAlertsTab #lowStockPanel{margin:0}#stockAlertsTab #lowStockEmpty{padding:18px 8px;text-align:center;color:#61756a}
