/* =========================================================
   Leads Transfer / Transfer leads
   Colorful visual refresh — same structure & class names,
   only colors, gradients, shadows & depth have changed.
   ========================================================= */

:root {
    --tl-blue: #3b82f6;
    --tl-blue-dark: #2563eb;
    --tl-blue-tint: #eff6ff;

    --tl-violet: #7c3aed;
    --tl-violet-dark: #6025c0;
    --tl-violet-tint: #f5f0ff;

    --tl-pink: #ec4899;
    --tl-pink-dark: #db2777;
    --tl-pink-tint: #fdf1f8;

    --tl-green: #10b981;
    --tl-green-dark: #059669;
    --tl-green-tint: #ecfdf5;

    --tl-amber: #f59e0b;
    --tl-amber-tint: #fffbeb;

    --tl-red: #ef4444;
    --tl-red-tint: #fef2f2;

    --tl-navy: #1e1b4b;
    --tl-navy-2: #312e81;
}

/* =========================================================
   USERS TABLE
========================================================= */

.users-table-card {
    border: 1px solid #eef0f4;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}


/* =========================================================
   TABLE
========================================================= */

.users-table {
    min-width: 1050px;
}

.users-table thead {
    background: #f8f9fb;
}

.users-table thead th {
    padding: 11px 14px;

    border-bottom: 1px solid #eef0f4;

    color: #74788d;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .3px;

    white-space: nowrap;
}

.users-table tbody td {
    padding: 11px 14px;

    border-bottom: 1px solid #f1f2f4;

    vertical-align: middle;

    font-size: 11px;
}

.users-table tbody tr:last-child td {
    border-bottom: 0;
}

.users-table tbody tr {
    transition: background .15s ease;
}

.users-table tbody tr:hover {
    background: #fafbfc;
}


/* =========================================================
   USER
========================================================= */

.user-column {
    min-width: 270px;
}

.table-user {
    display: flex;
    align-items: center;

    min-width: 0;
}

.table-user-avatar {
    width: 38px;
    height: 38px;

    min-width: 38px;

    margin-right: 9px;

    border-radius: 50%;

    object-fit: cover;

    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    background: #eef2ff;
    color: #556ee6;

    font-size: 14px;
    font-weight: 600;
}

.table-user-info {
    min-width: 0;
}

.table-user-name-row {
    display: flex;
    align-items: center;

    gap: 6px;

    min-width: 0;
}

.table-user-name {
    max-width: 145px;

    color: #343a40;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-user-email {
    display: flex;
    align-items: center;

    margin-top: 2px;

    max-width: 210px;

    color: #98a6ad;

    font-size: 9.5px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-user-email i {
    margin-right: 3px;

    font-size: 10px;
}


/* =========================================================
   ROLE
========================================================= */

.user-role {
    flex-shrink: 0;

    padding: 2px 6px;

    border-radius: 4px;

    background: #e8f8f0;
    color: #34c38f;

    font-size: 8px;
    font-weight: 600;

    line-height: 13px;
}

.user-role-none {
    background: #f1f1f1;
    color: #74788d;
}


/* =========================================================
   STATUS
========================================================= */

.table-status {
    display: inline-flex;
    align-items: center;

    gap: 7px;
}

.status-label {
    font-size: 9px;
    font-weight: 500;
}

.status-label.active {
    color: #34c38f;
}

.status-label.inactive {
    color: #f46a6a;
}


/* =========================================================
   COMPACT SWITCH
========================================================= */

.compact-switch {
    position: relative;
    display: block;
    width: 40px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.compact-switch input {
    position: absolute;

    width: 0;
    height: 0;

    opacity: 0;
}

.compact-slider {
    position: absolute;

    inset: 0;

    border-radius: 20px;

    background: #dfe3e7;

    transition: all .2s ease;
}

.compact-slider::before {
    content: "";

    position: absolute;

    width: 12px;
    height: 12px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: #fff;

    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);

    transition: all .2s ease;
}

.compact-switch input:checked+.compact-slider {
    background: #34c38f;
}

.compact-switch input:checked+.compact-slider::before {
    transform: translateX(22px);
}

.compact-switch:hover .compact-slider {
    box-shadow: 0 0 0 3px rgba(52, 195, 143, .08);
}


/* Status inactive */
.status-switch .compact-slider {
    background: #eecbcf;
}


/* =========================================================
   MANAGER
========================================================= */

.manager-cell {
    display: flex;
    align-items: center;

    min-width: 150px;
}

.manager-cell-icon {
    width: 28px;
    height: 28px;

    min-width: 28px;

    margin-right: 7px;

    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.manager-cell-icon i {
    font-size: 14px;
}

.gm-icon {
    background: #fff6e9;
    color: #f59e0b;
}

.rm-icon {
    background: #edf7ff;
    color: #3498db;
}

.manager-cell-label {
    display: block;

    color: #adb5bd;

    font-size: 8px;
    line-height: 11px;
}

.manager-cell strong {
    display: block;

    max-width: 125px;

    margin-top: 1px;

    color: #495057;

    font-size: 10px;
    font-weight: 500;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   LEAD AUTO ASSIGN
========================================================= */

.lead-assignment-cell {
    display: flex;
    align-items: center;
    gap: 12px;

}

.lead-assignment-cell .compact-switch input:checked+.compact-slider {
    background: #0d6efd;
}

.lead-assignment-info {
    min-width: 0;
}

.lead-assignment-title {
    display: flex;
    align-items: center;

    gap: 5px;

    color: #495057;

    font-size: 10px;
    font-weight: 600;
}

.lead-icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: #eef8f4;
    color: #34c38f;
}

.lead-icon i {
    font-size: 12px;
}

.lead-assignment-status {
    display: block;
    margin-top: 2px;
    color: #666666;
    font-size: 9.5px;
    white-space: nowrap;
}

.lead-switch {
    flex-shrink: 0;
}


/* =========================================================
   LEAD BADGE
========================================================= */

.lead-badge {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    padding: 4px 7px;

    border-radius: 5px;

    font-size: 8px;
    font-weight: 600;
}

.lead-badge i {
    font-size: 11px;
}

.lead-badge.enabled {
    background: #e8f8f0;
    color: #34c38f;
}

.lead-badge.disabled {
    background: #f1f1f1;
    color: #98a6ad;
}


/* =========================================================
   ACTIONS
========================================================= */

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 5px;
}

.table-action {
    padding: 0 10px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    text-decoration: none;

    transition: all .15s ease;
}

.table-action i {
    font-size: 14px;
}

.table-action.view {
    background: #f1f8ff;
    color: #50a5f1;
}

.table-action.view:hover {
    background: #50a5f1;
    color: #fff;
}

.table-action.edit {
    background: #fff8ed;
    color: #f1a94b;
}

.table-action.edit:hover {
    background: #f1a94b;
    color: #fff;
}


/* =========================================================
   EMPTY
========================================================= */

.empty-users {
    padding: 45px 20px;

    text-align: center;
}

.empty-users>i {
    font-size: 32px;

    color: #c5c9d0;
}

.empty-users h5 {
    margin-top: 8px;
    margin-bottom: 3px;

    font-size: 13px;
}

.empty-users p {
    margin: 0;

    color: #98a6ad;

    font-size: 10px;
}


/* =========================================================
   MINI STATS
========================================================= */

.mini-stat-card {
    border: 1px solid #eff0f2;

    transition: all .2s ease;
}

.mini-stat-card:hover {
    transform: translateY(-2px);

    box-shadow: 0 5px 18px rgba(0, 0, 0, .06);
}

.mini-stat-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 20px;
}

.total-icon {
    color: #556ee6;
    background: #eef0ff;
}

.active-icon {
    color: #34c38f;
    background: #e9f9f3;
}

.inactive-icon {
    color: #f46a6a;
    background: #fff0f0;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .users-table {
        min-width: 950px;
    }

}

@media (max-width: 767px) {

    .users-table {
        min-width: 900px;
    }

    .users-table thead th,
    .users-table tbody td {
        padding-left: 10px;
        padding-right: 10px;
    }

}




/* ========================================
           ROLE CARD
        ======================================== */

.role-card {
    position: relative;
    height: 115px;
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
}


.role-card:hover {
    border-color: rgba(85, 110, 230, 0.25);
}


/* ========================================
           INNER
        ======================================== */

.role-card-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 15px 16px 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.role-card-inner .form-check-input:checked {
    background-color: #34c38f;
    border-color: #34c38f;
}


/* ========================================
           DECORATIVE BACKGROUND
        ======================================== */

.role-bg-shape {
    position: absolute;
    width: 105px;
    height: 105px;
    right: -45px;
    top: -48px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            rgba(85, 110, 230, 0.13),
            rgba(85, 110, 230, 0.025));
    transition: all 0.3s ease;
}


.role-card:hover .role-bg-shape {
    transform: scale(1.2);
}


/* ========================================
           TOP
        ======================================== */

.role-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ========================================
           ICON
        ======================================== */

.role-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(85, 110, 230, 0.09);
    color: #556ee6;

    font-size: 18px;

    transition: all 0.25s ease;
}


.role-card:hover .role-icon {
    background: #556ee6;
    color: #ffffff;
    transform: rotate(-4deg);
}


/* ========================================
           ROLE CONTENT
        ======================================== */

.role-content {
    margin-top: 3px;
}


.role-name {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #343a40;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ========================================
           STATUS
        ======================================== */

.role-status-row {
    margin-top: 2px;
}


.role-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    font-size: 11px;
    font-weight: 500;
}


.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}


.role-status.active {
    color: #34c38f;
}


.role-status.active .status-dot {
    background: #34c38f;
    box-shadow: 0 0 0 3px rgba(52, 195, 143, 0.10);
}


.role-status.inactive {
    color: #f46a6a;
}


.role-status.inactive .status-dot {
    background: #f46a6a;
    box-shadow: 0 0 0 3px rgba(244, 106, 106, 0.10);
}


/* ========================================
           TOGGLE
        ======================================== */

.role-toggle-form {
    position: relative;
    z-index: 5;
}


.role-status-toggle {
    width: 30px !important;
    height: 16px !important;

    margin: 0 !important;

    cursor: pointer;
}


.role-status-toggle:focus {
    box-shadow: none;
}


/* ========================================
           BOTTOM LINE
        ======================================== */

.role-bottom-line {
    position: absolute;

    bottom: 0;
    left: 16px;

    width: 24px;
    height: 2px;

    border-radius: 10px;

    background: #556ee6;

    transition: all 0.25s ease;
}


.role-card:hover .role-bottom-line {
    width: 45px;
}


/* ========================================
           EMPTY STATE
        ======================================== */

.empty-role-icon {
    width: 55px;
    height: 55px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(85, 110, 230, 0.08);
    color: #556ee6;

    font-size: 26px;
}





.logout-menu-item {
    display: flex;
    align-items: center;

    width: 100%;
    height: 45px;

    padding: 0 1.5rem;

    border: 0;
    background: transparent;

    color: #f46a6a;
    text-align: left;

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;

    cursor: pointer;

    transition: all 0.5s ease;
}

.logout-menu-item:hover {
    background: #fff0f0;
}

.logout-menu-item i {
    display: inline-block;

    min-width: 1.75rem;
    width: 1.75rem;

    font-size: 18px;
    line-height: 1;

    flex-shrink: 0;
}

.logout-menu-item span {
    font-size: 13px;
    white-space: nowrap;

    transition: opacity 0.2s ease;
}

.vertical-collpsed .logout-menu-item {
    justify-content: center;

    width: 70px;
    padding: 0;

    margin: 0 auto;
}

.vertical-collpsed .logout-menu-item i {
    min-width: auto;
    width: auto;

    margin: 0;
}

.vertical-collpsed .logout-menu-item span {
    display: none;
}


.profile-header-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .7);
}

.profile-header-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    color: #556ee6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    border: 4px solid rgba(255, 255, 255, .7);
}

.user-profile-image,
.user-profile-placeholder {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.user-profile-placeholder {
    border-radius: 50%;
    background: #50a5f2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
}

.crm-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 15px;
    border: 1px solid #eff0f2;
    border-radius: 8px;
    background: #fff;
    transition: all .2s ease;
}

.crm-stat-card span {
    display: block;
    color: #74788d;
    font-size: 12px;
    margin-bottom: 3px;
}

.crm-stat-card h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.stat-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.table th {
    font-weight: 500;
    color: #74788d;
    font-size: 11px;
}

.table td {
    font-size: 12px;
}

.nav-tabs-custom .nav-link {
    font-weight: 500;
}






/* CRM CONFIGS */
.config-page-subtitle {
    font-size: 12px;
}

.config-topbar {

    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 10px;

    padding: 16px 18px;

    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 3px 15px rgba(35, 48, 62, .035);

}

.config-topbar-left {

    display: flex;
    align-items: center;
    gap: 12px;

}

.config-main-icon {

    width: 42px;
    height: 42px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(85, 110, 230, .1);
    color: #556ee6;

    font-size: 21px;

}

.config-topbar h5 {

    font-size: 14px;
    font-weight: 600;
    color: #343a40;

}

.config-topbar-left span {

    display: block;

    font-size: 10px;
    color: #98a6ad;

}

.config-topbar-right {

    display: flex;
    align-items: center;
    gap: 18px;

}

.config-total {

    display: flex;
    align-items: center;
    gap: 8px;

    padding-right: 18px;
    border-right: 1px solid #edf0f4;

}

.config-total-icon {

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #f5f6fa;
    color: #74788d;

}

.config-total strong {

    display: block;

    font-size: 13px;
    color: #343a40;

}

