/* =========================================================
   APPLICATIONS TABLE - FINAL CLEAN FIX
   No horizontal scroll
   No overlapping
   Light spacing
   ========================================================= */

.applications-fit-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.applications-fit-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;

    box-sizing: border-box !important;
}

/* All cells */
.applications-fit-table th,
.applications-fit-table td {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;

    padding: 10px 9px !important;

    vertical-align: middle !important;
    text-align: left !important;

    overflow: hidden !important;
}

/* =========================================================
   COLUMN WIDTHS
   ========================================================= */

/* Candidate */
.applications-fit-table th:nth-child(1),
.applications-fit-table td:nth-child(1) {
    width: 16% !important;
}

/* Email */
.applications-fit-table th:nth-child(2),
.applications-fit-table td:nth-child(2) {
    width: 17% !important;
}

/* Phone */
.applications-fit-table th:nth-child(3),
.applications-fit-table td:nth-child(3) {
    width: 11% !important;
}

/* Course */
.applications-fit-table th:nth-child(4),
.applications-fit-table td:nth-child(4) {
    width: 17% !important;
}

/* Status */
.applications-fit-table th:nth-child(5),
.applications-fit-table td:nth-child(5) {
    width: 8% !important;
}

/* Resume */
.applications-fit-table th:nth-child(6),
.applications-fit-table td:nth-child(6) {
    width: 12% !important;
}

/* Actions */
.applications-fit-table th:nth-child(7),
.applications-fit-table td:nth-child(7) {
    width: 19% !important;
}


/* =========================================================
   TEXT CELLS
   ========================================================= */

/* Candidate name */
.applications-fit-table td:nth-child(1) {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
}

/* Email */
.applications-fit-table td:nth-child(2) {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
}

/* Phone */
.applications-fit-table td:nth-child(3) {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}


/* =========================================================
   COURSE BADGE - IMPORTANT
   ========================================================= */

.applications-fit-table td:nth-child(4) {
    overflow: hidden !important;
}

