.report-empty-state {
    border: 1px dashed var(--t-report-empty-border, #d6deeb);
    border-radius: 14px;
    background: var(--t-report-empty-bg, #f8fafc);
    color: var(--t-text-muted, #64748b);
    padding: 1rem 1.25rem;
    text-align: center;
    font-size: 0.95rem;
}

.report-stat {
    background: var(--t-surface, #fff);
    border-radius: 12px;
    padding: 14px 16px 12px;
    box-shadow: var(--t-shadow-sm, 0 4px 12px rgba(15, 23, 42, 0.05));
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--t-border-card, #e6edf6);
    min-width: 0;
}

.report-stat strong {
    font-size: 1.35rem;
    line-height: 1;
}

.report-stat-label {
    color: var(--muted);
    font-size: 0.82rem;
}

.report-stat-primary {
    border-top: 4px solid #2563eb;
}

.report-stat-success {
    border-top: 4px solid #16a34a;
}

.report-stat-warning {
    border-top: 4px solid #f59e0b;
}

.report-stat-dark {
    border-top: 4px solid #0f172a;
}

.report-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.report-pill,
.metric-card {
    border: 1px solid var(--t-border, #dbe3ef);
    background: var(--t-surface-soft, #f8fbff);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.report-pill strong,
.metric-card strong {
    font-size: 1.2rem;
}

.metric-card small,
.report-pill span,
.holder-meta {
    color: var(--muted);
}

.metric-card-visit {
    background: #f4fbf6;
}

.report-table th,
.report-table td {
    vertical-align: middle;
    font-size: 0.72rem;
    text-align: right;
    padding: 8px 6px;
    min-width: 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: normal;
}

.report-table {
    width: 100%;
    table-layout: fixed;
}

.report-table .permit-primary-text,
.report-table .permit-secondary-text {
    display: block;
    max-width: 100%;
}

.report-table .permit-primary-text {
    font-weight: 600;
}

.report-table .permit-secondary-text {
    margin-top: 2px;
    color: var(--t-text-secondary, #475569);
    font-size: 0.77rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.report-table .report-inline-controls {
    flex-wrap: wrap;
}

.report-table th {
    white-space: normal;
    background: var(--t-table-head-bg, #f1f5f9);
    color: var(--t-table-head-text, #1e293b);
    font-weight: 500;
    border-bottom-width: 1px;
    text-align: center;
}

.report-table td {
    white-space: normal;
}

.report-table .ltr-field {
    direction: ltr;
    text-align: center;
    unicode-bidi: plaintext;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.report-table tbody tr:hover {
    background: var(--t-table-row-hover, #f0f5ff);
}

.report-table tbody tr:nth-child(even) {
    background: var(--t-table-row-alt, #f8fafc);
}

.reports-page-shell {
    display: grid;
    gap: 16px;
    padding-bottom: 20px;
    overflow-anchor: none;
    min-width: 0;
}

#report-data-table {
    overflow-anchor: none;
}

.reports-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border-radius: 14px;
    padding: 18px;
    background: var(--t-surface, #ffffff);
    border: 1px solid var(--t-border-subtle, rgba(219, 231, 245, 0.6));
    box-shadow: var(--t-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.04));
}

.reports-kicker {
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
}

.reports-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.report-mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--t-border, #d9e2ec);
    background: var(--t-surface, #fff);
    color: var(--t-text, #0f172a);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.report-mini-action:hover,
.report-mini-action:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    background: var(--t-surface-hover, #f8fbff);
    color: var(--t-text, #0f172a);
}

.report-mini-action-solid {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.report-mini-action-solid:hover,
.report-mini-action-solid:focus {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
}

.report-mini-action-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.report-mini-action-warning {
    border-color: #fde68a;
    background: var(--t-amber-soft, #fffbea);
    color: #92400e;
}

.report-mini-action-danger {
    border-color: #fecaca;
    background: var(--t-red-soft, #fff5f5);
    color: #b42318;
}

.report-mini-button-only {
    min-width: 84px;
}

.report-action-icon,
.report-fold-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.reports-shortcuts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.report-shortcut-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--t-surface-inset, #f8fafc);
    border: 1px solid var(--t-border, #dbe3ef);
    color: var(--t-text-secondary, #334155);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.report-shortcut-chip:hover,
.report-shortcut-chip:focus {
    background: var(--t-blue-soft, #eef5ff);
    color: var(--t-blue, #1d4ed8);
}

.report-section-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.84rem;
    font-weight: 700;
}

.reports-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.reports-stat-grid-visits {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.report-fold {
    border: 1px solid var(--t-border-subtle, rgba(219, 227, 239, 0.6));
    border-radius: 14px;
    background: var(--t-surface, #fff);
    box-shadow: var(--t-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.04));
    overflow: hidden;
}

.report-fold summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    background: var(--t-surface-soft, #fafcff);
}

.report-fold summary::-webkit-details-marker {
    display: none;
}

.report-fold-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.report-fold-title-wrap strong {
    display: block;
    color: #0f172a;
    font-size: 0.98rem;
}

.report-fold-title-wrap span {
    display: block;
    color: #64748b;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.report-fold-hint {
    color: #64748b;
    font-size: 0.82rem;
    white-space: nowrap;
}

.report-fold-body {
    padding: 18px;
    border-top: 1px solid var(--t-border, #e7edf5);
    background: var(--t-surface, #fbfdff);
}

.report-grid {
    display: grid;
    gap: 12px;
}

.report-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.report-inner-panel {
    background: var(--t-surface, #fff);
    border: 1px solid var(--t-border-card, #e2e8f0);
    border-radius: 14px;
    padding: 16px;
    align-self: start;
    box-shadow: var(--t-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.04));
    min-width: 0;
}

.report-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.report-panel-header h2 {
    margin: 0 0 2px;
    font-size: 1.05rem;
}

.report-compact-form,
.report-search-form {
    display: grid;
    gap: 8px;
}

.report-inline-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.report-inline-controls form {
    margin: 0;
}

.report-inline-controls-tight {
    gap: 5px;
}

.report-workflow-legend {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #f5d0a4;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.94));
}

.report-workflow-legend-item {
    display: flex;
    flex: 1 1 240px;
    flex-direction: column;
    gap: 4px;
}

.report-workflow-legend-item strong {
    color: #9a3412;
    font-size: 0.9rem;
}

.report-workflow-legend-item span {
    color: #7c2d12;
    font-size: 0.8rem;
    line-height: 1.5;
}

.report-workflow-legend-divider {
    width: 1px;
    background: rgba(154, 52, 18, 0.16);
}

.report-workflow-action-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 14px;
}

.report-workflow-action-group-review {
    border: 1px solid rgba(217, 119, 6, 0.22);
    background: rgba(255, 251, 235, 0.92);
}

.report-workflow-action-group-reactivate {
    border: 1px solid rgba(22, 163, 74, 0.20);
    background: rgba(240, 253, 244, 0.92);
}

.report-workflow-action-note {
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.45;
}

.report-workflow-confirm-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}

.report-workflow-confirm-title {
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 800;
}

.report-workflow-confirm-question {
    color: #1f2937;
    font-size: 0.8rem;
    font-weight: 700;
}

.report-workflow-confirm-actions {
    align-items: center;
}

@media (max-width: 767.98px) {
    .report-workflow-legend {
        flex-direction: column;
    }

    .report-workflow-legend-divider {
        width: 100%;
        height: 1px;
    }
}

.report-inline-controls .form-select,
.report-inline-controls .form-control {
    flex: 1 1 200px;
}

.report-search-form {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    align-items: end;
    padding: 2px 0 0;
}

.report-search-box {
    min-width: 0;
}

.report-search-box .form-label {
    font-weight: 700;
    color: #334155;
    font-size: 0.82rem;
}

.report-search-box .form-control,
.report-search-box .form-select {
    min-height: 38px;
    border-radius: var(--t-input-radius, 8px);
    border-color: #dbe3ef;
    box-shadow: none;
    font-size: 0.84rem;
}

.report-search-box .form-control:focus,
.report-search-box .form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

#pending-permit-requests {
    scroll-margin-top: 120px;
}

.report-strip-wide {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 10px;
}

.report-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.report-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    background: var(--t-surface-inset, #f8fafc);
    border: 1px solid var(--t-border, #e2e8f0);
}

.report-info-item span {
    color: #64748b;
    font-size: 0.82rem;
}

.report-info-item strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
}

.report-chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.report-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.report-quick-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    background: var(--t-surface, #ffffff);
    border: 1px solid var(--t-border-subtle, rgba(219, 229, 243, 0.6));
    color: var(--t-text, #0f172a);
    min-width: 0;
    overflow-wrap: anywhere;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.report-quick-card:hover,
.report-quick-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    border-color: #bfd1ea;
    color: #0f172a;
}

.report-quick-card-visit {
    background: #f8fcf9;
    border-color: rgba(204, 235, 215, 0.6);
}

.report-quick-card-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
}

.report-quick-card-visit .report-quick-card-kicker {
    background: #dcfce7;
    color: #166534;
}

.report-quick-card-warning {
    background: linear-gradient(180deg, #ffffff 0%, #fffbea 100%);
    border-color: #fde68a;
}

.report-quick-card-warning .report-quick-card-kicker {
    background: #fef3c7;
    color: #92400e;
}

.report-quick-card strong {
    font-size: 0.92rem;
}

.report-quick-card small {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.5;
}

.report-filter-conditional.is-hidden {
    display: none;
}

.report-helper-note {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--t-surface-inset, #f8fafc);
    border: 1px dashed var(--t-border, #d7e2f0);
    color: var(--t-text-secondary, #475569);
    font-size: 0.9rem;
}

.report-summary-card {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--t-surface, #ffffff);
    border: 1px solid var(--t-border-subtle, rgba(219, 231, 245, 0.6));
    color: var(--t-text-secondary, #334155);
    line-height: 1.8;
}

.report-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.report-filter-actions .btn,
.report-search-form .btn,
.report-inline-controls .btn {
    min-height: 34px;
    padding-inline: 0.8rem;
}

.report-search-form .btn,
.report-inline-controls .btn,
.report-filter-actions .btn {
    font-size: 0.8rem;
}

.report-summary-card,
.report-helper-note,
.report-quick-card,
.report-panel,
.report-stat,
.card-permit,
.card-visit,
.compact-form-card {
    border-radius: 12px;
}

.report-panel,
.report-summary-card,
.report-helper-note,
.report-quick-card,
.report-stat,
.card-permit,
.card-visit {
    padding: 12px 14px;
}

.report-page-shell .table-responsive,
.reports-page-shell .table-responsive,
.compact-form-shell .table-responsive,
.app-main-surface .table-responsive {
    overflow: auto;
}

.report-scroll-table {
    max-height: 520px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: auto;
}

.report-scroll-table .table {
    margin-bottom: 0;
    min-width: 720px;
}

.report-table-fixed th,
.report-table-fixed td {
    white-space: normal;
    word-break: break-word;
}

.report-scroll-table .table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .report-strip {
        grid-template-columns: 1fr 1fr;
    }

    .report-grid-two,
    .report-quick-grid,
    .report-info-grid {
        grid-template-columns: 1fr;
    }

    .reports-hero,
    .report-panel-header,
    .report-fold summary {
        align-items: flex-start;
    }

    .reports-hero-actions,
    .report-inline-controls {
        width: 100%;
    }

    .report-mini-action {
        width: 100%;
    }
}

@media (max-width: 767.98px) {

    .report-strip,
    .reports-stat-grid,
    .reports-stat-grid-visits {
        grid-template-columns: 1fr;
    }

    .report-search-form {
        grid-template-columns: 1fr;
    }

    .report-filter-actions .btn,
    .report-filter-actions .report-mini-action,
    .report-inline-controls .btn,
    .report-inline-controls .report-mini-action,
    .reports-hero-actions .report-mini-action,
    .report-chip-row .report-mini-action {
        flex: 1 1 100%;
        width: 100%;
    }

    .report-fold summary {
        flex-direction: column;
    }

    .report-fold-hint {
        white-space: normal;
    }
}

/* ── Premium dark theme final pass ───────────────────────────── */
[data-theme="dark"] .reports-hero,
[data-theme="dark"] .report-stat,
[data-theme="dark"] .report-pill,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .report-fold,
[data-theme="dark"] .report-inner-panel,
[data-theme="dark"] .report-quick-card,
[data-theme="dark"] .report-page-shell .table-responsive,
[data-theme="dark"] .reports-page-shell .table-responsive {
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.98) 0%, rgba(9, 17, 30, 0.98) 100%);
    border-color: rgba(91, 125, 161, 0.22);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .reports-kicker,
[data-theme="dark"] .report-quick-card-kicker {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}

[data-theme="dark"] .report-stat {
    border-top-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(91, 125, 161, 0.18), 0 24px 56px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .report-stat-primary,
[data-theme="dark"] .report-stat-success,
[data-theme="dark"] .report-stat-warning,
[data-theme="dark"] .report-stat-dark {
    border-top-color: #38bdf8;
}

[data-theme="dark"] .report-mini-action,
[data-theme="dark"] .report-shortcut-chip {
    background: rgba(13, 22, 38, 0.94);
    border-color: rgba(91, 125, 161, 0.24);
    color: var(--t-text);
}

[data-theme="dark"] .report-mini-action:hover,
[data-theme="dark"] .report-mini-action:focus,
[data-theme="dark"] .report-shortcut-chip:hover,
[data-theme="dark"] .report-shortcut-chip:focus {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.26);
    color: #dff5ff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .report-mini-action-solid {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #03121d;
}

[data-theme="dark"] .report-mini-action-solid:hover,
[data-theme="dark"] .report-mini-action-solid:focus {
    background: #67d3fb;
    border-color: #67d3fb;
    color: #03121d;
}

[data-theme="dark"] .report-mini-action-success,
[data-theme="dark"] .report-mini-action-warning,
[data-theme="dark"] .report-mini-action-danger,
[data-theme="dark"] .report-quick-card-warning,
[data-theme="dark"] .report-quick-card-visit {
    background: rgba(13, 22, 38, 0.94);
}

[data-theme="dark"] .report-table th,
[data-theme="dark"] .report-scroll-table .table thead th {
    background: #101b2d;
    color: #e1eefc;
}

[data-theme="dark"] .report-table td,
[data-theme="dark"] .report-scroll-table .table td {
    color: var(--t-text-secondary);
}

[data-theme="dark"] .report-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

[data-theme="dark"] .report-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.07);
}

.report-helper-note,
.report-summary-card,
.report-quick-card,
.report-panel,
.report-stat,
.report-pill,
.report-fold,
.report-inner-panel,
.report-mini-action,
.report-shortcut-chip,
.report-filter-actions .btn,
.report-search-form .btn,
.report-inline-controls .btn,
.card-permit,
.card-visit,
.compact-form-card,
.report-page-shell .table-responsive,
.reports-page-shell .table-responsive {
    border-radius: var(--t-input-radius, 8px);
}

.report-empty-state,
.reports-hero,
.reports-kicker,
.report-section-badge,
.report-workflow-legend,
.report-workflow-action-group,
.report-info-item {
    border-radius: var(--t-input-radius, 8px);
}

.report-mini-action.action-icon-btn,
.report-inline-controls .report-mini-action.action-icon-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    gap: 0;
    flex: 0 0 34px;
}

/* Unified report surfaces and responsive data tables */
.reports-page-shell {
    gap: 18px;
}

.reports-hero {
    padding: 22px;
    border-radius: 18px;
    border-color: rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 8% 12%, rgba(59, 130, 246, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.97));
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.report-inner-panel {
    max-width: 100%;
    padding: 18px;
    border-radius: 18px;
    border-color: rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 251, 255, 0.98));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.report-stat,
.report-quick-card,
.report-summary-card,
.report-helper-note,
.report-pill,
.metric-card {
    border-radius: 14px;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.report-stat,
.report-quick-card {
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.report-quick-card:hover,
.report-quick-card:focus {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.report-panel-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.report-panel-header h2 {
    color: var(--t-text, #10233b);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.4;
}

.report-empty-state {
    padding: 1.35rem 1.25rem;
    border-radius: 16px;
    background:
        radial-gradient(circle at 12% 15%, rgba(59, 130, 246, 0.08), transparent 28%),
        var(--t-report-empty-bg, #f8fafc);
    line-height: 1.7;
}

.report-scroll-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 520px;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: var(--t-surface, #fff);
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.48) transparent;
}

.report-scroll-table .report-table {
    width: 100%;
    min-width: 680px;
    margin-bottom: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--t-surface, #fff);
}

.report-scroll-table .report-table:has(thead th:nth-child(5)) {
    min-width: 820px;
}

.report-scroll-table .report-table:has(thead th:nth-child(6)) {
    min-width: 940px;
}

.report-scroll-table .report-table:has(thead th:nth-child(7)) {
    min-width: 1080px;
}

.report-scroll-table .report-table:has(thead th:nth-child(8)) {
    min-width: 1220px;
}

.report-scroll-table .report-table:has(thead th:nth-child(9)) {
    min-width: 1360px;
}

.report-table th,
.report-table td {
    min-width: 0;
    padding: 12px 10px;
    vertical-align: middle;
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: normal;
}

.report-table th,
.report-scroll-table .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    border: 0;
    border-bottom: 1px solid #dbe5f1;
    background: #f6f9fd;
    color: #62758e;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.12);
}

.report-table td {
    border: 0;
    border-bottom: 1px solid #e6edf5;
    background: var(--t-surface, #fff);
    color: var(--t-text-secondary, #334155);
    white-space: normal;
}

.report-table tbody tr,
.report-table tbody tr:nth-child(even),
.report-table tbody tr:hover {
    background: transparent;
}

.report-table tbody tr:hover td {
    background: #f7fbff;
}

.report-table tbody tr:last-child td {
    border-bottom: 0;
}

.report-table .permit-primary-text {
    color: var(--t-text, #10233b);
    font-weight: 700;
    line-height: 1.45;
}

.report-table .permit-secondary-text {
    margin-top: 4px;
    color: var(--t-text-secondary, #64748b);
    font-size: 0.7rem;
}

.report-table .report-inline-controls {
    justify-content: center;
    flex-wrap: nowrap;
    min-width: max-content;
}

.report-table .report-inline-controls form {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .reports-page-shell {
        gap: 14px;
    }

    .reports-hero,
    .report-inner-panel {
        padding: 15px;
        border-radius: 16px;
    }

    .report-panel-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .report-workflow-legend-item {
        flex: 0 1 auto;
        width: 100%;
    }

    .report-scroll-table {
        max-height: min(62vh, 520px);
        border-radius: 12px;
    }

    .report-table th,
    .report-table td {
        padding: 10px 9px;
    }
}

[data-theme="dark"] .reports-hero,
[data-theme="dark"] .report-inner-panel,
[data-theme="dark"] .report-stat,
[data-theme="dark"] .report-quick-card,
[data-theme="dark"] .report-summary-card,
[data-theme="dark"] .report-helper-note,
[data-theme="dark"] .report-pill,
[data-theme="dark"] .metric-card {
    border-color: rgba(71, 95, 132, 0.48);
    background:
        radial-gradient(circle at 8% 12%, rgba(56, 189, 248, 0.07), transparent 30%),
        linear-gradient(180deg, rgba(13, 25, 43, 0.99), rgba(10, 20, 35, 0.99));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .report-scroll-table {
    border-color: rgba(71, 95, 132, 0.5);
    background: #0f1c31;
}

[data-theme="dark"] .report-table th,
[data-theme="dark"] .report-scroll-table .table thead th {
    border-bottom-color: rgba(71, 95, 132, 0.62);
    background: #111f35;
    color: #a9bdd7;
}

[data-theme="dark"] .report-table td,
[data-theme="dark"] .report-scroll-table .table td {
    border-bottom-color: rgba(61, 86, 124, 0.5);
    background: #0f1c31;
    color: var(--t-text-secondary);
}

[data-theme="dark"] .report-table tbody tr:hover td {
    background: #142641;
}

[data-theme="dark"] .report-table .permit-primary-text,
[data-theme="dark"] .report-panel-header h2 {
    color: #eef6ff;
}

[data-theme="dark"] .report-empty-state {
    background:
        radial-gradient(circle at 12% 15%, rgba(56, 189, 248, 0.07), transparent 28%),
        rgba(10, 20, 35, 0.82);
}
