/*
Theme Name: 业务车辆管理
Author: Codex
Description: 简体中文车辆管理主题，支持司机与车辆登记、项目地图、历史路线、车辆照片标记和屏幕常亮。
Version: 1.3.2
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: business-car-manager
*/
:root{--ink:#203b36;--muted:#74827c;--green:#235d4d;--line:#e4e9e3;--paper:#f6f7f2;--soft:#eef3e9;--lime:#d8e8a6;--shadow:0 12px 40px #23372f12}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;background:var(--paper);font-size:14px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:3px solid #8fba55;outline-offset:3px}h1,h2,h3,p{margin-top:0}h2{font-weight:600;letter-spacing:-.8px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--muted)}.button{display:inline-flex;justify-content:center;align-items:center;gap:12px;background:var(--green);color:#fff;border:1px solid var(--green);border-radius:9px;padding:12px 18px;font-size:13px;font-weight:600;min-height:43px}.button:hover{filter:brightness(.95)}.button.light{background:#fff;color:var(--ink);border-color:var(--line)}.text-button{border:0;background:none;color:var(--green);font-size:12px;font-weight:600;padding:12px 0;display:inline-block;text-align:left}.danger{color:#a9473d}.muted{color:var(--muted);line-height:1.65}input,select{width:100%;border:1px solid #dce3da;border-radius:8px;background:#fff;padding:12px;color:var(--ink);outline:none}input:focus,select:focus{border-color:#709b73;box-shadow:0 0 0 3px #91b17c20}label{display:block;font-size:12px;font-weight:600;margin:0 0 18px}label input,label select{margin-top:8px}small{font-size:11px;color:var(--muted);line-height:1.65}.app-shell{height:100dvh;display:grid;grid-template-columns:76px 1fr;grid-template-rows:92px 1fr;overflow:hidden}.rail{grid-row:1/3;background:#fff;display:flex;align-items:center;flex-direction:column;gap:16px;border-right:1px solid var(--line);z-index:800}.brand-icon{font-size:30px;font-weight:800;letter-spacing:-4px;padding:24px 12px 20px}.brand-icon span{color:#92ae5b}.rail-button{border:0;background:none;color:#85918b;width:44px;height:44px;border-radius:12px;font-size:25px}.rail-button.active{background:var(--green);color:white}.rail-button:hover{background:#eaf0e4;color:var(--green)}.rail-bottom{margin-top:auto;padding:24px;font-size:22px;color:#819188}.topbar{display:flex;justify-content:space-between;align-items:center;padding:0 32px;background:white;border-bottom:1px solid var(--line);z-index:700}.topbar .eyebrow{font-size:9px;letter-spacing:2px}.topbar h1{font-size:26px;letter-spacing:-1px;margin:1px 0 0}.brand-dot{color:#8ca454}.top-actions{display:flex;gap:24px;align-items:center}.sync{font-size:11px;color:#5b7768}.sync:before{content:"";display:inline-block;background:#7ea65e;width:6px;height:6px;border-radius:50%;margin-right:8px}.sync.failed{color:#b25a3d}.sync.failed:before{background:#c57a50}.avatar{height:35px;width:35px;background:#eaf0df;border-radius:50%;display:grid;place-items:center;font-weight:600}.workspace{position:relative;overflow:hidden}#map{position:absolute;inset:0;background:#e5ebdf}.leaflet-container{font-family:inherit}.fleet-panel{position:absolute;top:25px;bottom:25px;left:25px;width:352px;background:#fffffff7;border:1px solid #ffffff;border-radius:16px;z-index:500;box-shadow:var(--shadow);padding:25px 22px 12px;display:flex;flex-direction:column;backdrop-filter:blur(12px)}.panel-heading h2{font-size:25px;margin:12px 0 8px}.panel-heading p{font-size:12px;color:var(--muted);margin-bottom:25px}.field-label{font-size:9px;letter-spacing:1.2px;color:#7b897f;margin-bottom:9px}.fleet-panel select{background:#f6f8f2;border:1px solid #e2e8db;font-weight:600}.metrics{display:grid;grid-template-columns:repeat(3,1fr);padding:22px 0;border-bottom:1px solid var(--line);margin-bottom:19px}.metrics>div{display:flex;flex-direction:column;gap:5px;padding-left:14px;border-left:1px solid var(--line)}.metrics>div:first-child{padding-left:0;border-left:0}.metrics strong{font-size:25px;font-weight:500;letter-spacing:-1px}.metrics span{font-size:10px;color:var(--muted)}#search{background:#f7f8f5;font-size:12px;border-color:transparent}.list-heading{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:var(--muted);padding:22px 0 12px}.car-list{flex:1;overflow:auto;min-height:80px;margin:0 -7px;padding:0 7px}.car-row{display:flex;flex-direction:column;text-align:left;background:#fff;border:1px solid var(--line);border-radius:10px;width:100%;padding:15px;margin-bottom:10px;gap:6px;color:var(--ink)}.car-row:hover,.car-row.selected{border-color:#749374;background:#f8faf4}.car-row-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.car-row-top strong{font-size:13px}.badge{font-size:9px;background:#eef0ed;color:#7b837a;border-radius:20px;padding:4px 7px;white-space:nowrap}.badge.green{background:#e8f1db;color:#5e7f35}.plate{font-size:11px;letter-spacing:.6px;color:#576959}.driver-name{font-size:11px;color:var(--muted);margin-top:3px}.last-seen{font-size:10px;color:#8d978f}.fleet-panel>.text-button{border-top:1px solid var(--line);margin-top:8px;padding-top:15px}.map-top{position:absolute;left:402px;right:25px;top:25px;z-index:500;display:flex;justify-content:space-between;gap:12px;pointer-events:none}.map-top>*{pointer-events:auto}.map-tag{display:inline-flex;align-items:center;gap:9px;background:#fffffff2;border-radius:9px;padding:12px 16px;font-size:12px;box-shadow:var(--shadow);max-width:65%}.status-dot{display:inline-block;width:8px;height:8px;flex-shrink:0;background:#83a65c;border-radius:50%;box-shadow:0 0 0 4px #88ab5820}.status-dot.paused{background:#b6beb6;box-shadow:none}.map-note{position:absolute;bottom:25px;left:405px;right:70px;z-index:450;font-size:10px;color:#5b6e5e;background:#ffffffd9;border-radius:5px;padding:8px 10px;width:fit-content}.fleet-pin-wrap{background:none;border:0}.fleet-pin{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:white;border:3px solid white;font-size:20px;box-shadow:0 3px 12px #18392d55}.fleet-pin.live{box-shadow:0 0 0 7px #5a875722,0 3px 12px #18392d55}.fleet-pin.offline{background:#92998e}.popup-content strong{font-size:14px}.popup-content p{margin:7px 0;font-size:11px}.empty{padding:22px 5px;color:var(--muted);font-size:12px;line-height:1.7}.empty strong{font-weight:600;color:var(--ink)}.empty p{margin:8px 0}.manage{overflow:auto;padding:38px 42px}.manage-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px}.manage-heading h2{font-size:32px;margin:10px 0}.manage-heading p{color:var(--muted);font-size:13px;line-height:1.6}.manage-grid{display:grid;grid-template-columns:340px 1fr;gap:24px}.card{background:white;border:1px solid var(--line);padding:26px;border-radius:14px;align-self:start}.card h3{font-size:15px;margin-bottom:25px}#record-form small{display:block;margin:-9px 0 20px}.form-actions{display:flex;gap:10px;margin-top:25px}.record-row{display:flex;justify-content:space-between;gap:15px;padding:18px 0;border-top:1px solid var(--line)}.record-row strong,.record-row small{display:block;overflow-wrap:anywhere}.record-row strong{font-size:13px;margin-bottom:6px}.record-actions{display:flex;gap:14px;align-items:start;flex-wrap:wrap;justify-content:flex-end}.record-actions .text-button{white-space:nowrap;padding-top:0}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#203b36;color:#fff;border-radius:9px;padding:15px 22px;z-index:10000;max-width:calc(100vw - 35px);width:max-content;box-shadow:var(--shadow);line-height:1.6;font-size:12px}.login-page{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.login-story{position:relative;background:#193f37;color:#fff;padding:55px 11% 40px;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.wordmark{font-size:29px;font-weight:700;letter-spacing:-1px;position:absolute;top:45px;left:11%}.wordmark span{color:var(--lime)}.login-story>.eyebrow{color:#adc2ac;margin-top:80px}.login-story h1{font-size:clamp(40px,4.8vw,72px);font-weight:500;letter-spacing:-3px;line-height:1.08;margin:26px 0}.login-story p{color:#c2d0bf;line-height:1.9;font-size:15px}.story-grid{display:flex;gap:25px;font-size:9px;letter-spacing:1.2px;margin-top:60px;color:#aebfa7;z-index:1}.map-art{position:absolute;width:470px;height:470px;right:-250px;bottom:-240px;border:1px solid #73916555;border-radius:50%;pointer-events:none}.map-art>i{position:absolute;inset:50px;border:1px solid #73916555;border-radius:50%}.map-art>i:nth-child(2){inset:100px}.map-art>i:nth-child(3){inset:150px}.map-art span{position:absolute;top:50px;left:70px;font-size:45px;color:var(--lime)}.login-form-section{position:relative;display:flex;align-items:center;justify-content:center;padding:70px 40px 95px;background:#fafbf7}.login-box{width:350px;max-width:100%}.login-box h2{font-size:33px;letter-spacing:-1px;margin:18px 0 10px}.login-box>.muted{font-size:13px;margin-bottom:35px}.login-box label{margin-bottom:22px}.full{width:100%;justify-content:space-between;margin-top:6px}.login-help{font-size:11px;line-height:1.8;color:var(--muted);margin:20px 0 34px}.admin-link{font-size:11px;font-weight:600;border-bottom:1px solid #b8c8b0;padding-bottom:5px}.login-footer{position:absolute;bottom:30px;letter-spacing:1.5px;font-size:9px;color:#9ba595}.login-error{background:#fbece5;border-radius:8px;padding:12px;line-height:1.6;color:#9f4d34;font-size:12px}.driver-page{min-height:100dvh;padding:35px 20px}.driver-card{max-width:550px;margin:auto;background:white;border:1px solid var(--line);border-radius:18px;padding:30px}.driver-card h1{font-size:29px;letter-spacing:-1px;margin:17px 0 10px}.assigned{margin:25px 0;background:#f1f5e9;border-radius:12px;padding:20px}.assigned>span{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.assigned h2{margin:10px 0;font-size:23px}.assigned p{margin:0;font-size:13px;letter-spacing:1px}.sharing-indicator{display:flex;gap:12px;align-items:center;font-size:13px}#tracking-detail{font-size:12px;line-height:1.65;color:var(--muted);margin:14px 0 20px}.driver-buttons{display:flex;gap:10px;margin-bottom:20px}.driver-map{height:240px;border-radius:10px;background:#e8ede4}.driver-guidance{font-size:11px;line-height:1.8;color:var(--muted);margin:20px 0 5px}
@media(min-width:1450px){.login-story{padding-left:15%}.wordmark{left:15%}}
@media(max-width:1050px){.manage{padding:25px}.manage-grid{grid-template-columns:300px 1fr;gap:18px}.card{padding:20px}.record-row{flex-direction:column}.record-actions{justify-content:flex-start}.login-story h1{font-size:50px}}
@media(max-width:760px){.app-shell{grid-template-columns:1fr;grid-template-rows:74px 1fr 62px}.rail{grid-row:3;grid-column:1;flex-direction:row;border-right:0;border-top:1px solid var(--line);justify-content:space-evenly;gap:5px}.brand-icon{display:none}.rail-bottom{margin:0;padding:10px}.rail-button{font-size:23px;width:42px;height:42px}.topbar{grid-row:1;padding:0 18px}.topbar h1{font-size:23px}.topbar .eyebrow{font-size:8px}.top-actions{gap:12px}.sync{font-size:9px;max-width:150px}.workspace{grid-row:2;display:flex;flex-direction:column}.workspace #map{position:relative;flex:1;min-height:190px;order:0}.fleet-panel{position:relative;inset:auto;border-radius:17px 17px 0 0;width:100%;max-height:51%;padding:17px 20px 5px;order:1;box-shadow:0 -5px 30px #23372f0a}.panel-heading h2{font-size:19px;margin:4px 0 12px}.panel-heading>.eyebrow,.panel-heading p,.field-label,.fleet-panel>.text-button{display:none}.fleet-panel select{padding:9px;font-size:12px}.metrics{padding:12px 0;margin-bottom:10px}.metrics strong{font-size:20px}.metrics span{font-size:9px}.metrics>div{flex-direction:row;gap:9px;align-items:center;flex-wrap:wrap}#search{padding:9px}.list-heading{padding:10px 0}.car-list{min-height:60px}.car-row{padding:12px;gap:4px}.car-row .driver-name,.car-row .last-seen{display:inline}.map-top{left:15px;right:15px;top:15px}.map-top .button{padding:9px 12px;min-height:34px;font-size:11px}.map-tag{font-size:11px;padding:9px 12px}.map-note{display:none}.manage{grid-row:2;padding:23px 18px}.manage-heading{align-items:start}.manage-heading h2{font-size:26px}.manage-grid{grid-template-columns:1fr}.manage-heading p{font-size:12px}.card{padding:22px}.record-row{flex-direction:row}.record-actions{gap:10px}.login-page{grid-template-columns:1fr}.login-story{min-height:260px;padding:75px 27px 28px}.wordmark{top:20px;left:27px;font-size:23px}.login-story>.eyebrow{margin-top:0;font-size:8px}.login-story h1{font-size:39px;letter-spacing:-1.5px;margin:15px 0}.login-story p{font-size:12px;margin-bottom:0}.story-grid{display:none}.login-form-section{padding:34px 27px 75px;align-items:start}.login-box{width:100%}.login-box h2{font-size:27px;margin-top:12px}.login-box>.muted{margin-bottom:25px}.login-footer{font-size:8px}.driver-page{padding:15px}.driver-card{padding:24px}.driver-buttons{flex-wrap:wrap}.driver-buttons .button{flex:1;font-size:12px}.driver-card h1{font-size:26px}.driver-map{height:210px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.route-controls{border-top:1px solid var(--line);padding:13px 0 4px;margin-top:10px;flex-shrink:0;max-height:48%;overflow:auto}.route-controls summary{font-size:12px;font-weight:600;cursor:pointer}.route-controls summary span{font-size:9px;font-weight:400;color:var(--muted);margin-left:8px}.route-controls form{padding-top:16px}.route-controls label{margin-bottom:12px}.route-controls input,.route-controls select{padding:8px}.route-actions{display:flex;gap:8px}.route-actions .button{font-size:11px;padding:8px 12px;min-height:35px}#route-status{font-size:10px;line-height:1.65;color:var(--muted);margin:10px 0 0}.maplibregl-popup-content{border-radius:10px;padding:16px}.maplibregl-ctrl-top-right{top:22px;right:15px}.map-top{right:75px}.maplibregl-ctrl-attrib{font-size:10px}.maplibregl-map{font-family:inherit}.fleet-pin{cursor:pointer}@media(max-width:760px){.route-controls{padding:10px 0;max-height:70%}.fleet-panel:has(.route-controls[open]){max-height:70%}.maplibregl-ctrl-top-right{top:10px;right:8px}.map-top{right:53px}.route-controls summary span{margin-left:12px}}

/* Font Awesome and PhotoGeoMap-style round car portraits. */
.rail-button{font-size:19px}.rail-bottom{font-size:19px}.button .fa-solid,.text-button .fa-solid{font-size:.95em}.car-photo-field>label{margin-bottom:10px}.photo-editor{display:flex;align-items:center;gap:13px;margin-bottom:20px}.car-photo-preview{width:76px;height:76px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#e8eee0;color:var(--green);border:3px solid white;box-shadow:0 2px 12px #203b361c;overflow:hidden;font-size:26px}.car-photo-preview img,.car-card-avatar img,.record-photo img,.photo-marker img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.photo-editor>div:last-child{min-width:0;flex:1}.photo-editor input[type=file]{font-size:10px;padding:8px;max-width:100%}.photo-editor .text-button{font-size:10px;padding:9px 0}.car-photo-field small{margin:0 0 18px!important}.photo-marker{width:54px;height:54px;background:#edf2e7;border:3px solid #fff;color:var(--green);font-size:22px;position:relative;box-shadow:0 5px 16px #172f3550,0 0 0 2px #235d4d33}.photo-marker.live{box-shadow:0 5px 16px #172f3550,0 0 0 3px #7b9a593b}.photo-marker.offline{background:#edf2e7;color:#7b877a;box-shadow:0 5px 16px #172f3550,0 0 0 2px #7b877a33}.photo-marker:after{content:'';width:12px;height:12px;position:absolute;right:-2px;bottom:0;background:#79a651;border:2px solid #fff;border-radius:50%}.photo-marker.offline:after{background:#98a195}.route-endpoint{width:28px;height:28px;font-size:11px}.car-card-avatar{width:30px;height:30px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#edf2e7;color:var(--green);flex-shrink:0}.car-row-top strong{flex:1}.record-photo{width:42px;height:42px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#edf2e7;color:var(--green);float:left;margin-right:12px}.driver-photo-form{margin:0 0 25px;padding-bottom:20px;border-bottom:1px solid var(--line)}.driver-photo-form label{margin-bottom:5px}.driver-photo-form input{font-size:12px}.driver-photo-form small{display:block;margin:0 0 10px}.assigned>.car-photo-preview{float:right;margin-left:10px}.map-art span .fa-solid{font-size:38px}.maplibregl-marker.photo-marker:focus-visible{outline:3px solid #86a963;outline-offset:3px}@media(max-width:760px){.photo-marker{width:48px;height:48px}.photo-editor input[type=file]{font-size:12px}.driver-photo-form .button{width:100%}}

.badge.waiting{background:#faf0dc;color:#8b6b2a}

.wake-panel{padding:17px;background:#f4f5ef;border:1px solid #e2e7db;border-radius:11px;margin:5px 0 20px}.wake-heading{display:flex;gap:9px;align-items:center;color:var(--green);font-size:12px}.wake-panel p{font-size:12px;line-height:1.7;margin:10px 0}.wake-panel small{display:block;font-size:10px;line-height:1.7;margin-top:10px}.wake-panel[data-state=active]{background:#edf4e1;border-color:#b6cc97}.wake-panel[data-state=blocked],.wake-panel[data-state=released],.wake-panel[data-state=unsupported]{background:#fff5e5;border-color:#e3c58f}.wake-panel .button{font-size:12px;min-height:38px;padding:8px 13px}

html[lang=zh-CN] h1,html[lang=zh-CN] h2{letter-spacing:0;line-height:1.4}html[lang=zh-CN] .eyebrow{letter-spacing:1px}html[lang=zh-CN] .login-story h1{font-size:clamp(36px,4.3vw,64px)}html[lang=zh-CN] .car-row-top{flex-wrap:wrap}html[lang=zh-CN] .badge{white-space:nowrap}@media(max-width:760px){html[lang=zh-CN] .login-story h1{font-size:35px}html[lang=zh-CN] .driver-card h1{font-size:25px}}

.file-picker{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 14px;margin:8px 0!important;background:#f1f5eb;border:1px solid #dce3da;border-radius:8px;color:var(--green);font-size:12px;overflow:hidden;cursor:pointer}.file-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}.file-picker:focus-within{outline:3px solid #8fba55;outline-offset:2px}