.applications-fit-table td:nth-child(4) * {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.applications-fit-table td:nth-child(4) span,
.applications-fit-table td:nth-child(4) div,
.applications-fit-table td:nth-child(4) p {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-width: 100% !important;
}

.applications-fit-table td:nth-child(4) span {
    display: inline-block !important;
}


/* =========================================================
   STATUS
   ========================================================= */

.applications-fit-table td:nth-child(5) {
    overflow: hidden !important;
}

.applications-fit-table td:nth-child(5) * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.applications-fit-table td:nth-child(5) span {
    display: inline-block !important;
    white-space: nowrap !important;
}


/* =========================================================
   RESUME
   ========================================================= */

.applications-fit-table td:nth-child(6) {
    white-space: nowrap !important;
}

.applications-fit-table td:nth-child(6) button,
.applications-fit-table td:nth-child(6) a {
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.applications-fit-table td:nth-child(7) {
    white-space: nowrap !important;
}

.applications-fit-table td:nth-child(7) > div {
    width: 100% !important;
    max-width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 5px !important;
    flex-wrap: nowrap !important;

    box-sizing: border-box !important;
}

.applications-fit-table td:nth-child(7) button,
.applications-fit-table td:nth-child(7) a {
    flex: 0 0 auto !important;

    margin: 0 !important;

    padding: 8px 10px !important;

    font-size: 12px !important;
    line-height: 1.1 !important;

    white-space: nowrap !important;

    box-sizing: border-box !important;
}


/* =========================================================
   HEADER
   ========================================================= */

.applications-fit-table thead th {
    font-size: 14px !important;
    font-weight: 700 !important;

    white-space: nowrap !important;

    padding: 11px 9px !important;
}


/* =========================================================
   ROWS
   ========================================================= */

.applications-fit-table tbody tr {
    height: auto !important;
}

.applications-fit-table tbody td {
    font-size: 13px !important;
    line-height: 1.3 !important;
}


/* =========================================================
   LIGHT ROW SEPARATION
   ========================================================= */

.applications-fit-table tbody tr {
    border-bottom: 1px solid #edf0f3 !important;
}


/* =========================================================
   PREVENT PAGE HORIZONTAL SCROLL
   ========================================================= */

html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1200px) {

    .applications-fit-table th,
    .applications-fit-table td {
        padding: 8px 7px !important;
    }

    .applications-fit-table thead th {
        font-size: 12px !important;
    }

    .applications-fit-table tbody td {
        font-size: 12px !important;
    }

    .applications-fit-table td:nth-child(7) button,
    .applications-fit-table td:nth-child(7) a {
        padding: 7px 8px !important;
        font-size: 11px !important;
    }

    .applications-fit-table td:nth-child(7) > div {
        gap: 4px !important;
    }
}


/* =========================================================
   SMALL SCREEN
   ========================================================= */

@media (max-width: 768px) {

    .applications-fit-table th,
    .applications-fit-table td {
        padding: 7px 5px !important;
    }

    .applications-fit-table thead th {
        font-size: 10px !important;
    }

    .applications-fit-table tbody td {
        font-size: 10px !important;
    }

    .applications-fit-table td:nth-child(7) button,
    .applications-fit-table td:nth-child(7) a {
        padding: 6px 5px !important;
        font-size: 10px !important;
    }

    .applications-fit-table td:nth-child(7) > div {
        gap: 3px !important;
    }
}

/* =====================================================
   APPLICATIONS TABLE - FINAL POLISH
   ===================================================== */

.applications-fit-table {
    width: 100% !important;
    table-layout: fixed !important;
}

/* Candidate - more space */
.applications-fit-table th:nth-child(1),
.applications-fit-table td:nth-child(1) {
    width: 17% !important;
    padding-left: 12px !important;
    padding-right: 8px !important;
}

/* Email - more space */
.applications-fit-table th:nth-child(2),
.applications-fit-table td:nth-child(2) {
    width: 18% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Phone */
.applications-fit-table th:nth-child(3),
.applications-fit-table td:nth-child(3) {
    width: 11% !important;
}

/* Course */
.applications-fit-table th:nth-child(4),
.applications-fit-table td:nth-child(4) {
    width: 16% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Status */
.applications-fit-table th:nth-child(5),
.applications-fit-table td:nth-child(5) {
    width: 8% !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
}

/* Resume */
.applications-fit-table th:nth-child(6),
.applications-fit-table td:nth-child(6) {
    width: 12% !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
}

/* Actions */
.applications-fit-table th:nth-child(7),
.applications-fit-table td:nth-child(7) {
    width: 18% !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
}


/* =====================================================
   CANDIDATE + EMAIL CLEAN WRAP
   ===================================================== */

.applications-fit-table td:nth-child(1),
.applications-fit-table td:nth-child(2) {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.25 !important;
}

/* Don't cut candidate name */
.applications-fit-table td:nth-child(1) {
    overflow: visible !important;
}


/* =====================================================
   COURSE BADGE
   ===================================================== */

.applications-fit-table td:nth-child(4) {
    overflow: hidden !important;
}

.applications-fit-table td:nth-child(4) span {
    display: inline-block !important;
    max-width: 100% !important;

    padding: 7px 9px !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;

    line-height: 1.2 !important;
    box-sizing: border-box !important;
}


/* =====================================================
   STATUS BADGE
   ===================================================== */

.applications-fit-table td:nth-child(5) span {
    display: inline-block !important;
    max-width: 100% !important;

    padding: 7px 9px !important;

    white-space: nowrap !important;
    line-height: 1 !important;

    box-sizing: border-box !important;
}


/* =====================================================
   RESUME BUTTON
   ===================================================== */

.applications-fit-table td:nth-child(6) button,
.applications-fit-table td:nth-child(6) a {
    padding: 8px 10px !important;
    font-size: 12px !important;

    white-space: nowrap !important;
}


/* =====================================================
   ACTION BUTTONS
   ===================================================== */

.applications-fit-table td:nth-child(7) > div {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 5px !important;
    width: 100% !important;
}

.applications-fit-table td:nth-child(7) button,
.applications-fit-table td:nth-child(7) a {
    padding: 8px 9px !important;
    margin: 0 !important;

    font-size: 12px !important;
    line-height: 1.1 !important;

    white-space: nowrap !important;
}


/* =====================================================
   ROW SPACING
   ===================================================== */

.applications-fit-table tbody td {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}


/* =====================================================
   HEADER
   ===================================================== */

.applications-fit-table thead th {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}


/* =====================================================
   LAPTOP
   ===================================================== */

@media (max-width: 1200px) {

    .applications-fit-table th,
    .applications-fit-table td {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .applications-fit-table td:nth-child(7) button,
    .applications-fit-table td:nth-child(7) a {
        padding: 7px 7px !important;
        font-size: 11px !important;
    }

    .applications-fit-table td:nth-child(6) button,
    .applications-fit-table td:nth-child(6) a {
        padding: 7px 8px !important;
        font-size: 11px !important;
    }
}


/* =====================================================
   NO HORIZONTAL PAGE SCROLL
   ===================================================== */

html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ===== FINAL MICRO POLISH ===== */

/* Candidate */
.applications-fit-table th:nth-child(1),
.applications-fit-table td:nth-child(1) {
    width: 18% !important;
}

/* Email */
.applications-fit-table th:nth-child(2),
.applications-fit-table td:nth-child(2) {
    width: 19% !important;
}

/* Phone */
.applications-fit-table th:nth-child(3),
.applications-fit-table td:nth-child(3) {
    width: 11% !important;
}

/* Course */
.applications-fit-table th:nth-child(4),
.applications-fit-table td:nth-child(4) {
    width: 15% !important;
}

/* Status */
.applications-fit-table th:nth-child(5),
.applications-fit-table td:nth-child(5) {
    width: 8% !important;
}

/* Resume */
.applications-fit-table th:nth-child(6),
.applications-fit-table td:nth-child(6) {
    width: 12% !important;
}

/* Actions */
.applications-fit-table th:nth-child(7),
.applications-fit-table td:nth-child(7) {
    width: 17% !important;
}

/* Slightly cleaner typography */
.applications-fit-table tbody td {
    font-size: 12.5px !important;
}

/* Candidate name should stay readable */
.applications-fit-table td:nth-child(1) {
    font-weight: 600 !important;
}

/* Email */
.applications-fit-table td:nth-child(2) {
    font-size: 12.5px !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

/* Course badge */
.applications-fit-table td:nth-child(4) span {
    padding: 6px 8px !important;
    line-height: 1.15 !important;
}

/* Buttons slightly compact */
.applications-fit-table td:nth-child(6) button,
.applications-fit-table td:nth-child(6) a,
.applications-fit-table td:nth-child(7) button,
.applications-fit-table td:nth-child(7) a {
    padding: 7px 9px !important;
    font-size: 11.5px !important;
}

/* Small consistent gap */
.applications-fit-table td:nth-child(7) > div {
    gap: 4px !important;
}

