:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#251b38;background:#f7f6fa;--purple:#6a11cb;--violet:#8a2be2;--ink:#251b38;--muted:#786f84;--border:#ece8f1;--green:#13a86b}*{box-sizing:border-box}body{margin:0;min-height:100vh}header{position:sticky;top:0;z-index:10;background:#ffffffed;border-bottom:1px solid var(--border);backdrop-filter:blur(14px);padding:10px max(5%,18px);display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}.brand-mark{width:42px;height:42px;border-radius:13px;background:#170d25;display:grid;place-items:center;overflow:hidden}.brand-mark img{width:100%;height:100%;object-fit:cover}.brand strong{display:block;letter-spacing:1.4px;font-size:17px}.brand small{display:block;color:var(--purple);letter-spacing:2px;font-size:9px;font-weight:800}nav{display:flex;gap:8px;align-items:center}a{color:var(--purple)}main{max-width:1160px;margin:auto;padding:34px 24px 20px}h1{font-size:clamp(34px,5.3vw,58px);letter-spacing:-2.3px;line-height:1.03;margin:14px 0}h1 span{color:var(--purple)}h2{font-size:21px;letter-spacing:-.45px;margin:4px 0 12px}.eyebrow{color:var(--purple);font-size:10px;font-weight:850;letter-spacing:1.7px}.eyebrow span{color:#aaa2b3}.intro,p,small{color:var(--muted);line-height:1.55}.intro{font-size:16px;max-width:640px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin:18px 0 20px}.toolbar h2{font-size:29px;margin:4px 0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.card{background:white;border:1px solid var(--border);border-radius:18px;padding:22px;margin-bottom:18px;box-shadow:0 9px 27px #251b3808}.auth-card{max-width:480px;margin:42px auto}.auth-icon{width:44px;height:44px;border-radius:14px;background:linear-gradient(140deg,#8a2be2,#5411b7);color:white;display:grid;place-items:center;font-size:23px;font-weight:900;margin-bottom:18px}.auth-card>p{margin-top:0}.auth-card form{margin-top:15px}.auth-card details{border-top:1px solid var(--border);padding-top:15px;margin-top:18px}.auth-card summary{font-weight:700}label{display:block;font-size:12px;font-weight:700;margin:13px 0;color:#4d435a}input,select{display:block;width:100%;margin-top:7px;padding:12px 13px;border:1px solid #ded9e7;border-radius:10px;background:white;color:var(--ink);font:inherit}button,.action-link{border:0;border-radius:10px;background:var(--purple);color:white;padding:11px 15px;cursor:pointer;font:inherit;font-size:13px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:transform .15s,background .15s}button:hover,.action-link:hover{background:#521197;transform:translateY(-1px)}button:disabled{opacity:.45;cursor:not-allowed;transform:none}button.primary,.primary.action-link{background:linear-gradient(130deg,#7524d4,#5211b4);color:white}.wide{width:100%}button.quiet{background:#f1edf6;color:#554366}button.quiet:hover{background:#e6def0}button.secondary,.secondary.action-link{background:#f0e8fa;color:#5c1c9b}.danger{background:#fff0f0;color:#b33043}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #b27ce9;outline-offset:3px}details{margin-top:20px}summary{cursor:pointer;color:var(--purple)}#message:not(:empty){padding:12px 15px;border-radius:11px;background:#efe7fa;color:#4d168c;margin:14px 0}#message:empty{display:none}#map{height:310px;border-radius:13px;z-index:0;background:#ece8f1;margin:14px 0}.availability{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px;border-color:#e6daf5;background:linear-gradient(115deg,#fff 62%,#faf6ff)}.availability h2{font-size:23px;margin:6px 0}.availability p{margin:0}.availability-button{min-width:190px;min-height:56px;border-radius:14px;background:var(--green);font-size:15px}.availability-button.is-on{background:#f1edf6;color:#5b4d69}.driver-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.stat{padding:15px 18px;margin:0}.stat span{display:block;color:var(--muted);font-size:12px}.stat strong{display:block;font-size:28px;margin-top:7px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-title h2{margin-top:5px}.live-badge{font-size:10px;border-radius:20px;background:#f0e8fa;color:#6725a8;padding:7px 10px;white-space:nowrap}.notice{border-radius:10px;background:#f8f5fc;padding:11px 13px;font-size:12px}.admin-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(110deg,#fff 60%,#f3eaff)}.admin-summary h2{font-size:26px}.admin-summary p{margin-bottom:0}.admin-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.partner-cta{padding:15px;border-radius:13px;background:#f8f5fc;margin-bottom:12px}.partner-cta p{font-size:12px;margin:7px 0 12px}article{border-top:1px solid var(--border);padding:16px 0}article h3{margin:10px 0 4px;font-size:16px}article p{margin:6px 0;font-size:13px}article button,article .action-link{margin:8px 8px 0 0}.badge{display:inline-flex;background:#f0e7fb;color:#6520a7;border-radius:20px;padding:5px 9px;font-size:11px;font-weight:700}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions select{max-width:230px}footer{text-align:center;color:#8b7d99;font-size:11px;line-height:1.9;margin:25px 16px 35px}small{font-size:11px}[hidden]{display:none!important}@media(max-width:760px){header{padding:9px 15px}main{padding:25px 15px 12px}h1{font-size:39px;letter-spacing:-1.8px}.grid,.admin-columns{grid-template-columns:1fr}.card{padding:18px;border-radius:15px}.toolbar h2{font-size:24px}.availability{align-items:stretch;flex-direction:column}.availability-button{width:100%;min-height:54px}.driver-stats{gap:9px}.stat{padding:13px 12px}.stat strong{font-size:24px}.stat span{font-size:11px}.admin-summary{align-items:flex-start;flex-direction:column}.auth-card{margin:26px auto}.section-title{align-items:flex-start}.live-badge{font-size:9px}}
.remember-login{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;font-weight:600!important;color:#536176!important}.remember-login input{width:18px!important;height:18px!important;margin:0!important}.merchant-nav{display:flex;gap:4px;overflow:auto;padding:0 4px;margin:-4px 0 22px;border-bottom:1px solid #e3e7ee;background:#fff;border-radius:14px 14px 0 0}.merchant-nav button{border:0;background:transparent;color:#536176;padding:15px 13px;border-radius:0;white-space:nowrap}.merchant-nav button.active{color:#6a11cb;border-bottom:3px solid #6a11cb}.merchant-panel{display:grid;gap:18px}.merchant-view-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.merchant-view-head h2{margin:4px 0 0;font-size:28px}.merchant-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.merchant-kpis article{background:#fff;border:1px solid #e6e9ef;border-radius:17px;padding:20px;box-shadow:0 8px 28px #2913490b}.merchant-kpis span,.merchant-kpis small{display:block;color:#768196}.merchant-kpis strong{display:block;font-size:31px;margin:8px 0;color:#222f44}.merchant-chart-card{display:grid;grid-template-columns:1fr 240px;align-items:center;background:#fff;border:1px solid #e6e9ef;border-radius:18px;padding:24px}.merchant-chart-card p{color:#697588}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px}.dot.delivered{background:#18b69c}.dot.active{background:#7621e8}.dot.cancelled{background:#e72974}.merchant-donut{width:170px;aspect-ratio:1;border-radius:50%;background:conic-gradient(#7621e8 0 var(--pct),#eceef2 var(--pct));display:grid;place-items:center}.merchant-donut:after{content:attr(data-value);display:grid;place-items:center;width:108px;aspect-ratio:1;background:#fff;border-radius:50%;font-size:28px;font-weight:900}.quick-actions{display:flex;gap:10px}.quick-actions button:first-child{background:#7621e8;color:#fff}.profile-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:#e5e8ee;border:1px solid #e5e8ee;border-radius:15px;overflow:hidden}.profile-grid>div{background:#fff;padding:18px;display:flex;flex-direction:column;gap:5px}.profile-grid span{font-size:12px;color:#758092}.status-ok{background:#e6f8f0;color:#08784b;padding:7px 11px;border-radius:20px;font-weight:800}.panel-note{padding:14px;background:#f3edff;border-radius:12px;color:#572096}.wallet-hero{background:linear-gradient(135deg,#1c0a39,#7020d8);color:#fff;border-radius:20px;padding:27px}.wallet-hero strong{display:block;font-size:36px;margin:8px 0}.wallet-hero p{color:#d8c9ef}.wallet-tabs{display:flex;gap:5px;border-bottom:1px solid #e2e6ed}.wallet-tabs button{background:transparent;border:0}.wallet-tabs button.active{color:#7621e8;border-bottom:3px solid #7621e8}.merchant-empty{min-height:220px;display:grid;place-items:center;align-content:center;gap:8px;text-align:center;background:#fff;border-radius:18px;color:#778194}.history-filters{display:flex;gap:10px}.history-filters input{flex:1}.merchant-table-wrap{overflow:auto;background:#fff;border:1px solid #e4e8ee;border-radius:16px}.merchant-table{width:100%;border-collapse:collapse;min-width:760px}.merchant-table th,.merchant-table td{padding:13px;text-align:left;border-bottom:1px solid #e7eaf0;font-size:12px}.merchant-table th{color:#657184;background:#f8f9fb}.empty-cell{text-align:center!important;padding:35px!important;color:#778194}.report-layout{display:grid;grid-template-columns:260px 1fr;gap:18px;align-items:start}.report-layout form{background:#fff;border:1px solid #e5e8ee;border-radius:15px;padding:16px}.communication-layout{display:grid;grid-template-columns:280px 1fr;min-height:440px;background:#fff;border-radius:18px;overflow:hidden}.communication-layout aside{padding:18px;border-right:1px solid #e5e8ee}.communication-layout aside button{display:block;width:100%;text-align:left;margin-bottom:8px}.communication-layout aside button.active{background:#f0e8ff;color:#6a11cb}.conversation{padding:22px}.settings-list{background:#fff;border-radius:17px;overflow:hidden}.settings-list label{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:18px;border-bottom:1px solid #e7eaf0}.settings-list label span{display:flex;flex-direction:column}.settings-list small{color:#758092}.settings-list input{width:22px}.help-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.help-grid article{background:#fff;border:1px solid #e5e8ee;border-radius:15px;padding:20px}.help-grid p{color:#6f798a}.merchant-panel+#onboarding[hidden]+#newOrder:not([hidden]){display:block}@media(max-width:800px){.merchant-kpis{grid-template-columns:1fr}.merchant-chart-card,.report-layout,.communication-layout{grid-template-columns:1fr}.merchant-chart-card{justify-items:center}.profile-grid,.help-grid{grid-template-columns:1fr}.merchant-view-head{align-items:flex-start;flex-direction:column}.quick-actions{flex-wrap:wrap}}
.order-flow{max-width:760px;margin:0 auto 20px}.order-flow-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.order-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0}.order-steps span{display:flex;align-items:center;gap:8px;padding:11px;border-radius:12px;background:#f3f0f7;color:#81778d;font-size:12px}.order-steps span.active{background:#eee2ff;color:#6617ba}.order-steps b{font-weight:800}.order-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 16px}.order-grid .wide-field{grid-column:1/-1}.order-grid textarea{display:block;width:100%;min-height:86px;margin-top:7px;padding:12px;border:1px solid #ded9e7;border-radius:10px;font:inherit;resize:vertical}.order-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.quote-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px;padding:16px;border:1px solid #dac8f4;border-radius:14px;background:#faf7ff}.quote-summary span{font-size:11px;color:#756c80}.quote-summary b{display:block;color:#26183a;font-size:18px;margin-top:5px}.offer-overlay{position:fixed;inset:0;z-index:9999;display:grid;place-items:end center;padding:18px;background:linear-gradient(180deg,#140722cc,#08020ef5);backdrop-filter:blur(10px)}.offer-overlay[hidden]{display:none!important}.offer-sheet{width:min(520px,100%);max-height:calc(100vh - 30px);overflow:auto;background:#fff;border-radius:28px 28px 20px 20px;padding:25px;box-shadow:0 -25px 80px #0008;animation:offerIn .25s ease-out}.offer-pulse{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;margin:-5px auto 12px;background:#7922dd;color:#fff;font-size:34px;box-shadow:0 0 0 10px #7922dd20;animation:pulse 1.2s infinite}.offer-kicker{display:block;text-align:center;color:#7621d4;font-weight:900;letter-spacing:2px;font-size:11px}.offer-sheet h2{text-align:center;font-size:25px;margin:8px 0 18px}.offer-value{display:flex;justify-content:center;align-items:baseline;gap:18px;padding:16px;border-radius:16px;background:#f5effc}.offer-value strong{font-size:32px}.offer-value span{color:#675a73;font-weight:800}.offer-route{padding:18px 2px}.offer-route>div{display:flex;gap:12px;align-items:flex-start;padding:10px 0}.offer-route i{width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;background:#7621d4;color:#fff;font-style:normal;font-weight:900}.offer-route span{display:grid;gap:2px}.offer-route small{font-size:10px;text-transform:uppercase;letter-spacing:1px}.offer-route b{font-size:14px;line-height:1.4}.offer-buttons{display:grid;grid-template-columns:1fr 2fr;gap:10px}.offer-buttons button{min-height:54px;font-size:15px}.offer-card{border:1px solid #e6d9f5!important;border-radius:14px;padding:16px!important;margin-bottom:10px;background:#fff}.offer-card:first-child{box-shadow:0 9px 30px #6a11cb14}@keyframes offerIn{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}@keyframes pulse{50%{box-shadow:0 0 0 20px #7922dd08}}@media(max-width:620px){.order-grid,.quote-summary{grid-template-columns:1fr}.order-grid .wide-field{grid-column:auto}.order-steps b{display:none}.order-actions{display:grid;grid-template-columns:1fr}.offer-overlay{padding:0}.offer-sheet{border-radius:24px 24px 0 0}.offer-buttons{position:sticky;bottom:0;background:#fff;padding-top:10px}}

.address-suggestions{position:absolute;z-index:50;left:0;right:0;top:100%;margin-top:4px;background:#fff;border:1px solid #ded6ea;border-radius:14px;box-shadow:0 16px 35px #21103224;overflow:hidden}.address-suggestions:empty{display:none}.address-suggestions button{display:block;width:100%;padding:12px 14px;border:0;border-bottom:1px solid #eee8f4;background:#fff;text-align:left;color:#26193a;font:inherit;cursor:pointer}.address-suggestions button:hover{background:#f6f0ff}.address-suggestions button:last-child{border-bottom:0}
#courierHome{max-width:760px;margin:auto}#courierHome .availability{background:linear-gradient(135deg,#1d0735,#6a11cb);color:#fff;border:0}#courierHome .availability .eyebrow,#courierHome .availability p{color:#eadcff}#courierHome .availability-button{background:#fff;color:#5d14b8;font-weight:800}#courierHome .driver-stats .card{border-top:4px solid #8a2be2}.offer-overlay{backdrop-filter:blur(10px)}

.courier-map-shell{position:relative;height:min(68vh,690px);min-height:520px;margin:-20px 0 18px;overflow:hidden;background:#e8edf1;border-radius:0 0 24px 24px}.courier-map-shell #courierMap{position:absolute;inset:0;z-index:0}.courier-map-top{position:absolute;z-index:2;top:20px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.courier-map-top>*{pointer-events:auto}.courier-menu,.courier-wallet,.courier-bell{background:#fff;color:#17131d;border-radius:999px;box-shadow:0 7px 24px #1a102835}.courier-menu{padding:7px 14px 7px 7px;font-size:23px}.courier-menu img{width:45px;height:45px;border-radius:15px}.courier-wallet{padding:17px 21px;font-size:20px}.courier-bell{position:absolute;z-index:2;right:22px;top:100px;width:58px;height:58px;font-size:18px}.courier-map-status{position:absolute;z-index:2;left:0;right:0;bottom:92px;text-align:center}.map-availability{min-width:240px;min-height:62px;border-radius:999px;background:#22a969;font-size:21px;box-shadow:0 9px 25px #12885155}.map-availability.is-on{background:#fff;color:#462065}.courier-bottom-nav{position:absolute;z-index:3;bottom:0;left:0;right:0;height:78px;background:#fff;display:grid;grid-template-columns:90px 1fr 90px;align-items:center;border-top:1px solid #e2e2e2}.courier-bottom-nav button{background:transparent;color:#17131d;display:grid;gap:2px;font-size:22px}.courier-bottom-nav button span{font-size:12px}.courier-bottom-nav button.active{color:#6a11cb}.courier-bottom-nav strong{text-align:center;font-size:14px}.courier-deliveries-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-bottom:1px solid #ddd;margin-bottom:18px}.courier-deliveries-tabs button{border-radius:0;background:#fff;color:#6f6975;padding:14px 4px}.courier-deliveries-tabs button.active{color:#20182a;border-bottom:3px solid #6a11cb}#courierHome>.availability{margin-top:10px}.offer-overlay{background:linear-gradient(180deg,transparent 0 30%,#08020ea8),radial-gradient(circle at 50% 28%,#6b21a833,transparent 44%)}
@media(max-width:760px){body:has(#courierHome:not([hidden])) header,body:has(#courierHome:not([hidden])) main>.eyebrow,body:has(#courierHome:not([hidden])) .toolbar,body:has(#courierHome:not([hidden])) footer{display:none}body:has(#courierHome:not([hidden])) main{padding:0}#courierHome{max-width:none}.courier-map-shell{height:100svh;min-height:620px;margin:0;border-radius:0}.courier-deliveries-tabs,#courierHome>.availability,#courierHome>.driver-stats,#courierHome>.card{margin-left:14px;margin-right:14px}}

.courier-panel{position:fixed;z-index:80;inset:0;margin:auto;width:min(100%,760px);height:100dvh;overflow:auto;background:#f5f5f6;color:#17131d}.courier-panel>header{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:48px 1fr 48px;padding:14px 16px;background:#fff;border-bottom:1px solid #e4e4e4}.courier-panel>header h2{text-align:center;margin:7px 0}.courier-panel>header button{font-size:22px}#courierPanelBody{padding:18px}.courier-menu-list{display:grid;background:#fff;border-radius:18px;overflow:hidden}.courier-menu-list button{display:flex;justify-content:space-between;min-height:62px;padding:16px 20px;border-radius:0;border-bottom:1px solid #ececec;background:#fff;color:#17131d;text-align:left}.courier-menu-list button:hover{background:#f5effc}.courier-menu-list button.danger{color:#c93844}.courier-profile{display:flex;align-items:center;gap:14px;padding:18px;background:#e8e8ea;border-radius:18px}.courier-avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#6a11cb;color:#fff;font-size:26px;font-weight:900}.courier-period{display:flex;gap:8px;margin:18px 0}.courier-period button{background:#fff;color:#6f6975}.courier-period button.active{color:#6a11cb;border-bottom:3px solid #6a11cb}.courier-balance,.courier-reward{padding:22px;background:#fff;border-radius:18px;margin-bottom:12px}.courier-balance strong{display:block;font-size:38px;margin:8px 0}.courier-summary-row{display:flex;justify-content:space-between;padding:18px;background:#fff;border-bottom:1px solid #ededed}.courier-settings{background:#fff;border-radius:18px;overflow:hidden}.courier-settings label{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px;border-bottom:1px solid #ededed;margin:0}.courier-settings label span{display:grid;gap:4px}.courier-settings input{width:22px}.courier-settings select{width:auto;max-width:180px}.courier-empty{min-height:240px;display:grid;place-items:center;align-content:center;gap:8px;text-align:center;color:#777}.courier-empty span{font-size:13px}.courier-delivery-content{position:relative;min-height:min(100dvh,760px);padding-bottom:92px;background:#f3f3f4}.courier-delivery-nav{position:fixed;width:min(100%,760px);margin:auto}.courier-list-card{margin:0 14px;padding:16px;background:#fff;border:1px solid #e3e3e3;border-radius:15px}.courier-list-card[data-offer-id]{cursor:pointer}#courierHome>.availability,#courierHome>.driver-stats,#courierHome>.card{display:none!important}

.courier-avatar-photo{width:64px;height:64px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 3px 12px #0002}.courier-avatar.large{width:120px;height:120px;font-size:46px}.numbered i{display:inline-grid;place-items:center;width:32px;height:32px;margin-right:10px;border-radius:50%;background:#eff0ff;color:#6518bd;font-style:normal}.courier-form{display:grid;gap:14px;background:#fff;padding:20px;border-radius:18px}.courier-form label{display:grid;gap:7px;font-weight:700}.courier-form input{width:100%}.photo-editor{min-height:65vh;display:grid;place-items:center;align-content:center;gap:18px;text-align:center}.photo-editor img{width:180px;height:180px;border-radius:50%;object-fit:cover;box-shadow:0 10px 30px #0002}.upload-button{display:inline-flex;justify-content:center;cursor:pointer}.upload-button input{position:absolute;opacity:0;pointer-events:none}.courier-list-card+.courier-list-card{margin-top:10px}html[data-theme="dark"] .courier-panel,html[data-theme="dark"] .courier-delivery-content{background:#151219;color:#f7f1ff}html[data-theme="dark"] .courier-panel>header,html[data-theme="dark"] .courier-menu-list,html[data-theme="dark"] .courier-menu-list button,html[data-theme="dark"] .courier-profile,html[data-theme="dark"] .courier-balance,html[data-theme="dark"] .courier-reward,html[data-theme="dark"] .courier-summary-row,html[data-theme="dark"] .courier-settings,html[data-theme="dark"] .courier-list-card{background:#221d28;color:#fff;border-color:#39313f}html[data-theme="dark"] .courier-settings select,html[data-theme="dark"] .courier-form,html[data-theme="dark"] .courier-form input{background:#2a2331;color:#fff;border-color:#493c54}@media(prefers-color-scheme:dark){html[data-theme="system"] .courier-panel,html[data-theme="system"] .courier-delivery-content{background:#151219;color:#f7f1ff}}
.pickup-summary{margin:18px 0;padding:16px 18px;border:1px solid #d9c9ef;border-radius:16px;background:#faf7ff}.pickup-summary span{display:block;color:#74697f;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.pickup-summary strong{display:block;margin-top:5px;font-size:17px}.pickup-summary p{margin:4px 0 0;color:#655c70}.active-delivery-overlay{position:fixed;z-index:10000;inset:0;display:grid;place-items:center;background:#eef1f4}.active-delivery-overlay[hidden]{display:none!important}.active-delivery-sheet{width:min(100%,760px);height:100dvh;overflow:auto;background:#f5f5f6}.active-delivery-sheet>header{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:14px;padding:14px 18px;background:#fff;border-bottom:1px solid #ddd}.active-delivery-sheet>header button{font-size:24px}.active-delivery-sheet>header small{color:#6a11cb;font-weight:900;letter-spacing:.1em}.active-delivery-sheet>header h2{margin:2px 0 0;font-size:20px}.active-route-map{position:relative;height:30vh;min-height:210px;overflow:hidden;background:linear-gradient(35deg,transparent 47%,#fff 48% 52%,transparent 53%),linear-gradient(-28deg,#e8edf1 0 40%,#dfe6ea 41% 60%,#edf1f3 61%);background-size:130px 100px,100% 100%}.route-line{position:absolute;left:22%;top:50%;width:55%;height:6px;border-radius:99px;background:#6a11cb;transform:rotate(-18deg);box-shadow:0 0 0 3px #fff}.route-pin{position:absolute;width:42px;height:42px;border:4px solid #fff;border-radius:50%;display:grid;place-items:center;background:#6a11cb;color:#fff;font-weight:900;box-shadow:0 5px 16px #0003}.route-pin.pickup{left:18%;top:57%}.route-pin.destination{right:17%;top:31%;background:#18131d}.active-delivery-body{padding:20px}.active-delivery-body h3{font-size:24px;margin:12px 0 18px}.active-stop{display:flex;gap:13px;padding:16px 0;border-bottom:1px solid #ddd}.active-stop i{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;background:#6a11cb;color:#fff;font-style:normal;font-weight:900}.active-stop div{display:grid;gap:4px}.active-stop small,.active-payment span{color:#746d79;text-transform:uppercase;font-size:10px;letter-spacing:.08em}.active-stop span{color:#655d69;font-size:13px}.active-payment{display:grid;gap:4px;margin:16px 0;padding:15px;border-radius:14px;background:#fff}.active-payment strong{color:#16834c}.active-notes{padding:14px;border-radius:12px;background:#fff}.active-actions{position:sticky;bottom:0;display:grid;gap:9px;padding:14px 0 4px;background:#f5f5f6}.active-actions .action-link,.active-actions button{width:100%;min-height:52px;text-align:center;justify-content:center}@media(min-width:761px){.active-delivery-sheet{height:min(900px,96dvh);border-radius:24px;box-shadow:0 30px 80px #0004}.active-delivery-overlay{padding:18px}}

.active-route-map{z-index:0;background:#dfe6ea}.active-route-map .leaflet-control-zoom{margin-top:14px}.tracking-updated{margin:0;padding:8px 18px;text-align:center;background:#fff;font-size:11px;border-bottom:1px solid #e2e2e2}.courier-bike-marker{display:grid!important;place-items:center;border-radius:50%;background:#fff;border:3px solid #21a366;font-size:25px;box-shadow:0 5px 18px #0004}.active-delivery-sheet.is-collecting>header,.active-delivery-sheet.is-collecting .active-actions{border-color:#d8c4f4}.active-delivery-sheet.is-collecting .badge{background:#efe4ff;color:#6416b6}.active-delivery-sheet.is-delivering>header{border-bottom:4px solid #1cab6b}.active-delivery-sheet.is-delivering .badge,.active-delivery-sheet.is-delivering .active-stop i{background:#dff7ec;color:#087949}.contact-link{font-size:13px;font-weight:800;text-decoration:none}.customer-contact{margin:16px 0;background:#fff;border:1px solid #e4e0e8;border-radius:14px;overflow:hidden}.customer-contact summary{padding:16px;font-weight:900;color:#2e2438}.customer-contact>div{display:grid;gap:8px;padding:0 16px 16px}.customer-contact .action-link{margin-top:4px}.photo-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.delivery-complete-overlay{position:fixed;z-index:11000;inset:0;display:grid;place-items:center;padding:20px;background:#120721d9;backdrop-filter:blur(12px)}.delivery-complete-overlay[hidden]{display:none!important}.delivery-complete-card{width:min(430px,100%);padding:30px;text-align:center;background:#fff;border-radius:26px;box-shadow:0 30px 90px #0007}.delivery-complete-card>span{display:block;color:#158252;font-size:11px;font-weight:900;letter-spacing:.12em}.delivery-complete-card h2{font-size:25px;margin:10px 0}.delivery-complete-card>strong{display:block;font-size:38px;color:#168a57;margin:14px 0}.delivery-complete-card button{width:100%;margin-top:9px;min-height:50px}.coin-burst{width:82px;height:82px;margin:0 auto 18px;display:grid;place-items:center;border-radius:50%;background:#fff3c7;font-size:42px;animation:coinDrop .7s cubic-bezier(.2,.8,.2,1)}@keyframes coinDrop{0%{transform:translateY(-80px) rotate(-25deg);opacity:0}65%{transform:translateY(8px) rotate(10deg)}100%{transform:none;opacity:1}}@media(max-width:620px){.active-delivery-body{padding:16px}.photo-actions{display:grid;width:100%}.photo-actions label{width:100%}}
.merchant-order-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}.merchant-order-summary>div{display:grid;gap:2px;padding:13px;border-radius:13px;background:#f4f1f7;text-align:center}.merchant-order-summary strong{font-size:24px;color:#281a39}.merchant-order-summary span{font-size:10px;color:#756b80;text-transform:uppercase;font-weight:800}.merchant-order-card{position:relative;border-left:5px solid #c8c0d0!important;padding:17px!important;margin-bottom:11px!important}.merchant-order-card.status-requested{border-left-color:#d99c19!important}.merchant-order-card.status-assigned{border-left-color:#6a11cb!important}.merchant-order-card.status-collected{border-left-color:#168a57!important}.merchant-order-card.status-delivered{border-left-color:#38b77a!important;opacity:.9}@media(max-width:620px){.merchant-order-summary{grid-template-columns:repeat(2,1fr)}}

/* Courier operations cockpit v26 */
.courier-panel>header{grid-template-columns:48px 1fr 76px;align-items:center}.courier-panel-home{display:grid!important;grid-template-columns:20px 1fr;align-items:center;gap:4px;min-width:70px;padding:8px 10px!important;border:1px solid #ded4e8!important;border-radius:12px!important;background:#f8f3ff!important;color:#5d16a5!important}.courier-panel-home span{font-size:20px;line-height:1}.courier-panel-home b{font-size:12px}.delivery-progress{position:sticky;top:0;z-index:6;display:grid;grid-template-columns:repeat(3,1fr);padding:10px 20px 12px;background:#fff;border-bottom:1px solid #e6e0eb;box-shadow:0 5px 16px #25112f12}.delivery-progress>div{position:relative;display:grid;justify-items:center;gap:4px;color:#9a939f;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.delivery-progress>div:not(:last-child):after{content:"";position:absolute;left:58%;right:-42%;top:13px;height:3px;background:#e4ddeb}.delivery-progress i{position:relative;z-index:1;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#ece8ef;color:#726b77;font-style:normal}.delivery-progress .done i,.delivery-progress .current i{background:#6a11cb;color:#fff;box-shadow:0 0 0 5px #efe4ff}.delivery-progress .done:not(:last-child):after{background:#6a11cb}.delivery-progress .current{color:#6416b6}.is-delivering .delivery-progress .done i,.is-delivering .delivery-progress .current i{background:#15945a;box-shadow:0 0 0 5px #dff7ec}.is-delivering .delivery-progress .done:not(:last-child):after{background:#15945a}.is-delivering .delivery-progress .current{color:#087949}.delivery-command{display:grid;grid-template-columns:1fr auto auto;align-items:end;gap:10px;margin:-2px -2px 14px;padding:16px;border-radius:18px;background:linear-gradient(135deg,#1d1029,#401466);color:#fff;box-shadow:0 14px 34px #3a14502b}.delivery-command h3{margin:9px 0 0;font-size:20px}.delivery-command .badge{background:#fff2;color:#fff}.delivery-command-metric{min-width:68px;padding:9px;border:1px solid #ffffff2b;border-radius:12px;background:#ffffff12;text-align:center}.delivery-command-metric small{display:block;color:#d9cbe7;font-size:9px;text-transform:uppercase}.delivery-command-metric b{display:block;margin-top:3px;font-size:13px}.active-stop{position:relative;margin-left:7px;padding:18px 12px 18px 0}.active-stop:not(.destination-stop):after{content:"";position:absolute;left:16px;top:52px;bottom:-18px;width:3px;background:linear-gradient(#6a11cb,#c9afdF);border-radius:9px}.active-stop i{box-shadow:0 0 0 5px #eee2fb}.destination-stop i{background:#151019;box-shadow:0 0 0 5px #e8e5ea}.active-stop b{font-size:15px;line-height:1.35}.active-payment{border:1px solid #e3d9ec;box-shadow:0 8px 22px #24112f0c}.active-payment b{font-size:18px}.active-actions{padding-top:12px}.active-actions .primary{box-shadow:0 10px 24px #6a11cb30}.is-delivering .active-actions .primary{background:#15945a;box-shadow:0 10px 24px #15945a30}@media(max-width:430px){.delivery-command{grid-template-columns:1fr 1fr}.delivery-command>div:first-child{grid-column:1/-1}.delivery-command-metric{min-width:0}.courier-panel>header{grid-template-columns:44px 1fr 72px}.delivery-progress{top:0}}

html:has(body.courier-app),body.courier-app{height:100%;overflow:hidden;overscroll-behavior:none}body.courier-app main,body.courier-app #workspace,body.courier-app #courierHome{height:100dvh;max-height:100dvh;overflow:hidden}body.courier-app .courier-map-shell{height:100dvh!important;min-height:0!important;margin:0!important;border-radius:0!important;touch-action:none}body.courier-app .courier-map-shell .leaflet-container{touch-action:none}body.courier-app .courier-panel,body.courier-app .active-delivery-sheet{overscroll-behavior:contain}

.active-delivery-sheet>header{top:61px!important}.pickup-deadline-overlay{position:fixed;z-index:12000;inset:0;display:grid;place-items:center;padding:20px;background:#170824b8;backdrop-filter:blur(8px)}.pickup-deadline-card{width:min(420px,100%);padding:28px;border-radius:25px;background:#fff;text-align:center;box-shadow:0 24px 80px #0006}.pickup-deadline-card .deadline-icon{width:70px;height:70px;margin:0 auto 14px;display:grid;place-items:center;border-radius:50%;background:#efe2ff;font-size:34px}.pickup-deadline-card h2{margin:8px 0}.pickup-deadline-card button{width:100%;margin-top:12px}.merchant-order-card .order-meta{display:flex;gap:9px;flex-wrap:wrap;color:#6b6370;font-size:12px}.merchant-order-card.is-latest{outline:3px solid #6a11cb22;border-color:#7c2bd1}.nav-icon{font-size:20px;line-height:1}

.courier-home-wide{display:block;width:calc(100% - 32px);margin:22px 16px 34px;padding:15px;border:0;border-radius:16px;background:#f0e8ff;color:#4f0d8a;font-weight:900;font-size:16px}.route-builder{margin-top:18px;padding:22px;border-radius:18px;background:linear-gradient(135deg,#fff,#f3e9ff);border:1px solid #e1cdf8}.route-builder li{margin:12px 0;line-height:1.45}.logistics-kpis{margin-top:18px}

/* v33: gestão compacta de pedidos do estabelecimento */
.merchant-batch-tools{display:flex;justify-content:flex-end;margin:12px 0}
.merchant-order-row{width:100%;display:grid;grid-template-columns:34px minmax(260px,2fr) minmax(150px,1fr) auto 22px;align-items:center;gap:16px;padding:15px 16px;border:0;border-bottom:1px solid #ece7f3;background:#fff;color:#241835;text-align:left;cursor:pointer}
.merchant-order-row:hover{background:#faf7ff}.merchant-order-row small,.merchant-order-row em{display:block;color:#7d7488;font-size:12px;font-style:normal}.merchant-order-row b{display:block;margin:3px 0}.merchant-order-check input{width:18px;height:18px;accent-color:#6a11cb}.row-chevron{font-size:25px;color:#6a11cb}.merchant-order-drawer{position:fixed;inset:0 0 0 auto;width:min(540px,100%);height:100dvh;overflow:auto;background:#fff;box-shadow:-18px 0 50px #1c0b342b;z-index:1100}.merchant-order-drawer>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:14px;padding:18px;background:#fff;border-bottom:1px solid #eee7f5}.merchant-order-drawer>header div{flex:1}.merchant-order-drawer h2{margin:2px 0}.merchant-detail-body{padding:20px}.merchant-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.merchant-detail-grid>div{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid #ece7f3;border-radius:14px}.merchant-detail-grid small{color:#7d7488}.merchant-edit-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px;padding-top:20px;border-top:1px solid #eee7f5}.merchant-edit-form label,.merchant-assign label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700}.merchant-edit-form input,.merchant-edit-form select,.merchant-edit-form textarea,.merchant-assign select{width:100%;padding:12px;border:1px solid #dcd3e8;border-radius:10px;background:#fff}.merchant-edit-form .wide-field{grid-column:1/-1}.merchant-assign{display:grid;grid-template-columns:1fr auto;align-items:end;gap:12px;margin-top:18px}.merchant-detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.read-only-delivery{overflow:auto}
@media(max-width:760px){.merchant-order-row{grid-template-columns:28px 1fr auto}.merchant-order-row>span:nth-child(3){display:none}.merchant-order-row .badge{font-size:10px}.merchant-detail-grid,.merchant-edit-form{grid-template-columns:1fr}.merchant-assign{grid-template-columns:1fr}.merchant-order-drawer{width:100%}}
.dispatch-mode{grid-column:1/-1;border:1px solid #e5dcef;border-radius:16px;padding:14px;margin:0}.dispatch-mode legend{padding:0 7px;font-weight:800}.dispatch-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.dispatch-options button{padding:11px;border:1px solid #ddd1eb;border-radius:10px;background:#fff}.dispatch-options button.active{background:#6a11cb;color:#fff;border-color:#6a11cb}.dispatch-mode label{margin-top:12px}

.delivery-progress.four-steps{grid-template-columns:repeat(4,1fr)}.merchant-courier-identity{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding:16px;border-radius:18px;background:linear-gradient(135deg,#23112f,#6814d9);color:#fff}.merchant-courier-identity[hidden]{display:none}.merchant-courier-identity img,.merchant-courier-identity .courier-avatar{width:66px;height:66px;border-radius:50%;object-fit:cover;border:3px solid #fff}.merchant-courier-identity h3,.merchant-courier-identity p{margin:3px 0}.merchant-courier-identity small{font-weight:900;letter-spacing:.1em}.merchant-courier-identity span{display:inline-block;margin-top:4px;padding:5px 9px;border-radius:999px;background:#fff2}.settings-profile{margin-bottom:18px}
.merchant-command-map{position:relative;height:calc(100dvh - 172px);min-height:650px;margin:0;border-radius:20px;overflow:hidden;background:#e9eef2;box-shadow:0 18px 55px #1d123020}.merchant-command-map[hidden]{display:none!important}#merchantMapCanvas{position:absolute;inset:0}.merchant-map-toolbar{position:absolute;z-index:3;left:22px;right:22px;top:18px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid #fff8;border-radius:17px;background:#fffffff2;box-shadow:0 12px 35px #22123324;backdrop-filter:blur(12px)}.merchant-map-toolbar div{display:grid;gap:2px}.merchant-map-toolbar strong{font-size:18px}.merchant-map-toolbar small{color:#6f7783}.merchant-map-toolbar button{min-height:46px}.merchant-map-legend{position:absolute;z-index:3;right:22px;bottom:22px;display:flex;gap:14px;padding:11px 14px;border-radius:14px;background:#fffffff2;box-shadow:0 8px 28px #25133c1c;font-size:11px;font-weight:800}.merchant-map-legend span{display:flex;align-items:center;gap:6px}.merchant-map-legend i{width:10px;height:10px;border-radius:50%;background:#d99c19}.merchant-map-legend i.pickup{background:#7621e8}.merchant-map-legend i.delivery{background:#15945a}.merchant-orders-board{position:absolute;z-index:4;top:210px;left:max(5%,calc((100vw - 1160px)/2 + 24px));width:min(510px,calc(100vw - 80px));max-height:calc(100dvh - 245px);overflow:auto;margin:0;border-radius:18px;box-shadow:0 20px 60px #21113038}.merchant-orders-heading{position:sticky;top:-22px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 0 14px;background:#fff}.merchant-orders-heading h2{margin:4px 0 0}.merchant-orders-board .merchant-order-summary{position:sticky;top:57px;z-index:2;background:#fff;padding:6px 0 10px}.merchant-orders-board .merchant-order-row{grid-template-columns:28px minmax(210px,1fr) auto 20px;gap:10px}.merchant-orders-board .merchant-order-row>span:nth-child(3){display:none}.merchant-orders-board .merchant-order-row .badge{font-size:9px}.merchant-orders-mode main{max-width:none;padding-left:max(24px,5%);padding-right:max(24px,5%)}.merchant-orders-mode #workspace>.toolbar{margin-bottom:12px}.merchant-orders-mode #merchantHome{position:relative}.merchant-orders-mode footer{display:none}.merchant-orders-mode #newOrder{position:fixed;z-index:1200;inset:0 0 0 auto;width:min(620px,100%);height:100dvh;overflow:auto;margin:0;border-radius:0;box-shadow:-20px 0 60px #1d0d3338}.merchant-orders-mode #newOrder .order-grid{grid-template-columns:1fr 1fr}@media(max-width:900px){.merchant-command-map{height:calc(100dvh - 145px);min-height:600px;border-radius:0;margin-left:-24px;margin-right:-24px}.merchant-orders-board{top:auto;left:14px;right:14px;bottom:18px;width:auto;max-height:48dvh}.merchant-map-toolbar{left:14px;right:14px;top:14px}.merchant-map-toolbar small{display:none}.merchant-map-legend{display:none}.merchant-orders-mode main{padding-left:24px;padding-right:24px}.merchant-orders-mode .merchant-nav{margin-left:-24px;margin-right:-24px;padding-left:18px}.merchant-orders-mode #newOrder .order-grid{grid-template-columns:1fr}}

#message.toast-message{position:fixed;z-index:14000;top:78px;left:50%;transform:translateX(-50%);width:min(520px,calc(100% - 28px));margin:0!important;padding:14px 18px!important;background:#29133feF!important;color:#fff!important;box-shadow:0 16px 45px #18082455;backdrop-filter:blur(10px);animation:toastIn .22s ease-out}@keyframes toastIn{from{opacity:0;transform:translate(-50%,-12px)}to{opacity:1;transform:translate(-50%,0)}}

/* Merchant command center: map workspace with actions fixed to the left rail. */
@media(min-width:901px){
.merchant-orders-mode{overflow:hidden}
.merchant-orders-mode main{max-width:none!important;padding:0!important;margin:0!important}
.merchant-orders-mode #workspace>.toolbar{display:none}
.merchant-orders-mode #merchantHome{position:static}
.merchant-orders-mode .merchant-nav{position:fixed;z-index:40;top:62px;left:0;right:0;height:47px;margin:0;padding:0 32px;border-radius:0;background:#fff;box-shadow:0 1px 0 #e5e7eb}
.merchant-command-map{position:fixed;z-index:1;inset:109px 0 0;height:auto;min-height:0;margin:0;border-radius:0;box-shadow:none}
.merchant-map-toolbar{display:none}
.merchant-map-legend{right:22px;bottom:20px}
.merchant-orders-board{position:fixed;z-index:20;top:125px;bottom:18px;left:28px;width:500px;max-height:none;margin:0;padding:18px 16px 14px;border:0;border-radius:15px;overflow:auto;box-shadow:0 12px 38px #1c263329;background:#f7f8fa}
.merchant-orders-heading{top:-18px;margin:-18px -16px 0;padding:20px 18px 16px;border-bottom:1px solid #e3e6eb;background:#fff}
.merchant-orders-heading h2{font-size:23px}
.merchant-orders-board .merchant-order-summary{top:80px;margin:0 -16px;padding:16px;background:#fff;border-bottom:1px solid #e5e7eb}
.merchant-orders-board .merchant-order-row{margin:10px 0;padding:14px 10px;border:1px solid #e4e7ec;border-radius:11px;background:#fff;box-shadow:none}
.merchant-orders-mode #newOrder{position:fixed;z-index:30;inset:125px auto 18px 28px;width:500px;height:auto;max-height:none;margin:0;padding:18px;border-radius:15px;overflow:auto;box-shadow:0 12px 38px #1c263329}
.merchant-orders-mode #newOrder .order-grid{grid-template-columns:1fr 1fr;gap:12px}
.merchant-orders-mode #newOrder .order-flow-head{position:sticky;top:-18px;z-index:5;margin:-18px -18px 14px;padding:18px;border-bottom:1px solid #e5e7eb;background:#fff}
}

.return-option{grid-column:1/-1!important;padding:14px 16px;border:1px solid #ded6eb;border-radius:14px;background:#f8f5fc}.return-option>span:first-child{font-weight:900}.return-switch{display:flex;align-items:center;gap:9px;margin-top:9px;color:#5c5068;font-size:13px}.return-switch input{width:20px;height:20px;accent-color:#6814d9}

/* v41: merchant startup command center */
body:not(.courier-app){background:radial-gradient(circle at 92% 0,#e3eeff 0,transparent 34%),#f4f7fb;color:#172033}body:not(.courier-app) .toolbar{min-height:72px;background:#ffffffeb;border-bottom:1px solid #e4ebf4;backdrop-filter:blur(16px)}body:not(.courier-app) .merchant-nav{gap:8px;margin:0 0 24px;padding:8px;background:#fff;border:1px solid #e4eaf2;border-radius:16px;box-shadow:0 12px 35px #24466d0d}body:not(.courier-app) .merchant-nav button{padding:11px 15px;border-radius:10px;font-weight:800}body:not(.courier-app) .merchant-nav button.active{border:0;background:linear-gradient(135deg,#246eef,#174fc9);color:#fff;box-shadow:0 8px 22px #2369ed2b}.merchant-panel{gap:20px}.merchant-view-head h2{font-size:31px;letter-spacing:-.035em}.merchant-kpis article,.merchant-chart-card,.profile-grid,.merchant-table-wrap,.report-layout form,.communication-layout,.settings-list,.help-grid article{border-color:#e2e9f2;box-shadow:0 14px 45px #24466d0c}.merchant-kpis article{position:relative;overflow:hidden}.merchant-kpis article:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(#2876ef,#75b7ff)}.merchant-kpis strong{color:#17335e}.merchant-chart-card{border-radius:21px}.merchant-donut{background:conic-gradient(#246eef 0 var(--pct),#e9eef5 var(--pct))}.quick-actions button:first-child,.merchant-view-head button,.order-flow .primary{background:linear-gradient(135deg,#246eef,#174fc9);color:#fff;box-shadow:0 9px 24px #2369ed24}.wallet-hero{background:radial-gradient(circle at 90% 0,#66b5ff55,transparent 38%),linear-gradient(135deg,#102b63,#1758c8)}.status-ok{background:#e7f8f1;color:#08764c}.panel-note{background:#eaf2ff;color:#2457a8}.merchant-order-drawer>header{background:#f8fbff}.merchant-courier-identity{background:radial-gradient(circle at 90% 0,#62a9ff55,transparent 40%),linear-gradient(135deg,#102b63,#1758c8)}.return-option{border-color:#ccdcf2;background:#f2f7ff}.return-switch input{accent-color:#2369ed}
@media(min-width:901px){.merchant-orders-mode .merchant-nav{top:62px;height:55px;padding:7px 28px;border:0;border-bottom:1px solid #e4eaf2;border-radius:0;box-shadow:0 4px 18px #203d6110}.merchant-command-map{inset:117px 0 0}.merchant-orders-board{top:135px;bottom:20px;left:28px;width:470px;padding:18px;border:1px solid #dfe7f1;border-radius:20px;background:#f7f9fc;box-shadow:0 20px 60px #17345326}.merchant-orders-heading{margin:-18px -18px 0;padding:21px 19px 17px}.merchant-orders-heading h2{font-size:22px;letter-spacing:-.025em}.merchant-orders-board .merchant-order-summary{margin:0 -18px;padding:15px 18px}.merchant-order-summary>div{background:#edf3fb}.merchant-order-summary strong{color:#183a6a}.merchant-orders-board .merchant-order-row{border-color:#dfe7f1;border-radius:14px}.merchant-orders-board .merchant-order-row:hover{border-color:#8bb5f1;background:#f7faff}.merchant-orders-mode #newOrder{top:135px;bottom:20px;left:28px;width:470px;border:1px solid #dfe7f1;border-radius:20px}.merchant-map-legend{border:1px solid #dfe7f1}}
@media(max-width:900px){body:not(.courier-app) .merchant-nav{border-radius:0;margin-inline:-24px;padding-inline:18px}.merchant-view-head h2{font-size:26px}}

/* v42: fluid merchant workspace on every screen */
html,body{width:100%;min-width:0;overflow-x:hidden}body:not(.courier-app) main{width:100%;max-width:none;margin:0;padding:clamp(16px,2vw,30px)}body:not(.courier-app) #workspace,body:not(.courier-app) #merchantHome,body:not(.courier-app) .merchant-panel{width:100%;min-width:0}.merchant-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.merchant-chart-card{grid-template-columns:minmax(0,1fr) minmax(170px,260px)}.merchant-table-wrap{width:100%;overflow:auto;overscroll-behavior-inline:contain}.report-layout{grid-template-columns:clamp(230px,20vw,310px) minmax(0,1fr)}.communication-layout{grid-template-columns:clamp(220px,22vw,310px) minmax(0,1fr)}
@media(min-width:1500px){.merchant-orders-mode #newOrder,.merchant-orders-board{left:24px;width:clamp(470px,29vw,570px)}.merchant-panel{max-width:none}.merchant-kpis article{min-height:145px}}
@media(max-width:1100px){.merchant-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.merchant-chart-card{grid-template-columns:1fr 200px}.report-layout,.communication-layout{grid-template-columns:1fr}.communication-layout aside{display:flex;overflow:auto;border:0;border-bottom:1px solid #e5e8ee}.communication-layout aside button{width:auto;white-space:nowrap;margin:0 7px 0 0}}
@media(max-width:760px){body:not(.courier-app) main{padding:14px}.merchant-nav{width:calc(100% + 28px);margin-inline:-14px!important;padding-inline:14px!important;overflow-x:auto;scrollbar-width:thin}.merchant-kpis{grid-template-columns:1fr}.merchant-chart-card{grid-template-columns:1fr;padding:18px}.merchant-view-head{width:100%}.merchant-view-head>div:last-child{display:flex;width:100%;gap:8px}.merchant-view-head button{flex:1}.quick-actions{display:grid;grid-template-columns:1fr}.profile-grid,.help-grid{grid-template-columns:1fr}.history-filters{display:grid;grid-template-columns:1fr}.wallet-tabs{overflow:auto}.merchant-order-drawer{width:100%}.merchant-detail-grid,.merchant-edit-form{grid-template-columns:1fr}}
@media(max-width:430px){body:not(.courier-app) main{padding:10px}.merchant-view-head h2{font-size:23px}.merchant-kpis article{padding:16px}.merchant-kpis strong{font-size:27px}.merchant-chart-card{padding:15px}.merchant-donut{width:145px}.merchant-donut:after{width:92px}.card{border-radius:14px;padding:15px}.merchant-order-row{grid-template-columns:25px minmax(0,1fr) auto;padding:12px 8px}.merchant-order-row .badge{max-width:96px;white-space:normal}.merchant-detail-body{padding:14px}.merchant-detail-actions{display:grid;grid-template-columns:1fr}.merchant-detail-actions button{width:100%}}

/* v43: clean shells without the platform-wide outline */
body:not(.courier-app){border:0!important;outline:0!important}body:not(.courier-app)>header{border:0!important;box-shadow:0 1px 0 #e9eef5}body:not(.courier-app) .card,body:not(.courier-app) .merchant-chart-card,body:not(.courier-app) .merchant-table-wrap,body:not(.courier-app) .communication-layout,body:not(.courier-app) .settings-list{border:0!important;box-shadow:0 14px 44px #26496f0d}.auth-card{width:min(440px,calc(100vw - 28px));max-width:440px;margin:clamp(28px,7vh,76px) auto;padding:clamp(22px,3vw,34px);border:0!important;border-radius:22px;box-shadow:0 24px 70px #17345316!important}.auth-card input{min-height:46px}.auth-card button{min-height:46px}.merchant-nav{border:0!important}

.wallet-composition{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.wallet-composition>div{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.wallet-composition span{display:block;color:#6c788b;font-size:12px}.wallet-composition b{display:block;margin-top:6px}.wallet-action{display:grid;grid-template-columns:1fr minmax(170px,240px) auto;align-items:end;gap:14px;background:#fff;border:1px solid #e2e8f0;border-radius:17px;padding:18px}.wallet-action h3,.wallet-action p{margin:0 0 5px}.wallet-action p{color:#6c788b;font-size:12px}@media(max-width:700px){.wallet-composition{grid-template-columns:1fr 1fr}.wallet-action{grid-template-columns:1fr}.wallet-action button{width:100%}}

.wallet-statement{background:#fff;border:1px solid #e2e8f0;border-radius:17px;padding:18px}.wallet-statement h3{margin-top:0}.wallet-entry{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #e8edf3}.wallet-entry span{display:flex;flex-direction:column;font-size:12px}.wallet-entry small{color:#718097;margin-top:4px}.wallet-entry b.credit{color:#078450}.wallet-entry b.debit{color:#bf3447}

@media(max-width:600px){body.merchant-orders-mode{height:100dvh;overflow:hidden}.merchant-orders-mode header{padding:8px 12px}.merchant-orders-mode main{height:calc(100dvh - 59px);padding:0!important;overflow:hidden}.merchant-orders-mode #workspace,.merchant-orders-mode #merchantHome{height:100%;overflow:hidden}.merchant-orders-mode .toolbar{display:none}.merchant-orders-mode .merchant-nav{position:relative;z-index:30;width:100%;height:52px;margin:0!important;padding:6px 10px!important;overflow-x:auto;white-space:nowrap;border-bottom:1px solid #e5e9f0!important;background:#fff}.merchant-orders-mode .merchant-command-map{position:absolute;inset:52px 0 0;height:auto!important;min-height:0!important;margin:0!important}.merchant-map-toolbar{left:8px;right:8px;top:8px;padding:10px 12px;border-radius:14px}.merchant-map-toolbar strong{font-size:15px}.merchant-map-toolbar button{min-height:42px;padding:9px 12px}.merchant-orders-board{position:absolute;z-index:20;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));top:auto;width:auto;max-height:min(52dvh,520px);margin:0;padding:14px 12px;border-radius:18px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 16px 48px #1720333d}.merchant-orders-heading{top:-14px;margin:-14px -12px 0;padding:15px 12px 12px}.merchant-orders-heading h2{font-size:20px}.merchant-orders-heading .primary{min-width:82px;padding-inline:11px}.merchant-orders-board .merchant-order-summary{top:54px;margin:0 -12px;padding:8px 12px}.merchant-orders-board .merchant-order-row{grid-template-columns:25px minmax(0,1fr) auto 16px;padding:11px 6px}.merchant-orders-mode #newOrder{inset:59px 0 0;width:100%;height:auto;padding:14px;border-radius:0;box-shadow:none;padding-bottom:calc(24px + env(safe-area-inset-bottom))}}
