:root {
    --primary-color: #036eab;
    --light-bg: #f3fbfe;
    --sidebar-width: 200px;
}

/* ========== BASE STYLES ========== */
body {
    background-color: #f3fbfe;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 0 !important;
    overflow-x: hidden;
    font-family: "Cairo", sans-serif;
}

.form-control {
    font-size: 0.8rem !important;
    text-align: center !important;
}

.modal-backdrop {
    width: 100vw !important;
}

.mian-header {
    position: sticky !important;
    width: 100% !important;
    z-index: 1000 !important;
    border: 0.5px solid rgb(232, 232, 232) !important;
    top: 0 !important;
}

.main-content {
    align-items: end !important;
}

.sidebar1 {
    position: sticky !important;
    top: 0 !important;
    border: 0.5px solid rgb(232, 232, 232) !important;
    width: 217px !important;
    left: 0 !important;
    height: 100vh !important;
    margin: 0 !important;
}

.smart-search-wrapper {
    width: 100%;
    max-width: 350px; /* choose what you want */
    flex: 1;
}

.smart-search-field {
    position: relative;
}

.smart-search-input {
    padding-left: 4.2rem; /* مساحة للأيقونات */
    cursor: pointer;
    width: 100%;
}

.smart-search-actions {
    position: absolute;
    top: 50%;
    left: 10px; /* شمال */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0px;
    z-index: 5;
    color: #6c757d;
}

    .smart-search-actions i {
        cursor: pointer;
    }

.smart-search-chevron {
    font-size: 0.75rem; /* تصغير السهم */
}

.smart-search-dropdown {
    width: 100%;
}

.smart-search-toggle-btn {
    border: none;
    background-color: unset;
}

.more-btn {
    width: 44px;
    height: 36px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid gray;
    border-radius: 8px;
    padding: 5px 10px;
}

    .more-btn i {
        font-size: 20px;
        color: #6c757d;
    }

    .more-btn::after {
        display: none !important;
    }

    .more-btn:hover {
        background: #f5fbff;
    }


.table thead th {
    position: sticky !important;
    top: 0 !important;
    background: #f8f9fa !important;
}



svg {
    width: 25px;
    height: 25px;
    fill: #086cac;
    transition: fill 0.3s;
    margin-bottom: 0.3rem;
}

.side-icon {
    margin-right: 0.8rem;
}

header svg {
    fill: #576265;
}

/* ========== SIDEBAR ========== */
.sidebar1 {
    transition: all 0.3s ease !important;
    background-color: white !important;
    flex-shrink: 0;
}



.sidebar-mobile.open {
    transform: translateX(0);
}

.sidebar1 .logo {
    text-align: center !important;
    font-size: 2.4rem !important;
}

    .sidebar1 .logo span {
        font-size: 2.4rem !important;
    }

.logo {
    color: var(--primary-color);
    font-weight: bold;
    font-family: sans-serif;
}

    .logo span {
        background-color: var(--primary-color);
        color: white;
        border-radius: 50%;
        margin-left: 4px;
        font-size: 1.2rem;
        padding: 0.6rem 0.4rem;
    }

.nav-link,
.nav-summary {
    color: #363635;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

    .nav-link:hover,
    .nav-summary:hover {
        background-color: rgba(3, 110, 171, 0.1);
        color: var(--primary-color);
    }

.nav-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dropdown-toggle::after {
    content: "\F282" !important;
    border: none !important;
}

.nav-summary::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    margin-left: auto;
    transition: transform 0.3s;
}

.nav-item:first-child .nav-summary::after {
    content: none;
}

.nav-summary[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.nav-submenu {
    margin-left: 2rem;
}

.nav-summary2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: small;
    cursor: pointer;
}

    .nav-summary2 svg {
        width: 20px;
        height: 20px;
        margin: 0;
        padding: 0;
    }

    .nav-summary2::after {
        content: "\F282";
        font-family: "bootstrap-icons";
        font-size: 10px;
        margin-left: 0;
        order: -1;
        transition: transform 0.3s;
        font-weight: bold;
    }

    .nav-summary2[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

/* ========== FORM STYLES ========== */
.form-card {
    background: #fff;
    padding: 45px 35px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    width: 40%;
    transition: all 0.3s ease;
}

.form-title {
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    color: #036eab;
    margin-bottom: 10px;
}

    .form-title span {
        background-color: #036eab;
        color: #fff;
        padding: 0.6rem 0.4rem;
        border-radius: 50%;
    }

.btn-copy {
    background-color: #343a40;
    color: #fff;
    font-weight: 500;
    width: 120px;
    transition: 0.2s ease;
}

    .btn-copy:hover {
        background-color: #000;
        color: #fff;
    }

.btn-save {
    background-color: #036eab;
    color: #fff;
    font-weight: 500;
    width: 120px;
    transition: 0.2s ease;
}

    .btn-save:hover {
        background-color: #025c8c;
        color: #fff;
    }

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: none !important;
}

/* ========== DASHBOARD CARDS ========== */
.stats-card {
    background: #e9f4fb;
    border-radius: 26px;
    padding: 12px;
    min-height: 80px !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border-left: 6px solid #0d74b9;
}

.stats-icon {
    font-size: 30px;
    color: #0d74b9;
}

.stats-number {
    font-size: 19px;
    font-weight: 700;
    color: #0d74b9;
}

.stats-title {
    color: #687286;
    font-weight: 500;
}

    .stats-title i {
        font-size: 22px;
    }

