/* Shared reading scale for the financial indicator workspace. */
.finance-kpi-workspace .glosa-module-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #dce6ea;padding-bottom:12px}
.finance-kpi-workspace .glosa-module-tabs button{border:1px solid #d5e2e7;border-radius:8px;padding:11px 18px;background:#fff;color:#526b78;font:700 12px 'DM Sans',sans-serif;cursor:pointer}
.finance-kpi-workspace .glosa-module-tabs button[aria-pressed=true]{background:#fff4d9;color:#765010;border-color:#dfbf76}
.finance-kpi-workspace .glosa-module-panel{display:grid;gap:18px;min-width:0}
.finance-kpi-workspace .glosa-module-panel.hidden{display:none}
.finance-kpi-workspace #glosaRecoveryCards{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.finance-kpi-workspace #glosaRecoveryCards article{min-height:150px;padding:20px}
.finance-kpi-workspace #glosaRecoveryCards article:not(.ok):not(.critical){border-top-color:#d4a139}
.finance-kpi-workspace .recovery-invoices-card header label{display:grid;gap:6px;font-size:11px;color:#607783}
.finance-kpi-workspace #glosaRecoveryFilter{min-height:36px;border:1px solid #d5e2e7;border-radius:8px;padding:6px 10px;background:#fff;color:#173745;font:inherit}
.finance-kpi-workspace .recovery-table{margin:12px 0;max-height:420px}
.finance-kpi-workspace .recovery-scope{font-size:11px;line-height:1.7;color:#607783;margin:0}
@media(max-width:650px){.finance-kpi-workspace #glosaRecoveryCards{grid-template-columns:1fr}.finance-kpi-workspace .glosa-module-tabs button{flex:1}}
.finance-kpi-workspace [data-aging-range],.finance-kpi-workspace #kpiTrend .kpi-trend-group{cursor:pointer}
.finance-kpi-workspace [data-aging-range]:hover{background:#f1f9fa;border-radius:6px}
.finance-kpi-workspace [data-aging-range]:focus-visible{outline:2px solid #168a99;outline-offset:4px}
.finance-kpi-workspace .open-payers{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;align-content:start}
.finance-kpi-workspace .open-payers .kpi-open-payer{grid-template-columns:24px minmax(0,1fr) minmax(105px,auto) 15px;padding:14px 2px;gap:10px;min-width:0}
.finance-kpi-workspace .open-payers button>b{background:#eaf5f7;color:#167783}
.finance-kpi-workspace .open-payers button>i{color:#167783}
.finance-kpi-workspace .open-payers span strong{overflow-wrap:anywhere}
.finance-kpi-workspace .open-payers span small{line-height:1.6}
.finance-kpi-workspace :is(.glosa-analysis-grid,.loss-analysis-grid){align-items:start}
.finance-kpi-workspace :is(.glosa-analysis-grid,.loss-analysis-grid)>.kpi-card{height:350px;display:flex;flex-direction:column;overflow:hidden}
.finance-kpi-workspace :is(.glosa-analysis-grid,.loss-analysis-grid)>.kpi-card header{flex-shrink:0}
.finance-kpi-workspace :is(.glosa-analysis-grid,.loss-analysis-grid) .kpi-trend{flex:1;min-height:0;height:auto}
.finance-kpi-workspace :is(.glosa-reasons-card .kpi-reasons,.loss-reasons-card .loss-ranking){flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;scrollbar-gutter:stable;overscroll-behavior:contain;padding-right:6px}
@media(max-width:1000px){.finance-kpi-workspace .open-payers{grid-template-columns:1fr}}
@media(max-width:450px){
  .finance-kpi-workspace .open-payers .kpi-open-payer{grid-template-columns:24px minmax(0,1fr) 15px}
  .finance-kpi-workspace .open-payers button>span:nth-child(3){grid-column:2;text-align:left}
  .finance-kpi-workspace .open-payers button>i{grid-column:3;grid-row:1/3}
}
.finance-kpi-workspace #kpiCards,.finance-kpi-workspace #kpiGlosaCards,.finance-kpi-workspace #lossKpiCards{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.finance-kpi-workspace #kpiCards article,.finance-kpi-workspace #kpiGlosaCards article,.finance-kpi-workspace #lossKpiCards article{min-height:150px;padding:20px}
.finance-kpi-workspace #kpiCards article{border-color:#dce7ed;border-top-color:#7196a5}
.finance-kpi-workspace #kpiCards strong{color:#103b4f}
.finance-kpi-workspace #kpiCards article.ok{border-top-color:#2ba47b}
.finance-kpi-workspace #kpiCards article.critical{border-top-color:#db5661}
@media(max-width:650px){.finance-kpi-workspace #kpiCards,.finance-kpi-workspace #kpiGlosaCards,.finance-kpi-workspace #lossKpiCards{grid-template-columns:1fr}}
.finance-kpi-workspace .open-kpi-head{background:linear-gradient(115deg,#0a3042,#126b78)}
.finance-kpi-workspace .open-kpi-head small{color:#85e4e8}
.finance-kpi-workspace .open-kpi-head p{color:#c5e3e9}
.finance-kpi-workspace .kpi-open-payer{width:100%;border:0;border-bottom:1px solid #edf1f3;background:#fff;color:inherit;text-align:left;cursor:pointer;font:inherit}
.finance-kpi-workspace .kpi-open-payer:hover{background:#f1f9fa}
.kpi-drill-modal button:disabled{opacity:.45;cursor:not-allowed}
.finance-kpi-workspace .glosa-kpi-head{background:linear-gradient(115deg,#302512,#896018)}
.finance-kpi-workspace .glosa-kpi-head small{color:#ffe0a0}
.finance-kpi-workspace .glosa-kpi-head p{color:#f0dfbc}
.finance-kpi-workspace #kpiGlosaCards article{border-top-color:#d4a139}
.finance-kpi-workspace #kpiGlosaCards strong{color:#654a1e}
.finance-kpi-workspace .glosa-payers button>b{background:#fff4d9;color:#976d14}
.finance-kpi-workspace .glosa-payers button>i{color:#976d14}
.finance-kpi-workspace .kpi-trend-group>div>i{min-height:0;width:22%;max-width:18px}
.finance-kpi-workspace .kpi-trend-group .pending,.finance-kpi-workspace .kpi-legend .pending,.kpi-chart-tooltip .pending{background:#e05a64}
.finance-kpi-workspace .kpi-trend-group .recovered,.finance-kpi-workspace .kpi-legend .recovered,.kpi-chart-tooltip .recovered{background:#1aa579}
.finance-kpi-workspace .kpi-trend-group .previousLoss,.finance-kpi-workspace .kpi-legend .previousLoss,.kpi-chart-tooltip .previousLoss{background:#aebbc2}
.finance-kpi-workspace .kpi-trend-group:focus-visible{outline:2px solid #168a99;outline-offset:2px;border-radius:4px}
.finance-kpi-workspace .kpi-topic-tabs{display:flex;gap:8px;padding:6px;background:#e6eef2;border:1px solid #d8e4e9;border-radius:12px}
.finance-kpi-workspace .kpi-topic-tabs button{flex:1;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:8px;background:transparent;color:#526e7b;font:700 13px 'DM Sans',sans-serif;cursor:pointer}
.finance-kpi-workspace .kpi-topic-tabs button[aria-pressed=true]{background:#fff;color:#087985;border-color:#c8dce3;box-shadow:0 2px 6px #103b4f0a}
.finance-kpi-workspace .kpi-topic-tabs button:hover{color:#087985;background:#f5fafb}
.finance-kpi-workspace .kpi-topic-panel{display:grid;gap:18px;min-width:0}
.finance-kpi-workspace .kpi-topic-panel.hidden{display:none}
.finance-kpi-workspace .kpi-topic-intro h3{margin:0 0 5px;font:800 20px Manrope;color:#173745}
.finance-kpi-workspace .kpi-topic-intro p{margin:0;color:#607783;font-size:12px;line-height:1.6}
.finance-kpi-workspace #kpiOpenPanel .kpi-metric{grid-column:span 3}
.finance-kpi-workspace .loss-kpi-cards .kpi-target-track{position:relative;height:6px;margin:20px 0 4px;background:#edf2f5;border-radius:6px}
.finance-kpi-workspace .loss-kpi-cards .kpi-target-track i{display:block;height:100%;border-radius:6px;background:#219c80}
.finance-kpi-workspace .loss-kpi-cards .kpi-target-track.critical i{background:#e26874}
.finance-kpi-workspace .loss-kpi-cards .kpi-target-track b{position:absolute;top:-3px;width:2px;height:12px;background:#365969;transform:translateX(-2px)}
@media(max-width:1100px){.finance-kpi-workspace #kpiOpenPanel .kpi-metric{grid-column:span 6}}
.finance-kpi-workspace #kpiDenialsPanel .kpi-metric{grid-column:span 6}
.finance-kpi-workspace #kpiLossesPanel{margin-top:0;padding-top:0;border-top:0}
@media(max-width:650px){
  .finance-kpi-workspace .kpi-topic-tabs{flex-direction:column}
  .finance-kpi-workspace #kpiDenialsPanel .kpi-metric{grid-column:1/-1}
  .finance-kpi-workspace #kpiOpenPanel .kpi-metric{grid-column:1/-1}
}
.finance-kpi-workspace{gap:20px;color:#173745}
.finance-kpi-workspace .kpi-hero{padding:28px 32px;min-height:160px}
.finance-kpi-workspace .kpi-hero small,.finance-kpi-workspace .kpi-card header small,.finance-kpi-workspace .loss-kpi-head small{font-size:10px}
.finance-kpi-workspace .kpi-hero h2{font-size:28px;line-height:1.25}
.finance-kpi-workspace .kpi-hero p{font-size:12px;line-height:1.6;color:#d0e1e8}
.finance-kpi-workspace .kpi-hero-score{min-width:180px}
.finance-kpi-workspace .kpi-hero-score span{font-size:10px}
.finance-kpi-workspace .kpi-hero-score strong{font-size:36px}
.finance-kpi-workspace .kpi-hero-score em{font-size:11px}
.finance-kpi-workspace .kpi-cards{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.finance-kpi-workspace .kpi-cards article{padding:20px;min-width:0}
.finance-kpi-workspace .kpi-cards article>div{flex-direction:column;gap:7px}
.finance-kpi-workspace .kpi-cards small{font-size:12px;line-height:1.4;color:#405b69}
.finance-kpi-workspace .kpi-cards span{font-size:11px;color:#5e7380}
.finance-kpi-workspace .kpi-cards strong{font-size:clamp(22px,2.1vw,30px);margin:16px 0 12px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.finance-kpi-workspace .kpi-cards p{font-size:11px;line-height:1.65}
.finance-kpi-workspace .kpi-cards article.critical{background:linear-gradient(135deg,#fff,#fff6f6);border-left-width:5px}
.finance-kpi-workspace .kpi-cards article.monitor{background:#f8fafb}
.finance-kpi-workspace .kpi-card{padding:22px}
.finance-kpi-workspace .kpi-card header{gap:14px;flex-wrap:wrap}
.finance-kpi-workspace .kpi-card header h3{font-size:16px;line-height:1.4}
.finance-kpi-workspace .kpi-card header>span{font-size:11px;color:#5e7380}
.finance-kpi-workspace .kpi-legend{font-size:10px;gap:6px;line-height:1.8}
.finance-kpi-workspace .kpi-trend{overflow-x:auto;gap:10px;padding-bottom:8px}
.finance-kpi-workspace .kpi-trend-group{min-width:48px}
.finance-kpi-workspace .kpi-trend-group b,.finance-kpi-workspace .loss-trend b{font-size:10px}
.finance-kpi-workspace .kpi-aging{gap:20px}
.finance-kpi-workspace .kpi-aging-row{grid-template-columns:80px minmax(35px,1fr) minmax(110px,auto)}
.finance-kpi-workspace .kpi-aging-row span b,.finance-kpi-workspace .kpi-aging-row>strong{font-size:12px}
.finance-kpi-workspace .kpi-aging-row span small,.finance-kpi-workspace .kpi-aging-row p{font-size:10px;line-height:1.5;color:#5e7380}
.finance-kpi-workspace .kpi-payer{grid-template-columns:28px minmax(0,1fr) minmax(120px,auto);padding:15px 8px;gap:12px}
.finance-kpi-workspace .kpi-payer span strong,.finance-kpi-workspace .kpi-reasons button span strong{font-size:12px;overflow-wrap:anywhere}
.finance-kpi-workspace .kpi-payer span small,.finance-kpi-workspace .kpi-reasons button span small{font-size:10px;line-height:1.6;color:#5e7380}
.finance-kpi-workspace .kpi-reasons>button{grid-template-columns:minmax(0,1fr) 60px minmax(95px,auto) 16px;padding:15px 8px}
.finance-kpi-workspace .kpi-reasons button>b{font-size:12px;font-variant-numeric:tabular-nums}
.finance-kpi-workspace button:focus-visible,.finance-kpi-workspace input:focus-visible,.finance-kpi-workspace select:focus-visible{outline:3px solid #168a99;outline-offset:3px}
.finance-kpi-workspace .kpi-period-control{flex-wrap:wrap;padding:18px;gap:14px}
.finance-kpi-workspace .kpi-period-control>div small{font-size:10px}
.finance-kpi-workspace .kpi-period-control>div strong{font-size:14px}
.finance-kpi-workspace .kpi-period-control label{font-size:11px;gap:7px}
.finance-kpi-workspace .kpi-period-control input,.finance-kpi-workspace .kpi-period-control select,.finance-kpi-workspace .kpi-period-control button{font-size:12px;min-height:40px}
.finance-kpi-workspace .loss-kpi-head h2{font-size:23px;line-height:1.35}
.finance-kpi-workspace .loss-kpi-head p,.finance-kpi-workspace .loss-kpi-head>span{font-size:12px;line-height:1.6}
.finance-kpi-workspace .loss-kpi-cards article{padding:20px;min-width:0}
.finance-kpi-workspace .loss-kpi-cards small{font-size:12px}
.finance-kpi-workspace .loss-kpi-cards strong{font-size:24px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.finance-kpi-workspace .loss-kpi-cards span{font-size:11px;line-height:1.6;color:#5e7380}
.finance-kpi-workspace .loss-ranking span strong,.finance-kpi-workspace .loss-payers span strong,.finance-kpi-workspace .loss-ranking button>strong{font-size:12px}
.finance-kpi-workspace .loss-ranking span small,.finance-kpi-workspace .loss-payers span small{font-size:10px;line-height:1.6;color:#5e7380}
.finance-kpi-workspace .kpi-empty{font-size:12px;line-height:1.6;padding:24px 12px;text-align:center;grid-column:1/-1;color:#5e7380}
@media(max-width:1200px){
  .finance-kpi-workspace .kpi-grid-main,.finance-kpi-workspace .kpi-grid-detail{grid-template-columns:1fr}
  .finance-kpi-workspace .kpi-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.finance-kpi-workspace .kpi-cards{grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}
.finance-kpi-workspace .kpi-cards .kpi-metric{grid-column:span 3;display:flex;flex-direction:column;padding:20px 22px;border:1px solid #dce7ed;border-top:3px solid #1b997b;border-radius:14px;background:#fff;box-shadow:0 4px 16px #12394b06}
.finance-kpi-workspace .kpi-cards .kpi-metric.critical{border-top-color:#e15a68;background:#fff}
.finance-kpi-workspace .kpi-cards .kpi-metric.monitor{border-top-color:#7196a5;background:#fff}
.finance-kpi-workspace .kpi-cards .kpi-metric-money{grid-column:span 6;background:linear-gradient(120deg,#f0f8fa,#fff)}
.finance-kpi-workspace .kpi-cards .kpi-metric-head{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px}
.finance-kpi-workspace .kpi-cards .kpi-metric-head small{font-size:12px;font-weight:700;line-height:1.5;color:#385767}
.finance-kpi-workspace .kpi-cards .kpi-status{padding:4px 8px;border-radius:6px;background:#eaf7f1;color:#197453;font-size:10px;font-weight:700;line-height:1.4}
.finance-kpi-workspace .kpi-cards .critical .kpi-status{background:#fff0f1;color:#b93245}
.finance-kpi-workspace .kpi-cards .monitor .kpi-status{background:#edf3f6;color:#527181}
.finance-kpi-workspace .kpi-cards .kpi-metric-value{margin:20px 0 6px;font-size:30px;line-height:1.2;letter-spacing:-.035em;color:#103b4f}
.finance-kpi-workspace .kpi-cards .kpi-metric-money .kpi-metric-value{font-size:clamp(26px,2.5vw,36px)}
.finance-kpi-workspace .kpi-cards .kpi-metric-target{font-size:11px;color:#607783}
.finance-kpi-workspace .kpi-cards .kpi-target-track{display:block;position:relative;margin:18px 0 0;height:6px;border-radius:6px;background:#edf2f5;overflow:visible}
.finance-kpi-workspace .kpi-target-track i{display:block;height:100%;border-radius:6px;background:#219c80}
.finance-kpi-workspace .critical .kpi-target-track i{background:#e26874}
.finance-kpi-workspace .kpi-target-track b{position:absolute;top:-3px;width:2px;height:12px;background:#365969;transform:translateX(-2px)}
.finance-kpi-workspace .kpi-cards .kpi-metric-detail{padding-top:14px;margin-top:auto;color:#607783;font-size:11px;line-height:1.6}
.finance-kpi-workspace .kpi-cards .kpi-metric-days{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;align-items:center}
.finance-kpi-workspace .kpi-metric-days .kpi-metric-head{grid-column:1;grid-row:1}
.finance-kpi-workspace .kpi-cards .kpi-metric-days .kpi-metric-value{grid-column:2;grid-row:1/4;margin:0;white-space:nowrap;font-size:28px}
.finance-kpi-workspace .kpi-metric-days .kpi-metric-target{grid-column:1;margin-top:6px}
.finance-kpi-workspace .kpi-cards .kpi-metric-days .kpi-metric-detail{grid-column:1;padding-top:5px}
@media(max-width:1100px){.finance-kpi-workspace .kpi-cards .kpi-metric{grid-column:span 6}.finance-kpi-workspace .kpi-cards .kpi-metric-days{grid-column:1/-1}}
@media(max-width:650px){
  .finance-kpi-workspace .kpi-cards .kpi-metric{grid-column:1/-1;padding:18px}
  .finance-kpi-workspace .kpi-cards .kpi-metric-days{display:flex;align-items:stretch}
  .finance-kpi-workspace .kpi-cards .kpi-metric-days .kpi-metric-value{margin:18px 0 6px}
}
@media(max-width:650px){
  .finance-kpi-workspace .kpi-cards{grid-template-columns:1fr}
  .finance-kpi-workspace .kpi-hero,.finance-kpi-workspace .kpi-card{padding:20px}
  .finance-kpi-workspace .kpi-hero h2{font-size:24px}
  .finance-kpi-workspace .kpi-hero-score{align-self:stretch}
  .finance-kpi-workspace .kpi-aging-row{grid-template-columns:75px minmax(0,1fr)}
  .finance-kpi-workspace .kpi-payer{grid-template-columns:28px minmax(0,1fr)}
  .finance-kpi-workspace .kpi-reasons>button{grid-template-columns:minmax(0,1fr) auto 16px}
  .finance-kpi-workspace .kpi-reasons button>em{grid-column:1;grid-row:2}
  .finance-kpi-workspace .kpi-reasons button>b{grid-column:2;grid-row:1/3}
  .finance-kpi-workspace .kpi-reasons .kpi-drill-arrow{grid-column:3;grid-row:1/3}
}
