.bhv-wrap {
    --bhv-navy: #061E4E;
    --bhv-blue: #2F80ED;
    --bhv-blue-hover: #176fd9;
    --bhv-border: #e1e7ef;
    --bhv-text: #303642;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    box-sizing: border-box;
}
.bhv-intro {
    margin: 0 0 24px;
    text-align: center;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}
.bhv-table-scroll { width: 100%; }
.bhv-table-card { width: 100%; }
.bhv-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    color: var(--bhv-text);
    font-size: 14px;
}
.bhv-table thead th {
    background: var(--bhv-navy);
    color: #fff;
    padding: 15px 18px;
    text-align: left;
    font-weight: 600;
    border: 0;
    white-space: nowrap;
}
.bhv-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--bhv-border);
    vertical-align: middle;
    background: #fff;
}
.bhv-table tbody tr:last-child td { border-bottom: 0; }
.bhv-table tbody tr:hover td { background: #f8fbff; }
.bhv-sortable { cursor: pointer; user-select: none; }
.bhv-sortable:focus { outline: 2px solid rgba(255,255,255,.9); outline-offset: -4px; }
.bhv-sort-icon { margin-left: 6px; opacity: .85; font-size: 13px; }
.bhv-apply-head,
.bhv-apply-cell { text-align: right !important; }
.bhv-apply-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}
.bhv-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 9px 14px;
    background: var(--bhv-blue);
    color: #fff !important;
    border: 1px solid var(--bhv-blue);
    border-radius: 7px;
    text-decoration: none !important;
    font-weight: 600;
    line-height: 1.15;
    box-sizing: border-box;
    box-shadow: 0 3px 8px rgba(47,128,237,.16);
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bhv-apply-btn:hover,
.bhv-apply-btn:focus {
    background: var(--bhv-blue-hover);
    border-color: var(--bhv-blue-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(47,128,237,.22);
}
.bhv-empty {
    padding: 24px;
    border: 1px solid var(--bhv-border);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    color: #697386;
}

/* Desktop/tablet vacancy table. Mobile layout below remains unchanged. */
@media (min-width: 768px) {
    .bhv-table-card {
        overflow: hidden;
        border: 1px solid #d9e2ec;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 10px 28px rgba(6,30,78,.08);
    }
    .bhv-table {
        border-collapse: separate !important;
        border-spacing: 0 !important;
        table-layout: auto !important;
    }
    .bhv-table thead th {
        padding: 16px 18px;
        font-weight: 700;
        letter-spacing: .01em;
        border: 0 !important;
    }
    .bhv-table thead th:first-child { border-top-left-radius: 13px; }
    .bhv-table thead th:last-child { border-top-right-radius: 13px; }

    .bhv-table thead th:nth-child(1) { width: 21%; }
    .bhv-table thead th:nth-child(2) { width: 29%; }
    .bhv-table thead th:nth-child(3) { width: 20%; }
    .bhv-table thead th:nth-child(4) { width: 14%; }
    .bhv-table thead th:nth-child(5) { width: 1%; }

    .bhv-table tbody td {
        padding: 16px 18px;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid #e3e9f0 !important;
        transition: background-color .18s ease, color .18s ease;
    }
    .bhv-table tbody tr:nth-child(odd) td {
        background: #ffffff !important;
    }
    .bhv-table tbody tr:nth-child(even) td {
        background: #f5f8fc !important;
    }
    .bhv-table tbody tr:hover td {
        background: #eaf3ff !important;
    }
    .bhv-table tbody tr:last-child td {
        border-bottom: 0 !important;
    }
    .bhv-table tbody td:nth-child(1) {
        color: #102b60;
        font-weight: 700;
    }
    .bhv-table tbody td:nth-child(2) {
        font-weight: 500;
    }
    .bhv-table tbody td:nth-child(3) {
        color: #455268;
        font-weight: 500;
        white-space: nowrap;
    }
    .bhv-table tbody td:nth-child(4) {
        color: #102b60;
        font-weight: 700;
        white-space: nowrap;
    }
    .bhv-apply-head,
    .bhv-apply-cell {
        width: 1% !important;
        min-width: 1px;
        white-space: nowrap !important;
        text-align: right !important;
    }
    .bhv-apply-cell {
        padding-left: 10px !important;
        padding-right: 16px !important;
    }
    .bhv-apply-head {
        padding-left: 10px !important;
        padding-right: 16px !important;
    }
    .bhv-apply-actions {
        display: inline-flex;
        width: auto !important;
        min-width: 0;
        justify-content: flex-end;
    }
}

@media (max-width: 767px) {
    .bhv-intro { text-align: left; }
    .bhv-table,
    .bhv-table thead,
    .bhv-table tbody,
    .bhv-table tr,
    .bhv-table th,
    .bhv-table td { display: block; width: 100% !important; }
    .bhv-table-card { border: 0; box-shadow: none; overflow: visible; }
    .bhv-table { box-shadow: none; background: transparent; }
    .bhv-table thead { display: none; }
    .bhv-table tbody tr {
        margin-bottom: 14px;
        border: 1px solid var(--bhv-border);
        background: #fff;
        box-shadow: 0 3px 12px rgba(6,30,78,.05);
    }
    .bhv-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 11px 14px;
        text-align: right;
        border-bottom: 1px solid var(--bhv-border);
    }
    .bhv-table tbody td::before {
        content: attr(data-label);
        color: var(--bhv-navy);
        font-weight: 600;
        text-align: left;
    }
    .bhv-table tbody td.bhv-apply-cell {
        display: block;
        padding: 14px;
        text-align: center !important;
    }
    .bhv-table tbody td.bhv-apply-cell::before { display: none; }
    .bhv-apply-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .bhv-apply-btn {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
}
