:root{--nav:#132324;--ink:#182d2e;--muted:#778384;--bg:#f5f7f6;--line:#e4e9e6;--green:#1d7664;--lime:#d6f478;--red:#b84940;--amber:#ab7628}*{box-sizing:border-box}body{margin:0;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:9px 15px;background:#fff;color:var(--ink);transition:background .15s}button:hover{background:#edf2ed}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--green);border-color:var(--green);color:#fff}button.primary:hover{background:#155e50}.danger{color:var(--red)}a{color:var(--green)}input,select,textarea{border:1px solid #dce3df;background:#fff;border-radius:7px;padding:10px 12px;color:var(--ink);min-width:0;max-width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #72b5a3;outline-offset:1px}label{display:flex;flex-direction:column;gap:6px;color:#526363;font-size:12px;font-weight:550}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.2;letter-spacing:-1px;font-weight:650;margin-bottom:10px}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:14px}small{font-size:11px}strong{font-weight:600}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--green);font-weight:700;margin-bottom:10px}.sidebar{width:222px;background:var(--nav);color:#c3d0cc;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:30px 17px;z-index:5}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit;font-size:25px;letter-spacing:-1px;font-weight:700;padding:0 10px}.workspace-label{font-size:8px;letter-spacing:1.8px;color:#79928b;margin:42px 12px 13px}nav{display:flex;flex-direction:column;gap:5px}nav button{border:0;background:none;color:#a4b9b1;text-align:left;font-size:12px;padding:11px 12px;border-radius:7px;display:flex;gap:12px;align-items:center}nav button>span{font-size:18px;width:18px;color:#91a99e}nav button:hover{background:#203a36;color:#fff}nav button.active{background:#314537;color:var(--lime)}nav button.active span{color:var(--lime)}nav button b{margin-left:auto;font-size:10px;border-radius:4px;background:#425a48;padding:0 5px}.nav-divider{height:1px;background:#2a403c;margin:18px 10px}.sidebar-bottom{margin-top:auto}.connection{font-size:10px;color:#8fa99c;display:flex;align-items:center;gap:7px;padding:12px}.connection i{width:5px;height:5px;border-radius:50%;background:#afe581}.user{border-top:1px solid #2c423e;padding:18px 0 0;display:flex;align-items:center;gap:10px;font-size:11px}.avatar{border-radius:50%;width:31px;height:31px;background:#3b5146;display:grid;place-items:center;color:#dcf5bc}.user small{display:block;color:#7e998c;font-size:9px}.user button{padding:3px 7px;border:0;background:none;color:#819b90;margin-left:auto;font-size:19px}.shell{margin-left:222px;min-height:100vh;display:flex;flex-direction:column}header{height:73px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 33px;background:#fff}.breadcrumb{font-size:11px;color:#94a19a}.breadcrumb span{padding:0 12px;color:#c3cdc7}.breadcrumb strong{color:#4b6259}.header-right{display:flex;align-items:center;gap:20px;font-size:10px;color:#71867b}.header-separator{height:20px;width:1px;background:var(--line)}.city-label{flex-direction:row;align-items:center;font-size:16px;color:var(--green)}.city-label select{border:0;font-size:12px;font-weight:600;padding:5px;max-width:200px}main{padding:28px 33px;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 25px}.page-heading .muted{font-size:12px;margin:0}.page-heading .eyebrow{font-size:9px;margin-bottom:8px}#page-actions{display:flex;gap:8px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:22px}.stat{background:#fff;border:1px solid var(--line);border-radius:11px;padding:17px 19px}.stat-label{font-size:11px;color:#74847b;display:flex;align-items:center;justify-content:space-between}.stat-icon{border-radius:6px;background:#f0f5ee;padding:4px 8px;color:#658171}.stat-value{font-size:30px;line-height:1.3;font-weight:600;letter-spacing:-1px;margin:8px 0}.stat-detail{font-size:10px;color:#8c9a90}.stat-detail .dot{color:var(--green)}.stat.alert .stat-value{color:var(--amber)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:stretch}.panel{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;margin-bottom:20px}.panel-head{padding:17px 19px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:8px}.panel-head h2{font-size:13px;margin:0;font-weight:650}.badge{display:inline-flex;align-items:center;gap:4px;font-size:10px;padding:3px 7px;border-radius:4px;background:#edf5ee;color:#438266;white-space:nowrap}.badge.online:before{content:' ';width:4px;height:4px;border-radius:50%;background:#559565}.badge.stale,.badge.risk{background:#fff3df;color:#a3712e}.badge.offline{background:#f0f1f0;color:#88958c}.badge.overdue,.badge.failed{background:#faeae5;color:#b24e3a}.map-wrap{height:430px;position:relative;background:#ecf0e9;overflow:hidden}.map-wrap canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}.map-wrap canvas:active{cursor:grabbing}.map-controls{position:absolute;top:15px;right:14px;display:flex;flex-direction:column;box-shadow:0 2px 10px #243c3320;border-radius:7px;overflow:hidden}.map-controls button{border-radius:0;padding:6px 12px;font-size:19px;border:0;border-bottom:1px solid #eee}.map-attribution{position:absolute;bottom:0;right:0;background:#ffffffce;font-size:8px;padding:3px 7px;color:#597366}.map-attribution a{color:inherit}.map-legend{display:flex;gap:18px;padding:10px 18px;color:#77897e;font-size:9px;flex-wrap:wrap}.legend-dot{width:7px;height:7px;display:inline-block;border-radius:50%;margin-right:5px;background:var(--green)}.legend-dot.order{background:#deb256}.legend-dot.depot{background:#344f6c;border-radius:2px}.map-hint{position:absolute;bottom:18px;left:12px;font-size:10px;background:#fffE;padding:6px 10px;border-radius:6px;max-width:85%}.map-status{position:absolute;top:15px;left:15px;background:#fffE;padding:6px 10px;border-radius:5px;font-size:10px;color:#69846e}.courier-list{max-height:474px;overflow-y:auto}.courier-card{padding:15px 18px;border-bottom:1px solid #f0f3f0;cursor:pointer}.courier-card:hover,.courier-card.selected{background:#f5f8f2}.courier-title{display:flex;align-items:center;gap:9px;font-size:12px}.courier-title .avatar{font-size:11px;background:#edf1e8;color:#658453;flex-shrink:0}.courier-title .badge{margin-left:auto;font-size:8px}.courier-meta{font-size:10px;color:#8a9c8f;margin:8px 0 0 40px}.courier-meta strong{color:#466556}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:11px}th{font-size:9px;color:#86978b;letter-spacing:.5px;font-weight:500;padding:11px 18px;background:#fafbf9;border-bottom:1px solid var(--line)}td{padding:14px 18px;border-bottom:1px solid #f0f3ee}td.address{white-space:normal;min-width:150px}tbody tr:last-child td{border:0}td button{font-size:10px;padding:5px 8px}.table-primary{font-weight:600;color:#426451}.table-sub{font-size:9px;color:#97a497;display:block}.filters{display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}.filters input{font-size:11px;min-width:220px}.filters select{font-size:11px}.empty{padding:45px 25px;text-align:center;color:#85968a;font-size:12px}.empty h2{color:#4d6957;margin-top:8px}.empty p{max-width:420px;margin:8px auto 18px}.section-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:18px}.entity-card{padding:23px;background:#fff;border:1px solid var(--line);border-radius:10px}.entity-card h2{font-size:17px;margin-bottom:10px}.entity-card p{color:#849185;font-size:11px}.entity-card .big{font-size:26px;color:#355e47}.detail{padding:20px}.detail-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.detail-stats div{padding:13px;background:#f7f9f3;border-radius:8px;font-size:10px;color:#839377}.detail-stats strong{font-size:18px;display:block;color:#31583e}.stop{padding:14px 0 14px 27px;position:relative;border-left:1px solid #dfe6d5;margin-left:9px}.stop:before{content:'';position:absolute;left:-5px;top:20px;width:9px;height:9px;border-radius:50%;background:#72a078;border:2px solid white}.stop.completed:before{background:#d5ded1}.stop h3{margin-bottom:3px}.stop p{font-size:11px;color:#84987c;margin-bottom:8px}.stop button{font-size:10px;padding:5px 9px}.note{background:#f0f6e9;color:#5f7857;border:1px solid #e0e9d6;padding:14px 18px;border-radius:8px;font-size:11px;margin:0 0 20px}.note.warning{background:#fff6e8;border-color:#f3e5cb;color:#97703c}.progress{height:5px;background:#edf1e8;border-radius:5px;margin:14px 0;overflow:hidden}.progress>i{display:block;background:#8daf66;height:100%}footer{padding:12px 33px;color:#a0aaa2;font-size:8px;display:flex;justify-content:space-between;border-top:1px solid var(--line)}dialog{border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 100px #10291f33;padding:0;width:540px;max-width:95vw;max-height:90vh;color:var(--ink)}dialog::backdrop{background:#10271e66;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:18px 22px}.modal-head h2{margin:0}.icon-button{border:0;background:none;font-size:25px;line-height:1;padding:3px}.modal-foot{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding:17px 22px}#modal-body{padding:22px;display:grid;gap:14px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}#form-error,#login-error{color:var(--red);font-size:12px;margin:0 22px 12px}#form-error:empty,#login-error:empty{display:none}.search-results{max-height:130px;overflow:auto;background:#f7faf5;border-radius:5px}.search-results button{display:block;border:0;background:none;padding:8px 10px;font-size:11px;text-align:left;width:100%}.search-results button:hover{background:#e6efdc}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);background:#173b2d;color:#eff7e9;padding:12px 22px;border-radius:8px;font-size:12px;opacity:0;pointer-events:none;z-index:99;transition:opacity .2s,transform .2s;max-width:90vw}#toast.visible{opacity:1;transform:translate(-50%,0)}.login-page{min-height:100vh;background:#132b25;display:flex;align-items:center;justify-content:center;padding:30px;position:relative}.login-card{background:#f9fbf5;border-radius:18px;padding:48px;width:440px;z-index:1;box-shadow:0 20px 100px #061c1744}.login-card .brand{padding:0;margin-bottom:30px;color:#173a29}.login-card h1{font-size:29px;margin-bottom:12px}.login-card .muted{font-size:12px;margin-bottom:28px}.login-card form{display:grid;gap:17px}.login-card input{width:100%;height:45px}.wide{display:flex;justify-content:space-between;width:100%;padding:13px 16px}.login-foot{font-size:10px;color:#9ba895;margin:27px 0 0;line-height:1.8}.login-card #login-error{margin:0}.login-wordmark{position:fixed;left:8vw;bottom:8vh;font-size:6vw;font-weight:700;line-height:1.05;letter-spacing:-5px;color:#b9d2900a;pointer-events:none}pre{white-space:pre-wrap;word-break:break-word;font:11px/1.7 ui-monospace,monospace}.hidden{display:none!important}.flex{display:flex;gap:8px;flex-wrap:wrap}.link-button{border:0;background:none;color:var(--green);padding:4px;font-size:10px}.map-pick{background:var(--green);color:#fff}.settings-form{display:grid;gap:16px;max-width:480px}.settings-form label{font-size:12px}@media(min-width:1600px){main{padding:35px 50px}.map-wrap{height:530px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 340px}.courier-list{max-height:574px}}@media(max-width:1100px){.sidebar{width:185px;padding:25px 11px}.shell{margin-left:185px}.brand{font-size:22px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 250px}main{padding:24px 22px}.stats{gap:10px}.stat{padding:14px}.header-right #clock{display:none}}@media(max-width:850px){.sidebar{width:67px;padding:25px 8px}.brand{padding:0 7px}.workspace-label,nav button:not(.active) b,.sidebar-bottom .user,.connection{display:none}nav{margin-top:30px}nav button{font-size:0;padding:12px 15px}nav button span{font-size:20px}nav button b{display:none}.shell{margin-left:67px}.dashboard-grid{grid-template-columns:1fr}.courier-list{max-height:200px}.page-heading{gap:15px;align-items:flex-start}h1{font-size:25px}.page-heading .muted{font-size:11px}.stats{grid-template-columns:repeat(2,1fr)}header{padding:0 20px}.breadcrumb{display:none}.header-right{width:100%;justify-content:space-between}.header-right #clock{display:block}.map-wrap{height:390px}footer{padding:12px 22px}footer span:last-child{display:none}#page-actions button{font-size:11px;padding:8px}.login-card{padding:32px}.login-wordmark{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.login-card{flex:0 1 440px}
.nav-icon{width:18px;height:18px;flex-shrink:0;stroke-width:1.7}.sidebar nav button.active .nav-icon{color:var(--lime)}

/* Supplied PNG originals stay intact; the frame hides their transparent margins. */
.brand-logo{position:relative;display:block;width:100%;aspect-ratio:1600/410;overflow:hidden;flex-shrink:0}
.brand-logo img{position:absolute;width:135.75%;height:auto;max-width:none;left:-17.5%;top:-40.2439%}
.sidebar .brand{padding:0 8px}
.login-card .brand{width:260px;max-width:100%;padding:0;margin-bottom:18px}
.brand-name{font-size:11px;line-height:1.65;color:var(--muted);letter-spacing:.3px;margin-bottom:25px}
@media(max-width:850px){.sidebar .brand{padding:0}.sidebar .brand>.brand-logo{display:block;width:38px;height:46px;aspect-ratio:auto;margin:auto}.sidebar .brand-logo img{width:253.4px;left:-32.7px;top:-19.25px}}

.route-toolbar{container-type:inline-size;padding:14px 16px;background:#fafcfb;border-bottom:1px solid var(--line)}
.route-main-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,.8fr) auto;gap:12px;align-items:end}.route-toolbar .route-field{min-width:0;display:flex;flex-direction:column;gap:6px;margin:0;font-size:11px;font-weight:500;color:#667b72}.route-toolbar select{appearance:none;-webkit-appearance:none;display:block;width:100%;max-width:none;height:36px;min-height:36px;margin:0;padding:0 30px 0 11px;border:1px solid #d9e3dd;border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23657b70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 9px center;font-size:12px;font-weight:500;line-height:normal;color:#294b3e;text-overflow:ellipsis;box-shadow:0 1px 2px #183b3303}.route-toolbar select:disabled{opacity:.55;cursor:not-allowed}.route-main-actions,.route-path-actions,.route-map-actions,.route-between{display:flex;align-items:center;gap:7px;min-width:0}.route-secondary-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:13px;padding-top:12px;border-top:1px solid #e7ede8}.route-toolbar .route-action-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;height:36px;padding:0 11px;margin:0;border:1px solid #dce5df;border-radius:8px;background:#fff;color:#3e5c4e;font-size:12px;font-weight:500;line-height:1;white-space:nowrap;box-shadow:0 1px 2px #183b3303;transition:background .15s,border-color .15s,color .15s}.route-toolbar .route-action-btn:hover{background:#edf5ef;border-color:#b6d0be;color:#1d7664}.route-toolbar .route-action-btn:focus-visible,.route-toolbar .route-zone-toggle:has(input:focus-visible){outline:2px solid #73aa93;outline-offset:3px}.route-tool-icon{display:block;width:17px;height:17px;min-width:17px;flex-shrink:0}.route-toolbar .route-action-btn.is-active{background:#1d7664;border-color:#1d7664;color:#fff}.route-between{margin-left:auto}.route-profile-label{margin:0!important;min-width:0}.route-between select{width:142px;font-size:11px}.route-between [data-action=route-points]{background:#eaf3ee;border-color:#c8ddd0;color:#1b6a50}.route-between [data-action=route-points].is-active{background:#1d7664;border-color:#1d7664;color:#fff}.route-toolbar .route-zone-toggle{display:inline-flex;position:relative;align-items:center;justify-content:center;flex-direction:row;gap:7px;height:36px;padding:0 10px;margin:0;border:1px solid #dce5df;border-radius:8px;background:#fff;color:#3e5c4e;font-size:12px;font-weight:500;line-height:1;white-space:nowrap;cursor:pointer}.route-zone-toggle input{position:absolute;opacity:0;width:1px!important;height:1px!important;padding:0;margin:0}.route-switch-track{position:relative;display:block;width:27px;height:16px;border-radius:10px;background:#cbd7ce;transition:background .15s;flex-shrink:0}.route-switch-track:after{content:'';position:absolute;left:3px;top:3px;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #173b2530;transition:transform .15s}.route-zone-toggle:has(input:checked){color:#24684d;border-color:#c2d8c8;background:#f2f8f3}.route-zone-toggle input:checked~.route-switch-track{background:#278369}.route-zone-toggle input:checked~.route-switch-track:after{transform:translateX(11px)}.route-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.route-info{padding:9px 16px;color:#526b63;background:#f4f8f5;font-size:12px;min-height:36px}.legend-dot.route{background:#167864}
@container(max-width:720px){.route-main-actions .route-action-btn>span{display:none}.route-main-actions .route-action-btn{width:36px;padding:0}.route-secondary-row{display:grid;grid-template-columns:1fr 1fr}.route-map-actions{justify-content:flex-end}.route-between{grid-column:1/-1;margin-left:0;padding-top:10px;border-top:1px solid #e7ede8}.route-profile-label{flex:1}.route-between select{width:100%}.route-between [data-action=route-points]{min-width:120px}}
@container(max-width:450px){.route-main-row{grid-template-columns:minmax(0,1fr) auto;gap:10px}.route-field-courier{grid-column:1/-1}.route-field-scope{grid-column:1}.route-main-actions{grid-column:2;grid-row:2}.route-secondary-row{grid-template-columns:minmax(0,1fr);gap:9px;margin-top:10px;padding-top:10px}.route-path-actions,.route-map-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.route-toolbar .route-action-btn,.route-toolbar .route-zone-toggle{width:100%;padding-right:9px;padding-left:9px}.route-main-actions .route-action-btn{width:36px;padding:0}.route-between{grid-column:auto;gap:8px;margin-top:1px}.route-between [data-action=route-points]{width:auto;min-width:91px;flex-shrink:0}.route-between select{font-size:11px}.route-toolbar .route-field{font-size:10px}}
@media(max-width:850px){.route-toolbar{padding:12px}.route-info{font-size:11px;padding:8px 12px}}

.courier-position{padding:10px 16px;background:#f3f7f4;color:#5b7168;border-bottom:1px solid var(--line);font-size:11px;display:grid;gap:3px}.courier-position strong{color:var(--ink)}.courier-position.stale,.courier-position.offline{background:#fff6e8;color:#876c45}.locate-button{font-size:10px;margin-top:8px;padding:5px 8px;background:#fff}.legend-dot.stale-location{background:#879199}.legend-dot.simulated-location{background:#8755b1}
.check-label{display:flex;flex-direction:row;align-items:center;gap:7px}.check-label input{width:16px;height:16px;padding:0;accent-color:var(--green)}
.zone-editor-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:18px;align-items:start}.zone-settings{padding:16px;display:grid;gap:10px}.zone-settings p{font-size:11px;margin:0}.zone-settings input[type=color]{height:40px;width:100%;padding:3px}.zone-row{display:flex;align-items:center;gap:9px;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;font-size:12px;padding:12px 16px}.zone-row i{width:14px;height:14px;flex-shrink:0;border-radius:3px}.zone-row small{display:block;color:var(--muted)}.zone-row.selected{background:#eaf3ed;box-shadow:inset 3px 0 var(--green)}.zone-tools{padding:12px;display:flex;gap:7px;flex-wrap:wrap}.zone-tools button{font-size:11px;padding:7px 10px}.zone-map-wrap{height:560px!important}.zone-help{padding:14px 16px;color:var(--muted);font-size:11px;line-height:1.7}.zone-visibility{padding-bottom:8px;white-space:nowrap}.zone-settings .flex button{font-size:10px;padding:6px}.zone-editor-layout[inert]{opacity:.65}
@media(max-width:1100px){.zone-editor-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:850px){.zone-editor-layout{grid-template-columns:1fr}.zone-map-wrap{height:420px!important}.zone-sidebar #zone-list{max-height:190px;overflow:auto}.zone-tools{gap:6px}.zone-tools button{padding:7px;font-size:10px}.zone-visibility{padding-bottom:0}}
.map-note-popup{position:absolute;z-index:4;padding:13px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 5px 24px #183b3330;font-size:12px;word-break:break-word}.map-note-popup[hidden]{display:none}.map-note-popup p{margin:9px 0 0;font-size:11px;white-space:pre-wrap}.note-popup-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.note-popup-head button{padding:0 5px;border:0;font-size:20px}.legend-dot.note-traffic{background:#bf8128}.legend-dot.note-accident{background:#bf514a}.legend-dot.note-police{background:#3d6fb1}
/* Floating login backdrop stays behind the sign-in card. */
.login-page{isolation:isolate;overflow:hidden}
.login-page .login-wordmark{display:block;z-index:0;user-select:none;max-width:90vw;font-size:clamp(40px,6vw,120px);letter-spacing:-.055em;background:linear-gradient(115deg,#b9d29010 10%,#73d8c22e 35%,#f7eddc30 48%,#80b59b14 65%,#b9d29010 90%);background-size:260% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;will-change:transform;animation:login-wordmark-float 38s ease-in-out infinite,login-wordmark-shimmer 13s ease-in-out infinite alternate}
@keyframes login-wordmark-float{0%,100%{transform:translate3d(0,0,0) rotate(-3deg)}25%{transform:translate3d(20vw,-34vh,0) rotate(2deg)}50%{transform:translate3d(28vw,-9vh,0) rotate(-2deg)}75%{transform:translate3d(5vw,-45vh,0) rotate(3deg)}}
@keyframes login-wordmark-shimmer{from{background-position:0% 50%}to{background-position:100% 50%}}
@media(max-width:850px){.login-page .login-wordmark{left:4vw;bottom:3vh;font-size:clamp(32px,9vw,64px);animation-duration:46s,16s}}
@media(prefers-reduced-motion:reduce){.login-page .login-wordmark{animation:none;transform:none;background-position:50% 50%;will-change:auto}}
.quick-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px;padding-top:11px;border-top:1px solid var(--line)}.quick-actions button,.quick-actions .quick-call{font-size:11px;line-height:1.4;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.quick-actions .quick-call{color:var(--green);background:#f1f8f3;border-color:#d8e8dc}.quick-actions .quick-call:hover{background:#e4f0e7}.courier-card .quick-actions{margin-left:0}.quick-actions button:disabled{cursor:default}.entity-links{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}.filter-help{font-size:11px;margin:10px 0 16px}.courier-base-filter{position:relative;max-width:100%;margin:0 0 12px;font-size:12px}.courier-base-filter>summary{cursor:pointer;display:block;background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 12px;list-style:none;color:#466153}.courier-base-filter>summary:after{content:'⌄';float:right;margin-left:12px}.base-filter-options{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px;max-height:270px;overflow:auto;margin-top:5px}.base-filter-options label{padding:7px 4px;font-size:11px;line-height:1.4;cursor:pointer}.base-filter-options label input{flex-shrink:0}.base-filter-options button{font-size:11px;margin-top:8px}.panel>.courier-base-filter{margin:10px 12px}.base-filter-options .check-label{align-items:flex-start}.courier-base-filter:focus-within>summary{border-color:#9cbaaa}@media(max-width:600px){.section-grid{grid-template-columns:minmax(0,1fr)}.entity-card{padding:18px}.quick-actions button,.quick-actions .quick-call{flex:1 1 auto;min-width:75px}#page-actions{flex-wrap:wrap;justify-content:flex-end}.courier-base-filter{width:100%}}
.order-toolbar{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:18px}.order-toolbar-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.order-view-switch{display:flex;gap:5px}.order-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.order-filters label{min-width:0;font-size:11px}.order-filters input,.order-filters select{width:100%;min-width:0;font-size:12px;min-height:40px}.order-search-label{grid-column:span 2}.order-filters button{min-height:40px}.order-color-key{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:11px;margin-top:16px;color:#43584d}.order-color-key span{display:inline-flex;align-items:center;gap:5px}.order-color-key span:before{content:'';width:10px;height:10px;border-radius:3px;border:1px solid #6a776640;background:var(--stage-color)}.key-new{--stage-color:#e9ecef}.key-assigned{--stage-color:#ffe69b}.key-transit{--stage-color:#b9e3c9}.key-risk{--stage-color:#b9d8fa}.key-late{--stage-color:#f6b9bc}.key-delivered{--stage-color:#fff}.order-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,325px),1fr));gap:16px;align-items:start}.order-card{--order-accent:#7d8790;background:#f0f2f4;border:1px solid #d1d8dd;border-top:5px solid var(--order-accent);border-radius:12px;padding:18px;min-width:0;color:#213b31;overflow-wrap:anywhere}.order-assigned{background:#fff4cb;border-color:#e6cd71;--order-accent:#aa7b07}.order-transit{background:#e0f2e7;border-color:#a1d2b3;--order-accent:#24884f}.order-risk{background:#e0edff;border-color:#a0c5ed;--order-accent:#346fb5}.order-late{background:#ffe1e2;border-color:#eca6a9;--order-accent:#bf3b46}.order-delivered{background:#fff;border-color:#dce4dd;--order-accent:#d3ddd5}.order-cancelled{border-style:dashed;background:#f5f5f5}.order-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.order-card h2{font-size:18px;line-height:1.35;margin:0;min-width:0}.order-stage{font-size:10px;font-weight:700;background:#ffffffa8;padding:5px 8px;border-radius:6px;max-width:55%;flex-shrink:0}.order-address{font-size:14px;font-weight:600;line-height:1.5;margin:15px 0 6px}.order-recipient{font-size:12px;line-height:1.5;margin:0 0 15px}.order-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.order-details div{min-width:0}.order-details dt{font-size:10px;color:#53695e;margin-bottom:4px}.order-details dd{font-size:12px;line-height:1.5;margin:0}.order-contents{font-size:12px;margin:14px 0}.order-contents summary{cursor:pointer}.order-contents p{white-space:pre-wrap;max-height:220px;overflow:auto;line-height:1.6}.order-timing{font-size:12px;font-weight:600;margin:14px 0}.order-demo{font-size:10px;letter-spacing:.07em;margin:9px 0;color:#715392}.order-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.order-actions button{font-size:11px;padding:7px 9px}.order-card .quick-actions{border-color:#56725e2b}.order-calls>*{flex:1 1 120px}.order-grid>.empty{grid-column:1/-1}.order-card button:disabled{opacity:.55}@media(max-width:1100px){.order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.order-toolbar{padding:12px}.order-filters{grid-template-columns:minmax(0,1fr)}.order-search-label{grid-column:auto}.order-toolbar-top{align-items:flex-start;flex-wrap:wrap}.order-card{padding:15px}.order-color-key{font-size:10px}.order-card h2{font-size:16px}}
.order-pagination{display:flex;gap:15px;align-items:center;justify-content:center;margin-top:22px;font-size:12px}.order-pagination[hidden]{display:none}.order-pagination button{font-size:12px;min-width:95px}

.map-zone-overlay{position:absolute;right:12px;top:12px;z-index:3;width:238px;max-width:calc(100% - 76px);background:#fffffff2;border:1px solid #d7e2d9;border-radius:10px;box-shadow:0 3px 18px #183b3319;font-size:12px}.map-zone-overlay>summary{cursor:pointer;padding:12px;font-weight:600;color:#284b3d}.map-zone-overlay #map-zone-list{max-height:245px;overflow-y:auto;padding:0 10px 8px;overscroll-behavior:contain}.map-zone-row{display:flex;align-items:center;gap:9px;padding:7px 0;line-height:1.4}.map-zone-row>span{min-width:0;overflow-wrap:anywhere}.map-zone-row small{display:block;font-size:10px;color:#728177}.map-zone-dot{width:24px;height:24px;min-width:24px;border-radius:50%;border:2px solid #fff;outline:1px solid var(--zone-color);background:var(--zone-color);padding:0;position:relative}.map-zone-dot:hover{background:var(--zone-color);filter:brightness(.9)}.zone-hidden .map-zone-dot{background:#fff}.zone-hidden .map-zone-dot:after{content:'';position:absolute;left:2px;right:2px;top:9px;height:2px;transform:rotate(-45deg);background:var(--zone-color)}.zone-hidden>span{opacity:.55}.map-wrap:has(.map-zone-overlay) .map-controls{left:12px;right:auto;top:52px}.map-wrap:has(.map-zone-overlay) .map-status{max-width:calc(100% - 275px)}@media(max-width:600px){.map-zone-overlay{width:185px;right:8px;top:8px;font-size:11px}.map-zone-overlay #map-zone-list{max-height:170px}.map-zone-overlay>summary{padding:10px}.map-wrap:has(.map-zone-overlay) .map-status{max-width:calc(100% - 210px);font-size:9px;overflow-wrap:anywhere}}

.log-tools{padding:12px 16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line);font-size:11px}.log-tools button{font-size:11px}.log-tools label{margin:0;font-size:11px}.log-heading{flex-wrap:wrap;gap:10px}.log-window{height:62vh;min-height:300px;overflow:auto}.log-window table{font-size:11px}.log-window thead{position:sticky;top:0;z-index:1;background:#f8faf5}.log-window td{vertical-align:top;max-width:250px;overflow-wrap:anywhere}.log-window td small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.log-time{white-space:nowrap;min-width:180px;font-variant-numeric:tabular-nums}.log-window details{min-width:90px}.log-window summary{cursor:pointer;color:var(--green)}.log-window pre{max-width:450px;max-height:240px;overflow:auto;font-size:10px;padding:8px;background:#f3f7f0;border-radius:7px}.log-entity{min-width:130px}@media(max-width:600px){.log-tools{padding:10px;gap:8px}.log-window{height:65vh}.log-heading h2{font-size:16px}}

.courier-quick-actions .courier-icon-action{width:36px;height:36px;min-width:36px;min-height:36px;flex:0 0 36px;padding:0;margin:0;border-radius:8px;color:#476458;transition:background .15s,border-color .15s,color .15s}.courier-quick-actions .courier-icon-action:hover:not(:disabled){background:#edf5ef;border-color:#b6d0be;color:#1d7664}.courier-quick-actions .courier-icon-action:focus-visible{outline:2px solid #73aa93;outline-offset:3px}.courier-quick-actions .courier-icon-action:disabled{opacity:.4;cursor:default}.courier-quick-actions .is-paused{background:#fff5dc;border-color:#e5d29a;color:#98711d}.courier-quick-actions .is-offline{background:#f0f3f1;color:#87938c}@media(max-width:600px){.courier-quick-actions .courier-icon-action{width:40px;height:40px;min-width:40px;min-height:40px;flex-basis:40px}}

.order-toolbar{container-type:inline-size;padding:16px;background:#fafcfb;border-radius:12px}.order-toolbar .order-toolbar-top{display:flex;gap:16px;align-items:center;margin-bottom:16px}.order-toolbar .order-search-label{flex:1;min-width:0;margin:0}.order-search-box{position:relative;display:flex;align-items:center}.order-search-box>.route-tool-icon{position:absolute;left:12px;color:#7d9288;pointer-events:none}.order-toolbar .order-search-box input{width:100%;height:38px;padding:0 12px 0 38px;font-size:12px;font-weight:400}.order-toolbar .order-search-box input::placeholder{color:#8b9b93;font-weight:400}.order-toolbar .order-view-switch{display:flex;flex-shrink:0;gap:3px;background:#edf2ef;border:1px solid #e1e8e3;padding:3px;border-radius:9px}.order-toolbar .order-view-switch button{display:flex;align-items:center;gap:7px;height:30px;min-height:30px;padding:0 11px;border:1px solid transparent;border-radius:6px;background:transparent;color:#71867a;font-size:12px}.order-toolbar .order-view-switch button.primary{background:#fff;color:#1d7664;border-color:#dae4dd;box-shadow:0 1px 3px #203f3010}.order-toolbar #order-count{white-space:nowrap;font-size:11px;color:#73877b}.order-toolbar .order-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.order-toolbar label{font-size:11px;font-weight:500;gap:6px;color:#657b70}.order-toolbar select,.order-toolbar input[type=date]{display:block;width:100%;max-width:100%;height:36px;min-height:36px;margin:0;border-radius:8px;border:1px solid #d9e3dd;font-size:12px;font-weight:400;line-height:normal;background-color:#fff;color:#294b3e}.order-toolbar select{appearance:none;-webkit-appearance:none;padding:0 30px 0 11px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23657b70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;text-overflow:ellipsis}.order-toolbar input[type=date]{padding:0 10px}.order-filter-footer{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-top:12px}.order-date-range{display:grid;grid-template-columns:repeat(2,minmax(0,170px));gap:12px;min-width:0}.order-date-range label{min-width:0}.order-toolbar #order-reset{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;min-height:36px;flex-shrink:0;padding:0 11px;font-size:12px;color:#61796b;border:1px solid #dce5df;border-radius:8px;background:#fff}.order-toolbar #order-reset:hover{background:#edf5ef;color:#1d7664;border-color:#b6d0be}.order-toolbar .order-color-key{padding-top:13px;margin-top:16px;border-top:1px solid #e3eae5;gap:8px 18px;font-size:10px;color:#6a7e72}.order-toolbar .order-color-key span{gap:6px}.order-toolbar .order-color-key span:before{width:9px;height:9px;border-radius:50%}@container(max-width:850px){.order-toolbar .order-toolbar-top{flex-wrap:wrap;gap:10px}.order-toolbar .order-search-label{flex-basis:100%}.order-toolbar #order-count{margin-left:auto}.order-toolbar .order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@container(max-width:450px){.order-filter-footer{align-items:stretch;flex-direction:column;gap:12px}.order-date-range{grid-template-columns:repeat(2,minmax(0,1fr))}.order-toolbar #order-reset{align-self:flex-end}.order-toolbar .order-search-box input{font-size:11px}.order-toolbar .order-view-switch button{padding:0 9px}.order-toolbar .order-filters{gap:10px}.order-toolbar #order-count{font-size:10px}.order-toolbar .order-color-key{gap:8px 12px}}@media(max-width:600px){.order-toolbar{padding:12px}}

.depot-quick-actions .depot-icon-action{width:36px;height:36px;min-width:36px;min-height:36px;flex:0 0 36px;padding:0;margin:0;border-radius:8px;color:#476458;transition:background .15s,border-color .15s,color .15s}.depot-quick-actions .depot-icon-action:hover{background:#edf5ef;border-color:#b6d0be;color:#1d7664}.depot-quick-actions .depot-icon-action:focus-visible{outline:2px solid #73aa93;outline-offset:3px}.depot-quick-actions .depot-icon-action.danger{color:#b84940;margin-left:auto}.depot-quick-actions .depot-icon-action.danger:hover{background:#fff0ef;border-color:#e7b7b1;color:#a53329}.depot-quick-actions .is-offline{background:#f0f3f1;color:#87938c}@media(max-width:600px){.depot-quick-actions .depot-icon-action{width:40px;height:40px;min-width:40px;min-height:40px;flex-basis:40px}}

#modal.tracking-share-dialog{width:620px;max-height:90vh;max-height:90dvh;overflow:hidden}#modal.tracking-share-dialog #modal-form{display:flex;flex-direction:column;max-height:90vh;max-height:90dvh}.tracking-share-dialog .modal-head{padding:18px 22px;gap:16px;flex-shrink:0}.tracking-share-dialog .modal-head h2{font-size:18px;line-height:1.4}.tracking-share-dialog #modal-body{overflow:auto;padding:20px 22px;gap:20px;min-height:0}.tracking-share-intro{margin:0;font-size:13px;line-height:1.65;color:#6b7e73}.tracking-share-section{display:grid;gap:9px;min-width:0}.tracking-share-dialog label{font-size:12px;font-weight:600;color:#476254}.tracking-share-dialog #tracking-share-url{width:100%;height:40px;font-size:12px;font-weight:400;padding:0 12px;background:#f8faf9;color:#426252}.tracking-share-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tracking-share-dialog button[data-copy-tracking],.tracking-share-actions a,.tracking-share-replace button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 11px;font-size:12px;font-weight:500;border:1px solid #dce5df;border-radius:8px;background:#fff;text-decoration:none;white-space:nowrap;color:#426252}.tracking-share-dialog button.tracking-copy{background:#edf6f0;border-color:#c7ddcf;color:#20694e}.tracking-share-actions a{border-color:transparent}.tracking-share-dialog button[data-copy-tracking]:hover,.tracking-share-actions a:hover{background:#edf5ef;border-color:#b6d0be}.tracking-code-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.tracking-code-heading label{flex-direction:row;align-items:center;gap:7px;margin:0}.tracking-share-dialog #tracking-iframe{display:block;width:100%;height:142px;min-height:110px;max-height:260px;resize:vertical;padding:12px;border-color:#dce5df;background:#f5f8f6;font:11px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;color:#4f6b5a;overflow-wrap:anywhere;white-space:pre-wrap}.tracking-field-help{margin:0;color:#8a9a90;font-size:11px;line-height:1.5}.tracking-share-replace{display:flex;align-items:center;gap:18px;justify-content:space-between;border-top:1px solid #e5ebe7;padding-top:18px}.tracking-share-replace strong{font-size:12px;color:#526a5b}.tracking-share-replace p{font-size:11px;line-height:1.6;color:#88978e;margin:4px 0 0}.tracking-share-replace button.danger{color:#b84940;flex-shrink:0}.tracking-share-replace button.danger:hover{background:#fff1ef;border-color:#e7b7b1}.tracking-share-dialog #modal-cancel{display:none}.tracking-share-dialog .modal-foot{flex-shrink:0;padding:14px 22px;background:#fafcfb}.tracking-share-dialog #modal-save{font-size:12px;min-height:36px;padding:0 20px}@media(max-width:600px){.tracking-share-dialog .modal-head{padding:15px 16px}.tracking-share-dialog .modal-head h2{font-size:16px}.tracking-share-dialog #modal-body{padding:16px;gap:18px}.tracking-share-dialog .modal-foot{padding:12px 16px}.tracking-share-replace{flex-direction:column;align-items:flex-start;gap:10px}.tracking-code-heading{flex-wrap:wrap}.tracking-share-intro{font-size:12px}.tracking-share-actions{gap:5px}}

.route-direction-key{display:inline-flex;align-items:center;justify-content:center;width:16px;height:12px;margin-right:5px;background:#65a99a;border-radius:3px;font:700 16px/1 Arial;vertical-align:middle;font-style:normal}.route-direction-key.outbound{color:#fff}.route-direction-key.inbound{color:#111}

.dashboard-base-filter{position:relative;min-width:190px;max-width:300px;align-self:center;z-index:6;font-size:12px}.dashboard-base-filter>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;height:38px;padding:0 11px;background:#fff;border:1px solid #d9e3dd;border-radius:8px;color:#476458}.dashboard-base-filter>summary::-webkit-details-marker{display:none}#dashboard-base-summary{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.dashboard-filter-chevron{color:#7d9287}.dashboard-base-filter.has-filter>summary{background:#edf6f0;border-color:#b6d0be;color:#1d7664}.dashboard-base-filter[open]>summary{outline:2px solid #b6d0be;outline-offset:1px}.dashboard-base-menu{position:absolute;top:calc(100% + 8px);right:0;width:350px;max-width:calc(100vw - 32px);background:#fff;border:1px solid #dce5df;border-radius:11px;box-shadow:0 12px 40px #17382b24;padding:12px}.dashboard-base-menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:9px;border-bottom:1px solid #edf1ee}.dashboard-base-menu-head strong{font-size:12px}.dashboard-base-menu-head button{font-size:11px;color:#1d7664;padding:4px 8px}.dashboard-base-menu>p{font-size:10px;color:#84968a;margin:10px 0 0}#dashboard-base-options{max-height:280px;overflow:auto;padding-top:6px}#dashboard-base-options label{display:flex;flex-direction:row;align-items:center;gap:9px;padding:9px 6px;font-size:12px;font-weight:400;border-radius:6px;cursor:pointer}#dashboard-base-options label:hover{background:#f1f7f3}#dashboard-base-options input{width:16px;height:16px;flex-shrink:0;accent-color:#1d7664}#dashboard-base-options small{display:block;font-size:10px;color:#8b9b90}.page-heading:has(.dashboard-base-filter){gap:16px}.page-heading:has(.dashboard-base-filter)>div:first-child{min-width:0}#page-actions:has(.dashboard-base-filter){flex-wrap:wrap;justify-content:flex-end;min-width:0}@media(max-width:1100px){.page-heading:has(.dashboard-base-filter){flex-wrap:wrap}#page-actions:has(.dashboard-base-filter){width:100%;justify-content:flex-start}.dashboard-base-filter{flex:1;max-width:340px}}@media(max-width:600px){.dashboard-base-filter{flex-basis:100%;max-width:none}.dashboard-base-menu{left:0;right:auto;width:100%}#page-actions:has(.dashboard-base-filter)>button{font-size:11px}}

.order-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #56725e2b}.order-card-actions .order-calls,.order-card-actions .order-actions{display:flex;align-items:center;gap:7px;padding:0;margin:0;border:0}.order-card-actions .order-actions{margin-left:auto}.order-card-actions .order-icon-action{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;min-height:36px;flex:0 0 36px;margin:0;padding:0;border:1px solid #56725e25;border-radius:8px;background:#ffffffcc;color:#426252;text-decoration:none;transition:background .15s,border-color .15s}.order-card-actions .order-icon-action .route-tool-icon{width:18px;height:18px}.order-card-actions .order-icon-action:hover:not(:disabled){background:#fff;border-color:#94b8a0}.order-card-actions .order-icon-action:focus-visible{outline:2px solid #73aa93;outline-offset:3px}.order-card-actions .order-icon-action:disabled{opacity:.4;cursor:default}.order-card-actions .order-icon-action.danger{color:#b84940}.order-card-actions .order-icon-action.danger:hover{background:#fff0ef;border-color:#e7b7b1}@media(max-width:600px){.order-card-actions .order-icon-action{width:40px;height:40px;min-width:40px;min-height:40px;flex-basis:40px}.order-card-actions{gap:6px}.order-card-actions .order-calls,.order-card-actions .order-actions{gap:5px}}
.order-date-field{display:flex;flex-direction:column;gap:6px;min-width:0}.order-toolbar .date-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;height:36px;min-height:36px;margin:0;padding:0 10px;background:#fff;border:1px solid #d9e3dd;border-radius:8px;color:#8a9b91;font-size:12px;font-weight:400;white-space:nowrap}.date-picker-trigger span{overflow:hidden;text-overflow:ellipsis}.order-toolbar .date-picker-trigger.has-date{color:#294b3e}.order-toolbar .date-picker-trigger[aria-expanded=true]{border-color:#6ca68c;box-shadow:0 0 0 2px #c5dfd0}.date-picker-trigger .route-tool-icon{width:15px;height:15px;color:#799283}.order-calendar{position:fixed;z-index:40;width:292px;max-width:calc(100vw - 20px);padding:12px;border:1px solid #d6e2d9;border-radius:13px;background:#fff;box-shadow:0 12px 40px #193d3026;color:#345544;overflow:auto}.calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.calendar-heading strong{font-size:13px;font-weight:600;text-transform:capitalize}.calendar-heading button{width:30px;height:30px;padding:0;border:1px solid #e2eae5;border-radius:7px;font-size:22px;line-height:1;color:#4e7660;background:#fafcfb}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.calendar-weekdays{margin-bottom:6px;color:#91a094;font-size:10px;font-weight:500;text-align:center}.calendar-weekdays span{padding:3px 0}.calendar-days button{display:flex;align-items:center;justify-content:center;height:32px;min-width:0;margin:0;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:#3e5949;font-size:12px;font-weight:400}.calendar-days button.outside{color:#b0bcb3}.calendar-days button.in-range{background:#edf6ef}.calendar-days button.today{border-color:#a5c8b1;font-weight:700}.calendar-days button:hover{background:#eaf4ee;color:#1d7664}.calendar-days button.selected{background:#1d7664;color:#fff;border-color:#1d7664;font-weight:600}.order-calendar button:focus-visible{outline:2px solid #73aa93;outline-offset:1px}.calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid #e7ede8}.calendar-footer button{min-height:30px;padding:4px 9px;border:0;border-radius:6px;background:transparent;font-size:11px;color:#267251}.calendar-footer button:last-child{color:#83958a}.calendar-footer button:hover{background:#edf5ef}@media(max-width:600px){.calendar-days button{height:36px}.calendar-footer button{min-height:36px}}

.log-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:12px;align-items:end;padding:14px 18px;background:#fafcfb;border-bottom:1px solid var(--line)}.log-filters label{font-size:11px}.log-filters select,.log-filters button{height:36px;min-height:36px;font-size:12px;padding:0 10px}.log-filters select{width:100%}.log-filters button{color:#597263}@media(max-width:700px){.log-filters{grid-template-columns:1fr;padding:12px}.log-filters button{justify-self:end}}
.batch-toolbar .order-toolbar-top{margin-bottom:0;flex-wrap:wrap;gap:12px}.batch-toolbar .batch-courier-filter{flex:1 1 240px;min-width:0;max-width:360px}.batch-toolbar #batch-reset{display:inline-flex;align-items:center;gap:6px;align-self:flex-end;height:36px;padding:0 10px;font-size:12px;color:#61796b}.batch-toolbar #batch-count{margin-left:auto;font-size:11px;align-self:center;white-space:nowrap}.batch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:16px;align-items:start}.batch-card{padding:18px;margin:0;min-width:0}.batch-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.batch-card h2{font-size:15px;line-height:1.5;margin:0;overflow-wrap:anywhere}.batch-base{font-size:11px;color:#7a8e80;margin:7px 0 18px;overflow-wrap:anywhere}.batch-completion{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#7a8e80}.batch-completion strong{color:#496755}.batch-card progress{appearance:none;-webkit-appearance:none;width:100%;height:5px;display:block;border:0;border-radius:4px;overflow:hidden;margin:8px 0 18px;background:#ecf2ed}.batch-card progress::-webkit-progress-bar{background:#ecf2ed}.batch-card progress::-webkit-progress-value{background:#458c71;border-radius:4px}.batch-card progress::-moz-progress-bar{background:#458c71;border-radius:4px}.batch-next{display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:#f5f9f6;border-radius:9px;padding:12px;overflow-wrap:anywhere}.batch-next>strong{font-size:12px;line-height:1.6;color:#385a46}.batch-caption{font-size:10px;color:#819688}.batch-confirm{font-size:11px;padding:7px 9px;color:#24694e;background:#fff;border-color:#d1e2d7}.batch-return{display:flex;flex-direction:column;gap:3px;margin:14px 0;font-size:11px}.batch-return>span{color:#819688}.batch-return strong{font-size:12px;color:#496755}.batch-stops{font-size:11px;color:#617f6b}.batch-stops>summary{cursor:pointer;padding:7px 0}.batch-stops .stop{margin-top:10px;overflow-wrap:anywhere}.batch-stops h3{font-size:12px;line-height:1.5}.batch-actions{display:flex;align-items:center;gap:7px}.batch-card>.batch-actions{border-top:1px solid var(--line);padding-top:12px;margin-top:12px;justify-content:flex-end}.batch-actions button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;padding:0;border-radius:8px;color:#476458}.batch-list-next{min-width:240px;max-width:420px;white-space:normal}.batch-list-next>strong{display:block;margin-bottom:8px;font-size:11px}.batch-list .batch-confirm{font-size:10px}.batch-list td{vertical-align:top}@media(max-width:600px){.batch-toolbar .batch-courier-filter{max-width:none;flex-basis:100%}.batch-toolbar #batch-count{font-size:10px}.batch-card{padding:15px}.batch-actions button{width:40px;height:40px;min-width:40px}.batch-confirm{min-height:36px}}
@media(max-width:400px){.batch-toolbar .order-view-switch button{gap:5px;padding:0 7px;font-size:11px}.batch-toolbar .order-view-switch .route-tool-icon{width:15px;height:15px;min-width:15px}}
@media(max-width:600px){.header-right{min-width:0;gap:10px}.header-right #clock{flex-shrink:0;font-size:9px;white-space:nowrap}.header-right .city-label{min-width:0;flex:1;justify-content:flex-end}.header-right .city-label select{min-width:0;width:0;flex:1;max-width:200px;text-overflow:ellipsis}}
.order-delivery-progress{min-width:0;padding:13px;border:1px solid #56725e25;border-radius:9px;background:#ffffffa6;margin:0 0 16px;color:#426252}.delivery-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;margin-bottom:10px}.delivery-progress-heading>strong{font-size:13px;white-space:nowrap}.delivery-progress-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.delivery-progress-metrics>div{min-width:0}.delivery-progress-metrics span{display:block;color:#7b9082;font-size:10px;line-height:1.5;margin-bottom:4px;white-space:normal}.delivery-progress-metrics strong{font-size:13px;line-height:1.5;display:block;overflow-wrap:anywhere;white-space:normal}.delivery-progress-track{height:6px;overflow:hidden;border-radius:6px;background:#56725e1f}.delivery-progress-track>span{display:block;height:100%;border-radius:6px;background:#318365;transition:width .4s ease}.delivery-progress-track.is-stale>span{background:#ae893f}.delivery-progress-hint{font-size:10px!important;line-height:1.6;margin:8px 0 0!important;color:#819487;white-space:normal}.order-delivery-cell{min-width:260px;max-width:320px}.order-delivery-cell .order-delivery-progress{padding:0;background:none;border:0;margin:0}.order-delivery-cell .delivery-progress-heading{margin-bottom:8px}.order-delivery-cell .delivery-progress-metrics{gap:12px;margin-bottom:9px}.order-delivery-cell .delivery-progress-metrics strong{font-size:12px}.order-delivery-cell .delivery-progress-metrics span{font-size:9px}@media(max-width:400px){.order-delivery-progress{padding:10px}.delivery-progress-metrics{gap:8px}.delivery-progress-metrics strong{font-size:12px}}

/* Global budget workspace */
.budget-toolbar{padding:22px;margin-bottom:20px}.budget-toolbar-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.budget-toolbar-top h2{margin:0 0 6px}.budget-toolbar-top p{margin:0}.budget-toolbar-top button{display:flex;align-items:center;gap:8px}.budget-filters{display:flex;align-items:end;gap:20px;flex-wrap:wrap}.budget-filters .order-date-range{min-width:320px;flex:1}.budget-search{flex:1;min-width:200px}.budget-filters .check-label{padding-bottom:10px}.budget-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.budget-stats .stat-value{font-size:clamp(23px,2.7vw,36px);overflow-wrap:anywhere}.budget-tabs{display:flex;gap:4px;flex-wrap:wrap;width:fit-content;margin-bottom:20px}.budget-tabs button.active{background:#1d7664;color:#fff}.budget-table td{vertical-align:top}.budget-table small{display:block;color:#85958c;font-size:12px;margin-top:5px;max-width:320px;overflow-wrap:anywhere}.budget-table .budget-total{font-weight:700;color:#1d7664;white-space:nowrap}.budget-table td button{padding:7px 12px;font-size:12px}.budget-form-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}.budget-recipient-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 8px}.budget-recipient-heading button{font-size:12px;padding:6px 10px}.budget-recipients{max-height:245px;overflow:auto;border:1px solid #dce4df;border-radius:12px;padding:8px;margin:10px 0 18px}.budget-recipients .check-label{padding:9px 8px;align-items:center;margin:0;border-radius:7px}.budget-recipients .check-label:hover{background:#f1f7f3}.budget-recipients small{display:block;font-size:12px;color:#85958c;margin-top:3px}.budget-recipients label[hidden]{display:none}.budget-detail-total{padding:18px;border-radius:12px;background:#e5f3eb;display:flex;justify-content:space-between;gap:16px;align-items:center}.budget-detail-total strong{font-size:26px;color:#1d7664}.budget-table details p{font-size:12px;margin:8px 0}.budget-toolbar .filter-help{margin-bottom:0}.budget-toolbar [hidden],.budget-recipient-heading [hidden]{display:none}
@media(max-width:760px){.budget-toolbar{padding:16px}.budget-toolbar-top{align-items:flex-start}.budget-filters{gap:14px}.budget-filters .order-date-range{min-width:0;width:100%;flex-basis:100%}.budget-search{flex-basis:100%}.budget-stats{grid-template-columns:1fr}.budget-tabs{width:100%}.budget-tabs button{flex:1;font-size:12px;padding:10px}.budget-form-dates{grid-template-columns:1fr}.budget-detail-total{align-items:flex-start;flex-direction:column}}

.budget-toolbar .date-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:38px;min-height:38px;margin:0;padding:0 9px;background:#fff;border:1px solid #d9e3dd;border-radius:8px;color:#294b3e;font-size:12px;font-weight:400;white-space:nowrap}.budget-toolbar .date-picker-trigger[aria-expanded=true]{border-color:#6ca68c;box-shadow:0 0 0 2px #c5dfd0}.budget-toolbar .order-date-field label{font-size:12px;color:#657b70}
@media(max-width:760px){.budget-toolbar-top{flex-direction:column;align-items:stretch;gap:12px}.budget-toolbar-top button{align-self:flex-end}.budget-toolbar .date-picker-trigger{font-size:11px;padding:0 7px}.budget-income-table,.budget-income-table tbody{display:block;width:100%;min-width:0}.budget-income-table thead{display:none}.budget-income-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;border-bottom:1px solid #e3eae5}.budget-income-table tbody tr:last-child{border-bottom:0}.budget-income-table td{padding:10px;border:0;min-width:0;overflow-wrap:anywhere}.budget-income-table td:first-child,.budget-income-table td:last-child{grid-column:1/-1}.budget-income-table td[data-label]:before{display:block;content:attr(data-label);color:#85958c;font-size:10px;font-weight:400;margin-bottom:7px}.budget-income-table td:last-child button{width:100%}.budget-income-table .budget-total{white-space:normal}}

/* Compact orders and a persistent, accessible right-hand detail panel. */
.order-number-link{display:inline;padding:0!important;border:0;background:transparent!important;border-radius:3px;color:inherit;font:inherit;line-height:inherit;text-align:left;letter-spacing:inherit;overflow-wrap:anywhere}.order-number-link:hover{text-decoration:underline;text-underline-offset:3px}.order-number-link:focus-visible{outline:2px solid #1d7664;outline-offset:4px}.order-card>.order-card-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.order-card>.order-card-actions>.order-calls,.order-card>.order-card-actions>.order-actions{display:contents}.order-card>.order-card-actions .order-icon-action{width:100%;max-width:40px;min-width:0;height:38px;min-height:38px;padding:0}.order-card-actions .order-cargo-action{grid-column:1/-1;width:100%;padding:8px 10px;font-size:12px}.order-card>.order-delivery-progress{margin-bottom:0}
body.order-drawer-open{overflow:hidden}.order-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(560px,100vw);max-width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;padding:0;border:0;border-left:1px solid #dce5df;border-radius:16px 0 0 16px;background:#fff;color:var(--ink);box-shadow:-16px 0 60px #13232424;overflow:hidden}.order-drawer::backdrop{background:#13232466;backdrop-filter:blur(2px)}.order-drawer-shell{display:flex;flex-direction:column;height:100%;min-height:0}.order-drawer-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px 18px;border-bottom:1px solid var(--line);flex-shrink:0}.order-drawer-head .eyebrow{font-size:10px;margin:0 0 8px}.order-drawer-head h2{font-size:17px;line-height:1.45;margin:0;overflow-wrap:anywhere}.order-drawer-head .icon-button{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;padding:0;font-size:28px;line-height:1;border:1px solid #dce5df;background:#f7faf8;border-radius:9px}.order-drawer-body{padding:20px 24px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0}.order-drawer-summary{padding:16px;border:1px solid #dae4dd;border-radius:12px;margin-bottom:22px;background:#f0f2f4}.order-drawer-summary.order-transit{background:#e0f2e7}.order-drawer-summary.order-assigned{background:#fff4cb}.order-drawer-summary.order-risk{background:#e0edff}.order-drawer-summary.order-late{background:#ffe1e2}.order-drawer-summary.order-delivered{background:#fff}.order-drawer-summary .order-card-head{display:flex;justify-content:flex-end;margin-bottom:10px}.order-drawer-summary .order-card-head h2{display:none}.order-drawer-summary .order-demo{margin:0 0 8px}.order-drawer-summary .order-address{margin-top:0}.order-drawer-summary .order-delivery-progress{margin-bottom:0}.order-drawer .order-details{gap:18px 20px}.order-drawer .order-details dt{font-size:11px}.order-drawer .order-details dd{font-size:13px}.order-drawer .order-contents{padding-top:18px;margin-top:20px;border-top:1px solid var(--line)}.order-drawer .order-contents h3{font-size:13px;margin:0 0 9px}.order-drawer .order-contents p{max-height:none;white-space:pre-wrap;margin:0;font-size:13px}.order-drawer-footer{border-top:1px solid var(--line);padding:14px 24px max(14px,env(safe-area-inset-bottom));background:#fafcfb;flex-shrink:0}.order-drawer-footer .order-card-actions{margin:0;padding:0;border:0}.order-drawer-footer .order-cargo-action{flex-basis:100%}.order-drawer-footer .order-icon-action{height:40px;width:40px;min-width:40px}.order-drawer:focus{outline:none}@media(max-width:600px){.order-drawer{width:100vw;border-radius:0;border:0}.order-drawer-head{padding:18px 16px 14px}.order-drawer-body{padding:16px}.order-drawer-footer{padding-left:16px;padding-right:16px}.order-card>.order-card-actions .order-icon-action{height:40px;min-height:40px}.order-drawer .order-details{gap:16px 12px}}@media(prefers-reduced-motion:no-preference){.order-drawer[open]{animation:order-drawer-enter .18s ease-out}@keyframes order-drawer-enter{from{transform:translateX(40px);opacity:.6}to{transform:translateX(0);opacity:1}}}

.order-card[data-order-card]{cursor:pointer}

.map-legend .legend-dot.waiting-delivery{background:#8b949e;border-radius:50%;border:1px solid #fff;box-shadow:0 0 0 1px #8b949e}.map-legend #single-base-delivery-key[hidden]{display:none}

.budget-auto-filter{margin-bottom:16px;padding:16px 20px}.budget-auto-filter label{max-width:340px}.budget-auto-filter select{width:100%}#budget-auto-fields{padding:16px;border:1px solid var(--border,#dbe4df);border-radius:12px;margin:12px 0}#budget-auto-fields[hidden],#budget-auto-min[hidden],#budget-auto-time[hidden]{display:none}

.budget-form-dialog form{display:flex;flex-direction:column;max-height:90vh;max-height:90dvh}.budget-form-dialog .modal-head,.budget-form-dialog .modal-foot{flex-shrink:0}.budget-form-dialog #modal-body{overflow:auto;min-height:0}.budget-form-dialog #form-error{flex-shrink:0;margin-top:0;margin-bottom:8px}.budget-form-dialog #form-error:empty{display:none}.budget-form-dialog .modal-foot{background:#fafcfb}

:is(.budget-allowance-dialog,.budget-assignment-dialog){width:580px}
:is(.budget-allowance-dialog,.budget-assignment-dialog) .modal-head{padding:18px 24px;gap:16px}
:is(.budget-allowance-dialog,.budget-assignment-dialog) .modal-head h2{margin:0;font-size:19px;line-height:1.35}
:is(.budget-allowance-dialog,.budget-assignment-dialog) #modal-body{padding:24px;gap:20px}
:is(.budget-allowance-dialog,.budget-assignment-dialog) label{gap:8px;font-size:12px;line-height:1.5}
.budget-allowance-row{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(0,1.2fr);gap:16px}
:is(.budget-allowance-dialog,.budget-assignment-dialog) input:not([type="checkbox"]),:is(.budget-allowance-dialog,.budget-assignment-dialog) select{width:100%;height:44px;min-height:44px;padding:10px 12px;font-size:14px;font-weight:400;line-height:22px;border-radius:9px;background-color:#fff}
:is(.budget-allowance-dialog,.budget-assignment-dialog) select{appearance:none;-webkit-appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526363' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
:is(.budget-allowance-dialog,.budget-assignment-dialog) #budget-auto-fields{display:grid;gap:14px;margin:0;padding:16px;background:#f7faf8;border-color:var(--line)}
:is(.budget-allowance-dialog,.budget-assignment-dialog) #budget-auto-fields[hidden]{display:none}
:is(.budget-allowance-dialog,.budget-assignment-dialog) #budget-auto-fields .filter-help{margin:8px 0 0;font-size:12px;line-height:1.6;color:#6c7f75}
:is(.budget-allowance-dialog,.budget-assignment-dialog) #budget-auto-fields>.filter-help{margin:0}
:is(.budget-allowance-dialog,.budget-assignment-dialog) .budget-availability{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fafcfb;cursor:pointer}
.budget-availability strong{display:block;font-size:13px;color:var(--ink);font-weight:600}
.budget-availability small{display:block;margin-top:4px;font-size:11px;line-height:1.5;color:var(--muted);font-weight:400}
.budget-availability .budget-toggle{appearance:none;-webkit-appearance:none;flex:none;cursor:pointer;margin:0;width:38px;height:22px;min-width:38px;padding:0;border:0;border-radius:20px;background:radial-gradient(circle at 11px 11px,#fff 0 8px,transparent 8.5px),#b9c7c0;transition:background-color .15s}
.budget-availability .budget-toggle:checked{background:radial-gradient(circle at 27px 11px,#fff 0 8px,transparent 8.5px),var(--green)}
.budget-availability .budget-toggle:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.budget-allowance-hint{margin:0;font-size:12px;line-height:1.6;color:var(--muted)}
:is(.budget-allowance-dialog,.budget-assignment-dialog) .modal-foot{padding:16px 24px;gap:10px}
:is(.budget-allowance-dialog,.budget-assignment-dialog) .modal-foot button{min-height:40px;font-size:13px;padding:8px 18px}
@media(max-width:480px){:is(.budget-allowance-dialog,.budget-assignment-dialog) .modal-head{padding:16px 18px}:is(.budget-allowance-dialog,.budget-assignment-dialog) #modal-body{padding:18px;gap:18px}.budget-allowance-row{grid-template-columns:1fr;gap:16px}:is(.budget-allowance-dialog,.budget-assignment-dialog) .modal-foot{padding:14px 18px}:is(.budget-allowance-dialog,.budget-assignment-dialog) input:not([type="checkbox"]),:is(.budget-allowance-dialog,.budget-assignment-dialog) select{font-size:16px}}

.map-legend .legend-dot.courier-idle{background:#e9ecef;border:1px solid #7d8790}.map-legend .legend-dot.courier-assigned{background:#ffe69b;border:1px solid #a77b18}.map-legend .legend-dot.courier-transit{background:#b9e3c9;border:1px solid #2e866b}.map-legend .legend-dot.courier-risk{background:#b9d8fa;border:1px solid #397cbd}.map-legend .legend-dot.courier-late{background:#f6b9bc;border:1px solid #bd555c}.map-legend .legend-dot.courier-stale{background:transparent;border:1px dashed #7d8790}.courier-source-key{display:inline-block;width:11px;height:13px;vertical-align:middle;margin-right:4px}.simulated-person{fill:#8755b1}.real-person{fill:#173f3a}

.map-legend .legend-dot.courier-delivered{background:#fff;border:1px solid #7d8790}

.budget-assignment-dialog #modal-body{gap:16px}
.budget-assignment-dialog [hidden]{display:none!important}
.budget-assignment-dialog .filter-help{margin:0;font-size:12px;line-height:1.6;color:#6c7f75}
.budget-assignment-dialog #budget-recurrence-help{margin-top:-8px}
.budget-assignment-dialog .budget-form-dates{gap:16px;align-items:start}
.budget-assignment-dialog .budget-form-dates label{min-width:0}
.budget-assignment-dialog input[type="date"]{min-width:0;max-width:100%;text-align:left}
.budget-assignment-dialog input[type="date"]::-webkit-date-and-time-value{text-align:left;min-height:22px}
.budget-assignment-dialog .budget-recipient-section{display:grid;gap:10px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f7faf8}
.budget-assignment-dialog .budget-recipient-heading{margin:0;gap:12px}
.budget-assignment-dialog .budget-recipient-heading strong{font-size:14px}
.budget-assignment-dialog #budget-select-all{min-height:32px;font-size:12px;padding:5px 10px;white-space:nowrap}
.budget-assignment-dialog #budget-recipient-help{font-size:11px}
.budget-assignment-dialog .budget-recipients{margin:0;max-height:200px;padding:4px;background:#fff;border-radius:9px;overscroll-behavior:contain}
.budget-assignment-dialog .budget-recipients .check-label{display:flex;flex-direction:row;align-items:center;gap:10px;padding:9px;line-height:1.4;cursor:pointer}
.budget-assignment-dialog .budget-recipients input{flex:none;width:16px;height:16px;margin:0;accent-color:var(--green)}
.budget-assignment-dialog .budget-recipients span{min-width:0;overflow-wrap:anywhere}
.budget-assignment-dialog .budget-recipients small{font-size:11px;margin-top:2px}
.budget-assignment-dialog .budget-recipients>p{padding:12px;margin:0;font-size:12px;color:var(--muted)}
@media(max-width:480px){.budget-assignment-dialog .budget-recipient-section{padding:12px}.budget-assignment-dialog .budget-form-dates{grid-template-columns:minmax(0,1fr)}}

.entity-card[data-depot-card]{display:flex;flex-direction:column}
.entity-card[data-depot-card]>.badge{align-self:flex-start;margin-bottom:13px}
.entity-card[data-depot-card]>.depot-quick-actions{margin-top:auto}

.courier-quick-actions.courier-management-actions{gap:5px}

.map-legend .legend-dot.courier-order-position{background:#2e9d61;border-radius:0}

/* Geographic analytics */
.geo-toolbar{padding:20px;margin-bottom:18px;display:grid;gap:18px}.geo-period{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.geo-date-trigger{display:grid;grid-template-columns:1fr 20px;column-gap:16px;text-align:left;min-width:210px;padding:10px 14px}.geo-date-trigger>span{grid-column:1;font-size:11px;color:var(--muted)}.geo-date-trigger strong{grid-column:1;font-size:13px;font-weight:550;white-space:nowrap}.geo-date-trigger svg{grid-column:2;grid-row:1/3;width:20px;height:20px;align-self:center;color:#668277}.geo-period-separator{color:#9aa89f}.geo-refresh{width:42px;height:42px;display:grid;place-items:center;padding:10px}.geo-refresh svg,.geo-layer-buttons svg{width:20px;height:20px;flex:none}.geo-layer-buttons{display:flex;gap:8px;flex-wrap:wrap}.geo-layer-buttons button{display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;min-height:42px;padding:9px 14px}.geo-layer-buttons button.active{color:#fff;background:var(--green);border-color:var(--green)}.geo-options{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px}.geo-options .check-label{font-size:11px;flex-direction:row;align-items:center;gap:7px}.geo-options input{margin:0;accent-color:var(--green)}.geo-map-panel{overflow:hidden}.geo-map-heading{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}.geo-map-heading h2{font-size:17px;margin:0 0 5px}.geo-map-heading p{margin:0;font-size:11px;line-height:1.6;color:var(--muted)}#geo-summary{color:var(--green);font-size:12px;white-space:nowrap}.geo-map-wrap{height:clamp(420px,65vh,820px);position:relative}.geo-map-wrap canvas{width:100%;height:100%;display:block;touch-action:none}.geo-map-loader{position:absolute;top:14px;left:14px;z-index:3;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px;background:#fffffff2;border:1px solid var(--line);border-radius:9px;pointer-events:none;font-size:12px;color:#526f60}.geo-map-loader.is-initial{inset:0;border:0;border-radius:0;background:#f3f7f3e8;flex-direction:column;gap:16px}.geo-map-loader[hidden],.geo-map-message[hidden],.geo-heat-legend[hidden],.geo-inspect[hidden]{display:none}.geo-spinner{width:22px;height:22px;border:2px solid #dce9e0;border-top-color:var(--green);border-radius:50%;animation:geo-spin .8s linear infinite}.is-initial .geo-spinner{width:34px;height:34px;border-width:3px}@keyframes geo-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.geo-spinner{animation-duration:2s}}.geo-map-message{position:absolute;top:14px;left:14px;max-width:calc(100% - 76px);padding:12px 16px;border-radius:9px;background:#fffffff2;border:1px solid #dce5df;font-size:12px;color:#667f6b;pointer-events:none}.geo-heat-legend{position:absolute;right:14px;bottom:28px;padding:12px 14px;width:230px;background:#fffffff0;border:1px solid #dce5df;border-radius:10px;pointer-events:none}.geo-heat-legend strong{font-size:11px;font-weight:600;color:#4a6555}.geo-heat-ramp{height:8px;margin:9px 0 7px;border-radius:5px;background:linear-gradient(90deg,#2b6dd4,#23b8d3,#5ac379,#f9d043,#db4237)}.geo-heat-values{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#718777}.geo-data-note{padding:12px 20px;margin:0;font-size:11px;line-height:1.7;color:var(--muted);border-top:1px solid var(--line)}.geo-inspect{position:absolute;bottom:28px;left:14px;padding:12px 34px 12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:12px;max-width:calc(100% - 28px);box-shadow:0 4px 20px #12352315}.geo-inspect span,.geo-inspect strong{display:block}.geo-inspect span{font-size:11px;margin-top:4px;color:var(--muted)}.geo-inspect button{position:absolute;right:5px;top:3px;border:0;padding:2px 5px;font-size:19px;background:none}.geo-date-dialog{width:350px;max-width:calc(100vw - 24px);max-height:90vh;max-height:90dvh;overflow:auto;padding:0}.geo-date-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line)}.geo-date-head h2{font-size:16px;margin:0}.geo-date-head button{border:0;background:none;font-size:23px;padding:0 4px;line-height:1}.geo-month-nav{display:grid;grid-template-columns:30px 1fr 80px 30px;align-items:center;gap:5px;padding:14px 14px 8px}.geo-month-nav button{padding:5px;display:grid;place-items:center;border:0}.geo-month-nav svg{width:18px;height:18px}.geo-month-nav select{height:34px;min-width:0;font-size:13px;padding:4px 6px;border-color:transparent;background:#f7faf8}.geo-calendar{padding:0 14px 12px}.geo-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.geo-week>span{text-align:center;padding:8px 0;font-size:11px;color:#7d8f82}.geo-week button{height:36px;padding:0;border:0;border-radius:8px;font-size:13px;background:none}.geo-week button:hover{background:#edf5ef}.geo-week .outside{color:#b3bdb7}.geo-week button[aria-current="date"]{box-shadow:inset 0 0 0 1px #b0ccbc}.geo-week button[aria-selected="true"]{background:var(--green);color:#fff;box-shadow:none}.geo-week button:focus-visible{outline:2px solid #b5d46e;outline-offset:1px}.geo-time-picker{margin:0 18px;display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:14px}.geo-time-picker>span{margin-right:auto;font-size:12px;font-weight:600}.geo-time-picker select{width:65px;height:38px;font-size:14px;padding:7px 10px;background:#f7faf8}.geo-time-picker b{color:#84968b}.geo-picker-zone{font-size:10px;color:var(--muted);margin:8px 18px 14px}.geo-date-footer{display:flex;justify-content:space-between;gap:12px;padding:14px 18px;background:#f8faf8;border-top:1px solid var(--line)}.geo-date-footer button{font-size:12px;min-height:36px}.geo-date-trigger:focus-visible,.geo-layer-buttons button:focus-visible{outline:2px solid #73aa93;outline-offset:3px}
@media(max-width:700px){.geo-toolbar{padding:16px;gap:16px}.geo-period{gap:8px}.geo-date-trigger{min-width:0;flex:1 1 180px}.geo-period-separator{display:none}.geo-layer-buttons{display:grid;grid-template-columns:1fr 1fr}.geo-layer-buttons button{justify-content:flex-start;min-width:0;font-size:11px;padding:10px;gap:7px}.geo-map-heading{align-items:flex-start;flex-direction:column;padding:16px;gap:10px}.geo-map-heading h2{font-size:16px}.geo-map-wrap{height:65vh;min-height:420px}.geo-heat-legend{width:190px;padding:10px;right:10px}.geo-data-note{padding:12px 16px}.geo-inspect{bottom:115px}.geo-date-trigger strong{font-size:12px}}@media(max-width:400px){.geo-date-trigger{flex-basis:100%;grid-template-columns:1fr 20px}.geo-refresh{margin-left:auto}.geo-layer-buttons button{font-size:10px}.geo-month-nav{grid-template-columns:27px 1fr 72px 27px;padding-left:10px;padding-right:10px}.geo-time-picker select{font-size:16px}}
.sidebar #nav{min-height:0;overflow-y:auto;flex:1 1 auto;scrollbar-width:thin}.sidebar-bottom{flex-shrink:0}
.geo-layer-buttons button{transition:none}

/* Only navigation scrolls; branding and the profile remain anchored. */
.sidebar{height:100vh;height:100dvh;overflow:hidden}
.sidebar>.brand,.sidebar>.workspace-label{flex-shrink:0}
.sidebar #nav{flex:1 1 0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.sidebar #nav>button,.sidebar #nav>.nav-divider{flex-shrink:0}
.sidebar-bottom{flex:0 0 auto;margin-top:0;padding-top:12px;background:var(--nav)}
@media(max-width:850px){.sidebar-bottom .user{display:flex;flex-direction:column;gap:8px;padding-top:12px}.sidebar-bottom .user>div{display:none}.sidebar-bottom .user .avatar{flex-shrink:0}.sidebar-bottom .user #logout{margin:0;min-height:28px;min-width:32px;padding:2px 6px}}

.map-help-toggle{position:absolute;right:14px;bottom:23px;z-index:5;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #d6e2da;border-radius:50%;background:#fff;color:#426555;font-size:20px;font-weight:600;box-shadow:0 2px 10px #183d2820}
.map-help-toggle:hover,.map-help-toggle[aria-expanded="true"]{background:#edf6ef;border-color:#9cbea8;color:#1d7664}
.map-help-toggle:focus-visible{outline:2px solid #72b5a3;outline-offset:3px}
.map-help-panel{position:absolute;right:14px;bottom:68px;z-index:6;width:480px;max-width:calc(100% - 28px);max-height:calc(100% - 84px);display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #d8e3dc;border-radius:12px;box-shadow:0 8px 32px #163b2a26;backdrop-filter:blur(8px)}
.map-help-panel[hidden]{display:none}
.map-help-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:12px 16px;border-bottom:1px solid var(--line);color:#3e5e4c}
.map-help-heading strong{font-size:13px}.map-help-heading button{border:0;background:none;padding:0 3px;font-size:22px;line-height:1;color:#708779}
.map-help-panel .map-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:0;padding:14px 16px;overflow:auto;min-height:0;overscroll-behavior:contain;font-size:11px;line-height:1.5;color:#60796a}
.map-help-panel .map-legend>span{min-width:0;overflow-wrap:anywhere}.map-help-panel .map-legend>span:first-child{grid-column:1/-1;font-weight:600;color:#426555}.map-help-panel .map-legend>span:nth-last-child(-n+2){grid-column:1/-1;font-size:10px;color:#84968b}
@media(max-width:700px){.map-help-panel .map-legend{grid-template-columns:minmax(0,1fr);gap:9px;padding:12px 14px}.map-help-heading{padding:11px 14px}.map-help-toggle{width:36px;height:36px;right:12px}.map-help-panel{right:12px;max-width:calc(100% - 24px)}}

.zone-share-dialog .zone-share-bases{display:grid;gap:10px;padding:14px;background:#f7faf8;border:1px solid var(--line);border-radius:10px;min-width:0}
.zone-share-bases-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#496653}.zone-share-bases-heading span{font-size:11px;color:#84978b}
.zone-share-base-list{max-height:180px;overflow:auto;overscroll-behavior:contain;display:grid;gap:4px}
.zone-share-dialog .zone-share-base-list .check-label{display:flex;align-items:flex-start;flex-direction:row;gap:10px;padding:8px;border-radius:7px;font-size:12px;line-height:1.5;cursor:pointer;color:#526c5b}
.zone-share-base-list .check-label:hover{background:#eaf3ed}.zone-share-base-list input{margin:2px 0 0;width:16px;height:16px;flex:none;accent-color:var(--green)}.zone-share-base-list span{min-width:0;overflow-wrap:anywhere}.zone-share-base-name{margin:0;padding:12px 14px;background:#f3f8f4;border-radius:9px;font-size:13px;color:#426553}
.zone-share-dialog #zone-share-filter{width:100%;height:40px;min-height:40px;padding:8px 36px 8px 12px;font-size:12px;font-weight:400;border-radius:8px;background-color:#fff;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526363' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.zone-share-dialog #zone-share-error{margin:0;font-size:12px;line-height:1.6}.zone-share-dialog #zone-share-error:empty,.zone-share-dialog #form-error:empty{display:none}.zone-share-dialog #zone-share-open[aria-disabled="true"]{opacity:.45;pointer-events:none}
@media(max-width:600px){.zone-share-dialog .zone-share-bases{padding:10px}.zone-share-dialog #zone-share-filter,.zone-share-dialog #tracking-share-url{font-size:16px}.zone-share-base-list{max-height:160px}.zone-share-dialog .tracking-code-heading{align-items:flex-start}}

.log-window{overflow-anchor:none}

.courier-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;min-width:0}.entity-card .courier-card-heading h2{margin:0;min-width:0;overflow-wrap:anywhere}.emulator-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;padding:0;border-radius:8px;color:#476458}.emulator-toggle:hover{background:#edf5ef;border-color:#b6d0be;color:var(--green)}.emulator-toggle.is-paused{background:#fff5dc;border-color:#e5d29a;color:#98711d}.emulator-toggle:focus-visible{outline:2px solid #73aa93;outline-offset:3px}@media(max-width:600px){.emulator-toggle{width:40px;height:40px;flex-basis:40px}}

/* Keep long public URLs and embed code inside the share dialog's grid. */
#modal.tracking-share-dialog #modal-form{width:100%;min-width:0}
.tracking-share-dialog #modal-body{grid-template-columns:minmax(0,1fr);width:100%;min-width:0;white-space:normal;overscroll-behavior:contain}
.tracking-share-dialog #modal-body>*{min-width:0;max-width:100%}
.tracking-share-section{grid-template-columns:minmax(0,1fr)}
.tracking-share-dialog .modal-head h2{min-width:0;overflow-wrap:anywhere}
.tracking-share-dialog .modal-head .icon-button{flex-shrink:0}
.tracking-share-intro,.zone-share-base-name,.tracking-field-help,.tracking-share-replace p{overflow-wrap:anywhere;white-space:normal}
.tracking-share-dialog #tracking-share-url,.tracking-share-dialog #tracking-iframe,.zone-share-dialog #zone-share-filter{min-width:0;max-width:100%}
.tracking-code-heading{min-width:0;flex-wrap:wrap}
.tracking-share-replace>div{min-width:0}
@media(max-width:600px){#modal.zone-share-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px)}.zone-share-dialog .tracking-share-actions>*{flex:1 1 auto}.zone-share-dialog .tracking-share-replace button{width:100%}}
.delivery-nav-alert{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;margin-left:auto;color:#ff8a7e}.delivery-nav-alert[hidden],.delivery-alert-summary[hidden]{display:none}.delivery-nav-alert svg{width:20px;height:20px}#nav button .delivery-nav-alert{font-size:0}.delivery-base-alert{border-color:#d3433e!important;box-shadow:inset 0 0 0 1px #d3433e}.base-analysis-button{margin-top:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.base-analysis-button svg,[data-analysis-link] svg,.delivery-alert-summary>svg{width:20px;height:20px;flex-shrink:0}[data-analysis-link]{display:flex;align-items:center;gap:7px}.delivery-alert-summary{display:flex;align-items:center;gap:12px;background:#fff4f0;color:#9f3d32;border:1px solid #eab3aa;padding:12px 16px;border-radius:10px;margin-bottom:20px;font-size:12px}.delivery-alert-summary div{min-width:0;flex:1}.delivery-alert-summary small{display:block;margin-top:4px;line-height:1.5;color:#99665b}.delivery-alert-summary button{flex-shrink:0}.analysis-toolbar{display:flex;align-items:center;gap:24px;padding:18px}.analysis-toolbar label{min-width:0;flex:0 1 400px}.analysis-toolbar select{min-height:40px;font-size:13px}.analysis-toolbar p{margin:0;color:var(--muted);font-size:12px;flex:1}.analysis-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.analysis-stats>div{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px}.analysis-stats span{font-size:11px;color:var(--muted)}.analysis-stats strong{display:block;font-size:26px;margin-top:6px}.analysis-method{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:20px}.analysis-base .panel-head{flex-wrap:wrap}.analysis-base .panel-head>span{font-size:11px;color:#9f493e}.analysis-base-body{padding:18px;font-size:12px;line-height:1.7}.analysis-finding{border-left:3px solid #dd9e5b;padding:10px 14px;margin-bottom:14px;background:#fcfaf5;border-radius:0 8px 8px 0}.analysis-finding p{margin:5px 0 8px;color:#7d8279}.analysis-finding>div{color:#355f4e}.analysis-links{display:flex;flex-wrap:wrap;gap:8px}.analysis-links button{font-size:12px}.analysis-order{border:1px solid var(--line);border-radius:9px;margin:12px 0;overflow:hidden}.analysis-order summary{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:14px;background:#f8faf8;cursor:pointer}.analysis-order summary>span:first-child{min-width:0;overflow-wrap:anywhere;font-weight:600}.analysis-order-body{padding:16px}.analysis-timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.analysis-timeline dt{font-size:11px;color:var(--muted)}.analysis-timeline dd{margin:3px 0;font-weight:600}.analysis-order-advice{background:#edf5ee;color:#355f4e;padding:12px;border-radius:8px}.analysis-order-body p,.analysis-finding{overflow-wrap:anywhere}@media(max-width:850px){#nav button:has(.delivery-nav-alert){position:relative}#nav .delivery-nav-alert{position:absolute;top:2px;right:0;flex:none}#nav .delivery-nav-alert svg{width:15px;height:15px}}@media(max-width:600px){.analysis-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.analysis-toolbar{align-items:stretch;flex-direction:column;gap:12px}.analysis-toolbar label{flex:auto}.analysis-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-alert-summary{align-items:flex-start;flex-wrap:wrap}.delivery-alert-summary button{margin-left:auto}.analysis-order summary{align-items:flex-start;flex-wrap:wrap}}

.map-wrap.dashboard-map{width:100%;height:auto;aspect-ratio:4 / 3}.dashboard-map>canvas{position:absolute;inset:0}

.map-help-panel .map-legend{grid-template-columns:minmax(0,1fr);gap:14px}
.map-legend-group{min-width:0}.map-legend-group+.map-legend-group{border-top:1px solid #e7eee9;padding-top:12px}.map-legend-group h3{margin:0 0 9px;font-size:12px;font-weight:650;color:#365c4b;letter-spacing:0}.map-legend-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px}.map-legend-items>span{display:flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}.map-legend-items>span[hidden]{display:none}.map-legend-items .legend-dot{flex-shrink:0;margin-right:0}.map-legend-items .courier-source-key,.map-legend-items .route-direction-key{flex-shrink:0}.map-legend-note{margin:9px 0 0;color:#84968b;font-size:10px;line-height:1.55}.legend-base-alert{display:inline-block;width:11px;height:11px;border:2px solid #d3433e;border-radius:50%;flex-shrink:0}@media(max-width:700px){.map-legend-items{grid-template-columns:minmax(0,1fr);gap:8px}.map-legend-group h3{font-size:12px}}

.entity-card[data-courier-card]{display:flex;flex-direction:column;min-width:0}.entity-card[data-courier-card]>.badge{align-self:flex-start;margin-bottom:13px}.entity-card[data-courier-card]>.courier-management-actions{margin-top:auto;flex-shrink:0}

.courier-card.personal-route-paused,.entity-card.personal-route-paused{border:2px solid #e78b23;box-shadow:0 0 0 1px #e78b231a}
