:root{font-family:Tahoma,Arial,sans-serif;color:#142139;background:#f2f5f9;font-size:16px;--nav:#0e1930;--lime:#b5f455;--border:#dfe5ef;--muted:#647189}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer;border-radius:9px;padding:11px 16px;background:var(--nav);color:white;font-weight:600}button:hover{filter:brightness(1.15)}button:disabled{opacity:.5;cursor:wait}button.light{background:#edf2f9;color:#203351}button.danger{background:#fff0f0;color:#a82735}button.accent{background:var(--lime);color:var(--nav)}input,select,textarea{width:100%;border:1px solid #cdd6e3;background:white;border-radius:8px;padding:11px;color:#142139}input:focus,select:focus,textarea:focus{outline:2px solid #89b94b;outline-offset:1px}textarea{min-height:85px}label{display:block;font-size:.88rem;color:#52617a;margin-bottom:7px}a{color:#225bab}h1,h2,h3,p{margin-top:0}h1{font-size:1.8rem}h2{font-size:1.2rem}h3{font-size:1rem}.muted{color:var(--muted);line-height:1.7}.brand{font-family:Arial,sans-serif;letter-spacing:-1px;font-size:1.7rem;font-weight:800;direction:ltr}.brand span{color:var(--lime)}.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:white;padding:30px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .muted{color:#9aa8c0;margin-top:10px;font-size:.88rem}.nav{display:flex;flex-direction:column;gap:7px;margin-top:35px}.nav button{background:transparent;color:#c1cbda;text-align:right;display:flex;gap:12px;align-items:center;font-weight:400}.nav button.active{background:#24324b;color:var(--lime)}.nav button b{font-size:.85rem;opacity:.6}.sidebar footer{margin-top:auto;padding-top:20px}.main{padding:30px 38px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--border);padding-bottom:22px;margin-bottom:30px}.topbar small{display:block;color:var(--muted);margin-bottom:7px}.topbar h1{margin:0}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.spread{justify-content:space-between}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:26px}.card,.panel{background:white;border:1px solid var(--border);border-radius:14px;padding:23px}.card strong{font-size:2.3rem;display:block;margin:18px 0 8px;direction:ltr;text-align:right}.card:first-child{background:var(--nav);color:white}.card:first-child .muted{color:#becbe1}.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.panel{margin-bottom:22px}.panel h2{margin-bottom:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.full{grid-column:1/-1}.table-wrap{overflow-x:auto;margin-top:15px}table{width:100%;border-collapse:collapse;font-size:.9rem}th{text-align:right;color:var(--muted);font-size:.82rem;font-weight:500;background:#f7f9fc}td,th{padding:14px 12px;border-bottom:1px solid #ebeff5;white-space:nowrap}td.wrap{white-space:normal;min-width:190px;line-height:1.6}tr:last-child td{border:0}.tag{display:inline-block;border-radius:20px;padding:5px 10px;font-size:.82rem;background:#eaf1fc;color:#365781}.tag.active,.tag.verified,.tag.approved{background:#e7f5e5;color:#306b2b}.tag.pending,.tag.warning{background:#fff2d8;color:#865c16}.tag.rejected,.tag.urgent,.tag.inactive{background:#ffebed;color:#a32a38}.alert{border-bottom:1px solid var(--border);padding:16px 0;display:flex;justify-content:space-between;gap:15px}.alert:last-child{border:0}.empty{text-align:center;padding:45px;color:var(--muted);line-height:1.9}.note{background:#eef4fd;border-right:3px solid #5279b5;padding:15px;line-height:1.8;font-size:.9rem;margin-bottom:20px}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login .intro{background:var(--nav);color:white;padding:10vw 7vw;display:flex;flex-direction:column;justify-content:center}.intro h1{font-size:3rem;line-height:1.45;margin-top:60px}.intro p{color:#b6c5db;line-height:1.9}.login .entry{display:flex;align-items:center;justify-content:center;padding:35px}.entry form{width:100%;max-width:380px}.entry label{margin-top:20px}.entry button{width:100%;margin-top:24px}.error{color:#b12d3b;line-height:1.7}.line-fields input{min-width:105px}dialog{width:min(640px,94vw);border:1px solid var(--border);border-radius:16px;padding:28px;max-height:90vh}dialog::backdrop{background:#0e193080}pre{white-space:pre-wrap;word-break:break-word;direction:ltr;text-align:left;background:#f3f6fa;padding:20px;border-radius:10px;max-height:420px;overflow:auto}#toast{position:fixed;bottom:28px;left:28px;z-index:100;background:#142139;color:white;border-radius:12px;padding:16px 24px;display:none;max-width:90vw}#toast.show{display:block}button.small{font-size:.82rem;padding:8px 10px}.inline-select{max-width:200px}.subtitle{margin:12px 0 22px}.loading{padding:60px;text-align:center;color:var(--muted)}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}.main{padding:25px}.shell{grid-template-columns:200px minmax(0,1fr)}}@media(max-width:760px){.shell{display:block}.sidebar{position:static;height:auto;padding:18px}.sidebar .nav{flex-direction:row;overflow:auto;margin-top:18px;gap:4px}.nav button{white-space:nowrap;font-size:.88rem}.sidebar footer{display:none}.sidebar .muted{display:none}.main{padding:20px 14px}.topbar{align-items:flex-start}h1{font-size:1.45rem}.card,.panel{padding:18px}.form-grid{grid-template-columns:1fr}.login{display:block}.login .intro{padding:30px}.intro h1{font-size:1.7rem;margin:25px 0 0}.intro p{display:none}.login .entry{padding:35px 25px}.topbar .date{display:none}.card strong{font-size:1.9rem}.line-fields input{min-width:95px}}

[dir=ltr] .nav button,[dir=ltr] th,[dir=ltr] .card strong{text-align:left}[dir=ltr] .note{border-right:0;border-left:3px solid #5279b5}.booking-slot input{min-width:180px}.booking-slot input[type=number]{min-width:85px}#language{margin-bottom:8px;min-width:110px}

.alert .tag{align-self:flex-start}

.group-member{display:flex;gap:10px;align-items:center;padding:8px}.group-member input{width:auto}

#worker-map{height:420px;min-height:280px;border-radius:12px;z-index:0}.leaflet-container{font-family:inherit}.leaflet-control-attribution a{display:inline}.leaflet-popup-content p{margin:8px 0}@media(max-width:600px){#worker-map{height:320px}}

.chat-messages{display:flex;flex-direction:column;gap:12px;height:380px;overflow-y:auto;background:#edf3ef;padding:16px;border-radius:14px}.chat-bubble{max-width:85%;padding:10px 14px;border-radius:14px;background:white;align-self:flex-start;overflow-wrap:anywhere}.chat-bubble p{white-space:pre-wrap;margin:0 0 6px}.chat-own{align-self:flex-end;background:#d8f5d0}.chat-bubble small{opacity:.7}.chat-compose{display:flex;gap:10px;margin-top:12px;align-items:flex-end}.chat-compose textarea{min-height:64px;flex:1;resize:vertical}.chat-error{color:#a22}

.driver-chat-fab{position:fixed;inset-inline-end:16px;bottom:24px;z-index:800;border-radius:28px;padding:14px 18px;box-shadow:0 6px 24px #0003;background:#176b48;color:white}.driver-chat-dialog{width:min(560px,94vw);max-height:90vh;overflow:auto;border:0;border-radius:18px;padding:20px}.driver-chat-dialog::backdrop{background:#0007}.driver-shell{padding-bottom:100px}.chat-status{font-weight:700;color:#176b48}

.demo-banner{position:sticky;top:0;z-index:1000;background:#ffdc61;color:#2d2500;font-weight:800;text-align:center;padding:8px;grid-column:1/-1;width:100%}

/* Readable responsive controls and persistent update indicators. */
body{line-height:1.55}h1,h2,h3{line-height:1.3;overflow-wrap:anywhere}h1{font-size:clamp(1.45rem,2.3vw,1.9rem)}h2{font-size:1.2rem}p{overflow-wrap:anywhere}label{font-size:.95rem;font-weight:600}input,select,textarea,button{font-size:1rem}button,.small{min-height:44px}.small{font-size:.9rem}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #287cb9;outline-offset:3px}.main{min-width:0}.topbar,.row{flex-wrap:wrap}.topbar{gap:16px}.sidebar{overflow-y:auto}.nav button{display:flex;align-items:center;gap:10px;line-height:1.45;white-space:normal}.nav button b{flex-shrink:0}.notification-count{margin-inline-start:auto;flex-shrink:0;min-width:25px;padding:2px 7px;border-radius:20px;background:#ffdc75;color:#192033;font-size:.85rem;font-weight:800;text-align:center}.notification-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin-bottom:22px;border:1px solid #8db6e6;border-inline-start:5px solid #246aa8;border-radius:14px;background:#edf5ff;color:#17324e}.notification-banner p{margin:5px 0}.notification-banner strong{font-size:1.1rem}.table-wrap{max-width:100%;overflow:auto}table{font-size:.95rem}th{font-size:.9rem}td .row{gap:8px}.alert{align-items:flex-start}.alert>div{min-width:0}.chat-bubble{overflow-wrap:anywhere;font-size:1rem}.driver-chat-dialog{max-height:92dvh;overflow:auto}.driver-chat-dialog .chat-messages{height:min(380px,43dvh)}
@media(max-width:760px){.sidebar{overflow:visible}.nav button{flex-shrink:0;max-width:220px}.notification-banner{align-items:stretch;flex-direction:column;padding:16px}.notification-banner .row{gap:8px}.notification-banner button{flex:1 1 140px}.topbar>div{max-width:100%}dialog{padding:18px}.main{padding:20px 14px}.panel{overflow-wrap:anywhere}.chat-bubble{max-width:94%}}
/* Partner exports and reconciliation */
#partner-setup{margin:1rem 0}#partner-setup input[type=checkbox]{width:auto;min-height:auto}#partner-setup label{margin:.6rem 0}#partner-import,#partner-link{margin-top:1rem}#partner-result{margin:1.5rem 0}#partner-result h3{margin-bottom:.75rem}#partner-result .row{margin-bottom:1rem}
