/* =========================================================
   Banking Mitra - Investors Details
   Designed to match the supplied Investors reference
   ========================================================= */

.investors-page-body {
    background: #f8f9ff;
    color: #0b1c30;
    overflow-x: hidden;
}

.investors-main {
    padding: 0 40px 40px;
}

.investors-page-heading {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.investors-page-heading h1 {
    margin: 0;
    color: #000d33;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.investors-page-heading .breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #444650;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
}

.investors-page-heading .breadcrumb strong {
    color: #000d33;
    font-weight: 600;
}

.investors-panel {
    width: 100%;
    background: #ffffff;
    border: 1px solid #c5c6d2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(11, 28, 48, 0.05);
}

.investors-toolbar-top {
    min-height: 84px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(197, 198, 210, 0.5);
    background: #ffffff;
}

.entries-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0b1c30;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
}

.entries-control select {
    width: 44px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid #c5c6d2;
    border-radius: 5px;
    background: #f8f9ff;
    color: #0b1c30;
    font: 500 14px/20px "Inter", sans-serif;
    outline: none;
}

.entries-control select:focus {
    border-color: #115cb9;
    box-shadow: 0 0 0 2px rgba(17, 92, 185, 0.12);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.investor-btn {
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    font: 600 14px/16px "Inter", sans-serif;
    cursor: pointer;
    transition: 0.18s ease;
    white-space: nowrap;
}

.investor-btn-primary {
    padding: 0 18px;
    background: #000d33;
    color: #ffffff;
}

.investor-btn-primary:hover {
    background: #002060;
}

.investor-btn-blue {
    background: #4964ad;
    color: #ffffff;
}

.investor-btn-blue:hover {
    background: #38549a;
}

.investors-filter-row {
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 214px 214px auto;
    align-items: center;
    gap: 12px;
    background: #ffffff;
}

.investor-search,
.date-input-wrap {
    position: relative;
    min-width: 0;
}

.investor-search input,
.date-input-wrap input {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    border: 1px solid #c5c6d2;
    border-radius: 5px;
    background: #ffffff;
    color: #0b1c30;
    outline: none;
    font: 400 14px/20px "Inter", sans-serif;
    transition: 0.18s ease;
}

.investor-search input {
    padding: 0 38px 0 12px;
}

.date-input-wrap input {
    padding: 0 62px 0 12px;
}

.investor-search input::placeholder,
.date-input-wrap input::placeholder {
    color: #757681;
}

.investor-search input:focus,
.date-input-wrap input:focus {
    border-color: #115cb9;
    box-shadow: 0 0 0 2px rgba(17, 92, 185, 0.12);
}

.investor-search > .material-symbols-outlined {
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);
    color: #115cb9;
    font-size: 18px;
    pointer-events: none;
}

.date-input-wrap > .material-symbols-outlined {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #0b1c30;
    font-size: 17px;
    pointer-events: none;
}

.date-input-wrap > .calendar-alt {
    right: 32px;
    color: #4964ad;
}

.filter-button {
    height: 38px;
    min-width: 83px;
    padding: 0 16px;
    border: 0;
    border-radius: 5px;
    background: #757681;
    color: #ffffff;
    font: 600 14px/16px "Inter", sans-serif;
    cursor: pointer;
    transition: 0.18s ease;
}

.filter-button:hover {
    background: #5e5f68;
}

.investors-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
}

.investors-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: "Inter", sans-serif;
}

.investors-table th {
    height: 58px;
    padding: 12px 16px;
    background: #eff4ff;
    border-top: 1px solid #c5c6d2;
    border-bottom: 1px solid #c5c6d2;
    color: #0b1c30;
    font: 600 14px/16px "Inter", sans-serif;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.investors-table td {
    height: 56px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(197, 198, 210, 0.65);
    color: #0b1c30;
    font: 400 14px/20px "Inter", sans-serif;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.investors-table tbody tr:hover {
    background: #f8f9ff;
}

.investors-table th:nth-child(1),
.investors-table td:nth-child(1) {
    width: 58px;
    text-align: left;
}

.investors-table th:nth-child(2),
.investors-table td:nth-child(2) {
    width: 175px;
}

.investors-table th:nth-child(3),
.investors-table td:nth-child(3) {
    width: 150px;
}

.investors-table th:nth-child(4),
.investors-table td:nth-child(4) {
    width: 95px;
}

.investors-table th:nth-child(5),
.investors-table td:nth-child(5) {
    width: 205px;
}

.investors-table th:nth-child(6),
.investors-table td:nth-child(6) {
    width: 150px;
    text-align: right;
}

.investors-table th:nth-child(7),
.investors-table td:nth-child(7) {
    width: 165px;
    text-align: center;
}

.investor-name {
    font-weight: 500 !important;
}

.investor-email {
    color: #444650 !important;
}

.investor-phone {
    font-variant-numeric: tabular-nums;
}

.investor-action {
    overflow: visible !important;
}

.loan-action {
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #000d33;
    color: #ffffff;
    font: 600 12px/16px "Inter", sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.18s ease;
}

.loan-action:hover {
    background: #002060;
    transform: translateY(-1px);
}

.investors-footer {
    min-height: 66px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    color: #444650;
    font: 400 14px/20px "Inter", sans-serif;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c5c6d2;
    border-radius: 5px;
    background: #ffffff;
    color: #444650;
    cursor: pointer;
    font: 500 13px/16px "Inter", sans-serif;
}

.pagination button:hover:not(:disabled) {
    background: #eff4ff;
}

.pagination button.active {
    background: #000d33;
    border-color: #000d33;
    color: #ffffff;
}

.pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagination .material-symbols-outlined {
    font-size: 18px;
}

/* Keep the included sidebar/topbar untouched, while making this page fit them. */
@media (max-width: 1200px) {
    .investors-main {
        padding: 0 24px 32px;
    }

    .investors-filter-row {
        grid-template-columns: 1fr 1fr;
    }

    .investor-search {
        grid-column: 1 / -1;
    }

    .filter-button {
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .investors-main {
        padding: 0 16px 24px;
    }

    .investors-page-heading {
        min-height: 64px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .investors-page-heading h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .investors-toolbar-top {
        padding: 16px;
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .investor-btn {
        flex: 1 1 auto;
    }

    .investors-filter-row {
        padding: 0 16px 16px;
        grid-template-columns: 1fr;
    }

    .investor-search {
        grid-column: auto;
    }

    .filter-button {
        width: 100%;
    }

    .investors-footer {
        padding: 14px 16px;
        align-items: flex-start;
        flex-direction: column;
    }
}