.config-total small {

    display: block;

    font-size: 9px;
    color: #98a6ad;

}

.config-add-main-btn {

    border-radius: 6px;

    font-size: 11px;
    font-weight: 500;

    padding: 7px 12px;

}


/* ============================================================
   CRM CONFIGURATION UI
============================================================ */

.crm-config-workspace {
    margin-top: 18px;
}


/* ============================================================
   MAIN TABS
============================================================ */

.crm-config-tabs-wrapper {
    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(20, 24, 40, .025);
}

.crm-config-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.crm-config-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 170px;
    padding: 11px 14px;

    border: 0;
    background: transparent;
    border-radius: 9px;

    color: #667085;
    cursor: pointer;

    transition: all .2s ease;
}

.crm-config-tab:hover {
    background: #f7f9fc;
    color: #344054;
}

.crm-config-tab.active {
    background: #f0f7ff;
    color: #0d6efd;
}

.crm-config-tab-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f3f5f8;
    font-size: 18px;

    transition: all .2s ease;
}

.crm-config-tab.active .crm-config-tab-icon {
    background: #ffffff;
    color: #0d6efd;
    box-shadow: 0 2px 7px rgba(13, 110, 253, .12);
}

.crm-config-tab-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.crm-config-tab-content strong {
    font-size: 13px;
    font-weight: 600;
}

.crm-config-tab-content small {
    margin-top: 3px;
    font-size: 10px;
    color: #98a2b3;
}


/* ============================================================
   PANELS
============================================================ */

.crm-config-tab-content-wrapper {
    position: relative;
}

.crm-config-panel {
    display: none;
    animation: crmPanelFade .2s ease;
}

.crm-config-panel.active {
    display: block;
}

@keyframes crmPanelFade {

    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ============================================================
   PANEL HEADER
============================================================ */

.crm-config-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 12px;

    padding: 16px 18px;
    margin-bottom: 14px;
}

.crm-config-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crm-panel-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 19px;
}

.crm-panel-icon.lead {
    background: #edf6ff;
    color: #1570ef;
}

.crm-panel-icon.project {
    background: #f1f5ff;
    color: #6941c6;
}

.crm-panel-icon.priority {
    background: #fff6ed;
    color: #e04f16;
}

.crm-panel-icon.location {
    background: #ecfdf3;
    color: #039855;
}

.crm-config-panel-title h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #101828;
}

.crm-config-panel-title p {
    margin: 3px 0 0;
    color: #98a2b3;
    font-size: 11px;
}


/* ============================================================
   ADD BUTTON
============================================================ */

.crm-add-btn {
    border: 0;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 12px;

    border-radius: 7px;

    background: #101828;
    color: #ffffff;

    font-size: 12px;
    font-weight: 500;

    transition: all .2s ease;
}

.crm-add-btn:hover {
    background: #344054;
    transform: translateY(-1px);
}

.crm-add-btn i {
    font-size: 16px;
}


/* ============================================================
   LEAD STATUS TABS
============================================================ */

.crm-status-tabs {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 5px;

    background: #f8f9fb;
    border: 1px solid #eaecf0;

    border-radius: 10px;

    margin-bottom: 12px;

    overflow-x: auto;
}

.crm-status-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: #667085;

    font-size: 12px;
    font-weight: 500;

    white-space: nowrap;

    cursor: pointer;

    transition: all .2s ease;
}

.crm-status-tab:hover {
    background: #ffffff;
    color: #344054;
}

.crm-status-tab.active {
    background: #ffffff;
    color: #101828;

    box-shadow: 0 2px 7px rgba(16, 24, 40, .07);
}

.crm-status-tab small {
    min-width: 19px;
    height: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f2f4f7;

    color: #667085;
    font-size: 9px;
}


/* ============================================================
   STATUS DOTS
============================================================ */

.crm-status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #d0d5dd;
}

.crm-status-dot.active {
    background: #12b76a;
    box-shadow: 0 0 0 3px rgba(18, 183, 106, .10);
}

.crm-status-dot.inactive {
    background: #f04438;
}

.crm-large-status-dot {
    width: 10px;
    height: 10px;

    flex-shrink: 0;

    border-radius: 50%;
}

.crm-large-status-dot.active {
    background: #12b76a;
    box-shadow: 0 0 0 4px rgba(18, 183, 106, .10);
}

.crm-large-status-dot.inactive {
    background: #f04438;
    box-shadow: 0 0 0 4px rgba(240, 68, 56, .08);
}


/* ============================================================
   STATUS PANEL
============================================================ */

.crm-status-panel {
    display: none;

    background: #ffffff;

    border: 1px solid #e8ebf0;
    border-radius: 12px;

    overflow: hidden;
}

.crm-status-panel.active {
    display: block;

    animation: crmPanelFade .2s ease;
}

.crm-status-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;

    border-bottom: 1px solid #f0f2f5;
}

.crm-status-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crm-status-name {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #101828;
}

.crm-status-main small {
    display: block;

    margin-top: 3px;

    font-size: 10px;
    color: #98a2b3;
}


/* ============================================================
   BADGES
============================================================ */

.crm-badge {
    display: inline-flex;
    align-items: center;

    padding: 3px 7px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 600;
}

.crm-badge.active {
    background: #ecfdf3;
    color: #027a48;
}

.crm-badge.inactive {
    background: #fef3f2;
    color: #b42318;
}


/* ============================================================
   ICON BUTTON
============================================================ */

.crm-icon-btn,
.crm-mini-edit {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #eaecf0;

    background: #ffffff;

    color: #667085;

    border-radius: 7px;

    cursor: pointer;

    transition: all .2s ease;
}

.crm-icon-btn:hover,
.crm-mini-edit:hover {
    color: #1570ef;
    border-color: #b2ddff;
    background: #eff8ff;
}

.crm-icon-btn i,
.crm-mini-edit i {
    font-size: 15px;
}


/* ============================================================
   SUB STATUS
============================================================ */

.crm-substatus-section {
    padding: 16px 18px 18px;
}

.crm-substatus-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;
}

.crm-substatus-heading>div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.crm-substatus-icon {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: #f2f4f7;
    color: #667085;

    font-size: 14px;
}

.crm-substatus-heading strong {
    font-size: 11px;
    font-weight: 600;
    color: #475467;

    text-transform: uppercase;
    letter-spacing: .04em;
}

.crm-substatus-count {
    min-width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f2f4f7;

    font-size: 10px;
    font-weight: 600;
    color: #667085;
}


/* ============================================================
   SUB STATUS CARDS
============================================================ */

.crm-substatus-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(190px, 1fr));

    gap: 8px;
}

.crm-substatus-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 55px;

    padding: 9px 10px;

    border: 1px solid #eaecf0;

    border-radius: 8px;

    background: #ffffff;

    transition: all .2s ease;
}

.crm-substatus-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 3px 10px rgba(16, 24, 40, .04);
}

.crm-substatus-card-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.crm-mini-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;
}

.crm-mini-dot.active {
    background: #12b76a;
}

.crm-mini-dot.inactive {
    background: #f04438;
}

.crm-substatus-card strong {
    display: block;

    font-size: 12px;
    font-weight: 500;

    color: #344054;
}

.crm-substatus-card small {
    display: block;

    margin-top: 2px;

    font-size: 9px;
    color: #98a2b3;
}

.crm-mini-edit {
    width: 27px;
    height: 27px;

    flex-shrink: 0;
}


/* ============================================================
   NO SUB STATUS
============================================================ */

.crm-no-substatus {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px;

    border: 1px dashed #d0d5dd;
    border-radius: 8px;

    background: #fafafa;
}

.crm-no-substatus>i {
    font-size: 22px;
    color: #98a2b3;
}

.crm-no-substatus strong {
    display: block;

    font-size: 11px;
    color: #475467;
}

.crm-no-substatus span {
    display: block;

    margin-top: 2px;

    font-size: 10px;
    color: #98a2b3;
}


/* ============================================================
   SIMPLE CARDS
============================================================ */

.crm-simple-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(220px, 1fr));

    gap: 10px;
}

.crm-simple-card {
    padding: 13px;

    background: #ffffff;

    border: 1px solid #e8ebf0;

    border-radius: 10px;

    transition: all .2s ease;
}

.crm-simple-card:hover {
    border-color: #d0d5dd;

    box-shadow:
        0 5px 15px rgba(16, 24, 40, .045);

    transform: translateY(-1px);
}

.crm-simple-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.crm-simple-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 17px;
}

.crm-simple-icon.project {
    background: #f4f3ff;
    color: #6941c6;
}

.crm-simple-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.crm-simple-card-body {
    margin-top: 12px;
}

.crm-simple-card-body h6 {
    margin: 0;

    font-size: 13px;
    font-weight: 600;

    color: #101828;
}

.crm-simple-card-body span {
    display: block;

    margin-top: 3px;

    font-size: 10px;

    color: #98a2b3;
}


/* ============================================================
   TAGS
============================================================ */

.crm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 11px;
    padding-top: 10px;

    border-top: 1px solid #f2f4f7;
}

.crm-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;

    padding: 4px 7px;

    border-radius: 5px;

    background: #f8f9fb;

    color: #667085;

    font-size: 9px;
}

.crm-tag i {
    font-size: 11px;
}


/* ============================================================
   PRIORITY
============================================================ */

.crm-priority-list {
    display: flex;
    flex-direction: row;
    gap: 7px;
}

.crm-priority-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 11px 13px;

    background: #ffffff;

    border: 1px solid #e8ebf0;

    border-radius: 9px;

    transition: all .2s ease;
}

.crm-priority-item:hover {
    border-color: #d0d5dd;
}

.crm-priority-left,
.crm-priority-right {
    display: flex;
    align-items: center;
    gap: 9px;
}

.crm-priority-right {
    gap: 7px;
}

.crm-priority-indicator {
    width: 8px;
    height: 8px;

    border-radius: 50%;
}

.crm-priority-indicator.active {
    background: #12b76a;
}

.crm-priority-indicator.inactive {
    background: #f04438;
}

.crm-priority-left strong {
    display: block;

    font-size: 12px;
    font-weight: 500;

    color: #344054;
}

.crm-priority-left small {
    display: block;

    margin-top: 2px;

    font-size: 9px;

    color: #98a2b3;
}


/* ============================================================
   LOCATIONS
============================================================ */

.crm-location-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(230px, 1fr));

    gap: 10px;
}

.crm-location-card {
    padding: 14px;

    background: #ffffff;

    border: 1px solid #e8ebf0;

    border-radius: 10px;

    transition: all .2s ease;
}

.crm-location-card:hover {
    border-color: #d0d5dd;

    box-shadow:
        0 5px 15px rgba(16, 24, 40, .045);
}

.crm-location-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.crm-location-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #ecfdf3;

    color: #039855;

    font-size: 17px;
}

.crm-location-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.crm-location-card h6 {
    margin: 12px 0 9px;

    font-size: 13px;
    font-weight: 600;

    color: #101828;
}

.crm-coordinates {
    display: flex;
    gap: 6px;
}

.crm-coordinates span {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 4px 6px;

    border-radius: 5px;

    background: #f8f9fb;

    color: #667085;

    font-size: 9px;
}

.crm-coordinates i {
    font-size: 11px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 767px) {

    .crm-config-tab {
        min-width: 145px;
    }

    .crm-config-panel-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .crm-add-btn {
        width: 100%;
        justify-content: center;
    }

    .crm-substatus-grid {
        grid-template-columns: 1fr;
    }

    .crm-simple-grid,
    .crm-location-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================
           MODAL
        ========================================== */

.config-modal .modal-dialog {

    max-width: 500px;

}

.config-modal .modal-content {

    border: 0;
    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);

}

.config-modal .modal-header {

    padding: 15px 18px;

    border-bottom: 1px solid #edf0f4;

    background: #fff;

}

.modal-title-wrapper {

    display: flex;
    align-items: center;
    gap: 10px;

}

.modal-title-icon {

    width: 35px;
    height: 35px;

    border-radius: 8px;

    background: rgba(85, 110, 230, .1);
    color: #556ee6;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;

}

.modal-title-icon.edit-icon {

    background: rgba(80, 165, 241, .1);
    color: #50a5f1;

}

.config-modal .modal-title {

    font-size: 14px;
    font-weight: 600;

}

.modal-title-wrapper span {

    display: block;

    font-size: 9px;
    color: #98a6ad;

    margin-top: 2px;

}

.config-modal .modal-body {

    padding: 18px;

    background: #fff;

}

.config-form-group {

    margin-bottom: 15px;

}

.config-form-group label {

    display: block;

    margin-bottom: 6px;

    font-size: 10px;
    font-weight: 600;

    color: #495057;

}

.config-form-group label span {

    color: #f46a6a;

}

.config-form-group .form-control,
.config-form-group .form-select {

    height: 36px;

    border: 1px solid #e3e6eb;

    border-radius: 6px;

    font-size: 11px;

    box-shadow: none;

}

.config-form-group .form-control:focus,
.config-form-group .form-select:focus {

    border-color: #aeb8ec;

    box-shadow: 0 0 0 3px rgba(85, 110, 230, .08);

}

.config-form-group small {

    display: block;

    margin-top: 5px;

    color: #98a6ad;

    font-size: 8px;

}


/* =========================================
           LOCATION
        ========================================== */

.config-location-fields {

    padding: 12px;

    margin-bottom: 15px;

    border: 1px solid #e6e9f0;

    border-radius: 8px;

    background: #fafbfc;

}

.location-fields-heading {

    display: flex;
    align-items: center;
    gap: 8px;

}

