@layer features {
  .reports-page { display:grid; gap:var(--cx-space-5); }
  .reports-tabs {
    display:flex; align-items:center; gap:.65rem; overflow:auto; padding:.65rem;
    border:1px solid var(--cx-border); border-radius:var(--cx-radius-xl); background:var(--cx-panel-bg); box-shadow:var(--cx-shadow-soft);
  }
  .reports-tab {
    border:1px solid transparent; border-radius:999px; background:transparent; color:var(--cx-muted); padding:.72rem 1rem;
    cursor:pointer; font-weight:950; white-space:nowrap; transition:background var(--cx-transition), color var(--cx-transition), border-color var(--cx-transition), transform var(--cx-transition);
  }
  .reports-tab:hover { color:var(--cx-text); background:var(--cx-sem-neutral-soft); }
  .reports-tab.is-active { color:var(--cx-brand-strong); background:var(--cx-brand-soft); border-color:color-mix(in srgb, var(--cx-brand-accent) 25%, var(--cx-border)); box-shadow:inset 0 -2px 0 var(--cx-brand-accent); }
  .reports-insights-card .cx-card-body { padding:var(--cx-space-4); }
  .reports-alert-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:var(--cx-space-4); }
  .reports-alert {
    display:flex; justify-content:space-between; gap:var(--cx-space-3); min-height:118px; padding:var(--cx-space-4);
    border:1px solid var(--cx-border); border-radius:var(--cx-radius-lg); background:var(--cx-surface); box-shadow:var(--cx-shadow-soft);
  }
  .reports-alert h3 { margin:.55rem 0 .3rem; font-size:1rem; color:var(--cx-text); }
  .reports-alert p { margin:0; color:var(--cx-muted); line-height:1.7; font-weight:750; }
  .reports-alert strong { align-self:flex-start; color:var(--cx-text); font-size:1.05rem; }
  .reports-alert[data-severity="danger"] { border-color:color-mix(in srgb, var(--cx-sem-loss) 28%, var(--cx-border)); background:var(--cx-sem-loss-soft); }
  .reports-alert[data-severity="warning"] { border-color:color-mix(in srgb, var(--cx-sem-cost) 28%, var(--cx-border)); background:var(--cx-sem-cost-soft); }
  .reports-alert[data-severity="ok"] { border-color:color-mix(in srgb, var(--cx-sem-profit) 24%, var(--cx-border)); background:var(--cx-sem-profit-soft); }
  .reports-detail-modal pre { max-height:62vh; overflow:auto; direction:ltr; text-align:left; white-space:pre-wrap; }
  @media (max-width: 760px) {
    .reports-tabs { padding:.5rem; gap:.45rem; }
    .reports-tab { padding:.62rem .78rem; font-size:.9rem; }
    .reports-alert { min-height:unset; flex-direction:column; }
  }
}

@layer features {
  .reports-metric-grid .reports-metric-card { position:relative; }
  .reports-metric-link {
    border:0; background:transparent; color:inherit; font:inherit; font-weight:1000; cursor:pointer;
    padding:0; border-radius:.7rem; text-align:inherit; line-height:1.2; text-decoration:none;
  }
  .reports-metric-link:hover,
  .reports-metric-link:focus-visible { color:var(--cx-brand-strong); outline:2px solid color-mix(in srgb, var(--cx-brand-accent) 30%, transparent); outline-offset:4px; }
  .reports-decision-grid { grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); }
  .reports-decision { align-items:stretch; min-height:190px; }
  .reports-decision-main { display:grid; gap:.45rem; }
  .reports-decision-main p { margin:0; }
  .reports-decision-main b { color:var(--cx-text); }
  .reports-decision-side { display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between; gap:var(--cx-space-3); min-width:110px; }
  .reports-decision-side strong { font-size:1.25rem; }
  .reports-detail-modal .cx-modal-body { padding:0; }
  .reports-detail-layout { display:grid; gap:var(--cx-space-4); padding:var(--cx-space-5); }
  .reports-detail-layout .cx-table-wrap { max-height:min(54vh, 560px); overflow:auto; }
  .reports-detail-layout .cx-table thead th { position:sticky; top:0; z-index:1; }
  .reports-executive-card .cx-card-body { padding:var(--cx-space-4); }
  .reports-page .cx-table td .reports-metric-link { width:100%; text-align:inherit; }
  .reports-page .cx-table td .reports-metric-link::after { content:' ↗'; font-size:.78em; opacity:.55; }
  @media (max-width: 760px) {
    .reports-decision { min-height:unset; }
    .reports-decision-side { align-items:flex-start; }
    .reports-detail-layout { padding:var(--cx-space-3); }
  }
}

