/* Local 2026-10-15: fuel Admin only. Keep values and existing actions. */
.fuel-cycle-dialog{box-sizing:border-box;width:min(1100px,calc(100% - 32px));height:calc(100dvh - 48px);max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #29405b;border-radius:16px;background:#071321;box-shadow:0 24px 70px #0006;overflow:hidden}
.fuel-cycle-dialog::backdrop{background:#020617b3}
.fuel-cycle-dialog>iframe{display:block;width:100%;height:100%;border:0}
.fuel-v31-dashboard .fuel-v3-filter{display:grid;grid-template-columns:repeat(2,minmax(140px,1fr)) minmax(180px,1.5fr);gap:12px;padding:16px;align-items:end}
.fuel-v31-dashboard .fuel-filter-title,.fuel-v31-dashboard .fuel-v3-pills,.fuel-v31-dashboard .fuel-standard-form{grid-column:1/-1}
.fuel-v31-dashboard .fuel-filter-title{padding-bottom:10px;line-height:1.5}
.fuel-v31-dashboard .fuel-v3-filter label{width:auto;min-width:0;gap:5px}
.fuel-v31-dashboard .fuel-v3-filter input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0}
.fuel-v31-dashboard .fuel-standard-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;margin-top:2px;padding-top:14px}
.fuel-v31-dashboard .fuel-standard-form>strong{grid-column:1/-1;margin:0;font-size:14px}
.fuel-v31-dashboard .fuel-standard-form>label{width:auto;min-width:0}
.fuel-v31-dashboard .fuel-standard-form>button{min-height:44px}
@media(max-width:600px){
  .fuel-cycle-dialog{width:100%;height:calc(100dvh - max(32px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));margin:max(32px,env(safe-area-inset-top)) 0 max(16px,env(safe-area-inset-bottom));border-radius:12px}
  .fuel-v31-dashboard.management-panel:has(.fuel-table){padding:10px!important}
  .fuel-v31-dashboard .fuel-v3-filter{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border-radius:14px}
  .fuel-v31-dashboard .fuel-filter-title{font-size:11px;letter-spacing:0}
  .fuel-v31-dashboard .fuel-v3-pills{gap:6px}
  .fuel-v31-dashboard .fuel-v3-pills button{min-height:40px;padding:6px 8px;font-size:12px}
  .fuel-v31-dashboard .fuel-v3-filter>label:has([data-fuel-search]){grid-column:1/-1}
  .fuel-v31-dashboard .fuel-v3-filter input{height:44px;padding:8px;font-size:14px}
  .fuel-v31-dashboard .fuel-standard-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:12px}
  .fuel-v31-dashboard .fuel-standard-form label{font-size:10px;line-height:1.4}
  .fuel-v31-dashboard .fuel-standard-form button{grid-column:1/-1;width:100%;border-radius:10px}
  .fuel-v31-dashboard .fuel-v3-alert{font-size:12px;line-height:1.5;padding:10px 12px;border-radius:12px}
  .fuel-v31-dashboard .fuel-history-section{padding:12px!important}
  .fuel-v31-dashboard .fuel-history-section h3{font-size:16px;margin-bottom:12px}
  .fuel-v31-dashboard .fuel-history-section .fuel-table tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:10px;border-left-width:3px;border-radius:12px;align-items:start}
  .fuel-v31-dashboard .fuel-history-section .fuel-table tr[hidden]{display:none!important}
  .fuel-v31-dashboard .fuel-history-section .fuel-table td{min-width:0;min-height:0;height:auto;align-content:start;gap:4px;padding:10px 6px!important;font-size:13px;line-height:1.4;background:transparent;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
  .fuel-v31-dashboard .fuel-history-section .fuel-table td::before{font-size:9px;line-height:1.4;letter-spacing:.02em}
  .fuel-v31-dashboard .fuel-history-section .fuel-table td:first-child{grid-column:1/-1;display:flex;gap:8px;align-items:center;padding-top:2px!important;color:var(--muted);font-size:12px}
  .fuel-v31-dashboard .fuel-history-section .fuel-table td:nth-child(2){grid-column:1/-1;gap:6px}
  .fuel-v31-dashboard .fuel-driver-pick-cell>span{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}
  .fuel-v31-dashboard .fuel-driver-pick-cell>span>b{font-size:14px}
  .fuel-v31-dashboard .fuel-driver-pick-cell>span>em{font-size:12px;font-style:normal;color:var(--muted)}
  .fuel-v31-dashboard .fuel-driver-pick-cell>select{box-sizing:border-box;width:100%;min-width:0;height:40px;min-height:40px;margin:0;padding:6px 10px;font-size:12px}
  .fuel-v31-dashboard .fuel-history-section .fuel-table td:nth-child(11){grid-column:auto;border-bottom:0}
  .fuel-v31-dashboard .fuel-history-section .fuel-table td:nth-child(11)::before{content:'Chứng từ'}
  .fuel-v31-dashboard .fuel-history-section .fuel-table td:nth-child(12){border-bottom:0}
  .fuel-v31-dashboard .fuel-history-section .fuel-table td:nth-child(13){grid-column:1/-1;border-bottom:0;padding-top:0!important}
  .fuel-v31-dashboard .fuel-history-section .fuel-table td:nth-child(13)::before{display:none}
  .fuel-v31-dashboard .fuel-icon-button,.fuel-v31-dashboard .fuel-cycle-button{width:100%;min-height:44px;padding:8px 10px;font-size:12px}
  .fuel-v31-dashboard .fuel-admin-menu>summary{width:100%;min-height:40px;font-size:16px;gap:6px;background:var(--surface-soft)}
  .fuel-v31-dashboard .fuel-admin-menu>summary::after{content:'Quản lý lần đổ';font-size:12px}
  .fuel-v31-dashboard .fuel-admin-menu>div{flex-wrap:wrap}
  .fuel-v31-dashboard .fuel-admin-menu>div button{flex:1;min-height:44px;font-size:12px}
  .fuel-v31-dashboard .fuel-history-section .finance-actions{flex-wrap:wrap;gap:6px}
  .fuel-v31-dashboard .fuel-history-section .finance-actions button{min-height:44px;padding:6px 10px}
  .fuel-v31-dashboard .fuel-history-section .fuel-table td[colspan]{grid-column:1/-1}
  .fuel-v31-dashboard .fuel-history-section .fuel-table td[colspan]::before{display:none}
}