.location-fields-heading>i {

    width: 28px;
    height: 28px;

    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(116, 124, 240, .1);
    color: #747cf0;

    font-size: 14px;

}

.location-fields-heading strong {

    display: block;

    font-size: 10px;

    color: #343a40;

}

.location-fields-heading small {

    display: block;

    font-size: 8px;

    color: #98a6ad;

}

.config-location-fields label {

    font-size: 9px;
    font-weight: 600;

    color: #74788d;

}


/* =========================================
           STATUS SWITCH
        ========================================== */

.config-status-control {

    border-radius: 8px;
}

.config-status-control strong {

    display: block;

    font-size: 10px;
    color: #343a40;

}

.config-status-control small {

    display: block;

    margin-top: 2px;

    font-size: 8px;
    color: #98a6ad;

}

.config-switch {

    position: relative;

    width: 38px;
    height: 21px;

    cursor: pointer;

}

.config-switch input {

    display: none;

}

.config-switch span {

    position: absolute;

    inset: 0;

    background: #dfe2e7;

    border-radius: 20px;

    transition: .2s;

}

.config-switch span:before {

    content: "";

    position: absolute;

    width: 15px;
    height: 15px;

    left: 3px;
    top: 3px;

    background: #fff;

    border-radius: 50%;

    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);

    transition: .2s;

}

.config-switch input:checked+span {

    background: #34c38f;

}

.config-switch input:checked+span:before {

    transform: translateX(17px);

}


/* =========================================
           MODAL FOOTER
        ========================================== */

.config-modal .modal-footer {

    padding: 12px 18px;

    border-top: 1px solid #edf0f4;

    background: #fafbfc;

}

.config-modal .modal-footer .btn {

    font-size: 10px;

    padding: 7px 12px;

    border-radius: 6px;

}


/* =========================================
           RESPONSIVE
        ========================================== */

@media(max-width: 767px) {

    .config-topbar {

        align-items: flex-start;
        flex-direction: column;
        gap: 14px;

    }

    .config-topbar-right {

        width: 100%;

        justify-content: space-between;

    }

    .config-total {

        border-right: 0;
        padding-right: 0;

    }

}

@media(max-width: 480px) {

    .config-topbar-right {

        flex-wrap: wrap;

    }

    .config-add-main-btn {

        flex: 1;

    }

    .config-status {

        display: none;

    }

}


/* =========================================
   PROJECT CARD
========================================= */

.project-card {
    border: 1px solid #edf0f4;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;

    transition: transform .18s ease, box-shadow .18s ease;
}

.project-card:hover {
    box-shadow: 0 8px 24px rgba(43, 55, 72, .07);
}


/* =========================================
   CARD BODY
========================================= */

.project-card .card-body {
    padding: 14px 15px 12px;
}


/* =========================================
   HEADER
========================================= */

.project-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: linear-gradient(135deg,
            rgba(85, 110, 230, .16),
            rgba(85, 110, 230, .07));

    color: #556ee6;

    font-size: 14px;
    font-weight: 700;

    box-shadow: inset 0 0 0 1px rgba(85, 110, 230, .08);
}


/* =========================================
   TITLE
========================================= */

.project-title {
    max-width: 175px;

    color: #343a40;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.25;

    margin-bottom: 3px !important;
}

.project-type {
    color: #556ee6;

    font-size: 10px;
    font-weight: 600;
}


/* =========================================
   STATUS
========================================= */

.project-status-switch {
    padding-left: 0;
    margin: 0;
}

.project-status-switch .form-check-input {
    width: 30px;
    height: 17px;

    margin: 0;

    cursor: pointer;

    border-color: #dfe3e8;
    background-color: #e9ecef;
}

.project-status-switch .form-check-input:checked {
    background-color: #34c38f;
    border-color: #34c38f;
}

.project-status-switch .form-check-input:focus {
    box-shadow: none;
}


/* =========================================
   DIVIDER
========================================= */

.project-divider {
    height: 1px;

    background: #f1f2f4;

    margin: 11px 0;
}


/* =========================================
   INFO ROW
========================================= */

.project-info-row {
    min-height: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 4px;
}

.project-info-label {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #8a909b;

    font-size: 10px;
}

.project-info-label i {
    font-size: 14px;
    color: #9da3ae;
}


/* =========================================
   MANAGERS
========================================= */

.project-managers {
    display: flex;
    align-items: center;
}

.project-manager-avatar,
.project-manager-more {
    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    margin-left: -5px;

    border: 2px solid #fff;

    background: #eef1ff;
    color: #556ee6;

    font-size: 8px;
    font-weight: 600;
}

.project-manager-avatar:first-child {
    margin-left: 0;
}

.project-manager-more {
    background: #f1f2f4;
    color: #74788d;
}


/* =========================================
   COMPACT STATS
========================================= */

.project-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-stat i {
    font-size: 14px;
    color: #556ee6;
}

.project-stat:nth-child(4) i {
    color: #34c38f;
}

.project-stat span {
    color: #8a909b;
    font-size: 10px;
    font-weight: 500;
}

.project-stat strong {
    color: #343a40;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================
   ACTION BAR
========================================= */

.project-actions {
    display: flex;
    align-items: center;

    border-top: 1px solid #eef0f3;

    padding: 4px 6px;

    gap: 2px;

    background: #fff;
}

.project-action {
    flex: 1;
    min-width: 0;
    height: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #74788d;
    text-decoration: none;
    font-size: 8px;
    cursor: pointer;
    transition: all .15s ease;
}

.project-status-toggle {
    width: 40px !important;
    height: 15px !important;
    cursor: pointer;
    background-color: #eecbcf !important;
    border-color: #eecbcf !important;
    box-shadow: none !important;
}

.project-status-toggle:checked {
    background-color: #34c38f !important;
    border-color: #34c38f !important;
}

.project-action i {
    font-size: 15px;

    margin-bottom: 1px;
}

.project-action {
    background: #f4f6ff;
    color: #556ee6;
}

.project-action:hover {
    color: #f4f6ff;
    background: #556ee6;
}

.project-action:nth-child(2) {
    background: #fff9ef;
    color: #f1a965;
}

.project-action:nth-child(2):hover {
    color: #fff9ef;
    background: #f1a965;
}

.project-action:nth-child(3) {
    background: #effaf6;
    color: #34c38f;
}

.project-action:nth-child(3):hover {
    color: #effaf6;
    background: #34c38f;
}

.project-action:nth-child(4) {
    background: #e8f4ff;
    color: #3498db;
}

.project-action:nth-child(4):hover {
    color: #e8f4ff;
    background: #3498db;
}

.project-delete-action {
    background: #fff2f2 !important;
    color: #f46a6a !important;
    padding: 0 24px;
}

.project-delete-action:hover {
    color: #fff2f2 !important;
    background: #f46a6a !important;
}


/* =========================================
   EMPTY STATE
========================================= */

.project-empty-icon {
    width: 50px;
    height: 50px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #f4f6ff;
    color: #556ee6;

    font-size: 23px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 767px) {

    .project-card .card-body {
        padding: 13px;
    }

    .project-title {
        max-width: 150px;
    }

    .project-actions {
        padding: 4px;
    }

    .project-action {
        height: 32px;
        font-size: 8px;
    }

}



/* =========================================
   PROJECT CREATE
========================================= */

.project-card {
    border: 1px solid #eef0f3;
    border-radius: 9px;
    box-shadow: none;
    margin-bottom: 14px;
}

.project-card .card-body {
    padding: 18px;
}


/* =========================================
   SECTION TITLE
========================================= */

.form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #343a40;

    padding-bottom: 11px;
    margin-bottom: 16px;

    border-bottom: 1px solid #f0f1f3;
}


/* =========================================
   FORM
========================================= */

.project-card .form-label {
    font-size: 11px;
    font-weight: 600;
    color: #495057;

    margin-bottom: 5px;
}

.project-card .form-control,
.project-card .form-select {
    height: 37px;

    border: 1px solid #e2e5e9;
    border-radius: 6px;

    font-size: 12px;

    box-shadow: none;
}

.project-card textarea.form-control {
    height: auto;
    min-height: 70px;
    resize: vertical;
}

.project-card .form-control:focus,
.project-card .form-select:focus {
    border-color: #556ee6;

    box-shadow:
        0 0 0 2px rgba(85, 110, 230, .06);
}


/* =========================================
   INPUT GROUP
========================================= */

.project-card .input-group-text {
    height: 37px;

    background: #f8f9fa;
    border-color: #e2e5e9;

    color: #74788d;
    font-size: 12px;
}

.project-unit {
    max-width: 110px;
}


/* =========================================
   MANAGERS
========================================= */

.manager-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.manager-item {
    position: relative;

    display: flex;
    align-items: center;

    padding: 8px 9px;

    border: 1px solid #eef0f3;
    border-radius: 7px;

    cursor: pointer;

    transition: .15s ease;
}

.manager-item:hover {
    background: #f8f9fb;
}

.manager-item input {
    position: absolute;
    opacity: 0;
}

.unassigned-avatar {
    color: #f68872 !important;
    background-color: #fef0f0 !important;
}

.manager-avatar {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 9px;

    border-radius: 50%;

    background: rgba(85, 110, 230, .09);
    color: #556ee6;

    font-size: 11px;
    font-weight: 600;
}

.manager-name {
    flex: 1;

    font-size: 12px;
    font-weight: 500;

    color: #343a40;
}

.manager-check {
    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d8dce1;
    border-radius: 4px;

    color: transparent;
    font-size: 11px;
}

.manager-item input:checked~.manager-check {
    background: #34c38f;
    border-color: #24a073;
    color: #fff;
}


/* =========================================
   SUMMARY
========================================= */

.summary-list {
    display: flex;
    flex-direction: column;
}

.summary-row {
    min-height: 37px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #f0f1f3;
}

.summary-row:last-child {
    border-bottom: 0;
}

.summary-row>span:first-child {
    color: #74788d;
    font-size: 11px;
}

.summary-row strong {
    max-width: 180px;

    color: #343a40;
    font-size: 11px;
    font-weight: 600;

    text-align: right;
}

.status-badge {
    padding: 4px 8px;

    border-radius: 4px;

    background: rgba(52, 195, 143, .1);
    color: #34c38f;

    font-size: 10px;
    font-weight: 600;
}


/* =========================================
   FILE
========================================= */

.file-preview {
    min-height: 18px;

    color: #74788d;
    font-size: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================
   BUTTON
========================================= */

.project-card .btn {
    /* min-height: 38px; */
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 767px) {

    .project-card .card-body {
        padding: 15px;
    }

    .project-unit {
        max-width: 100px;
    }

}








/* =========================================
   PROJECT VIEW
========================================= */

.project-view-card {
    border: 1px solid #eef0f3;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .025);
}


/* =========================================
   HEADER
========================================= */

.project-header-body {
    padding: 16px 18px;
}

.project-view-avatar {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: linear-gradient(135deg,
            #556ee6,
            #7b8bea);

    color: #fff;

    font-size: 17px;
    font-weight: 700;

    box-shadow: 0 4px 12px rgba(85, 110, 230, .18);
}

.project-view-title {
    font-size: 17px;
    font-weight: 600;
    color: #343a40;
}

.project-header-meta {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #74788d;
    font-size: 11px;
}

.meta-dot {
    color: #c5c8ce;
}


/* =========================================
   STATUS
========================================= */

.project-status {
    padding: 3px 8px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 600;
}

.project-status.active {
    color: #34c38f;
    background: rgba(52, 195, 143, .10);
}

.project-status.inactive {
    color: #f46a6a;
    background: rgba(244, 106, 106, .10);
}


/* =========================================
   SECTION TITLE
========================================= */

.project-view-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-view-section-title h5 {
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
}

.project-view-section-title small {
    display: block;

    margin-top: 2px;

    color: #9aa0ac;
    font-size: 9px;
}

.section-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 17px;
}

.section-icon.blue {
    background: rgba(85, 110, 230, .10);
    color: #556ee6;
}

.section-icon.green {
    background: rgba(52, 195, 143, .10);
    color: #34c38f;
}

.section-icon.orange {
    background: rgba(241, 180, 76, .12);
    color: #f1b44c;
}

.section-icon.purple {
    background: rgba(116, 120, 141, .10);
    color: #74788d;
}

.section-icon.red {
    background: rgba(244, 106, 106, .10);
    color: #f46a6a;
}


/* =========================================
   DETAILS GRID
========================================= */

.project-details-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    margin-top: 20px;

    border-top: 1px solid #f0f1f3;
    border-left: 1px solid #f0f1f3;
}

.project-detail {
    min-height: 68px;

    padding: 12px 14px;

    border-right: 1px solid #f0f1f3;
    border-bottom: 1px solid #f0f1f3;
}

.detail-label {
    display: block;

    margin-bottom: 5px;

    color: #969ba5;

    font-size: 9px;
}

.project-detail strong {
    display: block;

    color: #343a40;

    font-size: 11px;
    font-weight: 600;

    word-break: break-word;
}

.project-detail .price-value {
    color: #34a77b;
}


/* =========================================
   LOCATION
========================================= */

.project-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-top: 17px;

    padding: 11px 12px;

    border-radius: 7px;

    background: #f8f9fb;

    color: #5f6570;

    font-size: 11px;
    line-height: 1.5;
}

.project-location i {
    color: #f1b44c;
    font-size: 16px;
}


/* =========================================
   DESCRIPTION
========================================= */

.project-description {
    margin-top: 17px;

    color: #74788d;

    font-size: 11px;
    line-height: 1.8;
}


