/* Scoped retail finance and management reporting, no generic template overrides. */
:root{--rf-navy:#19384f;--rf-blue:#2468ad;--rf-teal:#176d70;--rf-ink:#1b3245;--rf-muted:#63788a;--rf-line:#dce5ed;--rf-bg:#f6f8fb;--rf-card:#fff;--rf-lt:#eef5f8}
body.pos-stage6-finance,body.pos7-reports-centre{color:var(--rf-ink);background:var(--rf-bg);font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-weight:400}
body.pos-stage6-finance :is(h1,h2,h3),body.pos7-reports-centre :is(h1,h2,h3){font-family:inherit;letter-spacing:-.025em}
body.pos-stage6-finance .pos6-hero,body.pos7-reports-centre .pos7-hero{background:linear-gradient(112deg,#19384f,#215675);padding:23px 26px;border-radius:14px;min-height:auto;color:white;box-shadow:none}
body.pos-stage6-finance .pos6-hero h1,body.pos7-reports-centre .pos7-hero h1{font-size:clamp(24px,2.2vw,31px);line-height:1.2;color:white;margin:7px 0}
body.pos-stage6-finance .pos6-hero p,body.pos7-reports-centre .pos7-hero p{color:#e0ebf2;max-width:760px;font-size:14px}
body.pos-stage6-finance button,body.pos7-reports-centre button{border-radius:8px;min-height:36px;font-weight:600;box-shadow:none}
body.pos-stage6-finance input,body.pos-stage6-finance select,body.pos7-reports-centre input,body.pos7-reports-centre select{border-radius:8px;min-height:36px;border:1px solid #ccd8e3;background:white;font:inherit}
body.pos-stage6-finance .pos6-panel,body.pos7-reports-centre .pos7-panel{box-shadow:none;border:1px solid var(--rf-line);border-radius:12px}
body.pos-stage6-finance .pos6-shell,body.pos7-reports-centre .pos7-shell{max-width:1600px}
.rf-dashboard{margin:12px 0 18px;display:grid;gap:14px}
.rf-panel{background:var(--rf-card);border:1px solid var(--rf-line);border-radius:12px;padding:18px}
.rf-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.rf-heading{font-size:18px!important;font-weight:700!important;margin:0 0 5px!important;color:var(--rf-navy)}
.rf-subtext{font-size:12px;color:var(--rf-muted);margin:0}
.rf-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.rf-filters label{display:grid;gap:5px;color:#506b7b;font-size:12px;font-weight:600;min-width:135px}
.rf-filters input,.rf-filters select{font-size:13px;padding:7px 9px;min-width:134px}
.rf-filters button{padding:8px 15px;background:var(--rf-blue);color:white;border:0;cursor:pointer}
.rf-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0}
.rf-kpi{background:var(--rf-card);border:1px solid var(--rf-line);padding:13px 15px;border-radius:10px;min-width:0}
.rf-kpi small{font-size:11px;font-weight:600;color:var(--rf-muted)}
.rf-kpi strong{display:block;font-size:20px;letter-spacing:-.02em;font-weight:700;color:var(--rf-navy);margin-top:5px;overflow-wrap:anywhere}
.rf-kpi em{font-size:11px;color:var(--rf-muted);font-style:normal}
.rf-chip{display:inline-flex;align-items:center;gap:4px;border-radius:99px;padding:4px 9px;background:#f0f5f8;font-size:11px;color:#35566a;font-weight:600}
.rf-chip.warning{background:#fff2df;color:#865b17}
.rf-note{padding:10px 12px;border-left:3px solid #c98d40;background:#fffaf2;border-radius:5px;font-size:12px;line-height:1.5;color:#73552a}
.rf-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.rf-tabs button{font-size:12px;min-height:32px;border:1px solid #d8e3eb;background:#fff;color:#27485c;padding:7px 12px;cursor:pointer}
.rf-tabs button[aria-pressed=true]{background:#dceef0;border-color:#9ac8cd;color:#0e565a}
.rf-table-scroll{overflow:auto;max-height:560px;border:1px solid var(--rf-line);border-radius:9px;margin-top:12px}
.rf-table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap;background:white}
.rf-table th{text-align:left;background:#f1f5f9;color:#516a7e;text-transform:none;font-weight:700;position:sticky;top:0;padding:10px;border-bottom:1px solid var(--rf-line)}
.rf-table td{padding:10px;border-bottom:1px solid #e9eff3;color:var(--rf-ink)}
.rf-table tr:hover td{background:#f6fafb}
.rf-table td.num,.rf-table th.num{text-align:right;font-variant-numeric:tabular-nums}
.rf-table tr:last-child td{border-bottom:0}
.rf-table tbody tr.rf-empty td{text-align:center;color:var(--rf-muted);padding:22px}
.rf-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.rf-chart{display:flex;align-items:end;gap:6px;min-height:90px;padding:9px 5px 6px;border-bottom:1px solid var(--rf-line);overflow-x:auto}
.rf-chart span{display:block;flex:1;min-width:7px;max-width:35px;border-radius:3px 3px 0 0;background:#1c7880;min-height:2px}
.rf-chart span:hover{background:#2366a6}
.rf-note-list{font-size:12px;line-height:1.6;color:#6d7d89;margin:12px 0 0;padding-left:18px}
.rf-actionbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rf-actionbar button{padding:7px 12px;background:#fff;border:1px solid #ccdce7;color:#264966;cursor:pointer}
.rf-actionbar button.primary{background:#2363a3;color:white;border-color:#2363a3}
.rf-actionbar button:disabled{opacity:.5;cursor:not-allowed}
.rf-report-select{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rf-report-select button{border:1px solid var(--rf-line);padding:10px 12px;text-align:left;background:white;min-height:50px;color:#31536b}
.rf-report-select button.active{border-color:#7ab7ba;background:#ecf7f6;color:#135b5a}
.rf-report-select button small{display:block;color:#8495a1;margin-top:3px;font-size:10px}
.rf-category{margin:10px 0 5px;font-size:11px;font-weight:800;color:#6a8293;letter-spacing:.08em;text-transform:uppercase}
@media(max-width:900px){.rf-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rf-report-select{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.rf-panel{padding:12px}.rf-metrics{grid-template-columns:1fr 1fr}.rf-kpi{padding:10px}.rf-kpi strong{font-size:16px}.rf-report-select{grid-template-columns:1fr}}
@media print{body.pos7-reports-centre .s10top,.rf-filters,.rf-actionbar,.rf-report-select,.pos7-report-aside,.pos7-jumpbar,body.pos-stage6-finance .top{display:none!important}.rf-table-scroll{overflow:visible;max-height:none}.rf-panel{border:0}body{background:#fff!important}}