/* 2026-10-16: compact ledger controls and an on-demand standards dialog. */
.fuel-v31-dashboard.management-panel:has(.fuel-table)>.management-heading{padding:16px 20px;margin:0 0 16px;gap:16px;min-height:0;align-items:center;border-radius:16px;box-shadow:none}
.fuel-v31-dashboard.management-panel:has(.fuel-table)>.management-heading .eyebrow{font-size:10px;line-height:1.4;letter-spacing:.09em}
.fuel-v31-dashboard.management-panel:has(.fuel-table)>.management-heading h2{font-size:24px;line-height:1.25;margin:5px 0 0}
.fuel-v31-dashboard .monitor-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.fuel-v31-dashboard .monitor-actions button{min-height:40px;padding:8px 14px;border-radius:10px;font-size:14px;line-height:1.35;white-space:nowrap}
.fuel-v31-dashboard .fuel-v3-filter{gap:12px 16px;padding:16px;margin:0 0 12px;border-radius:16px}
.fuel-v31-dashboard .fuel-filter-title{border:0;padding:0;font-size:12px;letter-spacing:.02em;line-height:1.4}
.fuel-v31-dashboard .fuel-v3-pills{gap:6px;margin:0}
.fuel-v31-dashboard .fuel-v3-pills button{min-height:36px;padding:6px 12px;font-size:13px;line-height:1.4;border-radius:9px}
.fuel-v31-dashboard .fuel-v3-filter label{font-size:12px;line-height:1.4}
.fuel-v31-dashboard .fuel-v3-filter input{height:42px;min-height:42px;padding:8px 12px;border-radius:10px;font-size:14px}
.fuel-v31-dashboard .fuel-v3-alert{margin:0 0 16px;padding:12px 16px;font-size:13px;line-height:1.5;border-radius:12px}
.fuel-standard-dialog{box-sizing:border-box;width:min(560px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 48px);padding:0;margin:auto;border:1px solid var(--line);border-radius:18px;color:var(--text);background:var(--surface);box-shadow:0 24px 80px #0004;overflow-y:auto;overscroll-behavior:contain}
.fuel-standard-dialog::backdrop{background:rgb(2 6 23 / .55)}
body:has(.fuel-standard-dialog[open]){overflow:hidden}
.fuel-standard-dialog>header{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 22px 16px;background:var(--surface);border-bottom:1px solid var(--line)}
.fuel-standard-dialog h2{margin:0;font-size:20px;line-height:1.4}
.fuel-standard-dialog header p{margin:4px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
.fuel-standard-dialog .fuel-standard-close{flex-shrink:0;display:grid;place-items:center;width:40px;height:40px;min-width:40px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--text);font-size:26px;line-height:1;cursor:pointer}
.fuel-standard-dialog .fuel-standard-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px 22px;margin:0;border:0}
.fuel-standard-dialog .fuel-standard-form>label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;line-height:1.4;color:var(--text);font-weight:600}
.fuel-standard-dialog .fuel-standard-form>label:has([name="alertThreshold"]){grid-column:1/-1}
.fuel-standard-dialog input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--text);font-family:inherit;font-size:16px}
.fuel-standard-dialog .fuel-standard-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;padding-top:4px}
.fuel-standard-dialog .fuel-standard-actions button{width:auto;min-height:44px;min-width:88px;padding:10px 16px;border-radius:10px;font-size:14px;line-height:1.4;cursor:pointer}
.fuel-standard-dialog .fuel-standard-actions .soft-button{border:1px solid var(--line);background:var(--surface);color:var(--text);box-shadow:none}
.fuel-standard-dialog .fuel-standard-actions .primary-button{border:1px solid var(--primary);background:var(--primary);color:#fff}
.fuel-standard-dialog button:focus-visible,.fuel-standard-dialog input:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:600px){
  .fuel-v31-dashboard.management-panel:has(.fuel-table)>.management-heading{padding:14px;margin-bottom:12px;gap:12px;border-radius:14px}
  .fuel-v31-dashboard.management-panel:has(.fuel-table)>.management-heading h2{font-size:22px}
  .fuel-v31-dashboard.management-panel:has(.fuel-table)>.management-heading .eyebrow{font-size:9px;letter-spacing:.05em}
  .fuel-v31-dashboard .monitor-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .fuel-v31-dashboard .monitor-actions button{width:100%;min-width:0;min-height:42px;padding:8px 6px;font-size:12px;letter-spacing:0}
  .fuel-v31-dashboard .fuel-v3-filter{padding:12px;gap:10px;margin-bottom:10px}
  .fuel-v31-dashboard .fuel-filter-title{font-size:10px}
  .fuel-v31-dashboard .fuel-v3-pills{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .fuel-v31-dashboard .fuel-v3-pills button{padding:7px 3px;font-size:11px;white-space:nowrap;min-height:38px}
  .fuel-v31-dashboard .fuel-v3-filter input{min-height:44px;height:44px;padding:8px;font-size:14px}
  .fuel-standard-dialog{width:calc(100% - 24px);max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom)));border-radius:16px}
  .fuel-standard-dialog>header{padding:16px}
  .fuel-standard-dialog h2{font-size:18px}
  .fuel-standard-dialog .fuel-standard-form{padding:16px;gap:14px 10px}
  .fuel-standard-dialog .fuel-standard-form>label{font-size:12px}
}

