@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#152239;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Manrope,'DM Sans',sans-serif}h1{font-size:27px;letter-spacing:-.9px;line-height:1.28}h2{font-size:18px;letter-spacing:-.35px}h3{font-size:15px}.muted{color:#78869b}.small{font-size:12px}.strong{font-weight:700}.hidden{display:none!important}
.shell{display:flex;min-height:100vh}.sidebar{width:248px;flex:0 0 248px;background:#101b2e;color:#c9d4e6;display:flex;flex-direction:column;padding:25px 15px 18px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;color:white;padding:4px 13px 32px;font:800 21px Manrope,sans-serif;letter-spacing:-.9px}.brand-mark{display:grid;place-items:center;color:#fff;width:35px;height:35px;border-radius:11px;background:linear-gradient(140deg,#4f77ff,#7560df);box-shadow:0 5px 20px #4967dd50}.brand-mark svg{width:22px;height:22px}.nav-caption{font-size:10px;letter-spacing:1.45px;color:#74839c;font-weight:800;padding:8px 14px 12px}.nav-btn{appearance:none;border:0;background:transparent;color:#a9b7cb;display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:12px 14px;border-radius:10px;font-size:13px;font-weight:600;margin-bottom:4px}.nav-btn:hover{color:#fff;background:#1b2b43}.nav-btn.active{background:#283b5a;color:#fff}.nav-btn svg{width:18px;height:18px;flex:none;stroke-width:1.9}.sidebar-foot{margin-top:auto;padding:17px 11px 2px;border-top:1px solid #25334a}.sidebar-foot .label{font-size:12px;font-weight:700;color:#f6f8fc}.sidebar-foot p{font-size:11px;color:#91a3ba;line-height:1.7}.logout-link{background:transparent;border:0;display:flex;gap:9px;color:#a7b6ca;margin-top:14px;padding:8px 0;font-size:12px}.content{flex:1;min-width:0}.topbar{height:72px;background:white;border-bottom:1px solid #e8ebf2;padding:0 37px;display:flex;align-items:center;justify-content:space-between;gap:14px}.breadcrumbs{font-size:12px;color:#7a889a}.breadcrumbs strong{color:#23354f}.top-right{display:flex;align-items:center;gap:12px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e9ebff;color:#515dd4;font-weight:800;font-size:12px}.top-name{font-size:12px;font-weight:800}.top-role{font-size:11px;color:#8a97a7}.main{padding:31px 38px 60px;max-width:1600px;margin:0 auto}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:27px}.page-header .sub{color:#7d899b;font-size:13px;margin-top:7px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.3px;color:#677ed8;text-transform:uppercase;margin-bottom:8px}.actions,.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.filter{height:37px;background:white;border:1px solid #e3e7ee;border-radius:9px;color:#526179;font-size:12px;font-weight:600;padding:0 12px;outline:none;max-width:190px}.filter:focus,.field:focus{border-color:#6276e9;box-shadow:0 0 0 3px #6379df20}.btn{border-radius:9px;border:1px solid transparent;padding:10px 15px;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.25;min-height:39px}.btn svg{height:16px;width:16px}.btn-primary{color:white;background:#536ae5;box-shadow:0 4px 12px #536ae523}.btn-primary:hover{background:#4358d1}.btn-secondary{background:white;border-color:#e2e6ee;color:#3e4b61}.btn-secondary:hover{background:#f5f7fb}.btn-ghost{background:transparent;color:#586882;padding:8px}.btn-danger{background:#fff1f1;color:#ae3434}.btn-full{width:100%}.grid-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:21px}.card{background:white;border:1px solid #e8ebf1;border-radius:14px;box-shadow:0 2px 8px #15243a05}.kpi{padding:21px 22px;min-height:130px}.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.kpi-name{font-size:12px;color:#758196;font-weight:700}.kpi-icon{height:32px;width:32px;border-radius:9px;display:grid;place-items:center;background:#f2f4ff;color:#6675d6}.kpi-icon svg{width:17px;height:17px}.kpi-value{font:800 27px/1.5 Manrope,sans-serif;letter-spacing:-1.1px;margin:6px 0 2px;color:#19283d}.kpi-foot{font-size:11px;color:#91a0b2}.delta{font-size:11px;font-weight:800;border-radius:5px;padding:3px 5px;display:inline-block;margin-right:5px}.delta.good{background:#e8f8ef;color:#169b63}.delta.bad{background:#fff0f1;color:#d74d62}.delta.neutral{background:#eef2f7;color:#68788e}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:18px;margin-bottom:21px}.panel{padding:22px 23px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}.panel-head p{font-size:11px;color:#8a97a8;margin-top:5px}.chart-svg{width:100%;height:auto;overflow:visible;display:block}.chart-wrap{min-height:245px;display:flex;align-items:center}.chart-wrap>div{width:100%}.bars{display:flex;flex-direction:column;gap:18px;padding:3px 0 7px}.bar-item{display:flex;flex-direction:column;gap:8px}.bar-item-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:8px}.bar-item-top span{color:#59677a;max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-item-top strong{font-size:12px}.bar-track{height:9px;background:#edf1f6;overflow:hidden;border-radius:30px}.bar-fill{height:100%;border-radius:30px;background:linear-gradient(90deg,#6277eb,#8b8df2);transition:width .3s}.grid-bottom{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}.table-wrap{width:100%;overflow:auto}.table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;white-space:nowrap}.table th{font-size:10px;color:#91a0b0;font-weight:800;text-transform:uppercase;letter-spacing:.6px;padding:12px 10px;border-bottom:1px solid #edf0f5}.table td{padding:13px 10px;border-bottom:1px solid #f0f2f6;color:#48576c}.table tbody tr:last-child td{border-bottom:0}.table td.strong{color:#26344b;font-weight:800}.pill{display:inline-block;font-size:10px;font-weight:800;padding:5px 9px;border-radius:25px;white-space:nowrap}.pill.green{background:#e7f7ed;color:#218a5b}.pill.amber{background:#fff3dc;color:#b07811}.pill.gray{background:#edf2f7;color:#708198}.pill.blue{background:#edf0ff;color:#5d67c1}.pill.red{background:#fff0f0;color:#be4a4a}.empty{padding:36px 16px;text-align:center;color:#93a1b0;font-size:13px;background:#fbfcfe;border:1px dashed #e1e7f0;border-radius:12px}.list-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eff2f6}.list-item:last-child{border-bottom:0}.list-icon{height:35px;width:35px;border-radius:10px;background:#f2f4fb;color:#5c6d97;display:grid;place-items:center;font-weight:900;flex:none}.list-body{flex:1;min-width:0}.list-body strong{font-size:12px}.list-body p{font-size:11px;color:#8a97a8;margin-top:4px}.list-end{font-weight:800;font-size:12px}
.demo-banner{background:#fff7e6;border:1px solid #ffdf9e;color:#92611b;padding:10px 16px;border-radius:10px;font-size:12px;margin-bottom:23px;display:flex;align-items:center;gap:8px}.demo-banner svg{width:16px;height:16px;flex:none}.form-view{max-width:820px;margin:0 auto}.form-card{padding:28px}.form-title{font:800 19px Manrope,sans-serif;margin-bottom:7px}.form-sub{font-size:12px;color:#8290a2;line-height:1.6;margin-bottom:23px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-group{display:flex;flex-direction:column;gap:7px;min-width:0}.form-group label{font-size:12px;font-weight:800;color:#42516a}.form-group label .optional{color:#a2adba;font-weight:500}.field{outline:none;width:100%;border:1px solid #dfe5ef;border-radius:9px;background:#fff;color:#24354c;padding:0 13px;height:44px;font-size:13px;transition:box-shadow .1s}.field::placeholder{color:#a1aebe}.field:disabled{background:#f6f8fa;color:#7c8899}.field-area{min-height:90px;resize:vertical;padding:12px 13px}.span2{grid-column:1/-1}.form-divider{border:0;border-top:1px solid #e9edf3;margin:23px 0}.submit-row{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:26px}.submit-row p{font-size:11px;color:#98a5b4;max-width:260px}.success-box{padding:40px 25px;text-align:center}.success-mark{width:60px;height:60px;margin:auto auto 17px;display:grid;place-items:center;border-radius:50%;background:#e7f8ed;color:#1ca66c}.success-mark svg{width:30px;height:30px}.success-box h2{font-size:20px;margin-bottom:10px}.success-box p{color:#7d8b9d;line-height:1.6;font-size:13px}.notice{border-radius:10px;padding:12px 15px;font-size:12px;line-height:1.65;margin-bottom:18px;background:#eef2ff;color:#4f5bb4}.notice.warn{background:#fff4dd;color:#926012}.notice.error{background:#fff0f1;color:#b53f55}.notice.good{background:#e9f8f0;color:#28845b}.section-block{margin-bottom:24px}.section-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.section-top h2{font-size:16px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.data-panel{padding:22px}.data-panel .table{margin-top:10px}.modal-backdrop{position:fixed;inset:0;z-index:50;background:#101b2ea6;display:flex;align-items:center;justify-content:center;padding:15px}.modal{background:white;border-radius:16px;width:min(540px,100%);max-height:92vh;overflow:auto;padding:28px;box-shadow:0 30px 80px #0003}.modal h2{font-size:20px;margin-bottom:7px}.modal>p{font-size:12px;color:#8190a2;line-height:1.6;margin-bottom:23px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.loading-screen{height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#697d9e}.loader{display:inline-block;width:30px;height:30px;border:3px solid #e3e8fa;border-top-color:#6075e9;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-layout{min-height:100vh;background:linear-gradient(140deg,#111c32,#23345b);display:grid;place-items:center;padding:20px}.auth-card{width:min(440px,100%);padding:35px;background:white;border-radius:17px;box-shadow:0 25px 80px #070f1d45}.auth-card .brand{color:#1b2b48;padding:0 0 26px}.auth-card .brand-mark{color:white}.auth-card h1{font-size:24px;margin-bottom:8px}.auth-card .desc{font-size:13px;color:#8c9aab;line-height:1.6;margin-bottom:24px}.auth-card .form-group{margin-bottom:15px}.auth-card .btn{margin-top:9px;height:44px}.auth-card .demo-link{border-top:1px solid #ebedf2;margin-top:24px;padding-top:19px;font-size:12px;color:#7e8aa0}.demo-accounts{display:grid;gap:8px;margin-top:12px}.demo-account{display:flex;align-items:center;justify-content:space-between;border:1px solid #e5e9f2;background:#fafbfe;padding:12px 13px;border-radius:9px;text-align:left}.demo-account:hover{border-color:#95a5ec;background:#f1f4ff}.demo-account strong{font-size:12px;color:#2e3f59}.demo-account span{font-size:11px;color:#8a99ac}.badge-top{background:#eaf3ff;color:#3d70b0;font-size:10px;border-radius:6px;padding:5px 8px;font-weight:800}.toast{position:fixed;right:23px;bottom:23px;z-index:200;background:#1b2a45;color:white;border-radius:10px;padding:13px 18px;box-shadow:0 15px 50px #17253c4d;font-size:12px;max-width:min(430px,calc(100vw - 40px))}.toast.error{background:#ad4354}.tab-nav{display:flex;gap:9px;margin-bottom:22px;border-bottom:1px solid #e6eaf0}.tab{padding:10px 11px;border:0;background:transparent;border-bottom:2px solid transparent;color:#8a96a7;font-size:12px;font-weight:800}.tab.active{border-color:#6578e9;color:#485bc6}.status-dot{display:inline-block;width:7px;height:7px;background:#2db57d;border-radius:50%;margin-right:5px}.compact-actions{display:flex;gap:7px;align-items:center}.mobile-only{display:none}.sidebar-overlay{display:none}.mobile-menu{background:transparent;border:0;color:#5d6e88}.vbar{display:flex;align-items:center;gap:10px}.small-select{height:32px;font-size:11px}.footer-note{font-size:11px;color:#a0aebc;margin-top:18px;line-height:1.5}.metric-label{display:flex;gap:6px;align-items:center;color:#74839b;font-size:12px}.metric-dot{width:9px;height:9px;border-radius:50%;background:#6277e9;display:inline-block}.metric-dot.second{background:#26b8a5}.stat-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.stat-item{background:#f7f9fd;border-radius:9px;padding:14px}.stat-item p{font-size:10px;color:#8291a6;margin-bottom:7px}.stat-item strong{font-size:18px;font-family:Manrope,sans-serif}.tagline{color:#9aa8b9;font-size:11px;margin-top:5px}
@media(max-width:1150px){.dashboard-grid{grid-template-columns:1fr}.grid-bottom{grid-template-columns:1fr}.grid-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:780px){.sidebar{position:fixed;left:-280px;z-index:30;transition:left .2s;height:100dvh}.sidebar.open{left:0}.sidebar-overlay.open{display:block;background:#0007;position:fixed;inset:0;z-index:25}.topbar{height:60px;padding:0 18px}.mobile-only{display:inline-flex}.top-name{display:none}.main{padding:23px 17px 45px}.page-header{display:block}.page-header .actions{margin-top:17px}.grid-kpis{gap:10px}.kpi{padding:15px;min-height:116px}.kpi-value{font-size:21px}.panel{padding:18px}.form-card{padding:20px}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.submit-row{display:block}.submit-row .btn{width:100%;margin-top:15px}.auth-card{padding:25px}.two-columns{grid-template-columns:1fr}.filter{max-width:100%}.dashboard-grid{gap:12px}.page-header h1{font-size:24px}}@media(max-width:390px){.grid-kpis{grid-template-columns:1fr 1fr}.kpi-value{font-size:18px}.kpi-icon{width:26px;height:26px}.filters{gap:6px}.filters .filter{flex:1;min-width:90px}}

.egresos-table tfoot td{background:#f7f9fd;border-top:2px solid #e5eaf2;font-weight:800}.egreso-ratio{font-weight:800;white-space:nowrap}.egreso-ratio-high{color:#b83f51}.egreso-ratio-medium{color:#b07811}.egreso-ratio-low{color:#218a5b}

.branch-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;max-height:240px;overflow-y:auto;padding:10px;background:#f8fafe;border:1px solid #e3e9f4;border-radius:10px}.branch-check{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;padding:9px;border:1px solid #e7ebf3;border-radius:8px;background:#fff;cursor:pointer}.branch-check input{width:16px;height:16px;accent-color:#6277eb;flex-shrink:0}

/* Mobile UX refinements: readable charts, safe areas, scrollable tables, accessible controls */
.dashboard-grid>*,.grid-bottom>*,.two-columns>*,.grid-kpis>*,.panel,.chart-wrap,.form-view,.content{min-width:0}
.table-wrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.chart-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.chart-scroll .chart-svg{display:block}
.topbar>div:first-child{min-width:0}
.breadcrumbs{white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.top-right{flex-shrink:0;min-width:0}
.stat-item{min-width:0}
@media(max-width:780px){
  html{overflow-x:clip}
  body{min-width:0;overflow-x:clip}
  body.mobile-menu-open{overflow:hidden}
  .sidebar{width:min(290px,86vw);left:0;transform:translateX(-105%);transition:transform .22s ease;z-index:41;overflow-y:auto;overscroll-behavior:contain;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .sidebar.open{left:0;transform:translateX(0)}
  .sidebar-overlay.open{z-index:40}
  .topbar{position:sticky;top:0;z-index:15;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));gap:8px}
  .topbar>div:first-child{gap:4px!important}
  .top-right{gap:7px}
  .top-role{font-size:10px;white-space:nowrap}
  .avatar{width:31px;height:31px;flex:none}
  .mobile-menu{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
  .nav-btn,.btn{min-height:44px}
  .main{padding:20px max(13px,env(safe-area-inset-left)) calc(50px + env(safe-area-inset-bottom)) max(13px,env(safe-area-inset-right))}
  .page-header{margin-bottom:18px}
  .page-header .sub{line-height:1.55}
  .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:9px}
  .filters .filter{width:100%;height:44px;max-width:none;min-width:0}
  .filters .filter:first-child{grid-column:1/-1}
  .filter,.field{font-size:16px}
  .form-group label{line-height:1.4}
  .chart-scroll .chart-svg{min-width:680px;width:100%;max-width:none}
  .chart-scroll:before{content:"Desliza para ver toda la gráfica →";position:sticky;left:0;display:block;width:max-content;margin-bottom:9px;color:#8290a2;font-size:11px;font-weight:600}
  .panel{overflow-wrap:break-word}
  .kpi-name,.kpi-foot{line-height:1.45;overflow-wrap:break-word}
  .kpi-value{font-size:clamp(17px,4.9vw,24px);line-height:1.25;letter-spacing:-.7px;overflow-wrap:anywhere}
  .panel-head{flex-wrap:wrap}
  .panel-head>*{min-width:0}
  .stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-wrap:before{content:"Desliza la tabla horizontalmente →";display:block;margin:0 0 7px;font-size:10px;color:#8b9aaf;font-weight:600}
  .table{min-width:max-content}
  .table th,.table td{padding:12px 11px}
  .compact-actions{gap:4px}
  .compact-actions .btn{min-height:40px;white-space:nowrap}
  .form-card{padding:18px 16px}
  .submit-row p{max-width:none;line-height:1.5}
  .modal-backdrop{overflow-y:auto;align-items:flex-start;justify-content:center;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}
  .modal{width:min(540px,100%);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding:20px 17px}
  .modal h2{font-size:18px}
  .modal>p{margin-bottom:17px}
  .modal-actions{position:sticky;bottom:-1px;background:#fff;padding-top:12px;padding-bottom:4px;margin-top:18px}
  .branch-checklist{grid-template-columns:minmax(0,1fr);padding:8px}
  .toast{bottom:calc(14px + env(safe-area-inset-bottom));left:12px;right:12px;max-width:none}
  .auth-layout{padding:16px 12px calc(16px + env(safe-area-inset-bottom))}
}
@media(max-width:520px){
  .filters{grid-template-columns:minmax(0,1fr)}
  .filters .filter:first-child{grid-column:auto}
  .page-header .actions,.page-header .actions .btn{width:100%}
  .grid-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpi{padding:14px 13px;min-height:115px}
  .chart-scroll .chart-svg{min-width:700px}
  .stat-item strong{font-size:16px;overflow-wrap:anywhere}
  .table-wrap{margin-bottom:2px}
}
@media(max-width:355px){
  .grid-kpis{grid-template-columns:minmax(0,1fr)}
  .kpi{min-height:0;padding:15px}
  .kpi-value{font-size:23px}
  .top-right .badge-top{display:none}
  .top-role{display:none}
  .modal-actions{flex-direction:column-reverse;align-items:stretch}
  .modal-actions .btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .sidebar{transition:none}
  .bar-fill{transition:none}
}

/* Primary financial chart: largest and first visual in the admin dashboard */
.financial-hero{margin-bottom:20px;padding:27px 30px 19px;border:1px solid #cfdaee;border-left:4px solid #6074e5;box-shadow:0 9px 28px #203e6b0a;min-width:0}
.financial-hero-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.financial-hero-head>div{min-width:0}
.financial-kicker{font-size:11px;font-weight:800;letter-spacing:1.1px;color:#526cbe;margin-bottom:9px}
.financial-hero h2{font-size:clamp(22px,2.1vw,29px);font-weight:800;line-height:1.25;letter-spacing:-.6px;color:#172b48}
.financial-description{font-size:13px;color:#68788d;margin-top:7px;line-height:1.5}
.financial-period{font-size:12px;font-weight:750;color:#5268ae;border:1px solid #dce4f2;background:#f7f9ff;border-radius:8px;padding:9px 12px;white-space:nowrap}
.financial-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #e7ebf3;border-bottom:1px solid #e7ebf3;padding:21px 0;margin-bottom:18px}
.financial-total{display:flex;flex-direction:column;justify-content:center;gap:7px;min-width:0;padding:2px 25px}
.financial-total:first-child{padding-left:4px}
.financial-total:not(:last-child){border-right:1px solid #e7ebf3}
.financial-total-name{display:flex;align-items:center;gap:8px;color:#617087;font-size:13px;font-weight:800}
.financial-dot{height:11px;width:11px;border-radius:50%;background:#4d63d3;flex:none}
.financial-total-expenses .financial-dot{background:#d77332}
.financial-total-purchases .financial-dot{background:#148c7f}
.financial-total strong{display:block;font:800 clamp(22px,2.3vw,32px)/1.3 Manrope,sans-serif;letter-spacing:-.9px;color:#1a2b45;overflow-wrap:anywhere}
.financial-chart{min-width:0}
.financial-chart .metric-label{font-size:13px;font-weight:700;color:#455773}
.financial-chart .chart-scroll{margin-top:8px}
.financial-chart .chart-svg{width:100%;height:auto}
.financial-note{font-size:11px;color:#8693a6;line-height:1.5;margin-top:11px}
.financial-ranking{margin-bottom:20px}
@media(max-width:780px){
 .financial-hero{padding:20px 16px 16px;margin-bottom:14px}
 .financial-hero-head{gap:9px;flex-wrap:wrap;margin-bottom:15px}
 .financial-hero h2{font-size:23px}
 .financial-period{padding:6px 9px;font-size:11px}
 .financial-totals{padding:15px 0;margin-bottom:12px;gap:0}
 .financial-total{padding:0 9px}
 .financial-total:first-child{padding-left:0}
 .financial-total strong{font-size:clamp(16px,3.6vw,24px)}
 .financial-total-name{font-size:11px}
 .financial-chart .chart-scroll .chart-svg{min-width:850px}
 .financial-ranking{margin-bottom:14px}
}
@media(max-width:520px){
 .financial-totals{grid-template-columns:minmax(0,1fr);gap:10px;padding:13px 0}
 .financial-total{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;padding:0}
 .financial-total:not(:last-child){border-right:0;padding-bottom:10px;border-bottom:1px solid #eef0f5}
 .financial-total strong{font-size:19px;line-height:1.3;text-align:right;overflow-wrap:normal;white-space:nowrap}
 .financial-chart .chart-scroll .chart-svg{min-width:850px}
 .financial-chart .metric-label{font-size:12px}
}

/* Dashboard chart legibility */
.chart-scroll .chart-svg{min-width:1060px;width:100%;max-width:none;height:auto}
.financial-chart .chart-scroll .chart-svg{min-width:1040px}
.chart-scroll{scrollbar-width:thin;scrollbar-color:#b6c5dd #f1f4f9;padding-bottom:7px}
.chart-scroll::-webkit-scrollbar{height:9px}
.chart-scroll::-webkit-scrollbar-thumb{border-radius:999px;background:#b6c5dd}
.chart-scroll::-webkit-scrollbar-track{border-radius:999px;background:#f1f4f9}
.chart-scroll:focus-visible{outline:3px solid #7289e8;outline-offset:4px;border-radius:4px}
.social-charts-panel{padding:27px 30px}
.social-charts-panel .stat-strip{margin-bottom:16px}
.social-charts-panel .stat-item{padding:17px 18px}
.social-charts-panel .stat-item p{font-size:13px;font-weight:700;line-height:1.35}
.social-charts-panel .stat-item strong{font-size:25px}
.social-charts-panel h3{font-size:19px;margin-bottom:4px}
.panel-head h2{font-size:20px;line-height:1.3}
.panel-head p{font-size:13px;line-height:1.5;color:#69788f}
.metric-label{font-size:14px;font-weight:700;flex-wrap:wrap;line-height:1.5}
.metric-dot{height:12px;width:12px}
.bars{gap:24px}
.bar-item{gap:12px}
.bar-item-top,.bar-item-top strong{font-size:15px}
.bar-item-top span{white-space:normal;overflow:visible;text-overflow:clip;max-width:70%;line-height:1.4}
.bar-track{height:15px}
.financial-ranking,.store-performance-panel{padding:26px 30px}
.store-performance-panel .list-item{padding:15px 0}
.financial-chart .metric-label{font-size:15px}
@media(max-width:780px){
  .chart-scroll .chart-svg{min-width:1000px}
  .financial-chart .chart-scroll .chart-svg{min-width:1000px}
  .social-charts-panel,.financial-ranking,.store-performance-panel{padding:19px 16px}
  .social-charts-panel .stat-item strong{font-size:21px}
  .social-charts-panel .stat-item p{font-size:12px}
  .panel-head h2{font-size:19px}
  .panel-head p{font-size:12px}
  .metric-label{font-size:13px}
  .bar-item-top,.bar-item-top strong{font-size:14px}
}
@media(max-width:520px){
  .social-charts-panel .stat-item{padding:14px 12px}
  .social-charts-panel .stat-item strong{font-size:19px}
  .chart-scroll .chart-svg{min-width:1020px}
  .financial-chart .chart-scroll .chart-svg{min-width:1020px}
  .panel-head h2{font-size:18px}
}

/* Readable chart views v2: fluid desktop plots; native-sized phone comparisons */
.chart-scroll .chart-svg,.financial-chart .chart-scroll .chart-svg{
  width:100%;max-width:100%;min-width:0;height:auto;
}
.chart-mobile{display:none}
@media(max-width:780px){
  .chart-scroll{display:none}
  .financial-chart .chart-scroll{display:none}
  .chart-mobile{display:block;margin-top:8px}
  .chart-mobile-help{font-size:12px;font-weight:600;color:#718097;line-height:1.5;margin-bottom:14px}
  .chart-mobile-period{border:1px solid #e2e9f2;border-radius:13px;padding:15px 14px;background:#fafbfd;margin:0 0 13px}
  .chart-mobile-period:last-child{margin-bottom:0}
  .chart-mobile-date{font-size:15px;font-weight:800;color:#243b58;margin:0 0 15px;line-height:1.4}
  .chart-mobile-series{margin:0 0 14px}
  .chart-mobile-series:last-child{margin-bottom:0}
  .chart-mobile-series-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:7px}
  .chart-mobile-series-name{display:flex;align-items:center;gap:8px;min-width:0;color:#41536d;font-size:13px;line-height:1.3;font-weight:700}
  .chart-mobile-series-head strong{font-family:Manrope,'DM Sans',sans-serif;font-size:17px;font-weight:800;color:#172b45;white-space:nowrap;letter-spacing:-.4px}
  .chart-mobile-dot{display:inline-block;flex:none;width:11px;height:11px;border-radius:50%}
  .chart-mobile-track{width:100%;height:12px;background:#e8edf4;overflow:hidden;border-radius:99px}
  .chart-mobile-fill{height:100%;display:block;border-radius:99px;min-width:0}
  .financial-hero .chart-mobile-series-head strong{font-size:19px}
  .social-charts-panel .metric-label,.financial-chart .metric-label{margin-bottom:12px}
  .chart-mobile .empty{padding:20px}
  .social-charts-panel h3{font-size:18px}
}
@media(max-width:390px){
  .chart-mobile-period{padding:13px 11px}
  .chart-mobile-series-head strong{font-size:16px}
  .financial-hero .chart-mobile-series-head strong{font-size:17px}
  .chart-mobile-series-name{font-size:12px}
}
