/* =========================================================
   MEMBER VIEW MODAL
   Professional / Clean / Readable
   ========================================================= */


/* =========================================================
   MODAL
   ========================================================= */

#memberViewModal .modal-dialog {
    max-width: 1180px;
}

#memberViewModal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}

#memberViewModal .modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #e9edf3;
    background: #ffffff;
}

#memberViewModal .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #172033;
    letter-spacing: -0.15px;
}

#memberViewModal .modal-body {
    padding: 0;
    font-size: 15px;
    color: #334155;
}


/* =========================================================
   PROFILE WRAPPER
   ========================================================= */

.member-profile-wrapper {
    display: flex;
    min-height: 560px;
    background: #ffffff;
}


/* =========================================================
   PROFILE SIDEBAR
   ========================================================= */

.member-profile-sidebar {
    width: 245px;
    flex: 0 0 245px;
    padding: 34px 24px;
    background: #f8fafc;
    border-right: 1px solid #e8edf3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   PROFILE AVATAR
   ========================================================= */

.member-profile-avatar-wrap {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.member-profile-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}


/* =========================================================
   PROFILE NAME
   ========================================================= */

.member-profile-name {
    max-width: 190px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    color: #172033;
    word-break: break-word;
    margin-bottom: 6px;
}

.member-profile-id {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 14px;
}


/* =========================================================
   PROFILE STATUS
   ========================================================= */

.member-profile-status {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.member-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 27px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
   PROFILE CONTENT
   ========================================================= */

.member-profile-content {
    flex: 1;
    min-width: 0;
    padding: 30px;
    background: #ffffff;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.member-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.member-section-title-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 17px;
}

.member-section-title h6 {
    margin: 0 0 3px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #172033;
}

.member-section-title span {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
}


/* =========================================================
   INFORMATION GRID
   ========================================================= */

.member-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}


/* =========================================================
   INFORMATION BOX
   ========================================================= */

.member-info-box {
    min-width: 0;
    padding: 13px 15px;
    background: #ffffff;
    border: 1px solid #e7ebf0;
    border-radius: 10px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.member-info-box:hover {
    border-color: #d8dee8;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.045);
}


/* =========================================================
   INFORMATION LABEL
   ========================================================= */

.member-info-label {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    color: #64748b;
}


/* =========================================================
   INFORMATION VALUE
   ========================================================= */

.member-info-value {
    min-height: 22px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    color: #1e293b;
    word-break: break-word;
    overflow-wrap: anywhere;
}


/* =========================================================
   N/A
   ========================================================= */

.member-na {
    color: #94a3b8;
    font-weight: 400;
}


/* =========================================================
   TABS
   ========================================================= */

#memberViewModal .nav-tabs {
    padding: 0 24px;
    border-bottom: 1px solid #e7ebf0;
    background: #ffffff;
    gap: 4px;
}

#memberViewModal .nav-tabs .nav-link {
    position: relative;
    padding: 13px 15px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

#memberViewModal .nav-tabs .nav-link:hover {
    color: #1e293b;
}

#memberViewModal .nav-tabs .nav-link.active {
    color: #172033;
    background: transparent;
}

#memberViewModal .nav-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: #172033;
}


/* =========================================================
   TAB CONTENT
   ========================================================= */

#memberViewModal .tab-content {
    padding: 24px;
}

#memberViewModal .tab-pane {
    min-height: 300px;
}


/* =========================================================
   TABLE WRAPPER
   ========================================================= */

.member-table-wrapper {
    width: 100%;
    border: 1px solid #e7ebf0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}


/* =========================================================
   TABLE
   ========================================================= */

.member-details-table {
    width: 100%;
    margin: 0;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}

.member-details-table thead th {
    padding: 13px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5eaf0;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    white-space: nowrap;
}

.member-details-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf0f4;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    vertical-align: middle;
}

.member-details-table tbody tr:last-child td {
    border-bottom: 0;
}

.member-details-table tbody tr:hover {
    background: #fafbfc;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.member-empty-state {
    min-height: 260px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.member-empty-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 22px;
}

.member-empty-title {
    margin-bottom: 5px;
    color: #334155;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.member-empty-message {
    max-width: 420px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   LOADING
   ========================================================= */

.member-loading {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   MODAL CLOSE BUTTON
   ========================================================= */

#memberViewModal .btn-close {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

#memberViewModal .btn-close:hover {
    opacity: 0.9;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

#memberViewModal .modal-body::-webkit-scrollbar,
.member-profile-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#memberViewModal .modal-body::-webkit-scrollbar-thumb,
.member-profile-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#memberViewModal .modal-body::-webkit-scrollbar-track,
.member-profile-content::-webkit-scrollbar-track {
    background: transparent;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    #memberViewModal .modal-dialog {
        max-width: 95%;
    }

    .member-profile-wrapper {
        flex-direction: column;
    }

    .member-profile-sidebar {
        width: 100%;
        flex: none;
        padding: 25px 20px;
        border-right: 0;
        border-bottom: 1px solid #e8edf3;
    }

    .member-profile-avatar-wrap {
        width: 90px;
        height: 90px;
    }

    .member-profile-name {
        font-size: 19px;
    }

    .member-profile-content {
        padding: 24px;
    }

    .member-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    #memberViewModal .modal-dialog {
        max-width: calc(100% - 20px);
        margin: 10px auto;
    }

    #memberViewModal .modal-header {
        padding: 15px 17px;
    }

    #memberViewModal .modal-title {
        font-size: 17px;
    }

    .member-profile-sidebar {
        padding: 22px 16px;
    }

    .member-profile-content {
        padding: 18px 16px;
    }

    .member-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .member-info-box {
        padding: 12px 14px;
    }

    .member-info-value {
        font-size: 14px;
    }

    #memberViewModal .nav-tabs {
        padding: 0 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    #memberViewModal .nav-tabs .nav-link {
        padding: 12px 11px;
        font-size: 13px;
        white-space: nowrap;
    }

    #memberViewModal .tab-content {
        padding: 16px;
    }

    .member-details-table {
        min-width: 700px;
    }

    .member-details-table thead th,
    .member-details-table tbody td {
        padding: 11px 12px;
    }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 479.98px) {

    #memberViewModal .modal-dialog {
        max-width: calc(100% - 12px);
        margin: 6px auto;
    }

    .member-profile-name {
        font-size: 18px;
    }

    .member-profile-id {
        font-size: 13px;
    }

    .member-section-title h6 {
        font-size: 15px;
    }

    .member-section-title span {
        font-size: 12px;
    }

    .member-info-label {
        font-size: 12px;
    }

    .member-info-value {
        font-size: 14px;
    }
}