/* ── Layout: sticky footer ───────────────────────────────────────────────── */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

main.container {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    border: 1px solid rgba(0, 0, 0, .08);
}

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table th {
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar-brand {
    letter-spacing: .03em;
}

/* ── Auth forms ──────────────────────────────────────────────────────────── */
.auth-card {
    max-width: 420px;
    margin: 2rem auto;
}

/* ── Dashboard stat cards ────────────────────────────────────────────────── */
.stat-card .display-6 {
    font-weight: 700;
}

/* ── PSC reports table ──────────────────────────────────────────────────── */
.psc-reports-table td.psc-reports-cell {
    width: 20%;
}

.psc-year-list {
    column-count: 2;
    column-gap: .75rem;
}

.psc-year-list li {
    break-inside: avoid;
}

@media (max-width: 767.98px) {
    .psc-reports-table,
    .psc-reports-table tbody,
    .psc-reports-table tr,
    .psc-reports-table td.psc-reports-cell {
        display: block;
        width: 100%;
    }

    .psc-reports-table td.psc-reports-cell {
        border: 0;
        border-bottom: 1px solid #dee2e6;
    }

    .psc-reports-table td.psc-reports-cell:empty {
        display: none;
    }

    .psc-reports-table tr:last-child td.psc-reports-cell:last-child {
        border-bottom: 0;
    }
}

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .table-responsive {
        font-size: .875rem;
    }
}
