:root{
  --maroon:#7a003c;--maroon-2:#a80055;--maroon-3:#d91976;--deep:#56002b;
  --ink:#20141b;--muted:#77666f;--line:#eadde4;--panel:#fff;--bg:#f7f3f5;--soft:#fbeef4;
  --good:#1f9d5a;--warn:#d99a00;--bad:#d7352a;--blue:#3f6edb;--violet:#6c4ad4;
  --shadow:0 12px 32px rgba(68,18,42,.08);--radius:22px;--radius-sm:15px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--ink)}
body,button,input,select{font-family:Inter,Arial,sans-serif}button,input,select{font:inherit}.app-shell{display:grid;grid-template-columns:88px 1fr;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#6c0036 0%,#8f0048 56%,#65002f 100%);color:#fff;padding:18px 12px;display:flex;flex-direction:column;align-items:center;gap:16px;z-index:20}
.brand-mark{width:54px;height:54px;border-radius:16px;background:#fff;color:var(--maroon);display:grid;place-items:center;font-size:26px;box-shadow:0 10px 20px rgba(0,0,0,.16)}
.side-nav{display:flex;flex-direction:column;gap:10px;width:100%;margin-top:8px}.side-btn{width:100%;height:52px;border:none;background:transparent;color:#f6dce9;border-radius:14px;display:grid;place-items:center;cursor:pointer;position:relative;transition:.2s}.side-btn:hover,.side-btn.active{background:rgba(255,255,255,.14);color:#fff;transform:translateY(-1px)}
.side-btn .badge{position:absolute;right:5px;top:5px;min-width:18px;height:18px;border-radius:9px;background:#ff4d61;font-size:10px;font-weight:800;display:grid;place-items:center;padding:0 5px}.side-spacer{flex:1}.health-pill{width:100%;padding:10px 6px;border:1px solid rgba(255,255,255,.15);border-radius:14px;text-align:center;font-size:10px;line-height:1.5;background:rgba(255,255,255,.06)}.health-dot{display:inline-block;width:8px;height:8px;background:#38d47b;border-radius:50%;margin-right:5px}
.main-content{min-width:0;overflow:hidden}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:15}.topbar h1{font-family:Manrope,Inter,sans-serif;margin:0;font-size:23px;letter-spacing:-.6px}.eyebrow,.panel header p,.section-title p{font-size:10px;color:var(--maroon-2);font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin:0 0 4px}.top-date{margin:4px 0 0;color:var(--muted);font-size:11px}.top-actions{display:flex;align-items:center;gap:10px}.icon-btn,.primary-btn,.secondary-btn{border:0;border-radius:12px;padding:10px 13px;font-weight:800;cursor:pointer}.icon-btn{width:40px;background:#fff;border:1px solid var(--line);color:var(--maroon)}.primary-btn{background:var(--maroon);color:#fff}.secondary-btn{background:#f8eaf1;color:var(--maroon)}
.domain-tabs{background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:end;padding:0 18px;gap:5px;overflow-x:auto;position:sticky;top:72px;z-index:14}.tab-btn{border:none;background:transparent;color:#61525a;padding:15px 13px 13px;border-bottom:3px solid transparent;cursor:pointer;white-space:nowrap;font-size:11px;font-weight:800;display:flex;align-items:center;gap:7px}.tab-btn:hover,.tab-btn.active{color:var(--maroon);border-color:var(--maroon)}
.workspace{padding:16px 18px 28px;max-width:1900px;margin:0 auto}.page-section{scroll-margin-top:190px}.hero{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:12px}.hero h2{font-family:Manrope,Inter,sans-serif;font-size:24px;margin:0 0 5px;letter-spacing:-.5px}.hero p{margin:0;color:var(--muted);font-size:12px}.hero-actions{display:flex;gap:8px}.control{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 13px;color:var(--ink);font-weight:700;font-size:11px}.export{background:var(--maroon);color:#fff;border:none}
.dashboard-load-status{display:flex;align-items:center;gap:10px;min-height:38px;margin:12px 18px 0;padding:9px 12px;border:1px solid rgba(107,0,54,.12);border-radius:12px;background:#fff;color:#654052;font-size:11px;font-weight:700}.dashboard-load-status.done{border-left:5px solid var(--good)}.dashboard-load-status.error{border-left:5px solid var(--bad)}.load-spinner{width:16px;height:16px;flex:0 0 16px;border:3px solid rgba(107,0,54,.16);border-top-color:var(--maroon);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.dashboard-load-status.done .load-spinner,.dashboard-load-status.error .load-spinner{display:none}
.freshness-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:12px 18px 0}.freshness-item{padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:#fff}.freshness-item span{display:block;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px}.freshness-item strong{font-size:12px;color:var(--ink)}
.filter-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px;margin:12px 0;box-shadow:var(--shadow)}.filter-card form{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:9px;align-items:end}.filter-card label{font-size:10px;font-weight:800;color:var(--muted)}.filter-card input,.filter-card select,.table-search{width:100%;height:39px;margin-top:5px;border:1px solid var(--line);border-radius:10px;padding:0 10px;background:#fff;color:var(--ink);outline:none}.filter-actions{display:flex;gap:7px}
.ticker{height:54px;border:1px solid var(--line);border-left:6px solid var(--maroon);background:#fff;box-shadow:var(--shadow);border-radius:15px;display:flex;align-items:center;overflow:hidden;margin:0 0 13px}.live-payment-ticker{position:sticky;top:119px;z-index:13}.live-payment-label{align-self:stretch;display:flex;align-items:center;justify-content:center;padding:0 18px;background:var(--maroon);color:#fff;font-size:11px;font-weight:900;letter-spacing:.08em;white-space:nowrap}.ticker-window{min-width:0;overflow:hidden;flex:1}.ticker-track{display:flex;gap:42px;white-space:nowrap;width:max-content;animation:ticker 70s linear infinite;padding-left:100%}.ticker-track span{font-size:12px;color:#4a2436}.live-payment-item{display:inline-flex;align-items:center;gap:6px}.live-payment-item strong{color:var(--maroon);font-weight:900}.live-payment-dot{width:9px;height:9px;border-radius:50%;background:var(--good);box-shadow:0 0 0 4px rgba(31,157,90,.12)}.live-payment-time{color:#806a75;font-weight:600}@keyframes ticker{to{transform:translateX(-100%)}}
.page-section,.section-companion{display:none}.page-section.active-section,.section-companion.active-section{display:block}.retail-kpi{border-top:4px solid var(--blue)}.micro-kpi{border-top:4px solid var(--good)}
.product-chart-box,.branch-chart-box{min-height:400px!important}.daily-chart-box{min-height:400px!important}.method-chart-box{min-height:520px!important}.claim-type-chart-box,.claim-status-chart-box{min-height:440px!important}
.report-chart-panel{display:flex;flex-direction:column;overflow:hidden!important;padding-bottom:24px!important}.report-chart-panel>.chart-box{flex:0 0 auto}.standard-report-panel{min-height:500px!important}.tall-report-panel{min-height:620px!important}.claims-report-panel{min-height:540px!important}
.section-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;margin-bottom:14px;border-radius:24px;color:#fff;box-shadow:0 16px 34px rgba(68,18,42,.15);overflow:hidden;position:relative}.section-banner:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:-75px;bottom:-135px;background:rgba(255,255,255,.10)}.section-banner>div,.section-banner>i{position:relative;z-index:1}.section-banner p{margin:0 0 6px;font-size:10px;font-weight:900;letter-spacing:.14em}.section-banner h2{font-family:Manrope,Inter,sans-serif;margin:0 0 5px;font-size:27px}.section-banner span{font-size:11px;color:rgba(255,255,255,.86)}.section-banner>i{font-size:42px;color:rgba(255,255,255,.78)}.finance-banner{background:linear-gradient(135deg,#59002d,#92004a 64%,#c51568)}.claims-banner{background:linear-gradient(135deg,#3f1230,#74003b 60%,#a80055)}
.design-version{display:inline-flex;padding:3px 7px;border-radius:999px;background:#f8eaf1;color:var(--maroon);font-size:9px;font-weight:900}
.section-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.section-stat-grid article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px 16px;box-shadow:var(--shadow);border-top:4px solid var(--maroon)}.section-stat-grid article:nth-child(2){border-top-color:var(--blue)}.section-stat-grid article:nth-child(3){border-top-color:var(--good)}.section-stat-grid article:nth-child(4){border-top-color:var(--warn)}.section-stat-grid span{display:block;font-size:9px;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}.section-stat-grid strong{display:block;font-family:Manrope,Inter,sans-serif;font-size:20px;margin:7px 0 4px;color:var(--ink)}.section-stat-grid small{font-size:9px;color:var(--muted)}.claims-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.report-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.redesigned-report{display:flex;flex-direction:column;min-height:0!important;margin:0!important;padding:20px!important;overflow:hidden!important;border-radius:24px}.redesigned-report header{padding-bottom:12px;margin-bottom:8px;border-bottom:1px solid var(--line)}.redesigned-report header h2{font-size:18px}.redesigned-report>.chart-box{flex:0 0 auto;width:100%;overflow:hidden}.finance-report-stack .daily-chart-box{min-height:360px!important}.finance-report-stack .product-chart-box{min-height:500px!important}.finance-report-stack .branch-chart-box{min-height:430px!important}.finance-report-stack .method-chart-box{min-height:540px!important}.claims-report-stack .claim-type-chart-box{min-height:460px!important}.claims-report-stack .claim-status-chart-box{min-height:390px!important}.product-mix-report{border-left:5px solid var(--blue)}.trend-report{border-left:5px solid var(--maroon)}.payment-channel-report{border-left:5px solid var(--warn)}.claim-status-report{border-left:5px solid var(--good)}
@media(max-width:1050px){.section-stat-grid{grid-template-columns:repeat(2,1fr)}.claims-stat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.section-banner{padding:18px}.section-banner h2{font-size:22px}.section-banner>i{font-size:32px}.section-stat-grid,.claims-stat-grid{grid-template-columns:1fr}.redesigned-report{padding:14px!important}.finance-report-stack .product-chart-box,.finance-report-stack .branch-chart-box,.claims-report-stack .claim-type-chart-box{min-height:480px!important}}
.kpi-grid,.executive-kpi-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:12px}.kpi{background:#fff;border:1px solid var(--line);border-radius:18px;padding:13px 14px;box-shadow:var(--shadow);min-width:0;position:relative;overflow:hidden;min-height:105px}.kpi:after{content:"";position:absolute;width:88px;height:88px;border-radius:50%;right:-34px;top:-32px;background:var(--soft)}.kpi span,.kpi strong,.kpi small{position:relative;z-index:1}.kpi span{display:block;font-size:10px;color:var(--muted);font-weight:800}.kpi strong{display:block;font-family:Manrope,Inter,sans-serif;font-size:21px;margin:7px 0 5px;letter-spacing:-.5px}.kpi small{display:block;font-size:9px;color:var(--muted);line-height:1.35}.kpi.featured{background:linear-gradient(135deg,#6f0037 0%,#97004d 72%,#b91663 100%);color:#fff;border:none}.kpi.featured span,.kpi.featured small{color:#f7e5ee}.loading-value{display:inline-block;min-width:88px;min-height:20px;border-radius:7px;background:linear-gradient(90deg,#f3edf0 25%,#fbf8fa 50%,#f3edf0 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;color:transparent!important}@keyframes shimmer{to{background-position:-200% 0}}
.overview-priority-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:12px;margin-bottom:12px}.overview-business-card{background:linear-gradient(135deg,#6f0037 0%,#97004d 72%,#b91663 100%);color:#fff;border-radius:22px;padding:16px;box-shadow:var(--shadow);position:relative;overflow:hidden}.overview-business-card:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-70px;bottom:-95px;background:rgba(255,255,255,.08)}.overview-business-card h3{font-family:Manrope;margin:0 0 7px;font-size:17px}.overview-business-card p{font-size:11px;line-height:1.55;color:#f7e5ee;margin:0;max-width:88%}.health-line{display:flex;gap:8px;align-items:center;margin-bottom:8px}.health-badge,.forecast-chip{padding:6px 9px;border-radius:999px;font-size:9px;font-weight:800}.health-badge{background:#fff;color:var(--maroon)}.forecast-chip{background:rgba(255,255,255,.13);color:#fff}.alerts-panel{padding:14px}.attention-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}.attention-item{display:grid;grid-template-columns:9px 1fr auto;gap:9px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:#fffafc;font-size:10px}.attention-item::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--warn)}.attention-item.good::before{background:var(--good)}.attention-item.alert::before{background:var(--bad)}.sev{font-size:8px;font-weight:800;padding:5px 7px;border-radius:999px}.sev.high{color:var(--bad);background:#fde9e7}.sev.med{color:#a96d00;background:#fff3d8}.sev.pos{color:var(--good);background:#e6f7ed}.attention-empty{color:var(--muted);font-weight:700}
.overview-highlights{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:12px}.mini{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px 13px;box-shadow:var(--shadow);min-height:74px}.mini .big{font-family:Manrope;font-size:18px;font-weight:800}.mini small{color:var(--muted);font-size:9px}.mini-icon{font-size:27px;color:#e7dde2}.good{color:var(--good)!important}.bad{color:var(--bad)!important}.warn{color:var(--warn)!important}
.overview-charts{display:grid;grid-template-columns:1.35fr .65fr;gap:12px;margin-bottom:12px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow);min-width:0;margin-bottom:12px;overflow:hidden}.panel header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:9px;gap:10px}.panel h2{font-family:Manrope;font-size:15px;margin:0}.panel header>span{padding:6px 9px;border-radius:999px;background:var(--soft);color:var(--maroon);font-size:9px;font-weight:800}.chart-box{height:300px;position:relative;overflow:hidden;min-width:0}.chart-box canvas{display:block;max-width:100%}.overview-charts .chart-box{height:260px}.chart-loading,.chart-empty,.chart-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;text-align:center;color:#745666;font-size:10px;font-weight:700}.chart-error{color:#9c2f28}.chart-loading[hidden],.chart-empty[hidden],.chart-error[hidden]{display:none!important}.compact-performance{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.compact-performance .metric{border:1px solid var(--line);border-radius:12px;padding:9px 10px;background:#fffafc}.compact-performance small{display:block;color:var(--muted);font-size:8px;margin-bottom:4px}.compact-performance strong{font-family:Manrope;font-size:13px}
.section-title{display:flex;justify-content:space-between;align-items:end;margin:15px 0 9px}.section-title h2{font-family:Manrope;font-size:18px;margin:0}.dashboard-grid{display:grid;gap:12px;margin-bottom:12px}.dashboard-grid.two{grid-template-columns:1.15fr .85fr}.dashboard-grid.two#payments{grid-template-columns:repeat(2,1fr)}.target-note{margin-top:7px;color:var(--muted);font-size:9px}.target-note code{color:var(--maroon);font-weight:800}.metric-list{display:grid;gap:7px}.metric-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:8px 0}.metric-row:last-child{border-bottom:none}.metric-row strong{font-size:10px}.metric-row small{display:block;color:var(--muted);font-size:8px;margin-top:3px}.metric-value{text-align:right;font-family:Manrope;font-size:13px;font-weight:800}.metric-value span{display:block;font-family:Inter;font-size:8px;margin-top:2px;font-weight:700}.table-panel header{margin-bottom:9px}.table-search{max-width:230px;margin:0}.table-wrap{overflow:auto}.table-wrap table{border-collapse:collapse;width:100%;font-size:10px}.table-wrap th{position:sticky;top:0;background:#fff;text-align:left;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em;padding:10px 8px;border-bottom:1px solid var(--line);white-space:nowrap;z-index:2}.table-wrap td{padding:10px 8px;border-bottom:1px solid var(--line);white-space:nowrap}.money{font-weight:900;color:var(--maroon)}.rank{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:linear-gradient(135deg,var(--maroon),var(--maroon-3));color:#fff;font-weight:900}.status{display:inline-flex;border-radius:99px;padding:4px 8px;font-size:8px;font-weight:900}.status-success{background:#e6f7ed;color:var(--good)}.status-pending{background:#fff3d8;color:#a96d00}.status-failed{background:#fde9e7;color:var(--bad)}.empty-state{padding:22px;border-radius:16px;border:1px dashed var(--line);background:#fff;text-align:center;color:var(--muted);margin-bottom:12px}.section-load-note{text-align:center;color:var(--muted);font-weight:700;padding:16px!important}footer{text-align:center;color:var(--muted);font-size:9px;padding:10px}.toast{position:fixed;right:20px;bottom:20px;background:var(--deep);color:#fff;padding:12px 16px;border-radius:12px;box-shadow:var(--shadow);opacity:0;transform:translateY(15px);pointer-events:none;transition:.2s;z-index:50}.toast.show{opacity:1;transform:none}.batch-actions{display:flex;justify-content:center;padding:10px 0 0}.batch-actions button[hidden]{display:none}
@media(max-width:1450px){.kpi-grid,.executive-kpi-grid{grid-template-columns:repeat(3,1fr)}.overview-priority-grid,.overview-charts{grid-template-columns:1fr}.overview-highlights{grid-template-columns:repeat(2,1fr)}.filter-card form{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1050px){.app-shell{grid-template-columns:72px 1fr}.domain-tabs{top:72px}.kpi-grid,.executive-kpi-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid.two,.dashboard-grid.two#payments{grid-template-columns:1fr}.filter-card form{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.app-shell{display:block}.sidebar{position:fixed;left:-76px;width:72px;transition:.2s}.sidebar.open{left:0}.main-content{width:100%}.topbar{height:auto;min-height:72px;padding:12px 15px}.top-actions{flex-wrap:wrap}.domain-tabs{position:sticky;top:72px;padding:0 8px}.workspace{padding:12px}.dashboard-load-status{margin:10px 12px 0}.freshness-strip{grid-template-columns:1fr;padding:10px 12px 0}.hero{display:block}.hero-actions{margin-top:10px;flex-wrap:wrap}.kpi-grid,.executive-kpi-grid,.overview-highlights{grid-template-columns:1fr}.live-payment-label{min-height:42px;width:100%}.ticker{height:auto;display:block}.ticker-window{min-height:48px}.ticker-track{min-height:48px;align-items:center}.filter-card form{grid-template-columns:1fr}.filter-actions>*{flex:1}.chart-box{height:240px}.overview-charts .chart-box{height:200px}.table-search{max-width:160px}}
