/* =========================================================================
   61 — Phase 2B: Partner reports (/firm/reports/) + Alerts log (/firm/alerts/).
   ========================================================================= */

/* ---- reports: filter bar + section nav ---------------------------------- */
.portal-shell.firm-shell .fl-rpt-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 14px;padding:16px var(--fp-pad,20px)}
.portal-shell.firm-shell .fl-rpt-filter .firm-field{display:flex;flex-direction:column;gap:4px}
.portal-shell.firm-shell .fl-rpt-filter label{font-size:12px;font-weight:600;color:#4b5260}
.portal-shell.firm-shell .fl-rpt-filter input[type=date]{padding:9px 11px;border:1.5px solid #e5e7eb;border-radius:8px;font:inherit;font-size:14px;background:#fff}
.portal-shell.firm-shell .fl-rpt-presets{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.portal-shell.firm-shell .fl-rpt-chip{display:inline-block;padding:7px 12px;border-radius:999px;border:1px solid #e1e4ec;font-size:12.5px;font-weight:600;color:var(--blue-ink,#15224d);text-decoration:none;background:#fff}
.portal-shell.firm-shell .fl-rpt-chip:hover{border-color:var(--blue,#26408d)}
.portal-shell.firm-shell .fl-rpt-chip.is-on{background:var(--blue-ink,#15224d);border-color:var(--blue-ink,#15224d);color:#fff}
.portal-shell.firm-shell .fl-rpt-toc{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 var(--fp-gap,20px);font-size:13px;font-weight:600}
.portal-shell.firm-shell .fl-rpt-toc a{color:var(--blue,#26408d);text-decoration:none;border-bottom:2px solid transparent;padding-bottom:2px}
.portal-shell.firm-shell .fl-rpt-toc a:hover{border-bottom-color:#ed1c24;color:var(--blue-ink,#15224d)}

/* ---- report sections ---------------------------------------------------- */
.portal-shell.firm-shell .fl-rpt-sec{scroll-margin-top:90px}
.portal-shell.firm-shell .fl-rpt-sec .panel-head{flex-wrap:wrap;gap:10px}
.portal-shell.firm-shell .fl-rpt-headact{display:flex;gap:8px;flex-wrap:wrap}
.portal-shell.firm-shell .fl-rpt-csv{display:inline-flex;align-items:center;gap:5px}
.portal-shell.firm-shell .fl-rpt-note{margin:0 var(--fp-pad,20px) 12px;font-size:12.5px;color:#6b7280;line-height:1.5}
.portal-shell.firm-shell .fl-rpt-chart{position:relative;height:280px;margin:4px var(--fp-pad,20px) 14px}
.portal-shell.firm-shell .fl-rpt-chart-sm{height:230px}
.portal-shell.firm-shell .fl-rpt-chart-donut{height:240px;margin:8px 0}
.portal-shell.firm-shell .fl-rpt-chart canvas{max-width:100%}
.portal-shell.firm-shell .fl-rpt-cap{caption-side:top;text-align:left;font-family:'Playfair Display',Georgia,serif;font-weight:800;color:var(--blue-ink,#15224d);padding:6px var(--fp-pad,20px) 8px;font-size:15px}
.portal-shell.firm-shell .fl-rpt-table tfoot th,.portal-shell.firm-shell .fl-rpt-table tfoot td{font-weight:700;color:var(--blue-ink,#15224d);border-top:2px solid #e5e7eb;background:#fafbfd}
.portal-shell.firm-shell .fl-rpt-table th[scope=row]{font-weight:600;color:#1a1a2e;text-align:left}
.portal-shell.firm-shell .fl-rpt-table .matter-ref{font-size:11.5px;color:#6b7280}
.portal-shell.firm-shell .fl-rpt-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:var(--fp-gap,20px);align-items:start;padding:0 0 6px}
.portal-shell.firm-shell #rpt-clients .fl-rpt-split{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.portal-shell.firm-shell .fl-rpt-more{margin:6px var(--fp-pad,20px) var(--fp-pad,20px)}
.portal-shell.firm-shell .fl-rpt-more summary{cursor:pointer;font-weight:700;font-size:13px;color:var(--blue,#26408d);padding:6px 0}
.portal-shell.firm-shell tr.fl-age-d60 th,.portal-shell.firm-shell tr.fl-age-d90 th{color:#8a4b06}
.portal-shell.firm-shell tr.fl-age-d90p th{color:#b3161c}
.portal-shell.firm-shell .fl-util{display:inline-block;min-width:48px;padding:3px 8px;border-radius:999px;font-weight:700;font-size:12.5px;text-align:center}
.portal-shell.firm-shell .fl-util.is-ok{background:#e9f6ef;color:#16704a}
.portal-shell.firm-shell .fl-util.is-warn{background:#fff4e0;color:#8a4b06}
.portal-shell.firm-shell .fl-util.is-low{background:#eef2fb;color:#26408d}

/* ---- alerts log --------------------------------------------------------- */
.portal-shell.firm-shell .fl-al-filters{flex-wrap:wrap;gap:10px}
.portal-shell.firm-shell .fl-al-table td{vertical-align:top}
.portal-shell.firm-shell .fl-al-when{white-space:nowrap;font-variant-numeric:tabular-nums;color:#4b5260}
.portal-shell.firm-shell .fl-al-table .matter-ref{display:block;font-size:11.5px;color:#6b7280}
.portal-shell.firm-shell .fl-al-body{max-width:420px;color:#374151;line-height:1.45}
.portal-shell.firm-shell .fl-al-detail{display:block;margin-top:4px;font-size:11.5px;color:#6b7280}
.portal-shell.firm-shell .fl-al-ch{display:inline-block;padding:3px 9px;border-radius:6px;font-size:12px;font-weight:700;background:#eef2fb;color:#26408d;white-space:nowrap}
.portal-shell.firm-shell .fl-al-ch.is-whatsapp{background:#e7f7ee;color:#16704a}
.portal-shell.firm-shell .fl-al-ch.is-bell{background:#f1f2f6;color:#4b5260}
.portal-shell.firm-shell .fl-al-table .badge{white-space:nowrap}
.portal-shell.firm-shell .fl-al-pager{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;padding:16px;font-size:13px;color:#4b5260}

@media (max-width:900px){
	.portal-shell.firm-shell .fl-rpt-split{grid-template-columns:minmax(0,1fr)}
	.portal-shell.firm-shell .fl-rpt-presets{margin-left:0;width:100%}
}
@media (max-width:640px){
	.portal-shell.firm-shell .fl-rpt-filter .firm-field{flex:1 1 130px}
	.portal-shell.firm-shell .fl-rpt-filter input[type=date]{width:100%}
	.portal-shell.firm-shell .fl-rpt-filter .btn{width:100%;justify-content:center}
	.portal-shell.firm-shell .fl-rpt-chart{height:240px;margin-left:10px;margin-right:10px}
	.portal-shell.firm-shell .fl-rpt-table{font-size:12.5px}
	.portal-shell.firm-shell .fl-rpt-table th,.portal-shell.firm-shell .fl-rpt-table td{padding:9px 8px !important}
	/* alerts log → stacked cards */
	.portal-shell.firm-shell .fl-al-table thead{display:none}
	.portal-shell.firm-shell .fl-al-table,.portal-shell.firm-shell .fl-al-table tbody,.portal-shell.firm-shell .fl-al-table tr{display:block;width:100%}
	.portal-shell.firm-shell .fl-al-table tr{padding:12px var(--fp-pad,16px);border-bottom:1px solid #eef0f4}
	.portal-shell.firm-shell .fl-al-table td{display:block;padding:3px 0 !important;border:0;max-width:none}
	.portal-shell.firm-shell .fl-al-table td[data-label="Status"],.portal-shell.firm-shell .fl-al-table td[data-label="Channel"]{display:inline-block;margin-right:6px}
}
