/* admin-reports — Report Center (owned by one agent; see index.html).
   Layout: a report picker (grouped sidebar ≥900px, a <select> below that) + a filter bar + KPI cards + a
   table that becomes a stacked card list under 640px (only place that collapses — the table itself still
   scrolls horizontally on in-between widths instead of breaking the page). */

.rptc-shell{display:grid;grid-template-columns:240px 1fr;gap:16px;align-items:start}
@media (max-width:900px){.rptc-shell{grid-template-columns:1fr}}

/* ---- picker ---- */
.rptc-picker{position:sticky;top:12px}
@media (max-width:900px){.rptc-picker{position:static}}
.rptc-nav{display:flex;flex-direction:column;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;max-height:calc(100vh - 140px);overflow:auto}
.rptc-group>b{display:block;font-size:11px;color:var(--mut);font-weight:700;margin-bottom:6px;padding:0 4px}
.rptc-group a{display:block;padding:8px 10px;border-radius:9px;font-size:13.5px;font-weight:600;color:#334155;text-decoration:none;margin-bottom:2px;cursor:pointer}
.rptc-group a:hover{background:#f1f5f9}
.rptc-group a.on{background:var(--pri);color:#fff}
.rptc-nav-mobile{display:none}
.rptc-nav-mobile select{width:100%;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 12px;font-size:14px;font-weight:600}
@media (max-width:900px){.rptc-nav{display:none}.rptc-nav-mobile{display:block;margin-bottom:4px}}

/* ---- filter bar ---- */
.rptc-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-bottom:14px}
.rptc-filters select,.rptc-filters input{height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 12px;min-width:140px;font-size:13.5px}
.rptc-filters .dt{display:flex;flex-direction:column;gap:3px;font-size:11px;color:var(--mut)}
.rptc-filters .dt input{min-width:0}
.rptc-range{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.rptc-presets{display:flex;flex-wrap:wrap;gap:6px}
.rptc-preset{font-size:12px;padding:5px 12px;cursor:pointer}
.rptc-preset.on{background:var(--pri);color:#fff;border-color:var(--pri)}
@media (max-width:640px){.rptc-filters{gap:8px}.rptc-filters select,.rptc-filters input{min-width:0;flex:1 1 140px}}

/* ---- KPI row above the table ---- */
.rptc-kpis{margin-bottom:14px}

/* ---- loading / empty states ---- */
.rptc-loading{text-align:center;padding:40px 20px;color:var(--mut);font-size:14px}
.rptc-empty{display:block;text-align:center;padding:36px 16px;color:var(--mut)}

/* ---- table card ---- */
.rptc-table-card{padding:0;overflow:hidden}
.rptc-table-card .tbl-wrap{border:0;border-radius:0}
.rptc-table-card tfoot td{font-weight:700;background:#f8fafc;border-top:2px solid var(--line)}
.rptc-table-card tfoot td:first-child{color:var(--mut);font-weight:600}

/* ---- mobile stacked cards (replace the table under 640px) ---- */
.rptc-cards{display:none}
@media (max-width:640px){
  .rptc-table-card .tbl-wrap{display:none}
  .rptc-cards{display:flex;flex-direction:column;gap:10px;padding:12px}
}
.rptc-card{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff}
.rptc-card-row{display:flex;justify-content:space-between;gap:10px;padding:4px 0;font-size:13px;border-bottom:1px dashed #eef2f7}
.rptc-card-row:last-child{border-bottom:0}
.rptc-card-row .k{color:var(--mut)}
.rptc-card-row .v{font-weight:700;text-align:left;direction:ltr;unicode-bidi:plaintext}
