:root{--green:#205847;--dark:#173f34;--lime:#d0efa9;--bg:#f5f7f8;--ink:#1c2d29;--muted:#7b8883;--line:#e8eeeb;--red:#bc514e;--amber:#ba852a}*{box-sizing:border-box}body{margin:0;font:14px 'DM Sans',system-ui,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button,a,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #82aa97;outline-offset:3px}svg{vertical-align:middle;flex-shrink:0}.icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.sidebar{width:244px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:31px 18px 18px;z-index:30}.brand{display:flex;align-items:center;gap:10px;padding:0 10px 26px;font-family:Manrope,system-ui,sans-serif;font-size:23px;font-weight:800;letter-spacing:-1px}.brand img{width:35px;height:35px}.brand span span{color:var(--green)}.workspace{border:1px solid var(--line);padding:12px;border-radius:9px;display:flex;gap:10px;align-items:center;margin:0 5px 22px}.workspace .initial{width:30px;height:30px;border-radius:7px;background:#eef3f1;color:var(--green);display:grid;place-items:center;font-weight:700;font-size:11px}.workspace strong{font-size:12px;font-weight:650;display:block}.workspace small{font-size:10px;color:var(--muted)}nav{overflow:auto;scrollbar-width:thin}nav label{display:block;color:#99a49f;font-size:9px;font-weight:700;letter-spacing:1.5px;padding:12px 16px 8px}nav button{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:10px 15px;border-radius:7px;margin:2px 0;color:#77837f;font-size:12px;font-weight:500}nav button:hover{background:#f3f6f4}nav button.active{color:var(--green);background:#eaf3ee;font-weight:700}nav button .icon{width:17px;height:17px}.nav-count{margin-left:auto;background:#e8ece9;border-radius:5px;font-size:9px;padding:1px 5px}.side-bottom{margin-top:auto;padding-top:17px}.side-note{padding:14px;background:#f6f8f5;border:1px solid #e8eee3;border-radius:9px;font-size:10px;color:#74816a;line-height:1.7}.side-note b{display:block;color:#45633e;font-size:11px}.profile{display:flex;align-items:center;gap:10px;padding:18px 7px 0;font-size:11px}.avatar{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#ede9df;color:#8d8269;font-weight:700}.profile small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.main{margin-left:244px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:#fff;border-bottom:1px solid var(--line);gap:15px}.breadcrumb{font-size:11px;color:#8c9691;display:flex;align-items:center;gap:11px}.breadcrumb b{color:#40524a;font-weight:500}.top-actions{display:flex;align-items:center;gap:16px}.top-actions .divider{height:23px;width:1px;background:var(--line)}.demo-chip{font-size:10px;border:1px solid #eadfc6;background:#fcf9f1;border-radius:5px;padding:5px 8px;color:#9b7c3d}.icon-btn{width:32px;height:32px;border-radius:7px;display:grid;place-items:center;position:relative}.icon-btn:hover{background:#f2f5f3}.dot{position:absolute;top:4px;right:6px;background:#d69f48;width:5px;height:5px;border:1px solid white;border-radius:50%}.content{padding:30px 34px 24px;max-width:1700px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.eyebrow{font-size:9px;text-transform:uppercase;letter-spacing:1.9px;color:#91a197;font-weight:650;margin-bottom:9px}h1{font:750 27px Manrope,system-ui,sans-serif;letter-spacing:-.9px;margin:0 0 7px}p.subtitle{color:#89938e;font-size:12px;margin:0;line-height:1.7}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;border-radius:7px;font-size:11px;font-weight:600;white-space:nowrap;background:#fff;border:1px solid #e1e8e4}.btn .icon{width:15px;height:15px}.btn.primary{background:var(--green);color:#fff;border-color:var(--green)}.btn.primary:hover{background:#153f32}.btn:hover{filter:brightness(.98)}.btn.light{background:#edf4ed;color:#396c46;border-color:#e0ebdb}.btn.danger{color:var(--red)}.controls{display:flex;gap:10px;align-items:center}.filters{display:flex;align-items:center;gap:10px;margin-bottom:23px}.filterbox{display:flex;align-items:center;gap:9px;border:1px solid #e1e8e4;border-radius:7px;padding:9px 12px;background:#fff;color:#61716a}.filterbox .icon{width:15px;height:15px}.filterbox select{border:none;background:transparent;outline:none;font-size:11px;color:#4c5f55;min-width:145px}.filterbox.month select{min-width:112px}.period-note{margin-left:auto;color:#9aa39e;font-size:10px;display:flex;align-items:center;gap:6px}.period-note .icon{width:12px;height:12px}.hero{display:grid;grid-template-columns:1fr 235px;align-items:center;background:var(--dark);color:#fff;border-radius:12px;padding:25px 27px;margin-bottom:23px;position:relative;overflow:hidden;min-height:137px}.hero .eyebrow{color:#b1c5ba;font-size:9px;margin-bottom:8px}.hero h2{font:650 20px Manrope,system-ui,sans-serif;margin:0 0 9px;letter-spacing:-.4px}.hero p{font-size:11px;line-height:1.7;color:#b6c9c0;max-width:550px;margin:0}.hero-badge{display:inline-flex;align-items:center;gap:5px;color:#d8ecc9;margin-top:13px;font-size:9px}.hero-badge i{width:5px;height:5px;border-radius:50%;background:#b6de91}.road-art{height:108px;width:230px;opacity:.8}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.kpi{background:white;border:1px solid var(--line);border-radius:10px;padding:18px 19px}.kpi-top{display:flex;align-items:center;justify-content:space-between;color:#89948f;font-size:11px;margin-bottom:15px}.kpi-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;color:#5c806c;background:#eef4ee}.kpi:nth-child(2) .kpi-icon{background:#edf1f8;color:#7891b6}.kpi:nth-child(3) .kpi-icon{background:#fcf6e9;color:#bb9d5e}.kpi:nth-child(4) .kpi-icon{background:#f2eef8;color:#9b86b4}.kpi-icon .icon{width:16px;height:16px}.kpi-value{font:750 27px Manrope,system-ui,sans-serif;letter-spacing:-1px;line-height:1}.kpi-value small{font-size:12px;color:#9ba69f;font-weight:500;letter-spacing:0;margin-left:3px}.kpi-foot{margin-top:14px;color:#9aa49e;font-size:9px;display:flex;gap:6px;align-items:center}.kpi-foot b{font-weight:500;color:#4d866a}.middle-grid{display:grid;grid-template-columns:1.8fr 1fr;gap:20px;margin-bottom:22px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:10px}.panel-head h2{font:700 13px Manrope,system-ui,sans-serif;margin:0 0 5px}.panel-head p{font-size:10px;color:#99a29d;margin:0}.text-link{font-size:10px;color:#68836f;display:flex;align-items:center;gap:5px}.text-link .icon{width:12px;height:12px}.chart-key{font-size:9px;color:#91a097;display:flex;gap:6px;align-items:center}.chart-key:before{content:'';width:6px;height:6px;border-radius:2px;background:#46735b}.chart{width:100%;height:180px;overflow:visible}.chart text{font:10px 'DM Sans',system-ui;fill:#a5afa8}.chart-summary{display:flex;gap:25px;border-top:1px solid #f0f3f0;padding-top:15px;margin-top:8px}.chart-summary small{display:block;font-size:9px;color:#97a198;margin-bottom:5px}.chart-summary b{font:650 15px Manrope,system-ui}.chart-summary b span{font-size:9px;color:#9ca89e;font-weight:400}.tank-row{margin-bottom:22px}.tank-row:last-child{margin-bottom:0}.tank-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:11px}.tank-title strong{font-weight:550;display:flex;align-items:center;gap:8px}.fuel-dot{width:7px;height:7px;background:#658e67;border-radius:2px}.fuel-dot.amber{background:#ceaa61}.tank-title small{font-size:9px;color:#9ca49e}.progress{height:7px;background:#f0f4ee;border-radius:5px;overflow:hidden}.progress span{display:block;height:100%;background:#729b72;border-radius:5px}.progress.amber span{background:#d3b56f}.tank-bottom{display:flex;justify-content:space-between;font-size:9px;color:#9aa59b;margin-top:8px}.tank-bottom b{font-weight:550;color:#5f7b62}.tank-bottom .warning{color:#b58b43}.tank-tip{display:flex;align-items:center;gap:8px;font-size:9px;background:#faf8f1;border:1px solid #f0ead8;border-radius:6px;padding:10px;color:#a18b58;margin-top:19px}.tank-tip .icon{width:14px;height:14px}.lower-grid{display:grid;grid-template-columns:1.8fr 1fr;gap:20px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left;font-size:11px}th{color:#98a29d;font-weight:500;font-size:9px;padding:12px;border-bottom:1px solid var(--line);background:#fafcfb}td{padding:14px 12px;border-bottom:1px solid #f0f3f1;color:#728178}tr:last-child td{border-bottom:0}td b{font-weight:650;color:#40584b}td small{display:block;font-size:9px;color:#a0aaa3;margin-top:4px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;font-size:9px;padding:4px 7px;background:#edf6ed;color:#5f8c63}.badge:before{content:'';width:4px;height:4px;background:currentColor;border-radius:50%}.badge.warn{background:#fcf5e8;color:#bc9853}.badge.red{background:#fcefee;color:#bf7370}.badge.blue{background:#edf2f8;color:#8299b8}.plate{font-size:10px;letter-spacing:.6px;font-weight:650;color:#425a4c}.table-panel{padding:20px 0 0}.table-panel>.panel-head{padding:0 20px;margin-bottom:12px}.alert-item{display:flex;gap:11px;padding:13px 0;border-bottom:1px solid #f0f3f0}.alert-item:last-child{border:none}.alert-icon{width:29px;height:29px;border-radius:7px;background:#fbf5e9;color:#c9a057;display:grid;place-items:center;flex-shrink:0}.alert-icon.red{background:#fbefed;color:#c1877b}.alert-icon .icon{width:15px;height:15px}.alert-item strong{font-size:10px;font-weight:600;display:block;line-height:1.6}.alert-item p{font-size:9px;color:#9ba69e;margin:4px 0 6px;line-height:1.6}.alert-item a,.alert-item button{font-size:9px;color:#6c886e;text-decoration:none;padding:0}.alert-count{font-size:9px;padding:4px 7px;border-radius:5px;background:#f7f4e8;color:#b39a58}.quick-bar{display:flex;align-items:center;gap:12px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:9px;margin-top:22px}.quick-bar>span{font-size:10px;color:#9aa69d;margin-right:10px}.quick-bar .btn{font-size:10px;padding:9px 12px;background:#fafcf9;border-color:#e9eee6}.footer{display:flex;justify-content:space-between;color:#a6b0a9;font-size:9px;padding-top:24px;gap:20px}.footer b{font-weight:500;color:#7a9380}.list-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}.search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e0e8e2;padding:11px 13px;border-radius:7px;min-width:280px}.search input{border:0;outline:0;font-size:11px;width:100%;background:transparent}.search .icon{color:#8c9c91;width:16px;height:16px}.row-actions{display:flex;gap:5px}.row-actions button{color:#829187;padding:4px}.empty{padding:45px;text-align:center;color:#8d9a90;font-size:12px;line-height:1.8}.empty .icon{width:30px;height:30px;margin-bottom:12px}.stat-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.stat-strip .panel{padding:18px}.stat-strip span{display:block;color:#8d9b92;font-size:10px;margin-bottom:9px}.stat-strip b{font:700 23px Manrope,system-ui}.settings-grid,.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.report-card .iconbox{background:#eef4ee;color:#66816a;border-radius:9px;width:40px;height:40px;display:grid;place-items:center;margin-bottom:18px}.report-card h3{font:700 14px Manrope,system-ui;margin:0 0 8px}.report-card p{font-size:11px;color:#91a096;line-height:1.8;margin:0 0 20px}.report-card .controls{flex-wrap:wrap}.info{font-size:11px;color:#7e8f83;line-height:1.9;background:#f2f6f1;padding:14px 17px;border-radius:7px;margin-bottom:18px}.settings-grid h3{font-size:13px;margin:0 0 14px}.settings-grid p{font-size:11px;color:#8d9c90;line-height:1.8}.settings-grid code{font-size:10px;background:#f0f4ef;padding:3px 6px;border-radius:3px}.integration-status{color:#aa8e59;background:#faf6ed;padding:6px 9px;border-radius:4px;font-size:10px;display:inline-block}.mobile-menu{display:none}.modal-overlay{position:fixed;inset:0;background:#122c245e;backdrop-filter:blur(3px);z-index:100;display:flex;justify-content:center;align-items:center;padding:22px}.modal{width:620px;max-width:100%;max-height:92dvh;overflow:auto;border-radius:12px;background:#fff;box-shadow:0 25px 100px #12302430}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:23px 25px;border-bottom:1px solid var(--line)}.modal-header h2{font:700 18px Manrope,system-ui;margin:0}.modal form{padding:22px 25px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#74867a}.field.wide{grid-column:1/-1}.field input,.field select,.field textarea{border:1px solid #dfe7e0;border-radius:7px;padding:11px;color:#3d5546;width:100%;background:#fff;outline:0;min-width:0}.field input:focus,.field select:focus,.field textarea:focus{border-color:#799e82;box-shadow:0 0 0 3px #789b8012}.field textarea{min-height:75px;resize:vertical}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.form-error{font-size:11px;color:var(--red);margin-top:16px;line-height:1.7}.form-note{font-size:10px;color:#91a096;line-height:1.8;margin:0 0 20px}.view-detail{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:25px}.view-detail dt{color:#91a094;font-size:10px;margin-bottom:6px}.view-detail dd{margin:0;font-size:12px;line-height:1.7;color:#3f5848;overflow-wrap:anywhere}.view-detail .wide{grid-column:1/-1}#toast{position:fixed;bottom:25px;left:calc(50% + 110px);transform:translateX(-50%);z-index:200;background:#244d3c;color:#fff;padding:13px 20px;border-radius:8px;box-shadow:0 5px 20px #183c3020;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}.notifications{position:absolute;right:30px;top:67px;z-index:45;width:340px;max-width:90vw;padding:20px;box-shadow:0 15px 50px #173f3420}.hide{display:none!important}.section-tag{font-size:10px;color:#a0ada2;margin:18px 0}.app-loading{min-height:80vh;display:grid;place-items:center}.tank-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.tank-cards .panel h3{font-size:13px;margin-top:0}.tank-large{font:700 27px Manrope,system-ui;margin:15px 0}.tank-large small{font-size:12px;color:#9ba89e}.tank-cards p{font-size:10px;color:#95a198;line-height:1.8}.print-head{display:none}
@media(min-width:1500px){.content{padding:35px 45px}.topbar{padding:0 45px}.chart{height:205px}.hero{min-height:145px}.sidebar{width:254px}.main{margin-left:254px}}
@media(max-width:1150px){.sidebar{width:210px;padding-left:12px;padding-right:12px}.brand{font-size:21px}.main{margin-left:210px}.content{padding:25px 23px}.topbar{padding:0 23px}.kpis{gap:10px}.kpi{padding:15px}.kpi-value{font-size:23px}.middle-grid,.lower-grid{grid-template-columns:1.5fr 1fr}.hero{grid-template-columns:1fr 170px}.road-art{width:175px}.quick-bar{flex-wrap:wrap}.kpi-top{font-size:10px}.tank-cards{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.middle-grid,.lower-grid{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr 170px}.period-note{display:none}.topbar{height:65px}.demo-chip{font-size:9px}.top-actions{gap:7px}.settings-grid{grid-template-columns:1fr}.tank-cards{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.sidebar{transform:translateX(-100%);width:244px;transition:transform .2s}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vmax #162e2544}.main{margin-left:0}.mobile-menu{display:grid}.content{padding:23px 16px}.topbar{padding:0 14px}.breadcrumb{font-size:10px;gap:6px}.breadcrumb>span{display:none}.page-head{align-items:flex-start;gap:12px;margin-bottom:20px}h1{font-size:22px}.page-head .controls{flex-direction:column;align-items:stretch;gap:5px}.page-head .btn{font-size:10px;padding:9px 11px}.eyebrow{font-size:8px}.subtitle{max-width:240px}.filters{gap:8px;flex-wrap:wrap}.filterbox{padding:9px}.filterbox select{min-width:120px;font-size:10px}.hero{grid-template-columns:1fr;padding:22px;min-height:150px}.hero h2{font-size:19px}.hero p{font-size:10px;max-width:270px}.road-art{display:none}.kpi-top{font-size:10px}.kpi-value{font-size:24px}.kpi-foot{font-size:8px}.kpi{padding:15px}.panel{padding:18px}.table-panel{padding:18px 0 0}.table-panel>.panel-head{padding:0 18px}.list-toolbar{align-items:stretch;flex-direction:column}.search{min-width:0}.footer{font-size:8px}.fields{grid-template-columns:1fr}.field.wide{grid-column:auto}.modal-overlay{padding:10px}.modal{max-height:96dvh}.modal form{padding:20px}.modal-header{padding:20px}.report-grid,.tank-cards{grid-template-columns:1fr}.stat-strip{gap:8px}.stat-strip .panel{padding:12px}.stat-strip b{font-size:18px}.quick-bar{gap:7px;padding:15px}.quick-bar>span{width:100%}.view-detail{padding:20px;gap:17px}#toast{left:50%;width:max-content;max-width:90vw;font-size:11px}.top-actions .divider{display:none}.chart-summary{gap:20px}.demo-chip{padding:5px}.top-actions>.avatar{display:none}}
@media print{body{background:white}.sidebar,.topbar,.page-head .controls,.filters,.list-toolbar,.quick-bar,.footer,.row-actions,.text-link,.btn,.demo-chip{display:none!important}.main{margin:0}.content{padding:0;max-width:none}.panel{break-inside:avoid;box-shadow:none}.print-head{display:block;font-size:11px;margin:0 0 20px}.middle-grid,.lower-grid{display:block}.panel{margin-bottom:20px}.hero{background:#fff;color:#173f34;border:1px solid #ddd}.hero p{color:#555}th,td{padding:9px 7px;font-size:9px}.table-wrap{overflow:visible}.modal-overlay{display:none}.chart{max-height:150px}}
/* Contract workspace */
.contract-picker{max-width:600px;margin-bottom:22px}.contract-stats small{display:block;font-size:10px;color:var(--muted);margin-top:9px;line-height:1.6}.contract-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:20px}.group-row td{background:#edf3ee;color:#4a6a54;font-weight:650;font-size:11px;padding:12px 15px}.group-row small{font-weight:400;color:#86968a}.description-cell{white-space:normal;min-width:210px;max-width:420px;line-height:1.7}.qty-input{width:98px;border:1px solid #dfe7e0;border-radius:6px;padding:9px;background:#fff;color:#425d4a;font:inherit}.editor-toolbar{display:flex;gap:10px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.spacer{flex:1}.editor-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-fields label:first-child{grid-column:span 2}.checkbox-field{display:flex;align-items:center;gap:9px;font-size:11px;color:#778c7d;padding-top:20px}.checkbox-field input{accent-color:#467854;width:16px;height:16px}.calendar-toggle{margin-top:8px}.calendar-toggle .icon{width:12px;height:12px}.calendar-row td{background:#fafcf9;white-space:normal}.calendar-box{display:flex;gap:18px;flex-wrap:wrap;align-items:center;padding:10px}.calendar-box strong{font-size:11px}.calendar-box p{font-size:10px;color:#8a9b8f;margin:5px 0}.daily-field{width:105px}.daily-field input{padding:7px}.days-grid{display:flex;gap:5px;flex-wrap:wrap;flex-basis:100%;max-width:900px}.day{position:relative;display:block;width:29px;height:29px}.day input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.day span{display:grid;place-items:center;width:100%;height:100%;background:#fff;border:1px solid #dae5dc;border-radius:5px;color:#829788;font-size:10px}.day input:checked+span{background:#507e59;color:white;border-color:#507e59}.day input:focus-visible+span{outline:2px solid #8eb897}.day.disabled span{background:#e7ebe6;border-color:#e7ebe6;color:#bdc5bd}.day.disabled input{cursor:not-allowed}.measurement-summary{display:flex;gap:35px;justify-content:space-between;margin-bottom:22px;flex-wrap:wrap}.measurement-summary small{display:block;color:#91a093;font-size:11px;margin-bottom:8px}.measurement-summary strong{font:700 25px Manrope,system-ui}.action-summary{display:flex;gap:15px;flex-wrap:wrap;margin-bottom:22px}.action-summary>div{padding:13px;background:#f2f6ef;border:1px solid #e6eee1;border-radius:7px;min-width:190px;flex:1}.action-summary span{display:block;font-size:10px;color:#82947e;margin-bottom:6px}.action-summary b{display:block;font-size:14px;margin-bottom:10px}.hierarchy{margin-bottom:22px}.hierarchy-root{display:flex;gap:10px;align-items:center;font-size:13px;font-weight:700;padding:10px 0}.hierarchy-node{display:flex;gap:10px;align-items:center;border-left:2px solid #dce9dc;padding:8px 13px;flex-wrap:wrap}.hierarchy-node strong{font-size:11px;font-weight:550}.hierarchy-node small{color:#96a391;font-size:10px}.hierarchy-node .icon-btn{margin-left:auto}.theme-choices{display:flex;gap:10px;flex-wrap:wrap}.theme-choice{padding:15px 22px;border:1px solid var(--line);border-radius:8px;text-align:center;font-size:11px}.theme-choice.active{border-color:var(--green);background:#ebf3e9;color:var(--green)}#print-measurement{display:none}.measurement-table td{vertical-align:top}.contract-plan-btn{border:1px solid var(--line)!important;border-radius:4px}
/* Dark theme: explicit surfaces and form contrast */
html[data-theme=dark]{color-scheme:dark;--green:#86b99c;--dark:#173f34;--lime:#bddd9d;--bg:#141d1b;--ink:#dce7df;--muted:#9caea2;--line:#34413a;--red:#e89a95;--amber:#d9b971}html[data-theme=dark] body{background:var(--bg);color:var(--ink)}html[data-theme=dark] :is(.sidebar,.topbar,.panel,.kpi,.btn,.filterbox,.search,.modal,.quick-bar){background:#1d2924;border-color:#34413a}html[data-theme=dark] :is(h1,h2,h3,.brand,.workspace strong,.kpi-value,td b,.plate,.breadcrumb b){color:#e0eae3}html[data-theme=dark] :is(.subtitle,.panel-head p,.breadcrumb,.kpi-top,.kpi-foot,.period-note,.field,.profile small,.form-note,.tank-title small,.tank-bottom,.settings-grid p,.footer,.quick-bar>span,.list-toolbar,.stat-strip span){color:#a0b1a6}html[data-theme=dark] nav button{color:#a7b8ab}html[data-theme=dark] nav label{color:#809789}html[data-theme=dark] nav button.active{background:#2b4738;color:#b7d8bd}html[data-theme=dark] nav button:hover{background:#2b3930}html[data-theme=dark] :is(.side-note,.workspace .initial,.kpi-icon,.info,.action-summary>div){background:#263a2d;border-color:#3c503e;color:#b2c5ac}html[data-theme=dark] .side-note b{color:#bbd1b3}html[data-theme=dark] :is(.btn.primary,.day input:checked+span){background:#538164;border-color:#6a9877;color:#fff}html[data-theme=dark] .btn.light{background:#2a4032;color:#b0d0ad;border-color:#3d5140}html[data-theme=dark] :is(input,select,textarea,.qty-input,.field input,.field select,.field textarea){background:#17221d;color:#dce7df;border-color:#43574a}html[data-theme=dark] .filterbox select{background:transparent;color:#bdcdbf}html[data-theme=dark] :is(th,.group-row td,.calendar-row td){background:#26352b;color:#afc4b3}html[data-theme=dark] :is(td,.tank-title,.chart-summary small){color:#afc0b2;border-color:#2c3b31}html[data-theme=dark] td small{color:#8ea390}html[data-theme=dark] .progress{background:#2c3b2e}html[data-theme=dark] :is(.tank-tip,.demo-chip){background:#3b3525;color:#e0c48c;border-color:#51452c}html[data-theme=dark] .avatar{background:#494337;color:#ded0ac}html[data-theme=dark] .badge{background:#2c4935;color:#b6d6b3}html[data-theme=dark] .badge.warn{background:#493e27;color:#e2c583}html[data-theme=dark] .badge.red{background:#4c302e;color:#efada5}html[data-theme=dark] .badge.blue{background:#2c3c4d;color:#aac5e0}html[data-theme=dark] .alert-icon{background:#483c28;color:#e2bd7d}html[data-theme=dark] .alert-icon.red{background:#4c302e;color:#eab1a3}html[data-theme=dark] .chart text{fill:#a8b9a7}html[data-theme=dark] .chart line{stroke:#38493a}html[data-theme=dark] .day span{background:#24342a;border-color:#4c6551;color:#b9cebb}html[data-theme=dark] .day.disabled span{background:#313c33;color:#697a6c;border-color:#313c33}html[data-theme=dark] .hierarchy-node{border-color:#49614c}html[data-theme=dark] .theme-choice.active{background:#314b38;color:#c7dfbf}html[data-theme=dark] .settings-grid code{background:#2c3c30;color:#c2d4bf}html[data-theme=dark] .icon-btn:hover{background:#2e4132}html[data-theme=dark] .text-link{color:#b2cfa9}
@media(max-width:900px){.editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.measurement-summary strong{font-size:21px}}
@media(max-width:680px){.editor-fields{grid-template-columns:1fr}.editor-fields label:first-child{grid-column:auto}.contract-stats{grid-template-columns:1fr}.contract-stats .panel{padding:18px}.editor-toolbar{gap:7px}.editor-toolbar .btn{font-size:10px;padding:9px}.spacer{display:none}.measurement-summary{gap:20px}.theme-choice{padding:12px 16px}.hierarchy-node{margin-left:10px!important}}
@media print{html[data-theme=dark] body{background:white!important;color:#222!important}.group-row td{background:#eee!important;color:#222!important}.calendar-row,.editor-toolbar,.calendar-toggle,.contract-tabs{display:none!important}.printing-measurement #app{display:none!important}.printing-measurement #print-measurement{display:block!important;color:#222;font:11px Arial,sans-serif}.printing-measurement #print-measurement h1{font-size:20px;color:#111}.printing-measurement #print-measurement table{white-space:normal;font-size:9px}.printing-measurement #print-measurement td,.printing-measurement #print-measurement th{padding:8px;color:#222;border:1px solid #ddd;background:white}.printing-measurement #print-measurement footer{margin-top:45px;font-size:10px;color:#666}.printing-measurement #print-measurement h2{font-size:15px;margin-top:25px}}
.report-style-select{border:1px solid var(--line);border-radius:7px;padding:10px;background:transparent;color:var(--ink);font-size:11px}@media print{.report-style-select{display:none!important}html[data-theme=dark] :is(.panel,.kpi,.hero,.group-row td,th,td){background:#fff!important;color:#222!important;border-color:#ddd!important}html[data-theme=dark] :is(h1,h2,h3,.kpi-value,td b,.plate,.panel-head p,.subtitle,.field){color:#222!important}}
/* Normative operations */
.printing-measurement ul{line-height:1.8}.norm-checklist{margin:12px 0}.norm-checklist li{margin:8px 0}.panel .compliance-pending{color:var(--amber)}.field input[type=datetime-local]{min-width:0}.sidebar nav{min-height:0;flex:1}.sidebar .side-bottom{flex-shrink:0}.sidebar .side-note{display:none}@media print{.printing-measurement #print-measurement table{break-inside:auto}.printing-measurement #print-measurement tr{break-inside:avoid}.printing-measurement #print-measurement p{line-height:1.7}.printing-measurement #print-measurement h2{break-after:avoid}}
.batch-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:20px}.batch-tabs button{display:flex;gap:8px;align-items:center;padding:13px 17px;font-size:12px;color:var(--muted);border-bottom:2px solid transparent}.batch-tabs button.active{border-color:var(--green);color:var(--green);font-weight:650}.batch-tabs .icon{width:16px;height:16px}.sheet-context{margin-bottom:18px}.sheet-context-fields{display:grid;grid-template-columns:2fr repeat(4,minmax(140px,1fr));gap:12px}.sheet-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 12px}.sheet-toolbar .controls{flex-wrap:wrap}.sheet-toolbar span{font-size:10px;color:var(--muted);margin-right:6px}.sheet-container{border:1px solid #d5e0d8;border-radius:8px;overflow:hidden;background:#fff}.sheet-scroll{overflow:auto;max-height:560px;scrollbar-width:thin}.entry-sheet{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-size:11px}.entry-sheet th{position:sticky;top:0;z-index:3;background:#e8f0e9;color:#47604e;border-right:1px solid #d1ddd3;border-bottom:1px solid #bdcebf;padding:9px 8px;min-width:150px;font-weight:600;height:51px}.entry-sheet th small{font-size:8px;display:block;color:#91a493;letter-spacing:.5px;margin-bottom:4px}.entry-sheet td{border-right:1px solid #e0e8e1;border-bottom:1px solid #e0e8e1;padding:0;background:#fff;height:38px;min-width:150px}.entry-sheet tr:nth-child(even) td{background:#fafcf9}.entry-sheet .sheet-row-number{position:sticky;left:0;min-width:42px;width:42px;z-index:2;text-align:center;background:#f0f4ee;color:#8a9b89;border-right:1px solid #d3dfd1;padding:0}.entry-sheet thead .sheet-row-number{z-index:5}.entry-sheet td:nth-child(2){position:sticky;left:42px;z-index:1;min-width:150px;background:#fff}.entry-sheet thead th:nth-child(2){left:42px;z-index:4}.entry-sheet input,.entry-sheet select{display:block;width:100%;min-width:148px;height:38px;border:0;border-radius:0;background:transparent;color:#38553f;padding:9px 10px;font-size:11px;outline:none}.entry-sheet input:focus,.entry-sheet select:focus{box-shadow:inset 0 0 0 2px #609568;background:#f0f8ed;position:relative;z-index:2}.entry-sheet input::placeholder{color:#b1beb0;font-size:10px}.entry-sheet .sheet-calculated,.entry-sheet .sheet-price{padding:9px 12px;background:#f1f7ed!important;color:#58784f;font-weight:600;min-width:140px}.entry-sheet .sheet-status{padding:5px 10px;min-width:130px}.entry-sheet .sheet-error-row td{background:#fff3ef}.entry-sheet .sheet-error-row .sheet-row-number{color:#b15e4c;background:#f9e4dd}.sheet-result{margin:16px 0;padding:16px;background:#edf5e9;border:1px solid #dce9d4;border-radius:8px;color:#527349;font-size:11px}.sheet-result.has-errors{background:#fff1ec;border-color:#f0d2c7;color:#a46d59}.sheet-result p{line-height:1.7;margin:6px 0}.sheet-result ul{padding-left:20px;line-height:1.9;max-height:200px;overflow:auto}.sheet-result button{font-size:10px;text-decoration:underline;padding:0}.sheet-result summary{cursor:pointer}.sheet-hint{font-size:11px;color:var(--muted);line-height:1.8;margin:15px 0}.sheet-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted);margin-top:15px}.sheet-context .badge{white-space:nowrap}html[data-theme=dark] .sheet-container{background:#1d2924;border-color:#3e5142}html[data-theme=dark] .entry-sheet td,html[data-theme=dark] .entry-sheet td:nth-child(2){background:#202c25;color:#c2d0c1;border-color:#3a493c}html[data-theme=dark] .entry-sheet tr:nth-child(even) td{background:#253229}html[data-theme=dark] .entry-sheet th,html[data-theme=dark] .entry-sheet .sheet-row-number{background:#304536;color:#b9ceb7;border-color:#4c6250}html[data-theme=dark] .entry-sheet input,html[data-theme=dark] .entry-sheet select{color:#d6e4d2;background:transparent}html[data-theme=dark] .entry-sheet input:focus,html[data-theme=dark] .entry-sheet select:focus{background:#314b34;box-shadow:inset 0 0 0 2px #97bd89}html[data-theme=dark] .entry-sheet .sheet-calculated,html[data-theme=dark] .entry-sheet .sheet-price{background:#30452d!important;color:#c4dbb6}html[data-theme=dark] .entry-sheet .sheet-error-row td{background:#462f29}html[data-theme=dark] .sheet-result{background:#293d2b;border-color:#4c674a;color:#c1d9b5}html[data-theme=dark] .sheet-result.has-errors{background:#4b322b;color:#e7b19d;border-color:#775347}@media(max-width:1100px){.sheet-context-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-context-fields>.field:first-child{grid-column:span 2}}@media(max-width:680px){.batch-tabs button{font-size:10px;padding:12px 10px}.sheet-context-fields{grid-template-columns:1fr}.sheet-context-fields>.field:first-child{grid-column:auto}.sheet-toolbar .btn{font-size:10px;padding:10px}.sheet-bottom{display:block;line-height:1.8}.sheet-bottom .text-link{margin-top:10px}.sheet-scroll{max-height:65dvh}}@media print{.batch-tabs,.sheet-context,.sheet-toolbar,.sheet-bottom,.sheet-container,.sheet-result,.sheet-hint{display:none!important}}
.diary-vehicle{display:grid;grid-template-columns:minmax(220px,1fr) 2fr;gap:20px;padding:0 0 20px;margin-bottom:18px;border-bottom:1px solid var(--line)}.diary-vehicle-summary{display:flex;flex-direction:column;justify-content:center;gap:6px;color:var(--text);font-size:13px}.diary-vehicle-summary span,.diary-vehicle-summary small{color:var(--muted);font-size:11px;line-height:1.6}@media(max-width:680px){.diary-vehicle{grid-template-columns:1fr;gap:12px}}
/* Compact consolidation workspace: keep the sheet close to the page title. */
.compact-consolidation .content{padding-top:22px}.compact-consolidation .page-head{margin-bottom:14px;align-items:center}.compact-consolidation .eyebrow,.compact-consolidation .subtitle,.compact-consolidation .filters{display:none}.compact-consolidation .page-head h1{font-size:24px;margin:0}.compact-consolidation .batch-tabs{margin-bottom:14px}.compact-consolidation .batch-tabs button{padding:9px 13px}.compact-context{padding:14px!important;margin-bottom:12px}.compact-context .sheet-context-fields{grid-template-columns:minmax(240px,1.5fr) minmax(180px,1fr) minmax(150px,.7fr) minmax(180px,1fr);align-items:end}.compact-context .field{gap:5px;font-size:11px}.compact-context input,.compact-context select{min-height:36px;padding:8px 10px}.compact-consolidation .sheet-toolbar{margin:10px 0;gap:8px}.compact-consolidation .sheet-toolbar .btn{padding:8px 10px;font-size:11px}.compact-consolidation .sheet-scroll{max-height:calc(100dvh - 325px);min-height:250px}.compact-consolidation .entry-sheet th{min-width:115px;height:40px;padding:6px}.compact-consolidation .entry-sheet td{height:33px;min-width:115px}.compact-consolidation .entry-sheet input,.compact-consolidation .entry-sheet select{min-width:114px;height:33px;padding:7px 8px}.compact-consolidation .entry-sheet input[readonly]{color:var(--muted);min-width:185px}.compact-consolidation .entry-sheet .sheet-row-number{min-width:36px;width:36px}.compact-consolidation .entry-sheet td:nth-child(2),.compact-consolidation .entry-sheet thead th:nth-child(2){left:36px}.sheet-help{font-size:11px;position:relative;color:var(--muted)}.sheet-help summary{cursor:pointer;padding:8px}.sheet-help p{position:absolute;top:100%;left:0;width:min(340px,75vw);padding:16px;border:1px solid var(--line);background:var(--bg);box-shadow:0 8px 28px #0002;z-index:10;line-height:1.8;border-radius:8px}.compact-consolidation .sheet-hint{font-size:10px;margin:8px 0}.compact-consolidation .sheet-bottom{margin-top:8px}@media(max-width:1000px){.compact-context .sheet-context-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-context .sheet-context-fields>.field:first-child{grid-column:auto}.compact-consolidation .sheet-scroll{max-height:60dvh}}@media(max-width:540px){.compact-context .sheet-context-fields{grid-template-columns:1fr}.compact-consolidation .page-head h1{font-size:20px}.compact-consolidation .sheet-toolbar .controls{gap:4px}}
.sidebar .nav-group{margin:3px 0 7px;border-bottom:1px solid var(--line);padding-bottom:6px}.sidebar .nav-group summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;padding:11px 9px;border-radius:7px;color:var(--muted);font-size:11px;font-weight:700;line-height:1.4;user-select:none}.sidebar .nav-group summary::-webkit-details-marker{display:none}.sidebar .nav-group summary:hover{background:var(--bg);color:var(--ink)}.sidebar .nav-group summary:focus-visible{outline:2px solid var(--green);outline-offset:-2px}.sidebar .nav-group summary>.icon{width:17px;height:17px;flex-shrink:0}.sidebar .nav-group.contains-active>summary{color:var(--green)}.sidebar .nav-group-chevron{margin-left:auto;display:flex}.sidebar .nav-group-chevron .icon{width:13px;height:13px;transition:transform .15s}.sidebar .nav-group[open] .nav-group-chevron .icon{transform:rotate(90deg)}.sidebar .nav-group-items{padding:1px 0 3px 9px;margin-left:15px;border-left:1px solid var(--line)}.sidebar .nav-group-items button{font-size:11px;padding:9px 10px;gap:8px;line-height:1.4}.sidebar .nav-group-items button .icon{width:15px;height:15px}.sidebar .nav-group-items button>span:not(.nav-count){min-width:0}.sidebar .workspace{margin-bottom:14px}.sidebar nav{scrollbar-gutter:stable}html[data-theme=dark] .sidebar .nav-group.contains-active>summary{color:#c7dfbf}html[data-theme=dark] .sidebar .nav-group summary:hover{background:#2c3c30;color:var(--ink)}@media(prefers-reduced-motion:reduce){.sidebar .nav-group-chevron .icon{transition:none}}
.demo-profile-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;margin-bottom:18px;border:1px dashed var(--amber);border-radius:8px;background:#fcf9ef;font-size:11px;color:#8c702c}.demo-profile-bar select{padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink);max-width:100%}.demo-profile-bar small{margin-left:auto}.source-notice{display:flex;gap:16px;align-items:center;padding:12px 16px;border-left:3px solid var(--green);background:#edf4f0;border-radius:6px;margin-bottom:16px;font-size:11px;line-height:1.7}.source-notice span{color:var(--muted)}.source-small,.comparison-table small{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:4px}.station-workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:20px;align-items:start}.station-card,.station-queue{padding:24px}.station-step{font-size:10px;font-weight:700;letter-spacing:1px;color:var(--green);margin-bottom:16px}.station-card .field input,.station-card .field select{font-size:15px;min-height:45px}.station-card .fields{margin-bottom:20px}.station-asset{padding:14px;border:1px solid var(--line);border-radius:8px;color:var(--green);background:var(--bg);font-size:12px}.station-volume{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center;margin:10px 0 22px;padding:20px;border-radius:10px;background:#edf4f0}.station-volume input{font-size:30px!important;font-weight:700;height:66px!important;width:100%}.station-volume small{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}.station-volume strong{display:block;font-size:20px;margin-bottom:12px;color:var(--green)}.station-add{width:100%;padding:14px;font-size:13px}.station-queue h2{margin:8px 0}.station-queue p{font-size:12px;line-height:1.8;color:var(--muted)}.station-queue-row{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:15px 0;font-size:12px}.station-queue-row small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.station-history{margin-top:22px;padding:18px}.station-history summary{cursor:pointer;font-size:12px;font-weight:650}.station-history p{font-size:12px;line-height:1.9;color:var(--muted)}.comparison-table td{vertical-align:top}.comparison-table td:nth-child(2),.comparison-table td:nth-child(3){min-width:210px}.comparison-table strong{font-size:12px}.comparison-table strong span{color:var(--muted);font-weight:500}.comparison-table small.difference-text{color:var(--red)}.source-missing{font-size:11px;color:var(--amber)}.comparison-detail{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.comparison-detail section{background:var(--bg);padding:16px;border-radius:8px}.comparison-detail small{display:block;line-height:1.8;font-size:11px}.review-trail{font-size:11px;line-height:1.8;color:var(--muted)}#control-review{padding:24px}#control-review .field{margin-bottom:16px}#control-status{padding:10px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:var(--bg)}html[data-theme=dark] .demo-profile-bar{background:#3a3526;color:#ddc386}html[data-theme=dark] .source-notice,html[data-theme=dark] .station-volume{background:#293e31}html[data-theme=dark] .station-volume strong,html[data-theme=dark] .station-step,html[data-theme=dark] .station-asset{color:#c4dbbb}@media(max-width:1000px){.station-workspace{grid-template-columns:1fr}.station-card,.station-queue{padding:18px}}@media(max-width:600px){.source-notice{display:block}.source-notice strong{display:block}.station-volume{padding:14px;gap:14px}.comparison-detail{grid-template-columns:1fr}.demo-profile-bar small{margin-left:0}.station-volume strong{font-size:17px}.comparison-table td{padding:12px}}