/* phase35ap css load hotfix */

@layer features {
  .reports-page .reports-tabs {
    display:flex; align-items:center; gap:.65rem; overflow:auto; padding:.65rem;
    border:1px solid var(--cx-border); border-radius:var(--cx-radius-xl);
    background:var(--cx-panel-bg); box-shadow:var(--cx-shadow-soft);
  }
  .reports-page .reports-tab,
  .reports-page .reports-metric-link {
    appearance:none; -webkit-appearance:none; border:0; background:transparent;
    box-shadow:none; margin:0; font-family:inherit; color:inherit;
  }
  .reports-page .reports-tab {
    border:1px solid transparent; border-radius:999px; color:var(--cx-muted);
    padding:.72rem 1rem; cursor:pointer; font-weight:950; white-space:nowrap;
  }
  .reports-page .reports-tab:hover { color:var(--cx-text); background:var(--cx-sem-neutral-soft); }
  .reports-page .reports-tab.is-active {
    color:var(--cx-brand-strong); background:var(--cx-brand-soft);
    border-color:color-mix(in srgb, var(--cx-brand-accent) 25%, var(--cx-border));
    box-shadow:inset 0 -2px 0 var(--cx-brand-accent);
  }
  .reports-page .reports-metric-link {
    display:inline; width:auto; min-width:0; min-height:0; padding:0;
    font-size:inherit; font-weight:inherit; line-height:inherit; text-align:inherit;
    cursor:pointer; border-radius:.55rem; text-decoration:none;
  }
  .reports-page .cx-kpi-value .reports-metric-link {
    font-size:inherit; font-weight:inherit; color:inherit;
  }
  .reports-page .reports-metric-link:hover,
  .reports-page .reports-metric-link:focus-visible {
    color:var(--cx-brand-strong); outline:2px solid color-mix(in srgb, var(--cx-brand-accent) 28%, transparent); outline-offset:3px;
  }
}

/* phase40a Cost Control Center inside reports */
@layer features {
  .cost-control-page { display: grid; gap: var(--cx-space-4); }
  .cost-control-page .cx-page-header { padding: var(--cx-space-4); }
  .cost-control-page .cx-page-header h1 { font-size: clamp(1.35rem, 2.35vw, 2rem); }
  .cost-source-strip .cx-card-body { padding: var(--cx-space-3); flex-wrap: wrap; }
  .cost-control-kpis { gap: var(--cx-space-3); }
  .cost-control-kpis .cx-kpi { transition: transform var(--cx-transition), box-shadow var(--cx-transition), border-color var(--cx-transition); }
  .cost-control-kpis .cx-kpi:hover,
  .cost-control-kpis .cx-kpi:focus-visible { transform: translateY(-1px); box-shadow: var(--cx-shadow-card); outline: 2px solid color-mix(in srgb, var(--cx-brand-accent) 28%, transparent); outline-offset: 2px; }
  .cost-control-tabs { padding: .45rem; gap: .45rem; }
  .cost-control-tabs .reports-tab { padding: .55rem .78rem; font-size: .86rem; }
  .cost-control-page .cx-table tbody tr[data-clickable="true"] { cursor: pointer; }
}