/* =========================================
   OVERVIEW STATS
========================================= */

.project-overview-stats {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 8px;

    margin-top: 16px;
}

.overview-stat {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px;

    border: 1px solid #f0f1f3;
    border-radius: 8px;
}

.overview-stat-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-size: 15px;
}

.overview-stat-icon.blue {
    background: rgba(85, 110, 230, .10);
    color: #556ee6;
}

.overview-stat-icon.green {
    background: rgba(52, 195, 143, .10);
    color: #34c38f;
}

.overview-stat-icon.orange {
    background: rgba(241, 180, 76, .12);
    color: #f1b44c;
}

.overview-stat-icon.purple {
    background: rgba(116, 120, 141, .10);
    color: #74788d;
}

.overview-stat span {
    display: block;

    color: #969ba5;

    font-size: 9px;
}

.overview-stat strong {
    display: block;

    margin-top: 1px;

    color: #343a40;

    font-size: 13px;
}


/* =========================================
   MANAGERS
========================================= */

.project-manager-list {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.project-manager {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 8px;

    border-radius: 7px;

    transition: background .15s ease;
}

.project-manager:hover {
    background: #f8f9fb;
}

.project-manager-avatar {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #eef1ff;
    color: #556ee6;

    font-size: 10px;
    font-weight: 600;
}

.project-manager strong {
    display: block;

    color: #343a40;

    font-size: 11px;
}

.project-manager span {
    display: block;

    margin-top: 1px;

    color: #9aa0ac;

    font-size: 9px;
}


/* =========================================
   BROCHURE
========================================= */

.project-brochure {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 9px;

    border: 1px solid #eef0f3;
    border-radius: 8px;

    text-decoration: none;

    transition: all .15s ease;
}

.project-brochure:hover {
    background: #fff8f8;
    border-color: rgba(244, 106, 106, .25);
}

.brochure-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: rgba(244, 106, 106, .10);
    color: #f46a6a;

    font-size: 17px;
}

.project-brochure strong {
    display: block;

    color: #343a40;

    font-size: 10px;
}

.project-brochure span {
    display: block;

    color: #9aa0ac;

    font-size: 8px;
}

.brochure-download {
    color: #74788d;
    font-size: 17px;
}


/* =========================================
   GALLERY
========================================= */

.project-gallery {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 7px;
}

.gallery-item {
    height: 100px;

    overflow: hidden;

    border-radius: 7px;

    background: #f8f9fb;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .25s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* =========================================
   EMPTY MEDIA
========================================= */

.project-no-media {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 65px;

    border-radius: 7px;

    background: #f8f9fb;

    color: #9aa0ac;

    font-size: 10px;
}

.project-no-media i {
    font-size: 18px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .project-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 575px) {

    .project-header-body {
        padding: 14px;
    }

    .project-view-title {
        font-size: 15px;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
    }

    .project-overview-stats {
        grid-template-columns: 1fr 1fr;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        height: 110px;
    }

}

/* =========================================
   EXISTING FILE
========================================= */

.existing-file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
}

.existing-file-icon {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff0f0;
    color: #dc3545;
    font-size: 21px;
    flex-shrink: 0;
}

.existing-file-info {
    min-width: 0;
    flex: 1;
}

.existing-file-title {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.existing-file-subtitle {
    font-size: 10px;
    color: #98a6ad;
    margin-top: 2px;
}

.existing-file-actions {
    display: flex;
    gap: 5px;
}


/* =========================================
   EXISTING GALLERY
========================================= */

.existing-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.existing-gallery-item {
    position: relative;
    height: 85px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}

.existing-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s ease;
}

.existing-gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .2s ease;
}

.existing-gallery-item:hover .gallery-image-overlay {
    opacity: 1;
}

.gallery-action-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #495057;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.gallery-action-btn:hover {
    background: #f1f3f5;
    color: #212529;
}

.gallery-action-btn.delete {
    color: #dc3545;
}

.gallery-action-btn.delete:hover {
    background: #dc3545;
    color: #fff;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 575px) {

    .existing-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}




.manager-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px;
    margin-bottom: 6px;

    border: 1px solid #eef0f3;
    border-radius: 7px;

    cursor: pointer;
}

.manager-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.manager-avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f1f3fa;
    color: #556ee6;

    font-size: 12px;
    font-weight: 600;
}

.manager-name {
    font-size: 12px;
    font-weight: 600;
}

.manager-email {
    font-size: 10px;
    color: #98a6ad;
}


/* =====================================
   MANAGER GRID
===================================== */

.manager-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 8px;

    width: 100%;
}


/* =====================================
   MANAGER CHECKBOX
===================================== */

.manager-checkbox {
    position: relative;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 8px 9px;

    border: 1px solid #eef0f3;
    border-radius: 6px;

    background: #fff;

    cursor: pointer;

    transition: all .15s ease;

    min-width: 0;
}


/* Hide default checkbox */

.manager-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* Custom tick */

.manager-checkmark {
    width: 16px;
    height: 16px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d9dce3;
    border-radius: 4px;

    color: transparent;

    font-size: 12px;

    transition: all .15s ease;
}


/* Manager name */

.manager-name {
    font-size: 11px;
    font-weight: 500;

    color: #495057;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =====================================
   SELECTED
===================================== */

.manager-checkbox:has(input:checked) {
    background: rgba(85, 110, 230, .06);

    border-color: rgba(85, 110, 230, .35);
}


.manager-checkbox:has(input:checked) .manager-checkmark {
    background: #556ee6;

    border-color: #556ee6;

    color: #fff;
}


.manager-checkbox:has(input:checked) .manager-name {
    color: #556ee6;

    font-weight: 600;
}


/* Hover */

.manager-checkbox:hover {
    background: #fafbff;

    border-color: #dce1f3;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 575px) {

    .manager-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}




/* =========================================
           MAIN LOGIN
        ========================================= */

.login-wrapper {
    min-height: 100vh;

    display: flex;
}


/* =========================================
           LEFT PANEL
        ========================================= */



.login-left {
    position: relative;

    width: 60%;

    min-height: 100vh;

    overflow: hidden;

    background: linear-gradient(135deg, #03244a 0%, #3862a6 100%);

    color: #fff;

    display: flex;

    align-items: center;

    padding: 70px;
}


/* Background circles */

.login-left::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .07);

    top: -180px;
    right: -120px;
}


.login-left::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .05);

    bottom: -130px;
    left: -100px;
}


.login-left-content {
    position: relative;

    z-index: 2;

    max-width: 650px;

    width: 100%;

    margin: auto;
}


/* =========================================
           BRAND
        ========================================= */

.brand {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 45px;
}


.brand-icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 255, 255, .15);

    border: 1px solid rgba(255, 255, 255, .18);

    backdrop-filter: blur(10px);

    font-size: 22px;
}


.brand-name {
    font-size: 23px;

    font-weight: 700;

    letter-spacing: -.5px;
}


/* =========================================
           HERO
        ========================================= */

.hero-badge {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 12px;

    border-radius: 30px;

    background: rgba(255, 255, 255, .11);

    border: 1px solid rgba(255, 255, 255, .12);

    font-size: 11px;

    font-weight: 500;

    margin-bottom: 20px;
}


.hero-badge i {
    font-size: 13px;
}


.hero-title {
    font-size: 48px;

    line-height: 1.12;

    font-weight: 700;

    letter-spacing: -1.5px;

    margin-bottom: 20px;
}


.hero-title span {
    opacity: .75;
}


.hero-description {
    font-size: 15px;

    line-height: 1.8;

    color: rgba(255, 255, 255, .72);

    max-width: 520px;

    margin-bottom: 38px;
}


/* =========================================
           FEATURES
        ========================================= */

.feature-list {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.feature {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 13px;

    border-radius: 8px;

    background: rgba(255, 255, 255, .08);

    border: 1px solid rgba(255, 255, 255, .09);

    font-size: 11px;

    color: rgba(255, 255, 255, .85);
}


.feature i {
    font-size: 15px;

    color: #fff;
}


/* =========================================
           LEFT FOOTER
        ========================================= */

.left-footer {
    position: absolute;

    left: 70px;
    bottom: 35px;

    font-size: 10px;

    color: rgba(255, 255, 255, .45);
}


/* =========================================
           RIGHT PANEL
        ========================================= */

.login-right {
    width: 40%;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;
}


.login-box {
    width: 100%;

    max-width: 430px;
}


/* =========================================
           LOGIN HEADER
        ========================================= */

.login-header {
    margin-bottom: 30px;
}


.login-header h2 {
    font-size: 25px;

    font-weight: 700;

    letter-spacing: -.5px;

    margin-bottom: 7px;
}


.login-header p {
    margin: 0;

    font-size: 12px;

    color: #98a6ad;
}


/* =========================================
           ERROR
        ========================================= */

.login-error {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 12px;

    border-radius: 7px;

    background: #fff1f1;

    border: 1px solid #ffdada;

    color: #e55353;

    font-size: 11px;

    margin-bottom: 20px;
}


/* =========================================
           FORM
        ========================================= */

.form-group {
    margin-bottom: 20px;
}


.form-label {
    font-size: 11px;

    font-weight: 600;

    color: #495057;

    margin-bottom: 7px;
}


.input-wrapper {
    position: relative;
}


.input-icon {
    position: absolute;

    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: #adb5bd;

    font-size: 16px;

    z-index: 2;
}


.login-input {
    width: 100%;

    height: 47px;

    border: 1px solid #e5e8ed;

    border-radius: 8px;

    background: #fff;

    padding: 0 14px 0 40px;

    font-size: 12px;

    color: #343a40;

    outline: none;

    transition: .2s ease;
}


.login-input::placeholder {
    color: #adb5bd;
}


.login-input:focus {
    border-color: #556ee6;

    box-shadow: 0 0 0 3px rgba(85, 110, 230, .08);
}


/* Password */

.password-toggle {
    position: absolute;

    right: 5px;
    top: 5px;

    width: 37px;
    height: 37px;

    border: 0;

    background: transparent;

    border-radius: 6px;

    color: #98a6ad;

    cursor: pointer;
}


.password-toggle:hover {
    background: #f5f6fa;

    color: #556ee6;
}


/* =========================================
           OPTIONS
        ========================================= */

.login-options {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 5px;

    margin-bottom: 25px;
}


.remember {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 11px;

    color: #74788d;

    cursor: pointer;
}


.remember input {
    width: 14px;
    height: 14px;

    cursor: pointer;
}


.forgot-password {
    font-size: 11px;

    color: #556ee6;

    text-decoration: none;

    font-weight: 500;
}


.forgot-password:hover {
    color: #3f51b5;
}


/* =========================================
           LOGIN BUTTON
        ========================================= */

.login-button {
    width: 100%;
    height: 47px;
    border: 0;
    border-radius: 8px;
    background: #3862a6 !important;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: .2s ease;
}

.login-button:hover{
    background: #234171 !important;
}


/* =========================================
           DIVIDER
        ========================================= */

.login-divider {
    display: flex;

    align-items: center;

    gap: 12px;

    margin: 30px 0;
}


.login-divider span {
    flex: 1;

    height: 1px;

    background: #edf0f4;
}


.login-divider small {
    color: #adb5bd;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================
           SECURITY INFO
        ========================================= */

.security-box {
    display: flex;

    align-items: center;

    gap: 11px;

    padding: 12px;

    border-radius: 8px;

    background: #f8f9fc;

    border: 1px solid #eef0f4;
}


.security-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: rgba(52, 195, 143, .10);

    color: #34c38f;

    font-size: 15px;
}


.security-text strong {
    display: block;

    font-size: 10px;

    color: #495057;

    margin-bottom: 2px;
}


.security-text span {
    display: block;

    font-size: 9px;

    color: #98a6ad;
}


/* =========================================
           COPYRIGHT
        ========================================= */

.copyright {
    text-align: center;

    margin-top: 28px;

    color: #adb5bd;

    font-size: 9px;
}


/* =========================================
           RESPONSIVE
        ========================================= */

@media (max-width: 1100px) {

    .login-left {
        width: 50%;

        padding: 45px;
    }

    .login-right {
        width: 50%;
    }

    .hero-title {
        font-size: 40px;
    }

    .left-footer {
        left: 45px;
    }

}


@media (max-width: 850px) {

    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;

        min-height: 100vh;

        padding: 25px;
    }

    .login-box {
        max-width: 400px;
    }

}


@media (max-width: 450px) {

    .login-right {
        padding: 20px;
    }

    .login-header h2 {
        font-size: 23px;
    }

    .login-options {
        align-items: flex-start;

        gap: 10px;
    }

}








/* =========================================================
   LEADS PAGE
========================================================= */

.leads-page {
    --ink: #171b26;
    --ink-soft: #656d80;
    --ink-faint: #9aa1b0;
    --paper: #f3f5f9;
    --surface: #ffffff;
    --line: #e6e9f0;
    --line-soft: #eef1f6;

    --brand: #34c38f;
    --brand-ink: #229168;
    --brand-tint: #fbf1e3;

    --teal: #1f7a6c;
    --teal-tint: #e8f5f2;

    --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    background: transparent;
    font-family: var(--font-body);
    color: var(--ink);
    padding-bottom: 8px;
}

/* =========================
   PAGE HEADER
========================= */

