:root{--pri:#1a73e8;--pri2:#e8f0fe;--bg:#f0f2f5;--card:#fff;--panel:#f8fafc;--text:#1a1a2e;--sub:#6b7280;--border:#e5e7eb;--red:#dc2626;--green:#16a34a;--orange:#ea580c;--blue:#2563eb;--purple:#7c3aed;--teal:#0d9488}
body.dark-mode{--pri:#4f8df7;--pri2:#172554;--bg:#0f172a;--card:#111827;--panel:#172033;--text:#e5e7eb;--sub:#9ca3af;--border:#334155;color-scheme:dark}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--text);display:flex;min-height:100vh}
.sidebar{width:220px;background:#1e293b;color:#fff;flex-shrink:0;display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:100}
.sidebar-header{padding:20px 16px;border-bottom:1px solid #334155;font-size:16px;font-weight:700;display:flex;align-items:center;gap:8px}
.sidebar-header .logo-img{width:28px;height:28px;object-fit:contain;flex-shrink:0}
.sidebar-nav{flex:1;overflow-y:auto;padding:8px 0;scrollbar-width:thin;scrollbar-color:#475569 #1e293b}
.sidebar-nav::-webkit-scrollbar{width:8px}
.sidebar-nav::-webkit-scrollbar-track{background:#1e293b}
.sidebar-nav::-webkit-scrollbar-thumb{background:#475569;border:2px solid #1e293b;border-radius:999px}
.sidebar-backdrop{display:none}
.nav-group{padding:0}
.nav-group-title{padding:12px 16px 4px;font-size:11px;text-transform:uppercase;color:#64748b;letter-spacing:1px}
.nav-item{display:flex;align-items:center;gap:8px;padding:10px 16px;cursor:pointer;color:#cbd5e1;font-size:13px;transition:all .15s;border-left:3px solid transparent}
.nav-item:hover{background:#334155;color:#fff}
.nav-item.active{background:#1a73e8;color:#fff;border-left-color:#60a5fa}
.nav-item .ico{font-size:16px;width:20px;text-align:center}
.nav-item .badge{background:#ef4444;color:#fff;font-size:10px;padding:1px 6px;border-radius:8px;margin-left:auto;min-width:20px;text-align:center}
.main{margin-left:220px;flex:1;display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0;overflow:hidden}
.topbar{background:var(--card);padding:12px 24px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;position:relative;z-index:80}
.topbar h2{font-size:18px;font-weight:600;position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap}
.topbar-actions{display:flex;gap:8px;align-items:center;margin-left:auto}
.topbar-actions #logoutBtn{order:999}
.mobile-menu-btn{display:none}
.content{flex:1;min-height:0;padding:20px 24px;overflow-y:auto;min-width:0;overflow-x:hidden;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch}
.content>*,.card,.dashboard-grid>*{min-width:0;max-width:100%}
.card{background:var(--card);border-radius:10px;box-shadow:0 1px 3px rgba(0,0,0,.06);padding:20px;margin-bottom:16px}
.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.card-header h3{font-size:15px;font-weight:600}
.contract-route-actions{display:flex;gap:8px;flex-wrap:wrap}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-bottom:20px}
.dashboard-top-stats{grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:10px}
.dashboard-top-stats .stat-card{min-width:0;padding:13px 12px;gap:9px}
.dashboard-top-stats .stat-icon{width:38px;height:38px;font-size:18px;flex:0 0 auto}
.dashboard-top-stats .stat-info{min-width:0;overflow:visible}
.dashboard-top-stats .stat-value{font-size:18px;white-space:nowrap}
.dashboard-top-stats .stat-value-money{max-width:100%;overflow:visible;text-overflow:clip;font-size:clamp(13px,1.15vw,18px);letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.dashboard-top-stats .stat-value-money.money-compact{font-size:clamp(12px,1vw,16px)}
.dashboard-top-stats .stat-label{line-height:1.25;word-break:keep-all;overflow-wrap:normal}
.stat-card{background:var(--card);border-radius:10px;padding:16px 20px;box-shadow:0 1px 3px rgba(0,0,0,.06);display:flex;align-items:center;gap:12px}
.stat-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px}
.stat-icon.blue{background:#dbeafe;color:#2563eb}
.stat-icon.green{background:#dcfce7;color:#16a34a}
.stat-icon.orange{background:#ffedd5;color:#ea580c}
.stat-icon.purple{background:#ede9fe;color:#7c3aed}
.stat-icon.red{background:#fee2e2;color:#dc2626}
.stat-info{flex:1}
.stat-value{font-size:22px;font-weight:700;line-height:1.2}
.stat-label{font-size:12px;color:var(--sub);margin-top:2px}
.receivable-summary-stats .stat-info{min-width:0}
.receivable-summary-stats .stat-value-money{font-size:clamp(15px,1.5vw,22px);white-space:nowrap;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;overscroll-behavior-y:auto;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}
.standard-filter-summary{grid-column:1/-1;min-width:0}
.order-filter-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:8px;width:100%}
.order-summary-chip{min-width:0;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--card);display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:3px 8px}
.order-summary-chip>span{color:var(--sub);font-size:11px;white-space:nowrap}.order-summary-chip>b{min-width:0;font-size:15px;text-align:right;white-space:nowrap}.order-summary-chip>small{grid-column:1/-1;color:var(--sub);font-size:10px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.order-summary-chip.summary-receivable{border-left:3px solid var(--orange)}.order-summary-chip.summary-payable{border-left:3px solid var(--blue)}.order-summary-chip.summary-commission{border-left:3px solid var(--green)}
.table-scroll-panel{max-height:68vh;overflow:auto;overscroll-behavior-y:auto;scrollbar-gutter:stable}
table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
th{position:sticky;top:0;z-index:3;background:#f8fafc;padding:10px 12px;text-align:left;font-weight:600;color:var(--sub);border-bottom:2px solid var(--border);white-space:nowrap;line-height:1.35;vertical-align:middle;box-shadow:0 1px 0 var(--border)}
td{padding:8px 12px;border-bottom:1px solid var(--border)}
tr:hover td{background:#f8fafc}
.table-actions-column,.table-actions-cell{width:188px;min-width:188px;max-width:188px}
.table-row-actions{display:flex;align-items:center;align-content:flex-start;flex-wrap:wrap;gap:4px;width:100%;max-width:100%}
.table-row-actions .btn,.table-row-actions button{flex:0 0 auto;margin:0;max-width:100%;white-space:nowrap}
.waybill-barcode-trigger{display:inline-flex;align-items:center;min-height:24px;padding:2px 5px;margin:-2px -5px;border-radius:5px;color:var(--pri);font-weight:600;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:crosshair;white-space:nowrap}
.waybill-barcode-trigger:hover,.waybill-barcode-trigger:focus-visible{background:var(--pri2);outline:none;text-decoration-style:solid}
.dispatch-waybill-id-col,.dispatch-waybill-created-col{min-width:0;overflow:hidden}
.dispatch-waybill-id-col{width:112px}
.dispatch-waybill-created-col{width:88px}
.dispatch-waybill-id-col .waybill-id-with-segment{display:block;max-width:100%;min-width:0}
.dispatch-waybill-id-col .waybill-barcode-trigger{display:inline;max-width:100%;padding:2px 0;margin:-2px 0;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.25}
.document-created-at{display:flex;min-width:0;flex-direction:column;gap:1px;white-space:nowrap;line-height:1.25;font-variant-numeric:tabular-nums}
.waybill-barcode-popover{display:none;position:fixed;z-index:650;width:min(300px,calc(100vw - 20px));padding:8px 10px 7px;border:1px solid #d1d5db;border-radius:9px;background:#fff;color:#111827;box-shadow:0 10px 28px rgba(15,23,42,.24);pointer-events:none;text-align:center;box-sizing:border-box}
.waybill-barcode-popover.show{display:block}
.waybill-barcode-popover-title{margin-bottom:3px;color:#4b5563;font-size:11px;font-weight:600}
.waybill-barcode-popover svg{display:block;width:100%;height:48px;background:#fff}
.waybill-barcode-popover-value{margin-top:2px;color:#111827;font-family:Consolas,"Courier New",monospace;font-size:13px;font-weight:700;letter-spacing:.04em;line-height:1.15;overflow-wrap:anywhere}
.waybill-barcode-popover-error{padding:20px 8px;color:#b91c1c;font-size:13px}
.hover-detail-trigger{display:inline-flex;align-items:center;max-width:100%;border-radius:5px;color:var(--pri);font-weight:600;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:help}
.hover-detail-trigger:hover,.hover-detail-trigger:focus-visible{background:var(--pri2);outline:none;text-decoration-style:solid}
.hover-detail-popover{display:none;position:fixed;z-index:660;width:min(430px,calc(100vw - 20px));max-height:min(520px,calc(100dvh - 20px));overflow:auto;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--text);box-shadow:0 14px 38px rgba(15,23,42,.28);font-size:12px;line-height:1.55}
.hover-detail-popover.show{display:block}
.hover-detail-popover h4{margin:0 0 8px;font-size:14px}
.hover-detail-popover-title{display:flex;align-items:center;gap:7px;min-width:0}.hover-detail-popover-title>span:first-child{flex:0 0 auto}.hover-detail-popover-title .vehicle-location-geofence-badge{max-width:190px;font-size:11px;font-weight:700}
.hover-detail-popover-section{padding:8px 0;border-top:1px solid var(--border)}
.hover-detail-popover-section:first-of-type{border-top:0;padding-top:0}
.hover-detail-popover-row{display:flex;justify-content:space-between;gap:12px;padding:3px 0}
.hover-detail-popover-row>span:first-child{color:var(--sub);flex:0 0 auto}
.hover-detail-popover-row>span:last-child{text-align:right;overflow-wrap:anywhere}
.hover-detail-popover-note{margin-top:6px;color:var(--sub)}
.btn{padding:6px 14px;border-radius:6px;border:none;cursor:pointer;font-size:13px;font-weight:500;display:inline-flex;align-items:center;gap:4px;transition:all .15s}
.btn-sm{padding:4px 10px;font-size:12px}
.btn-pri{background:var(--pri);color:#fff}
.btn-pri:hover{background:#1d5fd6}
.btn-out{background:#fff;border:1px solid var(--border);color:var(--text)}
.btn-out:hover{background:var(--pri2)}
.btn-green{background:var(--green);color:#fff}
.btn-red{background:var(--red);color:#fff}
.btn-orange{background:var(--orange);color:#fff}
.btn-xs{padding:2px 8px;font-size:11px}
.payables-compact-table .table-wrap{max-height:calc(100dvh - 250px);overflow:auto;scrollbar-gutter:stable}
.payables-compact-table table{min-width:0;font-size:12px;table-layout:fixed}
.payables-compact-table th{padding:7px 8px;line-height:1.25}
.payables-compact-table td{padding:6px 8px;line-height:1.3;vertical-align:middle;white-space:nowrap}
.payable-row-actions{display:flex;flex-wrap:wrap;gap:3px 4px;align-items:center;min-width:0}
.payable-row-actions .btn{margin:0;padding:2px 6px;line-height:1.35;white-space:nowrap}
.badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:500}
.badge-blue{background:#dbeafe;color:#1e40af}
.badge-green{background:#dcfce7;color:#166534}
.badge-orange{background:#ffedd5;color:#9a3412}
.badge-red{background:#fee2e2;color:#991b1b}
.badge-gray{background:#f3f4f6;color:#6b7280}
.badge-purple{background:#ede9fe;color:#5b21b6}
.badge-teal{background:#ccfbf1;color:#115e59}
.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;min-width:0;max-width:100%}
.form-grid>*,.form-group{min-width:0;max-width:100%}
.form-group{display:flex;flex-direction:column;gap:4px}
.form-group label{font-size:12px;font-weight:500;color:var(--sub)}
.form-group input,.form-group select,.form-group textarea{width:100%;min-width:0;max-width:100%;padding:8px 10px;border:1px solid var(--border);border-radius:6px;font-size:13px;font-family:inherit;transition:border .15s}
input:not([type]),input[type="text"],input[type="number"],input[type="search"],input[type="tel"],input[type="email"],input[type="password"],input[type="url"],textarea{color:var(--text)!important;-webkit-text-fill-color:var(--text)!important;caret-color:var(--text)!important;cursor:text}
input:not([type])::placeholder,input[type="text"]::placeholder,input[type="number"]::placeholder,input[type="search"]::placeholder,input[type="tel"]::placeholder,input[type="email"]::placeholder,input[type="password"]::placeholder,input[type="url"]::placeholder,textarea::placeholder{-webkit-text-fill-color:var(--sub);color:var(--sub);opacity:.75}
.form-group input[type="checkbox"],.form-group input[type="radio"]{display:block;box-sizing:border-box;flex:0 0 18px;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;margin:2px 0 0;border-radius:3px;accent-color:var(--pri);box-shadow:none}
.form-check-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.form-check-line{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;width:max-content;max-width:100%;font-size:13px!important;font-weight:700!important;color:var(--text)!important;cursor:pointer}
.form-check-line input[type="checkbox"]{display:block;flex:0 0 16px;width:16px!important;min-width:16px!important;max-width:16px!important;height:16px;margin:0;padding:0;accent-color:var(--pri);cursor:pointer}
.form-check-field .field-hint{margin:0;padding-left:24px;color:var(--sub);font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.form-group select{overflow:hidden;text-overflow:ellipsis}
.form-group input[type="datetime-local"]{min-height:38px;line-height:normal;letter-spacing:0;font-variant-numeric:tabular-nums}
.form-group input[type="datetime-local"]::-webkit-datetime-edit{padding:0}
.form-group input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper{padding:0}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--pri);box-shadow:0 0 0 2px var(--pri2)}
.date-value-input{display:none!important}
.date-segmented-control{display:inline-flex;align-items:center;min-width:168px;max-width:100%;min-height:38px;padding:0 0 0 6px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--text);font-variant-numeric:tabular-nums;overflow:hidden;transition:border .15s,box-shadow .15s}
.form-group .date-segmented-control,.standard-filter-field .date-segmented-control{width:100%;min-width:0}
.date-segmented-control:focus-within{border-color:var(--pri);box-shadow:0 0 0 2px var(--pri2)}
.date-segmented-control.date-input-invalid{border-color:var(--red);box-shadow:0 0 0 2px rgba(220,38,38,.12)}
.date-segmented-control input.date-segment{width:auto!important;min-width:0!important;min-height:34px!important;padding:6px 2px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--text)!important;text-align:center;font:inherit;font-size:13px!important;box-shadow:none!important;outline:none!important}
.date-segmented-control input.date-segment{-webkit-text-fill-color:var(--text)!important;caret-color:var(--text)!important;cursor:text}
.date-segmented-control input.date-segment-year{width:4.7em!important}
.date-segmented-control input.date-segment-month,.date-segmented-control input.date-segment-day{width:2.7em!important}
.datetime-segmented-control{min-width:0;overflow:hidden}
.datetime-segmented-control input.date-segment-year{width:3.9em!important}
.datetime-segmented-control input.date-segment-month,.datetime-segmented-control input.date-segment-day,.datetime-segmented-control input.date-segment-hour,.datetime-segmented-control input.date-segment-minute{width:2em!important}
.datetime-segmented-control .date-time-divider{width:5px}
.datetime-segmented-control .date-picker-trigger{flex-basis:38px;min-width:38px}
.date-segmented-control input.date-segment::placeholder{color:var(--sub);opacity:.7}
.date-segment-separator{flex:0 0 auto;color:var(--sub);font-size:13px;line-height:1;user-select:none}
.date-picker-trigger{position:relative;display:inline-flex;align-items:center;justify-content:center;align-self:stretch;flex:0 0 40px;min-width:40px;margin-left:auto;border-left:1px solid var(--border);border-radius:0 5px 5px 0;color:var(--sub);cursor:pointer;overflow:hidden;touch-action:manipulation}
.date-picker-trigger:hover{color:var(--pri);background:var(--pri2)}
.date-picker-trigger:focus-visible{color:var(--pri);background:var(--pri2);outline:2px solid var(--pri);outline-offset:-2px}
.date-picker-trigger:before{content:"";width:14px;height:13px;border:1.5px solid currentColor;border-radius:2px;background:linear-gradient(currentColor,currentColor) 0 3px/100% 1.5px no-repeat;box-sizing:border-box}
.date-picker-trigger:after{content:"";position:absolute;top:8px;left:15px;width:2px;height:2px;border-radius:50%;background:currentColor;box-shadow:4px 0 currentColor,8px 0 currentColor,0 4px currentColor,4px 4px currentColor,8px 4px currentColor;pointer-events:none}
.date-picker-trigger input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;opacity:0!important;cursor:pointer;pointer-events:none!important}
.quick-route-picker{position:relative;width:100%;min-width:0}
.quick-route-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;min-height:38px;padding:8px 10px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--text);font:inherit;font-size:13px;text-align:left;cursor:pointer}
.quick-route-trigger:hover,.quick-route-trigger:focus-visible{border-color:var(--pri);box-shadow:0 0 0 2px var(--pri2);outline:none}
.quick-route-trigger-text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quick-route-trigger-arrow{flex:0 0 auto;color:var(--sub);font-size:11px;transition:transform .15s}
.quick-route-picker.open .quick-route-trigger-arrow{transform:rotate(180deg)}
.quick-route-menu{display:none;position:fixed;z-index:360;max-height:min(52vh,430px);overflow-y:auto;overscroll-behavior:contain;padding:3px 0;border:1px solid #cbd5e1;border-radius:7px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.24)}
.quick-route-picker.open .quick-route-menu{display:block}
.quick-route-option{display:block;width:100%;padding:7px 12px;border:0;border-radius:0;background:#fff;color:#111827!important;-webkit-text-fill-color:#111827!important;font:inherit;font-size:13px;line-height:1.35;text-align:left;white-space:normal;cursor:pointer}
.quick-route-option:hover,.quick-route-option:focus,.quick-route-option:focus-visible{background:#dbeafe!important;color:#111827!important;-webkit-text-fill-color:#111827!important;outline:none}
body.dark-mode .date-segmented-control{background:#0b1220;border-color:var(--border)}
.form-group textarea{resize:vertical;min-height:60px}
.form-full{grid-column:1/-1}
.tabs{display:flex;gap:2px;margin-bottom:16px;background:#f3f4f6;border-radius:8px;padding:3px}
.tab{padding:8px 16px;border-radius:6px;cursor:pointer;font-size:13px;font-weight:500;color:var(--sub);transition:all .15s}
.tab:hover{color:var(--text)}
.tab.active{background:#fff;color:var(--pri);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.src-toggle{display:flex;gap:0;margin-bottom:12px;border-radius:8px;overflow:hidden;border:1px solid var(--border)}
.src-btn{flex:1;padding:8px 16px;border:none;cursor:pointer;font-size:13px;font-weight:500;background:#f8fafc;color:var(--sub);transition:all .15s}
.src-btn.active{background:var(--pri);color:#fff}
.info-row{display:flex;flex-wrap:wrap;gap:4px 16px;padding:8px 12px;background:var(--pri2);border-radius:6px;margin-bottom:12px;font-size:12px}
.info-row span{color:var(--sub)}
.info-row b{color:var(--text)}
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:200;justify-content:center;align-items:center}
.modal-overlay.show{display:flex}
.modal{background:var(--card);border-radius:12px;width:90%;max-width:min(750px,calc(100vw - 24px));min-width:0;max-height:85vh;max-height:85dvh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.2)}
.modal-header,.modal-body,.modal-footer{min-width:0;max-width:100%}
.modal-header h3{min-width:0;overflow-wrap:anywhere}
.modal-order-form .modal-body{overflow-x:hidden}
.modal.modal-wide{width:min(94vw,1080px);max-width:1080px}
.modal.modal-vip-detail{width:min(96vw,1400px);max-width:1400px;height:78vh;max-height:78vh;overflow:hidden;display:flex;flex-direction:column}
.modal-vip-detail .modal-header,.modal-vip-detail .modal-footer{flex:0 0 auto}
.modal-vip-detail .modal-body{flex:1 1 auto;min-height:0;overflow:auto;padding:16px 18px;scrollbar-gutter:stable}
.modal-vip-detail .vip-detail-table{height:auto;min-height:0}
.modal-vip-detail .modal-body>.vip-detail-table{overflow:visible}
.modal-vip-detail .modal-body>.vip-detail-table th{top:-16px;z-index:8;background:var(--card);box-shadow:0 2px 0 var(--border)}
.modal.modal-expense-detail{width:min(92vw,1100px);max-width:1100px;height:min(86vh,900px);height:min(86dvh,900px);max-height:86vh;max-height:86dvh}
.expense-detail{display:grid;gap:12px;min-width:0}
.expense-detail>.dashboard-drill-summary{margin-bottom:0}
.expense-detail-section{min-width:0;padding:13px;border:1px solid var(--border);border-radius:10px;background:var(--panel)}
.expense-detail-section-title{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:0 0 10px;font-size:14px;font-weight:700;color:var(--text)}
.expense-detail-section-title span{color:var(--sub);font-size:11px;font-weight:400;line-height:1.5}
.expense-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}
.expense-detail-field{min-width:0;padding:9px 10px;border:1px solid var(--border);border-radius:7px;background:var(--card)}
.expense-detail-field.is-wide{grid-column:1/-1}
.expense-detail-field b{display:block;margin-bottom:4px;color:var(--sub);font-size:11px;line-height:1.35}
.expense-detail-field span{display:block;color:var(--text);font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.expense-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.expense-detail-section>.table-wrap,.expense-detail-section>.vip-detail-table{max-height:320px;margin:0;overflow:auto;border:1px solid var(--border);border-radius:8px;background:var(--card)}
.expense-detail-section>.table-wrap table,.expense-detail-section>.vip-detail-table table{margin:0}
.expense-detail-section>.driver-empty,.expense-detail-section>.empty{margin:0;padding:22px 12px;border:1px dashed var(--border);border-radius:8px;background:var(--card)}
.expense-detail-section .waybill-flow-hint{margin-bottom:0}
.modal.modal-approval-review{width:min(94vw,980px);max-width:980px;height:min(88vh,880px);height:min(88dvh,880px);max-height:88vh;max-height:88dvh}
.modal-approval-review .modal-body{overflow:auto;padding:16px 18px;background:var(--panel)}
.approval-review{display:grid;gap:12px;min-width:0}
.approval-review-section{min-width:0;padding:13px;border:1px solid var(--border);border-radius:10px;background:var(--card)}
.approval-review-section.is-change{border-color:#93c5fd;background:#eff6ff}
.approval-review-section.is-impact{border-color:#fcd34d;background:#fffbeb}
.approval-review-section.is-result{border-color:#86efac;background:#f0fdf4}
.approval-review-title{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:0 0 10px;color:var(--text);font-size:14px;font-weight:700}
.approval-review-title span{color:var(--sub);font-size:11px;font-weight:400;line-height:1.45}
.approval-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.approval-review-field{min-width:0;padding:8px 10px;border:1px solid var(--border);border-radius:7px;background:var(--panel)}
.approval-review-field.is-wide{grid-column:1/-1}
.approval-review-field b{display:block;margin-bottom:4px;color:var(--sub);font-size:11px;line-height:1.35}
.approval-review-field span{display:block;color:var(--text);font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.approval-change-grid{display:grid;grid-template-columns:1fr 36px 1fr;gap:10px;align-items:stretch}
.approval-change-card{min-width:0;padding:11px;border:1px solid var(--border);border-radius:8px;background:var(--card)}
.approval-change-card.is-after{border-color:#60a5fa;box-shadow:inset 3px 0 #2563eb}
.approval-change-label{margin-bottom:7px;color:var(--sub);font-size:11px;font-weight:700}
.approval-change-route{color:var(--text);font-size:15px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
.approval-change-meta{margin-top:6px;color:var(--sub);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.approval-change-arrow{display:flex;align-items:center;justify-content:center;color:#2563eb;font-size:22px;font-weight:700}
.approval-impact-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.approval-impact-list li{position:relative;padding-left:18px;color:var(--text);font-size:12px;line-height:1.55}
.approval-impact-list li:before{content:"✓";position:absolute;left:0;top:0;color:#059669;font-weight:800}
.approval-review-warning{padding:10px 12px;border:1px solid #f59e0b;border-radius:8px;background:#fff7ed;color:#9a3412;font-size:12px;line-height:1.55}
.approval-review-source{color:var(--sub);font-size:11px;line-height:1.45}
.approval-decision-area{padding:13px;border:1px solid var(--border);border-radius:10px;background:var(--card)}
.approval-decision-area .form-group{margin:0 0 10px}
body.dark-mode .approval-review-section.is-change{background:#10213e;border-color:#1d4ed8}
body.dark-mode .approval-review-section.is-impact{background:#332711;border-color:#a16207}
body.dark-mode .approval-review-section.is-result{background:#102b20;border-color:#15803d}
body.dark-mode .approval-review-warning{background:#3a2412;border-color:#d97706;color:#fed7aa}
.modal-dashboard-drill .modal-body{padding-bottom:max(18px,env(safe-area-inset-bottom))}
.modal-dashboard-drill .vip-detail-table{height:auto;min-height:0;overflow:visible}
.modal.modal-message-center{width:min(92vw,680px);height:min(76vh,720px);max-height:76vh;overflow:hidden;display:flex;flex-direction:column}
.modal.modal-geofence-summary{width:min(94vw,1000px);height:min(78vh,760px);max-height:78vh}
.modal-message-center .modal-header,.modal-message-center .modal-footer{flex:0 0 auto}
.modal-message-center .modal-body{flex:1 1 auto;min-height:0;overflow:hidden;padding:0;display:flex;flex-direction:column}
.message-center-list{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:8px 14px 16px;-webkit-overflow-scrolling:touch}
.message-center-page-list{height:auto;overflow:visible;padding:0}
.message-center-summary{padding:11px 14px;border-bottom:1px solid var(--border);font-size:12px;color:var(--sub);background:var(--pri2)}
.message-list-item{position:relative;display:block;width:100%;min-height:78px;padding:13px 14px 13px 20px;border:0;border-bottom:1px solid var(--border);background:var(--card);color:var(--text);text-align:left;font:inherit;cursor:pointer}
.message-list-item:hover{background:var(--pri2)}
.message-list-item.unread:before{content:"";position:absolute;left:7px;top:20px;width:7px;height:7px;border-radius:50%;background:var(--red)}
.message-list-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:700;line-height:1.4}
.message-list-title>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-list-preview{margin-top:5px;color:var(--sub);font-size:12px;line-height:1.45;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.message-list-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;color:var(--sub);font-size:11px;line-height:1.35}
.message-list-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--sub);padding:30px;text-align:center}
.modal.modal-message-detail{width:min(92vw,680px);max-height:82vh}
.message-detail-body{display:grid;gap:12px}
.geofence-action-note{padding:10px 12px;border:1px solid var(--border);border-left:3px solid #d97706;border-radius:7px;background:var(--panel)}
.geofence-action-note-head{display:flex;align-items:center;gap:8px;margin-bottom:5px}
.geofence-action-note-label{color:var(--sub);font-size:11px;font-weight:600;letter-spacing:.04em}
.geofence-action-note-status{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#ffedd5;color:#9a3412;font-size:11px;font-weight:700;line-height:1.35}
.geofence-action-note-text{color:var(--text);font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.geofence-popup-hint{padding:10px 12px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#475569;font-size:12px;line-height:1.55}
.geofence-summary-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:12px 14px;border-bottom:1px solid var(--border);background:var(--panel)}
.geofence-summary-stat{min-width:0;padding:10px 11px;border:1px solid var(--border);border-radius:8px;background:var(--card)}
.geofence-summary-stat small{display:block;color:var(--sub);font-size:11px;line-height:1.35}
.geofence-summary-stat b{display:block;margin-top:3px;color:var(--text);font-size:16px;line-height:1.2}
.geofence-summary-list{flex:1 1 auto;min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain;padding:8px 14px 14px;-webkit-overflow-scrolling:touch}
.geofence-summary-item{display:grid;grid-template-columns:112px minmax(100px,.8fr) minmax(180px,1.35fr) minmax(160px,1.2fr) auto;gap:8px;align-items:center;width:100%;padding:8px 9px;border:0;border-bottom:1px solid var(--border);background:var(--card);color:var(--text);font-family:inherit;font-size:12px;line-height:1.3;text-align:left;cursor:pointer}
.geofence-summary-item:hover{background:var(--pri2)}
.geofence-summary-item b,.geofence-summary-item span{min-width:0;overflow-wrap:anywhere}
.geofence-summary-item b{font-size:12px;line-height:1.3}
.geofence-summary-item small{display:block;margin-top:2px;color:var(--sub);font-size:10.5px;line-height:1.35}
.geofence-summary-empty{padding:32px 16px;color:var(--sub);text-align:center}
body.dark-mode .geofence-popup-hint{border-color:#1d4ed8;background:#172554;color:#cbd5e1}
body.dark-mode .geofence-action-note-status{background:#4a2b16;color:#fdba74}
@media(max-width:600px){
 .modal.modal-geofence-summary{width:100%;height:calc(100vh - max(8px,env(safe-area-inset-top)));height:calc(100dvh - max(8px,env(safe-area-inset-top)));max-height:calc(100vh - max(8px,env(safe-area-inset-top)));max-height:calc(100dvh - max(8px,env(safe-area-inset-top)));border-radius:14px 14px 0 0;align-self:flex-end}
 .geofence-summary-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 10px}
 .geofence-summary-stat{padding:7px 8px}
 .geofence-summary-stat small{font-size:10px}
 .geofence-summary-stat b{font-size:15px}
 .geofence-summary-list{padding:4px 10px 12px;overflow-x:hidden}
 .geofence-summary-item{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;padding:11px 8px}
 .geofence-summary-item>span:nth-child(5){grid-column:1/-1;justify-self:start}
}
.table-row-clickable{cursor:pointer}
.table-row-clickable:hover td{background:var(--pri2)}
.dispatch-order-selected td{background:#dbeafe!important;box-shadow:inset 0 1px #93c5fd,inset 0 -1px #93c5fd}
body.dark-mode .dispatch-order-selected td{background:#18345a!important;box-shadow:inset 0 1px #3b82f6,inset 0 -1px #3b82f6}
.dashboard-drill-summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.dashboard-drill-chip{padding:7px 10px;border-radius:7px;background:var(--pri2);font-size:12px;color:var(--sub)}
.dashboard-drill-chip b{color:var(--text)}
.dashboard-drill-task{line-height:1.45}
.dashboard-drill-task strong{display:block;color:var(--text)}
.dashboard-drill-task span{display:block;color:var(--sub);font-size:11px;margin-top:2px}
.dashboard-waybill-statuses{display:flex;flex-wrap:wrap;gap:8px}
.dashboard-waybill-status{padding:6px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;color:#475569;font:inherit;font-size:12px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.dashboard-waybill-status b{color:#0f172a}
.dashboard-waybill-status:hover{background:#eff6ff;border-color:#93c5fd;transform:translateY(-1px)}
.dashboard-waybill-status:focus-visible{outline:2px solid var(--pri);outline-offset:2px}
.dashboard-birthday-card.has-reminders{border:2px solid #f59e0b}
.dashboard-birthday-list{font-size:12px;max-height:220px;overflow-y:auto}
.dashboard-birthday-row{background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;padding:7px 10px;margin-bottom:5px;display:flex;justify-content:space-between;gap:10px;align-items:center;color:#9a3412}
.dashboard-birthday-row.is-today{background:#fef3c7;border-color:#fcd34d}
.dashboard-birthday-person{min-width:0;color:#9a3412}
.dashboard-birthday-person b{color:#7c2d12}
.dashboard-birthday-date{color:#b45309;font-weight:700;white-space:nowrap}
.dashboard-stop-alert{flex:1;min-width:108px;text-align:center;border-radius:8px;padding:12px;cursor:pointer;transition:transform .15s,box-shadow .15s;background:#dcfce7}
.dashboard-stop-alert:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(15,23,42,.08)}
.dashboard-stop-alert .dashboard-stop-alert-count{font-size:24px;font-weight:700;color:var(--green)}
.dashboard-stop-alert.is-warning{background:#ffedd5}
.dashboard-stop-alert.is-warning .dashboard-stop-alert-count{color:var(--orange)}
.dashboard-stop-alert.is-severe{background:#fee2e2}
.dashboard-stop-alert.is-severe .dashboard-stop-alert-count{color:var(--red)}
.dashboard-stop-alert-label{font-size:12px;color:var(--sub);line-height:1.35}
.modal.modal-stop-alerts{width:96vw;max-width:min(1320px,calc(100vw - 24px));height:82vh;max-height:82vh;overflow:hidden;display:flex;flex-direction:column}
.modal-stop-alerts .modal-header,.modal-stop-alerts .modal-footer{flex:0 0 auto}
.modal-stop-alerts .modal-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;padding:14px 18px}
.stop-alert-tabs{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;width:100%;min-height:36px;gap:8px;margin:0 0 12px;position:static;background:var(--card);padding:0}
.stop-alert-tab{border:1px solid var(--border);background:var(--panel);color:var(--sub);border-radius:7px;padding:7px 13px;cursor:pointer;font:inherit;font-size:13px}
.stop-alert-tab.active{background:var(--pri);border-color:var(--pri);color:#fff;font-weight:700}
.modal-stop-alerts .dashboard-drill-summary{position:static;clear:both;width:100%;margin:0 0 12px}
.stop-alert-filters{display:grid;grid-template-columns:minmax(145px,160px) minmax(145px,160px) minmax(125px,180px) minmax(150px,1fr) auto;align-items:stretch;width:100%;max-width:100%;gap:8px;margin:0 0 12px}
.stop-alert-filters>*,.stop-alert-filters input,.stop-alert-filters select,.stop-alert-filters .date-segmented-control{min-width:0;max-width:100%}
.modal-stop-alerts .empty{padding:28px 12px}
.modal-stop-alerts .empty .icon{font-size:24px;line-height:1;margin-bottom:8px}
.stop-alert-type{font-weight:700;white-space:nowrap}
.stop-alert-type.outside{color:#c2410c}.stop-alert-type.customer{color:#b91c1c}
.stop-alert-interrupted{display:inline-block;margin-left:5px;padding:2px 6px;border-radius:10px;background:#fef3c7;color:#92400e;font-size:10px}
.stop-alert-duration{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}
body.dark-mode .dashboard-stop-alert{background:#183a2b}
body.dark-mode .dashboard-stop-alert.is-warning{background:#3b2a18}
body.dark-mode .dashboard-stop-alert.is-severe{background:#3f1d24}
@media(max-width:720px){.modal.modal-stop-alerts{width:96%;max-width:calc(100vw - 12px);height:90vh;max-height:90vh}.stop-alert-filters{grid-template-columns:1fr}.stop-alert-filters .stop-alert-keyword{grid-column:auto}.stop-alert-filters .btn{width:100%}}
.report-filter-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.report-filter-bar label{font-size:12px;color:var(--sub)}
.vip-detail-table{height:100%;overflow:auto}
.vip-detail-table table{table-layout:fixed;min-width:0}
.vip-detail-table th{position:sticky;top:0;z-index:4;padding:9px 8px;background:#f8fafc;white-space:normal;word-break:keep-all;overflow-wrap:normal}
.vip-detail-table td{padding:9px 8px;vertical-align:top;word-break:normal;overflow-wrap:anywhere}
.vip-detail-primary{font-weight:700;color:var(--text);line-height:1.35}
.vip-detail-meta{font-size:11px;color:var(--sub);line-height:1.45;margin-top:3px}
.vip-detail-pair{line-height:1.45}
.vip-detail-pair+.vip-detail-pair{margin-top:4px;color:var(--sub)}
.vip-detail-label{display:inline-block;min-width:20px;color:var(--sub);font-size:11px}
.modal-header{padding:10px 16px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;position:relative;background:var(--card);z-index:1;flex:0 0 auto}
.modal-header h3{font-size:16px;font-weight:600;line-height:1.35}
.modal-body{padding:20px;flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.modal-footer{position:static;padding:12px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px;background:var(--card);flex:0 0 auto}
.close-btn{background:none;border:none;font-size:22px;cursor:pointer;color:var(--sub);padding:4px}
.close-btn:hover{color:var(--text)}
.flow-btns{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dashboard-grid .card{margin-bottom:0}
@media(max-width:1024px){.dashboard-grid{grid-template-columns:1fr}}
@media(min-width:1281px){
 #mobileMenuBtn{display:none!important}
}
@media(min-width:769px){
 .topbar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 10px;padding:10px 16px}
 .topbar h2{grid-column:2;grid-row:1;position:static;left:auto;transform:none;justify-self:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:17px}
 .topbar-actions{grid-column:1/-1;grid-row:2;width:100%;margin-left:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
 .topbar-actions #currentTime{margin-right:auto;align-self:center;white-space:nowrap}
 .topbar-actions .btn{white-space:nowrap;line-height:1.2}
}
@media(max-width:0px){
 body{display:block;min-width:0}
 .sidebar{width:260px;transform:translateX(-100%);transition:transform .2s ease;box-shadow:12px 0 30px rgba(15,23,42,.22)}
 .sidebar.mobile-open{transform:translateX(0)}
 .sidebar-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:90}
 .sidebar-backdrop.show{display:block}
 .main{margin-left:0;width:100%;height:100vh;height:100dvh;min-height:0;overflow:hidden}
 .mobile-menu-btn{display:inline-flex!important}
 .content{padding:16px}
 .topbar-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch}
 .topbar-actions #currentTime{margin-right:0;display:flex;align-items:center;justify-content:center;text-align:center}
 .topbar-actions #currentUserBadge{display:flex;align-items:center;justify-content:center;min-width:0;text-align:center}
 .topbar-actions .btn{justify-content:center;min-width:0;white-space:normal}
 .dashboard-top-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
 .dashboard-top-stats .stat-card{min-height:66px;padding:12px 10px;gap:8px}
 .dashboard-top-stats .stat-icon{width:36px;height:36px;font-size:17px}
 .dashboard-top-stats .stat-info{min-width:0}
 .dashboard-top-stats .stat-value{font-size:17px}
 .dashboard-top-stats .stat-label{font-size:11px;overflow-wrap:anywhere}
 .weigh-ledger-filter-bar .standard-filter-actions{grid-column:1/-1;min-width:0;flex-wrap:wrap;justify-content:flex-end}
 #weighLedgerTable table{min-width:980px}
}
@media(min-width:961px) and (max-width:1500px){
 .dashboard-top-stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
 .dashboard-top-stats .stat-card{padding:11px 8px;gap:7px}
 .dashboard-top-stats .stat-icon{width:34px;height:34px;font-size:16px}
 .dashboard-top-stats .stat-value{font-size:16px}
 .dashboard-top-stats .stat-label{font-size:10px;word-break:keep-all;overflow-wrap:normal}
}
@media(max-width:0px){
 body{display:block;min-width:0}
 .sidebar{width:260px;transform:translateX(-100%);transition:transform .2s ease;box-shadow:12px 0 30px rgba(15,23,42,.22)}
 .sidebar.mobile-open{transform:translateX(0)}
 .sidebar-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:90}
 .sidebar-backdrop.show{display:block}
 .main{margin-left:0;width:100%;height:100vh;height:100dvh;min-height:0;overflow:hidden}
 .mobile-menu-btn{display:inline-flex}
 .topbar{display:flex;position:relative;top:auto;z-index:80;padding:10px 12px;align-items:flex-start;gap:8px;flex-wrap:wrap}
 .topbar h2{font-size:17px;line-height:1.2;min-width:120px;flex:1;position:static;transform:none;white-space:normal}
 .topbar-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .topbar-actions .btn{justify-content:center;padding:7px 6px;font-size:12px;white-space:normal;line-height:1.15}
 .topbar-actions #currentTime{grid-column:1/-1;display:block;margin-right:0;align-self:auto;justify-self:auto;text-align:left}
 .content{padding:12px}
 .card{padding:14px;border-radius:8px}
 .card-header{align-items:flex-start;gap:8px;flex-wrap:wrap}
 .stats-grid{grid-template-columns:1fr;gap:10px}
 .dashboard-top-stats{grid-template-columns:1fr}
 .dashboard-top-stats .stat-card{min-height:0;padding:14px;gap:12px}
 .dashboard-top-stats .stat-icon{width:44px;height:44px;font-size:20px}
 .dashboard-top-stats .stat-value{font-size:22px}
 .dashboard-top-stats .stat-value-money{font-size:clamp(18px,5.4vw,22px)}
 .dashboard-top-stats .stat-value-money.money-compact{font-size:clamp(16px,4.8vw,20px)}
 .dashboard-top-stats .stat-label{font-size:12px}
 .stat-card{padding:14px}
 .dashboard-grid{grid-template-columns:1fr}
 .form-grid{grid-template-columns:1fr}
 .search-bar{flex-direction:column}
 .table-wrap{margin:0 -4px;padding-bottom:4px;overflow-x:auto;-webkit-overflow-scrolling:touch}
 table{min-width:720px}
 #weighLedgerTable table{min-width:720px}
 .modal{width:96%;max-height:88vh;max-height:88dvh;border-radius:10px}
 .modal.modal-vip-detail{width:96%;height:88vh;max-height:88vh}
 .modal.modal-dashboard-drill{height:88vh;height:88dvh;max-height:88vh;max-height:88dvh}
 .modal.modal-message-center{width:100%;height:82vh;height:82dvh;max-height:82vh;max-height:82dvh;border-radius:14px 14px 0 0;align-self:flex-end}
 .modal-message-center .modal-body{padding:0}
 .message-center-list{padding:4px 0 12px}
 .message-list-item{min-height:84px;padding:14px 14px 14px 22px}
 .message-list-title{font-size:15px}
 .message-list-preview{font-size:13px}
 .modal.modal-message-detail{width:100%;max-height:86vh;max-height:86dvh;border-radius:14px 14px 0 0;align-self:flex-end}
 .vip-detail-table table{min-width:820px}
 .modal-body{padding:14px}
 .modal-footer{position:static;background:var(--card);flex-wrap:wrap;padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .modal-dashboard-drill .modal-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:max(20px,env(safe-area-inset-bottom))}
 .modal-dashboard-drill .vip-detail-table table,.modal-dashboard-drill .vip-detail-table tbody,.modal-dashboard-drill .vip-detail-table tr,.modal-dashboard-drill .vip-detail-table td{display:block;width:100%;min-width:0}
 .modal-dashboard-drill .vip-detail-table thead{display:none}
 .modal-dashboard-drill .vip-detail-table tbody{display:grid;gap:10px}
 .modal-dashboard-drill .vip-detail-table tr{padding:7px 11px;border:1px solid var(--border);border-radius:10px;background:var(--card);box-shadow:0 1px 2px rgba(15,23,42,.05)}
 .modal-dashboard-drill .vip-detail-table td{display:grid;grid-template-columns:minmax(88px,34%) minmax(0,1fr);gap:10px;padding:8px 0;border-bottom:1px dashed var(--border);background:transparent!important;white-space:normal;overflow-wrap:anywhere}
 .modal-dashboard-drill .vip-detail-table td:last-child{border-bottom:0}
 .modal-dashboard-drill .vip-detail-table td[data-label]:before{content:attr(data-label);color:var(--sub);font-size:11px;font-weight:700;line-height:1.45}
 .modal-dashboard-drill .vip-detail-table td[colspan]{display:block;text-align:center!important}
 .archive-timeline-table table,.archive-timeline-table tbody,.archive-timeline-table .archive-timeline-row,.archive-timeline-table .archive-timeline-row td{display:block;width:100%;min-width:0}
 .archive-timeline-table thead{display:none}
 .archive-timeline-table .archive-timeline-row{margin-bottom:9px;padding:7px 10px;border:1px solid var(--border);border-radius:9px;background:var(--card)}
 .archive-timeline-table .archive-timeline-row td{display:grid;grid-template-columns:minmax(82px,32%) minmax(0,1fr);gap:8px;padding:6px 0;border-bottom:1px dashed var(--border);white-space:normal}
 .archive-timeline-table .archive-timeline-row td:last-child{border-bottom:0}
 .archive-timeline-table .archive-timeline-row td[data-label]:before{content:attr(data-label);color:var(--sub);font-size:11px;font-weight:700}
 .archive-timeline-table .archive-timeline-detail-row.is-open{display:block;margin:-5px 0 10px}
 .archive-timeline-table .archive-timeline-detail-row>td{display:block;width:100%}
 .vip-cust-grid{grid-template-columns:repeat(2,1fr)}
 .toast-container{left:12px;right:12px;top:12px}
 .toast{min-width:0;width:100%}
 .login-card input,.login-card select,.form-group input,.form-group select,.form-group textarea,.search-bar input,.standard-filter-field input,.standard-filter-field select{font-size:16px}
}
.toast-container{position:fixed;top:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:8px}
.toast{padding:12px 20px;border-radius:8px;color:#fff;font-size:13px;font-weight:500;box-shadow:0 4px 12px rgba(0,0,0,.15);animation:slideIn .3s ease;min-width:250px}
.toast-success{background:#16a34a}
.toast-error{background:#dc2626}
.toast-info{background:#2563eb}
@keyframes slideIn{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes notificationPulse{0%,100%{background:#dc2626;box-shadow:0 0 0 0 rgba(220,38,38,.5)}50%{background:#ef4444;box-shadow:0 0 0 7px rgba(220,38,38,0)}}
.notification-unread{color:#fff!important;border-color:#dc2626!important;animation:notificationPulse 1.15s infinite}
.empty{padding:40px;text-align:center;color:var(--sub);font-size:14px}
.empty .icon{font-size:48px;margin-bottom:12px}
.search-bar{display:flex;gap:8px;margin-bottom:12px}
.search-bar input{flex:1;padding:8px 12px;border:1px solid var(--border);border-radius:6px;font-size:13px}
.search-bar input:focus{outline:none;border-color:var(--pri)}
.order-info-box{padding:10px 14px;background:#f0f7ff;border-left:3px solid var(--pri);border-radius:4px;margin-bottom:14px;font-size:13px;line-height:1.6}
body.dark-mode .sidebar{background:#020617}
body.dark-mode .topbar,body.dark-mode .modal,body.dark-mode .modal-header,body.dark-mode .modal-footer{background:var(--card);border-color:var(--border)}
body.dark-mode th,body.dark-mode tr:hover td,body.dark-mode .src-btn,body.dark-mode .tab,body.dark-mode .search-bar input,body.dark-mode .operator-user{background:#1f2937;color:var(--text)}
body.dark-mode td,body.dark-mode .card,body.dark-mode .stat-card{border-color:var(--border)}
body.dark-mode .btn-out{background:#111827;border-color:var(--border);color:var(--text)}
body.dark-mode .btn-xs.btn-out,body.dark-mode .btn-sm.btn-out{background:#111827;border-color:var(--border);color:var(--text)}
body.dark-mode .btn-out:hover{background:#1f2937}
body.dark-mode input,body.dark-mode select,body.dark-mode textarea,body.dark-mode .form-group input,body.dark-mode .form-group select,body.dark-mode .form-group textarea{background:#0b1220;border-color:var(--border);color:var(--text)}
body.dark-mode details,body.dark-mode details label,body.dark-mode .readonly-field{background:#0b1220!important;border-color:var(--border)!important;color:var(--text)}
body.dark-mode .order-info-box,body.dark-mode .info-row{background:#172554}
body.dark-mode .order-relation-popover-item,body.dark-mode .transport-chain-popover-item,body.dark-mode .message-list-item{background:#0f172a}
body.dark-mode .message-list-item:hover,body.dark-mode .message-center-summary{background:#172554}
body.dark-mode .vip-cust-grid div,body.dark-mode .operator-user,body.dark-mode .alert-warn,body.dark-mode .alert-expired{background:#0b1220!important;border-color:var(--border)!important;color:var(--text)!important}
body.dark-mode .login-card{background:var(--card);color:var(--text)}
body.dark-mode .dashboard-waybill-status{background:#1e293b;border-color:#475569;color:#cbd5e1}
body.dark-mode .dashboard-waybill-status b{color:#f8fafc}
body.dark-mode .dashboard-waybill-status:hover{background:#27364a;border-color:#60a5fa}
body.dark-mode .dashboard-birthday-row{background:#2b2118;border-color:#7c4a14;color:#fed7aa}
body.dark-mode .dashboard-birthday-row.is-today{background:#3a2e16;border-color:#d97706}
body.dark-mode .dashboard-birthday-person{color:#fdba74}
body.dark-mode .dashboard-birthday-person b{color:#fff7ed}
body.dark-mode .dashboard-birthday-date{color:#fb923c}
.operator-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:300;justify-content:center;align-items:center}
.operator-overlay.show{display:flex}
.operator-box{background:#fff;border-radius:10px;padding:24px;width:320px;box-shadow:0 20px 60px rgba(0,0,0,.2);text-align:center}
.operator-box h4{margin-bottom:16px;font-size:15px}
.operator-box p{font-size:13px;color:var(--sub);line-height:1.6;margin-bottom:16px;text-align:left}
.operator-user{background:#f8fafc;border:1px solid var(--border);border-radius:6px;padding:8px 10px;font-size:13px;margin-bottom:16px;text-align:left}
.operator-box .btn-row{display:flex;gap:8px;justify-content:center}
.alert-warn{background:#fff3cd;border-left:3px solid #ffc107;color:#856404;padding:6px 10px;border-radius:4px;margin-bottom:4px;font-size:12px}
.alert-expired{background:#f8d7da;border-left:3px solid #dc3545;color:#721c24;padding:6px 10px;border-radius:4px;margin-bottom:4px;font-size:12px}
.vip-cust-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px;margin-top:10px;font-size:12px}
.vip-cust-grid>div{padding:8px 6px;background:#f8fafc;border-radius:8px;text-align:center;cursor:pointer;font-size:12px;font-weight:500;transition:all .15s;border:1px solid var(--border);white-space:normal;overflow:hidden}
.vip-cust-grid div:hover{transform:translateY(-2px);box-shadow:0 2px 8px rgba(0,0,0,.08);border-color:var(--pri)}
.vip-card-duration{display:block;margin-top:4px;color:var(--sub);font-size:11px;font-weight:400;line-height:1.35}
.readonly-field{padding:8px 10px;background:#f3f4f6;border:1px solid var(--border);border-radius:6px;font-size:13px;color:var(--text)}
.order-relation-badge{margin-left:6px;cursor:pointer;user-select:none}
.order-relation-badge:focus{outline:2px solid var(--pri);outline-offset:1px}
.order-relation-popover{position:absolute;z-index:450;display:none;min-width:260px;max-width:min(360px,calc(100vw - 24px));background:var(--card);border:1px solid var(--border);border-radius:8px;box-shadow:0 18px 48px rgba(15,23,42,.18);padding:12px}
.order-relation-popover h4{margin:0 0 8px;font-size:13px}
.order-relation-popover-list{display:flex;flex-direction:column;gap:8px}
.order-relation-popover-item{padding:8px 10px;border:1px solid var(--border);border-radius:6px;background:rgba(248,250,252,.9)}
.order-relation-popover-item b{font-size:13px}
.order-relation-popover-meta{margin-top:4px;font-size:12px;color:var(--sub);line-height:1.6}
.order-relation-popover-empty{font-size:12px;color:var(--sub);line-height:1.6}
#nextSegmentPopover{width:min(420px,calc(100vw - 24px))}
.order-relation-popover.touch-dialog{position:fixed;left:50%!important;top:50%!important;transform:translate(-50%,-50%);max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);z-index:720;box-shadow:0 0 0 100vmax rgba(15,23,42,.34),0 18px 48px rgba(15,23,42,.24)}
#nextSegmentPopover.touch-dialog .transport-chain-popover-list{max-height:calc(100dvh - 170px)}
.transport-chain-popover-list{display:flex;flex-direction:column;gap:5px;max-height:min(62vh,560px);overflow-y:auto;padding-right:2px}
.transport-chain-popover-item{padding:6px 7px;border:1px solid var(--border);border-radius:7px;background:rgba(248,250,252,.9)}
.transport-chain-popover-item.current{border-color:var(--pri);box-shadow:0 0 0 1px rgba(37,99,235,.12)}
.transport-chain-popover-title{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:3px}
.transport-chain-popover-title b{font-size:12px}
.transport-chain-popover-meta{font-size:10px;color:var(--sub);line-height:1.35;overflow-wrap:anywhere}
.transport-chain-compact-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px;margin-top:3px;font-size:10px;color:var(--sub);line-height:1.35}
.transport-chain-compact-meta>span{min-width:0;overflow-wrap:anywhere}
.dispatcher-pending-toggle{padding:9px 12px 12px;border-top:1px solid var(--border);background:linear-gradient(180deg,transparent,rgba(37,99,235,.035))}
.dispatcher-pending-toggle .btn{width:100%;min-height:36px;justify-content:center;border-style:dashed;font-weight:600;color:var(--pri);background:var(--card)}
.continuous-predecessor-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;font-size:12px;line-height:1.45}
.continuous-predecessor-summary>div{min-width:0;overflow-wrap:anywhere}
.continuous-predecessor-summary small{display:block;margin-bottom:1px;color:var(--sub)}
.transport-chain-compact-meta>span.wide{grid-column:1/-1}
.transport-chain-compact-meta small{margin-right:3px;color:var(--sub);font-size:9px}
.transport-route-board{margin:3px 0 4px;padding:4px 6px;border:1px solid var(--border);border-radius:6px;background:rgba(239,246,255,.62)}
.transport-route-board-title{margin-bottom:3px;color:var(--sub);font-size:10px;font-weight:600}
.transport-route-line{display:flex;align-items:center;gap:3px;flex-wrap:wrap;line-height:1.3;min-width:0;font-size:11px}
.transport-route-node{display:inline-block;max-width:128px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:opacity .15s,color .15s,font-weight .15s}
.transport-route-node.passed{opacity:.65}
.transport-route-node.current{opacity:1;color:var(--text);font-weight:800}
.transport-route-node.current:before{content:'●';margin-right:3px;color:var(--pri);font-size:9px;vertical-align:1px}
.transport-route-node.future{opacity:.4}
.transport-route-arrow{display:inline-flex;align-items:center;gap:1px;color:var(--sub);opacity:.58;font-weight:400;white-space:nowrap}
.transport-route-arrow.labeled{flex-direction:row;line-height:1.2}
.transport-route-arrow small{color:var(--pri);font-size:9px;font-weight:600;line-height:1.1}
body.dark-mode .transport-route-node.current{color:#fff}
body.dark-mode .transport-route-board{background:rgba(30,41,59,.72)}
.readonly-field .transport-route-line{font-size:13px}
.waybill-id-with-segment{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.transport-chain-badge{cursor:pointer;white-space:nowrap;user-select:none}
.transport-chain-badge:focus{outline:2px solid var(--pri);outline-offset:1px}
.waybill-next-segment-id{margin-top:4px;color:var(--sub);font-size:11px;line-height:1.35;white-space:nowrap}
.waybill-next-segment-id b{color:var(--text);font-weight:700}
.login-screen{position:fixed;inset:0;background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 52%,#0f766e 100%);z-index:500;display:flex;align-items:center;justify-content:center;padding:24px}
html.auth-restoring .login-screen{visibility:hidden}
.login-card{width:min(420px,100%);background:#fff;border-radius:14px;box-shadow:0 24px 80px rgba(0,0,0,.28);padding:30px}
.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.login-brand .mark{width:58px;height:58px;min-width:58px;max-width:58px;flex:0 0 58px;border-radius:14px;background:#e8f0fe;display:flex;align-items:center;justify-content:center;padding:6px;overflow:hidden}
.login-brand .mark picture{display:block;width:46px;height:46px;min-width:46px;max-width:46px;flex:0 0 46px}
.login-brand .mark img{display:block;width:46px;height:46px;min-width:46px;max-width:46px;object-fit:contain;transform:none!important;animation:none!important;transition:none!important}
.login-brand h1{font-size:20px;line-height:1.25;margin:0}
.login-brand p{font-size:12px;color:var(--sub);margin-top:4px}
.login-card .form-group{margin-bottom:12px}
.login-error{min-height:18px;font-size:12px;color:var(--red);margin:4px 0 12px}
.login-card .btn{width:100%;justify-content:center;padding:10px 14px}
.install-hint{font-size:12px;color:var(--sub);text-align:center;margin-top:10px;line-height:1.5}
 .driver-portal{max-width:980px;margin:0 auto;display:grid;gap:12px}
 .driver-card{margin-bottom:0}
 .driver-identity{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:var(--sub);font-size:13px}
 .driver-identity b{color:var(--text);font-size:18px}
 .driver-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 14px}
 .driver-detail-grid>div{min-width:0;padding:10px;border:1px solid var(--border);border-radius:6px;background:var(--panel)}
 .driver-detail-grid small{display:block;color:var(--sub);font-size:11px;margin-bottom:4px}
 .driver-detail-grid b{display:block;overflow-wrap:anywhere;font-size:14px}
 .driver-action{min-height:44px;width:100%;font-size:15px}
 .driver-report-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:8px}
 .driver-empty{padding:22px 10px;text-align:center;color:var(--sub);font-size:14px}
 .driver-alerts{display:grid;gap:7px;margin-top:10px;font-size:13px}
 .driver-expiry-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid var(--border);border-left-width:4px;border-radius:6px}
 .driver-expiry-item b{font-size:13px}
 .driver-expiry-item span{font-size:12px;white-space:nowrap}
 .driver-expiry-normal{background:#f0fdf4;border-left-color:var(--green);color:#166534}
 .driver-expiry-warning{background:#fffbeb;border-left-color:#eab308;color:#854d0e}
 .driver-expiry-overdue{background:#fef2f2;border-left-color:var(--red);color:#991b1b}
 .driver-energy-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:10px}
 .driver-energy-note{margin-top:8px;color:var(--sub);font-size:12px;line-height:1.6}
 .driver-report-hint{margin-top:10px;padding:10px;background:var(--pri2);color:var(--sub);font-size:12px;border-radius:6px}
 .driver-mobile-list{display:grid;gap:8px;margin-top:10px}
 .driver-mobile-item{display:grid;gap:4px;padding:11px 12px;border:1px solid var(--border);border-radius:8px;background:var(--panel);cursor:pointer}
 .driver-mobile-item b{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
 .driver-mobile-item span{color:var(--sub);font-size:11px;line-height:1.45}
 .driver-review-detail{display:grid;gap:8px;padding:10px;background:var(--pri2);border-radius:6px;font-size:13px}
 .driver-review-description{white-space:pre-wrap;overflow-wrap:anywhere}
 .driver-review-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:14px}
 .archive-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 .archive-toolbar input,.archive-toolbar select,.report-filter-bar input,.report-filter-bar select,.vehicle-location-toolbar input,.vehicle-location-toolbar select,.stop-alert-filters input:not(.date-segment),.stop-alert-filters select{min-height:38px;height:38px;padding:8px 10px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--text);font:inherit;font-size:13px;font-weight:400;line-height:20px;box-sizing:border-box;transition:border-color .15s,box-shadow .15s,background-color .15s}
 .archive-toolbar input::placeholder,.report-filter-bar input::placeholder,.vehicle-location-toolbar input::placeholder,.stop-alert-filters input::placeholder{color:var(--sub);opacity:.78}
 .archive-toolbar input:focus,.archive-toolbar select:focus,.report-filter-bar input:focus,.report-filter-bar select:focus,.vehicle-location-toolbar input:focus,.vehicle-location-toolbar select:focus,.stop-alert-filters input:focus,.stop-alert-filters select:focus{outline:none;border-color:var(--pri);box-shadow:0 0 0 2px rgba(26,115,232,.12)}
 .archive-toolbar .btn,.report-filter-bar .btn,.vehicle-location-toolbar .btn,.stop-alert-filters .btn{min-height:38px}
 .standard-filter-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;padding:12px;margin:0 0 14px;border:1px solid var(--border);border-radius:9px;background:#f8fafc}
 .standard-filter-field{display:flex;min-width:0;flex-direction:column;gap:5px;color:var(--sub);font-size:11px;font-weight:600}
 .standard-filter-field input,.standard-filter-field select{width:100%;min-height:38px;height:38px;padding:8px 10px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--text);font-size:13px;font-weight:400;line-height:20px;box-sizing:border-box;transition:border-color .15s,box-shadow .15s,background-color .15s}
 .standard-filter-field input:focus,.standard-filter-field select:focus{outline:none;border-color:var(--pri);box-shadow:0 0 0 2px rgba(26,115,232,.12)}
 .standard-filter-keyword{grid-column:span 2}
.standard-filter-actions{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.standard-filter-actions .btn{min-height:38px}
.weigh-ledger-filter-bar .standard-filter-actions{flex-wrap:nowrap;min-width:270px}
 .card-subtitle{margin-top:4px;color:var(--sub);font-size:12px;line-height:1.5}
 .weight-pair{display:grid;gap:3px;min-width:112px;font-size:12px;white-space:nowrap}
 .weight-pair small{color:var(--sub);font-size:10px}
 .weigh-form-hint{padding:8px 10px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;color:#1e40af;font-size:12px;line-height:1.55}
 .weigh-mileage-time-warning{grid-column:span 2;align-self:end;min-height:38px;padding:8px 10px;border:1px solid transparent;border-radius:6px;font-size:12px;line-height:1.55;box-sizing:border-box}
 .weigh-mileage-time-warning[hidden]{display:none!important}
 .weigh-mileage-time-warning.is-stale{border-color:#f59e0b;background:#fffbeb;color:#92400e}
 .weigh-mileage-time-warning.is-future{border-color:#ef4444;background:#fef2f2;color:#b91c1c}
 html.phone-surface .weigh-mileage-time-warning{grid-column:1}
 body.dark-mode .weigh-mileage-time-warning.is-stale{border-color:#92400e;background:#422006;color:#fde68a}
 body.dark-mode .weigh-mileage-time-warning.is-future{border-color:#991b1b;background:#450a0a;color:#fecaca}
 .waybill-weigh-section{margin:6px 0}
 .waybill-flow-section .vip-detail-table{height:auto;max-height:360px;overflow:auto}
 .waybill-flow-hint{display:block;clear:both;width:100%;margin-top:8px;color:var(--sub);font-size:11px;line-height:1.5}
 .waybill-remark-view{margin-top:8px}
 .waybill-remark-content{min-height:42px;padding:10px 12px;border:1px solid var(--border);border-radius:7px;background:#f8fafc;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}
 .waybill-remark-content.is-empty{color:var(--sub)}
 body.dark-mode .waybill-remark-content{background:#0b1220}
 .waybill-weigh-title{display:flex;align-items:baseline;gap:8px;margin-bottom:8px;font-size:14px;font-weight:700}
 .waybill-weigh-title span{color:var(--sub);font-size:11px;font-weight:400}
 .weigh-detail-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .weigh-detail-card{padding:11px;border:1px solid var(--border);border-radius:8px;background:#f8fafc}
 .weigh-detail-card h4{margin:0 0 8px;font-size:13px}
 .weigh-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .weigh-detail-grid>div{min-width:0;padding:7px;border-radius:6px;background:var(--card)}
 .weigh-detail-grid small{display:block;color:var(--sub);font-size:10px;margin-bottom:3px}
.weigh-detail-grid b{display:block;font-size:12px;overflow-wrap:anywhere}
.continuous-risk-list{display:grid;gap:8px;margin-top:10px}
.continuous-risk-row{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(240px,1.6fr) auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid var(--border);border-left:4px solid var(--green);border-radius:8px;background:var(--card)}
.continuous-risk-row.watch{border-left-color:var(--orange)}
.continuous-risk-row.late{border-left-color:var(--red)}
.continuous-risk-route{font-weight:700;overflow-wrap:anywhere}
.continuous-risk-meta{font-size:11px;color:var(--sub);margin-top:3px}
.continuous-queue-step{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;padding:10px 0;border-bottom:1px solid var(--border);align-items:start}
.continuous-queue-step:last-child{border-bottom:0}
.continuous-queue-index{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--pri2);color:var(--blue);font-weight:700}
.continuous-queue-step.watch .continuous-queue-index{background:var(--panel);color:var(--orange)}
.continuous-queue-step.late .continuous-queue-index{background:var(--panel);color:var(--red)}
.continuous-trip-estimate{padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--pri2)}
 .weigh-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
 .weigh-summary-card{padding:13px;border:1px solid var(--border);border-left:4px solid var(--pri);border-radius:8px;background:var(--card)}
 .weigh-summary-card.warning{border-left-color:var(--orange)}
 .weigh-summary-card small,.weigh-summary-card span{display:block;color:var(--sub);font-size:11px}
 .weigh-summary-card b{display:block;margin:4px 0;font-size:20px}
 .archive-type-tabs,.archive-detail-tabs{display:flex;flex-wrap:wrap;gap:7px}
 .archive-type-tab,.archive-detail-tab{border:1px solid var(--border);background:var(--panel);color:var(--text);border-radius:999px;padding:7px 13px;cursor:pointer;font-size:13px}
 .archive-type-tab.active,.archive-detail-tab.active{background:var(--pri);border-color:var(--pri);color:#fff}
 .archive-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:12px 0}
 .archive-summary-card{padding:13px;border:1px solid var(--border);border-radius:9px;background:var(--panel);min-width:0}
 .archive-summary-card small{display:block;color:var(--sub);font-size:11px;margin-bottom:5px}
 .archive-summary-card b{display:block;font-size:20px;overflow-wrap:anywhere}
 .archive-summary-card span{display:block;color:var(--sub);font-size:11px;margin-top:3px}
.archive-record-row{cursor:pointer}
.archive-record-row:hover{background:var(--pri2)}
.archive-timeline-row{cursor:pointer}
.archive-timeline-row:hover td{background:var(--pri2)}
.archive-timeline-row td:first-child{white-space:nowrap}
.archive-timeline-row td:last-child:after{content:"  ▾";color:var(--pri);font-weight:700}
.archive-timeline-row.is-open td:last-child:after{content:"  ▴"}
.archive-timeline-detail-row{display:none}
.archive-timeline-detail-row.is-open{display:table-row}
.archive-timeline-detail-row>td{padding:12px;background:var(--panel)}
.archive-timeline-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.archive-timeline-detail-item{min-width:0;padding:8px 10px;border:1px solid var(--border);border-radius:7px;background:var(--card)}
.archive-timeline-detail-item small{display:block;color:var(--sub);font-size:10px;margin-bottom:4px}
.archive-timeline-detail-item b{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.archive-timeline-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:10px 0}
.archive-timeline-tools label{display:grid;gap:4px;color:var(--sub);font-size:11px}
.archive-timeline-tools input,.archive-timeline-tools select{min-height:34px;padding:6px 9px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--text)}
.archive-trend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin:10px 0}
.archive-trend-card{min-width:0;padding:12px;border:1px solid var(--border);border-radius:9px;background:var(--panel)}
.archive-trend-card h4{margin:0 0 10px;font-size:13px}
.archive-trend-row{display:grid;grid-template-columns:62px minmax(0,1fr) 92px;gap:8px;align-items:center;margin:8px 0;font-size:11px}
.archive-trend-track{height:9px;border-radius:999px;background:var(--border);overflow:hidden}
.archive-trend-fill{height:100%;min-width:2px;border-radius:999px;background:var(--pri)}
.archive-trend-value{text-align:right;font-weight:700;overflow-wrap:anywhere}
.archive-completeness-list{display:grid;gap:8px}
.archive-completeness-item{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(180px,1.5fr) minmax(180px,1.5fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--panel);font-size:12px}
.archive-completeness-item strong,.archive-completeness-item span{min-width:0;overflow-wrap:anywhere}
.archive-completeness-card{cursor:pointer}
.archive-completeness-card:hover{border-color:var(--orange)}
.archive-cross-links{display:flex;flex-wrap:wrap;gap:4px;min-width:150px}
.archive-profile-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
 .archive-profile-title h3{margin:0 0 5px;font-size:20px}
 .archive-profile-title p{margin:0;color:var(--sub);font-size:12px;line-height:1.6}
 .archive-profile-actions{display:flex;flex-wrap:wrap;gap:7px}
 .archive-detail-section{display:none;margin-top:12px}
 .archive-detail-section.active{display:block}
 .archive-section-title{font-size:14px;font-weight:700;margin:14px 0 8px}
 .audit-object-cell{min-width:260px;line-height:1.45}
 .audit-object-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-weight:700;color:var(--text)}
 .audit-object-meta{margin-top:5px;display:flex;gap:5px;flex-wrap:wrap}
 .audit-ref-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border:1px solid var(--border);border-radius:999px;background:var(--pri2);color:var(--text);font-size:11px;line-height:1.3}
 .audit-actor{min-width:120px;font-weight:700;color:var(--text)}
 .audit-actor small{display:block;margin-top:3px;color:var(--sub);font-weight:400;overflow-wrap:anywhere}
 .audit-change-preview{min-width:280px;font-size:12px;line-height:1.55}
 .audit-change-preview-row{display:grid;grid-template-columns:minmax(70px,auto) minmax(0,1fr);gap:7px}
 .audit-change-preview-row b{color:var(--sub)}
 .audit-change-preview-row span{min-width:0;overflow-wrap:anywhere}
 .audit-change-more{margin-top:3px;color:var(--pri);font-size:11px}
 .modal.modal-audit-detail{width:min(96vw,1180px);max-width:1180px;height:80vh;max-height:80vh}
 .audit-detail{display:grid;gap:14px}
 .audit-summary-banner{padding:14px 16px;border-left:4px solid var(--pri);border-radius:8px;background:var(--pri2);font-size:15px;font-weight:700;line-height:1.55;overflow-wrap:anywhere}
 .audit-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
 .audit-meta-card{min-width:0;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--card)}
 .audit-meta-card small{display:block;color:var(--sub);font-size:11px;margin-bottom:4px}
 .audit-meta-card b{display:block;color:var(--text);font-size:13px;line-height:1.45;overflow-wrap:anywhere}
 .audit-section{border:1px solid var(--border);border-radius:9px;background:var(--card);overflow:hidden}
 .audit-section-title{padding:10px 13px;border-bottom:1px solid var(--border);font-size:13px;font-weight:700;background:#f8fafc}
 .audit-section-body{padding:12px 13px}
 .audit-ref-list{display:flex;flex-wrap:wrap;gap:7px}
 .audit-change-list{display:grid;gap:8px}
 .audit-change-item{display:grid;grid-template-columns:minmax(110px,160px) minmax(0,1fr) 28px minmax(0,1fr);gap:9px;align-items:start;padding:10px;border:1px solid var(--border);border-radius:8px;background:#f8fafc}
 .audit-change-field{font-weight:700;color:var(--text);overflow-wrap:anywhere}
 .audit-before,.audit-after{min-width:0;padding:7px 9px;border-radius:6px;overflow-wrap:anywhere;white-space:pre-wrap}
 .audit-before{background:#fff1f2;color:#9f1239}
 .audit-after{background:#ecfdf5;color:#166534}
 .audit-arrow{text-align:center;color:var(--sub);padding-top:7px}
 .audit-detail-text{white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere}
 .audit-tech{border:1px dashed var(--border);border-radius:8px;padding:9px 11px;color:var(--sub)}
 .audit-tech summary{cursor:pointer;font-size:12px;font-weight:700}
 .audit-tech-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px;font-size:11px}
 .audit-tech-grid div{overflow-wrap:anywhere}
 .archive-key-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .archive-key-item{min-width:0;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--panel)}
 .archive-key-item small{display:block;margin-bottom:4px;color:var(--sub);font-size:11px;line-height:1.35}
 .archive-key-item b{display:block;color:var(--text);font-size:14px;line-height:1.55;overflow-wrap:anywhere;word-break:break-word}
 .archive-note{padding:9px 11px;border-radius:7px;background:#fffbeb;border:1px solid #fde68a;color:#854d0e;font-size:12px;line-height:1.6}
 .archive-ok{padding:9px 11px;border-radius:7px;background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;font-size:12px}
 .archive-chip{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;background:var(--pri2);color:var(--sub);font-size:11px;margin:2px 3px 2px 0}
 .archive-self-card .archive-summary-grid{margin-bottom:0}
 body.dark-mode .archive-note{background:#3a2e16;border-color:#92400e;color:#fde68a}
 body.dark-mode .archive-ok{background:#143421;border-color:#166534;color:#bbf7d0}
 body.dark-mode .standard-filter-bar,body.dark-mode .weigh-detail-card{background:#172033}
 body.dark-mode .weigh-form-hint{background:#172554;border-color:#1d4ed8;color:#bfdbfe}
 body.dark-mode .audit-section-title,body.dark-mode .audit-change-item{background:#172033}
 body.dark-mode .audit-before{background:#3b1723;color:#fecdd3}
 body.dark-mode .audit-after{background:#123026;color:#bbf7d0}
 .modal.modal-permission-editor{width:min(96vw,1180px);max-width:1180px;height:88vh;max-height:88vh}
 .permission-model-note{margin:0 16px 12px;padding:11px 13px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1e3a8a;font-size:12px;line-height:1.6}
 .permission-editor{display:grid;gap:12px}
 .permission-editor-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
 .permission-editor-head label{font-size:14px;font-weight:800}
 .permission-editor-head p{margin:4px 0 0;color:var(--sub);font-size:12px;line-height:1.55}
 .permission-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 .permission-package-card{display:flex;min-width:0;gap:9px;padding:11px;border:1px solid var(--border);border-radius:9px;background:var(--card);cursor:pointer;transition:.15s}
 .permission-package-card:hover{border-color:#93c5fd;background:var(--pri2)}
 .permission-package-card.active{border-color:var(--pri);box-shadow:0 0 0 2px rgba(26,115,232,.1)}
 .permission-package-card.partial{border-style:dashed}
.permission-package-card input[type="checkbox"]{display:block;position:relative;box-sizing:border-box;appearance:none!important;-webkit-appearance:none!important;flex:0 0 18px!important;inline-size:18px!important;width:18px!important;min-width:18px!important;max-width:18px!important;block-size:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:2px 0 0!important;align-self:flex-start;border:1.5px solid #94a3b8!important;border-radius:4px!important;background:var(--card)!important;box-shadow:none!important;cursor:pointer}
.permission-package-card input[type="checkbox"]:checked,.permission-package-card input[type="checkbox"]:indeterminate{border-color:var(--pri)!important;background:var(--pri)!important}
.permission-package-card input[type="checkbox"]:checked:after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);box-sizing:border-box}
.permission-package-card input[type="checkbox"]:indeterminate:after{content:"";position:absolute;left:4px;top:7px;width:8px;height:2px;border:0;background:#fff;border-radius:1px}
.permission-package-card input[type="checkbox"]:focus-visible{outline:2px solid var(--pri);outline-offset:2px}
 .permission-package-card span{display:block;min-width:0}
 .permission-package-card b{display:block;color:var(--text);font-size:13px}
 .permission-package-card small{display:block;margin-top:4px;color:var(--sub);font-size:11px;line-height:1.45}
 .permission-package-card em{display:inline-block;margin-top:7px;padding:2px 7px;border-radius:999px;background:var(--panel);color:var(--sub);font-size:10px;font-style:normal}
 .permission-package-card.active em{background:#dbeafe;color:#1d4ed8}
 .permission-effective-preview{display:flex;flex-wrap:wrap;gap:7px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--panel);font-size:11px}
 .permission-effective-preview b{width:100%;font-size:12px}
 .permission-effective-preview span{padding:3px 7px;border-radius:999px;background:var(--card);border:1px solid var(--border)}
 .permission-advanced{border:1px solid var(--border);border-radius:9px;background:var(--card);overflow:hidden}
 .permission-advanced>summary{cursor:pointer;padding:11px 13px;font-weight:800}
 .permission-advanced-hint{margin:0 12px 10px;padding:9px 10px;border-radius:7px;background:#fffbeb;color:#854d0e;font-size:11px;line-height:1.55}
 .permission-category{margin:8px 12px;border:1px solid var(--border);border-radius:8px;overflow:hidden}
 .permission-category>summary{cursor:pointer;padding:9px 11px;background:var(--panel);font-size:12px;font-weight:700}
 .permission-override-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px}
 .permission-override-row{display:grid;grid-template-columns:minmax(0,1fr) 126px;gap:8px;align-items:center;padding:8px;border:1px solid var(--border);border-radius:7px;background:var(--card)}
 .permission-override-row.permission-on{border-left:3px solid #22c55e}
 .permission-override-row.permission-denied{border-left:3px solid #ef4444;background:#fff7f7}
 .permission-override-row.permission-disabled{opacity:.55}
 .permission-override-row b{display:block;font-size:12px}
 .permission-override-row small{display:block;margin-top:3px;color:var(--sub);font-size:10px;line-height:1.35}
 .permission-override-row select{width:100%;min-height:34px;padding:5px 7px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--text);font-size:11px}
 .permission-follow-group{padding:9px 11px;border:1px solid var(--border);border-radius:8px;background:var(--panel)}
 .permission-follow-group label{display:flex;align-items:center;gap:7px;font-weight:700}
 .permission-follow-group small,.data-scope-hint{display:block;margin-top:4px;color:var(--sub);font-size:10px;line-height:1.45}
 body.dark-mode .permission-model-note{background:#172554;border-color:#1d4ed8;color:#bfdbfe}
 body.dark-mode .permission-advanced-hint{background:#3a2e16;color:#fde68a}
 body.dark-mode .permission-override-row.permission-denied{background:#3b1723}
 @media (min-width:768px){.driver-portal{grid-template-columns:repeat(2,minmax(0,1fr))}.driver-task-card{grid-column:1/-1}.driver-detail-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
 @media (max-width:900px){.permission-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px), (min-width:721px) and (max-width:1280px) and (max-aspect-ratio:2/3){.weigh-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weigh-detail-cards{grid-template-columns:1fr}.standard-filter-keyword{grid-column:auto}.permission-package-grid,.permission-override-grid{grid-template-columns:1fr}.contract-route-header{display:block}.contract-route-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.contract-route-actions .btn{width:100%;min-width:0;justify-content:center;white-space:normal}}
@media (max-width:720px), (min-width:721px) and (max-width:1280px) and (max-aspect-ratio:2/3){.continuous-risk-row{grid-template-columns:1fr}.continuous-queue-step{grid-template-columns:28px minmax(0,1fr)}.continuous-queue-step>.flow-btns{grid-column:2;justify-content:flex-start}}
 @media (max-width:480px), (min-width:481px) and (max-width:1280px) and (max-aspect-ratio:2/3){.driver-detail-grid{grid-template-columns:1fr}.driver-card .section-title{font-size:16px}.archive-summary-grid,.archive-key-grid,.weigh-summary-grid,.archive-trend-grid{grid-template-columns:1fr}.archive-toolbar>*,.archive-timeline-tools>*{width:100%}.archive-profile-actions{width:100%}.archive-profile-actions .btn{flex:1}.archive-detail-tabs{gap:6px}.archive-detail-tab{flex:1 1 calc(50% - 6px);padding:8px 6px;text-align:center}.archive-profile-title h3{font-size:18px}.archive-completeness-item{grid-template-columns:1fr}.archive-trend-row{grid-template-columns:55px minmax(0,1fr) 82px}.audit-meta-grid{grid-template-columns:1fr}.audit-change-item{grid-template-columns:1fr}.audit-arrow{text-align:left;padding:0}.audit-arrow:after{content:" 修改为"}.audit-tech-grid{grid-template-columns:1fr}.standard-filter-bar{grid-template-columns:1fr}.standard-filter-actions,.standard-filter-actions .btn{width:100%}.permission-editor-head{display:grid}.permission-override-row{grid-template-columns:1fr}.modal.modal-audit-detail,.modal.modal-wide,.modal.modal-permission-editor{width:100%;height:90vh;height:90dvh;max-height:90vh;max-height:90dvh;border-radius:14px 14px 0 0;align-self:flex-end}}
 @media (max-width:720px), (min-width:721px) and (max-width:1280px) and (max-aspect-ratio:2/3){
  .modal.modal-expense-detail{width:calc(100% - 16px);max-width:calc(100% - 16px);height:90vh;height:90dvh;max-height:90vh;max-height:90dvh}
 .expense-detail-grid{grid-template-columns:1fr}
 .expense-detail-field.is-wide{grid-column:auto}
 .expense-detail-section{padding:10px}
 .modal.modal-approval-review{width:calc(100% - 16px);max-width:calc(100% - 16px);height:92vh;height:92dvh;max-height:92vh;max-height:92dvh}
 .approval-review-grid{grid-template-columns:1fr}
 .approval-review-field.is-wide{grid-column:auto}
 .approval-change-grid{grid-template-columns:1fr}
 .approval-change-arrow{transform:rotate(90deg);min-height:18px}
}
 html.phone-surface .modal.modal-expense-detail{width:calc(100% - 16px);max-width:calc(100% - 16px);height:90vh;height:90dvh;max-height:90vh;max-height:90dvh}
html.phone-surface .expense-detail-grid{grid-template-columns:1fr}
html.phone-surface .expense-detail-field.is-wide{grid-column:auto}
html.phone-surface .expense-detail-section{padding:10px}
html.phone-surface .modal.modal-approval-review{width:calc(100% - 16px);max-width:calc(100% - 16px);height:92vh;height:92dvh;max-height:92vh;max-height:92dvh}
html.phone-surface .approval-review-grid{grid-template-columns:1fr}
html.phone-surface .approval-review-field.is-wide{grid-column:auto}
html.phone-surface .approval-change-grid{grid-template-columns:1fr}
html.phone-surface .approval-change-arrow{transform:rotate(90deg);min-height:18px}
html.phone-surface{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 html.phone-surface body{display:block;min-width:0}
 html.phone-surface .sidebar{width:260px;transform:translateX(-100%);transition:transform .2s ease;box-shadow:12px 0 30px rgba(15,23,42,.22)}
 html.phone-surface .sidebar.mobile-open{transform:translateX(0)}
 html.phone-surface .sidebar-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:90}
 html.phone-surface .sidebar-backdrop.show{display:block}
 html.phone-surface .main{margin-left:0;width:100%;height:100vh;height:100dvh;min-height:0;overflow:hidden}
 html.phone-surface #mobileMenuBtn{display:inline-flex!important}
 html.phone-surface .topbar{display:flex;position:relative;top:auto;z-index:80;padding:10px 12px;align-items:flex-start;gap:8px;flex-wrap:wrap}
 html.phone-surface .topbar h2{font-size:17px;line-height:1.2;min-width:120px;flex:1;position:static;transform:none;white-space:normal}
 html.phone-surface .topbar-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 html.phone-surface .topbar-actions .btn{justify-content:center;padding:7px 6px;font-size:12px;white-space:normal;line-height:1.15}
 html.phone-surface .topbar-actions #currentTime{grid-column:1/-1;display:block;margin-right:0;align-self:auto;justify-self:auto;text-align:left}
 html.phone-surface .topbar-actions #logoutBtn{grid-column:3}
 html.phone-surface .content{padding:12px}
 html.phone-surface .card{padding:14px;border-radius:8px}
 html.phone-surface .card-header{align-items:flex-start;gap:8px;flex-wrap:wrap}
 html.phone-surface .stats-grid,html.phone-surface .dashboard-top-stats{grid-template-columns:1fr;gap:10px}
 html.phone-surface .dashboard-top-stats .stat-card{min-height:0;padding:14px;gap:12px}
 html.phone-surface .dashboard-top-stats .stat-icon{width:44px;height:44px;font-size:20px}
 html.phone-surface .dashboard-top-stats .stat-value{font-size:22px}
 html.phone-surface .dashboard-top-stats .stat-value-money{font-size:clamp(18px,5.4vw,22px)}
 html.phone-surface .dashboard-top-stats .stat-value-money.money-compact{font-size:clamp(16px,4.8vw,20px)}
 html.phone-surface .dashboard-top-stats .stat-label{font-size:12px}
 html.phone-surface .stat-card{padding:14px}
 html.phone-surface .dashboard-grid,html.phone-surface .form-grid,html.phone-surface .driver-portal,html.phone-surface .driver-detail-grid{grid-template-columns:1fr}
 html.phone-surface .search-bar{flex-direction:column}
.mobile-card-value{display:contents}
html.phone-surface .table-wrap{margin:0 -4px;padding-bottom:4px;overflow-x:auto;overflow-y:hidden;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}
 html.phone-surface table.mobile-keep-table,html.phone-surface #weighLedgerTable table{min-width:720px}
 html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table,
 html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table tbody,
 html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table tr,
 html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table td{display:block;width:100%;min-width:0}
 html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table{min-width:0!important}
 html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table thead{display:none}
 html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table tbody{display:grid;gap:7px;padding:1px 4px}
 html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table tr{padding:5px 9px;border:1px solid var(--border);border-radius:8px;background:var(--card);box-shadow:0 1px 2px rgba(15,23,42,.04)}
 html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table td{display:grid;grid-template-columns:minmax(76px,30%) minmax(0,1fr);gap:7px;padding:5px 0;border-bottom:1px dashed var(--border);white-space:normal;overflow-wrap:anywhere;background:transparent!important}
html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table td:last-child{border-bottom:0}
html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table td[data-label]:before{content:attr(data-label);color:var(--sub);font-size:11px;font-weight:700;line-height:1.4}
html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table td>.mobile-card-value{grid-column:2;display:block;min-width:0;max-width:100%;overflow-wrap:anywhere}
html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table td>.mobile-card-value.mobile-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table td>.mobile-card-value.mobile-card-actions>.btn,
html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table td>.mobile-card-value.mobile-card-actions>button{flex:1 1 96px;margin:0;min-width:0}
html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table td[colspan]{display:block;text-align:center!important}
html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table td[colspan]>.mobile-card-value{display:block;width:100%}
html.phone-surface .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table tr.dispatch-order-selected{background:#dbeafe;border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f6}
html.phone-surface body.dark-mode .table-wrap:not(.mobile-keep-table-wrap) table.mobile-card-table tr.dispatch-order-selected{background:#18345a;border-color:#60a5fa}
html.phone-surface .payables-compact-table .table-wrap{max-height:none;scrollbar-gutter:auto}
html.phone-surface .payables-compact-table table{font-size:13px}
html.phone-surface .payables-compact-table td{white-space:normal}
html.phone-surface .payable-row-actions{display:flex;min-width:0;flex-wrap:wrap;gap:5px}
html.phone-surface .table-actions-column,html.phone-surface .table-actions-cell{width:100%;min-width:0;max-width:none}
html.phone-surface .mobile-card-value.mobile-card-actions>.table-row-actions{width:100%;max-width:none}
 html.phone-surface .modal{width:96%;max-height:88vh;max-height:88dvh;border-radius:10px}
 html.phone-surface .modal.modal-order-form{width:calc(100% - 16px);max-width:calc(100% - 16px);height:min(90vh,760px);height:min(90dvh,760px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);display:flex;flex-direction:column;overflow:hidden}
 html.phone-surface .modal-order-form .modal-header{flex:0 0 auto;padding:14px 16px}
 html.phone-surface .modal-order-form .modal-body{flex:1 1 auto;min-height:0;width:100%;padding:14px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 html.phone-surface .modal-order-form .modal-footer{position:static;flex:0 0 auto;width:100%;padding:10px 14px max(10px,env(safe-area-inset-bottom));background:var(--card)}
 html.phone-surface .modal-order-form .form-grid{width:100%;grid-template-columns:minmax(0,1fr)}
 html.phone-surface .modal-order-form .form-full{grid-column:1}
 html.phone-surface .modal-order-form .form-group,html.phone-surface .modal-order-form .form-group input,html.phone-surface .modal-order-form .form-group select,html.phone-surface .modal-order-form .form-group textarea,html.phone-surface .modal-order-form .readonly-field{width:100%;min-width:0;max-width:100%}
 html.phone-surface .modal-order-form .form-group select{display:block;text-overflow:ellipsis}
 html.phone-surface .modal.modal-vip-detail{width:96%;height:88vh;max-height:88vh}
 html.phone-surface .modal.modal-dashboard-drill{height:88vh;height:88dvh;max-height:88vh;max-height:88dvh}
 html.phone-surface .modal.modal-message-center{width:100%;height:82vh;height:82dvh;max-height:82vh;max-height:82dvh;border-radius:14px 14px 0 0;align-self:flex-end}
 html.phone-surface .modal.modal-geofence-summary{width:100%;height:calc(100vh - max(8px,env(safe-area-inset-top)));height:calc(100dvh - max(8px,env(safe-area-inset-top)));max-height:calc(100vh - max(8px,env(safe-area-inset-top)));max-height:calc(100dvh - max(8px,env(safe-area-inset-top)))}
 html.phone-surface .modal-message-center .modal-body{padding:0}
 html.phone-surface .message-center-list{padding:4px 0 12px}
 html.phone-surface .message-list-item{min-height:84px;padding:14px 14px 14px 22px}
 html.phone-surface .message-list-title{font-size:15px}
 html.phone-surface .message-list-preview{font-size:13px}
 html.phone-surface .modal.modal-message-detail{width:100%;max-height:86vh;max-height:86dvh;border-radius:14px 14px 0 0;align-self:flex-end}
 html.phone-surface .geofence-summary-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 10px}
 html.phone-surface .geofence-summary-stat{padding:7px 8px}
 html.phone-surface .geofence-summary-stat small{font-size:10px}
 html.phone-surface .geofence-summary-stat b{font-size:15px}
 html.phone-surface .geofence-summary-list{padding:4px 10px 12px}
 html.phone-surface .geofence-summary-item{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;padding:11px 8px}
 html.phone-surface .geofence-summary-item>span:nth-child(5){grid-column:1/-1;justify-self:start}
 html.phone-surface .vip-detail-table table{min-width:820px}
 html.phone-surface .modal-body{padding:14px}
 html.phone-surface .modal-footer{position:static;flex-wrap:wrap;padding-bottom:max(12px,env(safe-area-inset-bottom));background:var(--card)}
 html.phone-surface .modal-dashboard-drill .modal-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:max(20px,env(safe-area-inset-bottom))}
 html.phone-surface .modal-dashboard-drill .vip-detail-table table,html.phone-surface .modal-dashboard-drill .vip-detail-table tbody,html.phone-surface .modal-dashboard-drill .vip-detail-table tr,html.phone-surface .modal-dashboard-drill .vip-detail-table td{display:block;width:100%;min-width:0}
 html.phone-surface .modal-dashboard-drill .vip-detail-table thead{display:none}
 html.phone-surface .modal-dashboard-drill .vip-detail-table tbody{display:grid;gap:10px}
 html.phone-surface .modal-dashboard-drill .vip-detail-table tr{padding:7px 11px;border:1px solid var(--border);border-radius:10px;background:var(--card);box-shadow:0 1px 2px rgba(15,23,42,.05)}
 html.phone-surface .modal-dashboard-drill .vip-detail-table td{display:grid;grid-template-columns:minmax(88px,34%) minmax(0,1fr);gap:10px;padding:8px 0;border-bottom:1px dashed var(--border);background:transparent!important;white-space:normal;overflow-wrap:anywhere}
html.phone-surface .modal-dashboard-drill .vip-detail-table td:last-child{border-bottom:0}
html.phone-surface .modal-dashboard-drill .vip-detail-table td[data-label]:before{content:attr(data-label);color:var(--sub);font-size:11px;font-weight:700;line-height:1.45}
html.phone-surface .modal-dashboard-drill .vip-detail-table td>.mobile-card-value{grid-column:2;display:block;min-width:0;max-width:100%;overflow-wrap:anywhere}
html.phone-surface .modal-dashboard-drill .vip-detail-table td>.mobile-card-value.mobile-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
html.phone-surface .modal-dashboard-drill .vip-detail-table td[colspan]{display:block;text-align:center!important}
 html.phone-surface .archive-timeline-table table,html.phone-surface .archive-timeline-table tbody,html.phone-surface .archive-timeline-table .archive-timeline-row,html.phone-surface .archive-timeline-table .archive-timeline-row td{display:block;width:100%;min-width:0}
 html.phone-surface .archive-timeline-table thead{display:none}
 html.phone-surface .archive-timeline-table .archive-timeline-row{margin-bottom:9px;padding:7px 10px;border:1px solid var(--border);border-radius:9px;background:var(--card)}
 html.phone-surface .archive-timeline-table .archive-timeline-row td{display:grid;grid-template-columns:minmax(82px,32%) minmax(0,1fr);gap:8px;padding:6px 0;border-bottom:1px dashed var(--border);white-space:normal}
html.phone-surface .archive-timeline-table .archive-timeline-row td:last-child{border-bottom:0}
html.phone-surface .archive-timeline-table .archive-timeline-row td[data-label]:before{content:attr(data-label);color:var(--sub);font-size:11px;font-weight:700}
html.phone-surface .archive-timeline-table .archive-timeline-row td>.mobile-card-value{grid-column:2;display:block;min-width:0;max-width:100%;overflow-wrap:anywhere}
html.phone-surface .archive-timeline-table .archive-timeline-detail-row.is-open{display:block;margin:-5px 0 10px}
 html.phone-surface .archive-timeline-table .archive-timeline-detail-row>td{display:block;width:100%}
/* 手机弹窗中的明细表统一改为紧凑卡片，避免停车预警等页面仍需横向拖动。 */
html.phone-surface .modal .vip-detail-table{width:100%;max-width:100%;overflow:visible}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table),
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) tbody,
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) tr,
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) td{display:block;width:100%;min-width:0}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table){min-width:0!important;max-width:100%;table-layout:auto}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) thead{display:none}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) tbody{display:grid;gap:7px;padding:1px 0}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) tr{padding:5px 9px;border:1px solid var(--border);border-radius:8px;background:var(--card);box-shadow:0 1px 2px rgba(15,23,42,.04)}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) td{display:grid;grid-template-columns:minmax(76px,30%) minmax(0,1fr);gap:7px;padding:5px 0;border-bottom:1px dashed var(--border);white-space:normal;overflow-wrap:anywhere;background:transparent!important}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) td:last-child{border-bottom:0}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) td[data-label]:before{content:attr(data-label);color:var(--sub);font-size:11px;font-weight:700;line-height:1.4}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) td>.mobile-card-value{grid-column:2;display:block;min-width:0;max-width:100%;overflow-wrap:anywhere}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) td>.mobile-card-value.mobile-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) td>.mobile-card-value.mobile-card-actions>.btn,
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) td>.mobile-card-value.mobile-card-actions>button{flex:1 1 96px;margin:0;min-width:0}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) td[colspan]{display:block;text-align:center!important}
html.phone-surface table.mobile-card-table:not(.mobile-keep-table) td[colspan]>.mobile-card-value{display:block;width:100%}
html.phone-surface .modal-stop-alerts .empty{padding:22px 10px}
html.phone-surface .modal-stop-alerts .empty .icon{font-size:22px!important;line-height:1}
 html.phone-surface .vip-cust-grid{grid-template-columns:repeat(2,1fr)}
 html.phone-surface .toast-container{left:12px;right:12px;top:12px}
 html.phone-surface .toast{min-width:0;width:100%}
 html.phone-surface .login-card input,html.phone-surface .login-card select,html.phone-surface .form-group input,html.phone-surface .form-group select,html.phone-surface .form-group textarea,html.phone-surface .search-bar input,html.phone-surface .standard-filter-field input,html.phone-surface .standard-filter-field select,html.phone-surface .archive-toolbar input,html.phone-surface .archive-toolbar select,html.phone-surface .report-filter-bar input,html.phone-surface .report-filter-bar select,html.phone-surface .vehicle-location-toolbar input,html.phone-surface .vehicle-location-toolbar select,html.phone-surface .stop-alert-filters input,html.phone-surface .stop-alert-filters select{font-size:16px!important}
 html.phone-surface .weigh-summary-grid,html.phone-surface .archive-summary-grid,html.phone-surface .archive-key-grid{grid-template-columns:1fr}
 html.phone-surface .weigh-detail-cards,html.phone-surface .permission-package-grid,html.phone-surface .permission-override-grid{grid-template-columns:1fr}
 html.phone-surface .standard-filter-keyword{grid-column:auto}
 html.phone-surface .archive-toolbar>*,html.phone-surface .standard-filter-actions,html.phone-surface .standard-filter-actions .btn{width:100%}
html.phone-surface .archive-profile-actions{width:100%}
html.phone-surface .archive-profile-actions .btn{flex:1}
html.phone-surface .archive-detail-tabs{gap:6px}
html.phone-surface .archive-detail-tab{flex:1 1 calc(50% - 6px);padding:8px 6px;text-align:center}
html.phone-surface .archive-trend-grid{grid-template-columns:1fr}
html.phone-surface .archive-timeline-tools>*{width:100%}
html.phone-surface .archive-completeness-item{grid-template-columns:1fr}
 html.phone-surface .audit-meta-grid,html.phone-surface .audit-change-item,html.phone-surface .audit-tech-grid,html.phone-surface .permission-editor-head,html.phone-surface .permission-override-row{grid-template-columns:1fr}
 html.phone-surface .audit-arrow{text-align:left;padding:0}
 html.phone-surface .audit-arrow:after{content:" 修改为"}
 html.phone-surface .modal.modal-audit-detail,html.phone-surface .modal.modal-wide,html.phone-surface .modal.modal-permission-editor{width:100%;height:90vh;height:90dvh;max-height:90vh;max-height:90dvh;border-radius:14px 14px 0 0;align-self:flex-end}
 .daily-report-detail-grid>.card,.energy-table-card{min-width:0;max-width:100%;overflow:hidden}
 .daily-report-compact-table{margin-left:0;margin-right:0}
 .daily-report-compact-table table{width:100%;min-width:0;table-layout:auto}
.daily-report-compact-table th,.daily-report-compact-table td{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.daily-efficiency-card{padding-bottom:0;overflow:hidden}
.daily-efficiency-section{border-top:1px solid var(--border)}
.daily-efficiency-section:first-of-type{border-top:0}
.daily-efficiency-section-title{padding:10px 14px 6px;color:var(--sub);font-size:12px;font-weight:700;letter-spacing:.02em;background:var(--panel)}
.daily-efficiency-section-title span{font-weight:400;margin-left:6px}
.daily-efficiency-current .daily-efficiency-section-title{color:#8a5a00;background:#fff8e7}
body.dark-mode .daily-efficiency-current .daily-efficiency-section-title{color:#f6c453;background:rgba(245,158,11,.1)}
.daily-efficiency-section .daily-report-compact-table{margin:0;padding:0;overflow:hidden}
.daily-efficiency-section .daily-report-efficiency-table tr:last-child td{border-bottom:0}
.daily-metric-link{appearance:none;border:0;background:transparent;padding:2px 0;color:var(--pri);font:inherit;font-weight:650;text-align:left;cursor:pointer;line-height:1.5;white-space:normal}
.daily-metric-link:hover{text-decoration:underline}
.daily-metric-link:focus-visible{outline:2px solid var(--pri);outline-offset:2px;border-radius:3px}
.daily-metric-caption{margin-top:2px;color:var(--sub);font-size:11px;line-height:1.45}
.daily-metric-detail-note{margin:0 0 12px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--panel);font-size:12px;color:var(--sub);line-height:1.6}
.daily-metric-rounding-note{margin:0 0 12px;padding:9px 11px;border:1px solid #f5cf77;border-radius:7px;background:#fff8e7;color:#8a5a00;font-size:11px;line-height:1.55}
body.dark-mode .daily-metric-rounding-note{border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.1);color:#f6c453}
.daily-metric-detail-subtitle{margin:18px 0 8px;font-size:14px}
.daily-metric-detail-table{height:auto;min-height:0;overflow:visible}
.daily-metric-source-note{margin-top:12px;padding:9px 11px;border-radius:7px;background:var(--pri2);color:var(--sub);font-size:11px;line-height:1.55}
.text-danger{color:var(--red)}
.text-success{color:var(--green)}
 .energy-table-wrap{width:100%;max-width:100%;min-width:0;margin:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;overscroll-behavior-y:auto;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}
 .energy-table{min-width:900px}
 @media(max-width:768px), (min-width:769px) and (max-width:1280px) and (max-aspect-ratio:2/3){
  .daily-report-compact-table{margin:0;padding-bottom:0;overflow-x:hidden}
  .daily-report-compact-table table{min-width:0!important;table-layout:fixed}
  .daily-report-compact-table th,.daily-report-compact-table td{padding:8px 7px}
  .daily-report-efficiency-table td:first-child{width:54%}
  .daily-efficiency-section-title{padding:9px 10px 5px}
  .daily-report-efficiency-table td:first-child{width:42%}
  .daily-metric-link{font-size:12px}
  .daily-report-leave-table{margin:0;padding:0;overflow:visible}
  .daily-report-leave-table table,.daily-report-leave-table tbody,.daily-report-leave-table tr,.daily-report-leave-table td{display:block;width:100%;min-width:0}
  .daily-report-leave-table table{min-width:0!important}
  .daily-report-leave-table thead{display:none}
  .daily-report-leave-table tr{margin-bottom:9px;padding:7px 10px;border:1px solid var(--border);border-radius:8px;background:var(--card)}
  .daily-report-leave-table tr:last-child{margin-bottom:0}
  .daily-report-leave-table td{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;padding:6px 0;border:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
  .daily-report-leave-table td[data-label]:before{content:attr(data-label);color:var(--sub);font-size:11px;font-weight:700}
  .daily-report-leave-table td[colspan]{display:block;padding:12px 4px;text-align:center!important}
  .energy-table-wrap{margin:0!important}
 }
 html.phone-surface .daily-report-compact-table{margin:0;padding-bottom:0;overflow-x:hidden}
 html.phone-surface .daily-report-compact-table table{min-width:0!important;table-layout:fixed}
 html.phone-surface .daily-report-compact-table th,html.phone-surface .daily-report-compact-table td{padding:8px 7px;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
html.phone-surface .daily-report-efficiency-table td:first-child{width:54%}
html.phone-surface .daily-efficiency-section-title{padding:9px 10px 5px}
html.phone-surface .daily-report-efficiency-table td:first-child{width:42%}
html.phone-surface .daily-metric-link{font-size:12px}
 html.phone-surface .daily-report-leave-table{margin:0;padding:0;overflow:visible}
 html.phone-surface .daily-report-leave-table table,html.phone-surface .daily-report-leave-table tbody,html.phone-surface .daily-report-leave-table tr,html.phone-surface .daily-report-leave-table td{display:block;width:100%;min-width:0}
 html.phone-surface .daily-report-leave-table table{min-width:0!important}
 html.phone-surface .daily-report-leave-table thead{display:none}
 html.phone-surface .daily-report-leave-table tr{margin-bottom:9px;padding:7px 10px;border:1px solid var(--border);border-radius:8px;background:var(--card)}
 html.phone-surface .daily-report-leave-table tr:last-child{margin-bottom:0}
 html.phone-surface .daily-report-leave-table td{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;padding:6px 0;border:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
 html.phone-surface .daily-report-leave-table td[data-label]:before{content:attr(data-label);color:var(--sub);font-size:11px;font-weight:700}
html.phone-surface .daily-report-leave-table td[colspan]{display:block;padding:12px 4px;text-align:center!important}
html.phone-surface .energy-table-wrap{margin:0!important}
html.phone-surface table.table-mobile-compact{min-width:0!important;table-layout:auto}
.vehicle-location-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.vehicle-location-toolbar input{min-width:260px;flex:1}.vehicle-location-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(390px,1fr));gap:10px}.vehicle-location-card{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--card);padding:12px;cursor:pointer;transition:border-color .15s,box-shadow .15s;user-select:text;-webkit-user-select:text}.vehicle-location-card:hover{border-color:var(--blue);box-shadow:0 4px 14px rgba(37,99,235,.1)}.vehicle-location-card:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.vehicle-location-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.vehicle-location-card-identity{display:flex;align-items:center;gap:5px;min-width:0}.vehicle-location-plate{font-size:17px;font-weight:800;white-space:nowrap}.vehicle-location-geofence-badge{display:inline-block;max-width:126px;padding:2px 7px;border-radius:999px;background:#dcfce7;color:#166534;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.vehicle-location-geofence-badge.last-known{background:#fef3c7;color:#92400e}.vehicle-location-mileage{grid-column:1/-1;min-width:0;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vehicle-location-lines{min-width:0;display:grid;grid-template-columns:minmax(220px,1.35fr) minmax(145px,.85fr);gap:5px 10px;font-size:12px;color:var(--sub)}.vehicle-location-lines b{color:var(--text);font-weight:600}.vehicle-location-driver-line{white-space:nowrap;min-width:0}.vehicle-location-side-line{min-width:0;padding-left:0}.vehicle-location-address{grid-column:1/-1;min-width:0;max-width:100%;white-space:normal;word-break:break-all;overflow-wrap:anywhere}.vehicle-location-address b{white-space:normal;word-break:break-all;overflow-wrap:anywhere}.vehicle-location-diagnostic{display:flex;gap:8px;align-items:flex-start;padding:8px 10px;border-radius:8px;background:var(--blue-soft);color:var(--text);font-size:12px;margin-top:8px}.vehicle-location-diagnostic.warning{background:#fff7ed;color:#9a3412}.vehicle-location-last-success{font-weight:700;color:var(--green)}.vehicle-location-last-success.warning{color:#d97706}.vehicle-location-last-success.danger{color:var(--red)}.vehicle-location-map-link{display:inline-flex;align-items:center;text-decoration:none}.location-status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:5px}.location-status-dot.online{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.12)}.location-status-dot.offline{background:#f59e0b}.location-status-dot.none{background:#94a3b8}
.continuous-dispatch-confirm-overlay{position:fixed;inset:0;z-index:880;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,23,42,.52)}
.continuous-dispatch-confirm-dialog{width:min(760px,calc(100vw - 24px));max-height:min(86vh,780px);max-height:min(86dvh,780px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--card);color:var(--text);box-shadow:0 24px 70px rgba(15,23,42,.34)}
.continuous-dispatch-confirm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--border)}
.continuous-dispatch-confirm-head h3{font-size:17px;margin:0}.continuous-dispatch-confirm-head p{margin:4px 0 0;color:var(--sub);font-size:12px}
.continuous-dispatch-confirm-body{padding:16px 18px;overflow:auto;overscroll-behavior:contain}.continuous-dispatch-location{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding:11px 13px;margin-bottom:12px;border:1px solid #bfdbfe;border-radius:10px;background:var(--blue-soft)}
.continuous-dispatch-location-main{min-width:0;overflow-wrap:anywhere}.continuous-dispatch-location-time{color:var(--sub);font-size:12px;text-align:right}.continuous-dispatch-task-list{display:grid;gap:8px}.continuous-dispatch-task{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:8px 12px;align-items:start;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--bg)}
.continuous-dispatch-task-seq{font-weight:800;color:var(--blue)}.continuous-dispatch-task-main{min-width:0}.continuous-dispatch-task-main b{display:block;margin-bottom:3px}.continuous-dispatch-task-meta{color:var(--sub);font-size:12px;line-height:1.55}.continuous-dispatch-confirm-notice{margin-top:12px;padding:10px 12px;border:1px solid #fdba74;border-radius:9px;background:#fff7ed;color:#9a3412;font-size:12px;line-height:1.55}
.continuous-dispatch-confirm-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--border);background:var(--card)}
body.dark-mode .continuous-dispatch-confirm-notice{background:#432407;color:#fed7aa;border-color:#9a5a12}
@media(max-width:700px){.vehicle-location-toolbar{display:grid;grid-template-columns:1fr 110px}.vehicle-location-toolbar input{min-width:0;width:100%}.vehicle-location-toolbar input,.vehicle-location-toolbar select,.stop-alert-filters input,.stop-alert-filters select{font-size:16px}.vehicle-location-toolbar .btn{grid-column:1/-1}.vehicle-location-grid{grid-template-columns:1fr;gap:8px}.vehicle-location-card{padding:10px}.vehicle-location-card-head{align-items:flex-start}.vehicle-location-card-identity{flex-wrap:wrap}.vehicle-location-geofence-badge{max-width:150px}.vehicle-location-lines{grid-template-columns:1fr;gap:4px}.vehicle-location-driver-line{white-space:normal}.vehicle-location-side-line{padding-left:0}.vehicle-location-mileage,.vehicle-location-address{grid-column:auto;white-space:normal}.continuous-dispatch-confirm-overlay{padding:8px}.continuous-dispatch-confirm-dialog{width:100%;max-height:92vh;max-height:92dvh}.continuous-dispatch-confirm-head,.continuous-dispatch-confirm-body{padding:14px}.continuous-dispatch-location{grid-template-columns:1fr}.continuous-dispatch-location-time{text-align:left}.continuous-dispatch-task{grid-template-columns:62px minmax(0,1fr)}.continuous-dispatch-task-status{grid-column:2}.continuous-dispatch-confirm-footer{padding:10px 14px max(10px,env(safe-area-inset-bottom))}}
.employee-management-table{width:100%;max-width:100%;min-width:0;overflow:hidden}
.employee-management-table>.table-wrap{width:100%;max-width:100%;min-width:0}
.employee-management-table table{min-width:1740px}
.employee-management-table th,.employee-management-table td{padding:7px 9px;line-height:1.3;vertical-align:middle}
.employee-management-table th:nth-child(1),.employee-management-table td:nth-child(1){min-width:82px;white-space:nowrap}
.employee-management-table th:nth-child(2),.employee-management-table td:nth-child(2){min-width:92px;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;font-weight:600}
.employee-management-table th:nth-child(3),.employee-management-table td:nth-child(3){min-width:112px;white-space:nowrap}
.employee-management-table th:nth-child(4),.employee-management-table td:nth-child(4){min-width:158px;white-space:nowrap}
.employee-management-table th:nth-child(5),.employee-management-table td:nth-child(5){min-width:78px;white-space:nowrap}
.employee-management-table th:nth-child(6),.employee-management-table td:nth-child(6){min-width:86px;white-space:nowrap}
.employee-management-table th:nth-child(7),.employee-management-table td:nth-child(7){min-width:86px;white-space:nowrap}
.employee-management-table th:nth-child(8),.employee-management-table td:nth-child(8){min-width:102px;white-space:nowrap}
.employee-management-table th:nth-child(9),.employee-management-table td:nth-child(9){min-width:96px;white-space:nowrap}
.employee-management-table th:nth-child(10),.employee-management-table td:nth-child(10){min-width:92px;white-space:nowrap}
.employee-management-table th:nth-child(13),.employee-management-table td:nth-child(13){min-width:102px;white-space:nowrap}
.employee-management-table th:nth-child(14),.employee-management-table td:nth-child(14){min-width:126px}
.employee-management-table th:nth-child(15),.employee-management-table td:nth-child(15){min-width:78px;white-space:nowrap;text-align:center}
.employee-management-table th:nth-child(16),.employee-management-table td:nth-child(16),.employee-management-table .table-actions-column,.employee-management-table .table-actions-cell{width:214px;min-width:214px;max-width:214px}
.employee-row-actions{display:flex;align-items:center;align-content:flex-start;flex-wrap:wrap;gap:4px;width:100%;max-width:100%}
.employee-row-actions .btn{margin:0;white-space:nowrap}
.employee-management-table tbody tr.employee-row-departed td{background:#fef2f2;border-bottom-color:#fecaca}
.employee-management-table tbody tr.employee-row-departed:hover td{background:#fee2e2}
.employee-management-table tbody tr.employee-row-departed td:first-child{box-shadow:inset 4px 0 #dc2626;padding-left:13px;font-weight:700;color:#991b1b}
.employee-status-departed{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border:1px solid #991b1b;background:#b91c1c;color:#fff;font-weight:800;box-shadow:0 1px 2px rgba(127,29,29,.2)}
.employee-status-departed:before{content:"";width:6px;height:6px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.25)}
body.dark-mode .employee-management-table tbody tr.employee-row-departed td{background:#351a22;border-bottom-color:#7f1d1d}
body.dark-mode .employee-management-table tbody tr.employee-row-departed:hover td{background:#47202a}
body.dark-mode .employee-management-table tbody tr.employee-row-departed td:first-child{color:#fecaca}
html.phone-surface .employee-management-table table.mobile-card-table{min-width:0}
html.phone-surface .employee-management-table table.mobile-card-table tr.employee-row-departed{background:#fef2f2;border-color:#fca5a5;box-shadow:inset 4px 0 #dc2626,0 1px 2px rgba(15,23,42,.04)}
html.phone-surface body.dark-mode .employee-management-table table.mobile-card-table tr.employee-row-departed{background:#351a22;border-color:#7f1d1d}
html.phone-surface .employee-management-table table.mobile-card-table td:nth-child(2),html.phone-surface .employee-management-table table.mobile-card-table td:nth-child(2)>.mobile-card-value{white-space:nowrap;word-break:keep-all;overflow-wrap:normal}
@media(min-width:901px){
 .table-wrap.table-fit{overflow-x:hidden}
 .table-wrap.table-fit table{width:100%;min-width:0!important;table-layout:fixed}
 .table-wrap.table-fit th{padding:7px 8px;white-space:normal;overflow-wrap:anywhere}
 .table-wrap.table-fit td{padding:7px 8px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
 .table-wrap.table-fit .table-actions-column,.table-wrap.table-fit .table-actions-cell{width:164px;min-width:164px;max-width:164px}
 .employee-management-table>.table-wrap.table-fit table{min-width:0!important}
 .employee-management-table>.table-wrap.table-fit th,.employee-management-table>.table-wrap.table-fit td{min-width:0!important}
 .employee-management-table>.table-wrap.table-fit th:nth-child(2),.employee-management-table>.table-wrap.table-fit td:nth-child(2){width:72px;white-space:nowrap}
 .employee-management-table>.table-wrap.table-fit .table-actions-column,.employee-management-table>.table-wrap.table-fit .table-actions-cell{width:168px;min-width:168px;max-width:168px}
}
@media(max-width:1100px){.order-filter-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.order-filter-summary{grid-template-columns:1fr}.order-summary-chip{padding:7px 9px}}

/* 大数据页面：先给出可见反馈，再分批显示列表，避免用户误以为页面无响应 */
.page-loading-card{min-height:330px;overflow:hidden}
.page-loading-head{display:flex;align-items:center;gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--border)}
.page-loading-head h3{margin:0 0 4px;font-size:17px;color:var(--text)}
.page-loading-stage{font-size:13px;color:var(--sub)}
.page-loading-spinner{width:22px;height:22px;flex:0 0 22px;border:3px solid var(--blue-soft);border-top-color:var(--blue);border-radius:50%;animation:page-loading-spin .75s linear infinite}
.page-loading-progress{height:3px;margin:0 20px;background:var(--bg);border-radius:999px;overflow:hidden}
.page-loading-progress span{display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),#60a5fa);animation:page-loading-slide 1.15s ease-in-out infinite}
.page-loading-skeleton{display:grid;gap:10px;padding:22px 20px 10px}
.page-loading-skeleton i{display:block;height:42px;border-radius:8px;background:linear-gradient(90deg,var(--bg) 20%,var(--blue-soft) 45%,var(--bg) 70%);background-size:220% 100%;animation:page-loading-shimmer 1.25s linear infinite}
.page-loading-skeleton i:nth-child(2){width:92%}.page-loading-skeleton i:nth-child(3){width:97%}.page-loading-skeleton i:nth-child(4){width:88%}.page-loading-skeleton i:nth-child(5){width:94%}
.page-loading-note{padding:0 20px 20px;color:var(--sub);font-size:12px}
@keyframes page-loading-spin{to{transform:rotate(360deg)}}
@keyframes page-loading-slide{0%{transform:translateX(-115%)}100%{transform:translateX(300%)}}
@keyframes page-loading-shimmer{0%{background-position:100% 0}100%{background-position:-120% 0}}
.large-list-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--border);background:var(--card);color:var(--sub);font-size:12px}
.large-list-pager-actions{display:flex;align-items:center;gap:10px;color:var(--text)}
.large-list-pager .btn[disabled]{opacity:.45;cursor:not-allowed}
.salary-ledger-card{padding:0;overflow:hidden}
.salary-ledger-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;cursor:pointer;list-style:none;user-select:none}
.salary-ledger-summary::-webkit-details-marker{display:none}
.salary-ledger-summary::after{content:'展开明细';flex:0 0 auto;color:var(--pri);font-size:12px;font-weight:700;padding:5px 10px;border:1px solid var(--border);border-radius:999px;background:var(--card)}
.salary-ledger-card[open]>.salary-ledger-summary{border-bottom:1px solid var(--border)}
.salary-ledger-card[open]>.salary-ledger-summary::after{content:'收起明细'}
.salary-ledger-body{padding:0}
.salary-waybill-time-summary{display:flex;align-items:center;gap:6px;margin-top:6px;padding:5px 7px;border-radius:6px;background:var(--panel);font-size:11px;line-height:1.3}
.salary-waybill-time-summary span{color:var(--sub);font-weight:700}
.salary-waybill-time-summary b{color:var(--text);font-size:11px;white-space:nowrap}
.salary-waybill-times{margin-top:5px}
.salary-waybill-times>summary{display:inline-flex;align-items:center;cursor:pointer;color:var(--pri);font-size:11px;font-weight:700;list-style:none}
.salary-waybill-times>summary::-webkit-details-marker{display:none}
.salary-waybill-times>summary:before{content:'＋';margin-right:3px}
.salary-waybill-times[open]>summary:before{content:'－'}
.salary-waybill-time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:6px;padding:7px;border:1px solid var(--border);border-radius:7px;background:var(--card)}
.salary-waybill-time-grid div{min-width:0}
.salary-waybill-time-grid small{display:block;color:var(--sub);font-size:10px;line-height:1.3}
.salary-waybill-time-grid span{display:block;margin-top:1px;color:var(--text);font-size:10.5px;line-height:1.35;overflow-wrap:anywhere}
.salary-adjustment-batch-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:14px 0 8px}
.salary-adjustment-batch-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.salary-adjustment-items{display:grid;gap:8px}
.salary-adjustment-item{display:grid;grid-template-columns:100px minmax(145px,.8fr) 125px minmax(220px,1.5fr) auto;gap:8px;align-items:end;padding:10px;border:1px solid var(--border);border-left:4px solid var(--green);border-radius:9px;background:var(--panel)}
.salary-adjustment-item.is-deduction{border-left-color:var(--red)}
.salary-adjustment-item label{display:block;min-width:0}
.salary-adjustment-item label>span{display:block;margin-bottom:4px;color:var(--sub);font-size:11px;font-weight:700}
.salary-adjustment-item select,.salary-adjustment-item input{display:block;width:100%;min-width:0;height:36px;padding:7px 9px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:var(--text);font:inherit;font-size:13px}
.salary-adjustment-remove{height:36px}
.salary-adjustment-batch-totals{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;margin:9px 0;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--card);font-size:12px}
.audit-log-page-summary{padding:9px 12px;border-bottom:1px solid var(--border);background:var(--panel);color:var(--sub);font-size:12px}
body.dark-mode .page-loading-skeleton i{background:linear-gradient(90deg,#162033 20%,#1e3a5f 45%,#162033 70%);background-size:220% 100%}
@media(prefers-reduced-motion:reduce){.page-loading-spinner,.page-loading-progress span,.page-loading-skeleton i{animation:none}}
@media(max-width:700px){
 .page-loading-card{min-height:280px}.page-loading-head{padding:15px 14px 12px}.page-loading-progress{margin:0 14px}.page-loading-skeleton{padding:18px 14px 8px}.page-loading-note{padding:0 14px 16px}
 .large-list-pager{align-items:stretch;flex-direction:column;padding:10px 12px}.large-list-pager-actions{justify-content:space-between}.large-list-pager-actions .btn{flex:0 0 auto}.salary-ledger-summary{align-items:flex-start;padding:14px 12px}.salary-ledger-summary::after{content:'展开';padding:4px 8px}.salary-ledger-card[open]>.salary-ledger-summary::after{content:'收起'}
 .salary-adjustment-batch-head{align-items:stretch;flex-direction:column}.salary-adjustment-batch-actions{justify-content:stretch}.salary-adjustment-batch-actions .btn{flex:1}.salary-adjustment-item{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.salary-adjustment-reason{grid-column:1/-1}.salary-adjustment-remove{grid-column:1/-1;width:100%}.salary-adjustment-batch-totals{justify-content:flex-start}.salary-waybill-time-grid{grid-template-columns:1fr}
}
