/* Reuse the management page palette and spacing. */
.report-filters { display:flex; flex-wrap:wrap; gap:10px; align-items:end; margin:14px 0; }
.report-filters label { display:flex; flex-direction:column; gap:5px; color:#64748b; font-size:12px; }
.report-filters input,.report-filters select { max-width:100%; }
.report-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0; }
.report-card { border:1px solid #e2e8f0;border-radius:8px;padding:14px;background:#fff; }
.report-card span { display:block;color:#64748b;font-size:12px;margin-bottom:7px; }
.report-card strong { font-size:23px;font-variant-numeric:tabular-nums; }
.report-card.highlight { background:#eff6ff;border-color:#bfdbfe; }
.report-section { border-top:1px solid #e2e8f0;margin-top:20px;padding-top:14px;min-width:0; }
.report-heading { display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px; }
.report-heading h3 { margin:0;font-size:15px; }
.report-table { overflow:auto;max-height:340px; }
.report-table table { min-width:720px; }
.report-table td,.report-table th { white-space:nowrap; }
.report-table th { position:sticky;top:0;background:#f8fafc;z-index:1; }
.report-note { font-size:12px;color:#64748b;line-height:1.8;overflow-wrap:anywhere; }
.report-alert { padding:10px 12px;border:1px solid #fcd34d;border-radius:6px;background:#fffbeb;color:#92400e;margin:10px 0; }
.report-error { color:#b91c1c; }
.permission-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 0; }
.permission-grid label { display:flex;align-items:center;gap:8px;min-height:36px; }
.permission-grid input { width:16px;height:16px; }
.permission-dialog { border:1px solid #e2e8f0;border-radius:10px;padding:22px;max-width:560px;width:calc(100% - 44px);box-sizing:border-box; }
.permission-dialog::backdrop { background:rgba(15,23,42,.4); }
.report-pagination { display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:10px; }
#view-billing,#view-agents { min-width:0; }
@media(max-width:650px) { .report-filters label:has(input[type="datetime-local"]) { flex-basis:100%; } .report-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .report-card { padding:11px; } .report-card strong { font-size:20px; } .report-filters label { flex:1 1 145px;min-width:0; } .report-filters input,.report-filters select { width:100%;box-sizing:border-box; } .permission-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

#agents { min-width:1250px; }
#agents th,#agents td:nth-child(1),#agents td:nth-child(4),#agents td:nth-child(5),#agents td:nth-child(6) { white-space:nowrap; }
#agents td:nth-child(7) { min-width:220px;max-width:260px;line-height:1.8; }