.lead-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.leads-page .page-heading h4 {
    font-weight: 600;
    font-size: 26px;
    color: var(--ink);
    letter-spacing: -.2px;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.leads-page .page-heading p {
    color: var(--ink-soft);
    font-size: 13px;
    margin: 0;
}

.lead-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================
   FILTER BAR
========================= */

.lead-filter-bar {
    background: var(--surface);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    box-shadow: none;
}

.lead-filter-inner {
    /* min-height: 42px; */
    display: flex;
    align-items: center;
    width: 100%;
}

.lead-filter-search {
    width: 30%;
    min-width: 220px;
    height: 30px;
    display: flex;
    align-items: center;
    position: relative;
}

.lead-filter-search i {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: var(--ink-faint);
}

.lead-filter-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 12px 0 36px;
    background: transparent;
    font-size: 13px;
    color: var(--ink);
    font-family: var(--font-body);
}

.lead-filter-search input::placeholder {
    color: var(--ink-faint);
}

.lead-filter-divider {
    width: 1px;
    height: 22px;
    background: #ddd;
    flex-shrink: 0;
}

.lead-filter-item {
    height: 30px;
    min-width: 150px;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.lead-filter-item i {
    color: var(--ink-faint);
    font-size: 15px;
    flex-shrink: 0;
}

.lead-filter-item select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #454c5d;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 18px 0 0;
    font-family: var(--font-body);
}

.lead-filter-submit {
    height: 30px;
    width: 40px;
    margin-left: 5px;
    border: 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: #1f7a6c;
    color: #fff;
    transition: all .15s ease;
}

.lead-filter-reset {
    height: 30px;
    width: 40px;
    margin-left: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    background: #b5495a;
    color: #fff;
    transition: all .15s ease;
}





/* =========================================================
   LEAD STATUS TABS
========================================================= */

.lead-status-tabs {
    width: 100%;
}

.lead-status-tabs-inner {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);

    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgb(237 237 237) transparent;
}

.lead-status-tab {
    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;

    min-width: max-content;

    padding: 9px 15px;

    background: transparent;
    border: 0;
    border-radius: 8px;

    color: #6b7280;

    cursor: pointer;

    transition: all 0.2s ease;
}

.lead-status-tab:hover {
    background: #f7f9fb;
    color: #212529;
}

.lead-status-tab.active {
    background: #ecfdf3;
    color: #198754;
}


/* CODE */

.lead-tab-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 30px;
    height: 30px;

    padding: 0 7px;

    border-radius: 7px;

    background: #f1f3f5;

    color: #495057;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;

    transition: all 0.2s ease;
}

.lead-status-tab.active .lead-tab-code {
    background: #198754;
    color: #ffffff;
}


/* TEXT */

.lead-tab-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lead-tab-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}


/* COUNT */

.lead-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 24px;
    height: 22px;

    padding: 0 7px;

    border-radius: 20px;

    background: #f1f3f5;

    color: #6c757d;

    font-size: 11px;
    font-weight: 700;
}

.lead-status-tab.active .lead-tab-count {
    background: #d1fae5;
    color: #198754;
}


/* MOBILE */

@media (max-width: 767px) {

    .lead-status-tabs-inner {
        gap: 5px;
        padding: 5px;
    }

    .lead-status-tab {
        padding: 8px 11px;
        gap: 7px;
    }

    .lead-tab-title {
        font-size: 12px;
    }

    .lead-tab-code {
        min-width: 28px;
        height: 28px;
    }

}

/* =========================
   TABLE CARD
========================= */

.lead-table-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: none;
    overflow: hidden;
}

.lead-table-topbar {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lead-table-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.lead-table-title strong {
    font-size: 13.5px;
    color: var(--ink);
    font-weight: 600;
}

.lead-count-badge {
    background: var(--paper);
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid var(--line);
}

/* =========================
   TABLE
========================= */

.leads-table {
    margin: 0;
    min-width: 1050px;
}

.leads-table thead th {
    background: #2f3236;
    border-bottom: 1px solid var(--line);
    border-top: 0;
    padding: 11px 20px;
    font-size: 10.5px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .3px;
    white-space: nowrap;
}

.leads-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
    font-size: 12.5px;
    color: #444b5c;
}

.leads-table tbody tr {
    transition: background .12s ease;
}

.leads-table tbody tr:hover {
    background: #fafbfd;
}

.leads-table tbody tr:last-child td {
    border-bottom: 0;
}

/* =========================
   LEAD IDENTITY
========================= */

.lead-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 190px;
}

.lead-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.lead-avatar.tone-a {
    background: #4c6fa5;
}

.lead-avatar.tone-b {
    background: #1f7a6c;
}

.lead-avatar.tone-c {
    background: #a9721f;
}

.lead-avatar.tone-d {
    background: #7a5cb8;
}

.lead-avatar.tone-e {
    background: #b5495a;
}

.lead-identity-info {
    min-width: 0;
}

.lead-name {
    font-size: 13px;
    line-height: 18px;
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
}

.lead-project-name {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-size: 10.5px;
    color: var(--ink-faint);
    white-space: nowrap;
}

.lead-project-name i {
    font-size: 9px;
    color: #34c38f;
}

/* =========================
   PHONE
========================= */

.lead-phone-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 11.5px;
}

.lead-phone-icon {
    width: 26px;
    height: 26px;
    border-radius: 50px;
    background: var(--teal-tint);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.lead-phone {
    color: #454c5d;
    font-size: 11px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

/* =========================
   STATUS
========================= */

.lead-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    background: #f2f2f2;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #989292;
}

/* =========================================================
   FRESH
   ========================================================= */

.lead-status.new {
    color: #16865f;
    background: #e9f9f3;
    border-color: #c9efdf;
}

.lead-status.new .status-dot {
    background: #22b77b;
    box-shadow: 0 0 0 3px rgba(34, 183, 123, .12);
}


/* =========================================================
   CONTACTED
   ========================================================= */

.lead-status.contacted {
    color: #4f5fbd;
    background: #eeeffb;
    border-color: #dcdff6;
}

.lead-status.contacted .status-dot {
    background: #6574cd;
    box-shadow: 0 0 0 3px rgba(101, 116, 205, .12);
}


/* =========================================================
   INTERESTED
   ========================================================= */

.lead-status.interested {
    color: #187568;
    background: #e7f7f4;
    border-color: #c9ebe5;
}

.lead-status.interested .status-dot {
    background: #1f8b7d;
    box-shadow: 0 0 0 3px rgba(31, 139, 125, .12);
}


/* =========================================================
   FOLLOW UP
   ========================================================= */

.lead-status.follow-up {
    color: #b97918;
    background: #fff6e5;
    border-color: #f6e2b9;
}

.lead-status.follow-up .status-dot {
    background: #d79628;
    box-shadow: 0 0 0 3px rgba(215, 150, 40, .12);
}


/* =========================================================
   NOT INTERESTED
   ========================================================= */

.lead-status.not-interested {
    color: #a5394a;
    background: #fbeaec;
    border-color: #f2d1d7;
}

.lead-status.not-interested .status-dot {
    background: #b5495a;
    box-shadow: 0 0 0 3px rgba(181, 73, 90, .12);
}


/* =========================================================
   NOT CONTACTED
   ========================================================= */

.lead-status.not-contacted {
    color: #687385;
    background: #f1f3f5;
    border-color: #e1e5e9;
}

.lead-status.not-contacted .status-dot {
    background: #7b8794;
    box-shadow: 0 0 0 3px rgba(123, 135, 148, .12);
}


/* =========================================================
   CALL CUT
   ========================================================= */

.lead-status.call-cut {
    color: #c05a32;
    background: #fff0eb;
    border-color: #f5d4c9;
}

.lead-status.call-cut .status-dot {
    background: #d66a3c;
    box-shadow: 0 0 0 3px rgba(214, 106, 60, .12);
}


/* =========================================================
   SWITCH OFF
   ========================================================= */

.lead-status.switch-off {
    color: #6c5a9e;
    background: #f1edfa;
    border-color: #dfd7f1;
}

.lead-status.switch-off .status-dot {
    background: #806bb3;
    box-shadow: 0 0 0 3px rgba(128, 107, 179, .12);
}

/* =========================
   SOURCE
========================= */

.lead-source-info {
    min-width: 115px;
}

.lead-source-name {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: #454c5d;
    line-height: 16px;
}

.source-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #989292;
}

.source-dot.src-website {
    background: #4c6fa5;
}

.source-dot.src-facebook {
    background: #3b5998;
}

.source-dot.src-google {
    background: #d79628;
}

.source-dot.src-99acres {
    background: #1f7a6c;
}

.source-dot.src-magicbricks {
    background: #b5495a;
}

.lead-sub-source {
    display: block;
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 10.5px;
    line-height: 14px;
}

/* =========================
   MANAGED BY
========================= */

.manager-cell {
    display: flex;
    align-items: center;
    gap: 0px;
    white-space: nowrap;
}

.manager-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f8ff;
    color: #50a5f1;
    font-size: 10.5px;
    font-weight: 700;
    border: none;
}

.manager-info strong {
    display: block;
    color: #5babf2;
    font-size: 11.5px;
    font-weight: 600;
}

/* =========================
   ACTIONS
========================= */

.lead-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lead-action-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50px;
    border: none;
    background: var(--surface);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    text-decoration: none;
    transition: all .14s ease;
}

.lead-action-btn.edit {
    background: #a9721f;
}

.lead-action-btn.call {
    background: #4c6fa5;
}

.lead-action-btn.whatsapp {
    background: #1f7a6c;
}

/* =========================
   TABLE FOOTER
========================= */

.lead-table-footer {
    padding: 13px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.lead-showing-text {
    font-size: 11.5px;
    color: var(--ink-faint);
}

.lead-showing-text strong {
    color: var(--ink-soft);
}

.lead-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lead-pagination button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    border-radius: 7px;
    font-size: 11px;
}

.lead-pagination button.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.lead-pagination button:disabled {
    opacity: .4;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {

    .lead-filter-inner {
        flex-wrap: wrap;
    }

    .lead-filter-search {
        width: 100%;
        border-bottom: 1px solid var(--line-soft);
        margin-bottom: 4px;
    }

    .lead-filter-divider {
        display: none;
    }

    .lead-filter-item {
        min-width: 30%;
    }

}

@media (max-width: 767px) {

    .lead-page-header {
        align-items: flex-start;
    }

    .lead-table-topbar {
        padding: 13px 15px;
    }

    .lead-table-footer {
        padding: 11px 15px;
    }

}

@media (max-width: 575px) {

    .lead-header-actions {
        width: 100%;
    }

    .btn-quiet,
    .btn-brand {
        flex: 1;
        justify-content: center;
    }

    .lead-filter-item {
        width: 100%;
        flex: none;
        border-bottom: 1px solid var(--line-soft);
    }

    .lead-filter-submit,
    .lead-filter-reset {
        margin-top: 5px;
    }

}





/* =====================================
           ROLE SIDEBAR
        ===================================== */

.permission-role-card,
.permission-main-card {
    border: 1px solid #eef0f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .025);
}

.permission-role-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.permission-role-heading h5 {
    font-size: 14px;
    font-weight: 600;
}

.permission-role-heading small {
    color: #98a6ad;
    font-size: 10px;
}

.role-count {
    min-width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: #f1f3fa;
    color: #556ee6;

    font-size: 11px;
    font-weight: 600;
}


.permission-role-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.permission-role-item {
    width: 100%;

    border: 0;
    background: transparent;

    padding: 8px 9px;

    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    text-align: left;

    transition: all .15s ease;
}

.permission-role-item:hover {
    background: #f8f9fc;
}

.permission-role-item.active {
    background: rgba(85, 110, 230, .08);
    color: #556ee6;
}


.permission-role-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: #f4f5f9;
    color: #74788d;

    font-size: 15px;
}

.permission-role-item.active .permission-role-icon {
    background: #556ee6;
    color: #fff;
}


.permission-role-name {
    font-size: 12px;
    font-weight: 600;
}

.permission-role-sub {
    font-size: 9px;
    color: #98a6ad;
    margin-top: 1px;
}


/* =====================================
           HEADER
        ===================================== */

.permission-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.permission-header h5 {
    font-size: 14px;
    font-weight: 600;
}

.selected-role-badge {
    font-size: 10px;
    font-weight: 500;

    padding: 3px 7px;

    border-radius: 4px;

    background: rgba(85, 110, 230, .08);
    color: #556ee6;
}

.permission-actions {
    display: flex;
    gap: 5px;
}

.permission-actions .btn {
    font-size: 11px;
    padding: 5px 9px;
}


/* =====================================
           MODULE
        ===================================== */

.permission-module {
    border: 1px solid #edf0f4;

    border-radius: 6px;

    margin-bottom: 8px;

    overflow: hidden;

    background: #fff;
}


.permission-module-header {
    min-height: 42px;

    padding: 7px 10px;

    background: #fafbfc;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.permission-module-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: rgba(85, 110, 230, .08);
    color: #556ee6;

    font-size: 14px;
}


.permission-module-name {
    font-size: 12px;
    font-weight: 600;
    color: #343a40;
}


/* =====================================
           PERMISSION LIST
        ===================================== */

.permission-list {
    display: flex;
    flex-wrap: wrap;

    padding: 6px 8px;

    gap: 5px;
}


.permission-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-width: 100px;

    padding: 6px 8px;

    border: 1px solid #eef0f3;

    border-radius: 5px;

    cursor: pointer;

    background: #fff;

    transition: all .15s ease;
}


.permission-item:hover {
    border-color: #dce1f3;
    background: #fafbff;
}


.permission-checkbox {
    margin: 0 !important;

    width: 14px;
    height: 14px;

    cursor: pointer;
}


.permission-label {
    font-size: 10px;
    font-weight: 500;

    color: #495057;

    cursor: pointer;
}