.growth-box {
    background: #dff4e6;
    color: #4e8b63;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

    .growth-box i {
        font-size: 14px;
    }

.dash-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #d9e8ef;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.03);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #0b72b5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-item {
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.view-all {
    background: #eaf5ff;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    color: #0b72b5;
    cursor: pointer;
}

.visit-item {
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.status {
    color: #0b72b5;
    font-weight: 500;
}

/* ========== CHARTS ========== */
.chart-card {
    background: #f2fbff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #d7e7ef;
}

.chart-container canvas {
    width: 220px !important;
    height: 220px !important;
    margin: auto;
}

.chart-title {
    font-size: 20px;
    font-weight: 600;
    margin-left: 10px;
    color: #0b4f72;
}

.chart-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.legend-box {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

/* ========== ICONS & BADGES ========== */
.icon-box {
    width: 2rem;
    height: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: relative;
}

.icon {
    font-size: 1rem;
    color: #4b5659;
}

.badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    position: absolute;
    top: 15%;
    right: 15%;
}

.four-circls svg {
    width: 1.1rem;
}

.stat-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-value {
    color: var(--primary-color);
    font-weight: bold;
}

.progress {
    height: 0.5rem;
}

.chart-container {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.notification-badge {
    background-color: rgba(3, 110, 171, 0.1);
    color: var(--primary-color);
}

.status-badge {
    background-color: rgba(3, 110, 171, 0.1);
    color: var(--primary-color);
}

/* ========== TABLES ========== */
.table {
    min-width: 1178px;
    width: 100% !important;
    border-collapse: collapse;
    overflow-x: auto !important;
    overflow-y: auto !important;
}

.table-responsive {
    height: auto !important;
}

    .table-responsive thead th {
        position: sticky !important;
        top: 0 !important;
        background-color: #f8f9fa !important;
    }

td i {
    cursor: pointer !important;
    color: #025c8c !important;
}

.form-label {
    margin: 0 !important;
}

.custom-border {
    border-color: #e5e5e5 !important;
}

/* ========== PAGINATION ========== */
.pagination-container {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 8px 20px;
}

.page-item .page-link {
    border: none;
    color: #6c7a89;
    font-weight: 500;
}

.page-item.active .page-link {
    background-color: #0d3344;
    color: white;
    border-radius: 6px;
}

.page-link:hover {
    background-color: #f1f1f1;
    border-radius: 6px;
}

.disabled .page-link {
    opacity: 0.4;
}

.items-select {
    background: #f3f3f3;
    border-radius: 10px;
    padding: 6px 12px;
    border: none;
    font-weight: 500;
}

.pagination.numbers-rtl {
    direction: rtl;
}

    .pagination.numbers-rtl .page-link {
        direction: ltr;
    }


.custom-modal {
    border-radius: 22px;
    padding: 10px !important;
}

.main-container2 {
    margin-top: 0.2rem !important;
}

.my-center {
    width: 100% !important;
}

.custom-modal .modal-header {
    padding: 20px 30px !important;
    border-bottom: 1px solid #e5e5e5;
}

.full-width {
    width: 100% !important;
}

.custom-modal .modal-body {
    padding: 30px 40px !important;
}

#uploadBox i {
    color: rgb(48, 48, 48) !important;
}

.modal-body > div {
    border: 0.5px solid rgb(229, 229, 229) !important;
    border-radius: 10px !important;
    padding: 0.4rem !important;
    overflow-x: hidden;
    margin-top: 0.01rem !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 30px;
}

    .form-grid .full {
        grid-column: span 3;
    }

.upload-box {
    border: 2px dashed #c7c7c7;
    border-radius: 12px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

    .upload-box i {
        font-size: 30px;
        color: #086cac;
    }

    .upload-box p {
        margin: 5px 0 0;
    }

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

    .overlay.active {
        display: block;
    }

.no-arrow::after {
    display: none !important;
}



@media (max-width: 768px) {
    .sidebar-mobile {
        position: relative;
        transform: translateX(0);
        height: 100vh;
        bottom: 0 !important;
    }

    .header-responsive {
        display: flex !important;
        flex-dirmection: column-reverse !important;
    }
}

/* Tablet & Small Desktop */
@media (max-width: 1200px) {
    #openRoleModal {
        white-space: nowrap !important;
        font-size: 14px !important;
    }

    .position-relative input {
        min-width: 180px !important;
    }
}

@media (max-width: 992px) {
    .form-card {
        width: 80%;
    }

    .position-relative input {
        min-width: 100% !important;
    }

    .gap-3 {
        gap: 10px !important;
    }

    .pagination-container {
        gap: 15px !important;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .role-modal * {
        font-size: 7px !important;
    }

    .sidebar1 {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        height: auto;
        width: 280px;
        transform: translateX(100%);
        z-index: 1050;
        scrollbar-width: auto;
    }

    .modal-dialog {
        max-width: 90% !important;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

        .form-grid .full {
            grid-column: span 1;
        }

    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .table-wide {
        min-width: 900px !important;
    }

    .main-user {
        width: 100% !important;
        margin: auto;
    }

    h5 {
        font-size: 16px !important;
    }

    #openRoleModal {
        padding: 6px 15px !important;
    }

    .top-header-mobile,
    .d-flex.w-100.flex-column.flex-md-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    #openRoleModal {
        width: 100% !important;
    }

    .btn-filter-mobile,
    .btn.border.border-info-subtle {
        width: fit-content !important;
        align-self: flex-end !important;
    }

    .pagination-container {
        flex-direction: row !important;
        gap: 10px !important;
        text-align: center;
        white-space: nowrap;
        flex-wrap: nowrap !important;
        width: auto !important;
        overflow-x: auto !important;
    }

    #itemsPerPage {
        width: 100px !important;
    }

    .my-center {
        width: 100% !important;
    }

    header {
        width: 93vw !important;
    }
}

.table td,
.table th {
    padding: 5px !important;
    font-size: 0.8rem !important;
}

@media (max-width: 767px) {
    [id="openRoleModal"] {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    html,
    body {
        overflow-x: hidden !important;
        width: 100vw !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: start !important;
    }

        body > div {
            width: 93vw !important;
            overflow-x: hidden !important;
        }

    .main-content {
        width: 100% !important;
    }

    .mySearch-select {
        visibility: hidden !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .form-card {
        width: 100%;
        padding: 30px 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .btn-copy,
    .btn-save {
        width: 48%;
        font-size: 14px;
    }

    .d-flex {
        gap: 10px;
    }

    .main-content {
        margin-top: 1rem !important;
    }

    .main-user {
        margin: 0 auto !important;
        padding: 15px !important;
        width: 100% !important;
    }

    .stats-card,
    .dash-card,
    .chart-card,
    .visit-item,
    .note-item,
    .upcoming-card,
    .notifications-card {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }

        .stats-card > *,
        .visit-item > *,
        .note-item > * {
            margin-left: auto !important;
            margin-right: auto !important;
        }

    h5 {
        font-size: 15px !important;
    }

    .header-container,
    .d-flex.w-100 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .position-relative {
        width: 100% !important;
    }

        .position-relative input {
            width: 100% !important;
            min-width: unset !important;
        }

    #openRoleModal,
    .btn.border {
        width: 100% !important;
    }

    .modal-dialog {
        max-width: 95% !important;
        margin: auto;
    }

    .modal-body {
        font-size: 0.6rem !important;
    }

    .modal-footer button {
        width: 40% !important;
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
    }

    .modal.show .modal-dialog {
        display: flex !important;
        align-items: center; /* توسيط رأسي */
        justify-content: center; /* توسيط أفقي */
        min-height: 100vh; /* خلي ارتفاعها قد الشاشة */
        margin: 0 auto; /* منع المسافات */
    }

    table thead {
        font-size: 13px !important;
    }

    table tbody td {
        font-size: 13px !important;
    }

    table {
        font-size: 13px !important;
    }


    #rangeText {
        font-size: 14px !important;
    }

    .items-select {
        width: 100px !important;
    }

    .pagination {
        justify-content: center !important;
    }

    .pagination-container {
        flex-direction: row !important;
        gap: 10px !important;
        text-align: center;
        white-space: nowrap;
        flex-wrap: nowrap !important;
        width: auto !important;
        overflow-x: auto !important;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-wrap: nowrap !important;
    }

    .container {
        width: 100% !important;
    }

    .edit-container div {
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }

        .edit-container div div {
            width: 30% !important;
            flex-grow: 0 !important;
            flex-direction: column !important;
        }

    .card {
        width: 100% !important;
        background-color: transparent !important;
    }
}

.fa-edit {
    font-size: 1rem !important; /* أو أكبر */
    color: #086cac !important;
}
/* ================================
   RESPONSIVE – TABLET (768px–991px)
================================ */
@media (min-width: 768px) and (max-width: 991px) {
    header {
        width: 100vw !important;
    }
    /* ===== Sidebar ===== */
    .sidebar1 {
        padding: 20px 15px !important;
    }

        .sidebar1 .logo {
            font-size: 1.6rem !important;
        }

    .side-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .nav-summary {
        font-size: 0.95rem !important;
        gap: 10px !important;
    }

    /* ===== Main Content ===== */
    .main-content {
        width: 100vw !important;
    }

        /* الهيدر الثابت */
        .main-content header {
            padding: 15px !important;
        }

    /* ===== Layout Width ===== */
    .d-flex.gap-4 {
        gap: 1rem !important; /* علشان المسافات متبقاش كبيرة */
    }

    /* ======"Content Cards" إن وُجدت ===== */
    .card {
        padding: 15px !important;
    }

    /* ===== Fix Overflow ===== */
    body,
    html {
        overflow-x: hidden !important;
    }
}

#dataBody tr:hover {
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-user,
    .card {
        border: none !important;
        padding: 0 !important;
        background-color: transparent;
    }

    .my-center {
        margin: auto !important;
    }

    .main-content {
        padding: 0 !important;
        background-color: transparent !important;
    }

    .card-custom,
    .card-body {
        border: none !important;
        border: 1px solid rgb(210, 210, 210) !important;
        background-color: white;
        border-radius: 10px;
        width: 100% !important;
        margin: auto !important;
        padding: 0.6rem !important;
    }

    /* المودال نفسه */
    .location-modal .modal-dialog {
        max-width: 95% !important;
        margin: auto;
    }

    .location-modal .modal-content {
        border-radius: 18px !important;
    }

    .modal-content {
        width: 100vw !important;
    }

        .modal-content #uploadBox {
            height: auto !important;
            text-align: center;
            overflow: hidden !important;
        }

            .modal-content #uploadBox p {
                width: 100%;
            }

            .modal-content #uploadBox i {
                margin: auto !important;
            }

    .location-modal .modal-body {
        padding: 20px !important;
    }

        /* خليهم 2 كولوم زي الصورة */
        .location-modal .modal-body .row > div {
            flex: 0 0 50% !important;
            max-width: 50% !important;
        }

    /* ضبط الحقول */
    .location-modal label {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .location-modal input,
    .location-modal select {
        font-size: 13px;
        padding: 8px 10px !important;
        border-radius: 10px !important;
    }

    /* الفوتر */
    .location-modal .modal-footer {
        flex-direction: row !important;
        gap: 12px !important;
        padding: 18px !important;
    }

        .location-modal .modal-footer .btn {
            width: 40% !important;
        }

    .location-modal .modal-footer {
        flex-wrap: nowrap !important;
    }

    .add-role input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        cursor: pointer;
    }

    .add-role {
        border: none !important;
        box-shadow: none !important;
    }

        .add-role > div > div {
            padding: 0 !important;
            padding: 0 !important;
        }

    #allPermission2, .first-input {
        width: 15%;
    }
}

