@media screen {
 .finance-dashboard>.panel{margin-bottom:22px}.finance-dashboard .ops-panel{padding:24px}
 .finance-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
 .finance-metric{display:flex;flex-direction:column;gap:10px;padding:22px;min-width:0}
 .finance-metric>span{font-size:12px;font-weight:650;color:#59647b}.finance-metric strong{font-size:clamp(22px,2.2vw,30px);letter-spacing:-.7px;line-height:1.3;overflow-wrap:anywhere}.finance-metric small{font-size:11px;line-height:1.5;color:var(--muted)}
 .finance-received strong{color:#277352}.finance-pending strong{color:#906327}
 .finance-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
 .finance-section-head h2{font-size:17px;letter-spacing:-.3px;margin:3px 0 7px}.finance-section-head .subtext{font-size:12px;line-height:1.6;margin:0;max-width:850px}
 .finance-eyebrow{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:#6c7589}
 .finance-dashboard .finance-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}
 .finance-filter-grid>label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:650;color:#5c657a;min-width:0}
 .finance-filter-grid input:not([type=checkbox]),.finance-filter-grid select,.finance-preferences select{width:100%;min-height:43px;padding:10px 12px;border:1px solid #dbe2ed;border-radius:9px;background:#fff;font-size:12px;color:#202946;min-width:0}
 .finance-clinic-picker{grid-column:span 2;border:1px solid #dce2ed;border-radius:9px;background:#fafbfe;min-width:0}
 .finance-clinic-picker>summary{display:flex;justify-content:space-between;gap:10px;align-items:center;cursor:pointer;padding:11px 13px;font-size:12px;font-weight:600;line-height:1.5;list-style:none}
 .finance-clinic-picker>summary::-webkit-details-marker{display:none}.finance-clinic-picker>summary::after{content:"⌄";color:#6e7990}
 .finance-clinic-picker>summary span{margin-left:auto;font-size:10px;color:#7a8293;font-weight:400}
 .finance-report-clinics{border:0;min-width:0;max-height:220px;margin:0;padding:7px 13px 13px;display:flex;flex-direction:column;gap:9px;overflow:auto}
 .finance-report-clinics legend{font-size:10px;color:#727b8f;margin-bottom:10px}.finance-report-clinics .check{display:flex;flex-direction:row;gap:9px;align-items:center;font-size:12px;line-height:1.5;font-weight:400;margin:0}
 .finance-filter-actions{grid-column:span 2;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;flex-wrap:wrap}
 .finance-filter-actions .check{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5;white-space:normal}
 .finance-filter-actions input,.finance-report-clinics input{width:17px;height:17px;min-height:17px;margin:0;accent-color:var(--gold);flex:none;padding:0}
 .finance-filter-actions button{min-height:43px;white-space:nowrap;font-size:12px}
 .finance-breakdown-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.finance-breakdown-grid>section{min-width:0}.finance-breakdown-grid h3{font-size:13px;margin:0 0 12px}
 .finance-dashboard .numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
 .finance-empty{border:1px dashed #dce3ee;border-radius:10px;background:#fafbfd;padding:18px}.finance-empty p{font-size:12px;color:#687287;line-height:1.7;margin:0}
 .finance-closing-card{border:1px solid #e1e6ef;border-radius:12px;padding:18px;margin:12px 0}
 .finance-closing-card header,.finance-price-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;font-size:13px}
 .finance-closing-card header small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.finance-payment-status{display:inline-block;padding:5px 8px;border-radius:6px;font-size:10px;line-height:1.5;background:#eff2f7;color:#647088;font-weight:650}
 .finance-payment-status.paid{background:#edf7f1;color:#28734e}.finance-payment-status.pending,.finance-payment-status.partial{background:#fff6e7;color:#916126}
 .finance-closing-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.finance-closing-values span{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.finance-closing-values b{font-size:16px}
 .finance-closing-card footer,.finance-price-card footer{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;border-top:1px solid #edf0f5;padding-top:13px;margin-top:14px}
 .finance-closing-card footer button,.finance-price-card footer button{font-size:11px;min-height:35px}
 .finance-details{border:1px solid #e0e5ee;border-radius:11px;background:#fbfcfe;margin-top:18px}
 .finance-details>summary{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:15px;font-size:13px;font-weight:650;cursor:pointer;line-height:1.5}
 .finance-details>summary span{font-size:11px;font-weight:400;color:var(--muted)}.finance-details>div{padding:18px;border-top:1px solid #e5e9f1}
 .finance-settings>.finance-details{margin-top:0;border:0;background:transparent}.finance-settings>.finance-details>summary{padding:0}.finance-settings>.finance-details>div{padding:18px 0 0;margin-top:16px}
 .finance-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.finance-price-card{min-width:0;border:1px solid var(--line);border-radius:11px;padding:17px}.finance-price-card>small{display:block;color:var(--muted);font-size:10px;margin-top:5px}
 .finance-price-card dl{margin:15px 0;font-size:12px}.finance-price-card dl>div{display:flex;gap:12px;justify-content:space-between;margin:10px 0;line-height:1.5}.finance-price-card dt{min-width:0;overflow-wrap:anywhere}.finance-price-card dd{margin:0;white-space:nowrap;font-weight:650}
 .finance-preferences{margin-top:24px;padding-top:20px;border-top:1px solid #e5e9f1}.finance-preferences h3{font-size:14px;margin:0 0 6px}.finance-preferences form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.finance-preferences label{display:flex;flex-direction:column;gap:7px;font-size:11px;min-width:180px}.finance-preferences button{min-height:43px}
 .finance-dashboard summary:focus-visible{outline:3px solid #1599d1;outline-offset:3px}
 #finance-report-result{margin-top:18px}.finance-inline-error{font-size:12px;padding:13px;border:1px solid #efd0d0;border-radius:8px;background:#fff5f5;color:#963c3c;line-height:1.6}
 .finance-report-toolbar{gap:10px;font-size:12px}.finance-report-toolbar>input{flex:1;min-width:180px;min-height:42px;border:1px solid #dbe2ed;border-radius:8px;padding:10px 12px;font-size:12px}
 .finance-report-toolbar button{font-size:11px;min-height:36px}.finance-report-toolbar input[type=checkbox]{width:17px;min-height:17px;margin:0;accent-color:var(--gold)}
 .finance-report-selection td{font-size:12px}.finance-report-selection td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
 #finance-report-summary{padding:18px;border:1px solid #e0e6ef;border-radius:11px;background:#fcfdff;margin-top:18px;overflow:auto}.finance-report-document table{min-width:440px}
}
@media screen and (max-width:1050px){.finance-dashboard .finance-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-clinic-picker,.finance-filter-actions{grid-column:span 2}.finance-breakdown-grid,.finance-price-grid{grid-template-columns:1fr}}
@media screen and (max-width:640px){
 .finance-dashboard .ops-panel{padding:18px}.finance-overview{grid-template-columns:1fr;gap:10px}.finance-metric{padding:16px;gap:7px}.finance-metric strong{font-size:26px}
 .finance-dashboard .finance-filter-grid{gap:13px}.finance-filter-grid>label{font-size:10px}.finance-filter-actions{align-items:stretch;flex-direction:column}.finance-filter-actions button{width:100%}
 .finance-clinic-picker>summary{flex-wrap:wrap;gap:5px}.finance-clinic-picker>summary span{flex-basis:100%;margin-left:0}.finance-section-head{flex-wrap:wrap}.finance-section-head h2{font-size:16px}
 .finance-details>summary{flex-wrap:wrap;gap:5px}.finance-details>summary span{flex-basis:100%}.finance-details>div{padding:14px}
 .finance-closing-values{grid-template-columns:1fr;gap:12px}.finance-closing-values>div{display:flex;justify-content:space-between;gap:10px}.finance-closing-values b{font-size:15px}.finance-closing-card footer{justify-content:flex-start}
 .finance-report-toolbar{align-items:stretch}.finance-report-toolbar>label{flex-basis:100%;line-height:1.5}.finance-report-toolbar>input{min-width:0;width:100%;flex-basis:100%}
 #finance-report-summary{padding:12px}.finance-price-card{padding:14px}
}