/* phase40a3 Cost Control card details use the global modal system, not custom drawers. */
@layer features {
  .cost-control-detail-modal { width: min(1100px, 100%); }
  .cost-control-detail-modal .cx-modal-body { padding: 0; overflow: hidden; }
  .cost-detail-modal-layout {
    display: grid;
    gap: var(--cx-space-4);
    padding: var(--cx-space-5);
    max-height: calc(88vh - 92px);
    overflow: auto;
  }
  .cost-detail-hero .cx-card-body { padding: var(--cx-space-4); }
  .cost-detail-hero h3 { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--cx-text); }
  .cost-detail-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--cx-space-3); }
  .cost-detail-chip .cx-card-body { padding: var(--cx-space-3); display: grid; gap: .25rem; }
  .cost-detail-chip strong { color: var(--cx-text); font-size: 1rem; overflow-wrap: anywhere; }
  .cost-detail-table-card { min-width: 0; overflow: hidden; }
  .cost-detail-table-card > .cx-card-body { padding: 0; }
  .cost-detail-table-card .cx-table-wrap { max-height: 54vh; overflow: auto; }
  .cost-detail-table-card .cx-table thead th { position: sticky; top: 0; z-index: 2; }
  .cost-control-detail-modal .cx-table { font-size: .88rem; }
  .cost-control-detail-modal .cx-table th,
  .cost-control-detail-modal .cx-table td { white-space: nowrap; }
  @media (max-width: 720px) {
    .cost-detail-modal-layout { padding: var(--cx-space-3); max-height: calc(100vh - 84px); }
    .cost-detail-summary { grid-template-columns: 1fr; }
    .cost-detail-table-card .cx-table-wrap { max-height: 48vh; }
  }
}

/* phase42 financial centers formula + insight UI polish */
@layer features {
  .financial-center-page .cx-kpi,
  .cost-control-page .cx-kpi { cursor:pointer; }
  .financial-center-page .cx-kpi:focus-visible,
  .cost-control-page .cx-kpi:focus-visible { outline:3px solid color-mix(in srgb, var(--cx-brand-accent) 34%, transparent); outline-offset:3px; }
  .financial-center-detail-modal .cx-table-wrap,
  .cost-control-detail-modal .cx-table-wrap { max-height:min(54vh, 560px); overflow:auto; }
  .financial-center-detail-modal .cx-table th,
  .cost-control-detail-modal .cx-table th { top:0; z-index:2; }
  .financial-center-detail-modal .cx-table td,
  .cost-control-detail-modal .cx-table td { vertical-align:middle; }
  .financial-center-page .cx-table tbody tr[data-row-semantic="danger"] { box-shadow:inset 4px 0 0 color-mix(in srgb, var(--cx-sem-loss) 65%, transparent); }
  .financial-center-page .cx-table tbody tr[data-row-semantic="profit"] { box-shadow:inset 4px 0 0 color-mix(in srgb, var(--cx-sem-profit) 55%, transparent); }
  .cost-detail-modal-layout { padding:0; max-height:none; overflow:visible; }
}

/* phase42c financial human labels + summary statement polish */
@layer features {
  .financial-summary-mini {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:var(--cx-space-3);
    margin-block-end:var(--cx-space-4);
  }
  .financial-summary-mini article {
    padding:var(--cx-space-4);
    border:1px solid color-mix(in srgb, var(--cx-brand-accent) 18%, var(--cx-border));
    border-radius:var(--cx-radius-xl);
    background:linear-gradient(135deg, rgba(255,255,255,.92), color-mix(in srgb, var(--cx-brand-soft) 34%, rgba(255,255,255,.72)));
    box-shadow:var(--cx-shadow-soft);
    display:grid;
    gap:.35rem;
  }
  .financial-summary-mini span { color:var(--cx-muted); font-weight:900; font-size:.82rem; }
  .financial-summary-mini strong { color:var(--cx-text); font-size:1.12rem; font-weight:1000; }
  .financial-summary-statement-table td[data-col-type="main"] strong { font-size:.95rem; }
  .financial-summary-statement-table td:nth-child(7) { min-width:220px; color:var(--cx-muted); font-weight:850; line-height:1.75; }
  .financial-center-page .cx-smart-table th,
  .financial-center-page .cx-smart-table td { vertical-align:middle; }
  .financial-center-page .cx-smart-table th[data-col-type="money"],
  .financial-center-page .cx-smart-table th[data-col-type="percent"],
  .financial-center-page .cx-smart-table th[data-col-type="number"],
  .financial-center-page .cx-smart-table td[data-col-type="money"],
  .financial-center-page .cx-smart-table td[data-col-type="percent"],
  .financial-center-page .cx-smart-table td[data-col-type="number"] { text-align:start; white-space:nowrap; }
  .financial-center-page .cx-table-total-row td {
    background:linear-gradient(90deg, color-mix(in srgb, var(--cx-brand-soft) 55%, rgba(255,255,255,.85)), rgba(255,255,255,.94));
    border-block-start:2px solid color-mix(in srgb, var(--cx-brand-accent) 28%, var(--cx-border));
    font-weight:1000;
  }
  .financial-center-page .cx-smart-table-wrap { max-width:100%; }
  @media (max-width: 900px) {
    .financial-summary-mini { grid-template-columns:1fr; }
    .financial-center-page .cx-smart-table th,
    .financial-center-page .cx-smart-table td { min-width:110px; }
    .financial-center-page .cx-smart-table td[data-col-type="main"],
    .financial-center-page .cx-smart-table th[data-col-type="main"] { min-width:160px; }
  }
}