.permission-item:has(.permission-checkbox:checked) {
    background: rgba(85, 110, 230, .05);
    border-color: rgba(85, 110, 230, .25);
}


/* =====================================
           LOADER
        ===================================== */

.permission-loader {
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 25px;

    color: #74788d;

    font-size: 11px;
}


.permission-loader:not(.d-none) {
    display: flex;
}


/* =====================================
           FOOTER
        ===================================== */

.permission-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 12px;
    padding-top: 12px;

    border-top: 1px solid #eef0f3;
}


.permission-summary {
    display: flex;
    align-items: center;
    gap: 5px;

    font-size: 10px;
    color: #98a6ad;
}

.permission-summary i {
    font-size: 15px;
    color: #34c38f;
}


#savePermissions {
    font-size: 11px;
    padding: 6px 12px;
}


/* =====================================
           TOAST
        ===================================== */

.permission-toast {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 15px;

    border-radius: 6px;

    background: #343a40;
    color: #fff;

    font-size: 12px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition: all .25s ease;
}


.permission-toast.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


.permission-toast i {
    font-size: 17px;
    color: #34c38f;
}


@media(max-width: 991px) {

    .permission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

}


@media(max-width: 575px) {

    .permission-list {
        gap: 4px;
    }

    .permission-item {
        min-width: calc(50% - 2px);
    }

    .permission-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

}






.bulk-upload-info {
    background: #f8fafc;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
}

.bulk-upload-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #eaf7ef;
    color: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}




.status-badge.active {
    background: #e8f8f0;
    color: #34c38f;
}

.status-badge.inactive {
    background: #fff0f0;
    color: #f46a6a;
}





/* =========================================================
   ASSIGN LEADS MODAL
========================================================= */

.assign-leads-modal {
    border: 0;
    border-radius: 16px;
    overflow: auto !important;
    scrollbar-width: none;
    scrollbar-color: #ababab #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

.assign-leads-modal::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.assign-leads-modal::-webkit-scrollbar-track {
    background: transparent;
}

.assign-leads-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.assign-leads-modal::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================================
   HEADER
========================================================= */

.assign-leads-modal .modal-header {
    padding: 18px 20px 15px;
    border-bottom: 1px solid #f0f2f5 !important;
}

.assign-modal-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.assign-modal-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f8ff;
    color: #50a5f1;
    font-size: 19px;
}

.assign-leads-modal .modal-title {
    margin: 0;

    font-size: 16px;
    line-height: 1.3;

    font-weight: 650;
    color: #202631;
}

.assign-leads-modal .modal-header p {
    margin: 3px 0 0;

    font-size: 11px;
    line-height: 1.4;

    color: #8a94a6;
}


/* =========================================================
   BODY
========================================================= */

.assign-leads-modal .modal-body {
    padding: 17px 20px 15px;
}

.assign-leads-modal .modal-footer {
    padding: 12px 20px 18px;
    border-top: 1px solid #f0f2f5 !important;
}


/* =========================================================
   LABEL
========================================================= */

.assign-label {
    display: block;

    margin-bottom: 6px;

    font-size: 12px;
    line-height: 1.4;

    font-weight: 600;
    color: #4b5563;
}

.assign-help {
    margin-top: 5px;

    font-size: 10.5px;
    line-height: 1.4;

    color: #929baa;
}


/* =========================================================
   INPUTS
========================================================= */

.assign-leads-modal .form-select,
.assign-leads-modal .form-control {

    min-height: 40px;

    border-radius: 9px;

    border-color: #e1e5eb;

    background-color: #fff;

    font-size: 12px;

    color: #303744;

    box-shadow: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.assign-leads-modal .form-select:focus,
.assign-leads-modal .form-control:focus {

    border-color: #86b7fe;

    box-shadow:
        0 0 0 3px rgba(13, 110, 253, 0.07);
}


/* =========================================================
   ERROR
========================================================= */

#assignError {

    margin-bottom: 14px;

    padding: 9px 11px;

    border: 0;
    border-radius: 9px;

    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   AVAILABLE LEADS
========================================================= */



.available-info {
    display: flex;
    align-items: center;
}

.available-label {
    font-weight: 600;
    font-size: 10.5px;
    line-height: 1.3;
    color: #8a94a6;
}

.available-info strong {
    margin-left: 2px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    color: #4b5563;
}

.available-icon {

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(13, 110, 253, 0.07);

    color: #0d6efd;

    font-size: 16px;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.assign-section-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 7px;
}

.assign-select-all {

    padding: 3px 7px;

    border: 0;
    border-radius: 5px;

    background: transparent;

    color: #0d6efd;

    font-size: 10.5px;
    font-weight: 600;

    transition: 0.15s ease;
}

.assign-select-all:hover {

    background: #f0f6ff;

    color: #0a58ca;
}


/* =========================================================
   USERS LIST
========================================================= */

.assign-users-list {

    max-height: 170px;

    overflow-y: auto;

    border: 1px solid #e4e8ee;
    border-radius: 10px;

    background: #fff;
    display: ruby;
}

.assign-users-list::-webkit-scrollbar {
    width: 5px;
}

.assign-users-list::-webkit-scrollbar-track {
    background: transparent;
}

.assign-users-list::-webkit-scrollbar-thumb {

    background: #d6dbe3;

    border-radius: 10px;
}


/* =========================================================
   USER ITEM
========================================================= */

.assign-user-item {

    position: relative;
    width: max-content;
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 8px 10px;

    margin: 2px;

    cursor: pointer;

    border-bottom: 1px solid #f1f3f6;

    background: #fff;

    transition: background 0.15s ease;
}

.assign-user-item:last-child {
    border-bottom: 0;
}

.assign-user-item:hover {
    background: #fafbfc;
}

.assign-user-item.selected {
    background: #f5f9ff;
}


/* =========================================================
   CHECKBOX
========================================================= */

.assign-user-checkbox {

    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    margin: 0;

    cursor: pointer;

    accent-color: #0d6efd;
}


/* =========================================================
   AVATAR
========================================================= */

.assign-user-avatar {

    width: 29px;
    height: 29px;

    flex: 0 0 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f1f4f8;

    color: #5d6878;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}


/* =========================================================
   USER INFO
========================================================= */

.assign-user-info {

    min-width: 0;

    display: flex;
    flex-direction: column;

    flex: 1;
}

.assign-user-name {

    overflow: hidden;

    font-size: 12px !important;
    line-height: 1.3;

    font-weight: 550;

    color: #303744;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.assign-user-email {

    margin-top: 1px;

    overflow: hidden;

    font-size: 9.5px !important;
    line-height: 1.3;

    color: #929baa;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   USER CHECK
========================================================= */

.assign-user-check {

    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf2ff;

    color: #0d6efd;

    font-size: 13px;

    opacity: 0;

    transform: scale(0.8);

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.assign-user-item.selected .assign-user-check {

    opacity: 1;

    transform: scale(1);
}


/* =========================================================
   LOADING
========================================================= */

.assign-loading {

    min-height: 85px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #8a94a6;

    font-size: 11px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.assign-empty-state {

    min-height: 90px;

    display: flex;
    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 15px;

    color: #8a94a6;
}

.empty-icon {

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f3f5f8;

    color: #8a94a6;

    font-size: 16px;
}

.assign-empty-state strong {

    display: block;

    font-size: 11px;

    color: #596579;
}

.assign-empty-state span {

    display: block;

    margin-top: 2px;

    font-size: 9.5px;

    color: #9aa3b1;
}


/* =========================================================
   COUNT
========================================================= */

.assign-count-wrapper {
    position: relative;
}

#assignCount {
    font-size: 12px;
}

.assign-count-limit {

    position: absolute;

    top: 50%;
    right: 26px;

    transform: translateY(-50%);

    font-size: 9px;

    color: #9aa3b1;

    pointer-events: none;
}

#assignCount.is-invalid {
    border-color: #dc3545;
}

#assignCountError {
    margin-top: 4px;
    display: block !important;
    font-size: 10px;
}


/* =========================================================
   DIRECTION
========================================================= */

.assign-direction-options {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;
}

.assign-direction-card {

    position: relative;

    display: block;

    margin: 0;

    cursor: pointer;
}

.assign-direction-card input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.direction-content {

    position: relative;

    display: flex;
    align-items: center;

    gap: 8px;

    min-height: 54px;

    padding: 8px 9px;

    border: 1px solid #e4e8ee;

    border-radius: 9px;

    background: #fff;

    transition: 0.15s ease;
}

.direction-content:hover {
    background: #fafbfc;
}

.assign-direction-card input:checked+.direction-content {

    border-color: #86b7fe;

    background: #f5f9ff;

    box-shadow:
        0 0 0 1px rgba(13, 110, 253, 0.04);
}


/* ICON */

.direction-icon {

    width: 29px;
    height: 29px;

    flex: 0 0 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #f3f5f8;

    color: #697586;

    font-size: 15px;
}

.assign-direction-card input:checked+.direction-content .direction-icon {

    background: rgba(13, 110, 253, 0.08);

    color: #0d6efd;
}


/* TEXT */

.direction-text {
    min-width: 0;
}

.direction-text strong {

    display: block;

    font-size: 11px;
    line-height: 1.3;

    font-weight: 600;

    color: #303744;
}

.direction-text span {

    display: block;

    margin-top: 2px;

    font-size: 9px;
    line-height: 1.3;

    color: #8b95a5;
}


/* CHECK */

.direction-check {

    position: absolute;

    top: 6px;
    right: 6px;

    width: 16px;
    height: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #34c38f;

    color: #fff;

    font-size: 8px;

    opacity: 0;

    transform: scale(0.7);

    transition: 0.15s ease;
}

.assign-direction-card input:checked+.direction-content .direction-check {

    opacity: 1;

    transform: scale(1);
}


/* =========================================================
   DISTRIBUTION PREVIEW
========================================================= */

.assign-distribution-preview {

    display: flex;

    gap: 9px;

    padding: 10px 11px;

    border: 1px solid #e8edf4;

    border-radius: 9px;

    background: #f8fafc;
}

.preview-icon {

    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #f1f8ff;

    color: #50a5f1;

    font-size: 14px;
}

.preview-content {
    min-width: 0;
    flex: 1;
}

.preview-title {

    margin-bottom: 3px;

    font-size: 10px;
    line-height: 1.3;

    font-weight: 600;

    color: #596579;
}

.preview-summary {

    font-size: 10.5px;

    color: #667085;
}

.preview-summary strong {

    color: #202631;

    font-weight: 700;
}

.preview-direction {

    display: flex;
    align-items: center;

    gap: 4px;

    margin-top: 3px;

    font-size: 9.5px;

    color: #8a94a6;
}

.preview-direction i {
    font-size: 11px;
}

.preview-users {

    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 7px;
}

.preview-user {

    display: inline-flex;
    align-items: center;

    gap: 4px;

    padding: 3px 6px;

    border-radius: 5px;

    background: #fff;

    border: 1px solid #e8ebf0;

    font-size: 9px;

    color: #667085;
}

.preview-user strong {

    color: #0d6efd;

    font-weight: 700;
}


/* =========================================================
   BUTTONS
========================================================= */

.assign-leads-modal .modal-footer .btn {

    min-height: 36px;

    padding: 6px 13px;

    border-radius: 8px;

    font-size: 11.5px;

    font-weight: 500;
}

.assign-leads-modal .btn-primary {

    box-shadow: none;
}

.assign-leads-modal .btn-primary:disabled {
    opacity: 0.7;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 575px) {

    .assign-leads-modal .modal-header {
        padding: 15px;
    }

    .assign-leads-modal .modal-body {
        padding: 15px;
    }

    .assign-leads-modal .modal-footer {
        padding: 11px 15px 15px;
    }

    .assign-direction-options {
        grid-template-columns: 1fr;
    }

    .assign-users-list {
        max-height: 150px;
    }

}





.assign-users-dropdown {
    max-height: 260px;
    overflow-y: auto;
    /* border-radius: 10px; */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 10px;
    border-bottom-left-radius: 10px;
    box-shadow: none !important;
    border: 1px solid #eaedf1;
}

.assign-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 7px;
    cursor: pointer;
    margin: 3px 0;
    border: 1px solid #e1e5eb;
}

.assign-user-dropdown-item:hover {
    background: #f5f6f8;
}

.assign-user-dropdown-item input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.assign-user-dropdown-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.assign-user-dropdown-item .assign-user-name {
    font-size: 14px;
    font-weight: 500;
}

.assign-user-dropdown-item .assign-user-email {
    font-size: 11px;
    color: #8b8f98;
}

.assign-user-select-all {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 4px;
    padding-bottom: 10px;
    font-weight: 600;
    font-size: 12px;
}



/* =========================================================
   ASSIGN DETAILS LOADER
========================================================= */

.assign-details-loader {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
}

.assign-loader-spinner {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.assign-loader-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.assign-loader-content strong {
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
}

.assign-loader-content span {
    font-size: 11px;
    color: #8b8f98;
}





/* =========================================================
       PAGE
    ========================================================= */

.lead-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.lead-page-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.lead-page-header span {
    display: block;
    margin-top: 3px;
    color: #8a8f98;
    font-size: 12px;
}

/* =========================================================
   LEAD FORM — refreshed styles
   Drop-in replacement. Same class names as the original file,
   plus new classes used by the restructured <details> sections
   (see leads-form-improved.blade.php).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --lf-ink: #1c2433;
    --lf-ink-soft: #5b6472;
    --lf-ink-faint: #8b93a1;
    --lf-bg: #eef1f6;
    --lf-surface: #ffffff;
    --lf-border: #dfe3ea;
    --lf-border-strong: #c9d0da;
    --lf-accent: var(--bs-primary, #2f5ce0);
    --lf-accent-rgb: var(--bs-primary-rgb, 47, 92, 224);
    --lf-accent-soft: rgba(var(--lf-accent-rgb), .07);
    --lf-danger: #e5484d;
    --lf-radius-card: 12px;
    --lf-radius-field: 8px;
}

.lead-form-page {
    background: var(--lf-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--lf-ink);
}

/* =========================================================
   MAIN CARD
   ========================================================= */

.lead-form-card {
    background: var(--lf-surface);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius-card);
    padding: 4px 24px 0;
    box-shadow: none;
}

/* =========================================================
   SECTIONS (native <details>/<summary> — no JS required)
   ========================================================= */

.form-section {
    border-bottom: 1px solid var(--lf-border);
}

.form-section:last-of-type {
    border-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 4px;
    margin: 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.section-title::-webkit-details-marker {
    display: none;
}

.section-title .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--lf-accent-soft);
    color: var(--lf-accent);
    flex: none;
}

