.shell .sidebar .nav { gap: 4px !important; }
.statistics-vehicle-performance { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 12px; width: 100%; min-width: 0; text-align: left; }
.statistics-vehicle-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.statistics-vehicle-title strong { font-size: 1.1rem; }
.statistics-vehicle-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.statistics-vehicle-amounts > span { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; min-width: 0; }
.statistics-vehicle-amounts strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.statistics-vehicle-open { text-align: right; }
.statistics-review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 360px) { .statistics-vehicle-amounts { grid-template-columns: 1fr; } }
.fv3-action-menu { overflow-y: auto; overscroll-behavior: contain; max-height: calc(100dvh - 140px); }
.fv3-action-menu button { gap: 10px; min-height: 42px; }
.fv3-action-menu button > svg { width: 18px; height: 18px; flex: 0 0 18px; }
.fv3-action-menu button > span { min-width: 0; white-space: normal; overflow-wrap: break-word; }
body.sidebar-collapsed .shell .sidebar { padding-inline: 8px !important; row-gap: 4px !important; }
body.sidebar-collapsed .shell .sidebar .nav > button { width: 42px !important; height: 42px !important; min-height: 42px !important; padding: 8px !important; margin-inline: auto; border-radius: 6px !important; aspect-ratio: 1; }
html[data-appearance=warm] body[data-module=invoicing] .invoice-history { background: rgba(28, 34, 37, .64) !important; backdrop-filter: blur(10px); }
html[data-appearance=warm] body.light[data-module=invoicing] .invoice-history { background: rgba(249, 251, 250, .76) !important; }
body .status, body .fv3-status { font-size: 12px; line-height: 1.35; min-height: 24px; padding: 5px 8px; display: inline-flex; align-items: center; white-space: normal; max-width: 100%; overflow-wrap: anywhere; box-sizing: border-box; }
.status svg, .fv3-status svg { width: 16px; height: 16px; flex: 0 0 16px; }
.stats-lines-head { flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.stats-lines-head > div:first-child { flex: 1 1 170px; }
.stats-lines-head .stats-chart-switcher { margin: 0; flex: 0 1 auto; gap: 3px; }
.stats-lines-head .stats-chart-switcher button { padding: 5px 8px; min-height: 32px; }
.stats-chart-filter { position: relative; flex: 0 0 34px; }
.stats-chart-filter summary { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; list-style: none; }
.stats-chart-filter summary::-webkit-details-marker { display: none; }
.stats-chart-filter summary svg { display: block; width: 18px; height: 18px; }
.stats-chart-filter.is-active summary, .fv3-filter-icon.is-active { color: var(--cyan, #6abdda); border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.stats-chart-filter-menu, .fv3-bank-status-menu { position: absolute; right: 0; top: calc(100% + 5px); width: 260px; max-width: calc(100vw - 48px); padding: 12px; z-index: 20; border: 1px solid var(--line, var(--fv3-border)); border-radius: 6px; background: var(--panel-strong, #252b30); box-shadow: 0 6px 20px #0005; color: var(--text); text-align: left; }
.stats-chart-filter-menu { display: grid; gap: 12px; max-height: 340px; overflow-y: auto; }
.stats-chart-filter-menu fieldset { margin: 0; padding: 0; border: 0; }
.stats-chart-filter-menu legend { margin-bottom: 6px; font-weight: 700; }
.stats-chart-filter-menu label, .fv3-bank-status-menu label { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; }
.stats-chart-filter-menu input, .fv3-bank-status-menu input { width: 16px; height: 16px; flex: 0 0 16px; }
.statistics-source-link { color: var(--cyan); background: transparent; border: 0; padding: 5px 0; text-decoration: underline; }
.statistics-cost-warning li { margin-block: 12px; }
.statistics-cost-warning li p { margin: 5px 0; }
.statistics-card-vehicle { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: 12px; }
.statistics-card-vehicle select { max-width: 270px; }
.fv3-bank-directions { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 5px; }
.fv3 .fv3-bank-directions button.fv3-direction { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; min-width: 20px; min-height: 20px; padding: 0; border: 1px solid currentColor; border-radius: 50%; font-size: 14px; line-height: 1; box-sizing: border-box; }
.fv3 .fv3-bank-directions .fv3-direction svg { display: block; flex: 0 0 12px; width: 12px; height: 12px; margin: 0; }
.fv3-column-heading { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; vertical-align: middle; }
.fv3-amount-heading { white-space: nowrap; justify-content: flex-end; }
.fv3 .fv3-column-heading .fv3-bank-directions { flex: 0 0 auto; gap: 3px; margin: 0; }
.fv3 .fv3-direction.incoming { color: var(--fv3-green); }
.fv3 .fv3-direction.outgoing { color: var(--fv3-red); }
.fv3 .fv3-direction[aria-pressed=false] { opacity: .45; background: transparent; }
.fv3 .fv3-direction[aria-pressed=true] { background: color-mix(in srgb, currentColor 12%, transparent); }
.fv3-bank-status-filter { position: relative; display: inline-block; vertical-align: middle; }
.fv3 .fv3-filter-icon { width: 28px; min-height: 28px; padding: 4px; }
.fv3-bank-status-menu { white-space: normal; text-transform: none; background: #252b30; color: #f1f4f6; max-height: calc(100dvh - 32px); overflow-y: auto; }
body.light .fv3-bank-status-menu { background: #f7f9f8; color: #20282b; }
.fv3-bank-table th:nth-child(4) { white-space: nowrap; }
.fv3-invoice-detail-row > td { padding: 0 !important; display: table-cell !important; }
.fv3-invoice-detail-row .fv3-detail { position: static; width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
.fv3-detail-actions, .fv3-account-actions, .fv3-review-actions, .fv3-cost-actions { justify-content: flex-start; }
.fv3 .fv3-reading-heading { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; border: 0; background: transparent; padding: 0; }
.fv3-reading-scroll { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.fv3-reading-review [hidden] { display: none !important; }
.fv3 .fv3-cash-table td, .fv3 .fv3-cash-table th { padding: 13px 8px; border-bottom: 1px solid var(--fv3-border); }
.fv3 .fv3-cash-table td { font-size: 12px; vertical-align: middle; }
.fv3 .fv3-cash-table td:nth-child(3) { text-align: right; font-weight: 600; }
.fv3 .fv3-cash-table tr:nth-child(even) { background: #ffffff03; }
.fv3-cashbook.fv3-list { border-radius: 8px; }
.fv3 .fv3-cash-table th:first-child { width: 21%; }
.fv3 .fv3-cash-table th:nth-child(2) { width: 29%; }
.fv3 .fv3-cash-table th:nth-child(3) { width: 22%; }
.fv3 .fv3-cash-table th:nth-child(4) { width: 14%; }
.fv3 .fv3-cash-table th:nth-child(5) { width: 14%; }
.fv3-cash-detail-row > td { padding: 0 !important; display: table-cell !important; }
.fv3-cash-detail-row .fv3-detail { width: 100%; max-width: none; border: 0; box-shadow: none; border-radius: 0; position: static; }
.fv3-bank-bulk, .fv3-bank-bulk form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fv3-cash-editor > label { display: grid; gap: 6px; margin-bottom: 12px; }
.fv3-cash-editor > label.fv3-cash-confirm { display: flex; }
.fv3 [data-cash-select], .fv3 [data-cash-select-all] { width: 16px; height: 16px; margin-right: 7px; vertical-align: middle; }
.fv3-cash-table .fv3-link { display: block; margin-top: 5px; }
.fv3-reading-row { flex-wrap: wrap; }
.choice-filter .fv3-filter-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; min-height: 26px; padding: 4px; border: 1px solid transparent; border-radius: 4px; color: inherit; background: transparent; }
.choice-filter .fv3-filter-icon svg { display: block; width: 16px; height: 16px; }
.choice-filter .fv3-filter-icon.is-active { color: var(--cyan, #64c4df); border-color: currentColor; }
.choice-filter .fv3-bank-status-menu:not([popover]), .choice-filter .fv3-bank-status-menu:popover-open { display: block; }
.choice-filter .fv3-bank-status-menu::backdrop { background: transparent; }
.module-list-filter { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-block: 8px; font-size: 12px; }
.module-filter-mobile { display: none; }
@media (max-width: 760px) {
  .module-filter-mobile { display: inline-flex; }
  .operational-list-head { flex-wrap: wrap; }
  .operational-list-head small { margin-left: auto; }
}
@media (max-width: 700px) {
  .stats-lines-head { gap: 8px; }
  .stats-lines-head .stats-chart-switcher { order: 3; flex: 1 0 100%; }
  .stats-lines-head .stats-chart-switcher button[data-stats-chart-step] { display: none; }
  .stats-lines-head .stats-chart-switcher button:not([data-stats-chart-step]) { flex: 1 1 auto; font-size: 11px; padding-inline: 5px; }
  .fv3-reading-scroll { max-height: 300px; }
  .fv3-invoice-detail-row .fv3-fields { grid-template-columns: minmax(0, 1fr); }
  .statistics-card-vehicle { margin-left: 0; display: flex; }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-appearance=warm] body[data-module=invoicing] .invoice-history { background: var(--panel-strong) !important; backdrop-filter: none; }
}
@container (max-width: 760px) {
  .fv3 .fv3-cash-table, .fv3 .fv3-cash-table > thead, .fv3 .fv3-cash-table > tbody { display: block; width: 100%; }
  .fv3 .fv3-cash-table > thead > tr, .fv3 .fv3-cash-table > tbody > tr[data-select] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(116px, 46%); padding-block: 8px; border-bottom: 1px solid var(--fv3-border); }
  .fv3 .fv3-cash-table > thead > tr > th, .fv3 .fv3-cash-table > tbody > tr[data-select] > td { display: block; width: auto; min-width: 0; border: 0; padding: 5px 4px; }
  .fv3 .fv3-cash-table th:nth-child(n) { width: auto; }
  .fv3 .fv3-cash-table .fv3-column-heading { white-space: normal; overflow-wrap: normal; }
  .fv3 .fv3-cash-table .fv3-amount-heading { white-space: nowrap; }
  .fv3 .fv3-cash-table .fv3-column-heading > input { flex: 0 0 16px; }
  .fv3 .fv3-cash-table th:nth-child(1), .fv3 .fv3-cash-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .fv3 .fv3-cash-table th:nth-child(2) { display: none; }
  .fv3 .fv3-cash-table td:nth-child(2) { grid-column: 1; grid-row: 2 / span 2; }
  .fv3 .fv3-cash-table th:nth-child(3), .fv3 .fv3-cash-table td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .fv3 .fv3-cash-table th:nth-child(4), .fv3 .fv3-cash-table td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  .fv3 .fv3-cash-table th:nth-child(5), .fv3 .fv3-cash-table td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; }
  .fv3 .fv3-cash-table .fv3-cash-detail-row, .fv3 .fv3-cash-table .fv3-cash-detail-row > td { display: block; width: 100%; }
  .fv3 .fv3-invoice-table th:last-child, .fv3 .fv3-invoice-table td:last-child { display: table-cell; width: 24%; }
  .fv3 .fv3-invoice-table .fv3-mobile-status { display: none; }
  .fv3 .fv3-bank-table, .fv3 .fv3-bank-table > thead, .fv3 .fv3-bank-table > tbody { display: block; width: 100%; }
  .fv3 .fv3-bank-table > thead > tr, .fv3 .fv3-bank-table > tbody > tr[data-select] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(116px, 44%); border-bottom: 1px solid var(--fv3-border); padding-block: 8px; }
  .fv3 .fv3-bank-table > thead > tr > th, .fv3 .fv3-bank-table > tbody > tr[data-select] > td { width: auto; min-width: 0; border: 0; padding: 5px 6px; }
  .fv3 .fv3-bank-table th:nth-child(1), .fv3 .fv3-bank-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .fv3 .fv3-bank-table th:nth-child(2) { display: none; }
  .fv3 .fv3-bank-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .fv3 .fv3-bank-table th:nth-child(4), .fv3 .fv3-bank-table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; white-space: normal; }
  .fv3 .fv3-bank-table th:nth-child(5), .fv3 .fv3-bank-table td:nth-child(5) { display: block; grid-column: 2; grid-row: 2; text-align: right; }
  .fv3 .fv3-bank-table .fv3-status { overflow-wrap: normal; }
  .fv3 .fv3-bank-table .fv3-bank-detail-row, .fv3 .fv3-bank-table .fv3-bank-detail-row > td { display: block; width: 100%; }
  .fv3 .fv3-bank-table .fv3-mobile-status { display: none; }
  .fv3 .fv3-status.fv3-mobile-status { font-size: 12px; }
  .fv3-bank-status-menu { z-index: 40; }
}
[data-dkv-card-rows] { display: grid; gap: 12px; }
[data-dkv-card-row] { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(130px, 1fr) minmax(130px, 1fr) auto; gap: 10px; align-items: end; padding-block: 12px; border-top: 1px solid rgba(140, 150, 165, .25); }
[data-dkv-card-row] label { min-width: 0; }
[data-dkv-card-row] input { width: 100%; min-width: 0; box-sizing: border-box; }
[data-dkv-cards] > small { display: block; margin-block: 8px; }
@media (max-width: 650px) {
  [data-dkv-card-row] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  [data-dkv-card-row] > label:first-child { grid-column: 1 / -1; }
  [data-dkv-card-row] > button { grid-column: 1 / -1; justify-self: start; }
}

/* 168: shared, quiet controls with larger readable status labels. */
body .status, body .fv3 .fv3-status, body .soft-pill.warning, body .soft-pill.ok {font-size:14px;line-height:1.35;min-height:28px;padding:5px 10px;font-weight:600;overflow-wrap:normal;word-break:normal}
body .list-pagination {display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:12px 16px;margin:0;border-top:1px solid var(--line);background:transparent;color:var(--muted);font-size:13px;font-weight:400}
body .list-pagination>span, body .list-pagination>label, body .list-pagination>strong {background:none;box-shadow:none;border:0;border-radius:0;padding:0;font-size:13px;font-weight:400;color:var(--muted)}
body .list-pagination>span{margin-right:auto}body .list-pagination>label{display:flex;align-items:center;gap:8px}body .list-pagination>strong{white-space:nowrap;color:var(--text);font-variant-numeric:tabular-nums}
body .list-pagination button{min-height:32px;min-width:32px;padding:5px 9px}body .list-pagination select{min-height:32px;padding:5px 28px 5px 9px;min-width:68px;width:auto}
body #editorForm select:not([multiple]),body .list-pagination select {appearance:none;color:var(--text);background-color:color-mix(in srgb,var(--text) 7%,var(--panel-strong));border:1px solid var(--line);border-radius:9px;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2396a3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
body #editorForm select option {color:var(--text);background:var(--panel-strong)}
body .partner-fuel-groups>summary {cursor:pointer;font-size:14px;font-weight:600;padding:4px 0}body .partner-fuel-groups[open]>summary{margin-bottom:16px}body .partner-fuel-groups-head .order-editor-title{display:none}body .partner-fuel-groups-head{justify-content:flex-end}
body #editorFields>.company-user-dialog{grid-column:1/-1;width:100%;min-width:0;padding:0}body #companyUserForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;width:100%}body #companyUserForm>label{display:grid;gap:7px;min-width:0;font-size:13px}body #companyUserForm>.wide{grid-column:1/-1}body #companyUserForm [data-company-user-role-section].hidden,body #companyUserForm [hidden]{display:none!important}body #companyUserForm section{padding:16px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--text) 3%,var(--panel-strong))}body #companyUserForm section label{display:grid;gap:7px;max-width:500px}
body .module-action-menu{position:fixed;z-index:100;right:24px;top:110px;max-width:calc(100vw - 32px);display:grid;gap:4px;padding:8px;border:1px solid var(--line);border-radius:14px;background:var(--panel-strong);box-shadow:var(--shadow)}body .module-action-menu>button{display:flex;align-items:center;gap:12px;text-align:left;justify-content:flex-start;padding:11px 14px;border:0;background:transparent;color:var(--text);font-size:14px;min-height:42px}body .module-action-menu>button:hover{background:color-mix(in srgb,var(--text) 9%,transparent)}body .module-action-menu svg{width:19px;height:19px;flex:none;color:var(--accent,var(--amber))}
body .vehicle-type-group>header.section-head{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;min-height:0}body .vehicle-type-group>header h2{font-size:16px;font-weight:500;margin:0}body .vehicle-type-group>header>.soft-pill{margin:0 0 0 auto;font-size:12px;min-height:0;padding:3px 8px;font-weight:400}
body .document-section-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:18px}body .document-section-tabs button{background:transparent;border:0;border-radius:12px;color:var(--text);padding:12px 14px;font-size:14px;font-weight:600}body .document-section-tabs button[aria-pressed=true]{background:var(--orange,#fb923c);color:#181818}
body .documents-board.ops-list{display:block;border:1px solid var(--line);border-radius:18px;padding:0 18px;background:var(--panel);overflow:hidden}body .documents-board>.document-group-card{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent;margin:0;padding:16px 0;gap:18px}body .documents-board>.document-group-card:last-child{border-bottom:0}body .document-group-card .ops-title h3{font-size:15px;font-weight:600}body .document-group-card .route-line{font-size:14px;font-weight:400}body .document-group-card .meta-line{font-size:12px;color:var(--muted)}
body .statistics-cost-info{border-left-color:var(--line)}body .statistics-cost-info summary{font-weight:400}body .statistics-cost-info li small{display:block;color:var(--muted);margin:6px 0}body .attendance-tacho-workspace details{margin:10px 0;border:1px solid var(--line);border-radius:12px;padding:12px}body .attendance-tacho-workspace summary{cursor:pointer;font-weight:600}body .tacho-rule-overview>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px}body .tacho-rule-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}body .tacho-rule-row p{margin:6px 0}body .tacho-rule-row small{color:var(--muted)}body .tacho-rule-row .actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:650px){body #companyUserForm{grid-template-columns:1fr}body .module-action-menu{right:12px;top:90px}body .tacho-rule-row{display:block}body .tacho-rule-row .actions{margin-top:12px}body .list-pagination{gap:9px;padding:10px}body .list-pagination>span{flex-basis:100%}body .document-section-tabs button{padding:10px;font-size:13px}}

body #companyUserForm label { font-size: 13px; font-weight: 500; }

body .documents-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body .vehicle-type-group>header h2{font-size:16px!important;font-weight:500!important}
@media(max-width:650px){body .documents-overview{grid-template-columns:1fr}}