/* phase47x_table_page_size_selector_visibility sales performance drilldown */
@layer features {
  .reports-target-strip {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:var(--cx-space-3);
    margin-block:var(--cx-space-4);
  }
  .reports-detail-kv {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(170px, 1fr));
    gap:var(--cx-space-3);
  }
  .reports-detail-kv > div {
    padding:var(--cx-space-3);
    border:1px solid color-mix(in srgb, var(--cx-brand-accent) 16%, var(--cx-border));
    border-radius:var(--cx-radius-lg);
    background:color-mix(in srgb, var(--cx-brand-soft) 24%, rgba(255,255,255,.86));
    display:grid;
    gap:.25rem;
  }
  .reports-detail-kv span { color:var(--cx-muted); font-weight:900; font-size:.78rem; }
  .reports-detail-kv strong { color:var(--cx-text); font-weight:1000; overflow-wrap:anywhere; }
  .reports-order-detail { display:grid; gap:var(--cx-space-4); }
  .reports-timeline-list { display:grid; gap:var(--cx-space-3); }
  .reports-timeline-item {
    border:1px solid var(--cx-border);
    border-radius:var(--cx-radius-lg);
    padding:var(--cx-space-3);
    background:rgba(255,255,255,.78);
    display:grid;
    gap:.25rem;
  }
  .reports-timeline-item strong { color:var(--cx-text); font-weight:1000; }
  .reports-timeline-item span { color:var(--cx-muted); font-size:.82rem; font-weight:850; }
  .reports-timeline-item p { margin:0; color:var(--cx-muted); line-height:1.7; }
  .reports-detail-modal .cx-table-wrap { max-height:min(56vh, 620px); overflow:auto; }
  .reports-detail-modal .cx-table th { position:sticky; top:0; z-index:2; }
}

/* phase47x_table_page_size_selector_visibility sales performance runtime-day + compact card completion */
@layer features {
  .reports-page .reports-metric-grid {
    gap: .65rem;
    margin-block: .65rem;
  }
  .reports-page .reports-metric-card {
    min-height: 82px;
    padding: .7rem .85rem;
    display: grid;
    align-content: center;
    gap: .25rem;
  }
  .reports-page .reports-metric-card .cx-kpi-head {
    margin: 0;
    min-height: auto;
  }
  .reports-page .reports-metric-card .cx-kpi-label {
    font-size: .78rem;
    line-height: 1.25;
  }
  .reports-page .reports-metric-card .cx-kpi-value,
  .reports-page .reports-metric-card .cx-kpi-value .reports-metric-link {
    font-size: clamp(1rem, 1.65vw, 1.55rem);
    line-height: 1.15;
  }
  .reports-page .reports-metric-card .cx-help {
    font-size: .72rem;
    line-height: 1.35;
  }
  .reports-page .reports-metric-card[data-report-drilldown="1"] {
    cursor: pointer;
    transition: transform var(--cx-transition), box-shadow var(--cx-transition), border-color var(--cx-transition), background var(--cx-transition);
  }
  .reports-page .reports-metric-card[data-report-drilldown="1"]:hover,
  .reports-page .reports-metric-card[data-report-drilldown="1"]:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--cx-shadow-card);
    border-color: color-mix(in srgb, var(--cx-brand-accent) 36%, var(--cx-border));
    outline: 2px solid color-mix(in srgb, var(--cx-brand-accent) 28%, transparent);
    outline-offset: 2px;
  }
  .reports-page .reports-metric-card[data-report-drilldown="1"]::after {
    content: '↗';
    position: absolute;
    inset-inline-end: .65rem;
    inset-block-start: .55rem;
    opacity: .42;
    font-size: .82rem;
    font-weight: 1000;
  }
  .reports-page .cx-table tbody tr[data-report-drilldown-row="1"] {
    cursor: pointer;
  }
  .reports-page .cx-table tbody tr[data-report-drilldown-row="1"]:hover td {
    background: color-mix(in srgb, var(--cx-brand-soft) 38%, transparent);
  }
  .reports-page .cx-table tbody tr[data-report-drilldown-row="1"]:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--cx-brand-accent) 42%, transparent);
    outline-offset: -2px;
  }
  .reports-order-detail .reports-detail-kv strong {
    overflow-wrap: anywhere;
  }
  @media (max-width: 920px) {
    .reports-page .reports-metric-card { min-height: 74px; padding: .62rem .72rem; }
  }
}