.modal-narrow {
    max-width: 40vw !important; /* قلّل أو كبّر زي ما تحب */
}

.add-role input[type="checkbox"] {
    cursor: pointer !important;
}

@media (max-width: 768px) {
    .modal-narrow {
        max-width: 95vw !important; /* في الموبايل يرجع طبيعي */
    }

    #allPermission2 {
        justify-content: start !important;
    }
}

@media (max-width: 768px) {
    #viewModal .row {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }

    .main-container2 {
        margin-top: 0 !important;
    }

    .sidebar1 {
        margin: 0 !important;
        bottom: 0 !important;
        left: unset !important;
        width: auto !important;
    }

    #viewModal .row > div {
        width: 100% !important;
    }
}

.row-accepted {
    background-color: #eefdf4 !important; /* أخضر فاتح */
}

.row-rejected {
    background-color: #fdeeee !important; /* أحمر فاتح */
}

.table-header-width {
    width: 150px
}
/* الوضع المصغّر */
.sidebar1.sidebar-mini {
    width: 80px !important;
    padding: 12px !important;
    align-items: center !important;
}

    /* إخفاء النصوص */
    .sidebar1.sidebar-mini .nav-summary {
        justify-content: center !important;
    }

    .sidebar1.sidebar-mini .nav-summary {
        font-size: 0 !important;
    }

        .sidebar1.sidebar-mini .nav-summary svg {
            font-size: 30px !important;
            width: 30px !important;
            height: 30px !important;
        }

    /* اللوجو */
    .sidebar1.sidebar-mini .logo span {
        display: none !important;
    }

    /* الساب منيو */
    .sidebar1.sidebar-mini .nav-submenu {
        display: none !important;
    }

    .sidebar1.sidebar-mini .side-icon {
        margin: 0 !important;
    }

.sidebar-mini .logo {
    visibility: hidden !important;
}

