.directors-page-body {
    background: #f5f7fc;
}

.directors-main {
    padding: 0 24px 30px;
}

.directors-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.directors-heading h1 {
    margin: 0;
    color: #061b4f;
    font-size: 30px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #334155;
}

.breadcrumb strong {
    color: #061b4f;
}

.directors-panel {
    width: 100%;
    background: #ffffff;
    border: 1px solid #c8cedb;
    border-radius: 14px;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.director-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.entries-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #071d4f;
    font-size: 14px;
}

.entries-control select {
    width: 44px;
    height: 38px;
    border: 1px solid #c6ccda;
    border-radius: 4px;
    background: #fff;
    color: #071d4f;
    padding: 0 5px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-add,
.btn-blue,
.filter-button {
    border: 0;
    border-radius: 8px;
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-add {
    background: #001747;
    color: #fff;
}

.btn-blue {
    background: #4b64aa;
    color: #fff;
}

.btn-add:hover,
.btn-blue:hover,
.filter-button:hover {
    opacity: .92;
}

.director-filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 215px 215px 84px;
    gap: 14px;
    margin-bottom: 24px;
}

.director-search,
.date-input-wrap {
    position: relative;
}

.director-search input,
.date-input-wrap input {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    border: 1px solid #c6ccda;
    border-radius: 4px;
    background: #fff;
    color: #14254a;
    font-size: 14px;
    padding: 0 40px 0 13px;
    outline: none;
}

.director-search input:focus,
.date-input-wrap input:focus {
    border-color: #4b64aa;
}

.director-search > .material-symbols-outlined,
.date-input-wrap > .material-symbols-outlined {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #061b4f;
    pointer-events: none;
}

.date-input-wrap .calendar-alt {
    right: 10px;
    display: none;
}

.filter-button {
    background: #737582;
    color: #fff;
}

.director-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #c6ccda;
    border-radius: 10px 10px 0 0;
}

.director-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #071d4f;
    font-size: 14px;
}

.director-table thead {
    background: #eef3ff;
}

.director-table th {
    height: 58px;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 700;
    color: #071d4f;
    border-bottom: 1px solid #c6ccda;
    white-space: nowrap;
}

.director-table td {
    height: 58px;
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #c6ccda;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.director-table tbody tr:last-child td {
    border-bottom: 0;
}

.director-table tbody tr:hover {
    background: #fafbff;
}

.director-table th:nth-child(1),
.director-table td:nth-child(1) {
    width: 48px;
    text-align: center;
}

.director-table th:nth-child(2),
.director-table td:nth-child(2) {
    width: 145px;
}

.director-table th:nth-child(3),
.director-table td:nth-child(3) {
    width: 110px;
}

.director-table th:nth-child(4),
.director-table td:nth-child(4) {
    width: 115px;
}

.director-table th:nth-child(5),
.director-table td:nth-child(5) {
    width: 80px;
}

.director-table th:nth-child(6),
.director-table td:nth-child(6) {
    width: 185px;
}

.director-table th:nth-child(7),
.director-table td:nth-child(7) {
    width: 135px;
}

.director-table th:nth-child(8),
.director-table td:nth-child(8) {
    width: 150px;
}

.name-cell {
    font-weight: 500;
    white-space: normal !important;
    line-height: 1.35;
}

.email-cell {
    max-width: 185px;
}

.action-cell {
    text-align: center;
}

.loan-action {
    height: 30px;
    padding: 0 13px;
    border: 0;
    border-radius: 16px;
    background: #001747;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.loan-action:hover {
    background: #0a2865;
}

.director-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 18px;
    color: #475569;
    font-size: 13px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination button {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid #c6ccda;
    border-radius: 5px;
    background: #fff;
    color: #071d4f;
    cursor: pointer;
}

.pagination button.active {
    background: #001747;
    color: #fff;
    border-color: #001747;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .directors-main {
        padding: 18px 14px 25px;
    }

    .directors-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .directors-heading h1 {
        font-size: 24px;
    }

    .director-toolbar-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .btn-add,
    .btn-blue {
        flex: 1;
    }

    .director-filter-row {
        grid-template-columns: 1fr;
    }

    .director-search input,
    .date-input-wrap input {
        height: 42px;
    }

    .filter-button {
        width: 100%;
    }

    .directors-panel {
        padding: 15px;
    }

    .director-footer {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 520px) {

    .directors-panel {
        padding: 12px;
        border-radius: 10px;
    }

    .toolbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .btn-add {
        grid-column: 1 / -1;
    }

}