﻿html, body {
    font-family: var(--dashboard-font-family);
    background: #eef2f6;
    color: #08223c;
    font-size: 15px;
    overflow-x: hidden;
}

:root {
    /* Previous option: Tahoma, Verdana, Arial, sans-serif */
    --dashboard-font-family: "Bahnschrift", "Segoe UI", Arial, sans-serif;
    --bs-font-sans-serif: var(--dashboard-font-family);
    --bs-body-font-family: var(--bs-font-sans-serif);
    --dashboard-navy: #071d34;
    --dashboard-ink: #102a43;
    --dashboard-muted: #617086;
    --dashboard-green: #07805c;
    --dashboard-border: #d8e1ea;
    --dashboard-surface: #ffffff;
    --dashboard-radius: 10px;
    --dashboard-shadow: 0 8px 24px rgba(13, 39, 65, 0.06);
}

* {
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font: inherit;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-left: 1.1rem;
    padding-top: 2.25rem;
    padding-right: 1.1rem;
    padding-bottom: 2rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.dashboard-page {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.dashboard-shell {
    align-items: stretch;
    display: grid;
    gap: 1.15rem;
    grid-template-columns: 236px minmax(0, 1fr);
    min-width: 0;
}

.dashboard-shell-single {
    grid-template-columns: minmax(0, 1fr);
}

.filter-panel,
.report-card {
    background: var(--dashboard-surface);
    border: 1px solid var(--dashboard-border);
    border-radius: var(--dashboard-radius);
    box-shadow: var(--dashboard-shadow);
}

.filter-panel {
    align-self: stretch;
    align-content: start;
    display: grid;
    grid-auto-rows: max-content;
    gap: 0.75rem;
    min-height: calc(100vh - 7.75rem);
    padding: 1.05rem 1rem;
}

.filter-panel label {
    display: grid;
    gap: 0.45rem;
}

.filter-panel span {
    color: #0d2743;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.filter-panel input,
.filter-panel select,
.filter-panel button {
    background: #ffffff;
    border: 1px solid #bdcad8;
    border-radius: 6px;
    color: #08223c;
    font-size: 0.9rem;
    height: 2.55rem;
    min-height: 0;
    padding: 0.55rem 0.75rem;
    width: 100%;
}

.filter-panel button {
    cursor: pointer;
    font-weight: 700;
    text-align: left;
}

.filter-panel .panel-nav-link {
    align-items: center;
    background: #ffffff;
    border: 1px solid #bdcad8;
    border-radius: 6px;
    color: #08223c;
    display: flex;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 2.55rem;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
    width: 100%;
}

.filter-panel .panel-nav-link:hover,
.filter-panel .panel-nav-link.active {
    background: #e7f3ee;
    color: #047456;
}

.report-card {
    align-content: start;
    display: grid;
    gap: 0.9rem;
    min-width: 0;
    overflow: hidden;
    padding: 1rem;
}

.page-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.1rem 0.15rem 0.6rem;
}

.page-heading p {
    color: #657384;
    font-size: 0.78rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.page-heading h1 {
    font-size: clamp(1.35rem, 1.9vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.page-status {
    background: #fbfcfe;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    min-width: 9rem;
    padding: 0.75rem 1rem;
    text-align: right;
}

.page-status span {
    color: #087f5b;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
}

.page-status strong {
    display: block;
    font-size: 1.35rem;
}

.header-filter-card {
    align-items: end;
    background: #fbfcfe;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(9rem, 1fr) minmax(9rem, 1fr) auto auto;
    min-width: min(40rem, 100%);
    padding: 0.75rem 0.85rem;
}

.header-filter-card label {
    display: grid;
    gap: 0.3rem;
}

.header-filter-card span {
    color: #657384;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-filter-card input,
.header-filter-card button {
    background: #ffffff;
    border: 1px solid #bdcad8;
    border-radius: 6px;
    color: #08223c;
    font-size: 0.86rem;
    height: 2.25rem;
    padding: 0.4rem 0.65rem;
}

.header-filter-card button {
    background: #101820;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    min-width: 6.5rem;
}

.header-filter-card button:last-child {
    background: #ffffff;
    color: #0d2743;
}

.header-filter-card.smart-fill-header-card {
    grid-template-columns: minmax(9rem, 1fr) minmax(9rem, 1fr) auto;
    min-width: min(32rem, 100%);
}

.header-filter-card.smart-fill-header-card button:last-child {
    background: #101820;
    color: #ffffff;
}

.header-filter-card.recon-header-card {
    grid-template-columns: minmax(8.5rem, 1fr) minmax(8.5rem, 1fr) minmax(6.5rem, 0.8fr) auto auto;
    min-width: min(54rem, 100%);
}

.header-filter-status {
    min-width: 5.5rem;
    text-align: right;
}

.header-filter-status span {
    color: #087f5b;
    display: block;
}

.header-filter-status strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
}

.metric-grid {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid article,
.panel {
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
}

.metric-grid article {
    padding: 0.65rem 0.8rem;
}

.metric-grid span {
    color: #657384;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.metric-grid strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.1;
}

.metric-grid small {
    color: #657384;
    display: block;
    margin-top: 0.45rem;
}

.work-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
}

.settings-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
}

.panel {
    padding: 0.9rem 1rem;
    min-width: 0;
}

.panel-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
}

.panel-meta {
    color: #617086;
    font-size: 0.82rem;
    font-weight: 800;
}

.panel-title h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.panel-title button {
    background: #101820;
    border: 0;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
}

.panel-title button.secondary-action {
    background: #ffffff;
    border: 1px solid #bdcad8;
    color: #0d2743;
}

.table-panel-title {
    align-items: end;
}

.inline-filter-bar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.inline-filter-bar label {
    display: grid;
    gap: 0.35rem;
}

.inline-filter-bar span {
    color: #657384;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.inline-filter-bar input,
.inline-filter-bar button {
    border: 1px solid #bdcad8;
    border-radius: 6px;
    color: #08223c;
    font-size: 0.86rem;
    height: 2.25rem;
    padding: 0.4rem 0.65rem;
}

.inline-filter-bar button {
    background: #101820;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
}

.inline-filter-bar button.secondary-action {
    background: #ffffff;
    color: #0d2743;
}

.feedback-banner {
    background: #e6f4ee;
    border: 1px solid #b8decf;
    border-radius: 6px;
    color: #087f5b;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    padding: 0.6rem 0.75rem;
}

.smart-fill-summary {
    align-items: center;
    color: #52647a;
    display: flex;
    font-size: 0.86rem;
    font-weight: 800;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.smart-fill-summary > div {
    align-items: center;
    display: flex;
    gap: 0.6rem;
}

.endpoint-status-line {
    align-items: center;
    color: #52647a;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 0.7rem;
    margin-top: 0.85rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.id-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.request-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-grid.auth-grid {
    grid-template-columns: minmax(18rem, 2fr) minmax(10rem, 1fr) minmax(12rem, 1fr);
}

.form-grid.smart-fill-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-grid label {
    display: grid;
    gap: 0.4rem;
}

.form-grid span {
    color: #657384;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.form-grid input,
.form-grid select {
    background: #f8fafc;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    color: #17212b;
    font-size: 0.9rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.7rem;
    width: 100%;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.report-table-scroll {
    height: calc(100vh - 24.75rem);
    min-height: 18rem;
    overflow: auto;
}

.smart-fill-table-scroll {
    height: calc(100vh - 20rem);
    min-height: 26rem;
}

.report-footer {
    align-items: center;
    background: #ffffff;
    border-top: 1px solid #d8e1ea;
    display: flex;
    justify-content: space-between;
    min-height: 3.4rem;
    padding-top: 0.75rem;
}

.report-footer span {
    color: #617086;
    font-size: 0.8rem;
}

.pager {
    display: flex;
    gap: 0.4rem;
}

.pager button {
    background: #ffffff;
    border: 1px solid #bdcad8;
    border-radius: 7px;
    color: #0d2743;
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
}

.pager button.active {
    background: #0b5d8d;
    border-color: #0b5d8d;
    color: #ffffff;
}

.pager button:disabled {
    color: #9aa8b7;
}

table {
    border-collapse: collapse;
    width: 100%;
}

.efficiency-table {
    min-width: 1180px;
}

.endpoint-table {
    min-width: 1560px;
}

.table-input {
    background: #f8fafc;
    border: 1px solid #cbd5df;
    border-radius: 5px;
    color: #17212b;
    font-size: 0.86rem;
    min-height: 2.15rem;
    padding: 0.35rem 0.5rem;
    width: 100%;
}

.table-input.compact {
    min-width: 7rem;
}

.table-action {
    background: #101820;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 800;
    min-height: 2.15rem;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
}

.table-action:disabled {
    cursor: wait;
    opacity: 0.65;
}

.table-message {
    color: #617086;
    display: block;
    font-size: 0.76rem;
    margin-top: 0.2rem;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-line {
    background: #f8fafc;
    border: 1px solid #d6e2ee;
    border-radius: 6px;
    color: #334155;
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    padding: 0.5rem 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-response-table {
    min-width: 980px;
}

.data-response-table .table-group-heading {
    text-align: center;
}

.data-response-table .table-group-opening {
    background: #e6f4ee;
    color: #075e45;
}

.data-response-table .table-group-deliveries {
    background: #e8f1ff;
    color: #174ea6;
}

.data-response-table .table-group-transfers {
    background: #f1ecff;
    color: #5636a3;
}

.data-response-table .table-group-issues {
    background: #ffeceb;
    color: #9f2820;
}

.data-response-table .table-group-closing {
    background: #fff4d8;
    color: #7a4b00;
}

.data-response-table .table-opening-column {
    background: #f2fbf7;
    color: #075e45;
}

.data-response-table .table-deliveries-column {
    background: #f5f9ff;
    color: #174ea6;
}

.data-response-table .table-transfers-column {
    background: #f8f5ff;
    color: #5636a3;
}

.data-response-table .table-issues-column {
    background: #fff6f5;
    color: #9f2820;
}

.data-response-table .table-closing-column {
    background: #fff9e8;
    color: #7a4b00;
}

.data-response-table .table-opening-cell {
    background: #f7fcfa;
}

.data-response-table .table-deliveries-cell {
    background: #f8fbff;
}

.data-response-table .table-transfers-cell {
    background: #fbf9ff;
}

.data-response-table .table-issues-cell {
    background: #fff9f8;
}

.data-response-table .table-closing-cell {
    background: #fffaf0;
}

.data-response-table .table-reconciliation-column {
    background: #dbe7ff;
    color: #174ea6;
    min-width: 7.5rem;
    text-align: center;
    white-space: normal;
}

.data-response-table .table-reconciliation-cell {
    background: #eef4ff;
    color: #26415f;
    font-variant-numeric: tabular-nums;
}

.data-response-table .table-variance-cell {
    background: #ffffff;
    font-weight: 900;
}

.data-response-table .table-variance-cell.variance-negative {
    color: #c62828;
}

.data-response-table .table-variance-cell.variance-positive {
    color: #1565c0;
}

.data-response-table .table-variance-cell.variance-zero {
    color: #26415f;
}

.data-response-table .table-total-column,
.data-response-table .table-total-cell {
    border-left: 0;
    font-weight: 900;
}

.data-response-table .table-total-cell {
    color: #102a43;
    font-variant-numeric: tabular-nums;
}

th,
td {
    border-bottom: 1px solid #d6e2ee;
    border-right: 1px solid #d6e2ee;
    font-size: 0.82rem;
    line-height: 1.35;
    padding: 0.5rem 0.6rem;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #ffffff;
    color: #0d2743;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    position: sticky;
    top: 0;
    text-transform: uppercase;
    z-index: 1;
}

.data-response-table thead tr:first-child th {
    top: 0;
    z-index: 3;
}

.data-response-table thead tr:nth-child(2) th {
    top: 2rem;
    z-index: 2;
}

tbody tr:nth-child(even) {
    background: #edf4fa;
}

tbody tr:nth-child(odd) {
    background: #ffffff;
}

.badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
}

.badge.good {
    background: #e6f4ee;
    color: #087f5b;
}

.badge.warn {
    background: #fff4d8;
    color: #8a5a00;
}

.badge.bad {
    background: #ffe8e8;
    color: #b42318;
}

.side-panel ol {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding-left: 1.2rem;
}

.side-panel li {
    color: #334155;
    font-size: 0.92rem;
    padding-left: 0.2rem;
}

.empty-state-card {
    align-content: center;
    display: grid;
    justify-items: start;
    min-height: 22rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.empty-state-card h2 {
    color: var(--dashboard-ink);
    font-size: 1.25rem;
    margin: 0 0 .55rem;
}

.empty-state-card p {
    color: var(--dashboard-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
    max-width: 42rem;
}

.empty-state-card a {
    background: var(--dashboard-green);
    border-radius: 6px;
    color: #fff;
    font-weight: 800;
    padding: .65rem .9rem;
    text-decoration: none;
}

@media (max-width: 980px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        min-height: 0;
    }

    .metric-grid,
    .work-grid,
    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .page-heading,
    .work-grid,
    .settings-grid,
    .form-grid,
    .form-grid.id-grid,
    .form-grid.request-grid,
    .form-grid.auth-grid,
    .form-grid.smart-fill-grid {
        grid-template-columns: 1fr;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .page-status {
        text-align: left;
    }

    .header-filter-card {
        grid-template-columns: 1fr;
    }

    .header-filter-status {
        text-align: left;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }
}
/* Dashboard typography */
h1, h2, h3,
.nav-link,
.dropdown-link,
.panel-title,
.page-heading {
    font-family: Bahnschrift, "Trebuchet MS", "Segoe UI", sans-serif;
}
.access-gate { background: #fff; border: 1px solid #d7e1e8; border-radius: 12px; box-shadow: 0 14px 35px rgba(8,31,54,.08); margin: 4rem auto; max-width: 560px; padding: 2rem; text-align: center; }
.access-gate span { color: #07805c; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.access-gate h1 { margin: .6rem 0; }
.access-gate p { color: #617489; }
.access-gate a { background: #0b3554; border-radius: 7px; color: #fff; display: inline-block; font-weight: 800; margin-top: .6rem; padding: .65rem 1rem; text-decoration: none; }

/* Shared dashboard presentation layer. Keep structural page differences while
   giving reports, filters, controls, and tables one consistent visual system. */
:root {
    --dashboard-control-height: 2.55rem;
    --dashboard-soft-surface: #f7f9fb;
    --dashboard-primary: #123f60;
    --dashboard-primary-hover: #0b2d49;
}

.dashboard-shell { gap: 1rem; }

.filter-panel,
.report-card {
    border-color: var(--dashboard-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(13, 39, 65, .06);
}

.filter-panel { padding: 1rem; }

.filter-panel input,
.filter-panel select,
.filter-panel button,
.filter-panel .panel-nav-link {
    border-radius: 7px;
    min-height: var(--dashboard-control-height);
}

.filter-panel button:hover:not(:disabled),
.filter-panel .panel-nav-link:hover {
    background: #f5f8fa;
    border-color: #8299ab;
    color: var(--dashboard-ink);
}

.report-card { gap: 1rem; }

.page-heading {
    background: var(--dashboard-soft-surface);
    border: 1px solid var(--dashboard-border);
    border-radius: 10px;
    min-height: 5.35rem;
    overflow: hidden;
    padding: .85rem 1rem .85rem 1.15rem;
    position: relative;
}

.page-heading::before {
    background: var(--dashboard-primary);
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 4px;
}

.page-heading h1 {
    color: var(--dashboard-ink);
    font-size: clamp(1.4rem, 1.9vw, 1.7rem);
}

.page-heading p {
    color: #687b8d;
    font-size: .7rem;
    letter-spacing: .075em;
}

.page-status {
    background: #ffffff;
    border-radius: 8px;
    padding: .65rem .85rem;
}

.page-status span { color: #52697d; }

.panel {
    border-color: var(--dashboard-border);
    border-radius: 10px;
}

.panel-title button,
.inline-filter-bar button,
.header-filter-card button,
.table-action {
    background: var(--dashboard-primary);
    border-radius: 7px;
}

.panel-title button:hover:not(:disabled),
.inline-filter-bar button:hover:not(:disabled),
.header-filter-card button:hover:not(:disabled),
.table-action:hover:not(:disabled) {
    background: var(--dashboard-primary-hover);
}

.header-filter-card input,
.header-filter-card button,
.inline-filter-bar input,
.inline-filter-bar button,
.form-grid input,
.form-grid select {
    min-height: var(--dashboard-control-height);
}

.pager button.active {
    background: var(--dashboard-primary);
    border-color: var(--dashboard-primary);
}

th {
    color: #19344d;
    letter-spacing: .04em;
}

tbody tr:nth-child(even) { background: #edf3f8; }

tbody tr:hover { background: #e7eff6; }

@media (max-width: 640px) {
    .page-heading { min-height: 0; }
}

/* Global report navigation loading display. */
.page-loading-overlay {
    align-items: center;
    background: rgba(238, 242, 246, .86);
    backdrop-filter: blur(2px);
    display: none;
    flex-direction: column;
    gap: .7rem;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 5000;
}

.page-loading-overlay.is-visible { display: flex; }
.page-loading-overlay strong { color: #0b3554; font-size: .86rem; letter-spacing: .02em; }
.page-loading-spinner {
    animation: page-loading-spin .75s linear infinite;
    border: 4px solid #cbd8e3;
    border-radius: 50%;
    border-top-color: #07805c;
    height: 2.7rem;
    width: 2.7rem;
}
@keyframes page-loading-spin { to { transform: rotate(360deg); } }
