:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#202825;background:#f5f7f8;font-synthesis:none;font-size:16px;--green:#087f67;--ink:#202825;--muted:#737e79;--line:#e6eae8;--soft:#eef7f3}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #39bfa1;outline-offset:3px}button svg{flex-shrink:0}svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}a{color:var(--green)}.shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{background:white;border-right:1px solid var(--line);padding:30px 18px 18px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:230px;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 35px}.brand-mark{width:35px;height:35px;display:grid;place-items:center;background:var(--green);color:white;border-radius:9px;font-weight:800;font-size:25px}.brand-name{font-size:16px;font-weight:800;letter-spacing:1.1px}.brand-sub{font-size:12px;color:var(--muted);letter-spacing:2px;margin-top:4px}.nav-label{font-size:12px;text-transform:uppercase;letter-spacing:1.3px;color:#8b9490;padding:0 13px;margin:16px 0 10px}.nav-item{border:0;background:transparent;color:#68736e;width:100%;padding:12px 13px;display:flex;align-items:center;gap:12px;border-radius:8px;text-align:left;font-size:14px;font-weight:500;margin-bottom:5px}.nav-item:hover{background:#f5f7f6}.nav-item.active{background:#eaf5f0;color:#077259;font-weight:650}.nav-item .count{margin-left:auto;background:#d9ede4;border-radius:5px;min-width:22px;text-align:center;padding:2px 5px;font-size:12px}.sidebar-foot{margin-top:auto;padding:22px 10px 0}.workspace{border:1px solid var(--line);padding:11px;border-radius:9px;display:flex;gap:10px;align-items:center}.workspace span:first-child{width:32px;height:32px;display:grid;place-items:center;background:#f2f4f3;border-radius:7px}.small{font-size:13px;color:var(--muted);line-height:1.5}.tiny{font-size:12px;color:var(--muted)}.workspace strong{font-size:13px}.main{grid-column:2;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:15px}.breadcrumb{font-size:14px;color:var(--muted);display:flex;gap:12px;align-items:center}.breadcrumb b{font-weight:500;color:#28372f}.top-actions{display:flex;align-items:center;gap:14px}.role-control{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.role-control select{border:none;background:transparent;font-size:14px;color:var(--ink);padding:7px;max-width:175px}.avatar{width:34px;height:34px;border-radius:50%;background:#eef2ef;display:grid;place-items:center;color:#52695d;font-size:12px;font-weight:700}.demo-badge{font-size:12px;border:1px solid #dce6e0;color:#6c8174;background:#f7faf8;border-radius:5px;padding:4px 7px;letter-spacing:.3px}.content{max-width:1480px;margin:0 auto;padding:34px 38px 28px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:28px}.page-head h1{font-size:29px;letter-spacing:-1px;line-height:1.2;margin:0 0 9px;font-weight:650}.page-head p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}.head-actions{display:flex;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:white;border:1px solid #dce3df;color:#46564c;border-radius:7px;padding:10px 15px;min-height:41px;font-size:14px;font-weight:550;line-height:1.35;text-decoration:none}.btn:hover{background:#f4f7f5}.btn.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 2px 2px #063f2510}.btn.primary:hover{background:#076b57}.btn.danger{color:#b14e43}.btn.compact{padding:7px 10px;min-height:34px;font-size:13px}.btn.ghost{border-color:transparent;background:transparent;padding-left:0;padding-right:0;color:var(--green)}.icon-btn{border:0;background:transparent;color:#7b8781;padding:7px;border-radius:6px}.icon-btn:hover{background:#eef2ef;color:var(--green)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat{padding:21px 22px;background:white;border:1px solid var(--line);border-radius:11px;min-width:0}.stat-top{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#7a8780;font-size:13px}.stat-top svg{width:18px;height:18px;color:#8d9992}.stat-value{margin:16px 0 9px;font-size:29px;letter-spacing:-1px;font-weight:650;white-space:nowrap}.stat-note{font-size:12px;color:#7c8881;display:flex;align-items:center;gap:6px}.stat-note.green{color:#0b8666}.stat-note.amber{color:#9b721d}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:11px;min-width:0;overflow:hidden}.panel-head{padding:22px 23px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel h2{font-size:16px;letter-spacing:-.2px;font-weight:650;margin:0}.panel-body{padding:0 23px 23px}.period{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}.period svg{width:15px;height:15px}.chart-total{font-size:26px;font-weight:650;letter-spacing:-.8px;margin:4px 0 5px}.chart{display:flex;gap:18px;align-items:flex-end;padding:25px 0 0;height:158px}.bar-item{flex:1;display:flex;align-items:center;flex-direction:column;height:100%;justify-content:flex-end;min-width:0}.bar-value{font-size:12px;color:#687b6e;margin-bottom:7px;white-space:nowrap}.bar{width:min(48px,80%);min-height:3px;background:#d8eae2;border-radius:4px 4px 0 0}.bar-item:nth-child(2) .bar{background:var(--green)}.bar-label{font-size:12px;color:#7e8882;margin-top:10px;white-space:nowrap}.chart-footer{border-top:1px solid var(--line);padding-top:14px;margin-top:18px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.attention-item{padding:15px 0;display:flex;gap:12px;border-bottom:1px solid #eef1ef;align-items:flex-start}.attention-item:last-child{border-bottom:0;padding-bottom:0}.attention-icon{width:35px;height:35px;flex-shrink:0;border-radius:8px;background:#fdf5e8;color:#bb882c;display:grid;place-items:center}.attention-icon.red{background:#fcf0ee;color:#be6b5e}.attention-icon.blue{background:#eef4fc;color:#668ab4}.attention-title{font-size:14px;font-weight:550;line-height:1.4;margin-bottom:5px}.attention-sub{font-size:12px;color:var(--muted);line-height:1.5}.attention-item .icon-btn{margin-left:auto}.spacer{margin-top:23px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:12px;font-weight:500;color:#88918c;background:#fafbfa;padding:12px 22px;border-bottom:1px solid var(--line)}td{font-size:14px;padding:16px 22px;border-bottom:1px solid #eef1ef}tr:last-child td{border-bottom:0}td .sub{font-size:12px;color:var(--muted);margin-top:5px}.money{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.row-name{display:flex;align-items:center;gap:11px}.row-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:#f4f6f5;color:#758a7c}.row-icon svg{width:17px;height:17px}.status{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;padding:5px 8px;border-radius:5px;background:#eef6f1;color:#398566;white-space:nowrap}.status.pending{background:#fcf4e5;color:#a98539}.status.returned{background:#fbeeee;color:#b76558}.status.neutral{background:#f0f2f4;color:#73808c}.status.blue{background:#edf3fc;color:#6283b4}.plate{font-size:12px;font-weight:600;display:inline-block;border:1px solid #dce2de;border-radius:4px;padding:3px 6px;letter-spacing:.3px;background:#fff;color:#526157;white-space:nowrap}.fleet-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:23px}.vehicle-mini{padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:10px;text-align:left;cursor:pointer}.vehicle-mini:hover{border-color:#8dbdac}.vehicle-mini-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:5px}.vehicle-mini h3{font-size:15px;font-weight:600;margin:12px 0 5px}.vehicle-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:18px;padding-top:12px;border-top:1px solid #edf0ee;font-size:12px;color:var(--muted)}.footer-note{font-size:12px;color:#97a09b;text-align:center;margin:26px 0 4px;line-height:1.6}.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.input,select.input{border:1px solid #dce3df;border-radius:7px;background:white;padding:10px 12px;min-height:42px;color:#33473b;outline:none;font-size:14px;max-width:100%}.input:focus{border-color:#419d83;box-shadow:0 0 0 3px #09826114}.search{flex:1;min-width:180px}.tabs{display:flex;gap:22px;border-bottom:1px solid #dfe6e2;margin-bottom:23px;overflow-x:auto}.tab{padding:0 0 13px;background:transparent;border:0;border-bottom:2px solid transparent;font-size:14px;color:#7c8880;white-space:nowrap}.tab.active{color:var(--green);border-bottom-color:var(--green);font-weight:600}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.vehicle-card{background:white;border:1px solid var(--line);border-radius:11px;padding:22px;text-align:left;cursor:pointer;display:block;color:inherit}.vehicle-card:hover{border-color:#99c4b2;box-shadow:0 4px 18px #244c2e06}.vehicle-card-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.truck-icon{width:46px;height:46px;background:#edf5f0;border-radius:11px;color:var(--green);display:grid;place-items:center}.truck-icon svg{width:25px;height:25px}.vehicle-card h2{margin:21px 0 7px;font-size:19px;font-weight:600}.vehicle-card .plate{margin-bottom:20px}.detail-line{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin:12px 0;color:#748176}.detail-line b{color:#3f5146;font-weight:550}.progress{height:4px;background:#edf1ee;border-radius:3px;overflow:hidden;margin:14px 0 7px}.progress span{display:block;height:100%;background:#449d7a;border-radius:3px}.progress.warn span{background:#d2a95e}.vehicle-card-foot{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;font-size:13px;color:var(--green);display:flex;justify-content:space-between}.empty{text-align:center;padding:45px 20px;color:var(--muted);font-size:14px}.empty svg{display:block;margin:0 auto 15px;width:30px;height:30px;color:#9aaa9f}.split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:22px}.list-row{padding:16px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.list-row:last-child{border-bottom:0}.list-title{font-size:14px;font-weight:550;margin-bottom:4px}.list-row .small{font-size:12px}.notice{padding:14px 17px;background:#eef6f2;border:1px solid #dceae2;border-radius:8px;font-size:13px;color:#557864;line-height:1.6;margin-bottom:20px}.export-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.export-card{padding:24px}.export-card svg{color:var(--green);width:25px;height:25px;margin-bottom:16px}.export-card h2{margin-bottom:9px}.export-card p{font-size:14px;color:var(--muted);line-height:1.6;min-height:44px}.settings-list{max-width:700px}.settings-list .panel{padding:24px}.category-chip{padding:8px 12px;background:#f5f7f6;border:1px solid #e5ebe7;border-radius:6px;font-size:14px;display:inline-flex;margin:6px 5px 0 0}.mobile-brand{display:none}dialog{padding:0;border:1px solid #e3e9e5;border-radius:14px;box-shadow:0 25px 90px #162e2633;max-width:660px;width:calc(100% - 32px);max-height:90dvh;overflow-y:auto;color:var(--ink)}dialog::backdrop{background:#152b2359;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:25px 26px 17px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:21px;font-weight:650;letter-spacing:-.4px}.modal-head p{margin:7px 0 0;font-size:13px;color:var(--muted);line-height:1.5}.modal-body{padding:22px 26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#637469;min-width:0}.field .input{width:100%}.field.full{grid-column:1/-1}.field textarea{min-height:85px;resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:22px;margin-top:22px;border-top:1px solid var(--line)}.field-note{font-size:12px;color:#8c968f;line-height:1.5}.form-error{color:#b34b3d;font-size:13px;line-height:1.5;margin-top:12px}.check-row{display:flex;gap:10px;align-items:center;font-size:14px;line-height:1.5}.check-row input{accent-color:var(--green);width:17px;height:17px}.detail-hero{display:flex;justify-content:space-between;gap:15px;margin-bottom:20px}.detail-hero h3{margin:3px 0 8px;font-size:22px}.detail-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.detail-stat{background:#f4f7f5;border-radius:8px;padding:15px}.detail-stat b{display:block;font-size:17px;margin-top:9px}.section-title{font-size:14px;font-weight:600;margin:25px 0 10px}.attachment{max-width:100%;max-height:280px;object-fit:contain;border-radius:8px;margin-top:15px;background:#f5f7f6}.detail-comment{font-size:14px;line-height:1.7;color:#65776b;white-space:pre-wrap}.no-wrap{white-space:nowrap}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(12px);z-index:100;background:#203e31;color:white;font-size:14px;padding:13px 21px;border-radius:9px;box-shadow:0 8px 24px #12321b25;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;line-height:1.5}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.numeric{text-align:right}.balance-card{background:#183c30;color:#fff;border:0}.balance-card .stat-top,.balance-card .stat-top svg,.balance-card .stat-note{color:#a1bdb0}.pill-group{display:flex;flex-wrap:wrap;gap:7px}.mobile-nav{display:none}.break{white-space:normal}.audit{font-size:12px;color:var(--muted);border-top:1px solid var(--line);margin-top:20px;padding-top:15px;line-height:1.8}.report-controls{display:flex;align-items:end;flex-wrap:wrap;gap:14px;margin-bottom:20px}.report-controls .field{min-width:150px}.attachment-label{display:flex;align-items:center;gap:7px}.attachment-label svg{width:16px;height:16px}.form-grid input[type=file]{font-size:12px}.hint-number{font-size:40px;letter-spacing:-1px;font-weight:600;color:#1d4030;margin:10px 0 18px}
@media(min-width:1500px){.content{padding-top:40px}.stats{gap:22px}.stat{padding:25px}}
@media(max-width:1200px){.sidebar{width:204px;padding-left:12px;padding-right:12px}.shell{grid-template-columns:204px minmax(0,1fr)}.content{padding:28px 25px}.topbar{padding:0 25px}.stat{padding:18px}.stat-value{font-size:25px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.brand{padding-left:9px}.fleet-mini{gap:10px}.vehicle-mini{padding:16px 14px}td,th{padding-left:16px;padding-right:16px}}
@media(max-width:980px){.dashboard-grid,.split{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fleet-mini{grid-template-columns:repeat(2,minmax(0,1fr))}.fleet-mini>:last-child{display:none}.breadcrumb{display:none}.topbar{justify-content:space-between}.mobile-brand{display:block;font-weight:650;font-size:15px}.page-head h1{font-size:26px}.page-head{flex-wrap:wrap}.export-grid{grid-template-columns:1fr}}
@media(max-width:700px){.shell{display:block}.sidebar{display:none}.main{width:100%}.topbar{height:65px;padding:0 18px}.content{padding:24px 17px 92px}.top-actions{gap:7px}.role-control{gap:1px}.role-control>span{display:none}.role-control select{max-width:145px;font-size:13px;padding:6px 2px}.avatar{display:none}.mobile-brand{font-size:14px}.demo-badge{font-size:10px}.page-head{margin-bottom:21px;gap:15px}.page-head h1{font-size:26px}.page-head p{font-size:13px}.head-actions{width:100%}.head-actions .btn.primary{margin-left:auto}.stats{gap:11px;margin-bottom:18px}.stat{padding:16px 14px}.stat-top{font-size:12px}.stat-top svg{width:15px;height:15px}.stat-value{font-size:24px;margin:13px 0 7px}.stat-note{font-size:11px}.panel-head{padding:19px 17px 14px}.panel-body{padding:0 17px 19px}.dashboard-grid{gap:18px}.chart{gap:10px}.bar-value{font-size:10px}.bar-label{font-size:11px}.cards{grid-template-columns:1fr}.fleet-mini{grid-template-columns:1fr}.fleet-mini>:last-child{display:block}.vehicle-mini{padding:17px}.vehicle-mini-top{margin-bottom:6px}.vehicle-mini h3{margin:6px 0}.vehicle-bottom{margin-top:10px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);z-index:30;padding:8px 5px max(8px,env(safe-area-inset-bottom));justify-content:space-around;box-shadow:0 -4px 15px #21322804}.mobile-nav button{border:none;background:none;color:#8b9690;display:flex;flex-direction:column;gap:5px;align-items:center;font-size:10px;padding:3px 5px;min-width:50px}.mobile-nav button.active{color:var(--green);font-weight:600}.mobile-nav svg{width:21px;height:21px}.tabs{gap:19px}.filters .search{width:100%;flex-basis:100%}.filters select{flex:1;min-width:0}.modal-body{padding:20px}.modal-head{padding:21px 20px 15px}.form-grid{gap:15px}.form-grid .field{grid-column:1/-1}.detail-stats{grid-template-columns:1fr 1fr}.detail-stat:last-child{grid-column:1/-1}.detail-stat b{font-size:18px}.form-actions{position:sticky;bottom:-20px;background:white;margin-left:-20px;margin-right:-20px;padding:15px 20px;margin-bottom:-20px}.form-actions .btn{flex:1}.report-controls .field{min-width:130px;flex:1}.report-controls .btn{width:100%}#toast{bottom:90px}.head-actions .btn{font-size:13px}.export-card{padding:21px}.period{font-size:11px}.stat-value{white-space:normal}.footer-note{text-align:left}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.filter-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:13px;margin-bottom:21px}.filter-panel .field{font-size:12px}.report-filter-panel{padding:22px}.report-filter-panel .filter-panel{grid-template-columns:repeat(4,minmax(0,1fr))}.report-filter-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid var(--line);padding-top:18px}.report-total{display:flex;align-items:center;gap:20px;padding:10px 23px 23px;color:#728578;font-size:14px}.report-total strong{font-size:23px;color:var(--green);font-weight:650}.report-export-bar{padding:20px 22px;display:flex;gap:9px;flex-wrap:wrap;border-top:1px solid var(--line)}.form-section{padding:8px 0;border-bottom:1px solid var(--line);font-size:15px;color:#294b39;font-weight:600;margin-top:5px}.record-control{padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.record-control .head-actions{margin-top:12px}.detail-line b{max-width:62%;overflow-wrap:anywhere;text-align:right}.boot{max-width:550px;margin:12vh auto;padding:25px;font-family:inherit;line-height:1.6}.boot .brand-mark{width:46px;height:46px}.boot h2{font-size:24px;font-weight:600}.boot p{color:#6b7c71}.sync-failed{background:#fff0e9!important;color:#aa5038!important}.error-notice{background:#fff3ed;border-color:#f4d9c9;color:#a05036}.error-notice .head-actions{margin-top:12px}.access-note{font-size:12px;color:#876f32;padding:8px 14px;background:#fff7e8;border-radius:7px}.mobile-nav{overflow-x:auto;justify-content:space-evenly}.mobile-nav button{flex-shrink:0}.report-filter-panel .input{width:100%}
@media(max-width:1050px){.report-filter-panel .filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.report-filter-panel{padding:17px}.report-filter-bottom{align-items:flex-start;flex-direction:column}.report-filter-bottom .btn{width:100%}.filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-nav{justify-content:flex-start;gap:10px}.mobile-nav button{min-width:55px;flex:1}.detail-line{gap:12px}.detail-line b{max-width:55%}.report-total{align-items:flex-start;flex-direction:column;gap:7px}.report-export-bar .btn{flex:1;min-width:130px}}

[hidden]{display:none!important}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#eef7f3 0,#f7f9f8 45%,#edf3f0 100%)}.auth-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px;box-shadow:0 24px 70px rgba(20,55,38,.10)}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:32px}.auth-card h1{font-size:27px;letter-spacing:-.7px;margin:0 0 10px}.auth-card>p{color:var(--muted);font-size:14px;line-height:1.6;margin:0 0 25px}.auth-fields{display:grid;gap:16px}.auth-fields .field{grid-column:1/-1}.auth-submit{width:100%;margin-top:20px}.auth-help{font-size:12px!important;margin:20px 0 0!important;text-align:center}.auth-card .brand-sub{margin-top:2px}
@media(max-width:500px){.auth-screen{padding:14px;align-items:start;padding-top:8vh}.auth-card{padding:25px 20px}.auth-card h1{font-size:24px}}

/* АлгаТЭК STUDIO — фирменная система: красный бренд, зелёный рабочий акцент */
:root{--green:#087f67;--green-dark:#075d4d;--green-soft:#e8f4ef;--red:#df1017;--ink:#17231e;--muted:#6f7c76;--line:#dfe7e3;--soft:#f0f5f2}
body{background:#f1f5f3;color:var(--ink)}
.sidebar{background:#fff;border-right:1px solid #dce6e1;box-shadow:8px 0 30px rgba(18,57,40,.035)}
.brand{padding:0 10px 30px;gap:10px;align-items:center;position:relative}
.brand::after{content:"";position:absolute;left:12px;right:12px;bottom:15px;height:1px;background:#edf1ef}
.brand-mark{width:43px;height:43px;border-radius:10px;background:#fff url("brand-mark.webp") center/cover no-repeat;color:transparent;box-shadow:0 6px 18px rgba(123,20,20,.13);border:1px solid #f2e1e1;overflow:hidden;flex:0 0 auto}
.brand-name{font-size:0;width:130px;height:26px;background:url("brand-wordmark.webp") left center/contain no-repeat}
.brand-sub{font-size:11px;color:var(--green);font-weight:800;letter-spacing:4.2px;margin:2px 0 0 2px}
.nav-label{color:#8b9690;font-weight:700;letter-spacing:1.5px}
.nav-item{position:relative;color:#596861;border:1px solid transparent}
.nav-item:hover{background:#f3f7f5;color:#244b3b}
.nav-item.active{background:var(--green-soft);border-color:#d6ebe2;color:var(--green-dark);box-shadow:inset 3px 0 0 var(--green)}
.nav-item.active svg{color:var(--green)}
.nav-item .count{background:var(--red);color:#fff}
.workspace{background:#f8faf9;border-color:#e3eae7}
.workspace>span:first-child{background:var(--green-soft);color:var(--green)}
.topbar{background:rgba(255,255,255,.97);border-color:#dfe7e3;position:sticky;top:0;z-index:15;box-shadow:0 6px 20px rgba(22,62,44,.025)}
.content{padding-top:30px}
.page-head h1{color:#14251d;font-weight:700}
.panel,.stat,.vehicle-card,.vehicle-mini{border-color:#dfe7e3;box-shadow:0 8px 28px rgba(18,61,42,.035)}
.stat{position:relative;overflow:hidden}
.stat::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#d7e8e0}
.stat:first-child{background:#0a6f5a;border-color:#0a6f5a;color:#fff}
.stat:first-child::before{background:var(--red)}
.stat:first-child .stat-top,.stat:first-child .stat-top svg,.stat:first-child .stat-note{color:#d8eee6}
.btn{border-radius:8px;border-color:#d7e2dd;transition:transform .14s ease,background .14s ease,border-color .14s ease,box-shadow .14s ease}
.btn:hover{transform:translateY(-1px);border-color:#bcd4c9}
.btn.primary{background:var(--green);border-color:var(--green);box-shadow:0 7px 18px rgba(8,127,103,.17)}
.btn.primary:hover{background:var(--green-dark);border-color:var(--green-dark)}
.btn.danger{color:#bb2026;border-color:#f0d3d4;background:#fffafa}
.status{border:1px solid #d7eadf}
.demo-badge{border-color:#d5e5de;background:#f2f8f5;color:#477163;font-weight:700}
.input,select.input{background:#fbfdfc;border-color:#d6e2dc;border-radius:8px}
.input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(8,127,103,.12)}
.auth-screen{background:#edf4f1}
.auth-card{border:1px solid #dce6e1;border-top:4px solid var(--red);box-shadow:0 28px 80px rgba(19,58,42,.14)}
.auth-brand{padding-bottom:23px;border-bottom:1px solid #edf1ef;margin-bottom:27px}
.auth-brand .brand-mark{width:58px;height:58px;border-radius:13px}
.auth-brand .brand-name{width:160px;height:31px}
.auth-brand .brand-sub{font-size:12px;letter-spacing:5px}
.boot{text-align:center;background:#fff;border:1px solid #dfe7e3;border-top:4px solid var(--red);border-radius:16px;box-shadow:0 25px 70px rgba(19,58,42,.10)}
.boot .brand-mark{margin:0 auto;width:64px;height:64px;border-radius:14px}
.mobile-brand{font-size:0;width:118px;height:24px;background:url("brand-wordmark.webp") left center/contain no-repeat}
.mobile-nav{border-color:#dce6e1;box-shadow:0 -8px 30px rgba(18,57,40,.07)}
.mobile-nav button.active{color:var(--green-dark)}
.report-filter-panel{border-top:3px solid var(--green)}
.report-total strong{color:var(--green-dark)}
dialog{border-color:#dce6e1;border-top:4px solid var(--green)}
#toast{background:#173c30}
@media(max-width:700px){.topbar{box-shadow:0 5px 18px rgba(18,57,40,.05)}.content{background:#f3f7f5}.page-head h1{font-size:25px}.stat:first-child{grid-column:1/-1}.brand-mark{width:40px;height:40px}.auth-card{border-radius:14px}.mobile-brand{display:block}}

/* Компактные реестры и рабочее место водителя */
.compact-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.compact-cards .vehicle-card{width:100%;padding:15px 16px;display:flex;flex-direction:column;min-height:0}.compact-cards .vehicle-card-head{min-height:36px}.compact-cards .truck-icon{width:38px;height:38px;border-radius:9px}.compact-cards .truck-icon svg{width:21px;height:21px}.compact-cards .vehicle-card h2{font-size:16px;line-height:1.3;margin:12px 0 5px}.compact-cards .vehicle-card .plate{margin-bottom:10px}.compact-cards .detail-line{font-size:12px;margin:7px 0}.compact-cards .progress{margin:9px 0 6px}.compact-cards .vehicle-card-foot{font-size:12px;margin-top:11px;padding-top:10px}.compact-cards .small{line-height:1.4}.vehicle-card{width:100%}
.click-row{cursor:pointer;outline:none;transition:background .14s ease}.click-row:hover,.click-row:focus-visible{background:#f3f8f5}.click-row:focus-visible{box-shadow:inset 3px 0 0 var(--green)}.row-arrow{color:#90a098;width:38px}.row-arrow svg{width:18px;height:18px;display:block}
.driver-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:18px}.driver-action{border:1px solid var(--line);background:#fff;border-radius:12px;padding:18px;text-align:left;color:var(--ink);cursor:pointer;display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:13px;align-items:center;min-width:0;width:100%;box-shadow:0 8px 28px rgba(18,61,42,.035);transition:.15s}.driver-action:hover{transform:translateY(-1px);border-color:#9fc9b8;box-shadow:0 11px 30px rgba(18,61,42,.07)}.driver-action>span{grid-row:1/3;width:42px;height:42px;border-radius:10px;background:var(--green-soft);color:var(--green);display:grid;place-items:center}.driver-action>span svg{width:22px;height:22px}.driver-action strong{font-size:15px;line-height:1.25;min-width:0;overflow-wrap:anywhere}.driver-action small{font-size:12px;color:var(--muted);line-height:1.4;margin-top:3px;min-width:0;overflow-wrap:anywhere}.driver-action.primary{background:var(--green);border-color:var(--green);color:#fff}.driver-action.primary>span{background:rgba(255,255,255,.15);color:#fff}.driver-action.primary small{color:#d8eee6}
.driver-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:18px}.driver-summary .stat{padding:17px}.driver-summary .stat-value{font-size:26px;margin:11px 0 6px}.driver-summary .stat:first-child{background:#fff;border-color:var(--line);color:var(--ink)}.driver-summary .stat:first-child::before{background:#d7e8e0}.driver-summary .stat:first-child .stat-top,.driver-summary .stat:first-child .stat-top svg,.driver-summary .stat:first-child .stat-note{color:var(--muted)}
.driver-feed{overflow:hidden}.driver-feed .panel-head p{margin:5px 0 0}.driver-records{display:flex;flex-direction:column}.driver-record{width:100%;border:0;border-top:1px solid #edf1ef;background:#fff;color:inherit;display:grid;grid-template-columns:38px minmax(0,1fr) 22px;gap:12px;align-items:center;text-align:left;padding:14px 20px;cursor:pointer;transition:background .14s ease}.driver-record:first-child{border-top:0}.driver-record:hover,.driver-record:focus-visible{background:#f4f8f6;outline:none}.driver-record-icon{width:38px;height:38px;border-radius:9px;background:var(--green-soft);color:var(--green);display:grid;place-items:center}.driver-record-icon.pending{background:#fcf4e5;color:#a98539}.driver-record-icon.returned{background:#fbeeee;color:#b76558}.driver-record-icon.blue{background:#edf3fc;color:#6283b4}.driver-record-icon svg{width:19px;height:19px}.driver-record-main{min-width:0}.driver-record-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.driver-record-top strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.driver-record-sub{font-size:12px;color:var(--muted);line-height:1.45;display:block;margin-top:4px;overflow-wrap:anywhere}.driver-record-arrow{color:#98a69e}.driver-record-arrow svg{width:18px;height:18px;display:block}.driver-mini-summary{display:flex;gap:9px;flex-wrap:wrap;margin:-7px 0 18px}.driver-mini-summary>span{background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 12px;color:var(--muted);font-size:12px}.driver-mini-summary b{color:var(--ink);font-size:14px;margin-right:3px}.driver-mini-summary .returned{background:#fff6f4;border-color:#f0d7d2}.driver-mini-summary .returned b{color:#a94f42}
@media(max-width:1200px){.compact-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.compact-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.driver-actions{grid-template-columns:1fr}.driver-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.compact-cards{grid-template-columns:1fr}.compact-cards .vehicle-card{padding:14px 15px}.driver-actions{gap:10px}.driver-action{padding:15px}.driver-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.driver-summary .stat{padding:13px 10px}.driver-summary .stat-value{font-size:23px}.driver-summary .stat-note{display:none}.driver-record{padding:13px 14px;grid-template-columns:36px minmax(0,1fr) 17px;gap:10px}.driver-record-icon{width:36px;height:36px}.driver-record-top{align-items:flex-start;flex-direction:column;gap:5px}.driver-record-top strong{white-space:normal}.driver-record-top .status{font-size:11px}.driver-feed .panel-head{padding-bottom:13px}.driver-mini-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.driver-mini-summary>span{padding:9px}}

/* АлгаТЭК STUDIO 3.0 — операционный центр */
.command-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:-4px 0 18px}.command{min-width:0;border:1px solid var(--line);background:#fff;border-radius:12px;padding:15px 16px;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;text-align:left;color:var(--ink);box-shadow:0 7px 22px rgba(18,61,42,.03);transition:.15s}.command:hover{border-color:#9fc6b6;transform:translateY(-1px);box-shadow:0 10px 26px rgba(18,61,42,.07)}.command>span{grid-row:1/3;width:38px;height:38px;display:grid;place-items:center;border-radius:9px;background:var(--green-soft);color:var(--green)}.command>span svg{width:20px;height:20px}.command b{font-size:14px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.command small{font-size:11px;color:var(--muted);line-height:1.35;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.command.primary{background:var(--green);border-color:var(--green);color:#fff}.command.primary>span{background:rgba(255,255,255,.14);color:#fff}.command.primary small{color:#c9e3d9}.executive-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.executive-stats .stat{padding:18px 19px}.executive-stats .stat:first-child{background:#153d31;border-color:#153d31}.executive-stats .stat-value{margin:12px 0 6px;font-size:26px}.control-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.8fr);gap:18px;margin-bottom:18px}.control-grid.lower{grid-template-columns:repeat(2,minmax(0,1fr))}.eyebrow{display:block;text-transform:uppercase;letter-spacing:1.25px;color:#91a098;font-size:10px;font-weight:800;margin-bottom:7px}.priority-panel .panel-head,.readiness-panel .panel-head{padding-bottom:13px}.priority-count{min-width:29px;height:29px;border-radius:8px;background:#f2f5f3;color:#66786e;font-size:12px;font-weight:700;display:grid;place-items:center}.priority-list{border-top:1px solid #edf1ef}.priority-row{width:100%;border:0;border-bottom:1px solid #edf1ef;background:#fff;padding:12px 19px;display:grid;grid-template-columns:36px minmax(0,1fr) 19px;gap:12px;align-items:center;text-align:left;color:inherit}.priority-row:last-child{border-bottom:0}.priority-row:hover{background:#f7faf8}.priority-icon{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:#edf3fc;color:#6283b4}.priority-icon svg{width:18px;height:18px}.priority-icon.amber{background:#fcf4e5;color:#a98539}.priority-icon.red{background:#fbeeee;color:#b76558}.priority-row b{display:block;font-size:13px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.priority-row small{display:block;color:var(--muted);font-size:11px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.priority-arrow{color:#9aa69f}.priority-arrow svg{width:17px;height:17px}.readiness-score{padding:6px 22px 25px;display:grid;grid-template-columns:132px 1fr;gap:25px;align-items:center}.score-ring{--score:0;width:128px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) calc(var(--score)*1%),#e9efec 0);position:relative}.score-ring::after{content:"";position:absolute;inset:11px;background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px #edf1ef}.score-ring>span{position:relative;z-index:1;text-align:center}.score-ring b{display:block;font-size:25px;letter-spacing:-.8px}.score-ring small{font-size:10px;color:var(--muted)}.state-bars{display:grid;gap:17px}.state-bars>div>span{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:7px}.state-bars b{color:var(--ink)}.state-track{height:6px;background:#edf1ef;border-radius:999px;overflow:hidden}.state-track i{height:100%;display:block;background:#2a8f72;border-radius:999px}.state-track i.s1{background:#8aa498}.state-track i.s2{background:#d45d59}.cost-list{padding:0 21px 18px}.cost-row{width:100%;border:0;border-top:1px solid #edf1ef;background:#fff;display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;text-align:left;color:inherit}.cost-row:hover .cost-main b{color:var(--green)}.cost-rank{font-size:10px;color:#a1aaa5;font-variant-numeric:tabular-nums}.cost-main{min-width:0}.cost-main b{font-size:13px;display:block;margin-bottom:8px}.cost-main i{display:block;height:4px;border-radius:4px;background:#eef2f0;overflow:hidden}.cost-main em{display:block;height:100%;background:var(--green);border-radius:4px}.cost-row strong{font-size:13px;white-space:nowrap}.service-queue{padding:0 21px 16px}.service-queue>button{width:100%;border:0;border-top:1px solid #edf1ef;background:#fff;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;text-align:left;color:inherit}.service-queue>button:hover b{color:var(--green)}.service-queue b{display:block;font-size:13px}.service-queue small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.service-queue strong{font-size:11px;color:#587568;white-space:nowrap}.service-queue strong.overdue{color:#b44943}.locked-role{background:#f3f7f5;border:1px solid #dce7e1;border-radius:999px;padding:7px 11px!important;gap:7px!important;color:#4e685c!important}.locked-role b{font-size:12px;font-weight:700}.role-dot{width:7px;height:7px;border-radius:50%;background:#1b9a76;box-shadow:0 0 0 3px #dff1e9}.topbar .demo-badge{border-radius:999px}.footer-note{letter-spacing:.2px}
@media(max-width:1150px){.command-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.control-grid,.control-grid.lower{grid-template-columns:1fr}.readiness-panel{min-height:0}}
@media(max-width:700px){.command-bar{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.command{padding:13px 11px;grid-template-columns:34px minmax(0,1fr);column-gap:9px}.command>span{width:34px;height:34px}.command b{font-size:12px}.command small{font-size:10px}.executive-stats{gap:9px}.executive-stats .stat{padding:14px 12px}.executive-stats .stat-value{font-size:22px}.control-grid{gap:14px}.readiness-score{grid-template-columns:105px 1fr;gap:18px;padding:5px 16px 20px}.score-ring{width:105px}.score-ring b{font-size:22px}.priority-row{padding:12px 14px}.priority-row b,.priority-row small{white-space:normal}.cost-list,.service-queue{padding-left:15px;padding-right:15px}.service-queue>button{grid-template-columns:auto minmax(0,1fr)}.service-queue>button>strong{grid-column:2}.page-head+.command-bar{margin-top:-3px}.locked-role{padding:6px 9px!important}.locked-role b{max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:390px){.command-bar{grid-template-columns:1fr}.executive-stats{grid-template-columns:1fr 1fr}.readiness-score{grid-template-columns:1fr}.score-ring{margin:auto}.state-bars{width:100%}}
.unsaved-confirm{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:rgba(21,34,28,.42)}.unsaved-card{width:min(100%,440px);padding:24px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 60px rgba(20,35,28,.2)}.unsaved-card h2{margin:0 0 9px;font-size:19px}.unsaved-card p{margin:0 0 20px;color:var(--muted);line-height:1.5}.unsaved-actions{display:flex;flex-wrap:wrap;gap:9px}.unsaved-actions .btn{flex:1 1 170px}
.activity-overview{margin:0 0 22px}.activity-overview .panel-head{align-items:flex-start}.activity-overview .panel-head .small{margin:7px 0 0}.activity-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 22px 20px}.activity-filters .field{min-width:0}.activity-rank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:0 22px 16px}.activity-rank{min-width:0}.activity-rank h3{margin:2px 0 14px;font-size:14px}.activity-rank-row{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;padding:9px 0;border-top:1px solid var(--line)}.activity-rank-number{font-size:12px;color:var(--muted);padding-top:3px}.activity-rank-main{min-width:0}.activity-rank-label{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.activity-rank-label b{font-size:13px;overflow-wrap:anywhere}.activity-rank-label strong{font-size:12px;white-space:nowrap}.activity-track{height:6px;border-radius:6px;background:#edf1ef;margin:7px 0 4px;overflow:hidden}.activity-track i{display:block;height:100%;background:var(--green);border-radius:inherit}.activity-rank-row small{font-size:11px;color:var(--muted)}.activity-footnote{padding:0 22px 19px;margin:0;font-size:12px;line-height:1.5;color:var(--muted)}@media(max-width:900px){.activity-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.activity-overview .panel-head{flex-direction:column}.activity-filters,.activity-rank-grid{grid-template-columns:1fr}.activity-filters{padding:0 16px 16px}.activity-rank-grid{padding:0 16px 14px;gap:17px}.activity-footnote{padding:0 16px 16px}}
