:root{font-family:system-ui,-apple-system,'Microsoft YaHei',sans-serif;color:#19332f;background:#f1f5f4;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;min-height:44px;border:0;border-radius:10px;padding:10px 14px;font-weight:650}button:disabled{opacity:.45;cursor:default}input,select{min-height:46px;border:1px solid #ccd9d5;border-radius:10px;background:white;padding:10px 12px;min-width:0;font-size:16px;width:100%;color:#19332f}input[type=checkbox]{width:20px;min-height:20px;accent-color:#0c756b;flex-shrink:0}label{display:grid;gap:7px;margin:12px 0;font-weight:600}h1{font-size:26px;line-height:1.2;margin:8px 0 16px;letter-spacing:-.5px}h2{font-size:18px;margin:5px 0 14px}p{line-height:1.6}header{height:76px;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e0e9e6}.brand{display:flex;align-items:center;gap:10px}.brand-icon{display:grid;place-items:center;background:#0c756b;color:white;font-size:28px;width:40px;height:40px;border-radius:12px}.brand small{display:block;font-size:10px;letter-spacing:1px;color:#758981;margin-top:4px}.brand strong{font-size:18px}main{max-width:1050px;margin:auto;padding:18px 16px calc(165px + env(safe-area-inset-bottom))}.card{background:white;border:1px solid #dce6e2;border-radius:16px;padding:18px;margin:14px 0}.compact{padding:14px}.login{max-width:440px;margin:8vh auto}.eyebrow{color:#547b70;font-size:12px;font-weight:650}.muted{color:#71847c;font-size:13px;line-height:1.65}.primary{background:#0c756b;color:white}.quiet{background:#e9f1ee;color:#235749}.wide{width:100%;margin-top:16px}.heading,.inline,.toolbar,.map-foot{display:flex;justify-content:space-between;align-items:center;gap:10px}.inline>input{flex:1}.filter{display:grid;grid-template-columns:1fr 140px;gap:8px}.pill{border-radius:20px;background:#dcece5;color:#316a56;padding:7px 12px;font-size:13px;white-space:nowrap}.toolbar{margin:12px 0}.segmented{display:flex;background:#dfeae5;border-radius:11px;padding:3px}.segmented button{min-height:38px;padding:6px 22px;background:none;color:#587267}.segmented button.active{background:white;color:#0c756b;box-shadow:0 2px 4px #153b2310}#map{height:calc(100dvh - 530px);min-height:240px;max-height:580px;background:#dce8e2;border-radius:15px;z-index:0}.map-foot{font-size:11px;color:#698176}.map-foot .quiet{min-height:38px;padding:5px 10px}.amber{color:#a66b0a}.vehicle{padding:16px}.vehicle-head{display:flex;gap:12px;align-items:center}.vehicle-head label{margin:0}.vehicle-head strong{display:block;overflow-wrap:anywhere}.vehicle-head small{color:#75877e}.vehicle-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0;font-size:13px}.vehicle-grid small{display:block;color:#7b8d85;margin-bottom:4px}.tag{display:inline-block;padding:3px 8px;border-radius:5px;background:#edf5f0;font-size:12px;margin:4px 5px 0 0}.stale{color:#9c650c;background:#fff4d9}.error{color:#b64141}.checks{display:flex;gap:16px;flex-wrap:wrap}.checks label{display:flex;align-items:center;gap:6px;font-size:14px}.assignment strong{overflow-wrap:anywhere}.assignment .inline{flex-wrap:wrap}.record{font-size:13px;overflow-wrap:anywhere}.record summary{cursor:pointer;min-height:44px;padding:8px 0}.record small{color:#75877e}.danger{color:#b64141;background:#fff0ee}#notice{position:sticky;top:0;z-index:1500;padding:12px 16px;background:#fff0ce;color:#78561f;line-height:1.5;font-size:14px}#refresh-bar{position:fixed;bottom:calc(66px + env(safe-area-inset-bottom));left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;background:#fffffff5;border-top:1px solid #d8e4de;z-index:900}#refresh-bar strong{display:block;font-size:14px}#refresh-bar small{display:block;color:#728379;font-size:11px;margin-top:4px}#refresh-bar button{white-space:nowrap;font-size:14px}nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;padding:4px 4px calc(4px + env(safe-area-inset-bottom));height:calc(66px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e0e9e5;z-index:1000}nav button{background:none;color:#7b8d83;padding:4px 7px;min-width:44px;font-size:20px;border-radius:9px}nav button span{display:block;font-size:10px;margin-top:2px}nav button.active{color:#087365;background:#edf6f0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}.leaflet-popup-content{min-width:200px;max-width:260px}.leaflet-popup-content p{font-size:13px;line-height:1.5;margin:6px 0}.leaflet-popup-content button{width:100%;margin-top:10px}.leaflet-control-attribution{font-size:10px}a{color:#0c756b}details{max-width:100%}@media(min-width:800px){#refresh-bar{padding-left:max(20px,calc((100% - 1018px)/2));padding-right:max(20px,calc((100% - 1018px)/2))}#vehicles{display:grid;grid-template-columns:1fr 1fr;gap:14px}.vehicle{margin:0}header{padding-left:max(20px,calc((100% - 1018px)/2));padding-right:max(20px,calc((100% - 1018px)/2))}.filter{grid-template-columns:1fr 190px}nav{justify-content:center;gap:30px}}@media(max-width:370px){.filter{grid-template-columns:1fr}#install{font-size:12px;padding:6px}.segmented button{padding:6px 16px}}

.map-selection{display:flex;align-items:center;gap:6px;font-size:13px;margin:0}.map-selection input{width:20px}#map-panel>.toolbar{margin-top:0}


.filter{flex-wrap:wrap}.filter input{min-width:0;flex:1 1 100%}.filter select{flex:1;min-width:0}

.filter{display:grid;grid-template-columns:1fr 1fr}.filter input{grid-column:1/-1}.assignment{padding:10px 12px;margin:8px 0;border-radius:12px}.assignment p{margin:3px 0;font-size:12px;line-height:1.3}.assignment strong{font-size:14px}.assignment-options{display:flex;align-items:center;gap:12px}.assignment-options>label{flex:1;margin:4px 0;gap:2px;font-size:11px}.assignment-options .checks{gap:8px}.assignment-options .checks label{margin:4px 0;font-size:12px}.assignment select{min-height:40px;padding:6px 8px;font-size:14px}.assignment .inline{justify-content:flex-start;gap:6px;margin-top:4px}.assignment button{font-size:12px;padding:6px 10px}.disabled-vehicle{background:#f5f5f5}.vehicle{padding:10px 12px;margin:8px 0}.vehicle-grid{gap:4px;margin:6px 0;font-size:12px}.vehicle-grid small{margin:0}.vehicle .muted{line-height:1.3}.vehicle p{margin:4px 0}.vehicle .tag{padding:2px 5px;margin-top:3px}.vehicle-head strong{font-size:14px}.vehicle-head small{font-size:11px}.vehicle>button{padding:5px 10px}.brand small{letter-spacing:0}#language{font-size:13px;padding:6px 9px;margin-left:auto;margin-right:6px}header .brand{gap:5px}header .brand-icon{width:30px;height:30px}.brand strong{font-size:16px}#install{font-size:12px;padding:6px 8px}@media(min-width:800px){.filter{grid-template-columns:1fr 160px 160px}.filter input{grid-column:auto}#assignments{display:grid;grid-template-columns:1fr 1fr;gap:8px}.assignment{margin:0}}

.driver-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.driver-fields label{margin:4px 0;font-size:11px;gap:2px}.driver-fields input{min-height:40px;padding:6px 8px;font-size:14px}.driver-details{font-size:12px;overflow-wrap:anywhere}.driver-details a{display:inline-block;min-height:32px;padding:6px 0}#login-language{float:right}.assignment .tag{float:right}

.warehouse-match{font-size:12px;color:#0c756b;margin-top:4px}nav button{padding:4px 3px;min-width:40px}nav button span{font-size:10px}html[lang=th] nav button span{font-size:9px}html[lang=th] .assignment-options .checks{gap:3px}html[lang=th] .assignment-options .checks label{font-size:11px}

.assignment-options>label{font-size:0;gap:0}.assignment-options{gap:8px}.driver-editor>summary{font-size:12px;cursor:pointer;min-height:32px;padding:7px 0;color:#547b70}.assignment{padding:8px 10px}.assignment .inline{flex-wrap:nowrap}.assignment .inline button{flex:1;padding:5px 6px;white-space:nowrap}.assignment-options .checks label{white-space:nowrap}

#photo-preview,.task-record-photos{display:flex;gap:6px;flex-wrap:wrap}#photo-preview>div{width:30%}#photo-preview img,.task-record-photos img{width:100%;height:90px;object-fit:cover;border-radius:8px}.task-record-photos a{width:30%}.transport-stats{width:100%;text-align:center;border-collapse:collapse}.transport-stats th{font-size:13px;padding:8px}.transport-stats td{font-size:26px;color:#0c756b;padding:10px}.transport-stats tbody{background:#edf5f0}#transport-details>summary{min-height:44px;padding:12px 0;cursor:pointer}#transport-records summary{font-size:13px;min-height:44px}nav{overflow-x:auto;justify-content:flex-start;gap:0}nav button{flex:1 0 43px}#transport-page input[type=file]{font-size:13px}html[lang=th] nav button{flex-basis:48px}

#unload-preview{display:flex;gap:6px;flex-wrap:wrap}#unload-preview>div{width:30%}#unload-preview img{width:100%;height:90px;object-fit:cover;border-radius:8px}

.vehicle-map-label{font-size:11px;font-weight:700;padding:2px 5px;background:#fffef4;border:1px solid #577b70;color:#183c31;box-shadow:0 1px 3px #0003}.leaflet-tooltip-top.vehicle-map-label:before{border-top-color:#577b70}

main{padding-top:10px}#fleet-page>.heading{min-height:28px;margin-bottom:6px}#fleet-page h1{font-size:18px;margin:0}#greeting{display:none}#fleet-count{padding:4px 10px;font-size:12px}#fleet-page .filter{gap:5px}#fleet-page .filter input{min-height:40px;padding:7px 10px}#fleet-page .filter select{min-height:38px;font-size:13px;padding:5px 8px}#fleet-page .toolbar{margin:5px 0;gap:5px}#fleet-page .segmented{padding:2px}#fleet-page .segmented button{min-height:36px;padding:5px 14px;font-size:13px}#select-all{min-height:40px;padding:5px 10px;font-size:12px}#fleet-page .map-selection{font-size:12px;min-height:38px}#map{max-height:700px}#map-panel>p.muted{display:none}#management-tabs{display:flex;gap:5px;overflow-x:auto;padding-bottom:8px}#management-tabs button{white-space:nowrap;flex:1;background:#e4eee9;color:#416858;font-size:13px;padding:6px 9px}#management-tabs button.active{background:#0c756b;color:white}nav{justify-content:space-around;overflow:visible}nav button,html[lang=th] nav button{flex:1 1 0;min-width:0}nav button span,html[lang=th] nav button span{font-size:11px}
