.fuel-dialog{width:1100px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);padding:0;overflow:hidden;background:#f7f9fc;border:1px solid #dbe5ed;border-radius:16px}
.fuel-dialog [hidden]{display:none!important}
.fuel-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:23px 26px 20px;background:#fff;border-bottom:1px solid #e3eaf0}
.fuel-dialog-heading h2{font-size:23px;font-weight:650;letter-spacing:-.35px}
.fuel-dialog-heading p{font-size:13px;line-height:1.5;margin:6px 0 0;color:#7b8d9c}
.fuel-close{flex:none;margin:-3px -7px 0 0}
.fuel-dialog-body{padding:20px 25px 24px;max-height:calc(100dvh - 145px);overflow:auto;scrollbar-gutter:stable}
.fuel-accounting-banner{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#eef3fa;border:1px solid #dde6f1;border-radius:8px;padding:10px 13px;font-size:12px;line-height:1.5;color:#6c8297;margin-bottom:20px}
.fuel-accounting-banner[data-mode=active]{background:#edf7f1;border-color:#d4e9dc;color:#4e7c61}
.fuel-accounting-banner>button{flex:none;font-size:11px}
.fuel-filter{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;margin-bottom:22px}
.fuel-filter .field{font-size:12px;gap:7px;min-width:0}
.fuel-filter .field input,.fuel-entry-grid .field input,.fuel-accounting-date input{padding:10px 11px;font-size:13px;border-color:#d8e2ec;background:#fff;min-height:40px}
.fuel-filter .field select,.fuel-entry-grid .field select{font-size:13px;padding-top:10px;padding-bottom:10px;min-height:40px;width:100%}
.fuel-filter-vehicle{flex:1;min-width:190px!important;max-width:300px}
.fuel-period{display:flex;flex-direction:column;gap:7px}
.fuel-period>.field-caption{font-size:12px;font-weight:600;color:#4b6374}
.fuel-period-buttons{display:flex;background:#eaf0f6;border:1px solid #dce5ee;padding:3px;border-radius:8px;gap:2px}
.fuel-period-buttons button{border:0;background:none;padding:8px 10px;border-radius:5px;font-size:12px;font-weight:600;color:#7c8fa1;min-height:32px;white-space:nowrap}
.fuel-period-buttons button[aria-pressed=true]{background:#fff;color:#356a9a;box-shadow:0 1px 4px #24456113}
.fuel-filter>.button{font-size:12px;min-height:40px}
.fuel-section-heading,.fuel-ledger-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:19px 0 13px}
.fuel-section-heading h3,.fuel-ledger-heading h3{font-size:17px;line-height:1.4;margin:0;color:#38536a;font-weight:650}
.fuel-section-heading>div>span,.fuel-ledger-heading>div>span{display:block;font-size:11px;color:#8b9dac;margin-top:5px;line-height:1.5}
.fuel-table-wrap{width:100%;overflow:auto;border:1px solid #e1e8ef;border-radius:10px;background:#fff}
.fuel-vehicles-wrap{max-height:420px}
.fuel-ledger-wrap{max-height:400px}
.fuel-table{width:100%;border-collapse:separate;border-spacing:0;text-align:left;font-size:12px}
.fuel-vehicles-table{min-width:700px}
.fuel-ledger-table{min-width:900px}
.fuel-table thead th{position:sticky;top:0;z-index:1;padding:13px 14px;background:#f1f5f9;border-bottom:1px solid #e1e8ef;color:#6a8091;font-size:11px;font-weight:600;line-height:1.4;white-space:nowrap}
.fuel-table tbody th,.fuel-table tbody td{padding:12px 14px;border-bottom:1px solid #edf1f5;vertical-align:middle}
.fuel-table tbody tr:last-child>th,.fuel-table tbody tr:last-child>td{border-bottom:0}
.fuel-table tbody tr:hover{background:#f9fbfe}
.fuel-table tbody th{min-width:170px;max-width:240px;font-weight:400}
.fuel-vehicle-name{font-weight:650;color:#355671;line-height:1.5;overflow-wrap:anywhere}
.fuel-driver{font-size:11px;color:#8b9eae;margin-top:2px;line-height:1.4;overflow-wrap:anywhere}
.fuel-card-link{display:block;border:0;background:none;font-size:10px;color:#7e9cb7;text-align:left;padding:0;margin-top:5px;line-height:1.4;overflow-wrap:anywhere}
.fuel-card-link:hover{color:#2873c9;text-decoration:underline}
.fuel-numeric{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap;color:#55748e}
.fuel-numeric strong{font-size:14px;font-weight:600;color:#4b6d89}
.fuel-cell-note{display:block;font-size:9px;color:#a1b0bc;line-height:1.4;margin-top:4px;font-weight:400}
.fuel-vehicles-table .fuel-numeric{min-width:95px}
.fuel-vehicles-table .fuel-numeric:nth-child(4){min-width:170px}
.fuel-weekend-cell{width:62px;text-align:right}
.fuel-weekend-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff0f0;border:1px solid #edb8b8;border-radius:7px;padding:6px 9px;min-height:31px;color:#c04848;font-size:11px;white-space:nowrap}
.fuel-weekend-button strong{font-size:16px;line-height:1;font-weight:800}
.fuel-weekend-button:hover{background:#ffe5e5;border-color:#df8c8c}
.fuel-weekend-all{font-size:11px;padding:8px 11px}
.fuel-weekend-filter,.fuel-unmatched-notice{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff5e9;border:1px solid #ecdac0;border-radius:8px;padding:11px 13px;margin:0 0 12px;font-size:12px;line-height:1.5;color:#a38862}
.fuel-weekend-filter{color:#b16767;background:#fff1f1;border-color:#efd2d2}
.fuel-weekend-filter>button,.fuel-unmatched-notice>button{flex:none;font-size:11px}
.fuel-calculation-note{font-size:11px!important;line-height:1.6!important;color:#95a6b4!important;margin:10px 1px 16px!important}
.fuel-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:18px 0 0}
.fuel-metric{border:1px solid #e1e9f0;border-radius:9px;background:#fff;padding:14px 16px;min-width:0}
.fuel-metric>span{display:block;font-size:10px;line-height:1.5;color:#91a3b2}
.fuel-metric>strong{display:block;font-size:21px;font-weight:600;letter-spacing:-.3px;color:#547c9f;margin:8px 0 5px;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.fuel-metric>small{font-size:10px;line-height:1.4;color:#9badba}
.fuel-ledger-heading{margin-top:25px}
.fuel-ledger-actions{display:flex;gap:9px;align-items:center}
.fuel-ledger-actions .button{font-size:12px}
.fuel-integration-status{font-size:10px!important;color:#98aab9!important;line-height:1.5!important;margin:-4px 1px 12px!important}
.fuel-inline-button{border:0;background:none;color:#4c83b5;font-size:11px;font-weight:600;padding:4px 0;line-height:1.4;text-decoration:none}
.fuel-inline-button:hover{color:#0b58ad;text-decoration:underline}
.fuel-date-cell{min-width:110px;white-space:nowrap}
.fuel-date-cell>strong{font-size:11px;font-weight:500;color:#7390a8}
.fuel-weekend-label{display:block;white-space:normal;color:#c18484;font-size:9px;margin-top:5px;line-height:1.4}
.fuel-ledger-card{display:block;font-family:Consolas,"Courier New",monospace;font-size:10px;color:#93a6b7;margin-top:5px;line-height:1.4;overflow-wrap:anywhere}
.fuel-ledger-source{min-width:150px;max-width:250px}
.fuel-entry-source{display:inline-block;font-size:9px;color:#7d96ac;background:#f0f4f8;border-radius:4px;padding:3px 6px;line-height:1.4}
.fuel-entry-source.manual{color:#997f5f;background:#faf3e9}
.fuel-ledger-note{display:block;font-size:10px;color:#95a5b3;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
.fuel-ledger-source>.fuel-inline-button{display:block;margin-top:4px;font-size:10px}
.fuel-ledger-unmatched{background:#fffcf6}
.fuel-amount{color:#4d7191;font-weight:600}
.fuel-entry-panel{padding:18px 19px;border:1px solid #d7e4f0;border-radius:10px;background:#f0f6fc;margin:0 0 18px}
.fuel-entry-panel fieldset{border:0;padding:0;margin:0;min-width:0}
.fuel-entry-panel h3{font-size:16px;font-weight:600;margin:0;color:#456b8c;line-height:1.5}
.fuel-entry-help{font-size:11px!important;line-height:1.6!important;color:#88a0b4!important;margin:5px 0 16px!important}
.fuel-entry-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:14px}
.fuel-entry-grid .field,.fuel-accounting-date{font-size:11px;gap:7px;min-width:0;color:#6c89a1}
.fuel-entry-grid input,.fuel-entry-grid select{width:100%}
.fuel-entry-note{grid-column:span 2}
.fuel-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.fuel-form-actions .button{font-size:12px}
.fuel-accounting-date{max-width:220px}
.fuel-confirm{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.5;color:#6a86a0;margin-top:17px}
.fuel-confirm input{accent-color:#347cd2;margin:2px 0 0;width:15px;height:15px;flex:none}
.fuel-note{margin:13px 1px 0!important;color:#9babb8!important;font-size:10px!important;line-height:1.6!important}
.fuel-empty{padding:32px 22px!important;color:#91a5b5;text-align:center;line-height:1.6;font-size:12px}
.fuel-dialog .form-error{font-size:12px;line-height:1.5;margin:10px 0 14px}
@media(max-width:850px){.fuel-filter-vehicle{max-width:none;flex-basis:100%}.fuel-period{flex:1}.fuel-period-buttons button{flex:1}.fuel-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fuel-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fuel-entry-note{grid-column:auto}.fuel-entry-vehicle{grid-column:1/-1}}
@media(max-width:680px){.fuel-ledger-heading{flex-wrap:wrap}.fuel-ledger-actions{width:100%;flex-wrap:wrap;gap:7px}.fuel-ledger-actions .button{flex:1}.fuel-ledger-actions .button:first-child{flex:1.2}}
@media(max-width:600px){.fuel-dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.fuel-dialog-heading{padding:17px 17px 15px;gap:12px}.fuel-dialog-heading h2{font-size:20px;line-height:1.35}.fuel-dialog-heading p{font-size:11px}.fuel-dialog-body{padding:14px;max-height:calc(100dvh - 125px)}.fuel-accounting-banner{font-size:10px;padding:9px 10px;gap:8px;align-items:flex-start}.fuel-accounting-banner>button{font-size:10px}.fuel-filter{gap:10px;margin-bottom:17px}.fuel-period{flex-basis:100%}.fuel-period-buttons button{font-size:10px;padding:8px 6px}.fuel-filter>.button{margin-left:auto}.fuel-section-heading,.fuel-ledger-heading{gap:9px;align-items:flex-start}.fuel-section-heading h3,.fuel-ledger-heading h3{font-size:15px}.fuel-section-heading>div>span{font-size:10px}.fuel-weekend-all{font-size:9px;padding:7px;white-space:normal;max-width:130px;line-height:1.4}.fuel-table tbody th,.fuel-table tbody td,.fuel-table thead th{padding:11px 12px}.fuel-metrics{gap:8px}.fuel-metric{padding:12px}.fuel-metric>strong{font-size:18px}.fuel-metric>span,.fuel-metric>small{font-size:9px}.fuel-ledger-actions .button{font-size:10px;min-height:34px;padding:7px 10px}.fuel-entry-panel{padding:14px}.fuel-entry-grid{gap:12px 10px}.fuel-entry-help{font-size:10px!important}.fuel-entry-grid .field input{padding:10px;font-size:12px}.fuel-entry-grid .field select{font-size:12px}.fuel-entry-note{grid-column:1/-1}.fuel-unmatched-notice,.fuel-weekend-filter{font-size:10px;align-items:flex-start;gap:8px;padding:10px}.fuel-unmatched-notice>button,.fuel-weekend-filter>button{font-size:10px}.fuel-form-actions .button{font-size:11px}.fuel-confirm{font-size:11px}.fuel-vehicles-wrap{max-height:380px}.fuel-ledger-wrap{max-height:350px}}
