/* Colours here come from the :root token block at the top of site.css. Every
   page that links this file (Recruitment, SelectionPost, Nomination,
   Miscellaneous, Tender, Department) renders through _Layout, which links
   site.css, so the tokens are always defined.

   ===============================
Recruitment / Vacancy Page
=================================*/
.recruitment-page {
    margin-bottom: 50px;
}

/* ===============================
Table Controls (Show + Search)
=================================*/
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
}

    .table-controls select {
        padding: 4px 6px;
        font-size: 13px;
    }

    .table-controls input {
        padding: 5px 8px;
        font-size: 13px;
        width: 180px;
    }

/* ===============================
Vacancy Table Styling
=================================*/
#vacancyTable {
    background: #fff;
    margin-top: 10px;
}

    #vacancyTable thead {
        background-color: var(--brand-maroon) !important;
        color: white;
    }

    #vacancyTable th {
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        padding: 10px;
        color: white !important;
    }

    #vacancyTable td {
        font-size: 14px;
        padding: 10px;
        vertical-align: middle;
    }

    #vacancyTable tbody tr:hover {
        background-color: #f5f5f5;
    }

    /* ===============================
Title Link
=================================*/
    #vacancyTable td a {
        text-decoration: none;
        color: var(--link-blue);
        font-weight: 500;
    }

        #vacancyTable td a:hover {
            text-decoration: underline;
        }

/* ===============================
Download Button
=================================*/
.btn-danger {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 3px;
}

/* ===============================
OLD Recruitment Box Layout
(kept for compatibility)
=================================*/
.recruitment-box {
    background: #f4f4f4;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .recruitment-box .box-header {
        background: var(--recruitment-blue);
        color: #fff;
        padding: 12px;
        text-align: center;
        font-weight: 600;
        font-size: 15px;
    }

    .recruitment-box .box-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background: #e9e9e9;
        font-size: 14px;
    }

        .recruitment-box .box-controls select {
            padding: 4px 6px;
            font-size: 13px;
        }

        .recruitment-box .box-controls input {
            padding: 5px 8px;
            font-size: 13px;
            width: 160px;
        }

    .recruitment-box .box-body {
        max-height: 350px;
        overflow-y: auto;
        padding: 10px 15px;
    }

.pdf-badge {
    background: #d9534f;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
}

/* ===============================
Responsive
=================================*/
@media (max-width: 768px) {


    .table-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .table-controls input {
        width: 100%;
    }


}

/* ==========================================
   Heading
========================================== */

.recruitment-page h4 {
    color: var(--brand-maroon);
    font-weight: 700;
}

    .recruitment-page h4::after {
        content: "";
        width: 120px;
        height: 3px;
        background: var(--brand-maroon);
        display: block;
        margin: 10px auto 0;
    }

/* ==========================================
   Table
========================================== */

.table th {
    text-align: center;
    vertical-align: middle;
}

.table td {
    vertical-align: top;
}

.exam-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 4px;
    max-width: 100%;
    margin-bottom: 16px;
    overflow-x: auto;
    vertical-align: top;
    border-bottom: 1px solid var(--brand-maroon);
}

.exam-tab {
    display: inline-block;
    flex: 0 0 auto;
    border: 1px solid #d7c3c6;
    border-bottom: 0;
    color: #333;
    background: #f4f4f4;
    padding: 10px 12px;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.exam-tab:focus,
.exam-tab:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--brand-maroon);
}

.exam-tab.active {
    background: var(--brand-maroon);
    color: #fff;
}

.exam-group-row td {
    background: #f6ecee;
}

.col-uploaded-date {
    width: 130px;
}

.pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
}