.disabled-select {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.position-relative select {
    padding-right: 2rem;
}

.spinner-border.position-absolute {
    width: 1rem;
    height: 1rem;
}

.zoomable-image {
    transition: transform 0.2s ease;
}

    .zoomable-image:hover {
        transform: scale(1.03);
    }

/* =============================================
   Blacklist Modal – Stylesheet
   ============================================= */

/* ── MODAL CONTENT ── */
.blacklist-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

/* ── HEADER ── */
.blacklist-modal .modal-header {
    background: linear-gradient(135deg, #0a63a3 0%, #1a80c8 100%);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between; /* اتنين على الطرفين */
}

    .blacklist-modal .modal-header .header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .blacklist-modal .modal-header .header-icon {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        color: #fff;
        flex-shrink: 0;
    }

    .blacklist-modal .modal-header .modal-title {
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .blacklist-modal .modal-header .modal-subtitle {
        color: rgba(255, 255, 255, 0.65);
        font-size: 11px;
    }

.blacklist-modal .btn-close-custom {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

    .blacklist-modal .btn-close-custom:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* ── BODY ── */
.blacklist-modal .modal-body {
    padding: 20px 24px;
    background: #f9fafb;
}

/* ── LABELS ── */
.blacklist-modal .field-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    display: block;
}

/* ── INPUT GROUP ── */
.blacklist-modal .input-group-text {
    background: #fff;
    border-color: #e5e7eb;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #9ca3af;
    font-size: 12px;
}

.blacklist-modal .form-control {
    border-color: #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #111827;
    background: #fff;
}

    .blacklist-modal .form-control:focus {
        border-color: #0a63a3;
        box-shadow: 0 0 0 3px rgba(10, 99, 163, 0.1);
        border-left: none;
    }

.blacklist-modal .input-group:focus-within .input-group-text {
    border-color: #0a63a3;
}

/* ── UPLOAD BOX ── */
.blacklist-modal .upload-label {
    cursor: pointer;
    display: block;
    width: 100%;
}

.blacklist-modal .upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

    .blacklist-modal .upload-box:hover {
        border-color: #0a63a3;
        background: #f0f7ff;
    }

.blacklist-modal .upload-icon-box {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: #e8f2fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a63a3;
    font-size: 16px;
}

.blacklist-modal .upload-text-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.blacklist-modal .upload-text-sub {
    font-size: 11px;
    color: #9ca3af;
}

.blacklist-modal .upload-badges {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.blacklist-modal .upload-badge {
    background: #e8f2fb;
    color: #0a63a3;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

/* ── WARNING ── */
.blacklist-modal .warning-bar {
    margin: 0 16px 10px;
    padding: 8px 14px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    font-size: 12px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── FOOTER ── */
.blacklist-modal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.blacklist-modal .btn-save {
    background: linear-gradient(135deg, #0a63a3, #1a80c8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    box-shadow: 0 3px 10px rgba(10, 99, 163, 0.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

    .blacklist-modal .btn-save:hover {
        box-shadow: 0 5px 16px rgba(10, 99, 163, 0.4);
        transform: translateY(-1px);
        color: #fff;
    }

.blacklist-modal .btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    transition: background 0.2s;
}

    .blacklist-modal .btn-cancel:hover {
        background: #e5e7eb;
        color: #111827;
    }

/* =============================================
   Whitelist Modal – Stylesheet
   ============================================= */

/* ── MODAL CONTENT ── */
.whitelist-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    width: 65%;
    margin: auto;
}

/* ── HEADER ── */
.whitelist-modal .modal-header {
    background: linear-gradient(135deg, #0a63a3 0%, #1a80c8 100%);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .whitelist-modal .modal-header .header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .whitelist-modal .modal-header .header-icon {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        color: #fff;
        flex-shrink: 0;
    }

    .whitelist-modal .modal-header .modal-title {
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .whitelist-modal .modal-header .modal-subtitle {
        color: rgba(255, 255, 255, 0.65);
        font-size: 11px;
    }

.whitelist-modal .btn-close-custom {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

    .whitelist-modal .btn-close-custom:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* ── BODY ── */
.whitelist-modal .modal-body {
    padding: 18px 24px;
    background: #f9fafb;
}

/* ── LABELS ── */
.whitelist-modal .field-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    display: block;
}

/* ── INPUT GROUP ── */
.whitelist-modal .input-group-text {
    background: #fff;
    border-color: #e5e7eb;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #9ca3af;
    font-size: 12px;
}

.whitelist-modal .form-control {
    border-color: #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #111827;
    background: #fff;
}

    .whitelist-modal .form-control:focus {
        border-color: #0a63a3;
        box-shadow: 0 0 0 3px rgba(10, 99, 163, 0.1);
        border-left: none;
    }

.whitelist-modal .input-group:focus-within .input-group-text {
    border-color: #0a63a3;
}

.whitelist-modal .form-control:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* ── UPLOAD BOX ── */
.whitelist-modal .upload-label {
    cursor: pointer;
    display: block;
    width: 100%;
}

.whitelist-modal .upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

    .whitelist-modal .upload-box:hover {
        border-color: #0a63a3;
        background: #f0f7ff;
    }

.whitelist-modal .upload-icon-box {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: #e8f2fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a63a3;
    font-size: 16px;
}

.whitelist-modal .upload-text-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.whitelist-modal .upload-text-sub {
    font-size: 11px;
    color: #9ca3af;
}

.whitelist-modal .upload-badges {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.whitelist-modal .upload-badge {
    background: #e8f2fb;
    color: #0a63a3;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

/* ── WARNING ── */
.whitelist-modal .warning-bar {
    margin: 0 16px 10px;
    padding: 8px 14px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    font-size: 12px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── FOOTER ── */
.whitelist-modal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.whitelist-modal .btn-save {
    background: linear-gradient(135deg, #0a63a3, #1a80c8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    box-shadow: 0 3px 10px rgba(10, 99, 163, 0.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

    .whitelist-modal .btn-save:hover {
        box-shadow: 0 5px 16px rgba(10, 99, 163, 0.4);
        transform: translateY(-1px);
        color: #fff;
    }

.whitelist-modal .btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    transition: background 0.2s;
}

    .whitelist-modal .btn-cancel:hover {
        background: #e5e7eb;
        color: #111827;
    }

/* =============================================
   SubLocation Modal – Stylesheet
   ============================================= */

/* ── MODAL CONTENT ── */
.sublocation-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

/* ── HEADER ── */
.sublocation-modal .modal-header {
    background: linear-gradient(135deg, #0a63a3 0%, #1a80c8 100%);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sublocation-modal .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sublocation-modal .header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.sublocation-modal .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.sublocation-modal .modal-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.sublocation-modal .btn-close-custom {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

    .sublocation-modal .btn-close-custom:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* ── BODY ── */
.sublocation-modal .modal-body {
    padding: 18px 24px;
    background: #f9fafb;
}

/* ── LABELS ── */
.sublocation-modal .field-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    display: block;
}

/* ── INPUT GROUP ── */
.sublocation-modal .input-group-text {
    background: #fff;
    border-color: #e5e7eb;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #9ca3af;
    font-size: 12px;
}

.sublocation-modal .form-control,
.sublocation-modal .form-select {
    border-color: #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #111827;
    background: #fff;
}

    .sublocation-modal .form-control:focus,
    .sublocation-modal .form-select:focus {
        border-color: #0a63a3;
        box-shadow: 0 0 0 3px rgba(10, 99, 163, 0.1);
        border-left: none;
    }

.sublocation-modal .input-group:focus-within .input-group-text {
    border-color: #0a63a3;
}

.sublocation-modal .form-control:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* ── WARNING ── */
.sublocation-modal .warning-bar {
    margin: 0 16px 10px;
    padding: 8px 14px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    font-size: 12px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── FOOTER ── */
.sublocation-modal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.sublocation-modal .btn-save {
    background: linear-gradient(135deg, #0a63a3, #1a80c8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    box-shadow: 0 3px 10px rgba(10, 99, 163, 0.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

    .sublocation-modal .btn-save:hover {
        box-shadow: 0 5px 16px rgba(10, 99, 163, 0.4);
        transform: translateY(-1px);
        color: #fff;
    }

.sublocation-modal .btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    transition: background 0.2s;
}

    .sublocation-modal .btn-cancel:hover {
        background: #e5e7eb;
        color: #111827;
    }

@@media (max-width: 767px) {
    .location-header {
        flex-wrap: wrap;
    }

    .location-title {
        font-size: 14px !important;
    }

    .location-table th,
    .location-table td {
        font-size: 11px;
        padding: 6px 4px;
        white-space: nowrap;
    }

    .pagination-container {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start !important;
    }

        .pagination-container input.form-control {
            width: 70px !important;
        }
}

/* =============================================
   Visits Page – Stylesheet
   ============================================= */

/* ── CARD LAYOUT ── */
.visits-page {
    height: calc(107vh - 120px);
    display: flex;
    flex-direction: column;
}

    .visits-page .card-body {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 16px;
    }

/* ── HEADER ── */
.visits-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.visits-title {
    white-space: nowrap;
    font-size: 15px !important;
    cursor: pointer;
}

.visits-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ── TABLE WRAPPER ── */
.visits-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

    .visits-table-wrapper table {
        min-width: 900px;
    }

    .visits-table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #f8f9fa;
        font-size: 13px;
        white-space: nowrap;
        padding: 10px 8px;
    }

    .visits-table-wrapper tbody td {
        font-size: 13px;
        padding: 8px;
        white-space: nowrap;
    }

/* ── ROW STATUS COLORS ── */
.row-accepted {
    background-color: #f0fff4;
    color: #166534;
}

.row-rejected {
    background-color: #fff5f5;
    color: #991b1b;
}

/* ── PAGINATION ── */
.visits-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
    gap: 8px;
}

/* ── MODAL ── */
.visits-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.visits-modal .modal-header {
    background: linear-gradient(135deg, #0a63a3 0%, #1a80c8 100%);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.visits-modal .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.visits-modal .header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.visits-modal .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.visits-modal .modal-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.visits-modal .btn-close-custom {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

    .visits-modal .btn-close-custom:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.visits-modal .modal-body {
    padding: 18px 24px;
    background: #f9fafb;
}

.visits-modal .field-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    display: block;
}

.visits-modal .input-group-text {
    background: #fff;
    border-color: #e5e7eb;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #9ca3af;
    font-size: 12px;
}

.visits-modal .form-control {
    border-color: #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #111827;
    background: #fff;
}

    .visits-modal .form-control:focus {
        border-color: #0a63a3;
        box-shadow: 0 0 0 3px rgba(10, 99, 163, 0.1);
        border-left: none;
    }

.visits-modal .input-group:focus-within .input-group-text {
    border-color: #0a63a3;
}

/* upload */
.visits-modal .upload-label {
    cursor: pointer;
    display: block;
    width: 100%;
}

.visits-modal .upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

    .visits-modal .upload-box:hover {
        border-color: #0a63a3;
        background: #f0f7ff;
    }

.visits-modal .upload-icon-box {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: #e8f2fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a63a3;
    font-size: 16px;
}

.visits-modal .upload-text-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.visits-modal .upload-text-sub {
    font-size: 11px;
    color: #9ca3af;
}

.visits-modal .upload-badges {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.visits-modal .upload-badge {
    background: #e8f2fb;
    color: #0a63a3;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

/* warning */
.visits-modal .warning-bar {
    margin: 0 16px 10px;
    padding: 8px 14px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    font-size: 12px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* footer */
.visits-modal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.visits-modal .btn-save {
    background: linear-gradient(135deg, #0a63a3, #1a80c8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    box-shadow: 0 3px 10px rgba(10, 99, 163, 0.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

    .visits-modal .btn-save:hover {
        box-shadow: 0 5px 16px rgba(10, 99, 163, 0.4);
        transform: translateY(-1px);
        color: #fff;
    }

.visits-modal .btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    transition: background 0.2s;
}

    .visits-modal .btn-cancel:hover {
        background: #e5e7eb;
        color: #111827;
    }

/* ── CONFIRM DECLINE MODAL ── */
.confirm-modal .modal-content {
    border-radius: 20px;
    border: none;
    text-align: center;
    padding: 28px 24px;
}

.confirm-modal .confirm-icon {
    width: 80px;
    height: 80px;
    background: #ffebeb;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
    font-size: 40px;
    color: #e74c3c;
}

.confirm-modal h4 {
    color: #344767;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
}

.confirm-modal .btn-confirm-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 13px;
}

.confirm-modal .btn-confirm-yes {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 13px;
}

/* ── MOBILE ── */
@media (max-width: 767px) {


    .visits-pagination {
        flex-wrap: wrap;
    }

        .visits-pagination > div {
            flex: 1 1 auto;
        }

    .visits-modal .modal-body .row > [class*="col-4"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .visits-modal .modal-body .row > [class*="col-6"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =============================================
   Users Page – Stylesheet
   ============================================= */

/* ── CARD LAYOUT ── */
.users-page {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

    .users-page .card-body {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 16px;
    }

/* ── HEADER ── */
.users-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.users-title {
    white-space: nowrap;
    font-size: 15px !important;
    cursor: pointer;
}

.users-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── TABLE WRAPPER ── */
.users-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

    .users-table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #f8f9fa;
        font-size: 13px;
        white-space: nowrap;
        padding: 10px 8px;
    }

    .users-table-wrapper tbody td {
        font-size: 13px;
        padding: 8px;
        white-space: nowrap;
    }

/* ── PAGINATION ── */
.users-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
    gap: 8px;
}

/* ── SHARED MODAL BASE ── */
.users-modal .modal-content,
.view-user-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

/* ── ADD/EDIT MODAL HEADER ── */
.users-modal .modal-header {
    background: linear-gradient(135deg, #0a63a3 0%, #1a80c8 100%);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.users-modal .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.users-modal .header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.users-modal .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.users-modal .modal-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.users-modal .btn-close-custom,
.view-user-modal .btn-close-custom {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

    .users-modal .btn-close-custom:hover,
    .view-user-modal .btn-close-custom:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* ── ADD/EDIT MODAL BODY ── */
.users-modal .modal-body {
    padding: 18px 24px;
    background: #f9fafb;
}

.users-modal .field-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    display: block;
}

.users-modal .input-group-text {
    background: #fff;
    border-color: #e5e7eb;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #9ca3af;
    font-size: 12px;
}

.users-modal .form-control,
.users-modal .form-select {
    border-color: #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #111827;
    background: #fff;
}

    .users-modal .form-control:focus,
    .users-modal .form-select:focus {
        border-color: #0a63a3;
        box-shadow: 0 0 0 3px rgba(10, 99, 163, 0.1);
        border-left: none;
    }

.users-modal .input-group:focus-within .input-group-text {
    border-color: #0a63a3;
}

/* ── WARNING ── */
.users-modal .warning-bar {
    margin: 0 16px 10px;
    padding: 8px 14px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    font-size: 12px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── FOOTER ── */
.users-modal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.users-modal .btn-save {
    background: linear-gradient(135deg, #0a63a3, #1a80c8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    box-shadow: 0 3px 10px rgba(10, 99, 163, 0.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

    .users-modal .btn-save:hover {
        box-shadow: 0 5px 16px rgba(10, 99, 163, 0.4);
        transform: translateY(-1px);
        color: #fff;
    }

.users-modal .btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    transition: background 0.2s;
}

    .users-modal .btn-cancel:hover {
        background: #e5e7eb;
        color: #111827;
    }

/* ── VIEW USER MODAL ── */
.view-user-modal .modal-header {
    background: linear-gradient(135deg, #0a63a3 0%, #1a80c8 100%);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-user-modal .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.view-user-modal .modal-body {
    padding: 24px;
    background: #f9fafb;
}

.view-user-modal .detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.view-user-modal .detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    margin-bottom: 4px;
}

.view-user-modal .detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.view-user-modal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.view-user-modal .btn-edit {
    background: linear-gradient(135deg, #0a63a3, #1a80c8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    box-shadow: 0 3px 10px rgba(10, 99, 163, 0.3);
}

.view-user-modal .btn-close-view {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
}

/* ── MOBILE ── */
@media (max-width: 767px) {
    .users-page {
        height: calc(100vh - 100px);
    }

    .users-pagination {
        flex-wrap: wrap;
    }
}

/* =============================================
   Roles & Permissions Page – Stylesheet
   ============================================= */

/* ── CARD LAYOUT ── */
.roles-page {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

    .roles-page .card-body {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 16px;
    }

/* ── HEADER ── */
.roles-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.roles-title {
    white-space: nowrap;
    font-size: 15px !important;
    color: #4b5563;
}

.roles-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── TABLE WRAPPER ── */
.roles-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

    .roles-table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #f8f9fa;
        font-size: 13px;
        white-space: nowrap;
        padding: 10px 8px;
    }

    .roles-table-wrapper tbody td {
        font-size: 13px;
        padding: 8px;
        white-space: nowrap;
    }

/* ── PAGINATION ── */
.roles-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
    gap: 8px;
}

/* ── MODAL ── */
.roles-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.roles-modal .modal-header {
    background: linear-gradient(135deg, #0a63a3 0%, #1a80c8 100%);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.roles-modal .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.roles-modal .header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.roles-modal .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.roles-modal .modal-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.roles-modal .btn-close-custom {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

    .roles-modal .btn-close-custom:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* ── MODAL BODY ── */
.roles-modal .modal-body {
    padding: 20px 24px;
    background: #f9fafb;
}

.roles-modal .field-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    display: block;
}

.roles-modal .input-group-text {
    background: #fff;
    border-color: #e5e7eb;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #9ca3af;
    font-size: 12px;
}

.roles-modal .form-control {
    border-color: #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #111827;
    background: #fff;
}

    .roles-modal .form-control:focus {
        border-color: #0a63a3;
        box-shadow: 0 0 0 3px rgba(10, 99, 163, 0.1);
        border-left: none;
    }

.roles-modal .input-group:focus-within .input-group-text {
    border-color: #0a63a3;
}

/* ── PERMISSIONS SECTION ── */
.permissions-section-title {
    background: #e8f2fb;
    color: #0a63a3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.permissions-grid {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

    /* header row */
    .permissions-grid .perm-header {
        display: grid;
        grid-template-columns: minmax(160px, 1fr) 1fr 1fr 1fr;
        padding: 10px 16px;
        background: #f3f4f6;
        border-bottom: 1px solid #e5e7eb;
        font-size: 12px;
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

    /* data rows */
    .permissions-grid .perm-row {
        display: grid;
        grid-template-columns: minmax(160px, 1fr) 1fr 1fr 1fr;
        padding: 10px 16px;
        border-bottom: 1px solid #f3f4f6;
        align-items: center;
        transition: background 0.15s;
    }

        .permissions-grid .perm-row:last-child {
            border-bottom: none;
        }

        .permissions-grid .perm-row:hover {
            background: #f9fafb;
        }

/* checkbox cell */
.perm-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .perm-cell label {
        font-size: 13px;
        color: #374151;
        margin: 0;
        cursor: pointer;
    }

.perm-check {
    width: 18px;
    height: 18px;
    accent-color: #0a63a3;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── WARNING ── */
.roles-modal .warning-bar {
    margin: 0 16px 10px;
    padding: 8px 14px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    font-size: 12px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── FOOTER ── */
.roles-modal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.roles-modal .btn-save {
    background: linear-gradient(135deg, #0a63a3, #1a80c8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    box-shadow: 0 3px 10px rgba(10, 99, 163, 0.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

    .roles-modal .btn-save:hover {
        box-shadow: 0 5px 16px rgba(10, 99, 163, 0.4);
        transform: translateY(-1px);
        color: #fff;
    }

.roles-modal .btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    transition: background 0.2s;
}

    .roles-modal .btn-cancel:hover {
        background: #e5e7eb;
        color: #111827;
    }

/* ── MOBILE ── */
@media (max-width: 767px) {
    .roles-page {
        height: calc(100vh - 100px);
    }

    .roles-pagination {
        flex-wrap: wrap;
    }

    /* make permissions grid scroll horizontally on mobile */
    .permissions-grid .perm-header,
    .permissions-grid .perm-row {
        grid-template-columns: minmax(150px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr);
        min-width: 560px;
    }
}

/* ══ تحسينات المودال للموبايل لضمان التمرير الكامل ══ */

/* 1. ضبط الحاوية الرئيسية للمودال */
.roles-modal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto;
}

@@media (max-width: 576px) {
    .roles-modal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
        /* التأكد من أن المودال لا يتجاوز طول الشاشة */
        height: calc(100vh - 1rem);
    }

    .roles-modal .modal-content {
        max-height: 100%;
        display: flex;
        flex-direction: column;
        border-radius: 15px;
        overflow: hidden; /* لمنع المحتوى من الخروج عن الحدود المستديرة */
    }
    /* 2. جعل جسم المودال هو الجزء القابل للتمرير */
    .roles-modal .modal-body {
        flex: 1 1 auto;
        overflow-y: auto; /* تفعيل التمرير العمودي */
        padding: 15px;
        -webkit-overflow-scrolling: touch; /* تمرير ناعم على iOS */
    }
    /* 3. تثبيت الهيدر والفوتر */
    .roles-modal .modal-header {
        flex-shrink: 0;
        padding: 12px 15px;
    }

    .roles-modal .modal-footer {
        flex-shrink: 0;
        padding: 12px 15px;
        background: #f8f9fa;
        display: flex;
        gap: 10px;
    }

        .roles-modal .modal-footer button {
            flex: 1;
            margin: 0 !important;
            padding: 10px;
        }
    /* 4. تحسين عرض الصلاحيات في الموبايل */
    .permissions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        border: 1px solid #eee;
        border-radius: 8px;
        overflow: hidden;
    }

    .perm-header {
        display: none !important; /* إخفاء الهيدر القديم */
    }

    .perm-row {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px !important;
        border-bottom: 1px solid #eee;
        background: #fff;
    }

        .perm-row:last-child {
            border-bottom: none;
        }

    .perm-cell {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 8px 0 !important;
        width: 100% !important;
        text-align: left !important;
    }

        .perm-cell input[type="checkbox"] {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        .perm-cell label {
            margin: 0;
            font-size: 0.95rem;
            cursor: pointer;
            flex: 1;
        }
    /* إضافة عنوان للمجموعة في الموبايل */
    .mobile-group-label {
        display: block;
        font-weight: bold;
        color: #086cac;
        font-size: 0.85rem;
        margin-bottom: 5px;
        text-transform: uppercase;
    }
}

/* تنسيقات عامة للـ checkboxes */
.perm-check {
    cursor: pointer;
}

/* =============================================
   Whitelist Page – Stylesheet
   ============================================= */

/* ── CARD LAYOUT ── */
.whitelist-page {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

    .whitelist-page .card-body {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 16px;
    }

/* ── HEADER ── */
.whitelist-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.whitelist-title {
    white-space: nowrap;
    font-size: 15px !important;
    cursor: pointer;
}

.whitelist-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── TABLE WRAPPER ── */
.whitelist-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

    .whitelist-table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #f8f9fa;
        font-size: 13px;
        white-space: nowrap;
        padding: 10px 8px;
    }

    .whitelist-table-wrapper tbody td {
        font-size: 13px;
        padding: 8px;
        white-space: nowrap;
    }

/* ── PAGINATION ── */
.whitelist-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
    gap: 8px;
}

/* ── MODAL ── */
.whitelist-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    width: 65%;
    margin: auto;
}

.whitelist-modal .modal-header {
    background: linear-gradient(135deg, #0a63a3 0%, #1a80c8 100%);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whitelist-modal .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whitelist-modal .header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.whitelist-modal .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.whitelist-modal .modal-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.whitelist-modal .btn-close-custom {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

    .whitelist-modal .btn-close-custom:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.whitelist-modal .modal-body {
    padding: 18px 24px;
    background: #f9fafb;
}

.whitelist-modal .field-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    display: block;
}

.whitelist-modal .input-group-text {
    background: #fff;
    border-color: #e5e7eb;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #9ca3af;
    font-size: 12px;
}

.whitelist-modal .form-control {
    border-color: #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #111827;
    background: #fff;
}

    .whitelist-modal .form-control:focus {
        border-color: #0a63a3;
        box-shadow: 0 0 0 3px rgba(10, 99, 163, 0.1);
        border-left: none;
    }

.whitelist-modal .input-group:focus-within .input-group-text {
    border-color: #0a63a3;
}

.whitelist-modal .form-control:disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

.whitelist-modal .upload-label {
    cursor: pointer;
    display: block;
    width: 100%;
}

.whitelist-modal .upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

    .whitelist-modal .upload-box:hover {
        border-color: #0a63a3;
        background: #f0f7ff;
    }

.whitelist-modal .upload-icon-box {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: #e8f2fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a63a3;
    font-size: 16px;
}

.whitelist-modal .upload-text-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.whitelist-modal .upload-text-sub {
    font-size: 11px;
    color: #9ca3af;
}

.whitelist-modal .upload-badges {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.whitelist-modal .upload-badge {
    background: #e8f2fb;
    color: #0a63a3;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.whitelist-modal .warning-bar {
    margin: 0 16px 10px;
    padding: 8px 14px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    font-size: 12px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whitelist-modal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.whitelist-modal .btn-save {
    background: linear-gradient(135deg, #0a63a3, #1a80c8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    box-shadow: 0 3px 10px rgba(10,99,163,.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

    .whitelist-modal .btn-save:hover {
        box-shadow: 0 5px 16px rgba(10,99,163,.4);
        transform: translateY(-1px);
        color: #fff;
    }

.whitelist-modal .btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    transition: background 0.2s;
}

    .whitelist-modal .btn-cancel:hover {
        background: #e5e7eb;
        color: #111827;
    }

/* ── MOBILE ── */
@media (max-width: 767px) {
    .whitelist-page {
        height: calc(100vh - 100px);
    }

    .whitelist-pagination {
        flex-wrap: wrap;
    }

    .whitelist-modal .modal-content {
        width: 95%;
    }
}

/* =============================================
   Blacklist Page – Stylesheet
   ============================================= */

/* ── CARD LAYOUT ── */
.blacklist-page {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

    .blacklist-page .card-body {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 16px;
    }

/* ── HEADER ── */
.blacklist-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.blacklist-title {
    white-space: nowrap;
    font-size: 15px !important;
    cursor: pointer;
}

.blacklist-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── TABLE WRAPPER ── */
.blacklist-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

    .blacklist-table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #f8f9fa;
        font-size: 13px;
        white-space: nowrap;
        padding: 10px 8px;
    }

    .blacklist-table-wrapper tbody td {
        font-size: 13px;
        padding: 8px;
        white-space: nowrap;
    }

/* ── PAGINATION ── */
.blacklist-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
    gap: 8px;
}

/* ── MODAL ── */
.blacklist-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.blacklist-modal .modal-header {
    background: linear-gradient(135deg, #0a63a3 0%, #1a80c8 100%);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blacklist-modal .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blacklist-modal .header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.blacklist-modal .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.blacklist-modal .modal-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.blacklist-modal .btn-close-custom {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

    .blacklist-modal .btn-close-custom:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.blacklist-modal .modal-body {
    padding: 18px 24px;
    background: #f9fafb;
}

.blacklist-modal .field-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    display: block;
}

.blacklist-modal .input-group-text {
    background: #fff;
    border-color: #e5e7eb;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #9ca3af;
    font-size: 12px;
}

.blacklist-modal .form-control {
    border-color: #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #111827;
    background: #fff;
}

    .blacklist-modal .form-control:focus {
        border-color: #0a63a3;
        box-shadow: 0 0 0 3px rgba(10, 99, 163, 0.1);
        border-left: none;
    }

.blacklist-modal .input-group:focus-within .input-group-text {
    border-color: #0a63a3;
}

.blacklist-modal .upload-label {
    cursor: pointer;
    display: block;
    width: 100%;
}

.blacklist-modal .upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

    .blacklist-modal .upload-box:hover {
        border-color: #0a63a3;
        background: #f0f7ff;
    }

.blacklist-modal .upload-icon-box {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: #e8f2fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a63a3;
    font-size: 16px;
}

.blacklist-modal .upload-text-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.blacklist-modal .upload-text-sub {
    font-size: 11px;
    color: #9ca3af;
}

.blacklist-modal .upload-badges {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.blacklist-modal .upload-badge {
    background: #e8f2fb;
    color: #0a63a3;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.blacklist-modal .warning-bar {
    margin: 0 16px 10px;
    padding: 8px 14px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    font-size: 12px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blacklist-modal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.blacklist-modal .btn-save {
    background: linear-gradient(135deg, #0a63a3, #1a80c8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    box-shadow: 0 3px 10px rgba(10,99,163,.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

    .blacklist-modal .btn-save:hover {
        box-shadow: 0 5px 16px rgba(10,99,163,.4);
        transform: translateY(-1px);
        color: #fff;
    }

.blacklist-modal .btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    transition: background 0.2s;
}

    .blacklist-modal .btn-cancel:hover {
        background: #e5e7eb;
        color: #111827;
    }

/* ── MOBILE ── */
@media (max-width: 767px) {
    .blacklist-page {
        height: calc(100vh - 100px);
    }

    .blacklist-pagination {
        flex-wrap: wrap;
    }
}

/* =============================================
   Search Page – Stylesheet
   ============================================= */

/* ── CARD LAYOUT ── */
.search-page {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

    .search-page .card-body {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 16px;
    }

/* ── HEADER ── */
.search-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.search-title {
    white-space: nowrap;
    font-size: 15px !important;
    cursor: pointer;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── FILTER BAR ── */
.search-filter-bar {
    flex-shrink: 0;
    padding: 10px 0;
    margin-bottom: 8px;
}

/* ── TABLE WRAPPER ── */
.search-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

    .search-table-wrapper thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #f8f9fa;
        font-size: 13px;
        white-space: nowrap;
        padding: 10px 8px;
    }

    .search-table-wrapper tbody td {
        font-size: 13px;
        padding: 8px;
        white-space: nowrap;
    }

/* ── PAGINATION ── */
.search-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #e5e7eb;
    gap: 8px;
}

/* ── VIEW MODAL ── */
.view-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.view-modal .modal-header {
    background: linear-gradient(135deg, #0a63a3 0%, #1a80c8 100%);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-modal .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-modal .header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.view-modal .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.view-modal .modal-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.view-modal .btn-close-custom {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

    .view-modal .btn-close-custom:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.view-modal .modal-body {
    padding: 20px 24px;
    background: #f9fafb;
}

/* section card inside modal */
.view-modal .section-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 16px;
}

.view-modal .section-card-header {
    background: #f3f4f6;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.view-modal .section-card-body {
    padding: 16px;
}

.view-modal .detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    margin-bottom: 3px;
}

.view-modal .detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

/* ── ZOOM MODAL ── */
.zoom-modal .modal-content {
    background: transparent;
    border: none;
}

/* ── MOBILE ── */
@media (max-width: 767px) {
    .search-page {
        height: calc(100vh - 100px);
    }

    .search-pagination {
        flex-wrap: wrap;
    }
}

/* =============================================
   Header Search Input – Stylesheet
   ============================================= */

.smart-search-wrapper {
    position: relative;
    min-width: 280px;
    max-width: 420px;
    width: 100%;
}

.smart-search-field {
    position: relative;
}

/* ── INPUT GROUP ── */
.header-search-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-search-icon {
    background: #fff;
    border-color: #e5e7eb;
    border-right: none;
    color: #0a63a3;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px 0 0 8px !important;
    transition: color 0.15s;
    padding: 0 10px;
}

    .header-search-icon:hover {
        color: #1a80c8;
    }

.header-search-input {
    border-color: #e5e7eb;
    border-left: none;
    border-right: none;
    font-size: 13px;
    color: #111827;
    background: #fff;
    border-radius: 0 !important;
}

    .header-search-input::placeholder {
        color: #9ca3af;
        font-size: 12px;
    }

    .header-search-input:focus {
        border-color: #0a63a3;
        box-shadow: 0 0 0 3px rgba(10, 99, 163, 0.1);
        border-left: none;
        border-right: none;
    }

.header-search-group:focus-within .header-search-icon {
    border-color: #0a63a3;
}

.header-search-group:focus-within .header-search-chevron {
    border-color: #0a63a3;
}

/* chevron button (toggle advanced) */
.header-search-chevron {
    background: #fff;
    border-color: #e5e7eb;
    border-left: none;
    color: #6b7280;
    font-size: 11px;
    cursor: pointer;
    border-radius: 0 8px 8px 0 !important;
    padding: 0 10px;
    transition: color 0.15s, background 0.15s;
}

    .header-search-chevron:hover {
        background: #f3f4f6;
        color: #0a63a3;
    }

/* ── DROPDOWN ── */
.smart-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1050;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 4px 0;
    min-width: 200px;
}

    .smart-search-dropdown .dropdown-item {
        font-size: 13px;
        padding: 8px 16px;
        color: #374151;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: background 0.15s;
    }

        .smart-search-dropdown .dropdown-item:hover {
            background: #f0f7ff;
            color: #0a63a3;
        }

/* =============================================
   Advanced Search Modal – Stylesheet
   ============================================= */

.advanced-search-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

/* ── HEADER ── */
.advanced-search-modal .modal-header {
    background: linear-gradient(135deg, #0a63a3 0%, #1a80c8 100%);
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.advanced-search-modal .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.advanced-search-modal .header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.advanced-search-modal .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.advanced-search-modal .modal-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.advanced-search-modal .btn-close-custom {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

    .advanced-search-modal .btn-close-custom:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* ── BODY ── */
.advanced-search-modal .modal-body {
    padding: 18px 24px;
    background: #f9fafb;
}

.advanced-search-modal .field-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    display: block;
}

.advanced-search-modal .input-group-text {
    background: #fff;
    border-color: #e5e7eb;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #9ca3af;
    font-size: 12px;
}

.advanced-search-modal .form-control,
.advanced-search-modal .form-select {
    border-color: #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #111827;
    background: #fff;
}

    .advanced-search-modal .form-control:focus,
    .advanced-search-modal .form-select:focus {
        border-color: #0a63a3;
        box-shadow: 0 0 0 3px rgba(10, 99, 163, 0.1);
        border-left: none;
    }

.advanced-search-modal .input-group:focus-within .input-group-text {
    border-color: #0a63a3;
}

/* ── WARNING ── */
.advanced-search-modal .warning-bar {
    padding: 8px 14px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    font-size: 12px;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── FOOTER ── */
.advanced-search-modal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.advanced-search-modal .btn-save {
    background: linear-gradient(135deg, #0a63a3, #1a80c8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    box-shadow: 0 3px 10px rgba(10, 99, 163, 0.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

    .advanced-search-modal .btn-save:hover {
        box-shadow: 0 5px 16px rgba(10, 99, 163, 0.4);
        transform: translateY(-1px);
        color: #fff;
    }

.advanced-search-modal .btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 24px;
    transition: background 0.2s;
}

    .advanced-search-modal .btn-cancel:hover {
        background: #e5e7eb;
        color: #111827;
    }