/* phase47x_table_page_size_selector_visibility real order drilldown hydration clarity */
@layer features {
  .reports-hydration-warning {
    margin: 0;
    font-weight: 900;
  }
  .reports-order-detail .cx-card-body .cx-no-results {
    min-height: auto;
    padding: var(--cx-space-3);
    text-align: start;
  }
}

/* phase66j reports drilldown click-target contract */
@layer features {
  .reports-drilldown-modal .cx-table tbody tr[data-report-drilldown-row="1"] {
    cursor: pointer;
  }
  .reports-drilldown-modal .cx-table tbody tr[data-report-drilldown-row="1"]:hover td {
    background: color-mix(in srgb, var(--cx-brand-soft) 38%, transparent);
  }
  .reports-drilldown-modal .cx-table tbody tr[data-report-drilldown-row="1"]:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--cx-brand-accent) 42%, transparent);
    outline-offset: -2px;
  }
}

/* phase66i reports performance drilldown modal clean contract: the modal body owns page scroll, each table owns only horizontal/limited vertical table scroll. */
@layer features {
  .reports-drilldown-modal.cx-modal-detail {
    --cx-modal-width: min(1120px, calc(100vw - 2rem));
    --cx-modal-max-height: min(92vh, 920px);
    width: var(--cx-modal-width);
    max-width: calc(100vw - 2rem);
    height: auto;
    max-height: var(--cx-modal-max-height);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .reports-drilldown-modal.cx-modal-detail .cx-modal-header,
  .reports-drilldown-modal.cx-modal-detail .cx-modal-footer {
    flex: 0 0 auto;
  }

  .reports-drilldown-modal.cx-modal-detail .cx-modal-body {
    padding: 0;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98));
  }

  .reports-drilldown-modal .reports-detail-layout {
    padding: var(--cx-space-4);
    display: grid;
    gap: var(--cx-space-3);
    align-content: start;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .reports-drilldown-modal .reports-order-detail,
  .reports-drilldown-modal .reports-order-detail > .reports-metric-grid,
  .reports-drilldown-modal .reports-order-detail > .reports-hydration-warning,
  .reports-drilldown-modal .reports-order-detail > .reports-detail-section {
    min-width: 0;
  }

  .reports-drilldown-modal .reports-detail-section {
    border: 1px solid color-mix(in srgb, var(--cx-brand-accent) 14%, var(--cx-border));
    border-radius: var(--cx-radius-xl);
    background: color-mix(in srgb, var(--cx-panel-bg) 92%, rgba(255,255,255,.92));
    box-shadow: var(--cx-shadow-soft);
    overflow: hidden;
    min-width: 0;
  }

  .reports-drilldown-modal .reports-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding: .8rem 1rem;
    border-block-end: 1px solid color-mix(in srgb, var(--cx-brand-accent) 12%, var(--cx-border));
    background: linear-gradient(90deg, color-mix(in srgb, var(--cx-brand-soft) 26%, rgba(255,255,255,.94)), rgba(255,255,255,.92));
  }

  .reports-drilldown-modal .reports-detail-section-head h3 {
    margin: 0;
    color: var(--cx-text);
    font-size: 1rem;
    font-weight: 1000;
    line-height: 1.4;
  }

  .reports-drilldown-modal .reports-detail-section-body {
    padding: var(--cx-space-3);
    min-width: 0;
    overflow: visible;
  }

  .reports-drilldown-modal .reports-detail-section-body > .cx-no-results {
    min-height: auto;
    padding: .85rem 1rem;
    border-radius: var(--cx-radius-lg);
    background: color-mix(in srgb, var(--cx-muted) 6%, transparent);
    text-align: start;
    color: var(--cx-muted);
    font-weight: 850;
  }

  .reports-drilldown-modal .reports-detail-section .cx-table-wrap {
    max-width: 100%;
    max-height: min(44vh, 430px);
    min-height: 0;
    overflow: auto;
    border-radius: var(--cx-radius-lg);
    scrollbar-gutter: stable both-edges;
  }

  .reports-drilldown-modal .reports-detail-section .cx-table {
    min-width: max-content;
  }

  .reports-drilldown-modal .reports-detail-section .cx-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
  }

  .reports-drilldown-modal .reports-detail-kv {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .reports-drilldown-modal .reports-detail-kv strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .reports-drilldown-modal .reports-hydration-warning {
    padding: .85rem 1rem;
    border-radius: var(--cx-radius-lg);
  }

  @media (max-width: 760px) {
    .reports-drilldown-modal.cx-modal-detail {
      width: calc(100vw - .75rem);
      max-width: calc(100vw - .75rem);
      max-height: calc(100vh - .75rem);
    }
    .reports-drilldown-modal .reports-detail-layout { padding: var(--cx-space-3); }
    .reports-drilldown-modal .reports-detail-section-body { padding: var(--cx-space-2); }
    .reports-drilldown-modal .reports-detail-kv { grid-template-columns: 1fr; }
    .reports-drilldown-modal .reports-detail-section .cx-table-wrap { max-height: 42vh; }
  }
}

