/* v211: report layout with the shared application visual tokens. */
body #app #view-reports{--rx-ink:var(--text,#263D42);--rx-muted:var(--muted,#7D8885);--rx-accent:var(--module-strong,#946000);--rx-bright:var(--module-accent,#D99000);--rx-soft:var(--module-soft,#F7ECD5);--rx-line:var(--line,#E5E8E1);--rx-surface:var(--panel,#fff);color:var(--rx-ink)}
body #app #view-reports *{box-sizing:border-box}
body #app #view-reports>.heading{display:none!important}
body #app #view-reports .rx-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px}
body #app #view-reports .rx-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:var(--rx-muted)}
body #app #view-reports .rx-heading h1{font-size:32px;font-weight:700;letter-spacing:-1px;line-height:1.2;margin:7px 0 9px;color:var(--rx-ink)}
body #app #view-reports .rx-heading p{font-size:13px;line-height:1.65;margin:0;color:var(--rx-muted)}
body #app #view-reports .rx-period-meta{text-align:right;max-width:340px}
body #app #view-reports .rx-period-meta strong{display:block;font-size:13px;font-weight:650;color:var(--rx-ink)}
body #app #view-reports .rx-period-meta p{font-size:10px;margin-top:7px}
body #app #view-reports .period-filter{display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:14px;padding:18px 20px!important;margin:0 0 20px!important;background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:14px!important;box-shadow:0 3px 12px #33281e03}
body #app #view-reports .period-filter .field{flex:0 1 200px!important;min-width:140px!important;max-width:260px!important;margin:0!important;gap:7px!important}
body #app #view-reports .period-filter .field label{font-size:11px!important;font-weight:600;color:var(--rx-muted)!important}
body #app #view-reports .period-filter .field input,body #app #view-reports .period-filter .field select{width:100%;height:43px!important;min-height:43px!important;border:1px solid var(--rx-line)!important;border-radius:8px!important;background:#fff!important;color:var(--rx-ink)!important;font-size:12px!important;padding:9px 12px!important}
body #app #view-reports #reportMonthBox{flex-basis:260px!important}
body #app #view-reports .month-select-row{display:flex;gap:8px;width:100%}
body #app #view-reports .month-select-row select{min-width:0;flex:1}
body #app #view-reports .period-filter>.small-btn{height:43px;padding:10px 14px;border:1px solid var(--rx-line);border-radius:8px;background:var(--rx-soft);color:var(--rx-accent);font-size:12px}
body #app #view-reports .rx-export{margin-left:auto;flex:0 0 auto}
body #app #view-reports #downloadPeriodReportBtn{height:43px;min-height:43px;margin:0;padding:10px 19px;border:1px solid var(--rx-accent)!important;border-radius:9px;background:var(--rx-accent)!important;color:#fff!important;font-size:12px;font-weight:650}
body #app #view-reports #reportExportHint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body #app #view-reports .rx-tabs{display:flex;gap:5px;flex-wrap:wrap;width:fit-content;max-width:100%;padding:0;margin:0 0 22px;border:0;border-radius:9px;background:transparent}
body #app #view-reports .rx-tabs button{min-height:40px;border:0;border-radius:8px;padding:10px 23px;background:var(--rx-surface);color:var(--rx-muted);font:600 12px Montserrat,Arial,sans-serif;cursor:pointer}
body #app #view-reports .rx-tabs button[aria-pressed=true]{background:var(--rx-accent);color:#fff;box-shadow:0 3px 8px #39291b12}
body #app #view-reports [data-rx-panel][hidden],body #app #view-reports .rx-tabs button[hidden]{display:none!important}
body #app #view-reports .rx-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
body #app #view-reports .rx-kpi{display:flex;align-items:flex-start;gap:13px;min-width:0;padding:22px 20px;background:var(--rx-surface);border:1px solid var(--rx-line);border-radius:14px;box-shadow:0 4px 16px #39291b03}
body #app #view-reports .rx-kpi-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;background:var(--rx-soft);color:var(--rx-accent);border-radius:11px;font-size:23px}
body #app #view-reports .rx-kpi>div{min-width:0}
body #app #view-reports .rx-kpi>div>span{font-size:11px;line-height:1.5;color:var(--rx-muted)}
body #app #view-reports .rx-kpi strong{display:block;margin:10px 0 7px;font-size:clamp(22px,1.8vw,29px);line-height:1.2;letter-spacing:-.7px;font-weight:600;color:var(--rx-ink);font-variant-numeric:tabular-nums}
body #app #view-reports .rx-kpi small{display:block;font-size:10px;line-height:1.65;color:var(--rx-muted)}
body #app #view-reports .rx-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:stretch}
body #app #view-reports .card{width:100%!important;max-width:none!important;min-width:0;padding:24px!important;margin:0;background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:14px!important;box-shadow:0 5px 18px #39291b03}
body #app #view-reports>article[data-rx-panel]{display:block;width:100%!important;grid-column:1/-1;margin:0!important}
body #app #view-reports>article[data-rx-panel][hidden]{display:none!important}
body #app #view-reports .rx-recent{margin-top:22px}
body #app #view-reports .rx-cardhead,body #app #view-reports .cardhead{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:22px}
body #app #view-reports .rx-cardhead h2,body #app #view-reports .cardhead h2{font-size:17px;font-weight:700;line-height:1.4;margin:0;color:var(--rx-ink)}
body #app #view-reports .rx-cardhead p,body #app #view-reports .cardhead p{font-size:11px;line-height:1.6;margin:6px 0 0;color:var(--rx-muted)}
body #app #view-reports .rx-cardhead button{min-height:36px;padding:0;border:0;background:transparent;color:var(--rx-accent);font:650 11px Montserrat,Arial,sans-serif;white-space:nowrap;cursor:pointer}
body #app #view-reports .tablewrap,body #app #view-reports .rx-ranking-wrap{width:100%;overflow-x:auto}
body #app #view-reports table{display:table;width:100%;border-collapse:collapse;background:transparent}
body #app #view-reports table thead{display:table-header-group}
body #app #view-reports table tbody{display:table-row-group}
body #app #view-reports table tr{display:table-row;position:static;background:transparent;margin:0;padding:0;box-shadow:none;border:0}
body #app #view-reports table th,body #app #view-reports table td{display:table-cell;float:none;position:static;padding:14px 12px;vertical-align:middle;border:0;border-bottom:1px solid var(--rx-line);background:transparent!important;color:var(--rx-ink)!important;font-size:12px!important;line-height:1.65;letter-spacing:0!important;text-transform:none!important;text-align:left;font-weight:400;white-space:normal}
body #app #view-reports table thead th{font-size:10px!important;font-weight:650!important;color:var(--rx-muted)!important;background:var(--panel2,#F7F5F0)!important;padding:10px 12px}
body #app #view-reports table tbody tr:last-child>td{border-bottom:0}
body #app #view-reports table th::before,body #app #view-reports table td::before{content:none!important;display:none!important}
body #app #view-reports table strong,body #app #view-reports table b{color:var(--rx-ink)!important}
body #app #view-reports .rx-ranking{table-layout:fixed}
body #app #view-reports .rx-col-rank{width:37px}body #app #view-reports .rx-col-qty{width:74px}body #app #view-reports .rx-col-money{width:94px}
body #app #view-reports .rx-ranking td,body #app #view-reports .rx-ranking th{padding:15px 8px}
body #app #view-reports .rx-ranking .rx-product-name{font-weight:600!important;overflow-wrap:anywhere}
body #app #view-reports .rx-ranking tr>:first-child{padding-left:8px}
body #app #view-reports .rx-ranking tr>:nth-child(3),body #app #view-reports .rx-ranking tr>:nth-child(4){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
body #app #view-reports .rx-ranking tbody td:last-child{font-weight:700}
body #app #view-reports .rx-rank{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:var(--rx-soft);color:var(--rx-accent);font-size:10px;font-weight:700}
body #app #view-reports #rxRecent table{min-width:560px}
body #app #view-reports #rxRecent th:last-child,body #app #view-reports #rxRecent td:last-child{text-align:right;white-space:nowrap}
body #app #view-reports #rxChart{position:relative;padding-left:54px;margin-top:28px}
body #app #view-reports .rx-chart-scale{position:absolute;left:0;top:0;height:210px;display:flex;flex-direction:column;justify-content:space-between;max-width:50px;font-size:9px;color:var(--rx-muted)}
body #app #view-reports .rx-bars{display:flex;gap:5px;min-height:240px;padding-bottom:8px;align-items:stretch;border-bottom:1px solid var(--rx-line);background:repeating-linear-gradient(to top,transparent 0,transparent 68px,var(--rx-line) 69px,transparent 70px)}
body #app #view-reports .rx-bar-column{flex:1 1 0;min-width:0;text-align:center}
body #app #view-reports .rx-bar-track{height:210px;display:flex;align-items:flex-end;justify-content:center}
body #app #view-reports .rx-bar{width:82%;max-width:34px;background:var(--rx-accent);border-radius:4px 4px 0 0}
body #app #view-reports .rx-negative{background:#b9684d}
body #app #view-reports .rx-bar-column>small{display:block;visibility:hidden;position:relative;left:50%;transform:translateX(-50%);width:44px;font-size:9px;line-height:1.5;color:var(--rx-muted);white-space:nowrap;margin-top:9px}
body #app #view-reports .rx-tick>small{visibility:visible}
body #app #view-reports .rx-bar-column:first-child>small{left:0;transform:none;text-align:left}
body #app #view-reports .rx-bar-column:last-child>small{left:auto;right:0;float:right;transform:none;text-align:right}
body #app #view-reports .rx-bar-tip{display:none}
body #app #view-reports .rx-chart-data{font-size:10px;margin-top:15px;color:var(--rx-muted)}
body #app #view-reports .rx-chart-data summary{padding:8px 0;cursor:pointer}
body #app #view-reports .rx-chart-data>div{max-height:220px;overflow:auto}
body #app #view-reports .rx-chart-data p{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid var(--rx-line)}
body #app #view-reports .rx-empty{padding:30px 16px;line-height:1.8;text-align:center;color:var(--rx-muted);font-size:13px}
body #app #view-reports .rx-empty small{display:block;font-size:11px;margin-top:8px}
body #app #view-reports .rx-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body #app #view-reports #productReport .row{padding:18px 0;align-items:center;gap:20px;border-color:var(--rx-line);font-size:13px;color:var(--rx-ink)}
body #app #view-reports #productReport .row>b{white-space:nowrap;color:var(--rx-ink)}
body #app #view-reports #rxFinance .stats{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
body #app #view-reports #rxFinance .stat{background:var(--rx-surface);border:1px solid var(--rx-line);border-radius:14px;padding:22px}
body #app #view-reports #rxFinance .stat strong{color:var(--rx-ink)}
body #app #view-reports #rxFinance .client-finance-details{margin-top:22px;color:var(--rx-ink)}
body #app #view-reports button:focus-visible,body #app #view-reports select:focus-visible,body #app #view-reports input:focus-visible{outline:3px solid var(--rx-bright);outline-offset:3px}
@media(max-width:1150px){body #app #view-reports .rx-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body #app #view-reports .rx-grid{grid-template-columns:1fr}}
@media(max-width:700px){body #app #view-reports .rx-heading{align-items:flex-start;flex-direction:column;gap:12px}body #app #view-reports .rx-period-meta{text-align:left}body #app #view-reports .rx-heading h1{font-size:27px}body #app #view-reports .period-filter{gap:12px;padding:16px!important}body #app #view-reports .period-filter .field{flex:1 1 125px!important;min-width:0!important;max-width:none!important}body #app #view-reports #reportMonthBox{flex-basis:210px!important}body #app #view-reports .rx-export{margin-left:0}body #app #view-reports .rx-tabs{width:100%;gap:3px}body #app #view-reports .rx-tabs button{flex:1;padding:10px 9px}body #app #view-reports .rx-metrics{gap:10px}body #app #view-reports .rx-kpi{padding:17px 14px;flex-direction:column;gap:10px}body #app #view-reports .rx-kpi strong{font-size:23px}body #app #view-reports .card{padding:18px!important}body #app #view-reports .rx-col-rank{width:30px}body #app #view-reports .rx-col-qty{width:56px}body #app #view-reports .rx-col-money{width:78px}body #app #view-reports .rx-ranking th,body #app #view-reports .rx-ranking td{padding:13px 5px;font-size:11px!important}body #app #view-reports .rx-ranking thead th{font-size:9px!important}body #app #view-reports .rx-cardhead h2{font-size:16px}body #app #view-reports .rx-bars{gap:3px}body #app #view-reports #rxChart{padding-left:45px}}
@media(prefers-reduced-motion:reduce){body #app #view-reports *{transition:none!important}}

/* Match the white cards, quiet borders and numeric weight of Resumen. */
body #app #view-reports .rx-kpi,body #app #view-reports .card{border-color:transparent!important;box-shadow:none}
body #app #view-reports .rx-tabs{gap:8px}
body #app #view-reports .rx-heading h1{font-weight:600}
body #app #view-reports .rx-kpi strong{font-weight:600!important}