.section-title .icon svg {
    width: 16px;
    height: 16px;
}

.section-title .heading {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.section-title .heading span.label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lf-ink);
}

.section-title .heading span.hint {
    font-size: 11.5px;
    color: var(--lf-ink-faint);
    font-weight: 400;
}

.section-title .chevron {
    color: var(--lf-ink-faint);
    transition: transform .18s ease;
    flex: none;
}

.form-section[open]>.section-title .chevron {
    transform: rotate(180deg);
}

.section-body {
    padding: 2px 4px 22px;
}

/* =========================================================
   LABELS
   ========================================================= */

.lead-form-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--lf-ink-soft);
}

.lead-form-card label .required-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--lf-danger);
    margin-left: 4px;
    vertical-align: middle;
}

/* =========================================================
   INPUTS
   ========================================================= */

.lead-form-card .form-control,
.lead-form-card .form-select {
    width: 100%;
    height: 38px;
    min-height: 38px;
    border-radius: var(--lf-radius-field);
    border: 1px solid var(--lf-border-strong);
    background: #fbfcfe;
    font-size: 13px;
    color: var(--lf-ink);
    padding: 7px 11px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.lead-form-card textarea.form-control {
    height: auto;
}

.lead-form-card .form-control::placeholder {
    color: var(--lf-ink-faint);
}

.lead-form-card .form-control:hover,
.lead-form-card .form-select:hover {
    border-color: var(--lf-border-strong);
    background: #fff;
}

.lead-form-card .form-control:focus,
.lead-form-card .form-select:focus {
    background: #fff;
    border-color: var(--lf-accent);
    box-shadow: 0 0 0 3px var(--lf-accent-soft);
    outline: none;
}

.lead-form-card select.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235b6472' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.lead-form-card select.form-select:disabled {
    background-color: #f2f3f6;
    color: var(--lf-ink-faint);
}

/* number input: hide spinner clutter, keep on focus */
.lead-form-card input[type="number"]::-webkit-inner-spin-button {
    opacity: .35;
}

.lead-form-card .invalid-feedback {
    font-size: 11px;
    margin-top: 4px;
}

.lead-form-card .is-invalid {
    border-color: var(--lf-danger) !important;
}

/* =========================================================
   AREA INPUT (value + unit)
   ========================================================= */

.lead-form-card .input-group {
    display: flex;
    flex-wrap: nowrap;
}

.lead-form-card .input-group .form-control {
    border-radius: var(--lf-radius-field) 0 0 var(--lf-radius-field);
    border-right: none;
}

.lead-form-card .input-group .area-unit {
    max-width: 92px;
    flex: none;
    border-radius: 0 var(--lf-radius-field) var(--lf-radius-field) 0;
    border-left: 1px solid var(--lf-border-strong);
    background-color: #f5f6f9;
    padding-right: 26px;
    font-size: 12px;
}

.lead-form-card .input-group:focus-within .form-control,
.lead-form-card .input-group:focus-within .area-unit {
    border-color: var(--lf-accent);
}

/* =========================================================
   NOTES
   ========================================================= */

.notes-section .section-body {
    padding-bottom: 22px;
}

.notes-section textarea {
    min-height: 88px;
    height: auto !important;
    resize: vertical;
    line-height: 1.55;
}

/* =========================================================
   ACTIONS (sticky footer)
   ========================================================= */

.form-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    margin: 0 -24px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--lf-border);
    border-radius: 0 0 var(--lf-radius-card) var(--lf-radius-card);
}

.form-actions .btn {
    height: 38px;
    padding: 0 18px;
    border-radius: var(--lf-radius-field);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {

    .lead-page-header {
        margin-bottom: 14px;
    }

    .lead-page-header h4 {
        font-size: 18px;
    }

    .lead-page-header span {
        display: none;
    }

    .lead-form-card {
        padding: 2px 14px 0;
        border-radius: 10px;
    }

    .section-title {
        padding: 15px 2px;
    }

    .section-body {
        padding-bottom: 18px;
    }

    .form-actions {
        padding: 12px 14px;
        margin: 0 -14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-title .chevron {
        transition: none;
    }
}



/* =========================================================
           TRANSFER PAGE
        ========================================================= */

.transfer-page {
    width: 100%;
}

.transfer-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: stretch;
}

.transfer-panel {
    background: #fff;
    border: 1px solid #ececf5;
    border-radius: 16px;
    min-width: 0;
    overflow: visible;
    box-shadow: none;
    border-top: 4px solid var(--tl-blue);
    transition: box-shadow .2s ease;
}

.transfer-panel:hover {
    box-shadow: none;
}

.transfer-panel:nth-of-type(1) {
    border-top-color: #1f7a6c;
}

.transfer-middle-panel {
    min-height: 650px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top-color: #4c6fa5;
}

.transfer-panel:last-of-type {
    border-top-color: #000
}

.transfer-panel-header {
    padding: 16px 18px;
    border-bottom: 1px solid #f0eefb;
    background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
}

.transfer-panel-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #2b2560;
}

.transfer-panel-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f7a6c;
    color: #fff;
    font-size: 13px;
    box-shadow: none;
}

.transfer-panel:last-of-type .transfer-panel-title-icon {
    background: #000;
    box-shadow: none;
}

.transfer-middle-panel .transfer-panel-title-icon,
.transfer-middle-heading>span {
    background: linear-gradient(135deg, var(--tl-violet) 0%, var(--tl-blue) 100%);
    box-shadow: 0 4px 10px rgba(124, 58, 237, .35);
}

.transfer-panel-body {
    padding: 18px;
}

.transfer-user-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #454170;
}


/* =========================================================
           CUSTOM MULTI SELECT
        ========================================================= */

.transfer-multi-select {
    position: relative;
    width: 100%;
}

.transfer-multi-select-toggle {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e2def7;
    border-radius: 9px;
    background: #fbfaff;
    color: #3f3a68;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    text-align: left;
    transition: all .15s ease;
}

.transfer-multi-select-toggle:hover {
    border-color: var(--tl-blue);
    background: #fff;
}

.transfer-multi-select-toggle:focus {
    outline: none;
    border-color: var(--tl-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.transfer-multi-select.open .transfer-multi-select-toggle {
    border-color: var(--tl-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.transfer-multi-select-toggle i {
    font-size: 10px;
    color: var(--tl-violet);
    transition: transform .15s ease;
}

.transfer-multi-select.open .transfer-multi-select-toggle i {
    transform: rotate(180deg);
}

.transfer-multi-select-toggle-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.transfer-multi-select-placeholder {
    color: #a5a0c9;
}

.transfer-multi-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    display: none;
    background: #fff;
    border: 1px solid #ece8fb;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(76, 29, 149, .18);
    overflow: hidden;
}

.transfer-multi-select.open .transfer-multi-select-menu {
    display: block;
}

.transfer-multi-select-search {
    padding: 8px;
    border-bottom: 1px solid #f0eefb;
    background: #fbfaff;
    position: relative;
}

.transfer-multi-select-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--tl-violet);
}

.transfer-multi-select-search input {
    width: 100%;
    height: 34px;
    border: 1px solid #e6e2f7;
    border-radius: 7px;
    padding: 7px 10px 7px 29px;
    font-size: 11px;
    color: #3f3a68;
    outline: none;
    background: #fff;
}

.transfer-multi-select-search input:focus {
    border-color: var(--tl-violet);
}

.transfer-user-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
}

.transfer-user-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #3a3560;
    transition: background .12s ease;
}

.transfer-user-option:hover {
    background: linear-gradient(90deg, var(--tl-blue-tint), var(--tl-violet-tint));
}

.transfer-user-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.transfer-user-check {
    width: 17px;
    height: 17px;
    min-width: 17px;
    border: 1.5px solid #d7d2f0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 9px;
    background: #fff;
    transition: all .12s ease;
}

.transfer-user-option input:checked+.transfer-user-check {
    background: #34c38f;
    border-color: transparent;
    color: #fff;
    box-shadow: none;
}

.transfer-user-option-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transfer-user-option.disabled {
    opacity: .4;
    cursor: not-allowed;
    background: #f7f6fb;
}

.transfer-user-option.disabled:hover {
    background: #f7f6fb;
}

.transfer-user-option.hidden-by-search {
    display: none;
}

.transfer-no-users-found {
    padding: 14px 10px;
    text-align: center;
    font-size: 11px;
    color: #a5a0c9;
}


/* =========================================================
           SOURCE USER CARD
        ========================================================= */

.selected-user-card {
    margin-top: 16px;
    padding: 15px;
    border: 1px solid #e4ecfd;
    border-radius: 14px;
    background: #f8fff8;
}

.selected-user-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.selected-user-label {
    font-size: 12px;
    font-weight: 700;
    color: #2b2560;
}

.selected-user-card-subtitle {
    margin-top: 2px;
    font-size: 10px;
    color: #8b85b8;
}

.selected-user-count-badge {
    padding: 4px 10px;
    border-radius: 20px;
    background: #1f7a6c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: none;
}

.selected-source-users-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 210px;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #dadada transparent;
}

.selected-source-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border: 1px solid #e7edfb;
    border-radius: 9px;
    background: #fff;
    transition: transform .12s ease, box-shadow .12s ease;
}

.selected-source-user-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f7a6c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    box-shadow: none;
}

.selected-source-user-info {
    min-width: 0;
    flex: 1;
}

.selected-source-user-name {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #2b2560;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-source-user-leads {
    margin-top: 2px;
    font-size: 10px;
    color: #8b85b8;
}

.selected-source-user-leads strong {
    color: var(--tl-blue-dark);
}

.selected-source-empty {
    padding: 15px 10px;
    text-align: center;
    font-size: 11px;
    color: #a5a0c9;
    border: 1.5px dashed #d7d2f0;
    border-radius: 9px;
}


/* =========================================================
           SOURCE SUMMARY
        ========================================================= */

.transfer-source-summary {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid #e4ecfd;
    border-radius: 12px;
    background: #f8fff8;
}

.transfer-summary-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #1f7a6c;
    color: #fff;
    font-size: 13px;
    box-shadow: none;
}

.transfer-summary-label {
    font-size: 10px;
    color: #8b85b8;
    font-weight: 600;
}

.transfer-summary-value {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 700;
    color: #2b2560;
}


/* =========================================================
           MIDDLE HEADER
        ========================================================= */

.transfer-middle-header {
    padding: 16px 18px 0;
}

.transfer-middle-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.transfer-middle-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}

.transfer-middle-heading>span {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    background: #4c6fa5;
    box-shadow: none;
}

.transfer-middle-heading h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #2b2560;
}

.transfer-search {
    width: 220px;
}

.transfer-search input {
    height: 36px;
    font-size: 11px;
    border-radius: 8px;
}

.transfer-leads-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
}

.transfer-leads-summary-left,
.transfer-leads-summary-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #726d9c;
    font-weight: 600;
}

.transfer-leads-summary-right {
    padding: 4px 10px;
    background: b45309;
    color: #fff;
    border-radius: 20px;
}

.summary-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tl-green);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
}


/* =========================================================
           COUNT SECTION
        ========================================================= */

.transfer-count-section {
    padding: 0 18px 12px;
}

.transfer-count-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px;
    border: 1px solid #75abf2;
    border-radius: 12px;
    background: #f1f8ff;
}

.transfer-count-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.transfer-count-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #4c6fa5;
    color: #fff;
    font-size: 13px;
    box-shadow: none;
}

.transfer-count-info {
    min-width: 0;
}

.transfer-count-label {
    display: block;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #3a3560;
}

.transfer-count-info small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    color: #8b85b8;
}

.transfer-count-input-wrapper {
    position: relative;
    width: 145px;
    min-width: 145px;
}

.transfer-count-input {
    font-size: 12px;
    border-radius: 8px;
    border: 1.5px solid #e2def7;
    font-weight: 600;
    color: var(--tl-violet-dark);
}

