/* Intake report — consortium table layout */
.intake-report-card {
    overflow: hidden;
}

.intake-report-toolbar {
    border-bottom: 1px solid var(--border);
}

.intake-report-header {
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: 2px solid #111827;
    background: #fff;
    text-align: center;
}

.intake-report-org {
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #111827;
    margin-bottom: 0.35rem;
    text-align: center;
}

.intake-report-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: #334155;
    text-align: center;
}

.intake-report-table {
    margin: 0;
    font-size: 0.82rem;
    border-collapse: collapse;
}

.intake-report-table thead th {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 0.65rem 0.5rem;
    font-weight: 400;
    vertical-align: middle;
    white-space: nowrap;
    color: #0f172a;
}

.intake-report-table thead th small {
    font-weight: 400;
    font-size: 0.68rem;
    color: #64748b;
    text-transform: none;
}

.intake-report-table tbody td,
.intake-report-table tfoot td {
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.5rem;
    vertical-align: middle;
    color: #0f172a;
}

.intake-report-table tbody tr:nth-child(even) {
    background: #fcfdff;
}

.intake-report-table .col-sr,
.intake-report-table .col-code,
.intake-report-table .col-label,
.intake-report-table .col-num {
    width: 1%;
    white-space: nowrap;
}

.intake-report-table .col-name {
    min-width: 260px;
}

.intake-report-table .col-city {
    min-width: 110px;
}

.intake-report-total-row td {
    background: #eef2ff;
    border-top: 2px solid #6366f1;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 12mm 14mm 18mm 14mm;

        @bottom-center {
            content: "Page " counter(page) " of " counter(pages);
            font-size: 10px;
            font-weight: 400;
        }
    }

    html,
    body.admin-body {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.admin-body {
        background: #fff;
    }

    .admin-sidebar,
    .admin-topbar,
    .sidebar-overlay,
    .no-print,
    .admin-card-footer {
        display: none !important;
    }

    .admin-wrapper,
    .admin-main,
    .admin-content,
    .intake-report-card,
    .intake-report-body,
    .admin-card-body {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .admin-main {
        margin-left: 0 !important;
    }

    .intake-report-card {
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
    }

    .intake-report-table-wrap,
    .table-responsive {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .intake-report-table thead th.intake-print-banner-cell {
        text-align: center !important;
        padding: 0.5rem 0.35rem 0.65rem !important;
        border: 1px solid #000 !important;
        border-bottom: 1px solid #000 !important;
        background: #fff !important;
        white-space: normal !important;
    }

    .intake-print-banner-cell .intake-report-org,
    .intake-print-banner-cell .intake-report-title {
        text-align: center !important;
        width: 100%;
        display: block;
    }

    .intake-print-banner-cell .intake-report-org {
        font-size: 16px;
        font-weight: 400;
        margin-bottom: 0.25rem;
    }

    .intake-print-banner-cell .intake-report-title {
        font-size: 14px;
        font-weight: 400;
    }

    .intake-report-table-wrap {
        overflow: visible !important;
    }

    .intake-report-table {
        page-break-inside: auto;
        table-layout: fixed;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 12px;
        font-weight: 400;
        border: 1px solid #000 !important;
        border-collapse: collapse !important;
    }

    .intake-report-table thead {
        display: table-header-group;
    }

    .intake-report-table th:first-child,
    .intake-report-table td:first-child {
        border-left: 1px solid #000 !important;
    }

    .intake-report-table th:last-child,
    .intake-report-table td:last-child {
        border-right: 1px solid #000 !important;
    }

    .intake-report-table thead tr:first-child th {
        border-top: 1px solid #000 !important;
    }

    .intake-report-table tbody tr:last-child td,
    .intake-report-table .intake-print-total-row td {
        border-bottom: 1px solid #000 !important;
    }

    .intake-report-table .col-name,
    .intake-report-table td:nth-child(3) {
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .intake-report-table thead th {
        white-space: normal !important;
    }

    .intake-report-table col.col-sr {
        width: 5%;
    }

    .intake-report-table col.col-code {
        width: 7%;
    }

    .intake-report-table col.col-name {
        width: 38%;
    }

    .intake-report-table col.col-city {
        width: 12%;
    }

    .intake-report-table col.col-label {
        width: 10%;
    }

    .intake-report-table col.col-num {
        width: 9%;
    }

    .intake-report-table tfoot {
        display: none !important;
    }

    .intake-print-total-row {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .intake-report-table tbody tr:not(.intake-print-total-row) {
        page-break-inside: avoid;
    }

    .intake-report-header {
        padding: 0.75rem 0 0.5rem;
        border-bottom: 1px solid #000 !important;
        text-align: center !important;
    }

    .intake-report-org,
    .intake-report-title {
        text-align: center !important;
    }

    .intake-report-org {
        font-size: 16px;
        font-weight: 400;
    }

    .intake-report-title {
        font-size: 14px;
        font-weight: 400;
    }

    .intake-report-table thead th {
        font-size: 12px;
        font-weight: 400;
        padding: 0.45rem 0.35rem;
        border: 1px solid #000 !important;
        background: #fff !important;
    }

    .intake-report-table thead th small {
        font-size: 10px;
        font-weight: 400;
    }

    .intake-report-table tbody td,
    .intake-report-table tfoot td,
    .intake-print-total-row td {
        font-size: 12px;
        font-weight: 400;
        padding: 0.4rem 0.35rem;
        border: 1px solid #000 !important;
        background: #fff !important;
    }

    .intake-report-table tbody tr:nth-child(even) td {
        background: #fff !important;
    }

    .intake-report-total-row td {
        font-size: 13px;
        font-weight: 400;
        border: 1px solid #000 !important;
        border-top: 2px solid #000 !important;
        background: #fff !important;
    }

    .college-row-inactive {
        display: none !important;
    }
}
