.fh-page{--fh-soft:color-mix(in srgb,var(--purple,#7951f9) 8%,transparent)}
.fh-page h1{margin-bottom:8px}.fh-page .page-head p{max-width:640px}.fh-page button{white-space:normal}
.fh-local-note,.fh-notice{background:var(--fh-soft);border:1px solid color-mix(in srgb,#7951f9 20%,transparent);border-radius:14px;padding:14px 18px;margin-bottom:20px;line-height:1.6}
.fh-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.fh-kpis article{padding:22px}.fh-kpis span{display:block;opacity:.65;font-size:13px}.fh-kpis strong{display:block;font-size:30px;margin-top:8px}
.fh-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.fh-tabs span{opacity:.75;font-size:12px}.fh-filters{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:24px}.fh-filters label{font-size:13px;display:grid;gap:8px;min-width:0}
.fh-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.fh-toolbar label{display:flex;align-items:center;gap:10px;font-size:14px}.fh-page input[type=checkbox]{accent-color:#7951f9;width:18px;height:18px;flex-shrink:0}
.fh-company-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.fh-company{padding:22px;min-width:0}.fh-company-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.fh-company-heading>div{flex:1;min-width:120px}.fh-company h2{font-size:16px;line-height:1.45;margin:0;overflow-wrap:anywhere}.fh-company small,.fh-muted{font-size:13px;opacity:.65;line-height:1.7}.fh-company-body{display:flex;flex-wrap:wrap;gap:14px;margin:20px 0;font-size:14px}.fh-company-body>span:nth-child(3){flex-basis:100%;font-size:12px;opacity:.7}.fh-company .compact{margin-top:10px}
.fh-table{overflow:auto;max-width:100%}.fh-table table{width:100%;border-collapse:collapse;min-width:620px}.fh-table th,.fh-table td{text-align:left;padding:16px 20px;border-bottom:1px solid color-mix(in srgb,currentColor 9%,transparent);font-size:13px}.fh-table th{opacity:.65;font-weight:500}.fh-table small{display:block;opacity:.65;margin-top:5px}
.fh-loading{display:flex;gap:12px;align-items:center;font-size:13px;margin-bottom:20px;line-height:1.5}.fh-loading i{width:18px;height:18px;border-radius:50%;border:2px solid #e2d9ff;border-top-color:#7951f9;animation:fh-spin .8s linear infinite;flex-shrink:0}@keyframes fh-spin{to{transform:rotate(360deg)}}
.fh-batch{margin-bottom:24px}.fh-batch h2{font-size:18px}.fh-file{display:grid;grid-template-columns:2fr 1fr 1.4fr;gap:14px;align-items:center;padding:16px 0;border-top:1px solid color-mix(in srgb,currentColor 9%,transparent);font-size:13px}.fh-file label{overflow-wrap:anywhere}.fh-file .input{min-width:0;width:100%}.fh-empty{opacity:.65;text-align:center}
@media(max-width:1050px){.fh-company-list{grid-template-columns:1fr}.fh-file{grid-template-columns:1fr 1fr}.fh-file label{grid-column:1/-1}}
@media(max-width:600px){.fh-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fh-kpis article{padding:16px}.fh-kpis strong{font-size:26px}.fh-filters{grid-template-columns:1fr}.fh-toolbar{flex-direction:column;align-items:stretch}.fh-toolbar .btn{width:100%}.fh-company{padding:18px}.fh-company-heading .badge{margin-left:30px}.fh-file{grid-template-columns:1fr}.fh-page .page-actions{width:100%}.fh-page .page-actions .btn{flex:1}.fh-tabs{gap:6px}.fh-tabs .btn{padding:10px 12px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.fh-loading i{animation:none}}
.fb-wait{padding:14px 16px;border:1px solid color-mix(in srgb,var(--accent,#7951f9) 20%,var(--line,#e2d9ff));border-radius:16px;background:var(--surface,#fff);box-shadow:0 6px 20px color-mix(in srgb,var(--accent,#7951f9) 6%,transparent);color:var(--text,#201932);min-width:0}
.fb-wait-mark{display:flex;align-items:center;justify-content:center;gap:4px;width:40px;height:40px;border-radius:12px;background:var(--accentSoft,#efe9ff);flex:0 0 auto}
.fb-wait .fb-wait-mark i{display:block;width:4px;height:14px;border:0;border-radius:4px;background:var(--accent,#7951f9);animation:fb-wait-bars 1s ease-in-out infinite}
.fb-wait .fb-wait-mark i:nth-child(2){animation-delay:.14s}.fb-wait .fb-wait-mark i:nth-child(3){animation-delay:.28s}
.fb-wait-copy{min-width:0;overflow-wrap:anywhere}.fb-wait-copy b,.fb-wait-copy small{display:block}.fb-wait-copy b{font-size:12px;line-height:1.5}.fb-wait-copy small{font-size:11px;line-height:1.6;color:var(--muted,#756d83);margin-top:3px}
.fw-workspace>.fb-wait{position:sticky;top:calc(var(--top,72px) + 8px);z-index:19}.main>.fb-wait{margin:16px 28px 0}
.mc-pending .fb-wait{margin:16px 0 0}.fb-button-wait:before{content:'';display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;margin-right:8px;vertical-align:middle;animation:fh-spin .8s linear infinite;flex-shrink:0}
.operation-overlay>.fb-wait{max-width:min(390px,100%);margin:0}
@keyframes fb-wait-bars{0%,100%{transform:scaleY(.65);opacity:.45}50%{transform:scaleY(1.3);opacity:1}}
@media(max-width:760px){.main>.fb-wait{margin:12px 16px 0}.fb-wait{padding:12px;gap:10px}.fb-wait-copy small{font-size:10.5px}}
@media(prefers-reduced-motion:reduce){.fb-wait .fb-wait-mark i,.fb-button-wait:before{animation:none;opacity:1}}
.fw-workspace{--panel:var(--surface)}
.fw-local-edit-note{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 18px;font-size:10px;line-height:1.5;color:var(--muted)}
.fw-local-edit-note .btn{font-size:11px;padding:8px 10px;min-height:36px}
.fw-fiscal-note{display:block;font-size:10px;line-height:1.6;margin-top:12px;color:#e9e2ff}
.fw-choice-back{margin:20px 28px 0}
.fw-workspace>.fh-loading,.fw-workspace>.fh-notice{margin:16px 28px 0}.fw-workspace .page{padding-top:24px}
.fw-reports{max-width:1280px;margin:0 auto}.fw-reports .page-head{display:flex;align-items:center}.fw-reports .page-head>div{min-width:0}.fw-reports .page-head p{max-width:640px}
.fw-period-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 20px;margin-bottom:24px}.fw-period-toolbar .fw-period-pill{padding:0;flex:1 1 180px}.fw-period-toolbar .fw-period-pill>span{margin-left:0}.fw-report-refresh{flex-shrink:0;min-height:40px;padding:0 14px;font-size:12px;white-space:nowrap;background:var(--accentSoft);border-color:color-mix(in srgb,var(--accent) 18%,var(--line));color:var(--accent2)}.fw-report-refresh:hover{background:color-mix(in srgb,var(--accent) 15%,var(--surface));color:var(--accent2)}.fw-report-refresh:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.fw-report-refresh:disabled{opacity:.65;cursor:wait}.fw-report-refresh .icon{width:16px;height:16px;flex-shrink:0}.fw-report-refresh[aria-busy=true] .icon{animation:fh-spin .8s linear infinite}
.fw-bulk-drop{display:flex;align-items:center;gap:20px;padding:28px;border:1px dashed color-mix(in srgb,var(--accent,#7951f9) 36%,var(--line));cursor:pointer;transition:background .18s;margin-bottom:24px}
.fw-upload-copy{flex:1;min-width:0}.fw-bulk-drop h2{font-size:17px;line-height:1.4;margin:0 0 6px}.fw-bulk-drop p{color:var(--muted);font-size:12px;line-height:1.7;margin:0}
.fw-bulk-drop>.btn{flex-shrink:0;pointer-events:none}.fw-bulk-drop[aria-disabled=true]{opacity:.65;cursor:wait}
.fw-bulk-drop.dragover{background:color-mix(in srgb,var(--accent,#7951f9) 9%,var(--surface))}
.fw-upload-symbol{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;background:var(--accentSoft);border-radius:14px;color:var(--accent)}.fw-upload-symbol svg{width:24px;height:24px}
.fw-bulk-drop:focus-visible,.fw-check input:focus-visible,.fw-open-company:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.fw-company-status{overflow:hidden}.fw-report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px}
.fw-report-toolbar h2{font-size:16px;margin:0 0 6px}.fw-report-toolbar p{font-size:12px;color:var(--muted);margin:0}.fw-report-toolbar .btn{flex-shrink:0}
.fw-company-row{display:flex;align-items:center;gap:20px;min-width:0;padding:18px 24px;border-top:1px solid var(--line)}
.fw-check{display:flex;align-items:center;gap:14px;flex:1;min-width:0;cursor:pointer}.fw-check>span{display:grid;gap:5px;min-width:0}.fw-check b{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.fw-check small{font-size:11px;color:var(--muted);line-height:1.6}
.fw-check input{width:18px;height:18px;margin:0;flex-shrink:0;accent-color:var(--accent)}.fw-status-detail{display:block;margin-top:4px;color:var(--muted)}
.fw-company-row>.badge{flex-shrink:0;font-size:10px}.fw-open-company{display:flex;align-items:center;gap:8px;padding:9px 10px;flex-shrink:0;font-size:11px}.fw-open-company svg{width:16px;height:16px}
.fw-report-note{margin:0;padding:16px 24px;border-top:1px solid var(--line);font-size:11px;line-height:1.7;color:var(--muted)}
.fw-workspace .fh-batch{padding:24px}.fw-workspace .fh-batch h2{font-size:17px}.fw-workspace .fh-batch p{font-size:12px;color:var(--muted);line-height:1.6}.fw-workspace .fh-file input[type=checkbox]{accent-color:var(--accent)}
.mc-all-firms{border-bottom:1px solid var(--line);margin-bottom:6px}.mc-all-firms small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.mc-all-firms .mc-initials svg{width:20px;height:20px}
@media(max-width:1000px){.fw-bulk-drop{gap:16px;padding:24px}.fw-company-row{gap:12px}.fw-open-company span{display:none}.fw-open-company{padding:10px}.fw-open-company svg{width:18px;height:18px}}
@media(max-width:760px){
 .fw-workspace>.fh-loading,.fw-workspace>.fh-notice{margin:12px 16px 0}
 .fw-reports .page-head{gap:12px;flex-direction:row;align-items:flex-start}.fw-reports .page-head>div{flex:1}.fw-period-toolbar{gap:12px;margin-bottom:20px}.fw-report-refresh{min-height:42px;padding:0 12px}
 .fw-bulk-drop{display:grid;grid-template-columns:40px minmax(0,1fr);gap:14px;padding:20px;margin-bottom:16px}.fw-upload-symbol{width:40px;height:40px;border-radius:12px}.fw-upload-symbol svg{width:21px;height:21px}
 .fw-bulk-drop h2{font-size:16px}.fw-bulk-drop p{font-size:11px}.fw-bulk-drop br{display:none}.fw-bulk-drop>.btn{grid-column:1/-1;width:100%;margin-top:2px}
 .fw-report-toolbar{align-items:stretch;flex-direction:column;gap:16px;padding:20px}.fw-report-toolbar .btn{width:100%}
 .fw-company-row{position:relative;flex-wrap:wrap;gap:8px 12px;padding:16px 18px}.fw-check{flex:1 1 calc(100% - 54px);gap:12px;padding-right:42px}.fw-check b{font-size:12px}.fw-check small{font-size:10px}
 .fw-company-row>.badge{margin-left:30px;max-width:calc(100% - 74px);white-space:normal}
 .fw-open-company{position:absolute;right:10px;top:14px;width:40px;height:40px;justify-content:center}
 .fw-report-note{padding:16px 20px}.fw-workspace .fh-batch{padding:18px}.fw-workspace .fh-batch .page-actions{display:flex;flex-wrap:wrap}.fw-workspace .fh-batch .page-actions .btn{flex:1;min-width:120px}
}
@media(prefers-reduced-motion:reduce){.fw-bulk-drop{transition:none}}
.fw-reports .page-head h1{margin-top:6px}.fw-period-pill{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0 24px;font-size:12px;color:var(--muted)}.fw-period-pill svg{width:18px;height:18px;color:var(--accent)}.fw-period-pill b{color:var(--text)}.fw-period-pill>span{margin-left:auto;font-size:11px}
.fw-progress-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.fw-source-card{padding:22px;min-width:0;position:relative}.fw-source-head{display:flex;align-items:center;gap:12px}.fw-source-head>div{flex:1;min-width:0}.fw-source-head h2{font-size:14px;margin:0 0 5px}.fw-source-head p{margin:0;color:var(--muted);font-size:10px}.fw-source-mark{width:36px;height:36px;display:grid;place-items:center;background:var(--accentSoft);color:var(--accent);font-size:19px;font-weight:800;border-radius:11px;flex-shrink:0}.fw-source-mark.is-bolt{background:color-mix(in srgb,#24b98a 12%,var(--surface));color:#159b74}.fw-source-head>strong{font-size:25px;white-space:nowrap;letter-spacing:-1px}.fw-source-head>strong span{font-size:14px;color:var(--muted);font-weight:500;letter-spacing:0}.fw-source-track{height:5px;margin:20px 0 14px;border-radius:10px;background:var(--accentSoft);overflow:hidden}.fw-source-track i{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .25s}.fw-source-card.is-complete .fw-source-track i{background:#24b98a}.fw-source-footer{font-size:10px;color:var(--muted);line-height:1.6}.fw-source-details{margin-top:10px}.fw-source-details summary{color:var(--accent);font-size:11px;cursor:pointer;font-weight:600}.fw-source-details ul{list-style:none;margin:12px 0 0;padding:0;max-height:300px;overflow:auto}.fw-source-details li{padding:10px 0;border-top:1px solid var(--line);display:grid;gap:4px}.fw-source-details li b{color:var(--text);font-size:10px;overflow-wrap:anywhere}.fw-source-details li span{overflow-wrap:anywhere}.fw-source-details .is-ready>span{color:#159b74}.fw-source-details .is-period>span,.fw-source-details .is-missing>span{color:var(--warn,#ba7931)}
.fw-report-select{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:14px 24px;color:var(--muted);font-size:11px}.fw-report-select label{display:flex;align-items:center;gap:10px;cursor:pointer}.fw-report-select input{accent-color:var(--accent);width:16px;height:16px}.fw-company-sources{display:flex;flex-wrap:wrap;gap:6px}.fw-mini-source{display:inline-flex;padding:2px 7px;border-radius:6px;background:var(--accentSoft);font-size:10px}.fw-mini-source.is-ready{background:color-mix(in srgb,#24b98a 10%,var(--surface));color:#159b74}.fw-mini-source.is-missing,.fw-mini-source.is-period{color:var(--warn,#ba7931)}.fw-status-detail{flex-basis:100%}
.vehicle-bulk-toolbar{margin:0 0 20px}.vehicle-bulk-toolbar input,.vehicle-select-check input{accent-color:var(--accent);width:18px;height:18px;margin:0}.vehicle-select-check{display:flex;align-items:center;justify-content:center;padding:8px;cursor:pointer}.vehicle-simple-table .is-selected,.vehicle-simple-card.is-selected{background:var(--accentSoft)}.vehicle-bulk-list{display:grid;gap:12px}.vehicle-bulk-list label.field{gap:8px}.vehicle-bulk-list .vehicle-bulk-apply{display:flex;gap:10px;align-items:center;font-size:13px;font-weight:600}.vehicle-bulk-list input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.vehicle-bulk-scope{font-size:11px;color:var(--muted);line-height:1.7;margin:16px 0 22px}
.vehicle-bulk-list .bulk-option-card{padding:20px}.vehicle-bulk-list .vehicle-bulk-apply{margin-bottom:16px}.vehicle-bulk-assignments{border-top:1px solid var(--line);padding:14px 0}.vehicle-bulk-assignments summary{font-size:11px;cursor:pointer;line-height:1.6}.vehicle-bulk-assignments .vehicle-driver-choice-list{margin-top:12px;max-height:240px;overflow:auto}.vehicle-simple-card .vehicle-select-check{margin-left:auto}.vehicle-bulk-list [hidden]{display:none!important}
@media(max-width:1050px){.fw-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fw-progress-grid>.fw-source-card:last-child:nth-child(3){grid-column:1/-1}.fw-source-card{padding:18px}.fw-source-head{gap:8px}.fw-source-head h2{overflow-wrap:anywhere}.fw-source-mark{width:30px;height:30px;font-size:16px}.fw-source-head>strong{font-size:22px}}
@media(max-width:760px){.fw-progress-grid{grid-template-columns:1fr;gap:12px;margin-bottom:18px}.fw-source-card{padding:18px 20px}.fw-source-head h2{font-size:14px}.fw-source-head p{font-size:11px}.fw-source-head>strong{font-size:28px}.fw-source-track{margin:16px 0 10px}.fw-source-footer{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}.fw-source-details{margin:0;flex:1;text-align:right}.fw-source-details[open]{flex-basis:100%;text-align:left}.fw-source-details summary{white-space:nowrap}.fw-period-pill{padding:0 0 20px}.fw-period-pill>span{margin-left:28px;flex-basis:100%;font-size:10px}.fw-report-select{padding:14px 20px}.fw-report-select>span{display:none}.vehicle-page-actions{flex-wrap:wrap}.vehicle-page-actions>.btn{flex:1;min-width:120px}.vehicle-bulk-toolbar .driver-selection-intro{display:none}}
@media(prefers-reduced-motion:reduce){.fw-source-track i{transition:none}}
@media(prefers-reduced-motion:reduce){.fw-report-refresh[aria-busy=true] .icon{animation:none}}
@media(max-width:760px){.driver-bulk-drawer,.vehicle-edit-drawer{width:100%;max-width:100%}.vehicle-bulk-toolbar .driver-selection-actions{border-top:0}.vehicle-bulk-toolbar .driver-select-all{min-height:40px}}