/* 2026-10-16: filter controls live behind one toolbar button. */
.fuel-v31-dashboard .fuel-filter-toggle.is-filtered{border-color:var(--primary);color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,var(--surface))}
.fuel-filter-dialog{box-sizing:border-box;width:min(680px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 24px 80px #0005;overflow:hidden}
.fuel-filter-dialog:not([open]){display:none}
.fuel-filter-dialog[open]{display:flex;flex-direction:column}
.fuel-filter-dialog::backdrop{background:rgb(2 6 23 / .58)}
body:has(.fuel-filter-dialog[open]){overflow:hidden}
.fuel-filter-dialog>header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:var(--surface);border-bottom:1px solid var(--line)}
.fuel-filter-dialog h2{margin:0;font-size:20px;line-height:1.4}
.fuel-filter-dialog .fuel-filter-close{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--text);font-size:26px;cursor:pointer}
.fuel-v31-dashboard .fuel-filter-dialog>.fuel-v3-filter{display:grid;flex:0 1 auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0;padding:20px;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain;box-shadow:none;min-height:0}
.fuel-filter-dialog .fuel-filter-title{display:none}
.fuel-v31-dashboard .fuel-filter-dialog .fuel-v3-pills{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;grid-column:1/-1}
.fuel-v31-dashboard .fuel-filter-dialog .fuel-v3-pills button{min-width:0;min-height:40px;padding:7px 5px;font-size:13px;white-space:nowrap}
.fuel-v31-dashboard .fuel-filter-dialog label{display:grid;min-width:0;gap:7px;font-size:13px}
.fuel-v31-dashboard .fuel-filter-dialog label:has([data-fuel-search]){grid-column:1/-1}
.fuel-v31-dashboard .fuel-filter-dialog input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;height:44px;font-size:16px;padding:10px 12px}
.fuel-filter-dialog>footer{display:flex;flex:0 0 auto;justify-content:space-between;gap:10px;padding:14px 20px;border-top:1px solid var(--line);background:var(--surface)}
.fuel-filter-dialog>footer button{min-height:42px;padding:9px 16px;font-size:14px;line-height:1.4;border-radius:10px}
.fuel-filter-dialog button:focus-visible,.fuel-filter-dialog input:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:600px){
  .fuel-v31-dashboard .monitor-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fuel-filter-dialog{width:calc(100% - 20px);max-height:calc(100dvh - max(20px,env(safe-area-inset-top)) - max(20px,env(safe-area-inset-bottom)));border-radius:14px}
  .fuel-filter-dialog>header{padding:12px 14px;gap:8px}
  .fuel-filter-dialog h2{font-size:17px}
  .fuel-v31-dashboard .fuel-filter-dialog>.fuel-v3-filter{padding:14px;gap:14px 10px}
  .fuel-v31-dashboard .fuel-filter-dialog .fuel-v3-pills{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fuel-v31-dashboard .fuel-filter-dialog .fuel-v3-pills button{font-size:12px;min-height:42px}
  .fuel-filter-dialog>footer{padding:12px 14px;gap:8px}
  .fuel-filter-dialog>footer button{font-size:13px;min-height:44px;padding:9px 12px}
}
