/* RED-20 report dashboard. Scoped so Classic keeps its original layout. */
.red20-glass-dashboard {
    --rp-bg: #06182a; --rp-panel: #0b2339; --rp-panel-2: #102b45;
    --rp-border: #285475; --rp-ink: #edf8ff; --rp-muted: #9cb3c8;
    --rp-mint: #58e8cd; --rp-blue: #78b8ff; --rp-violet: #b18bff;
    --rp-coral: #ff7791; --rp-shadow: 0 10px 32px rgba(0, 7, 21, .15);
    background: var(--rp-bg); color: var(--rp-ink);
}
.red20-glass-dashboard.red20-report-light {
    --rp-bg: #edf5fa; --rp-panel: #fff; --rp-panel-2: #f3f8fc;
    --rp-border: #d4e4ed; --rp-ink: #142b3e; --rp-muted: #647d90;
    --rp-mint: #008c78; --rp-blue: #2e6fc3; --rp-violet: #7452b4;
    --rp-coral: #cf4960; --rp-shadow: 0 8px 24px rgba(28, 60, 84, .08);
}
.red20-glass-dashboard .content-wrapper.red20-report-wrap {
    background: var(--rp-bg) !important; background-image: none !important;
    color: var(--rp-ink); min-height: calc(100vh - 58px);
}
.red20-glass-dashboard .content-wrapper.red20-report-wrap > .content > .container-fluid.red20-report {
    padding: 26px 28px 54px !important; max-width: 1800px; width: 100%; min-width: 0; margin: auto;
}
.red20-glass-dashboard .main-sidebar { background: #071c30 !important; border-right: 1px solid #214360; }
.red20-glass-dashboard .main-sidebar .brand-link { background: #071c30; border-bottom: 1px solid #214360; }
.red20-glass-dashboard .main-sidebar .brand-text { color: #58e8cd; }
.red20-glass-dashboard .main-sidebar .nav-sidebar .nav-link,
.red20-glass-dashboard .main-sidebar .nav-sidebar .nav-link p,
.red20-glass-dashboard .main-sidebar .nav-sidebar .nav-link .nav-icon { color: #c1d5e7 !important; }
.red20-glass-dashboard .main-sidebar .nav-sidebar .nav-link.active,
.red20-glass-dashboard .main-sidebar .nav-sidebar .nav-link:hover { background: #12364f !important; box-shadow: none !important; }
.red20-glass-dashboard .main-header { background: #0b2339; border-color: #214360; }
.red20-glass-dashboard .main-header .nav-link { color: #d9effa !important; }
.red20-glass-dashboard .main-header .red20-profile-trigger { background: #17364d; border-color: #2a526d; }
.red20-glass-dashboard.red20-report-light .main-sidebar { background: #e7f2f7 !important; border-color: #c8e0eb; }
.red20-glass-dashboard.red20-report-light .main-sidebar .brand-link { background: #e7f2f7; border-color: #c8e0eb; }
.red20-glass-dashboard.red20-report-light .main-sidebar .brand-text { color: #126d78; }
.red20-glass-dashboard.red20-report-light .main-sidebar .nav-sidebar .nav-link,
.red20-glass-dashboard.red20-report-light .main-sidebar .nav-sidebar .nav-link p,
.red20-glass-dashboard.red20-report-light .main-sidebar .nav-sidebar .nav-link .nav-icon { color: #284558 !important; }
.red20-glass-dashboard.red20-report-light .main-sidebar .nav-sidebar .nav-link.active,
.red20-glass-dashboard.red20-report-light .main-sidebar .nav-sidebar .nav-link:hover { background: #cce9eb !important; }
.red20-glass-dashboard.red20-report-light .main-sidebar .nav-sidebar .nav-link.active p,
.red20-glass-dashboard.red20-report-light .main-sidebar .nav-sidebar .nav-link.active .nav-icon { color: #145566 !important; }
.red20-glass-dashboard.red20-report-light .main-header { background: #fff; border-color: #d7e5ed; }
.red20-glass-dashboard.red20-report-light .main-header .nav-link { color: #284558 !important; }
.red20-glass-dashboard.red20-report-light .main-header .red20-profile-trigger { background: #e7f2f7; border-color: #d4e4ed; }
.red20-report * { box-sizing: border-box; }
.red20-report h1, .red20-report h2, .red20-report p { color: inherit; }
.red20-report button, .red20-report input, .red20-report select { font: inherit; }
.report-header, .report-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.report-header { margin-bottom: 20px; }
.report-eyebrow { display: block; font-size: 10px; letter-spacing: .15em; font-weight: 800; color: var(--rp-mint); }
.report-header h1 { font-size: clamp(26px, 2.4vw, 38px); font-weight: 800; margin: 3px 0 2px; }
.report-header p { margin: 0; color: var(--rp-muted); }
.report-theme, .report-filter button, .report-pager button {
    color: var(--rp-ink); background: var(--rp-panel-2); border: 1px solid var(--rp-border);
    border-radius: 10px; padding: 8px 12px; cursor: pointer;
}
.report-theme { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.report-theme:hover, .report-pager button:not(:disabled):hover { border-color: var(--rp-mint); }
.report-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--rp-panel); border: 1px solid var(--rp-border); border-radius: 14px; padding: 12px; margin-bottom: 15px; box-shadow: var(--rp-shadow); }
.report-preset { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--rp-panel-2); }
.report-filter .report-preset button { border: 0; background: transparent; padding: 7px 12px; }
.report-filter .report-preset button.active, .report-filter .report-apply { color: #062638; background: #58e8cd; border-color: #58e8cd; font-weight: 800; }
.report-filter label { display: inline-flex; align-items: center; gap: 6px; color: var(--rp-muted); margin: 0; font-size: 13px; }
.report-filter input, .report-order-filters input, .report-order-filters select { background: var(--rp-panel-2); color: var(--rp-ink); border: 1px solid var(--rp-border); border-radius: 9px; padding: 7px 9px; }
.report-filter input { max-width: 150px; color-scheme: dark; }
.red20-report-light .report-filter input { color-scheme: light; }
.report-filter-note, .report-muted, .report-footnote { color: var(--rp-muted); font-size: 12px; }
.report-filter-note { margin-left: auto; }
.red20-report .report-card { background: var(--rp-panel) !important; color: var(--rp-ink) !important; border: 1px solid var(--rp-border) !important; border-radius: 15px; box-shadow: var(--rp-shadow); padding: 18px; overflow: hidden; }
.report-card + .report-card { margin: 0; }
.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.red20-report .report-kpi { min-height: 145px; background: linear-gradient(125deg, var(--rp-panel), var(--rp-panel-2)) !important; }
.report-kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.report-icon { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--rp-border); border-radius: 9px; color: var(--rp-mint); }
.report-kpi .report-label { color: var(--rp-muted); font-size: 13px; }
.report-kpi strong { display: block; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.04em; white-space: nowrap; }
.report-kpi small { color: var(--rp-muted); }
.report-kpi-total { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--rp-border); color: var(--rp-muted); font-size: 12px; }
.report-kpi-total b { color: var(--rp-ink); font-size: 14px; }
.report-delta { display: inline-block; border-radius: 15px; padding: 3px 7px; font-weight: 800; font-size: 11px; white-space: nowrap; }
.report-delta.up { color: #58e8cd; background: rgba(49, 215, 183, .12); }
.report-delta.down { color: #ff7791; background: rgba(255, 110, 140, .12); }
.report-delta.flat { color: var(--rp-muted); background: var(--rp-panel-2); }
.red20-report-light .report-delta.up { color: #087e67; }
.red20-report-light .report-delta.down { color: #bd3b59; }
.report-section-head { margin-bottom: 13px; }
.report-section-head h2 { font-size: 17px; font-weight: 750; margin: 2px 0 0; }
.report-trends { margin-bottom: 14px; }
.report-legend { display: flex; gap: 14px; color: var(--rp-muted); font-size: 12px; }
.report-legend span:before { content: ''; display: inline-block; width: 13px; height: 3px; vertical-align: middle; margin-right: 6px; background: var(--rp-mint); }
.report-legend .previous:before { background: repeating-linear-gradient(90deg, var(--rp-violet) 0 3px, transparent 3px 5px); }
.report-trend-row { display: grid; grid-template-columns: minmax(145px, 190px) minmax(160px, 1fr) minmax(140px, 250px); align-items: center; gap: 18px; border-top: 1px solid var(--rp-border); padding: 9px 0; min-height: 96px; }
.report-trend-caption b { display: block; font-size: 13px; color: var(--rp-muted); }
.report-trend-caption strong { display: inline-block; font-size: 22px; margin-right: 8px; }
.report-line { height: 75px; min-width: 0; }
.report-line svg { width: 100%; max-width: 100%; height: 100%; }
.report-gridline { stroke: var(--rp-border); stroke-width: 1; stroke-dasharray: 3 4; }
.report-mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; border-bottom: 1px solid var(--rp-border); }
.report-mini-bar { display: block; flex: 1; min-width: 3px; border-radius: 3px 3px 0 0; opacity: .8; }
.report-footnote { margin: 9px 0 0; }
.report-two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .85fr); gap: 14px; margin-bottom: 14px; }
.report-right-stack { display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.report-three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.report-table-scroll { width: 100%; overflow-x: auto; }
.report-table { border-collapse: collapse; width: 100%; color: var(--rp-ink); font-size: 12px; }
.report-table th { text-align: left; color: var(--rp-muted); font-weight: 700; font-size: 11px; white-space: nowrap; }
.report-table td, .report-table th { border-bottom: 1px solid var(--rp-border); padding: 8px 9px; }
.report-table tr:last-child td { border-bottom: 0; }
.report-table tbody tr:hover { background: var(--rp-panel-2); }
.report-table .report-delta { padding: 1px 5px; }
.report-actions { display: grid; gap: 8px; }
.report-actions a { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--rp-border); border-radius: 9px; color: var(--rp-ink) !important; background: var(--rp-panel-2); }
.report-actions a, .report-actions a:hover { text-decoration: none !important; }
.report-actions a:hover { border-color: var(--rp-mint); }
.report-actions a > span:nth-child(2) { flex: 1; font-size: 12px; }
.report-actions small { display: block; color: var(--rp-muted); font-size: 10px; }
.report-actions b { white-space: nowrap; font-size: 15px; }
.report-action-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.report-action-icon.amber { color: #ffd68e; background: #6c5027; }
.report-action-icon.mint { color: #58e8cd; background: #164d49; }
.report-action-icon.violet { color: #b18bff; background: #403763; }
.report-action-icon.coral { color: #ff7791; background: #64384a; }
.report-statuses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px; }
.report-statuses > div { display: flex; align-items: center; gap: 7px; padding: 5px 0; font-size: 12px; }
.report-statuses strong { margin-left: auto; }
.report-status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.report-status-dot.amber { background: #ffcb76; } .report-status-dot.blue { background: #76aaff; }
.report-status-dot.violet { background: #a785f3; } .report-status-dot.cyan { background: #6bdbec; }
.report-status-dot.mint { background: #55e1b9; } .report-status-dot.coral { background: #ff8794; }
.report-status-dot.rose { background: #d668ad; }
.report-area { margin: 12px 0; }
.report-area > div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.report-area b { white-space: nowrap; }
.report-track { display: block; height: 6px; background: var(--rp-panel-2); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.report-track i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--rp-blue), var(--rp-mint)); }
.report-orders .report-order-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 5px 0 14px; }
.report-order-filters input { width: min(100%, 310px); }
.report-order-filters select { min-width: 190px; }
.report-orders-table { min-width: 1900px; }
.report-orders-table th, .report-orders-table td { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.report-orders-table .report-long-cell { max-width: 230px; }
.red20-report .report-view-link { color: var(--rp-mint) !important; font-weight: 750; }
.report-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; font-size: 12px; color: var(--rp-muted); }
.report-pager > div { display: flex; gap: 6px; }
.report-pager button:disabled { opacity: .45; cursor: default; }
@media (max-width: 1200px) { .report-three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report-three-col > :last-child { grid-column: span 2; } }
@media (max-width: 900px) { .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report-two-col { grid-template-columns: 1fr; } .report-three-col { grid-template-columns: 1fr; } .report-three-col > :last-child { grid-column: auto; } }
@media (max-width: 620px) {
    .red20-glass-dashboard .content-wrapper.red20-report-wrap > .content > .container-fluid.red20-report { padding: 15px 12px 32px !important; }
    .report-header { align-items: flex-start; } .report-header h1 { font-size: 25px; } .report-header p { font-size: 12px; }
    .report-theme span { display: none; } .report-kpis { gap: 8px; } .red20-report .report-kpi { padding: 13px; min-height: 130px; }
    .report-kpi strong { font-size: 22px; white-space: normal; } .report-trend-row { grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 5px; }
    .report-mini-bars { height: 35px; } .report-legend { display: none; } .report-filter-note { width: 100%; }
}
