﻿aside nav{gap:7px}
nav button,.report-link{display:flex!important;align-items:center;width:100%;min-height:46px;gap:0}
nav button{font-weight:750;letter-spacing:0;color:#c8ccd2!important;border:1px solid transparent!important}
nav button:hover,.report-link:hover{background:#24272d!important;color:#fff!important;border-color:#373b43!important}
nav button.active,.report-link.active{background:#ffd21c!important;color:#17191c!important;border-color:#ffd21c!important;box-shadow:0 8px 20px #ffd21c2e}
.nav-icon{width:29px!important;height:29px!important;margin-right:11px!important;border:0!important;border-radius:9px!important;background:#2b2e34!important;color:#ffd21c!important;opacity:1!important;flex:0 0 29px}
.nav-icon svg{width:18px!important;height:18px!important;stroke-width:1.9!important}
.brand-copy{display:grid;gap:2px;line-height:1.05}
.brand-copy b{font-size:21px}
.brand-copy small{font-size:12px;color:#aeb4bd;font-weight:800;letter-spacing:.02em}
.active .nav-icon,nav button:hover .nav-icon,.report-link:hover .nav-icon{background:#17191c!important;color:#ffd21c!important}
.user{gap:9px!important}
.report-link{margin:0 0 12px!important;padding:12px 14px!important;background:#22252b!important;border:1px solid #363a42!important;border-radius:12px!important;color:#e8ebef!important;font-weight:800!important;text-align:left!important}
.user b{font-size:14px}.user small{font-size:12px;line-height:1.25}
.driver-actions{gap:8px!important}
.edit-actions{align-items:center!important}
.edit-actions .action-spacer{flex:1 1 auto}
.danger-delete{display:inline-flex;align-items:center;justify-content:center;background:#dc2626!important;color:#fff!important;border:1px solid #b91c1c!important;border-radius:10px!important;padding:12px 16px!important;font-weight:850!important;cursor:pointer;box-shadow:0 8px 16px #dc262633!important}
.danger-delete:hover{background:#b91c1c!important;border-color:#991b1b!important;color:#fff!important}
.danger-delete:active{transform:translateY(1px)}
.compact-driver b{font-size:16px}
.compact-driver .avatar{width:42px;height:42px}
.driver-person{display:grid;gap:4px;text-align:left;border:0;background:transparent;padding:0;cursor:pointer}
.driver-person small,.driver-cell small{font-size:11px;color:#8a929c;font-weight:800;text-transform:uppercase}
.driver-person b{font-size:16px;color:#17191c}
.driver-person span{font-size:13px;color:#68717c}
.driver-person:hover b{text-decoration:underline}
.driver-cell{display:grid;gap:4px}
.driver-cell b{font-size:15px;color:#20242a}
.driver-cell span{font-size:13px;color:#68717c}
.org-cell b{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.address-cell{max-width:360px;min-width:240px;white-space:normal;word-break:break-word;overflow-wrap:anywhere;line-height:1.35;padding-bottom:22px!important}
.wide-field{grid-column:1/-1}
.form-grid textarea.address-field{display:block;width:100%;min-height:88px;height:auto;margin-top:6px;padding:11px 13px;border:1px solid #ddd;border-radius:10px;background:#fff;resize:vertical;line-height:1.35}
.driver-summary{display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.driver-chip{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:8px;font-size:12px;font-weight:700;line-height:1;white-space:nowrap}
.car-chip{background:#f3f5f7;color:#3b424b;border:1px solid #e6e9ed}
.org-chip{background:#fafafa;color:#616974;border:1px solid #eceef1;max-width:430px;overflow:hidden;text-overflow:ellipsis}
.driver-waybill{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:11px;padding:10px 13px;font-weight:850;cursor:pointer;white-space:nowrap;box-shadow:0 6px 14px #0000000d}
.driver-waybill::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.open-waybill{background:#dff6e8;color:#17683a}
.open-waybill:hover{background:#c8efd7}
.close-waybill{background:#fff0f0;color:#b83c3c;border:1px solid #f0caca}
.close-waybill:hover{background:#ffe4e4}
.waybill-action-dialog{width:min(460px,calc(100vw - 32px));border:0;border-radius:22px;padding:24px;box-shadow:0 28px 90px #0005}
.waybill-action-dialog::backdrop{background:#1119;backdrop-filter:blur(3px)}
.waybill-action-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.waybill-action-head .nav-icon{width:46px!important;height:46px!important;margin-right:0!important;background:#ffd21c!important;color:#17191c!important}
.waybill-action-head .nav-icon svg{width:25px!important;height:25px!important}
.waybill-action-head small{display:block;color:#7a828c;font-size:12px;font-weight:800;text-transform:uppercase}
.waybill-action-head h2{margin:3px 0 2px;font-size:20px}
.waybill-action-head p{margin:0;color:#68717c;font-weight:700}
.waybill-action-dialog label{display:block;font-weight:850}
.waybill-action-dialog input{display:block;width:100%;margin-top:8px;font-size:22px;font-weight:850;letter-spacing:0;text-align:center}
.dialog-note{margin:12px 0 0;color:#707985;font-size:13px;line-height:1.4}
.schedule-mini{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px;padding:12px;border:1px solid #e7e9ec;border-radius:13px;background:#fafafa}
.schedule-mini label{font-size:12px!important;color:#626b76}
.schedule-mini input{font-size:16px!important;text-align:left!important}
.schedule-mini b{grid-column:1/-1;font-size:13px;color:#17683a}
.org-driver-count{min-width:42px;border:0;border-radius:10px;background:#eef1f5;color:#20242a;padding:8px 12px;font-weight:850;cursor:pointer}
.org-driver-count:hover{background:#ffd21c}
.org-drivers-dialog{width:min(520px,calc(100vw - 32px));border:0;border-radius:22px;padding:24px;box-shadow:0 28px 90px #0005}
.org-drivers-dialog::backdrop{background:#1119;backdrop-filter:blur(3px)}
.org-drivers-dialog h2{margin:0 34px 4px 0;font-size:21px}
.org-driver-list{display:grid;gap:9px;margin-top:16px}
.org-driver-list article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px;border:1px solid #e7e9ec;border-radius:13px;background:#fafafa}
.org-driver-item{cursor:pointer}
.org-driver-item:hover{background:#fff8d7;border-color:#ffe48a}
.org-driver-list b{font-size:14px}
.org-driver-list span{color:#68717c;font-size:13px;font-weight:750;white-space:nowrap}
.staff-org-list article{align-items:center}
.staff-org-list article>div{min-width:0}
.staff-org-list span{white-space:normal;display:block;margin-top:4px}
.staff-org-list em{font-style:normal;color:#17683a;background:#dff6e8;border:1px solid #bde7cb;border-radius:10px;padding:8px 11px;font-weight:850;white-space:nowrap}
.staff-org-list .is-assigned{background:#f2fbf5;border-color:#ccebd5}
.empty-list{padding:16px;border:1px dashed #d8dde3;border-radius:13px;color:#7b838c;background:#fafafa}
.settings-page{display:grid;gap:16px;padding:20px}
.settings-panel{display:grid;gap:16px;padding:20px;border:1px solid #e7e9ec;border-radius:14px;background:#fff}
.support-panel{border-color:#ffe082;background:linear-gradient(180deg,#fffdf2,#fff)}
.settings-panel h2{margin:0 0 4px;font-size:22px}
.settings-panel p{margin:0;color:#6c7580;line-height:1.4}
.settings-grid{display:grid;grid-template-columns:1fr 1.2fr auto auto;gap:12px;align-items:end}
.settings-grid.support-only{grid-template-columns:minmax(260px,420px) auto}
.settings-grid label,.schedule-driver label{display:grid;gap:6px;color:#68717c;font-size:12px;font-weight:800;text-transform:uppercase}
.settings-grid input,.schedule-driver input{min-height:42px;border:1px solid #dfe3e8;border-radius:10px;padding:10px 12px;font-size:15px;color:#20242a;background:#fff}
.schedule-preview{display:grid;gap:4px;padding:10px 12px;border:1px solid #dfeadd;border-radius:10px;background:#f1faef}
.schedule-preview small{color:#4f7a4d;font-size:11px;font-weight:800;text-transform:uppercase}
.schedule-preview b{color:#17683a;font-size:14px}
.settings-driver-toolbar input{width:100%;min-height:44px;border:1px solid #dfe3e8;border-radius:12px;padding:11px 13px;font-size:15px;color:#20242a;background:#fff}
.support-save{display:inline-flex!important;align-items:center;justify-content:center;width:max-content!important;min-width:0!important;justify-self:start;align-self:end;min-height:36px;border:0;border-radius:10px;padding:8px 13px;background:#17191c;color:#ffd21c;font-size:13px;font-weight:900;cursor:pointer;box-shadow:0 8px 16px #17191c18}
.support-save:hover{background:#2a2d33;color:#ffd21c}
.schedule-driver-list{display:grid;gap:9px}
.schedule-driver{display:grid;grid-template-columns:minmax(260px,1.7fr) 170px minmax(220px,1fr);gap:12px;align-items:center;padding:13px 14px;border:1px solid #e7e9ec;border-radius:13px;background:#fafafa}
@media(max-width:1100px){.settings-grid,.schedule-driver{grid-template-columns:1fr 1fr}.schedule-preview{grid-column:1/-1}}
.report-cards{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;margin:16px 0}
.report-cards article{border:1px solid #e1e5ea;border-radius:8px;background:#fff;padding:14px}
.report-cards small{display:block;color:#66717d;font-size:11px;font-weight:800;text-transform:uppercase}
.report-cards b{display:block;margin-top:6px;font-size:22px}
.mini-report{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e1e5ea;border-radius:8px;overflow:hidden}
.mini-report th,.mini-report td{padding:10px 12px;border-bottom:1px solid #eef1f4;text-align:left}
.mini-report th{background:#fafafa;color:#66717d;font-size:12px;text-transform:uppercase}
.mini-report tr:last-child td{border-bottom:0}
@media(max-width:1100px){.report-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.brand-copy{display:none!important}.report-link{font-size:0!important;justify-content:center}.report-link .nav-icon{margin-right:0!important}}
.vehicle-docs article{position:relative;border-width:1px!important}
.vehicle-docs article em{font-style:normal;font-size:11px;font-weight:850;line-height:1.25}
.vehicle-docs article.doc-ok{background:#eaf8ef!important;border-color:#bde7cb!important;color:#17683a!important}
.vehicle-docs article.doc-ok small,.vehicle-docs article.doc-ok span,.vehicle-docs article.doc-ok em{color:#17683a!important}
.vehicle-docs article.doc-warn{background:#fff7db!important;border-color:#efd16c!important;color:#785900!important}
.vehicle-docs article.doc-warn small,.vehicle-docs article.doc-warn span,.vehicle-docs article.doc-warn em{color:#785900!important}
.vehicle-docs article.doc-danger{background:#fff0f0!important;border-color:#efb8b8!important;color:#b83c3c!important}
.vehicle-docs article.doc-danger small,.vehicle-docs article.doc-danger span,.vehicle-docs article.doc-danger em{color:#b83c3c!important}
.vehicle-docs article.doc-missing{background:#f4f5f6!important;border-color:#e1e4e8!important;color:#737b84!important}
.vehicle-docs article.doc-missing small,.vehicle-docs article.doc-missing span,.vehicle-docs article.doc-missing em{color:#737b84!important}
.archive-history-dialog{width:min(760px,calc(100vw - 32px))}
.mileage-head p{margin:2px 0 0;color:#68717c;font-weight:700}
.archive-waybill-list{display:grid;gap:9px;padding:0 18px 20px}
.archive-waybill-list article{display:grid;grid-template-columns:1fr 1fr 1fr auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid #e7e9ec;border-radius:13px;background:#fafafa}
.archive-waybill-list small{display:block;color:#7a828c;font-size:11px;font-weight:800;text-transform:uppercase}
.archive-waybill-list b{display:block;margin-top:2px;font-size:14px;color:#20242a}
.archive-waybill-list span{display:block;margin-top:2px;color:#737b84;font-size:12px}
@media(max-width:760px){.archive-waybill-list article{grid-template-columns:1fr}.archive-waybill-list .pdf-link{width:max-content}}

#staffDialog{background:#fff;color:#17191c}
#staffDialog .close{color:#17191c}
#staffDialog h2{color:#17191c}
#staffForm{display:grid;gap:18px}
.staff-section{display:grid;gap:16px;padding:18px;border:1px solid #dfe3e8;border-radius:10px;background:#fff}
.staff-section h3{margin:0;color:#17191c;font-size:15px}
.staff-section .form-grid{grid-template-columns:1fr 1fr;gap:14px}
.staff-section label{color:#303640;font-size:12px;font-weight:850}
.staff-section input,.staff-section select,.staff-section textarea{background:#fff!important;border-color:#cfd6df!important;color:#17191c!important}
.staff-section input::placeholder,.staff-section textarea::placeholder{color:#8d96a3}
.staff-section small{display:block;margin-top:7px;color:#6b7280}
.staff-section textarea{height:auto;min-height:52px}
#staffDialog .actions{border-top:1px solid #dfe3e8;padding-top:16px}
#staffDialog .approve{background:#ffd21c;color:#17191c}
.warn-text{color:#b45309!important}
.driver-cell:has(.warn-text){background:#fff7ed!important;border-color:#fed7aa!important}
.admin-balance-widget{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:5px 7px 5px 12px;border-radius:999px;background:linear-gradient(135deg,#fff8d7,#ffffff);border:1px solid #f1d45b;box-shadow:0 8px 18px rgba(42,36,8,.08);color:#181818}
.admin-balance-widget span{font-size:12px;font-weight:900;white-space:nowrap;color:#181818}
.admin-balance-widget button{display:grid;place-items:center;width:30px!important;height:30px!important;min-width:30px;padding:0!important;border:0;border-radius:50%;font-size:19px;line-height:1;font-weight:1000;cursor:pointer;box-shadow:0 4px 10px rgba(0,0,0,.13)}
.admin-balance-widget .balance-plus{background:#19a45b;color:#fff}
.admin-balance-widget .balance-minus{background:#c52f2f;color:#fff}
.balance-adjust-dialog{width:min(440px,calc(100vw - 28px));padding:0;border:0;border-radius:24px;background:#fff;color:#17191c;box-shadow:0 28px 80px #0005}
.balance-adjust-dialog::backdrop{background:#1119;backdrop-filter:blur(4px)}
.balance-adjust-form{position:relative;display:grid;gap:16px;padding:26px}
.balance-dialog-close{position:absolute;right:16px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:#f1f2f4;color:#555;font-size:23px;cursor:pointer}
.balance-dialog-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;color:#fff;font-size:32px;font-weight:900}.balance-dialog-icon.is-plus{background:#19a45b}.balance-dialog-icon.is-minus{background:#c52f2f}
.balance-adjust-form small{color:#777f89;font-size:11px;font-weight:900;letter-spacing:.08em}.balance-adjust-form h2{margin:4px 40px 2px 0;font-size:22px}.balance-adjust-form p{margin:0;color:#737b84}
.balance-dialog-current{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-radius:16px;background:#fff8d7;border:1px solid #f1d45b}.balance-dialog-current span{color:#665b28;font-weight:750}.balance-dialog-current strong{font-size:22px}
.balance-adjust-form label{display:grid;gap:8px;color:#343a42;font-size:13px;font-weight:850}.balance-adjust-form input{width:100%;height:56px;padding:0 16px;border:2px solid #dfe3e8;border-radius:15px;background:#fff;color:#17191c;font-size:24px;font-weight:900;outline:0}.balance-adjust-form input:focus{border-color:#f0c900;box-shadow:0 0 0 4px #ffd90025}
.balance-dialog-preview{padding:12px 15px;border-radius:13px;background:#f5f6f7;color:#68717c}.balance-dialog-preview b{float:right;color:#17191c}
.balance-dialog-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:10px}.balance-dialog-actions button{min-height:48px;border:0;border-radius:14px;font-weight:900;cursor:pointer}.balance-cancel{background:#eef0f2;color:#424851}.balance-confirm{color:#fff}.balance-confirm.is-plus{background:#19a45b}.balance-confirm.is-minus{background:#c52f2f}
.balance-history-list{display:grid;gap:9px;max-height:45vh;overflow:auto}.balance-history-list article{display:grid;gap:4px;padding:12px 14px;border:1px solid #e6e9ee;border-radius:14px;background:#fafafa}.balance-history-list article div{display:flex;justify-content:space-between;gap:12px}.balance-history-list b{font-size:16px}.balance-history-list b.plus{color:#16884f}.balance-history-list b.minus{color:#c52f2f}.balance-history-list span{font-weight:800;color:#222}.balance-history-list small{color:#737b84}
.table-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0 4px;padding:12px 14px;border:1px solid #e1e5ea;border-radius:14px;background:#fff}.table-pagination>span{color:#68717c;font-size:13px;font-weight:750}.table-pagination>div{display:flex;align-items:center;gap:6px}.table-pagination button{display:grid;place-items:center;min-width:38px;height:38px;padding:0 10px;border:1px solid #dfe3e8;border-radius:10px;background:#fff;color:#303640;font-weight:850;cursor:pointer}.table-pagination button:hover:not(:disabled){border-color:#e1bf19;background:#fff9d8}.table-pagination button.active{border-color:#17191c;background:#17191c;color:#ffd21c}.table-pagination button:disabled{opacity:.35;cursor:default}.table-pagination i{padding:0 3px;color:#8a9199;font-style:normal}
@media(max-width:760px){.balance-dialog-actions{grid-template-columns:1fr}.table-pagination{align-items:flex-start;flex-direction:column}.table-pagination>div{max-width:100%;overflow-x:auto}}
@media(max-width:1366px) and (min-width:901px){
 aside{width:220px;padding:18px 14px}
 main{margin-left:220px;width:calc(100% - 220px);padding:22px 26px}
 .brand{margin-bottom:22px;font-size:18px}
 nav button{padding:10px 11px;border-radius:10px;font-size:14px}
 h1{font-size:25px}
 header p{margin:6px 0 0;font-size:13px}
 .stats{gap:10px;margin:18px 0}
 .stats article{padding:14px}
 .stats strong{font-size:24px}
 .toolbar{padding:12px}
 th,td{padding:11px 12px}
 .driver-actions{gap:5px}
 .open,.actions button{padding:8px 11px}
 .panel{border-radius:13px}
 dialog{max-height:90vh;overflow:auto}
 .wide{width:min(860px,92vw)}
 .form-grid{gap:10px}
 .details{gap:9px}
 .vehicle-docs{grid-template-columns:repeat(3,minmax(105px,1fr))}
}

@media(max-width:760px){
 body{display:block;background:#f4f5f6}
 aside{position:sticky;top:0;z-index:20;width:100%;height:auto;inset:auto;padding:10px 12px;display:block}
 .brand{margin:0 0 10px;font-size:18px}
 .brand img{width:36px;height:36px}
 .brand-copy{display:grid!important}
 aside nav{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
 nav button,.report-link{width:auto!important;min-width:48px;min-height:42px;flex:0 0 auto;padding:9px 11px!important;font-size:0!important}
 nav button .nav-icon,.report-link .nav-icon{margin-right:0!important}
 .user{display:none!important}
 main{margin-left:0;width:100%;padding:18px 12px 26px}
 header{display:grid;gap:14px;align-items:start}
 h1{font-size:25px;line-height:1.1}
 .header-actions{display:flex;gap:8px;flex-wrap:wrap}
 #addDriver{width:100%;min-height:44px}
 .badge{display:none}
 .stats{grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
 .stats article{padding:14px;border-radius:12px}
 .stats strong{font-size:23px}
 .toolbar{display:grid;grid-template-columns:1fr;gap:10px;padding:12px}
 .panel{border-radius:12px;overflow:auto}
 table{min-width:720px}
 th,td{padding:12px}
 dialog,.wide,#staffDialog{width:calc(100vw - 18px);max-width:none;max-height:calc(100dvh - 18px);padding:18px;border-radius:14px}
 dialog .close{position:sticky;top:0;float:none;margin-left:auto;display:block;z-index:2}
 .form-grid,.staff-section .form-grid,.settings-grid,.settings-grid.support-only,.schedule-driver{grid-template-columns:1fr!important}
 .wide-field{grid-column:auto}
 .actions,.edit-actions{display:grid;grid-template-columns:1fr;gap:9px}
 .edit-actions .action-spacer{display:none}
 .actions button,.danger-delete{width:100%}
 .driver-actions{justify-content:stretch}
 .driver-actions button,.driver-waybill{width:100%;justify-content:center}
 .admin-balance-widget{width:100%;justify-content:space-between;border-radius:14px}
 .admin-balance-widget button{width:34px!important;height:34px!important;min-width:34px}
 .details{grid-template-columns:1fr}
 .settings-page{padding:12px;gap:12px}
 .settings-panel{padding:15px}
 .schedule-driver{gap:10px}
 .report-cards{grid-template-columns:1fr}
 .archive-waybill-list{padding:0 0 16px}
 .archive-waybill-list article,.mileage-list article{grid-template-columns:1fr}
}


/* 2026-08-02 safe cabinet/search/to patch */
.vehicle-combo-label{grid-column:1 / -1;}
.vehicle-select-search{margin:6px 0 8px;width:100%;box-sizing:border-box;}
.vehicle-docs{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:8px;min-width:720px;}
.panel{overflow:auto;}
.panel table{min-width:1120px;}
.to-card{border:1px solid #d9e2ec;border-radius:10px;background:#f8fafc;padding:10px 12px;text-align:left;font:inherit;cursor:pointer;color:#111827;}
.to-card small{display:block;color:#64748b;font-weight:800;text-transform:uppercase;font-size:11px;margin-bottom:5px;}
.to-card b{display:block;font-size:13px;margin-bottom:4px;}
.to-card span{display:block;color:#475569;font-size:12px;}
.to-card.ok{background:#ecfdf3;border-color:#b7ebc6;color:#075e2a;}
.to-card.warn{background:#fff8db;border-color:#ffd45a;color:#7a4a00;}
.to-card.bad{background:#fff1f2;border-color:#fca5a5;color:#9f1239;}
#vehicleToDialog form{min-width:min(520px,92vw);display:grid;gap:14px;}
.cabinet-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
.cabinet-employees{display:grid;gap:10px;}
.cabinet-employee-card{display:grid;grid-template-columns:180px 1fr 120px;gap:12px;align-items:center;border:1px solid #e2e8f0;border-radius:14px;padding:14px;background:#fff;}
.cabinet-pages-checks{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px;margin:12px 0;}
@media(max-width:1200px){main{overflow-x:auto;}.vehicle-docs{grid-template-columns:repeat(4,minmax(145px,1fr));}}


/* 2026-08-02 polish3: compact vehicle cards, TO, cabinet dialog */
.panel{overflow:auto;}
#rows{min-width:1120px;}
.vehicle-docs{display:grid!important;grid-template-columns:repeat(4,minmax(128px,1fr))!important;gap:7px!important;min-width:640px!important;overflow-x:auto!important;padding-bottom:2px!important;}
.vehicle-docs .doc-card,.vehicle-docs .to-card{min-height:58px!important;padding:9px 10px!important;border-radius:10px!important;font-size:11px!important;line-height:1.22!important;}
.vehicle-docs .doc-card b,.vehicle-docs .to-card b{font-size:12px!important;line-height:1.18!important;}
.vehicle-docs .doc-card span,.vehicle-docs .to-card span{font-size:11px!important;line-height:1.15!important;}
.to-card{border:1px solid #d9e7ff;background:linear-gradient(135deg,#fff,#eef6ff);text-align:left;cursor:pointer;box-shadow:0 5px 14px rgba(15,23,42,.06);}
.to-card small{display:inline-flex;align-items:center;gap:4px;color:#64748b;font-weight:900;text-transform:uppercase;letter-spacing:.03em;}
.to-card small:before{content:none!important;}
.to-card.ok{border-color:#bae6bd;background:linear-gradient(135deg,#f7fff8,#eaf8ee);}
.to-card.warn{border-color:#facc15;background:linear-gradient(135deg,#fffdf2,#fff7cc);}
.to-card.bad{border-color:#fca5a5;background:linear-gradient(135deg,#fff5f5,#ffe4e6);}
.to-dialog form{min-width:min(620px,92vw);}
.to-dialog-head,.employee-dialog-head{display:flex;align-items:center;gap:14px;margin-bottom:18px;}
.to-dialog-head span,.employee-dialog-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#fff3bf;font-size:24px;box-shadow:0 8px 20px rgba(0,0,0,.08);}
.to-dialog-head h2,.employee-dialog-head h2{margin:0;font-size:24px;}
.to-dialog-head p,.employee-dialog-head p{margin:4px 0 0;color:#64748b;}
.nav button[data-page="cabinet"]:before{content:none!important;font-size:16px;}
.cabinet-employee-dialog{border-radius:24px!important;}
.employee-dialog-head{padding-right:34px;}
.employee-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px;}
.employee-form-grid label{font-weight:800;color:#475569;}
.employee-form-grid input,.employee-form-grid select{margin-top:7px;}
.password-eye-wrap{display:flex;align-items:center;border:1px solid #d8dee8;border-radius:12px;background:#fff;overflow:hidden;margin-top:7px;}
.password-eye-wrap input{border:0!important;margin:0!important;box-shadow:none!important;flex:1;min-width:0;}
.password-eye-toggle{width:46px;height:42px;border:0;background:#f8fafc;cursor:pointer;font-size:17px;}
.password-eye-toggle.active{background:#fff3bf;}
.cabinet-pages-checks{display:grid!important;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px!important;margin:12px 0 18px!important;}
.cabinet-pages-checks label{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;font-weight:800;}
.cabinet-pages-checks input{width:18px;height:18px;accent-color:#facc15;}
.cabinet-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
.cabinet-top h2:before{content:'?? ';}
.cabinet-employee-card{border:1px solid #e2e8f0;border-radius:18px;background:linear-gradient(135deg,#fff,#f8fafc);padding:14px;display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:center;}
@media(max-width:900px){.employee-form-grid,.cabinet-pages-checks{grid-template-columns:1fr!important}.vehicle-docs{min-width:560px!important}.cabinet-employee-card{grid-template-columns:1fr}}


/* 2026-08-02 vehicle-to-cabinet4 */
#rows{min-width:1220px!important;}
.panel,.table-wrap,.content-card{overflow-x:auto!important;}
.vehicle-docs{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:8px!important;min-width:max-content!important;overflow-x:auto!important;padding:2px 2px 4px!important;}
.vehicle-docs .doc-card,.vehicle-docs .to-card{flex:0 0 150px!important;width:150px!important;min-height:64px!important;padding:9px 10px!important;border-radius:10px!important;font-size:11px!important;box-sizing:border-box!important;}
.vehicle-docs .doc-card b,.vehicle-docs .to-card b{font-size:12px!important;line-height:1.18!important;white-space:normal!important;}
.vehicle-docs .doc-card span,.vehicle-docs .to-card span{font-size:10.5px!important;line-height:1.15!important;white-space:normal!important;}
.to-card small:before{content:none!important;}
.to-card small{font-size:10px!important;color:#64748b!important;letter-spacing:.04em!important;}
.to-card{background:#f0fdf4!important;border:1px solid #bbf7d0!important;color:#064e3b!important;}
.to-card.warn{background:#fffbeb!important;border-color:#facc15!important;color:#713f12!important;}
.to-card.bad{background:#fff1f2!important;border-color:#fca5a5!important;color:#7f1d1d!important;}
.to-dialog form{border-radius:22px!important;padding:24px!important;}
.to-dialog-head{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.to-dialog-head span{width:42px;height:42px;border-radius:14px;background:#fff7cc;display:grid;place-items:center;font-size:20px;}
.to-dialog-head h2{font-size:22px;margin:0;}
.to-dialog-head p{margin:3px 0 0;color:#64748b;}
/* Cabinet: calm, compact, correct */
.nav button[data-page="cabinet"]:before{content:''!important;}
.nav button[data-page="cabinet"] .nav-icon,.nav button[data-page="cabinet"]:after{content:none!important;}
.cabinet-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;padding:14px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;}
.cabinet-top h2{margin:0;font-size:22px;}
.cabinet-top h2:before{content:''!important;}
.cabinet-top p{margin:4px 0 0;color:#64748b;}
.cabinet-employees{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;}
.cabinet-employee-card{border:1px solid #e2e8f0!important;border-radius:16px!important;background:#fff!important;padding:14px!important;display:grid!important;grid-template-columns:1fr!important;gap:10px!important;box-shadow:none!important;}
.cabinet-employee-card small{font-size:11px;color:#64748b;text-transform:uppercase;font-weight:800;}
.cabinet-employee-card b{font-size:15px;}
.cabinet-employee-dialog form{border-radius:22px!important;padding:24px!important;}
.employee-dialog-head{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding-right:32px;}
.employee-dialog-icon{width:42px!important;height:42px!important;border-radius:14px!important;background:#f8fafc!important;box-shadow:none!important;font-size:20px!important;}
.employee-dialog-head h2{font-size:22px!important;margin:0!important;}
.employee-dialog-head p{font-size:14px!important;margin:3px 0 0!important;color:#64748b!important;}
.employee-form-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;}
.cabinet-pages-checks{display:grid!important;grid-template-columns:repeat(3,minmax(145px,1fr))!important;gap:8px!important;}
.cabinet-pages-checks label{padding:9px 10px!important;border-radius:12px!important;background:#f8fafc!important;border:1px solid #e2e8f0!important;font-size:13px!important;}
@media(max-width:900px){#rows{min-width:1180px!important}.employee-form-grid,.cabinet-pages-checks{grid-template-columns:1fr!important}}


/* 2026-08-02 docs-to-final2: compact vehicle docs, TO first, cabinet polish */
.table-wrap,.panel{overflow-x:auto!important;}
#rows{min-width:1240px!important;}
#rows td{vertical-align:middle!important;}
#rows td:nth-child(3){overflow-x:auto!important;}
.vehicle-docs{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:6px!important;
  min-width:max-content!important;
  overflow-x:auto!important;
  padding:2px 4px 8px!important;
  scrollbar-width:thin!important;
}
.vehicle-docs .doc-card,.vehicle-docs .to-card{
  flex:0 0 132px!important;
  width:132px!important;
  min-height:54px!important;
  padding:8px 9px!important;
  border-radius:9px!important;
  font-size:10.5px!important;
  line-height:1.12!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
}
.vehicle-docs .doc-card small,.vehicle-docs .to-card small{
  display:block!important;
  font-size:9.5px!important;
  line-height:1.05!important;
  margin-bottom:4px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  color:#64748b!important;
}
.vehicle-docs .doc-card b,.vehicle-docs .to-card b{font-size:11.2px!important;line-height:1.12!important;white-space:normal!important;}
.vehicle-docs .doc-card span,.vehicle-docs .to-card span{font-size:9.8px!important;line-height:1.1!important;white-space:normal!important;}
.vehicle-docs .to-card{
  order:-10!important;
  flex-basis:138px!important;
  width:138px!important;
  border:1px solid #86efac!important;
  background:linear-gradient(135deg,#f0fdf4,#dcfce7)!important;
  color:#064e3b!important;
  cursor:pointer!important;
}
.vehicle-docs .to-card small{color:#166534!important;}
.vehicle-docs .to-card.warn{background:linear-gradient(135deg,#fff7ed,#fef3c7)!important;border-color:#f59e0b!important;color:#78350f!important;}
.vehicle-docs .to-card.bad{background:linear-gradient(135deg,#fff1f2,#ffe4e6)!important;border-color:#f87171!important;color:#7f1d1d!important;}
.to-dialog{border:0!important;border-radius:20px!important;padding:0!important;max-width:720px!important;width:min(720px,92vw)!important;}
.to-dialog form{position:relative!important;padding:30px!important;font-family:Inter,Arial,sans-serif!important;}
.to-dialog .close,.cabinet-employee-close{
  position:absolute!important;
  right:18px!important;
  top:16px!important;
  width:30px!important;
  height:30px!important;
  border:1px solid #d1d5db!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:20px!important;
  line-height:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.to-dialog-head{display:flex!important;gap:14px!important;align-items:center!important;margin-bottom:22px!important;}
.to-dialog-head span{width:44px!important;height:44px!important;border-radius:14px!important;background:#fef3c7!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.cabinet-page,.cabinet-employee-dialog,.cabinet-employee-dialog *{font-family:Inter,Arial,sans-serif!important;}
.cabinet-page{padding:18px!important;}
.cabinet-top{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:16px!important;border:1px solid #e5e7eb!important;border-radius:14px!important;background:#fff!important;margin-bottom:14px!important;}
.cabinet-top h2{font-size:20px!important;margin:0 0 4px!important;}
.cabinet-top p{font-size:13px!important;margin:0!important;color:#64748b!important;}
.cabinet-employee-card{display:grid!important;grid-template-columns:220px 1fr auto!important;gap:14px!important;align-items:center!important;padding:14px!important;border:1px solid #e5e7eb!important;border-radius:14px!important;background:#fff!important;margin-bottom:10px!important;}
.cabinet-employee-card small{font-size:11px!important;text-transform:uppercase!important;color:#64748b!important;font-weight:800!important;}
.cabinet-employee-card b{font-size:14px!important;line-height:1.2!important;}
.cabinet-employee-card span{display:block!important;font-size:12px!important;color:#64748b!important;margin-top:4px!important;}
#cabinetEmployeeDialog{max-width:760px!important;width:min(760px,92vw)!important;border:0!important;border-radius:20px!important;padding:30px!important;}
#cabinetEmployeeDialog h2{font-size:22px!important;margin:0 0 6px!important;}
#cabinetEmployeeDialog form{font-family:Inter,Arial,sans-serif!important;}
.cabinet-pages-checks{display:grid!important;grid-template-columns:repeat(3,minmax(150px,1fr))!important;gap:8px!important;}
.cabinet-pages-checks label{padding:12px!important;border:1px solid #e5e7eb!important;border-radius:12px!important;background:#f8fafc!important;font-size:13px!important;}
button[data-page="cabinet"] .nav-icon:before{content:"\1F465"!important;font-size:14px!important;}
button[data-page="cabinet"] .nav-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;}
@media(max-width:1100px){#rows{min-width:1180px!important}.vehicle-docs .doc-card,.vehicle-docs .to-card{flex-basis:126px!important;width:126px!important}.cabinet-employee-card{grid-template-columns:1fr!important}}


/* 2026-08-02 vehicle-scroll-final: responsive vehicle table without page horizontal overflow */
html,body{
  max-width:100%!important;
  overflow-x:hidden!important;
}
main{
  max-width:100vw!important;
  overflow-x:hidden!important;
}
.panel,.table-wrap{
  max-width:100%!important;
  overflow:hidden!important;
  border-radius:16px!important;
  background:#fff!important;
  border:1px solid #e5e7eb!important;
  box-shadow:0 10px 30px rgba(15,23,42,.04)!important;
}
#rows{
  min-width:0!important;
  width:100%!important;
}
body:has(button[data-page="vehicles"].active) .panel,
body:has(button[data-page="vehicles"].active) .table-wrap{
  overflow-x:auto!important;
  overflow-y:visible!important;
  scrollbar-width:thin!important;
  scrollbar-color:#cbd5e1 #f8fafc!important;
  -webkit-overflow-scrolling:touch!important;
}
body:has(button[data-page="vehicles"].active) table{
  min-width:1120px!important;
  border-collapse:separate!important;
  border-spacing:0 8px!important;
}
body:has(button[data-page="vehicles"].active) #tableHead tr{
  background:#f8fafc!important;
}
body:has(button[data-page="vehicles"].active) #rows tr{
  background:#fff!important;
  outline:1px solid #e8edf3!important;
  border-radius:14px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.035)!important;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
}
body:has(button[data-page="vehicles"].active) #rows tr:hover{
  outline-color:#d5dee9!important;
  box-shadow:0 10px 24px rgba(15,23,42,.07)!important;
}
body:has(button[data-page="vehicles"].active) #rows td{
  background:transparent!important;
  border-top:0!important;
  border-bottom:0!important;
  padding:12px 12px!important;
}
body:has(button[data-page="vehicles"].active) #rows td:first-child{
  border-radius:14px 0 0 14px!important;
}
body:has(button[data-page="vehicles"].active) #rows td:last-child{
  border-radius:0 14px 14px 0!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:7px!important;
  min-width:max-content!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:1px 3px 8px!important;
  scrollbar-width:thin!important;
  scrollbar-color:#cbd5e1 #f8fafc!important;
  -webkit-overflow-scrolling:touch!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs::-webkit-scrollbar,
body:has(button[data-page="vehicles"].active) .table-wrap::-webkit-scrollbar,
body:has(button[data-page="vehicles"].active) .panel::-webkit-scrollbar{
  height:6px!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs::-webkit-scrollbar-track,
body:has(button[data-page="vehicles"].active) .table-wrap::-webkit-scrollbar-track,
body:has(button[data-page="vehicles"].active) .panel::-webkit-scrollbar-track{
  background:#f8fafc!important;
  border-radius:999px!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs::-webkit-scrollbar-thumb,
body:has(button[data-page="vehicles"].active) .table-wrap::-webkit-scrollbar-thumb,
body:has(button[data-page="vehicles"].active) .panel::-webkit-scrollbar-thumb{
  background:#cbd5e1!important;
  border-radius:999px!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .doc-card,
body:has(button[data-page="vehicles"].active) .vehicle-docs .to-card{
  flex:0 0 124px!important;
  width:124px!important;
  min-height:52px!important;
  padding:7px 8px!important;
  border-radius:10px!important;
  border-width:1px!important;
  box-shadow:0 3px 10px rgba(15,23,42,.035)!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .doc-card small,
body:has(button[data-page="vehicles"].active) .vehicle-docs .to-card small{
  font-size:9px!important;
  line-height:1!important;
  margin-bottom:3px!important;
  color:#64748b!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .doc-card b,
body:has(button[data-page="vehicles"].active) .vehicle-docs .to-card b{
  font-size:10.5px!important;
  line-height:1.12!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .doc-card span,
body:has(button[data-page="vehicles"].active) .vehicle-docs .to-card span{
  font-size:9.3px!important;
  line-height:1.1!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .to-card{
  order:-100!important;
  flex-basis:136px!important;
  width:136px!important;
  background:linear-gradient(135deg,#f0fdf4,#dcfce7)!important;
  border-color:#86efac!important;
  color:#064e3b!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .to-card small{
  color:#15803d!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .to-card.warn{
  background:linear-gradient(135deg,#fff7ed,#fef3c7)!important;
  border-color:#f59e0b!important;
  color:#78350f!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .to-card.bad{
  background:linear-gradient(135deg,#fff1f2,#ffe4e6)!important;
  border-color:#f87171!important;
  color:#7f1d1d!important;
}
body:has(button[data-page="vehicles"].active) #rows .edit{
  padding:8px 13px!important;
  min-width:auto!important;
  border:1px solid #f59e0b!important;
  background:#fffbeb!important;
  color:#111827!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
@media(max-width:1024px){
  body:has(button[data-page="vehicles"].active) table{min-width:1080px!important;}
}
@media(max-width:768px){
  body:has(button[data-page="vehicles"].active) table{min-width:1060px!important;}
}
@media(max-width:390px){
  body:has(button[data-page="vehicles"].active) .panel,
  body:has(button[data-page="vehicles"].active) .table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
  }
  body:has(button[data-page="vehicles"].active) table{min-width:1040px!important;}
}


/* 2026-08-03 safe final: fonts, x buttons, document cards, TO thresholds */
html,body,button,input,select,textarea,dialog{
  font-family:Inter,Arial,"Segoe UI",sans-serif!important;
}
.close,.driver-close,.organization-close,.vehicle-close,.staff-close,.cabinet-employee-close,.to-dialog .close{
  width:32px!important;height:32px!important;min-width:32px!important;
  border:1px solid #d1d5db!important;border-radius:9px!important;background:#fff!important;color:#111827!important;
  font-size:20px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-shadow:0 4px 12px rgba(15,23,42,.06)!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .doc-card{
  background:#fff!important;border-color:#e2e8f0!important;color:#334155!important;border-radius:10px!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .doc-card.doc-ok{background:#f0fdf4!important;border-color:#bbf7d0!important;color:#166534!important;}
body:has(button[data-page="vehicles"].active) .vehicle-docs .doc-card.doc-warn{background:#fffbeb!important;border-color:#facc15!important;color:#854d0e!important;}
body:has(button[data-page="vehicles"].active) .vehicle-docs .doc-card.doc-danger{background:#fff1f2!important;border-color:#fda4af!important;color:#9f1239!important;}
body:has(button[data-page="vehicles"].active) .vehicle-docs .doc-card.doc-missing{background:#f8fafc!important;border-color:#e2e8f0!important;color:#64748b!important;}
body:has(button[data-page="vehicles"].active) .vehicle-docs .to-card{
  background:linear-gradient(135deg,#ecfeff,#dcfce7)!important;border-color:#7dd3fc!important;border-left:4px solid #22c55e!important;border-radius:10px!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .to-card.warn{
  background:linear-gradient(135deg,#fff7ed,#fef3c7)!important;border-color:#f59e0b!important;border-left-color:#f59e0b!important;
}
body:has(button[data-page="vehicles"].active) .vehicle-docs .to-card.bad{
  background:linear-gradient(135deg,#fff1f2,#ffe4e6)!important;border-color:#fb7185!important;border-left-color:#e11d48!important;
}


/* Cabinet + vehicle search polish 2026-08-03 */
.modal-close,.cabinet-employee-close,dialog button.close{width:34px!important;height:34px!important;border:1px solid #d8dee8!important;border-radius:9px!important;background:#fff!important;color:#111827!important;font-size:0!important;display:inline-grid!important;place-items:center!important;box-shadow:0 8px 18px rgba(15,23,42,.08)}
.modal-close::before,.cabinet-employee-close::before,dialog button.close::before{content:"\00D7";font-size:20px;font-weight:800;line-height:1}
#cabinetEmployeeDialog{border:0;border-radius:22px;padding:0;box-shadow:0 24px 70px rgba(15,23,42,.28);max-width:min(820px,calc(100vw - 28px));width:820px}
#cabinetEmployeeDialog::backdrop{background:rgba(15,23,42,.45);backdrop-filter:blur(2px)}
#cabinetEmployeeDialog form{padding:28px;display:grid;gap:22px}
.cabinet-employee-title{display:grid!important;grid-template-columns:44px 1fr auto!important;align-items:start!important;gap:14px!important}
.cabinet-employee-title h2{margin:0!important;font-size:24px!important;line-height:1.15!important}
.cabinet-employee-title p{margin:5px 0 0!important;color:#64748b!important;font-size:14px!important}
#cabinetEmployeeForm .employee-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px 20px!important;align-items:end!important}
#cabinetEmployeeForm label{display:grid!important;gap:7px!important;font-size:13px!important;font-weight:800!important;color:#526071!important}
#cabinetEmployeeForm input,#cabinetEmployeeForm select{height:42px!important;border:1px solid #d7deea!important;border-radius:10px!important;padding:0 14px!important;font-size:14px!important;background:#fff!important;box-sizing:border-box!important}
.password-field{display:grid!important;grid-template-columns:1fr 46px!important;border:1px solid #d7deea!important;border-radius:10px!important;background:#fff!important;overflow:hidden!important;height:44px!important}
.password-field input{border:0!important;height:42px!important}
.password-field button{border:0!important;border-left:1px solid #e8edf5!important;background:#f8fafc!important;cursor:pointer!important}
.employee-pages{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
.employee-pages label{display:flex!important;align-items:center!important;gap:10px!important;min-height:54px!important;border:1px solid #dfe6f0!important;border-radius:12px!important;background:#f8fafc!important;padding:0 14px!important;color:#111827!important}
.employee-pages input{width:18px!important;height:18px!important;padding:0!important;accent-color:#facc15!important}
.employee-password-table-card{margin-top:16px;border:1px solid #dde5ef;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.06);overflow:hidden}
.employee-password-head{display:flex;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid #edf1f6}
.employee-password-head h3{margin:0;font-size:18px;line-height:1.2}
.employee-password-head p{margin:5px 0 0;color:#64748b;font-size:13px}
.employee-password-table-wrap{overflow-x:auto;scrollbar-width:thin}
.employee-password-table{width:100%;min-width:760px;border-collapse:separate;border-spacing:0}
.employee-password-table th,.employee-password-table td{padding:13px 16px;border-bottom:1px solid #edf1f6;text-align:left;font-size:13px;vertical-align:top}
.employee-password-table th{color:#64748b;text-transform:uppercase;font-size:11px;letter-spacing:.04em;background:#f8fafc}
.employee-password-table tr:last-child td{border-bottom:0}
.pass-ok,.pass-warn{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-weight:800;font-size:12px}
.pass-ok{background:#dcfce7;color:#166534}
.pass-warn{background:#fef3c7;color:#92400e}
.vehicle-search-suggestions{display:none;position:absolute;z-index:80;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #dbe3ee;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.18);padding:7px;max-height:270px;overflow:auto}
.vehicle-search-suggestions.show{display:block}
.vehicle-search-suggestions button{width:100%;border:0;background:#fff;border-radius:10px;padding:10px 12px;text-align:left;display:grid;gap:3px;cursor:pointer}
.vehicle-search-suggestions button:hover{background:#fff7d6}
.vehicle-search-suggestions b{font-size:14px;color:#111827}
.vehicle-search-suggestions span,.vehicle-search-suggestions p{font-size:12px;color:#64748b;margin:0}
#driverVehicleSearch{position:relative}
#driverVehicleSearch+ .vehicle-search-suggestions{width:100%}
@media(max-width:760px){
  #cabinetEmployeeDialog form{padding:20px}
  #cabinetEmployeeForm .employee-grid,.employee-pages{grid-template-columns:1fr!important}
}


/* Final cabinet cleanup 2026-08-03 */
.cabinet-top-only-action{justify-content:flex-end!important;min-height:58px!important}
.cabinet-top-only-action>span{display:none!important}
.employee-password-head p{display:none!important}
.employee-password-table{min-width:620px!important}
.to-dialog .close{
  font-size:0!important;
  line-height:1!important;
  color:#111827!important;
}
.to-dialog .close::before{
  content:"\00D7"!important;
  font-size:20px!important;
  font-weight:900!important;
  line-height:1!important;
}
.to-dialog .close::after{content:none!important;display:none!important}


/* 2026-08-03 cabinet/driver search cleanup */
.cabinet-top-only-action{display:flex!important;justify-content:flex-end!important;align-items:center!important;padding:16px!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:14px!important;}
.cabinet-employees{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin:14px 0 18px!important;}
.cabinet-employee-card{display:grid!important;grid-template-columns:minmax(180px,240px) 1fr auto!important;align-items:center!important;gap:18px!important;width:100%!important;padding:14px 16px!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:14px!important;box-shadow:0 8px 22px rgba(15,23,42,.04)!important;}
.cabinet-employee-card small{display:block!important;margin-bottom:4px!important;text-transform:uppercase!important;color:#64748b!important;font-size:11px!important;font-weight:800!important;letter-spacing:.02em!important;}
.cabinet-employee-card b{display:block!important;font-size:14px!important;line-height:1.25!important;color:#0f172a!important;}
.cabinet-employee-card span{display:block!important;margin-top:4px!important;font-size:12px!important;color:#475569!important;}
.cabinet-employee-card .cabinet-employee-edit{justify-self:end!important;padding:9px 14px!important;border-radius:10px!important;background:#fff8e1!important;border:1px solid #facc15!important;color:#111827!important;}
.cabinet-employee-dialog-delete{margin-right:auto!important;background:#fff!important;color:#dc2626!important;border:1px solid #ef4444!important;border-radius:10px!important;padding:10px 14px!important;}
#cabinetEmployeeDialog .modal-actions,#cabinetEmployeeDialog .form-actions,#cabinetEmployeeDialog form>div:last-child{display:flex!important;align-items:center!important;gap:10px!important;}
.vehicle-search-suggestions.floating{position:absolute!important;z-index:2147483000!important;max-height:260px!important;overflow:auto!important;background:#fff!important;border:1px solid #dbe3ef!important;border-radius:14px!important;box-shadow:0 18px 45px rgba(15,23,42,.20)!important;padding:8px!important;}
.vehicle-search-suggestions.floating:not(.show){display:none!important;}
.vehicle-search-suggestions.floating button{display:block!important;width:100%!important;text-align:left!important;padding:10px 12px!important;border:0!important;border-radius:10px!important;background:#fff!important;cursor:pointer!important;}
.vehicle-search-suggestions.floating button:hover{background:#fff7d6!important;}
.vehicle-search-suggestions.floating b{display:block!important;color:#0f172a!important;font-size:13px!important;}
.vehicle-search-suggestions.floating span{display:block!important;color:#64748b!important;font-size:12px!important;margin-top:2px!important;}
.vehicle-search-suggestions.floating p{margin:6px 8px!important;color:#64748b!important;font-size:13px!important;}
@media (max-width:760px){.cabinet-employee-card{grid-template-columns:1fr!important}.cabinet-employee-card .cabinet-employee-edit{justify-self:start!important}}


/* 2026-08-03 vehicle summary quick filters */
.vehicle-total-chip{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-left:10px!important;
  padding:5px 10px!important;
  border:1px solid #dbeafe!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  cursor:pointer!important;
  vertical-align:middle!important;
}
.vehicle-total-chip b{font-size:13px!important;color:#0f172a!important}
#vehicleSummaryPanel{
  display:flex!important;
  gap:10px!important;
  margin:14px 18px 10px!important;
  padding:0 0 5px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin!important;
  scrollbar-color:#cbd5e1 transparent!important;
}
#vehicleSummaryPanel::-webkit-scrollbar{height:7px!important}
#vehicleSummaryPanel::-webkit-scrollbar-track{background:transparent!important}
#vehicleSummaryPanel::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:999px!important}
.vehicle-summary-card{
  flex:0 0 auto!important;
  min-width:190px!important;
  height:70px!important;
  display:grid!important;
  grid-template-columns:12px 1fr auto!important;
  align-items:center!important;
  gap:10px!important;
  border:1px solid #e2e8f0!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.045)!important;
  padding:12px 14px!important;
  cursor:pointer!important;
  text-align:left!important;
  transition:box-shadow .15s ease,border-color .15s ease,transform .15s ease!important;
}
.vehicle-summary-card:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 12px 30px rgba(15,23,42,.08)!important;
}
.vehicle-summary-card.active{
  border-color:#facc15!important;
  background:#fffbeb!important;
  box-shadow:0 12px 30px rgba(250,204,21,.18)!important;
}
.vehicle-summary-dot{width:10px!important;height:34px!important;border-radius:999px!important;background:#94a3b8!important}
.vehicle-summary-card.to .vehicle-summary-dot{background:#14b8a6!important}
.vehicle-summary-card.diagnostic .vehicle-summary-dot{background:#3b82f6!important}
.vehicle-summary-card.osgop .vehicle-summary-dot{background:#f97316!important}
.vehicle-summary-card.osago .vehicle-summary-dot{background:#22c55e!important}
.vehicle-summary-text{display:grid!important;gap:4px!important;min-width:0!important}
.vehicle-summary-text b{font-size:14px!important;line-height:1.15!important;color:#0f172a!important;white-space:nowrap!important}
.vehicle-summary-text small{font-size:11px!important;line-height:1.1!important;color:#64748b!important;white-space:nowrap!important}
.vehicle-summary-card strong{
  min-width:34px!important;
  height:34px!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:12px!important;
  background:#f8fafc!important;
  color:#0f172a!important;
  font-size:18px!important;
  font-weight:900!important;
}
.vehicle-summary-card.active strong{background:#facc15!important}
@media(max-width:760px){
  #vehicleSummaryPanel{margin-left:12px!important;margin-right:12px!important}
  .vehicle-summary-card{min-width:176px!important;height:66px!important}
}


/* 2026-08-03 vehicle summary v2 */
.entity-total-chip{
  display:inline-flex!important;align-items:center!important;gap:8px!important;margin-left:10px!important;
  min-height:28px!important;padding:4px 10px!important;border:1px solid #dbeafe!important;border-radius:999px!important;
  background:#eff6ff!important;color:#1d4ed8!important;font-size:12px!important;font-weight:800!important;cursor:pointer!important;
}
.entity-total-chip b{display:inline-grid!important;place-items:center!important;min-width:24px!important;height:22px!important;border-radius:999px!important;background:#fff!important;color:#0f172a!important;font-size:13px!important}
.entity-total-chip.drivers{background:#f0fdf4!important;border-color:#bbf7d0!important;color:#166534!important}
#vehicleSummaryPanel{margin-top:14px!important;margin-bottom:16px!important}
.vehicle-summary-card.v2{grid-template-columns:36px 1fr auto!important;min-width:205px!important;border-radius:15px!important}
.vehicle-summary-card.v2 .vehicle-summary-icon{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;border-radius:12px!important;background:#f8fafc!important;font-size:18px!important}
.vehicle-summary-card.v2.all .vehicle-summary-icon{background:#fff7d6!important}
.vehicle-summary-card.v2.to .vehicle-summary-icon{background:#ccfbf1!important}
.vehicle-summary-card.v2.diagnostic .vehicle-summary-icon{background:#dbeafe!important}
.vehicle-summary-card.v2.osgop .vehicle-summary-icon{background:#ffedd5!important}
.vehicle-summary-card.v2.osago .vehicle-summary-icon{background:#dcfce7!important}
.vehicle-summary-card.v2 .vehicle-summary-dot{display:none!important}
.vehicle-summary-card.v2.active{border-color:#facc15!important;background:#fffbea!important}
.vehicle-search-suggestions.floating.above-input{z-index:2147483600!important;max-height:260px!important}
@media(max-width:760px){.vehicle-summary-card.v2{min-width:190px!important}}



/* Taxichi polish 2026-08-03 B */
#vehicleSummaryPanel{display:flex;gap:10px;align-items:stretch;overflow-x:auto;padding:14px 18px 16px;background:#fff;border-bottom:1px solid #e8edf3;scrollbar-width:thin}
#vehicleSummaryPanel::-webkit-scrollbar{height:7px}
#vehicleSummaryPanel::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
.vehicle-summary-card.clean{min-width:178px;height:58px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;display:flex;align-items:center;gap:10px;padding:9px 12px;box-shadow:0 8px 18px rgba(15,23,42,.05);cursor:pointer;font-family:inherit}
.vehicle-summary-card.clean.active{border-color:#f4c400;background:#fffdf2}
.vehicle-summary-card.clean .vehicle-summary-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:none}
.vehicle-summary-card.clean .vehicle-summary-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.vehicle-summary-card.clean.all .vehicle-summary-icon{background:#fff7d6;color:#a16207}
.vehicle-summary-card.clean.to .vehicle-summary-icon{background:#e0f7f2;color:#0f766e}
.vehicle-summary-card.clean.diagnostic .vehicle-summary-icon{background:#eef2ff;color:#4f46e5}
.vehicle-summary-card.clean.osgop .vehicle-summary-icon{background:#fff1dd;color:#c2410c}
.vehicle-summary-card.clean.osago .vehicle-summary-icon{background:#dcfce7;color:#16a34a}
.vehicle-summary-card.clean .vehicle-summary-text{display:flex;flex-direction:column;min-width:0;flex:1;text-align:left}
.vehicle-summary-card.clean .vehicle-summary-text b{font-size:13px;line-height:1.15;color:#0f172a;white-space:nowrap}
.vehicle-summary-card.clean .vehicle-summary-text small{font-size:11px;color:#64748b;margin-top:3px;white-space:nowrap}
.vehicle-summary-card.clean .vehicle-summary-count{min-width:32px;height:32px;border-radius:12px;background:#f8fafc;display:grid;place-items:center;font-weight:800;color:#0f172a;font-size:16px}
.entity-total-chip{display:inline-flex;align-items:center;gap:8px;margin:4px 0 10px 0;padding:7px 11px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;box-shadow:0 6px 16px rgba(15,23,42,.04);font-size:13px;color:#64748b}
.entity-total-chip b{font-size:16px;color:#111827}
.vehicle-page-suggest{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:9999;background:#fff;border:1px solid #dbe3ee;border-radius:12px;box-shadow:0 18px 40px rgba(15,23,42,.16);padding:6px;display:none;max-height:260px;overflow:auto}
.vehicle-page-suggest.show{display:block}
.vehicle-page-suggest button{width:100%;border:0;background:#fff;text-align:left;padding:9px 11px;border-radius:9px;cursor:pointer;display:flex;gap:10px;align-items:center}
.vehicle-page-suggest button:hover{background:#fff7d6}
.vehicle-page-suggest b{min-width:92px;color:#111827}
.vehicle-page-suggest span{color:#64748b;font-size:13px}
.vehicle-page-suggest p{margin:8px 10px;color:#64748b}

/* Taxichi final admin UI polish 2026-08-03 */
.vehicle-summary-final{
  display:flex;
  gap:10px;
  padding:14px 18px 16px;
  overflow-x:auto;
  overflow-y:hidden;
  background:#fff;
  border-top:1px solid #edf1f5;
  border-bottom:1px solid #edf1f5;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}
.vehicle-summary-final::-webkit-scrollbar{height:7px}
.vehicle-summary-final::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
.vehicle-filter-card-final{
  min-width:176px;
  height:68px;
  flex:0 0 auto;
  border:1px solid #dfe7f0;
  border-radius:14px;
  background:#fff;
  color:#111827;
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
  cursor:pointer;
  transition:.16s ease;
  text-align:left;
}
.vehicle-filter-card-final:hover{border-color:#c6d2e1;box-shadow:0 12px 26px rgba(15,23,42,.08);transform:translateY(-1px)}
.vehicle-filter-card-final.is-active{border-color:#ffcc12;background:#fffaf0;box-shadow:0 12px 28px rgba(255,204,18,.14)}
.vehicle-filter-card-final .vf-icon{
  width:32px;height:32px;border-radius:10px;display:grid;place-items:center;
  background:#f4f7fb;color:#334155;
}
.vehicle-filter-card-final .vf-icon svg{width:20px;height:20px}
.vehicle-filter-card-final .vf-tool{background:#eefdfa;color:#0f766e}
.vehicle-filter-card-final .vf-pulse{background:#eff6ff;color:#2563eb}
.vehicle-filter-card-final .vf-alert{background:#fff7ed;color:#ea580c}
.vehicle-filter-card-final .vf-shield{background:#ecfdf5;color:#16a34a}
.vehicle-filter-card-final .vf-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.vehicle-filter-card-final .vf-copy b{font-size:14px;line-height:1.1;white-space:nowrap}
.vehicle-filter-card-final .vf-copy small{font-size:11px;color:#64748b;white-space:nowrap}
.vehicle-filter-card-final strong{
  min-width:30px;height:30px;border-radius:999px;background:#f8fafc;
  display:grid;place-items:center;font-size:18px;
}
#rows tr.vehicle-filter-hidden-final{display:none!important}
.drivers-total-final{
  display:inline-flex;align-items:center;gap:10px;margin:6px 0 10px;
  padding:8px 12px;border:1px solid #e5eaf1;border-radius:12px;background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.04);color:#475569;
}
.drivers-total-final b{font-size:18px;color:#111827}
.vehicle-page-suggest-final{
  position:fixed;z-index:100001;display:none;max-height:260px;overflow:auto;
  border:1px solid #dbe4ee;border-radius:14px;background:#fff;
  box-shadow:0 22px 48px rgba(15,23,42,.18);padding:6px;
}
.vehicle-page-suggest-final.show{display:block}
.vehicle-page-suggest-final button{
  width:100%;border:0;background:#fff;border-radius:10px;padding:9px 11px;text-align:left;
  display:flex;align-items:center;gap:12px;cursor:pointer;
}
.vehicle-page-suggest-final button:hover{background:#fff8db}
.vehicle-page-suggest-final b{min-width:100px;color:#111827}
.vehicle-page-suggest-final span{color:#64748b;font-size:12px}
.vehicle-search-suggestions.floating.show{
  z-index:100000!important;background:#fff!important;border:1px solid #dbe4ee!important;
  border-radius:14px!important;box-shadow:0 22px 48px rgba(15,23,42,.18)!important;
}
.vehicle-docs{display:flex;gap:8px;align-items:center;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;max-width:100%}
.vehicle-docs::-webkit-scrollbar{height:6px}.vehicle-docs::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
.vehicle-docs .doc-card,.vehicle-docs .to-card{flex:0 0 132px;min-width:132px;max-width:150px;font-size:11px;padding:10px 11px;border-radius:10px}
.vehicle-docs .to-card{order:-10;background:#ecfeff;border-color:#67e8f9;border-left:4px solid #10b981;box-shadow:0 8px 18px rgba(20,184,166,.08)}
.vehicle-docs .to-card.warn{background:#fff7ed;border-color:#fdba74;border-left-color:#f59e0b}
.vehicle-docs .to-card.danger{background:#fff1f2;border-color:#fda4af;border-left-color:#e11d48}
@media(max-width:900px){
  .vehicle-filter-card-final{min-width:168px}
  .vehicle-summary-final{padding-left:12px;padding-right:12px}
}

/* TaxiChi Pro final UI fix G 2026-08-03 */
.vehicle-summary-card,
.vehicle-summary-row,
.vehicle-summary-grid,
#vehicleSummaryPanelFinal,
.vehicle-summary-final:not(.vehicle-summary-final-e),
.vehicle-summary-final-a,
.vehicle-summary-final-b,
.vehicle-summary-final-c,
.vehicle-summary-final-d,
.vehicle-status-summary,
.vehicle-overview-summary,
.vehicle-filter-row,
.vehicle-summary-final-e ~ .vehicle-summary-final-e,
.drivers-total-final,
.entity-total-chip,
.employee-password-table-card,
.cabinet-employees-table-card,
.cabinet-roles-table,
.employee-roles-table {
  display: none !important;
}

.vehicle-summary-final-e {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 14px 18px 16px;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.vehicle-summary-final-e::-webkit-scrollbar { height: 6px; }
.vehicle-summary-final-e::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.vehicle-summary-final-e::-webkit-scrollbar-track { background: transparent; }

.vehicle-filter-final-e {
  min-width: 182px;
  max-width: 210px;
  height: 66px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce4ee;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
  color: #0f172a;
  font: inherit;
  text-align: left;
}
.vehicle-filter-final-e:hover { border-color: #cbd5e1; box-shadow: 0 10px 24px rgba(15,23,42,.08); }
.vehicle-filter-final-e.active { border-color: #f4c400; background: #fffdf2; }
.vehicle-filter-final-e .vf-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f8fafc;
  color: #2563eb;
}
.vehicle-filter-final-e[data-kind="all"] .vf-icon { color:#334155; }
.vehicle-filter-final-e[data-kind="to"] .vf-icon { color:#0f766e; background:#ecfeff; }
.vehicle-filter-final-e[data-kind="diagnostic"] .vf-icon { color:#2563eb; background:#eff6ff; }
.vehicle-filter-final-e[data-kind="osgop"] .vf-icon { color:#ea580c; background:#fff7ed; }
.vehicle-filter-final-e[data-kind="osago"] .vf-icon { color:#16a34a; background:#f0fdf4; }
.vehicle-filter-final-e svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-filter-final-e .vf-text { display:flex; flex-direction:column; min-width:0; gap:2px; }
.vehicle-filter-final-e .vf-text b { font-size: 13px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vehicle-filter-final-e .vf-text small { font-size: 11px; line-height: 1.2; color:#64748b; white-space: nowrap; }
.vehicle-filter-final-e strong {
  min-width: 28px;
  height: 28px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  background:#f8fafc;
  color:#0f172a;
  font-size:16px;
}

h1 + .drivers-count-soft-final {
  margin-top: 5px;
  margin-bottom: 10px;
}
.drivers-count-soft-final {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: #2563eb;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
}
.drivers-count-soft-final .dc-icon {
  display:grid;
  place-items:center;
  width:14px;
  height:14px;
}
.drivers-count-soft-final svg {
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.drivers-count-soft-final b {
  color:#0f172a;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:999px;
  padding:1px 7px;
}

.cabinet-page .cabinet-top-only-action {
  min-height: 54px;
  align-items: center;
}
.cabinet-employee-card {
  min-height: 72px;
}
.cabinet-employee-card .cabinet-employee-edit,
.cabinet-employee-card button {
  margin-left: auto;
}
.cabinet-page table.employee-password-table,
.cabinet-page .employee-password-table-card {
  display: none !important;
}
.cabinet-page .cabinet-employees-table-card,
.cabinet-page .cabinet-roles-table,
.cabinet-page .employee-roles-table {
  display: none !important;
}


/* taxichiVehicleSummaryOnlyVehicles20260803 */
body:not([data-page="vehicles"]) .vehicle-summary-filters,
body:not([data-page="vehicles"]) .vehicle-filter-cards,
body:not([data-page="vehicles"]) .vehicle-stats-filters,
body:not([data-page="vehicles"]) .vehicle-quick-filters,
body:not([data-page="vehicles"]) .vehicle-summary-strip {
  display: none !important;
}


/* 2026-08-03 stable admin page summary scope */
body:not([data-page="vehicles"]) #vehicleSummaryPanelFinal,
body:not([data-page="vehicles"]) .vehicle-summary-final-e,
body:not([data-page="vehicles"]) .vehicle-summary-final,
body:not([data-page="vehicles"]) .vehicle-summary-filters,
body:not([data-page="vehicles"]) .vehicle-filter-cards,
body:not([data-page="vehicles"]) .vehicle-stats-filters,
body:not([data-page="vehicles"]) .vehicle-quick-filters,
body:not([data-page="vehicles"]) .vehicle-summary-strip,
body:not([data-page="vehicles"]) .quick-filter-row,
body:not([data-page="vehicles"]) [data-vehicle-filter],
body:not([data-page="vehicles"]) [data-vehicle-filter-final],
body:not([data-page="vehicles"]) [data-polish-filter] {
  display: none !important;
}

body:not([data-page="drivers"]) #driversCountBadge {
  display: none !important;
}

#driversCountBadge.driver-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 6px 0 16px 0;
  padding: 7px 11px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  font: 700 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#driversCountBadge .driver-count-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  background: #eff6ff;
}

#driversCountBadge .driver-count-icon svg {
  width: 16px;
  height: 16px;
}

#driversCountBadge .driver-count-label {
  color: #2563eb;
  letter-spacing: .01em;
}

#driversCountBadge strong {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #dbe7ff;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

/* 2026-08-03 FINAL counters search css */
body:not([data-admin-page="vehicles"]) #taxichiVehicleSummaryFinal,
body:not([data-admin-page="vehicles"]) .vehicle-summary-final-e,
body:not([data-admin-page="vehicles"]) [data-final-filter],
body:not([data-admin-page="vehicles"]) .vehicle-summary-card,
body:not([data-admin-page="vehicles"]) .vehicle-summary-v2,
body:not([data-admin-page="vehicles"]) .vehicle-filter-card,
body:not([data-admin-page="vehicles"]) .polish-filter-panel {
  display: none !important;
}

#taxichiVehicleSummaryFinal.vehicle-summary-final-e {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 14px 18px;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

#taxichiVehicleSummaryFinal.vehicle-summary-final-e::-webkit-scrollbar {
  height: 7px;
}

#taxichiVehicleSummaryFinal.vehicle-summary-final-e::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.vehicle-final-card {
  min-width: 178px;
  border: 1px solid #dbe5f0;
  background: #fff;
  border-radius: 14px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.vehicle-final-card:hover {
  border-color: #b9c7d8;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .075);
}

.vehicle-final-card.active {
  border-color: #facc15;
  background: linear-gradient(180deg, #fffdf2, #fff);
}

.vehicle-final-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #f1f5f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vehicle-final-card[data-final-filter="to"] .vehicle-final-icon { background: #e8fbf7; color: #0f766e; }
.vehicle-final-card[data-final-filter="diagnostic"] .vehicle-final-icon { background: #eff6ff; color: #2563eb; }
.vehicle-final-card[data-final-filter="osgop"] .vehicle-final-icon { background: #fff7ed; color: #ea580c; }
.vehicle-final-card[data-final-filter="osago"] .vehicle-final-icon { background: #ecfdf5; color: #16a34a; }

.vehicle-final-icon svg,
.drivers-count-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vehicle-final-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vehicle-final-copy b {
  font-size: 13px;
  line-height: 1.15;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-final-copy small {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}

.vehicle-final-count {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.drivers-count-badge-final {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0 14px 0;
  padding: 7px 11px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
}

.drivers-count-badge-final b {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drivers-count-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vehicle-search-suggestions.floating {
  display: none !important;
}

.vehicle-search-popover-final {
  position: fixed;
  z-index: 2147483647;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #d7e0ea;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
  padding: 6px;
}

.vehicle-search-popover-final button {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.vehicle-search-popover-final button:hover {
  background: #fff7d6;
}

.vehicle-search-popover-final b {
  font-size: 13px;
  color: #0f172a;
}

.vehicle-search-popover-final span,
.vehicle-search-empty-final {
  font-size: 12px;
  color: #64748b;
}

.vehicle-search-empty-final {
  padding: 12px;
}

.driver-vehicle-search-final,
.detailsVehicleSearchFinal {
  width: 100%;
  margin-bottom: 8px;
}

.driver-details-vehicle-picker-final {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
}

.driver-details-vehicle-picker-final h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.detailsVehicleListFinal {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.details-vehicle-choice-final {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.details-vehicle-choice-final:hover,
.details-vehicle-choice-final.active {
  border-color: #facc15;
  background: #fff8db;
}

.details-vehicle-choice-final b {
  font-size: 13px;
}

.details-vehicle-choice-final span {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 720px) {
  #taxichiVehicleSummaryFinal.vehicle-summary-final-e {
    padding: 12px;
  }
  .vehicle-final-card {
    min-width: 170px;
  }
  .vehicle-search-popover-final {
    max-height: 220px;
  }
}
/* END 2026-08-03 FINAL counters search css */


/* TAXICHI HOTFIX 20260803 FILTER CLEAN START */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

#taxichiVehicleStatsClean,
.taxichi-vehicle-stats-clean {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 14px 18px 18px;
  margin: 0;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

body:not(.taxichi-route-vehicles) #taxichiVehicleStatsClean,
body:not(.taxichi-route-vehicles) .taxichi-vehicle-stats-clean {
  display: none !important;
}

.taxichi-filter-card {
  min-width: 178px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #dbe4ee;
  border-radius: 13px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  font: inherit;
}

.taxichi-filter-card:hover {
  border-color: #f2c94c;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.taxichi-filter-card.is-active {
  border-color: #f6c400;
  background: #fffdf2;
}

.taxichi-filter-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #2563eb;
  background: #eff6ff;
}

.taxichi-filter-icon-all,
.taxichi-filter-icon-car {
  color: #334155;
  background: #f1f5f9;
}

.taxichi-filter-icon-to {
  color: #0f766e;
  background: #ecfeff;
}

.taxichi-filter-icon-diag {
  color: #2563eb;
  background: #eff6ff;
}

.taxichi-filter-icon-osgop {
  color: #ea580c;
  background: #fff7ed;
}

.taxichi-filter-icon-osago {
  color: #16a34a;
  background: #f0fdf4;
}

.taxichi-filter-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.taxichi-filter-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.taxichi-filter-sub {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

.taxichi-filter-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .12);
}

#taxichiDriverTotalClean,
.taxichi-driver-total-clean {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0 18px;
  padding: 8px 12px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .06);
}

#taxichiDriverTotalClean .taxichi-driver-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
}

#taxichiDriverTotalClean b {
  min-width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

body:not(.taxichi-route-drivers) #taxichiDriverTotalClean,
body:not(.taxichi-route-drivers) .taxichi-driver-total-clean {
  display: none !important;
}
/* TAXICHI HOTFIX 20260803 FILTER CLEAN END */

/* TAXICHI HOTFIX 20260803 DRIVER VEHICLE PICKER ORDER FINAL START */
.driver-details-vehicle-picker-final,
.detailsVehicleSearchFinal,
.detailsVehicleListFinal{display:none!important;}
.taxichi-driver-vehicle-search-wrap{position:relative;width:100%;margin-top:8px;z-index:2147483000;}
.taxichi-driver-vehicle-search-wrap .driver-vehicle-search-final{width:100%;height:44px;box-sizing:border-box;border:1px solid #d8e0ea;border-radius:12px;background:#fff;padding:0 14px;font-size:14px;outline:none;}
.taxichi-driver-vehicle-search-wrap .driver-vehicle-search-final:focus{border-color:#facc15;box-shadow:0 0 0 3px rgba(250,204,21,.16);}
.taxichi-vehicle-suggest-float{position:absolute;left:0;right:0;top:calc(100% + 6px);max-height:230px;overflow:auto;background:#fff;border:1px solid #d8e0ea;border-radius:14px;box-shadow:0 18px 46px rgba(15,23,42,.22);z-index:2147483647;padding:6px;}
.taxichi-vehicle-suggest-float[hidden]{display:none!important;}
.taxichi-vehicle-suggest-item{display:block;width:100%;text-align:left;border:0;background:#fff;border-radius:10px;padding:10px 12px;cursor:pointer;color:#111827;}
.taxichi-vehicle-suggest-item:hover{background:#fff7d6;}
.taxichi-vehicle-suggest-item b{display:block;font-size:13px;line-height:1.2;}
.taxichi-vehicle-suggest-item span{display:block;margin-top:3px;font-size:12px;color:#64748b;}
.taxichi-vehicle-suggest-empty{padding:10px 12px;font-size:12px;color:#64748b;}
.vehicle-search-suggestions.floating.show,
#vehicle-search-popover-final{display:none!important;}
/* TAXICHI HOTFIX 20260803 DRIVER VEHICLE PICKER ORDER FINAL END */


/* TAXICHI CSS DRIVER VEHICLE SEARCH FINAL 20260803 */
.taxichi-vehicle-select-wrap{position:relative;display:flex;flex-direction:column;gap:8px;margin-top:10px}
.taxichi-vehicle-select-title{font-size:14px;font-weight:800;color:#111827}
.taxichi-vehicle-live-search{width:100%;height:42px;border:1px solid #d9e1ea;border-radius:10px;padding:0 14px;font-size:14px;background:#fff;outline:none}
.taxichi-vehicle-live-search:focus{border-color:#facc15;box-shadow:0 0 0 3px rgba(250,204,21,.18)}
.taxichi-vehicle-select-wrap select{width:100%;height:42px;border:1px solid #d9e1ea;border-radius:10px;padding:0 12px;background:#fff}
.taxichi-vehicle-live-results{position:absolute;left:0;right:0;top:74px;z-index:999999;background:#fff;border:1px solid #d9e1ea;border-radius:12px;box-shadow:0 18px 40px rgba(15,23,42,.18);max-height:245px;overflow:auto;display:none;padding:6px}
.taxichi-vehicle-live-results.show{display:block}
.taxichi-vehicle-live-results button{display:block;width:100%;text-align:left;border:0;background:#fff;border-radius:9px;padding:10px 12px;cursor:pointer}
.taxichi-vehicle-live-results button:hover{background:#fff7cc}
.taxichi-vehicle-live-results b{display:block;color:#111827;font-size:14px}
.taxichi-vehicle-live-results span{display:block;color:#64748b;font-size:12px;margin-top:2px}
.taxichi-vehicle-live-empty{padding:12px;color:#64748b;font-size:13px}

/* TAXICHI CSS 20260803 SINGLE COUNTERS FILTERS FINAL START */
body:not(.taxichi-page-vehicles-final) .taxichi-vehicle-filter-row-final,
body:not(.taxichi-page-vehicles-final) .vehicle-summary-row,
body:not(.taxichi-page-vehicles-final) .vehicle-summary-grid,
body:not(.taxichi-page-vehicles-final) .vehicle-filter-row,
body:not(.taxichi-page-vehicles-final) .vehicle-filter-cards,
body:not(.taxichi-page-vehicles-final) .vehicle-summary-final-e,
body:not(.taxichi-page-vehicles-final) .vehicle-filter-final-e {
  display: none !important;
}

.taxichi-row-filter-hidden-final {
  display: none !important;
}

.taxichi-driver-count-single-final {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 6px 0 18px 0 !important;
  padding: 8px 12px !important;
  border: 1px solid #dbeafe !important;
  border-radius: 999px !important;
  background: #f8fbff !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06) !important;
  color: #1d4ed8 !important;
  font: 700 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.taxichi-driver-count-single-final strong {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 26px !important;
  height: 26px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: inset 0 0 0 1px #e5e7eb !important;
  font-weight: 900 !important;
}

.taxichi-driver-count-icon,
.taxichi-vehicle-filter-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

.taxichi-driver-count-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 12px !important;
  background: #eef2ff !important;
  color: #4f46e5 !important;
}

.taxichi-driver-count-icon svg,
.taxichi-vehicle-filter-icon svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.taxichi-titlebar-driver-final {
  position: relative !important;
  min-height: 58px !important;
  padding-right: 230px !important;
}

.taxichi-add-driver-top-final {
  position: absolute !important;
  right: 0 !important;
  top: 4px !important;
  z-index: 5 !important;
  white-space: nowrap !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  background: #ffd21a !important;
  color: #050505 !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(234, 179, 8, .20) !important;
}

.taxichi-vehicle-filter-row-final {
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overscroll-behavior-x: contain !important;
  padding: 14px 18px 16px !important;
  margin: 0 !important;
  background: #fff !important;
  border-top: 1px solid #eef2f7 !important;
  border-bottom: 1px solid #eef2f7 !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 transparent !important;
}

.taxichi-vehicle-filter-row-final::-webkit-scrollbar {
  height: 7px !important;
}

.taxichi-vehicle-filter-row-final::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 999px !important;
}

.taxichi-vehicle-filter-card-final {
  display: grid !important;
  grid-template-columns: 34px minmax(110px, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 184px !important;
  max-width: 220px !important;
  padding: 10px 12px !important;
  border: 1px solid #dfe7f1 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #0f172a !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04) !important;
  cursor: pointer !important;
  text-align: left !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}

.taxichi-vehicle-filter-card-final:hover {
  transform: translateY(-1px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08) !important;
}

.taxichi-vehicle-filter-card-final.is-active {
  border-color: #facc15 !important;
  background: #fffbeb !important;
  box-shadow: inset 0 0 0 1px #facc15, 0 10px 24px rgba(234, 179, 8, .12) !important;
}

.taxichi-vehicle-filter-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 13px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
}

.taxichi-vehicle-filter-card-final[data-filter-key="to"] .taxichi-vehicle-filter-icon {
  background: #e0f2fe !important;
  color: #0284c7 !important;
}

.taxichi-vehicle-filter-card-final[data-filter-key="diagnostic"] .taxichi-vehicle-filter-icon {
  background: #eff6ff !important;
  color: #2563eb !important;
}

.taxichi-vehicle-filter-card-final[data-filter-key="osgop"] .taxichi-vehicle-filter-icon {
  background: #fff7ed !important;
  color: #ea580c !important;
}

.taxichi-vehicle-filter-card-final[data-filter-key="osago"] .taxichi-vehicle-filter-icon {
  background: #ecfdf5 !important;
  color: #16a34a !important;
}

.taxichi-vehicle-filter-text {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.taxichi-vehicle-filter-text b {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
}

.taxichi-vehicle-filter-text small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  color: #64748b !important;
}

.taxichi-vehicle-filter-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: #020617 !important;
  box-shadow: inset 0 0 0 1px #e2e8f0 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

@media (max-width: 760px) {
  .taxichi-titlebar-driver-final {
    padding-right: 0 !important;
  }
  .taxichi-add-driver-top-final {
    position: static !important;
    display: inline-flex !important;
    margin: 12px 0 0 auto !important;
  }
  .taxichi-vehicle-filter-card-final {
    min-width: 178px !important;
  }
}
/* TAXICHI CSS 20260803 SINGLE COUNTERS FILTERS FINAL END */

/* 2026-08-03 stable header and driver cleanup */
main > header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 20px !important;
  visibility: visible !important;
  opacity: 1 !important;
}
main > header > div:first-child,
#pageTitle,
#currentDateLine {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#pageTitle {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
}
main > header .header-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-left: auto !important;
}
#addDriver {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
}
body[data-admin-page="drivers"] .entity-total-chip,
body[data-admin-page="drivers"] .driver-count-badge,
body[data-admin-page="drivers"] .taxichi-driver-total,
body[data-admin-page="drivers"] .taxichi-driver-total-clean,
body[data-admin-page="drivers"] .taxichi-driver-count,
body[data-admin-page="drivers"] .taxichi-driver-count-single-final,
body[data-admin-page="drivers"] [data-driver-counter-final] {
  display: none !important;
}
@media (max-width: 760px) {
  main > header { align-items: stretch !important; }
  main > header .header-actions { width: auto !important; }
  #pageTitle { font-size: 24px !important; }
}

/* Stable page header, hidden sidebar scrollbar and working vehicle filters */
aside {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
aside::-webkit-scrollbar { display: none !important; width: 0 !important; }

main > header {
  position: relative !important;
  min-height: 62px !important;
  padding-right: 250px !important;
}
main > header > div:first-child {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}
main > header .header-actions {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: auto !important;
}
#pageTitle {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  transform: none !important;
}

.taxichi-stable-vehicle-filters {
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 16px 18px !important;
  overflow: visible !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: #fff !important;
}
.taxichi-stable-driver-counter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid #dbe3ed !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: #334155 !important;
  font-weight: 750 !important;
}
.taxichi-stable-driver-counter strong {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  background: #fff3bf !important;
  color: #111827 !important;
  font-size: 15px !important;
}
.taxichi-stable-vehicle-filters > button {
  display: grid !important;
  grid-template-columns: minmax(120px, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 180px !important;
  padding: 12px 14px !important;
  border: 1px solid #dbe3ed !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #111827 !important;
  cursor: pointer !important;
  text-align: left !important;
}
.taxichi-stable-vehicle-filters > button:hover,
.taxichi-stable-vehicle-filters > button.is-active {
  border-color: #f5c400 !important;
  background: #fffbeb !important;
  box-shadow: inset 0 0 0 1px #f5c400 !important;
}
.taxichi-stable-vehicle-filters span,
.taxichi-stable-vehicle-filters b,
.taxichi-stable-vehicle-filters small { display: block !important; }
.taxichi-stable-vehicle-filters b { font-size: 14px !important; }
.taxichi-stable-vehicle-filters small { margin-top: 3px !important; color: #64748b !important; font-size: 11px !important; }
.taxichi-stable-vehicle-filters strong {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  font-size: 15px !important;
}

@media (max-width: 1100px) {
  .taxichi-stable-vehicle-filters { overflow-x: auto !important; scrollbar-width: thin !important; }
}
@media (max-width: 760px) {
  main > header { padding-right: 0 !important; }
  main > header .header-actions { position: static !important; margin-top: 12px !important; }
}