/* Phase 47W: shared table pagination for heavy reports */
.reports-table-pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:10px 12px;
  border:1px solid rgba(148,163,184,.22);
  border-top:0;
  border-radius:0 0 14px 14px;
  background:rgba(15,23,42,.025);
  color:var(--cx-muted, #64748b);
  font-size:.86rem;
  direction:rtl;
}
.reports-table-pager.is-small{justify-content:flex-start;border-top:1px solid rgba(148,163,184,.18);border-radius:12px;margin-top:8px;background:transparent;padding:7px 10px;}
.reports-table-pager label{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;}
.reports-table-pager select{min-width:74px;border:1px solid rgba(148,163,184,.35);border-radius:10px;padding:6px 8px;background:var(--cx-card-bg,#fff);color:inherit;}
.reports-pager-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.reports-pager-actions .cx-btn-sm{padding:5px 10px;min-height:30px;font-size:.82rem;}
@media (max-width: 680px){
  .reports-table-pager{align-items:stretch;flex-direction:column;}
  .reports-pager-actions{justify-content:space-between;}
  .reports-pager-actions .cx-btn-sm{flex:1;}
}

/* Phase 47X: visible page-size selector above every heavy report table */
.reports-table-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0 8px;
  padding:9px 12px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(248,250,252,.94), rgba(241,245,249,.78));
  color:var(--cx-text,#0f172a);
  direction:rtl;
}
.reports-page-size-control{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-weight:800;
  white-space:nowrap;
}
.reports-page-size-control select{
  min-width:78px;
  border:1px solid rgba(37,99,235,.35);
  border-radius:11px;
  padding:7px 10px;
  background:var(--cx-card-bg,#fff);
  color:var(--cx-text,#0f172a);
  font-weight:800;
  cursor:pointer;
}
.reports-page-size-summary{
  color:var(--cx-muted,#64748b);
  font-size:.86rem;
  font-weight:700;
}
.reports-table-pager{margin-top:0;}
@media (max-width:680px){
  .reports-table-toolbar{align-items:stretch;flex-direction:column;}
  .reports-page-size-control{justify-content:space-between;}
  .reports-page-size-control select{flex:0 0 96px;}
}
