/* Phase 10 — accessible management & reporting UI. */
.phase10-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.phase10-metric {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #E5DDD4;
    border-radius: 10px;
    background: #FBF8F3;
}

.phase10-metric span {
    color: #756C67;
    font-size: 12px;
}

.phase10-metric strong {
    overflow-wrap: anywhere;
    font-size: clamp(16px, 1.4vw, 22px);
    font-variant-numeric: tabular-nums;
}

.phase10-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.phase10-report-tile {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid #E5DDD4;
    border-radius: 10px;
    color: inherit;
    background: #fff;
    text-decoration: none;
}

.phase10-report-tile:hover,
.phase10-report-tile:focus {
    border-color: #7A1F1F;
    background: #F4E7E7;
}

.phase10-report-tile small,
.phase10-note {
    color: #756C67;
}

.phase10-form-grid,
.phase10-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 10px;
    align-items: end;
    margin: 14px 0;
}

.phase10-form-grid label,
.phase10-filters label {
    min-width: 0;
}

.phase10-wide {
    grid-column: 1 / -1;
}

.phase10-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 15px 0;
}

.phase10-report-table {
    max-height: 65vh;
    overflow: auto;
}

.phase10-report-table table {
    min-width: max-content;
    width: 100%;
}

.phase10-report-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #FBF8F3;
}

.phase10-void-form {
    min-width: 190px;
    margin-top: 7px;
}

.phase10-void-form[hidden] {
    display: none;
}

.phase10-print-title {
    margin-bottom: 10px;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 12mm;
    }

    body,
    .main-content {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .topbar,
    .sidebar,
    .sidebar-toggle,
    .connection-banner,
    #toastContainer,
    .phase10-no-print {
        display: none !important;
    }

    .app-shell {
        display: block !important;
    }

    .phase10-report-sheet {
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
    }

    .phase10-report-table,
    .table-wrap {
        overflow: visible !important;
        max-height: none !important;
    }

    .phase10-report-table table {
        width: 100%;
        min-width: 0;
        font-size: 8px;
    }

    .phase10-report-table th,
    .phase10-report-table td {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
}
