[x-cloak]{display:none!important}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid #b8384a;
	outline-offset: 2px;
	border-radius: 4px;
}

::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:9999px}
::-webkit-scrollbar-thumb:hover{background:#94a3b8}

@keyframes toast-in{from{opacity:0;transform:translateX(1rem)}to{opacity:1;transform:translateX(0)}}
.toast-enter{animation:toast-in .18s ease-out}

.modal-backdrop{background:rgb(15 23 42 / 0.55)}

table.data-table th, table.data-table td{white-space:nowrap}

.spinner{border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:9999px;width:1rem;height:1rem;animation:spin .6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

table.wr-table td, table.wr-table th{white-space:normal}

/* ---------- Tables ----------
   Full gridlines on every list (.data-table) and report grid (.wr-table).
   `border-style: hidden` on the table drops the outer edge so cells sit flush
   inside the rounded card frame instead of doubling its border. */
table.data-table, table.wr-table{
	border-collapse:collapse;
	border-style:hidden;
	font-variant-numeric:tabular-nums;
}
table.data-table th, table.data-table td,
table.wr-table th, table.wr-table td{
	border:1px solid #e2e8f0;
	vertical-align:middle;
}
table.data-table tr, table.wr-table tr{border-color:#e2e8f0}

table.data-table thead th, table.wr-table thead th{
	background:#f1f5f9;
	color:#334155;
	font-weight:600;
	border-color:#d9e0e8;
	box-shadow:inset 0 -1px 0 #cbd5e1; /* heavier header rule that survives a sticky header */
}
/* Age-band group headers sit above the Female/Male row, so no rule under them. */
table.wr-table thead tr:first-child:not(:last-child) th:not([rowspan]){box-shadow:none}

table.data-table tbody tr:nth-child(even), table.wr-table tbody tr:nth-child(even){background:#f8fafc}
table.data-table tbody tr:hover, table.wr-table tbody tr:hover{background:#fdf3f4}

/* Report grids: indicator names read as row labels, totals as a distinct column. */
table.wr-table tbody td:first-child{color:#1e293b;font-weight:500}
table.wr-table tbody td:last-child{background:rgb(241 245 249 / .85);border-left:2px solid #cbd5e1}
table.wr-table thead th:last-child{border-left:2px solid #cbd5e1}
table.wr-table thead tr:nth-child(2) th:last-child{border-left-width:1px;border-left-color:#d9e0e8}
table.wr-table input[type=number]{background:#fff}

/* Pivot (Data Analysis): subtotal and grand-total rows read as summaries. */
table.pivot-table td{white-space:nowrap}
/* Nested rows use rowspan, so "first cell in the row" isn't always the row label. */
table.pivot-table tbody td:first-child{font-weight:inherit;color:inherit}
table.pivot-table tr.pivot-subtotal td{background:#f1f5f9;color:#334155}
table.pivot-table tr.pivot-total td{background:#e2e8f0;color:#0f172a;border-top:2px solid #94a3b8}
table.pivot-table tbody tr:hover td{box-shadow:inset 0 0 0 9999px rgb(253 243 244 / .35)}

@media print{
	aside, header, .no-print, #toast-root, #modal-root{display:none!important}
	html, body{height:auto!important;overflow:visible!important;background:#fff!important}
	body > div, main{display:block!important;height:auto!important;overflow:visible!important;padding:0!important}
	.shadow-sm, .ring-1{box-shadow:none!important}
	table.wr-table{font-size:11px}
	table.wr-table td, table.wr-table th{border:1px solid #cbd5e1}
}