.transfer-count-input:focus {
    border-color: var(--tl-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.transfer-count-suffix {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #8b85b8;
    pointer-events: none;
}

.transfer-count-input.is-invalid {
    border-color: var(--tl-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}


/* =========================================================
           LEADS GRID
        ========================================================= */

.transfer-leads-list {
    flex: 1;
    min-height: 0;
    max-height: 430px;
    overflow-y: auto;
    padding: 4px 18px 14px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 10px;

    align-content: start;
    scrollbar-width: thin;
    scrollbar-color: #dadada transparent;
}

.transfer-leads-list::-webkit-scrollbar {
    width: 6px;
}

.transfer-leads-list::-webkit-scrollbar-thumb {
    background: var(--tl-violet);
    border-radius: 10px;
}

.lead-transfer-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid #eeeafb;
    border-radius: 11px;
    background: #fff;
    transition: all .15s ease;
}

.lead-transfer-item:hover {
    border-color: #50a5f1;
    background: #f1f8ff;
    box-shadow: none;
}

.lead-transfer-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4c6fa5;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: none;
}

.lead-transfer-content {
    flex: 1;
    min-width: 0;
}

.lead-transfer-name {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #2b2560;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-transfer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 3px;
}

.lead-transfer-meta span {
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    color: #8b85b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.lead-transfer-meta span i {
    color: var(--tl-amber) !important;
}

.lead-transfer-status {
    flex-shrink: 0;
}

.lead-transfer-index {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--tl-violet-tint);
    color: var(--tl-violet-dark);
    font-size: 8px;
    font-weight: 700;
}


/* =========================================================
           EMPTY / LOADING
        ========================================================= */

.transfer-empty-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    grid-column: 1 / -1;
    padding: 30px 20px;
}

.empty-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #f1f8ff;
    color: #4c6fa5;
    font-size: 19px;
}

.loading-icon {
    background: transparent;
}

.loading-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.transfer-empty-state h6 {
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 700;
    color: #3a3560;
}

.transfer-empty-state p {
    max-width: 360px;
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
    color: #8b85b8;
}


/* =========================================================
           FOOTER
        ========================================================= */

.transfer-middle-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 18px;
    border-top: 1px solid #f0eefb;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

.transfer-footer-count {
    font-size: 10px;
    color: #8b85b8;
    font-weight: 600;
}

.transfer-footer-count strong {
    color: var(--tl-violet-dark);
    font-size: 13px;
}

.transfer-btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
}

.transfer-btn.btn-success {
    background: linear-gradient(135deg, var(--tl-green) 0%, #059669 100%);
    border: none;
    box-shadow: none;
    transition: transform .12s ease, box-shadow .12s ease;
}

.transfer-btn.btn-success:disabled {
    background: #d7d2f0;
    box-shadow: none;
    opacity: .7;
}


/* =========================================================
           DESTINATION CARD
        ========================================================= */

.destination-user-card {
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #4a4f58;
    box-shadow: none;
}

.destination-user-card.selected {
    background: #000;
}

.destination-user-card-label {
    font-size: 10px;
    color: #f3c9e2;
    margin-bottom: 5px;
    font-weight: 600;
}

.destination-user-card-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
    word-break: break-word;
}

.destination-user-card-count {
    margin-top: 4px;
    font-size: 9px;
    color: #f3c9e2;
}


/* =========================================================
           ROUND ROBIN
        ========================================================= */

.transfer-round-robin-box {
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #4a4f58;
    box-shadow: none;
}

.transfer-round-robin-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.transfer-round-robin-title span {
    color: #fff;
}

.transfer-round-robin-text {
    margin-top: 9px;
    color: #fff;
    font-size: 12px;
}

.round-robin-user {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 0;
    font-size: 9px;
    color: #fff;
}

.round-robin-user i {
    width: 15px;
    color: #fff;
    font-size: 8px;
}

.round-robin-user strong {
    color: #fff;
}


/* =========================================================
           INFO BOX
        ========================================================= */

.transfer-info-box {
    margin-top: 14px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #4a4f58;
    box-shadow: none;
}

.transfer-info-box-title {
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.transfer-info-box ul {
    margin: 0;
    padding-left: 16px;
}

.transfer-info-box li {
    margin-bottom: 5px;
    font-size: 9px;
    line-height: 1.4;
    color: #fff;
}

.transfer-info-box li::marker {
    color: var(--tl-pink);
}

.transfer-info-box li:last-child {
    margin-bottom: 0;
}


/* =========================================================
           TOAST
        ========================================================= */

.transfer-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    bottom: auto;

    min-width: 320px;
    max-width: 420px;

    padding: 15px 18px;

    background: #ffffff;

    border: none;
    border-radius: 12px;
    border-left: 5px solid var(--tl-violet);

    box-shadow: 0 14px 36px rgba(30, 27, 75, .18);

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transform: translateX(30px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.transfer-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.transfer-toast.success {
    background: linear-gradient(135deg, var(--tl-green) 0%, #059669 100%) !important;
    border-left-color: #047857;
}

.transfer-toast.error {
    background: linear-gradient(135deg, var(--tl-red) 0%, #dc2626 100%);
    border-left-color: #b91c1c;
}

.transfer-toast.success .transfer-toast-title,
.transfer-toast.error .transfer-toast-title {
    color: #fff !important;
}

.transfer-toast-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #2b2560;
}

.transfer-toast.success .transfer-toast-message,
.transfer-toast.error .transfer-toast-message {
    color: #fff !important;
}

.transfer-toast-message {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}


/* =========================================================
           RESPONSIVE
        ========================================================= */

@media (max-width: 1200px) {

    .transfer-grid {
        grid-template-columns: 250px minmax(0, 1fr) 250px;
    }

    .transfer-leads-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

}


@media (max-width: 992px) {

    .transfer-grid {
        grid-template-columns: 1fr;
    }

    .transfer-middle-panel {
        min-height: 600px;
    }

    .transfer-leads-list {
        max-height: 450px;
    }

}


@media (max-width: 576px) {

    .transfer-middle-top {
        flex-direction: column;
        align-items: stretch;
    }

    .transfer-search {
        width: 100%;
    }

    .transfer-count-box {
        flex-direction: column;
        align-items: stretch;
    }

    .transfer-count-input-wrapper {
        width: 100%;
    }

    .transfer-middle-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .transfer-btn {
        width: 100%;
    }

    .transfer-leads-list {
        grid-template-columns: 1fr;
    }

    .transfer-toast {
        left: 15px;
        right: 15px;
        bottom: 15px;
        top: auto;
        min-width: 0;
    }

}

.loading-icon i {
    font-size: 32px;
    color: var(--tl-violet);
    animation: fa-spin 1s infinite linear;
}

.transfer-processing-state {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.transfer-processing-state .loading-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tl-violet-tint) 0%, var(--tl-pink-tint) 100%);
}

.transfer-processing-state .loading-icon i {
    font-size: 30px;
}

.transfer-processing-state h6 {
    margin-bottom: 6px;
    font-weight: 700;
    color: #2b2560;
}

.transfer-processing-state p {
    margin: 0;
    color: #8b85b8;
    font-size: 13px;
}






/* =========================================================
   SINGLE LEAD TRANSFER — MODERN CRM UI
========================================================= */

.single-transfer-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 70px rgba(31, 41, 55, .18);
}

/* =========================
   HEADER
========================= */

.single-transfer-modal .modal-header {
    padding: 22px 24px 18px;
    border-bottom: 1px solid #f0f1f4 !important;
    background:
        linear-gradient(135deg, #f7f5ff 0%, #ffffff 65%);
}

.single-transfer-modal .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -.2px;
}

.single-transfer-modal .modal-header p {
    color: #7b8190 !important;
    font-size: 12px;
    margin-top: 3px;
}

/* Close */
.single-transfer-modal .btn-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background-color: #f1f3f7;
    opacity: 1;
    background-size: 10px;
    transition: .2s ease;
}

.single-transfer-modal .btn-close:hover {
    background-color: #e5e7eb;
    transform: rotate(90deg);
}


/* =========================
   BODY
========================= */

.single-transfer-modal .modal-body {
    padding: 20px 24px 18px;
}


/* =========================
   LEAD CARD
========================= */

.single-transfer-lead {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f1f8ff;
    border: 1px solid #e8e2ff;
}

.single-transfer-lead-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #f1f8ff;
    background: #50a5f1;
    box-shadow: none;
}

.single-transfer-lead .text-muted,
.single-transfer-owner .text-muted {
    color: #8a91a0 !important;
    font-size: 9px !important;
    text-transform: capitalize;
    letter-spacing: .5px;
    font-weight: 500;
}

.single-transfer-owner strong {
    color: #fff !important;
}

.single-transfer-lead strong,
.single-transfer-owner strong {
    display: block;
    margin-top: 2px;
    color: #252a34;
    font-size: 13px;
    font-weight: 500;
}


/* =========================
   CURRENT OWNER
========================= */

.single-transfer-owner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 12px;
    background: #6b7280;
    border: 1px solid #edf0f3;
}

.single-transfer-owner .badge {
    border: 1px solid #dce1e7;
    background: #fff !important;
    color: #667085 !important;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 20px;
}


/* =========================
   TRANSFER TO
========================= */

.single-transfer-modal .form-label {
    color: #374151;
    font-size: 12px;
    font-weight: 500 !important;
    margin-bottom: 0px;
}

#singleTransferDestination {
    border: 1px solid #dfe3e8;
    color: #374151;
    font-size: 12px;
    background-color: #fff;
    box-shadow: none;
    transition: all .2s ease;
}

#singleTransferDestination:hover {
    border-color: #c7cdd5;
}

#singleTransferDestination:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, .10);
}


/* =========================
   STATUS SECTION
========================= */

.single-transfer-status-options,
.transfer-status-options {
    display: flex;
    flex-direction: row;
    gap: 9px;
}


/* Card */

.transfer-status-option {
    padding: 12px !important;
}

.single-status-option,
.transfer-status-option {
    position: relative;
    display: block;
    margin: 0;
    padding: 12px 43px 12px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        transform .15s ease;
}

.transfer-status-options .keep-status {
    background: #f1b44c;
    border: 1px solid #f1b44c !important;
    color: #000;
    font-weight: 300;
}

.transfer-status-options .keep-status:hover {
    background: #f29b07 !important;
}

.transfer-status-options .fresh-status {
    background: #34c38f;
    border: 1px solid #34c38f !important;
    color: #000;
    font-weight: 300;
}

.transfer-status-options .fresh-status:hover {
    background: #25a878 !important;
}

.transfer-status-title {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 4px;
}

.single-status-option:hover,
.transfer-status-option:hover {
    border-color: #cfd4dc;
    background: #fafbfc;
}


/* Selected */

.single-status-option.active,
.transfer-status-option.active {
    box-shadow: none;
}


/* Hide radio */

.single-status-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* Content */

.transfer-status-option-content {
    font-size: 11px !important;
}

.status-option-content,
.transfer-status-option-content {
    display: flex;
    align-items: center;
    gap: 11px;
}


/* Icon */

.status-option-icon,
.transfer-status-option-icon {
    width: 37px;
    height: 37px;
    min-width: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f3f4f6;
    color: #6b7280;

    font-size: 18px;

    transition: all .2s ease;
}


/* Keep = green */

.single-status-option:first-child.active .status-option-icon {
    background: #f59e0b;
    color: #fff6e9;
}


.transfer-status-option:first-child.active .transfer-status-option-icon {
    background: #f59e0b;
    color: #fff6e9;
}


/* Fresh = orange */

.single-status-option:last-child.active .status-option-icon {
    background: #22b77b;
    color: #e9f9f3;
}

.transfer-status-option:last-child .transfer-status-option-icon {
    background: #22b77b;
    color: #e9f9f3;
}


/* Text */

.status-option-content strong {
    display: block;
    color: #252a34;
    font-size: 11px;
    line-height: 18px;
    font-weight: 500;
}

.status-option-content small {
    display: block;
    margin-top: 1px;
    color: #7b8190;
    font-size: 10.5px;
    line-height: 15px;
}


/* =========================
   RADIO INDICATOR
========================= */

.single-status-option::after {
    content: "";

    position: absolute;
    right: 15px;
    top: 50%;

    width: 17px;
    height: 17px;

    transform: translateY(-50%);

    border: 1.5px solid #cdd2d9;
    border-radius: 50%;

    background: #fff;

    transition: all .2s ease;
}

.single-status-option.active::after {
    border: 5px solid #22b77b;
    box-shadow: none;
}


/* =========================
   ERROR
========================= */

#singleTransferDestinationError {
    padding: 7px 10px;
    margin-top: 6px !important;
    border-radius: 7px;
    background: #fff1f2;
    color: #e11d48 !important;
    font-size: 11px;
}


/* =========================
   FOOTER
========================= */

.single-transfer-modal .modal-footer {
    padding: 14px 24px 20px;
    border-top: 1px solid #f0f1f4 !important;
    background: #fcfcfd;
    gap: 8px;
}

.single-transfer-modal .modal-footer .btn {
    height: 40px;
    border-radius: 9px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    transition: all .2s ease;
}

.single-transfer-modal .modal-footer .btn-light {
    color: #596273;
    background: #fff;
    border: 1px solid #e1e5ea;
}

.single-transfer-modal .modal-footer .btn-light:hover {
    background: #f5f6f8;
    border-color: #d5d9df;
}

.single-transfer-modal .modal-footer .btn-dark {
    min-width: 135px;

    border: 0;

    background: #22b77b;

    box-shadow: none;
}

.single-transfer-modal .modal-footer .btn-dark:hover {
    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(124, 58, 237, .28);
}

.single-transfer-modal .modal-footer .btn-dark:disabled {
    background: #c7cbd1;
    box-shadow: none;
    transform: none;
}

.transfer-user-select {
    position: relative;
}

.transfer-select-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 2;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    color: #50a5f1;
    font-size: 13px;

    pointer-events: none;
}

#singleTransferDestination {
    padding-left: 42px;
}

.status-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

.status-section-heading small {
    display: block;
    margin-top: 2px;
    color: #98a0ad;
    font-size: 10px;
}