/* =========================================================
   Leads Transfer / Transfer leads
   Colorful visual refresh — same structure & class names,
   only colors, gradients, shadows & depth have changed.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Playwrite+IT+Trad:wght@100..400&display=swap");

:root {
    --tl-blue: #3b82f6;
    --tl-blue-dark: #2563eb;
    --tl-blue-tint: #eff6ff;

    --info-color: #50a5f1;

    --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;
}

.no-records-animation {
    --nrf-charcoal: #292b30;
    --nrf-blood-red: #b51f2b;
    margin-top: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 180px;
    padding: 30px 15px;
    box-sizing: border-box;
    text-align: center;

    font-family: "Playwrite IT Trad", cursive !important;
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 400;
    font-style: normal;
    line-height: 1.8;
    color: var(--nrf-charcoal);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.no-records-animation .nrf-writing {
    display: inline-block;
    width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    animation: nrf-letter-reveal 2s ease-in-out forwards;
}

.no-records-animation .nrf-highlight {
    font-family: inherit !important;
    font-weight: 400;
    color: var(--nrf-blood-red);
}

.no-records-animation .nrf-dots {
    display: inline-block;
    width: 0;
    overflow: hidden;
    vertical-align: bottom;
    white-space: nowrap;
    color: var(--nrf-blood-red);
    opacity: 0;
    animation: nrf-dots-reveal 0.5s ease-out 2s forwards;
}

@keyframes nrf-letter-reveal {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0.3;
        filter: blur(2px);
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes nrf-dots-reveal {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 3ch;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .no-records-animation .nrf-writing {
        animation: none;
        clip-path: none;
        opacity: 1;
        filter: none;
    }

    .no-records-animation .nrf-dots {
        animation: none;
        width: auto;
        opacity: 1;
    }
}

.user-leads-card {
    border-radius: 14px;
    overflow: hidden;
}

.user-leads-card .table th {
    font-size: 11px;
    font-weight: 500;
    color: #778399;
    letter-spacing: 0.4px;
    white-space: nowrap;
    padding: 5px 12px;
}

.user-leads-card .table td {
    font-size: 12px;
    padding: 5px 12px;
}

.user-leads-card .table tbody tr {
    transition: background 0.2s ease;
}

.user-leads-card .table tbody tr:hover {
    background: #f6f9ff;
}

.user-leads-card .pagination {
    margin-bottom: 0;
    gap: 5px;
}

.user-leads-card .page-link {
    border-radius: 7px !important;
    border: 1px solid #e8edf4;
    color: #53647d;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 11px;
    box-shadow: none !important;
}

.user-leads-card .page-item.active .page-link {
    background: #50a5f1;
    border-color: #50a5f1;
    color: #fff;
}

.user-leads-card .page-item.disabled .page-link {
    background: #f8f9fb;
    color: #b5bdc9;
}

/* USER DETAIL PAGE*/
.user-details-page .profile-modern-card {
    height: 600px !important;
    min-height: 600px;
    max-height: 600px;
}

.user-details-page .right-side-content {
    border-radius: 25px;
    height: 600px;
}

.custom-scroll-card {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ddd #eef4fa;
}

/* Chrome, Edge, Safari */
.custom-scroll-card::-webkit-scrollbar {
    width: 7px;
}

.custom-scroll-card::-webkit-scrollbar-track {
    background: #eef4fa;
    border-radius: 20px;
    margin: 15px 0;
}

.custom-scroll-card::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #50a5f1, #357fc4);
    border-radius: 20px;
    border: 1px solid #eef4fa;
}

.custom-scroll-card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #357fc4, #245f99);
}

.user-details-wrapper {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ================= BASIC INFORMATION ================= */

.user-detail-section {
    position: relative;
    background: #fff;
    border: 1px solid #e8edf5 !important;
    border-radius: 18px !important;
    overflow: hidden;
    /* box-shadow: 0 8px 30px rgba(31, 45, 61, .055); */
}

.user-detail-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 11px;
    background: #f2f2f2;
    border-bottom: 1px solid #e9edf5;
}

.user-detail-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-detail-heading h5 {
    font-size: 14px;
    font-weight: 500;
    color: #27344a;
    margin: 0;
}

.user-detail-heading p {
    font-size: 10.5px;
    color: #7d8ba1;
    margin: 0;
}

.user-detail-icon {
    width: 25px;
    height: 25px;
    min-width: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 12px;
    transition: 0.3s ease;
}

/* COLOR THEMES */

.icon-blue {
    color: #fff;
    background: #444;
}

.icon-purple {
    color: #fff;
    background: #8257d8;
}

.icon-pink {
    color: #fff;
    background: #dc5794;
}

.icon-orange {
    color: #fff;
    background: #df8a2e;
}

.icon-green {
    color: #fff;
    background: #1b9b72;
}

.icon-red {
    color: #fff;
    background: #e05a64;
}

/* INFORMATION BODY */

.user-detail-body {
    padding: 10px 10px 0px;
}

.user-info-item {
    position: relative;
    margin-bottom: 10px;
    padding: 7px 11px;
    border-radius: 7px;
    background: #edf7ff;
    transition: all 0.25s ease;
}

.user-info-item:hover {
    background: #d6edff;
}

.user-info-item label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 500;
    color: #8995a8;
    margin-bottom: 0;
    letter-spacing: 0.55px;
}

.user-info-item h6 {
    font-size: 12px;
    font-weight: 500;
    color: #344158;
    margin: 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* ================= ACCORDION ================= */

.user-details-accordion {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.user-details-accordion .accordion-item {
    position: relative;
    background: #fff;
    border: 1px solid #e9edf4 !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.25s ease;
}

.user-details-accordion .accordion-item:hover {
}

.user-details-accordion .accordion-button {
    display: flex;
    align-items: center;
    gap: 16px;
    /* min-height: 82px; */
    padding: 8px 11px;
    background: #fff;
    color: #344158;
    box-shadow: none !important;
    border: 0;
}

.user-details-accordion .accordion-button:not(.collapsed) {
    background: #f2f2f2;
    color: #27344a;
}

.user-details-accordion .accordion-button::after {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-left: auto;
    border-radius: 10px;
    background-color: #f0f3f8;
    background-position: center;
    background-size: 12px;
    transition: all 0.25s ease;
}

.user-details-accordion .accordion-button:not(.collapsed)::after {
    background-color: #c0c0c0;
    transform: rotate(-180deg);
}

.user-details-accordion .accordion-button:hover .user-detail-icon {
    transform: scale(1.07) rotate(-4deg);
}

.user-accordion-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    min-width: 0;
}

.user-accordion-title strong {
    font-size: 14px;
    font-weight: 500;
    color: #344158;
}

.user-accordion-title small {
    font-size: 10.5px;
    color: #929db0;
}

.user-details-accordion .accordion-body {
    padding: 10px 10px 0px;
    background: #fff;
}

/* OPEN ACCORDION ACCENT */

.user-details-accordion .accordion-collapse.show {
    border-top: 0;
}

.user-details-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: #e8edf5 !important;
}

/* ================= EMPTY STATE ================= */

.user-details-empty {
    text-align: center;
    background: linear-gradient(145deg, #fff, #f6f8ff);
    border: 1px dashed #cbd7e8;
    border-radius: 18px;
    padding: 65px 20px;
}

.user-details-empty .empty-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e9f0ff, #f2eaff);
    color: #7187bd;
    border-radius: 23px;
    font-size: 34px;
    box-shadow: 0 8px 20px rgba(95, 115, 170, 0.1);
}

.user-details-empty h5 {
    font-size: 17px;
    font-weight: 750;
    color: #344158;
    margin-bottom: 7px;
}

.user-details-empty p {
    font-size: 13px;
    color: #8d99ac;
    margin-bottom: 0;
}

/* ================= STATUS BADGE ================= */

.user-detail-header .badge {
    padding: 5px 9px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 25px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 767px) {
    .user-details-wrapper {
        gap: 16px;
    }

    .user-detail-header {
        padding: 18px;
    }

    .user-detail-body,
    .user-details-accordion .accordion-body {
        padding: 18px 15px 3px;
    }

    .user-details-accordion .accordion-button {
        min-height: 72px;
        padding: 13px 14px;
        gap: 11px;
    }

    .user-detail-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 20px;
        border-radius: 12px;
    }

    .user-info-item {
        min-height: 70px;
        padding: 12px;
    }

    .user-accordion-title strong {
        font-size: 13px;
    }

    .user-accordion-title small {
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .user-detail-heading {
        gap: 10px;
    }

    .user-detail-heading h5 {
        font-size: 14px;
    }

    .user-detail-heading p {
        font-size: 10px;
    }

    .user-detail-header .badge {
        padding: 6px 8px;
        font-size: 9px;
    }
}

/* USERS TABLE */
.users-table-card {
    height: auto;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    margin-bottom: 0;
}

/* Scrollable table wrapper */
.users-table-card .table-responsive {
    height: 567px;
    overflow: auto !important;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #c5ccd7 #f4f6f9;
}

/* Table layout */
.users-table-card .users-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
}

/* Sticky table header */
.users-table-card .users-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 1px 0 #e9edf3;
    white-space: nowrap;
}

/* Filter row styling */
.users-table-card .users-table thead .table-filter-row th {
    background: #fff;
    z-index: 6;
}

/* Rounded top corners */
.users-table-card .users-table thead tr:first-child th:first-child {
    border-top-left-radius: 7px;
}

.users-table-card .users-table thead tr:first-child th:last-child {
    border-top-right-radius: 7px;
}

/* Custom scrollbar - Chrome, Edge, Safari */
.users-table-card .table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.users-table-card .table-responsive::-webkit-scrollbar-track {
    background: #f4f6f9;
    border-radius: 10px;
}

.users-table-card .table-responsive::-webkit-scrollbar-thumb {
    background: #c5ccd7;
    border: 2px solid #f4f6f9;
    border-radius: 10px;
}

.users-table-card .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #929daf;
}

/* Smooth hover */
.users-table-card .users-table tbody tr {
    transition: background-color 0.15s ease;
}

.users-table-card .users-table tbody tr:hover {
    background-color: #f8faff;
}

/* Mobile */
@media (max-width: 768px) {
    .users-table-card .table-responsive {
        max-height: 65vh;
    }
}

.users-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 8px 20px;
    background: #fff;
    margin: 20px 0;
}

.users-page-size {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #64748b;
    font-size: 11px;
}

.users-page-size label {
    margin-bottom: 0;
}

.users-page-size select {
    height: 34px;
    min-width: 70px;
    padding: 4px 25px 4px 9px;
    border: 1px solid #dce2ea;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    outline: none;
}

.users-page-size select:focus {
    border-color: #6c7ae0;
    box-shadow: 0 0 0 3px rgba(108, 122, 224, 0.1);
}

.users-record-count {
    margin-left: 8px;
    color: #64748b;
}

.users-pagination nav p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .users-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .users-page-size {
        gap: 7px;
    }

    .users-record-count {
        margin-left: 0;
    }
}

/* =========================================================
   TABLE
========================================================= */

.users-table {
    min-width: 1050px;
}

.users-table thead {
    background: #f8f9fb;
}

.users-table thead th {
    font-size: 10.5px;
    font-weight: 600;
    color: rgb(255, 255, 255);
    letter-spacing: 0.3px;
    background: rgb(47, 50, 54);
    border-bottom: 1px solid var(--line);
    border-top: 0px;
    padding: 7px 20px;
    white-space: nowrap;
}

.users-table tbody td {
    padding: 8px 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 0.15s ease;
}

.users-table tbody tr:hover {
    background: #fafbfc;
}

.users-table .table-filter-row th {
    background: #fafbfc;
    padding: 8px 10px;
    border-top: 1px solid #eff0f2;
    border-bottom: 1px solid #eff0f2;
}

.users-table .table-filter-row .form-control,
.users-table .table-filter-row .form-select {
    height: 34px;
    font-size: 12px;
    border-color: #e5e7eb;
    background: #fff;
}

.users-table .table-filter-row .form-control:focus,
.users-table .table-filter-row .form-select:focus {
    border-color: #556ee6;
    box-shadow: 0 0 0 2px rgba(85, 110, 230, 0.08);
}

.filter-icon {
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0ac;
    font-size: 12px;
    pointer-events: none;
}

/* =========================================================
   USER
========================================================= */

.user-column {
    min-width: 270px;
}

.table-user {
    display: flex;
    align-items: center;

    min-width: 0;
}

.table-user-avatar {
    width: 30px;
    height: 30px;

    min-width: 30px;

    margin-right: 9px;

    border-radius: 50%;

    object-fit: cover;

    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    background: #e7e7e7;
    color: #2f3236;
    font-size: 10px;
    font-weight: 400;
}

.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: 11px;
    font-weight: 500;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-user-email {
    display: flex;
    align-items: center;
    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: 9px;
}

/* =========================================================
   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 0.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, 0.18);

    transition: all 0.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, 0.08);
}

/* Status inactive */
.status-switch .compact-slider {
    background: #eecbcf;
}

/* =========================================================
   MANAGER
========================================================= */
.manager-cell-icon {
    width: 25px;
    height: 25px;
    min-width: 25px;
    margin-right: 7px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manager-cell-icon i {
    font-size: 11px;
}

.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 0.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;
}

.table-action.emp-details {
    background: #eaeaea;
    color: #555555;
}

.table-action.emp-details:hover {
    color: #eaeaea;
    background: #555555;
}

/* =========================================================
   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-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #eff0f2;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.mini-stat:hover {
    border-color: #dfe2e7;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.mini-stat-icon {
    font-size: 10px;
    color: #fff !important;
}

.mini-stat-info {
    display: flex;
    align-items: center;
    gap: 2px;
}

.mini-stat-label {
    font-size: 10px;
    color: #fff;
}

.mini-stat-value {
    font-size: 11px;
    font-weight: 500;
    color: #fff !important;
}

.total-count {
    background: #556ee6;
    color: #eef0ff;
}

.active-count {
    background: #34c38f;
    color: #e9f9f3;
}

/* ==========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;
    }
}

/* ========================================
   ROLES SECTION
======================================== */

.roles-section {
    padding: 8px 0;
}

.roles-illustration {
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.roles-illustration img {
    width: 100%;
    max-width: 260px;
    max-height: 220px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

/* ========================================
   ROLE CARD
======================================== */

.role-card {
    position: relative;
    height: 132px;
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 12px;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.role-card:hover {
    border-color: rgba(85, 110, 230, 0.35);
}

/* Inner */

.role-card-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 14px 15px 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top */

.role-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Role icon */

.role-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f2ff;
    color: #50a5f1;
    font-size: 17px;
    transition: all 0.25s ease;
}

.role-card:hover .role-icon {
    background: #50a5f1;
    color: #fff;
    transform: translateY(-1px);
}

/* Status badge */

.role-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.role-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.role-status.active {
    color: #21865b;
    background: #eaf8f1;
}

.role-status.active .status-dot {
    background: #34c38f;
}

.role-status.inactive {
    color: #c44c4c;
    background: #fff0f0;
}

.role-status.inactive .status-dot {
    background: #f46a6a;
}

/* Content */

.role-content {
    min-width: 0;
    margin-top: 8px;
}

.role-name {
    margin: 0;
    color: #343a40;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: #9298a8;
    font-size: 10px;
}

/* Empty state */

.empty-role-state {
    width: 100%;
    padding: 35px 20px;
    text-align: center;
    background: #fafbff;
    border: 1px dashed #dfe4f0;
    border-radius: 12px;
}

.empty-role-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f0f2ff;
    color: #556ee6;
    font-size: 23px;
}

.empty-role-state h6 {
    margin-bottom: 5px;
    color: #343a40;
    font-weight: 700;
}

.empty-role-state p {
    margin: 0;
    color: #9298a8;
    font-size: 12px;
}

/* Responsive */

@media (max-width: 767.98px) {
    .roles-illustration {
        min-height: auto;
        padding: 5px 15px 20px;
    }

    .roles-illustration img {
        max-width: 180px;
        max-height: 145px;
    }

    .role-card {
        height: 125px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .role-card,
    .role-icon,
    .role-bg-shape,
    .roles-illustration img,
    .role-bottom-line {
        transition: none;
    }

    .role-card:hover {
        transform: none;
    }
}

.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, 0.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, 0.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: 5px 10px;
    margin-bottom: 0;
    border-radius: 5px;
    background: #fff;
    transition: all 0.2s ease;
}

.crm-stat-card span {
    display: block;
    color: #74788d;
    font-size: 12px;
    margin-bottom: 3px;
}

.crm-stat-card h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.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;
}

/* ============================================================
   CRM CONFIGURATION UI
============================================================ */

.crm-config-workspace {
    margin: 18px 0;
}

/* ============================================================
   MAIN TABS
============================================================ */
/* ============================================================
   CONFIGURATION TABS WRAPPER
============================================================ */

.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, 0.025);

    overflow: hidden;
}

/* ============================================================
   SCROLLABLE TAB HEADER
============================================================ */
.crm-config-tabs {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0px;
    scrollbar-gutter: stable;
    scrollbar-width: none;
    scrollbar-color: #cfd5df transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Chrome / Edge / Safari */
.crm-config-tabs::-webkit-scrollbar {
    height: 3px;
}

.crm-config-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.crm-config-tabs::-webkit-scrollbar-thumb {
    background: #ececec;
    border-radius: 10px;
}

.crm-config-tabs::-webkit-scrollbar-thumb:hover {
    background: #aeb6c2;
}

.crm-config-tabs::-webkit-scrollbar-button {
    display: none;
}

/* ============================================================
   CHROME / EDGE / SAFARI SCROLLBAR
============================================================ */

.crm-config-tabs::-webkit-scrollbar {
    height: 5px;
}

.crm-config-tabs::-webkit-scrollbar-track {
    background: transparent;

    border-radius: 10px;
}

.crm-config-tabs::-webkit-scrollbar-thumb {
    background: #cfd5df;

    border-radius: 10px;

    border: 1px solid transparent;
    background-clip: padding-box;

    transition: background 0.2s ease;
}

.crm-config-tabs::-webkit-scrollbar-thumb:hover {
    background: #aeb6c2;
}

.crm-config-tabs::-webkit-scrollbar-button {
    display: none;
}

/* ============================================================
   TAB
============================================================ */

.crm-config-tab {
    position: relative;
    flex: 0 0 160px;

    width: max-content;
    /* min-width: 160px; */

    /* min-height: 62px; */

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 5px;

    border: 1px solid transparent;
    border-radius: 9px;

    background: transparent;

    color: #667085;

    cursor: pointer;

    text-align: left;

    white-space: nowrap;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.crm-config-tab:hover {
    background: #f8faff;
    color: #344054;
}

.crm-config-tab.active {
    background: #edf7ff;

    border-color: rgba(13, 110, 253, 0.08);

    color: #50a5f1;

    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.05);
}

/* ============================================================
   ICON
============================================================ */

.crm-config-tab-icon {
    flex: 0 0 25px;

    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f4f6f8;

    color: #667085;

    font-size: 12px;

    transition: 0.18s ease;
}

.crm-config-tab:hover .crm-config-tab-icon {
    background: #ffffff;
}

.crm-config-tab.active .crm-config-tab-icon {
    background: #ffffff;

    color: #50a5f1;

    box-shadow: none;
}

/* ============================================================
   CONTENT
============================================================ */

.crm-config-tab-content {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    height: 100%;

    line-height: 1.2;
}

.crm-config-tab-content strong {
    display: block;

    width: 100%;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-config-tab-content small {
    display: block;

    min-height: 13px;

    margin-top: 4px;

    color: #98a2b3;

    font-size: 9.5px;
    line-height: 1.2;
}

.crm-config-tab.active .crm-config-tab-content small {
    color: #6f9eea;
}

/* ============================================================
   ACTIVE INDICATOR
============================================================ */

.crm-config-tab.active::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 0;

    height: 2px;

    background: #50a5f1;

    border-radius: 3px 3px 0 0;
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 575px) {
    .crm-config-tabs-wrapper {
        padding: 5px;
        border-radius: 10px;
    }

    .crm-config-tabs {
        gap: 4px;
    }

    .crm-config-tab {
        flex: 0 0 145px;

        width: 145px;
        min-width: 145px;

        min-height: 58px;

        padding: 8px 10px;

        gap: 8px;
    }

    .crm-config-tab-icon {
        flex-basis: 32px;

        width: 32px;
        height: 32px;

        font-size: 13px;
    }

    .crm-config-tab-content strong {
        font-size: 11px;
    }

    .crm-config-tab-content small {
        font-size: 9px;
    }
}

/* ============================================================
   PANELS
============================================================ */

.crm-config-tab-content-wrapper {
    position: relative;
}

.crm-config-tab-content-wrapper .config-actions {
    display: flex;
    gap: 10px;
}

.crm-config-tab-content-wrapper .config-actions .edit {
    color: #f1b44c !important;
    border-color: #f1b44c !important;
}

.crm-config-tab-content-wrapper .config-actions .edit:hover {
    color: #fff !important;
    border-color: #f1b44c;
    background: #f1b44c;
}

.crm-config-tab-content-wrapper .config-actions .delete {
    color: #d51717 !important;
    border-color: #d51717 !important;
    width: 26px;
    height: 26px;
}

.crm-config-tab-content-wrapper .config-actions .delete:hover {
    color: #fff !important;
    border-color: #d51717;
    background: #d51717;
}

.crm-config-panel {
    display: none;
    animation: crmPanelFade 0.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 0.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: 5px;

    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 0.2s ease;
}

.crm-status-tab:hover {
    background: #ffffff;
    color: #344054;
}

.crm-status-tab.active {
    background: #ecfdf3;
    color: #535353;
    border: 1px solid #aff1ca;
    /* box-shadow: 0 2px 7px rgba(16, 24, 40, 0.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, 0.1);
}

.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, 0.1);
}

.crm-large-status-dot.inactive {
    background: #f04438;
    box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.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 0.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: 26px;
    height: 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #eaecf0;

    background: #ffffff;

    color: #667085;

    border-radius: 3px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.crm-icon-btn i,
.crm-mini-edit i {
    font-size: 11px;
}

/* ============================================================
   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: 0.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(250px, 1fr));
    /* 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 0.2s ease;
}

.crm-substatus-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.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 0.2s ease;
}

.crm-simple-card:hover {
    border-color: #d0d5dd;

    box-shadow: 0 5px 15px rgba(16, 24, 40, 0.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;
}

/* ============================================================
   FACING / PRIORITY LIST
============================================================ */

.crm-priority-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.crm-priority-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-width: 0;

    padding: 11px 13px;

    background: #ffffff;

    border: 1px solid #e8ebf0;
    border-radius: 9px;

    transition: all 0.2s ease;
}

.crm-priority-item:hover {
    border-color: #d0d5dd;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* LEFT */

.crm-priority-left {
    display: flex;
    align-items: center;

    min-width: 0;
}

.crm-priority-left > div {
    min-width: 0;
}

.crm-priority-left strong {
    display: block;

    color: #343a40;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-priority-left small {
    display: block;

    margin-top: 2px;

    color: #9aa1ac;

    font-size: 9px;
}

/* INDICATOR */

.crm-priority-indicator {
    flex: 0 0 auto;

    width: 7px;
    height: 7px;

    margin-right: 8px;

    border-radius: 50%;
}

.crm-priority-indicator.active {
    background: #34c38f;

    box-shadow: 0 0 0 3px rgba(52, 195, 143, 0.1);
}

.crm-priority-indicator.inactive {
    background: #f46a6a;

    box-shadow: 0 0 0 3px rgba(244, 106, 106, 0.1);
}

/* RIGHT */

.crm-priority-right {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-left: 8px;
}

/* RESPONSIVE */

@media (max-width: 1199px) {
    .crm-priority-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .crm-priority-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .crm-priority-list {
        grid-template-columns: 1fr;
    }
}

.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 0.2s ease;
}

.crm-location-card:hover {
    border-color: #d0d5dd;

    box-shadow: 0 5px 15px rgba(16, 24, 40, 0.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, 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, 0.1);
    color: #556ee6;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
}

.modal-title-icon.edit-icon {
    background: rgba(80, 165, 241, 0.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, 0.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, 0.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: 0.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, 0.15);

    transition: 0.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-total {
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .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 0.18s ease,
        box-shadow 0.18s ease;
}

.project-card:hover {
    box-shadow: 0 8px 24px rgba(43, 55, 72, 0.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: 50%;

    background: #e8f4ff;
    color: #3498db;

    font-size: 14px;
    font-weight: 700;

    box-shadow: none;
}

/* =========================================
   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: #3498db;

    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;
    justify-content: end;
}

.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 0.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: #000;
}

.project-action:hover {
    color: #f4f6ff;
    background: #000;
}

.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, 0.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: 7px;

    max-height: 360px;
    overflow-y: auto;

    padding: 2px;
}

/* Scrollbar */
.manager-list::-webkit-scrollbar {
    width: 5px;
}

.manager-list::-webkit-scrollbar-track {
    background: transparent;
}

.manager-list::-webkit-scrollbar-thumb {
    background: #dfe3e8;
    border-radius: 10px;
}

.manager-list::-webkit-scrollbar-thumb:hover {
    background: #c7ccd2;
}

/* USER ITEM */
.manager-item {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 58px;

    padding: 9px 11px;

    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 9px;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.manager-item:hover {
    background: #fbfcff;
    border-color: #d9def5;

    box-shadow: 0 3px 10px rgba(50, 50, 93, 0.06);
}

/* HIDE CHECKBOX */
.manager-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* AVATAR */
.manager-avatar {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 10px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        rgba(85, 110, 230, 0.14),
        rgba(85, 110, 230, 0.07)
    );

    color: #556ee6;

    font-size: 12px;
    font-weight: 700;

    border: 1px solid rgba(85, 110, 230, 0.08);
}

/* USER INFO */
.manager-info {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    line-height: 1.25;
}

/* NAME */
.manager-name {
    display: block;

    color: #343a40;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* EMAIL */
.manager-email {
    display: block;

    margin-top: 0px;

    color: #8a93a2;

    font-size: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manager-email i {
    margin-right: 3px;

    font-size: 9px;

    color: #adb5bd;
}

/* REPORTING */
.manager-reporting {
    display: flex;
    align-items: center;

    width: fit-content;

    margin-top: 0px;

    color: #7c8594;

    font-size: 9.5px;
}

.manager-reporting i {
    margin-right: 4px;

    font-size: 8px;

    color: #546367;
}

.manager-reporting strong {
    margin-left: 3px;

    color: #596273;

    font-weight: 600;
}

/* CHECKBOX */
.manager-check {
    flex: 0 0 19px;

    width: 19px;
    height: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: 10px;

    border: 1px solid #d9dee5;
    border-radius: 5px;

    background: #fff;

    color: transparent;

    font-size: 10px;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

/* SELECTED */
.manager-item input:checked ~ .manager-check {
    background: #34c38f;
    border-color: #34c38f;

    color: #fff;

    box-shadow: none;

    transform: scale(1.05);
}

/* SELECTED CARD */
.manager-item:has(input:checked) {
    background: #f8fffc;
    border-color: rgba(52, 195, 143, 0.45);

    box-shadow: none;
}

/* SELECTED AVATAR */
.manager-item:has(input:checked) .manager-avatar {
    background: rgba(52, 195, 143, 0.12);
    color: #2fa77a;

    border-color: rgba(52, 195, 143, 0.15);
}

/* EMPTY STATE */
.manager-empty {
    padding: 30px 20px;

    text-align: center;

    border: 1px dashed #dfe3e8;
    border-radius: 9px;

    background: #fafbfc;
}

.manager-empty-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    border-radius: 50%;

    background: #f1f3f5;

    color: #9aa1ac;

    font-size: 14px;
}

.manager-empty-title {
    color: #495057;

    font-size: 12px;
    font-weight: 600;
}

.manager-empty-text {
    max-width: 260px;

    margin: 4px auto 0;

    color: #9aa1ac;

    font-size: 10px;
    line-height: 1.5;
}

/* MOBILE */
@media (max-width: 575px) {
    .manager-list {
        max-height: 320px;
    }

    .manager-item {
        min-height: 55px;
        padding: 8px;
    }

    .manager-avatar {
        width: 31px;
        height: 31px;
        flex-basis: 31px;

        margin-right: 8px;
    }

    .manager-email {
        max-width: 190px;
    }

    .manager-reporting {
        font-size: 9px;
    }
}

.user-search-input {
    height: 36px;

    padding-left: 35px;
    padding-right: 35px;

    border: 1px solid #e2e5e9;
    border-radius: 7px;

    font-size: 11px;
    color: #343a40;

    background: #fff;

    transition: 0.15s ease;
}

.user-search-input::placeholder {
    color: #a1a8b3;
}

.user-search-input:focus {
    border-color: #556ee6;

    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.08);
}

.user-search-icon {
    position: absolute;

    top: 50%;
    left: 12px;

    transform: translateY(-50%);

    color: #9aa1ac;

    font-size: 11px;

    pointer-events: none;
}

.user-search-clear {
    position: absolute;

    top: 50%;
    right: 8px;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #f1f3f5;

    color: #8a93a2;

    font-size: 9px;

    cursor: pointer;

    transition: 0.15s ease;
}

.user-search-clear:hover {
    background: #e9ecef;
    color: #495057;
}

/* =========================================
   CONFIGURATION & SIZE
========================================= */

.configuration-size-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.configuration-size-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1.6fr) minmax(120px, 0.8fr) minmax(140px, 0.8fr)
        36px;
    gap: 8px;
    align-items: end;

    padding: 10px;

    background: #fafbfc;
    border: 1px solid #e8ebef;
    border-radius: 8px;

    transition: 0.15s ease;
}

.configuration-size-row:hover {
    background: #fff;
    border-color: #dce1e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.035);
}

.configuration-mini-label {
    display: block;

    margin-bottom: 4px;

    color: #747b87;

    font-size: 10px;
    font-weight: 500;
}

.configuration-size-row .form-control,
.configuration-size-row .form-select {
    height: 34px;

    border-color: #e1e5e9;

    font-size: 11px;

    border-radius: 6px;
}

.configuration-size-row .form-control:focus,
.configuration-size-row .form-select:focus {
    border-color: #556ee6;

    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.07);
}

/* REMOVE BUTTON */

.configuration-action {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 34px;
}

.remove-configuration-row {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #f0d7d7;
    border-radius: 6px;

    background: #fff5f5;

    color: #f46a6a;

    font-size: 10px;

    cursor: pointer;

    transition: 0.15s ease;
}

.remove-configuration-row:hover {
    background: #f46a6a;
    border-color: #f46a6a;

    color: #fff;
}

/* HELP TEXT */

.configuration-help {
    display: flex;
    align-items: center;

    margin-top: 6px;

    color: #9aa1ac;

    font-size: 10px;
}

.configuration-help i {
    margin-right: 5px;

    color: #556ee6;
}

/* ADD BUTTON */

#addConfigurationRow {
    height: 28px;

    padding: 0 10px;

    font-size: 10px;

    border-radius: 5px;
}

/* MOBILE */

@media (max-width: 767px) {
    .configuration-size-row {
        grid-template-columns: 1fr 1fr;
    }

    .configuration-field {
        grid-column: 1 / -1;
    }

    .configuration-action {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .configuration-size-row {
        grid-template-columns: 1fr;
    }

    .configuration-field {
        grid-column: auto;
    }

    .configuration-action {
        justify-content: flex-start;
    }
}

/* =========================================
   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, 0.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, 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: 50%;

    background: #50a5f1;

    color: #fff;

    font-size: 17px;
    font-weight: 700;

    box-shadow: none;
}

.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, 0.1);
}

.project-status.inactive {
    color: #f46a6a;
    background: rgba(244, 106, 106, 0.1);
}

/* =========================================
   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, 0.1);
    color: var(--info-color);
}

.section-icon.green {
    background: rgba(52, 195, 143, 0.1);
    color: #34c38f;
}

.section-icon.orange {
    background: rgba(241, 180, 76, 0.12);
    color: #f1b44c;
}

.section-icon.purple {
    background: rgba(116, 120, 141, 0.1);
    color: #74788d;
}

.section-icon.red {
    background: rgba(244, 106, 106, 0.1);
    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, 0.1);
    color: #34c38f;
}

.overview-stat-icon.green {
    background: rgba(52, 195, 143, 0.1);
    color: #556ee6;
}

.overview-stat-icon.orange {
    background: rgba(241, 180, 76, 0.12);
    color: #f1b44c;
}

.overview-stat-icon.purple {
    background: rgba(116, 120, 141, 0.1);
    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: 4px;
}

.project-manager {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px 9px;

    border: 1px solid #f0f1f4;
    border-radius: 8px;

    background: #fff;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.project-manager:hover {
    background: #fafbff;
    border-color: #e5e8f2;
    box-shadow: 0 2px 8px rgba(40, 50, 80, 0.04);
}

/* Avatar */
.project-manager-avatar {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #f1f8ff;
    color: var(--info-color);

    font-size: 10px;
    font-weight: 700;

    border: 1px solid #dde2ff;
}

/* Main content */
.project-manager-info {
    min-width: 0;
    flex: 1;
}

/* Name */
.project-manager-name {
    display: flex;
    align-items: center;
    gap: 6px;

    min-width: 0;
}

.project-manager-name strong {
    display: block;

    color: #343a40;

    font-size: 11px;
    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Role badge */
.project-manager-role {
    display: inline-flex !important;
    align-items: center;

    margin-top: 0 !important;
    padding: 2px 5px;

    border-radius: 4px;

    background: #f1f3f8;
    color: #747b8b !important;

    font-size: 8px !important;
    font-weight: 600;

    line-height: 1;
}

/* Reporting */
.project-manager-reporting {
    display: flex !important;
    align-items: center;

    gap: 3px;

    margin-top: 3px !important;

    color: #9aa0ac !important;

    font-size: 8.5px !important;
    line-height: 1.2;
}

.project-manager-reporting i {
    font-size: 10px;
    color: #a7adba;
}

.project-manager-reporting strong {
    display: inline;

    color: #737987;

    font-size: 8.5px;
    font-weight: 500;
}

/* Email */
.project-manager-email {
    flex-shrink: 0;

    max-width: 190px;

    display: flex !important;
    align-items: center;

    gap: 4px;

    margin-top: 0 !important;

    color: #8f96a3 !important;

    font-size: 8.5px !important;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-manager-email i {
    font-size: 10px;
    color: #aab0bc;
}

/* Empty state */
.project-no-media {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 18px 10px;

    color: #9aa0ac;

    font-size: 10px;
}

.project-no-media i {
    font-size: 17px;
}

/* Responsive */
@media (max-width: 768px) {
    .project-manager-email {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .project-manager {
        padding: 8px;
    }

    .project-manager-avatar {
        width: 30px;
        height: 30px;
    }

    .project-manager-name strong {
        max-width: 150px;
    }
}

/* =========================================
   BROCHURE
========================================= */

.project-brochure {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 9px;

    border: 1px solid #eef0f3;
    border-radius: 8px;

    text-decoration: none;

    transition: all 0.15s ease;
}

.project-brochure:hover {
    background: #fff8f8;
    border-color: rgba(244, 106, 106, 0.25);
}

.brochure-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: rgba(244, 106, 106, 0.1);
    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 0.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 0.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, 0.45);
    opacity: 0;
    transition: opacity 0.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;
    gap: 10px;
}

.manager-info {
    display: flex;
    gap: 0px;
}

.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 / USER SEARCH
===================================== */

.manager-search-wrap {
    margin-bottom: 14px;
}

.manager-search-box {
    position: relative;
    width: 100%;
}

.manager-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);

    color: #98a2b3;

    font-size: 12px;

    pointer-events: none;

    z-index: 2;
}

.manager-search-input {
    height: 38px;

    padding: 8px 38px 8px 34px;

    border: 1px solid #e2e5ea;
    border-radius: 8px;

    background: #fff;

    font-size: 11px;
    color: #344054;

    box-shadow: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.manager-search-input::placeholder {
    color: #a0a7b2;
}

.manager-search-input:focus {
    border-color: rgba(85, 110, 230, 0.45);

    background: #fff;

    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.08);
}

.manager-search-clear {
    position: absolute;

    right: 8px;
    top: 50%;

    transform: translateY(-50%);

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 5px;

    background: transparent;

    color: #98a2b3;

    cursor: pointer;

    transition: all 0.15s ease;
}

.manager-search-clear:hover {
    background: #f1f3f5;
    color: #495057;
}

/* =====================================
   SEARCH META
===================================== */

.manager-search-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 8px;

    padding: 0 2px;

    font-size: 10px;

    color: #98a2b3;
}

.manager-search-meta span {
    display: inline-flex;
    align-items: center;
}

.manager-search-meta i {
    font-size: 10px;
}

.manager-search-meta strong {
    color: #667085;

    font-weight: 600;
}

/* =====================================
   USER GRID
===================================== */

.manager-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

    max-height: 390px;

    overflow-y: auto;

    padding: 2px;

    scrollbar-width: thin;
    scrollbar-color: #d5d9e0 transparent;
}

.manager-grid::-webkit-scrollbar {
    width: 5px;
}

.manager-grid::-webkit-scrollbar-track {
    background: transparent;
}

.manager-grid::-webkit-scrollbar-thumb {
    background: #d5d9e0;
    border-radius: 10px;
}

/* =====================================
   USER ITEM
===================================== */

.manager-checkbox {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 9px;

    min-width: 0;
    /* min-height: 70px; */

    padding: 10px;

    border: 1px solid #e9ebef;
    border-radius: 8px;

    background: #fff;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.manager-checkbox:hover {
    background: #fafbff;

    border-color: #d8dcef;

    box-shadow: 0 2px 7px rgba(16, 24, 40, 0.04);
}

.manager-checkbox:has(input:checked) {
    background: #f8fffc;

    border-color: rgba(52, 195, 143, 0.45);

    box-shadow: none;
}

/* =====================================
   HIDDEN CHECKBOX
===================================== */

.manager-checkbox input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

/* =====================================
   CUSTOM CHECKMARK
===================================== */

.manager-checkmark {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 1px;

    border: 1px solid #d6d9e0;
    border-radius: 4px;

    background: #fff;

    color: transparent;

    font-size: 9px;

    transition: all 0.15s ease;
}

.manager-checkbox:has(input:checked) .manager-checkmark {
    background: #34c38f;

    border-color: none;

    color: #fff;
}

/* =====================================
   USER CONTENT
===================================== */

.manager-user-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 0px;
}

.manager-user-top {
    min-width: 0;
}

.manager-name {
    display: block;

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 11px;

    line-height: 1.35;

    font-weight: 600;

    color: #344054;

    transition: color 0.15s ease;
}

.manager-checkbox:has(input:checked) .manager-name {
    color: #34c38f;
}

/* =====================================
   EMAIL
===================================== */

.manager-email {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 5px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 9.5px;

    line-height: 1.3;

    color: #98a2b3;
}

.manager-email i {
    flex: 0 0 auto;

    font-size: 8px;

    color: #aab1bd;
}

.manager-email {
    overflow: hidden;
}

.manager-email {
    text-overflow: ellipsis;
}

/* =====================================
   REPORTING MANAGER
===================================== */

.manager-reporting {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 4px;

    margin-top: 2px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 8.5px;

    line-height: 1.3;

    color: #98a2b3;
}

.manager-reporting i {
    flex: 0 0 auto;

    font-size: 8px;

    color: #aab1bd;
}

.manager-reporting span {
    flex: 0 0 auto;
}

.manager-reporting strong {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #667085;

    font-weight: 600;
}

/* =====================================
   EMPTY STATE
===================================== */

.manager-empty-state {
    grid-column: 1 / -1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 150px;

    padding: 25px 15px;

    text-align: center;

    color: #98a2b3;
}

.manager-empty-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 9px;

    border-radius: 10px;

    background: #f5f6f8;

    color: #98a2b3;

    font-size: 14px;
}

.manager-empty-title {
    font-size: 11px;

    font-weight: 600;

    color: #667085;
}

.manager-empty-text {
    margin-top: 4px;

    font-size: 9.5px;

    color: #98a2b3;
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 991px) {
    .manager-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .manager-grid {
        grid-template-columns: 1fr;

        max-height: 350px;
    }

    .manager-checkbox {
        min-height: 64px;
    }

    .manager-search-meta {
        font-size: 9px;
    }
}

/* =========================================
           MAIN LOGIN
        ========================================= */

.login-wrapper {
    min-height: 100vh;

    display: flex;
}

/* =========================================
           LEFT PANEL
        ========================================= */

.login-left {
    position: relative;

    width: 50%;

    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, 0.07);

    top: -180px;
    right: -120px;
}

.login-left::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.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, 0.15);

    border: 1px solid rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(10px);

    font-size: 22px;
}

.brand-name {
    font-size: 23px;

    font-weight: 700;

    letter-spacing: -0.5px;
}

/* =========================================
           HERO
        ========================================= */

.hero-badge {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 12px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.11);

    border: 1px solid rgba(255, 255, 255, 0.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: 0.75;
}

.hero-description {
    font-size: 15px;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.72);

    max-width: 550px;
    text-align: justify;
    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, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.09);

    font-size: 11px;

    color: rgba(255, 255, 255, 0.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, 0.45);
}

/* =========================================
           RIGHT PANEL
        ========================================= */

.login-right {
    width: 50%;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;
}

.login-box {
    width: 100%;

    max-width: 580px;
}

/* =========================================
           LOGIN HEADER
        ========================================= */

.login-header {
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 25px;

    font-weight: 700;

    letter-spacing: -0.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: 0px;
}

.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: 0.2s ease;
}

.login-input::placeholder {
    color: #adb5bd;
}

.login-input:focus {
    border-color: #556ee6;

    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.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: 0.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, 0.1);

    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: 400;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -0.2px;
}

.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 #eaeaea;
    border-radius: 10px;
    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-left: 10px;
    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 {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    background: #2ca076;
    color: #fff;
    transition: all 0.15s ease;
}

.lead-filter-reset {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    text-decoration: none;
    background: #d51717;
    color: #fff;
    transition: all 0.15s ease;
}

.lead-filter-advanced-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 7px;
    background: #48566a;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.lead-filter-advanced-btn:hover {
    background: #2b3139;
    border-color: #48566a;
    color: #fff;
}

.advanced-lead-filter-modal {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(24, 39, 75, 0.16);
}

.advanced-lead-filter-modal .modal-header {
    padding: 20px 22px;
    border-bottom: 1px solid #edf0f5;
}

.advanced-lead-filter-modal .modal-title {
    color: #293447;
    font-size: 17px;
    font-weight: 700;
}

.advanced-lead-filter-modal .modal-body {
    padding: 24px;
}

.advanced-filter-placeholder {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed #d9e0eb;
    border-radius: 11px;
    background: #fafbfe;
    padding: 24px;
}

.advanced-filter-placeholder-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #edf3ff;
    color: #4976ce;
    font-size: 18px;
}

.advanced-filter-placeholder h6 {
    margin-bottom: 6px;
    color: #344054;
    font-weight: 700;
}

.advanced-filter-placeholder p {
    color: #8a94a6;
    font-size: 12px;
}

/* =========================================================
   LEAD STATUS TABS — PREMIUM PIPELINE UI
   Drop-in replacement. Blade markup stays exactly the same.
   ========================================================= */

.lead-status-tabs {
    width: 100%;
}

/* Tray that holds all tabs */
.lead-status-tabs-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    /* padding: 6px; */
    margin: 2px 0 12px;
    border-radius: 18px;
    overflow: scroll;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.lead-status-tabs-inner::-webkit-scrollbar {
    display: none;
}

/* ---------- BASE TAB ---------- */
.lead-status-tab,
a.lead-status-tab {
    --tab-color: #475569;
    --tab-from: #64748b;
    --tab-to: #475569;
    --tab-bg: #f1f5f9;
    --tab-border: #cbd5e1;

    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-width: max-content;
    height: 34px;
    padding: 0 6px 0 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 25px;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
    transition:
        background .22s ease,
        color .22s ease,
        box-shadow .22s ease,
        transform .22s ease,
        border-color .22s ease;
}

/* Status dot */
.lead-status-tab::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tab-from), var(--tab-to));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tab-color) 16%, transparent);
    transition: background .22s ease, box-shadow .22s ease;
}

/* Hover */
.lead-status-tab:hover {
    background: #fff;
    border-color: var(--tab-border);
    color: var(--tab-color);
}

/* Keyboard focus */
.lead-status-tab:focus-visible {
    outline: 2px solid var(--tab-color);
    outline-offset: 2px;
}

/* ---------- STATUS COLORS ---------- */

/* All */
.lead-status-tab[href*="tab=all"] {
    --tab-color: #334155;
    --tab-from: #64748b;
    --tab-to: #1e293b;
    --tab-bg: #f1f5f9;
    --tab-border: #cbd5e1;
}

/* Fresh */
.lead-status-tab[href*="tab=new"] {
    --tab-color: #2563eb;
    --tab-from: #38bdf8;
    --tab-to: #2563eb;
    --tab-bg: #eff6ff;
    --tab-border: #bfdbfe;
}

/* Overdue */
.lead-status-tab[href*="tab=overdue"] {
    --tab-color: #dc2626;
    --tab-from: #fb7185;
    --tab-to: #dc2626;
    --tab-bg: #fef2f2;
    --tab-border: #fecaca;
}

/* Unassigned */
.lead-status-tab[href*="tab=unassigned"] {
    --tab-color: #d97706;
    --tab-from: #fbbf24;
    --tab-to: #d97706;
    --tab-bg: #fffbeb;
    --tab-border: #fde68a;
}

/* Visit Done */
.lead-status-tab[href*="tab=visit-done"] {
    --tab-color: #0891b2;
    --tab-from: #22d3ee;
    --tab-to: #0e7490;
    --tab-bg: #ecfeff;
    --tab-border: #a5f3fc;
}

/* Meeting Done */
.lead-status-tab[href*="tab=meeting-done"] {
    --tab-color: #7c3aed;
    --tab-from: #a78bfa;
    --tab-to: #6d28d9;
    --tab-bg: #f5f3ff;
    --tab-border: #ddd6fe;
}

/* Interested */
.lead-status-tab[href*="tab=interested"] {
    --tab-color: #059669;
    --tab-from: #34d399;
    --tab-to: #047857;
    --tab-bg: #ecfdf5;
    --tab-border: #a7f3d0;
}

/* Follow Up */
.lead-status-tab[href*="tab=follow-up"] {
    --tab-color: #ca8a04;
    --tab-from: #facc15;
    --tab-to: #b45309;
    --tab-bg: #fefce8;
    --tab-border: #fde68a;
}

/* Negotiation */
.lead-status-tab[href*="tab=negotiation"] {
    --tab-color: #ea580c;
    --tab-from: #fb923c;
    --tab-to: #c2410c;
    --tab-bg: #fff7ed;
    --tab-border: #fed7aa;
}

/* Booking Done */
.lead-status-tab[href*="tab=booking-done"] {
    --tab-color: #16a34a;
    --tab-from: #4ade80;
    --tab-to: #15803d;
    --tab-bg: #f0fdf4;
    --tab-border: #bbf7d0;
}

/* Duplicate */
.lead-status-tab[href*="tab=duplicate"] {
    --tab-color: #e11d48;
    --tab-from: #fb7185;
    --tab-to: #be123c;
    --tab-bg: #fff1f2;
    --tab-border: #fecdd3;
}

/* Overall Positive */
.lead-status-tab[href*="tab=overall-positive"] {
    --tab-color: #0d9488;
    --tab-from: #2dd4bf;
    --tab-to: #0f766e;
    --tab-bg: #f0fdfa;
    --tab-border: #99f6e4;
}

/* Rejected */
.lead-status-tab[href*="tab=rejected-clients"] {
    --tab-color: #64748b;
    --tab-from: #94a3b8;
    --tab-to: #475569;
    --tab-bg: #f8fafc;
    --tab-border: #cbd5e1;
}

/* ---------- ACTIVE TAB ---------- */
.lead-status-tab.active,
a.lead-status-tab.active {
    background: linear-gradient(135deg, var(--tab-from) 0%, var(--tab-to) 100%);
    color: #fff;
}

.lead-status-tab.active::before {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .28);
}

/* ---------- LABEL ---------- */
.lead-tab-code {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
}

.lead-status-tab.active .lead-tab-code {
    font-weight: 700;
}

/* ---------- COUNT BADGE ---------- */
.lead-tab-info {
    display: inline-flex;
    align-items: center;
}

.lead-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: var(--tab-bg);
    border: 1px solid var(--tab-border);
    border-radius: 25px;
    color: var(--tab-color);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: background .22s ease, color .22s ease, border-color .22s ease;
}

.lead-status-tab.active .lead-tab-count {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
    .lead-status-tabs-inner {
        gap: 5px;
        padding: 5px;
        border-radius: 16px;
        /* soft fade on the right edge hints at scrolling */
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    }

    .lead-status-tab,
    a.lead-status-tab {
        height: 36px;
        gap: 7px;
        padding: 0 5px 0 10px;
        border-radius: 12px;
    }

    .lead-tab-code {
        font-size: 12px;
    }

    .lead-tab-count {
        min-width: 24px;
        height: 22px;
        padding: 0 6px;
        font-size: 10.5px;
    }
}

/* ---------- DARK MODE (only if your app sets data-theme="dark") ---------- */
[data-theme="dark"] .lead-status-tabs-inner {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4);
}

[data-theme="dark"] .lead-status-tab {
    color: #cbd5e1;
}

[data-theme="dark"] .lead-status-tab:hover {
    background: #1e293b;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    .lead-status-tab,
    .lead-status-tab::before,
    .lead-tab-count {
        transition: none;
    }

    .lead-status-tab:hover,
    .lead-status-tab.active {
        transform: none;
    }
}




/* TABLE CARD */
.lead-table-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: none;
    overflow: hidden;
}

.duplicate-badge {
    display: inline-block;
    margin-left: 2px;
    padding: 0px 5px;
    border-radius: 25px;
    background: #dc3545;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    vertical-align: middle;
    animation: duplicateBlink 1s infinite;
}

@keyframes duplicateBlink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.duplicate-lead-btn {
    position: relative;
    background: linear-gradient(to right, #FC0E34, #4169E1);
    border-radius: 5px;
    padding: 5px 20px 7px 20px;
    overflow: hidden;
    z-index: 2;
}

.duplicate-lead-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, #fff, transparent);
    animation: scanning 2s linear infinite;
}

@keyframes scanning {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.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);
    padding: 7px 20px;
    font-size: 10.5px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.lead-table-card .leads-table {
    border-collapse: separate;
    border-spacing: 0;
}

.lead-table-card .lead-table-filter-row th {
    padding-top: 0;
    padding-bottom: 0;
    border-top: 0 !important;
    border-bottom: 0 !important;
    background-clip: padding-box;
}

.lead-table-card .lead-table-filter-row th .lead-filter-item,
.lead-table-card .lead-table-filter-row th .lead-filter-search {
    margin: 0;
}

/* LEADS TABLE SCROLL */
.leads-table-scroll {
    height: 569px;
    overflow: auto !important;
    scrollbar-width: none;
    /* scrollbar-width: thin; */
    scrollbar-color: #ddd transparent;
}

.leads-table-scroll::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

.leads-table-scroll::-webkit-scrollbar-thumb {
    background: #b5121b;
    border-radius: 10px;
}

/* Main table */
.leads-table-scroll .leads-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
}

/* Main table header */
.leads-table-scroll .leads-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Rounded top corners */
.leads-table-scroll .leads-table thead tr:first-child th:first-child {
    border-top-left-radius: 9px;
}

.leads-table-scroll .leads-table thead tr:first-child th:last-child {
    border-top-right-radius: 9px;
}

/* ================================
   PAGE SIZE + FOOTER
================================ */

.lead-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.lead-table-footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lead-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 11px;
}

.lead-page-size label {
    margin-bottom: 0 !important;
}

.lead-page-size select {
    min-width: 68px;
    padding: 4px 25px 4px 5px;
    border: 1px solid #dce2ea;
    border-radius: 7px;
    background-color: #fff;
    color: #334155;
    outline: none;
    cursor: pointer;
}

.lead-page-size select:focus {
    border-color: #6c7ae0;
    box-shadow: 0 0 0 3px rgba(108, 122, 224, 0.1);
}

.lead-showing-text {
    font-size: 13px;
    color: #64748b;
}

.lead-showing-text strong {
    color: #334155;
}

/* Custom scrollbar */
.leads-table-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.leads-table-scroll::-webkit-scrollbar-track {
    background: #f1f3f7;
    border-radius: 10px;
}

.leads-table-scroll::-webkit-scrollbar-thumb {
    background: #c4cad5;
    border-radius: 10px;
}

.leads-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #929bad;
}

.leads-table .manager-cell {
    gap: 8px;
}

@media (max-width: 768px) {
    .leads-table-scroll {
        max-height: 65vh;
    }

    .lead-table-footer {
        align-items: flex-start;
    }

    .lead-table-footer-left {
        gap: 10px;
    }
}

/* =====================================================
   MOBILE LEAD CARDS — DESKTOP DESIGN UNCHANGED
===================================================== */

@media (max-width: 767.98px) {
    /* Remove desktop table scrolling on mobile */
    .leads-table-scroll {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .lead-table-card {
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .leads-table-scroll .leads-table {
        display: block;
        width: 100%;
        min-width: 0 !important;
        margin: 0;
        border: 0;
        border-spacing: 0;
        background: transparent;
    }

    /* Hide desktop heading and quick-filter row */
    .leads-table thead {
        display: none !important;
    }

    /* Table body becomes a card list */
    .leads-table #leadsTableBody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    /* Individual lead card */
    .leads-table #leadsTableBody > tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        padding: 14px;
        margin: 0;
        background: #fff;
        border: 1px solid #e8edf4;
        border-radius: 14px;
        box-shadow: 0 3px 12px rgba(25, 42, 70, 0.045);
        overflow: visible;
    }

    .leads-table #leadsTableBody > tr > td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-width: 0;
        padding: 5px 0;
        border: 0 !important;
        border-bottom: 1px solid #f0f2f6 !important;
        background: transparent !important;
        white-space: normal;
        text-align: right;
        overflow-wrap: anywhere;
    }

    /* Checkbox row */
    .leads-table #leadsTableBody > tr > td.bulk-checkbox-column {
        justify-content: flex-end;
        padding: 0 0 8px;
        border-bottom: 0 !important;
    }

    /* Lead identity header */
    .leads-table #leadsTableBody > tr > td:nth-child(2) {
        display: block;
        padding: 4px 0 14px;
        border-bottom: 1px solid #e9edf4 !important;
        text-align: left;
    }

    .leads-table .lead-identity {
        display: flex;
        align-items: center;
        gap: 11px;
        width: 100%;
        min-width: 0;
    }

    .leads-table .lead-avatar {
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
    }

    .leads-table .lead-identity-info {
        flex: 1;
        min-width: 0;
    }

    .leads-table .lead-name {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        color: #202b3c;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .leads-table .lead-project-name {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-top: 5px;
        color: #667085;
        font-size: 12px;
    }

    /* Compact field labels */
    .leads-table #leadsTableBody > tr > td:nth-child(3)::before {
        content: "PROJECT";
    }

    .leads-table #leadsTableBody > tr > td:nth-child(4)::before {
        content: "STATUS";
    }

    .leads-table #leadsTableBody > tr > td:nth-child(5)::before {
        content: "SOURCE";
    }

    .leads-table #leadsTableBody > tr > td:nth-child(6)::before {
        content: "MANAGED BY";
    }

    .leads-table #leadsTableBody > tr > td:nth-child(3)::before,
    .leads-table #leadsTableBody > tr > td:nth-child(4)::before,
    .leads-table #leadsTableBody > tr > td:nth-child(5)::before,
    .leads-table #leadsTableBody > tr > td:nth-child(6)::before {
        flex: 0 0 82px;
        color: #8490a2;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.45px;
        text-align: left;
    }

    /* Project value */
    .leads-table .lead-phone-cell {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 7px;
        min-width: 0;
        color: #344054;
        font-size: 12px;
        font-weight: 600;
        text-align: right;
    }

    .leads-table .lead-phone-icon {
        flex-shrink: 0;
    }

    /* Status pill */
    .leads-table .lead-status {
        max-width: calc(100% - 94px);
        padding: 3px 9px;
        border-radius: 20px;
        font-size: 11px;
        line-height: 1.35;
        white-space: normal;
        text-align: right;
        overflow-wrap: anywhere;
    }

    /* Source and sub-source */
    .leads-table .lead-source-info {
        min-width: 0;
        max-width: calc(100% - 94px);
        text-align: right;
        overflow-wrap: anywhere;
    }

    .leads-table .lead-source-name {
        font-size: 12px;
        font-weight: 600;
    }

    .leads-table .lead-sub-source {
        display: block;
        margin-top: 3px;
        color: #98a2b3;
        font-size: 10px;
        overflow-wrap: anywhere;
    }

    /* Assigned manager */
    .leads-table .manager-cell {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px !important;
        min-width: 0;
    }

    .leads-table .manager-avatar {
        flex-shrink: 0;
    }

    .leads-table .manager-info {
        min-width: 0;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .leads-table .manager-info strong {
        font-size: 12px;
        font-weight: 600;
    }

    /* Actions footer */
    .leads-table #leadsTableBody > tr > td:nth-child(7) {
        display: block;
        padding: 13px 0 0;
        border-bottom: 0 !important;
    }

    .leads-table .lead-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 9px;
        width: 100%;
    }

    .leads-table .lead-action-btn {
        flex-shrink: 0;
    }

    /* Keep the More Actions menu above the card */
    .leads-table .lead-more-wrapper {
        position: relative;
    }

    .leads-table .lead-more-menu {
        z-index: 1055;
    }

    /* Empty state */
    .leads-table #leadsTableBody > tr > td[colspan] {
        display: block;
        padding: 25px 12px;
        border: 0 !important;
        text-align: center;
    }

    /* Footer and pagination */
    .lead-table-footer {
        align-items: flex-start;
        gap: 12px;
        padding: 12px 2px;
    }

    .lead-table-footer-left {
        gap: 10px;
    }

    .lead-showing-text {
        font-size: 11px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .leads-table #leadsTableBody > tr {
        padding: 11px;
        border-radius: 12px;
    }

    .leads-table .lead-avatar {
        width: 38px;
        height: 38px;
    }

    .leads-table #leadsTableBody > tr > td:nth-child(3)::before,
    .leads-table #leadsTableBody > tr > td:nth-child(4)::before,
    .leads-table #leadsTableBody > tr > td:nth-child(5)::before,
    .leads-table #leadsTableBody > tr > td:nth-child(6)::before {
        flex-basis: 72px;
    }
}

/* =====================================
   LEAD TABLE FILTER ROW
===================================== */

.lead-table-card .lead-table-filter-row th {
    padding: 6px 0px !important;
    background: #fafbfc;
    border-bottom: 1px solid #eef0f3 !important;
    vertical-align: middle;
}

.lead-table-card .lead-table-filter-row .lead-filter-search,
.lead-table-card .lead-table-filter-row .lead-filter-item {
    width: 100%;
}

.lead-table-card .lead-table-filter-row .lead-filter-search input,
.lead-table-card .lead-table-filter-row .lead-filter-item select {
    height: 32px;

    font-size: 11px;

    border: 1px solid #e5e7eb;
    border-radius: 5px;

    background: #fff;
}

.lead-table-card .lead-table-filter-row .lead-filter-search input {
    padding-left: 28px;
}

.lead-table-card .lead-table-filter-row .lead-filter-item select {
    padding-left: 5px;
}

.lead-table-card .lead-table-filter-row .lead-filter-search i,
.lead-table-card .lead-table-filter-row .lead-filter-item i {
    font-size: 11px;
}

.lead-table-card .lead-filter-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.leads-table tbody td {
    padding: 7px 20px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
    font-size: 11px;
    color: #444b5c;
}

.leads-table tbody tr:hover td {
    background-color: #f2f4f7 !important;
}

/* =========================
   LEAD IDENTITY
========================= */

.lead-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 190px;
}

.lead-avatar {
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    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: 12px;
    line-height: 14px;
    color: var(--ink);
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.lead-priority-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 1px 7px;
    border-radius: 25px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: capitalize;
    white-space: nowrap;
}

.lead-priority-low {
    color: #60adf2;
    background: #f1f8ff;
}

.lead-priority-medium {
    color: #a8750b;
    background: #fff5dc;
}

.lead-priority-high {
    color: #c65c22;
    background: #fff0e6;
}

.lead-priority-urgent {
    color: #cc3434;
    background: #ffebeb;
}

.lead-priority-default {
    color: #5563c1;
    background: #eef0ff;
}

.lead-priority-badge i {
    font-size: 6px;
}

.lead-project-name {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 0px;
    font-size: 10.5px;
    color: var(--ink-faint);
    white-space: nowrap;
}

.lead-project-name i {
    font-size: 8px;
    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;
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.lead-phone {
    color: #454c5d;
    font-size: 10px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

/* =========================
   STATUS
========================= */

.lead-parent-status {
    display: block;
    margin-top: 0px;
    color: var(--ink-faint);
    font-size: 9.5px;
    line-height: 14px;
}

.lead-status {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: transparent;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #989292;
}

/* =========================================================
   FRESH
   ========================================================= */

.lead-status.new {
    color: #16865f;
}

.lead-status.new .status-dot {
    background: #22b77b;
}

/* =========================================================
   CONTACTED
   ========================================================= */

.lead-status.contacted {
    color: #4f5fbd;
}

.lead-status.contacted .status-dot {
    background: #6574cd;
}

/* =========================================================
   INTERESTED
   ========================================================= */

.lead-status.interested {
    color: #187568;
}

.lead-status.interested .status-dot {
    background: #1f8b7d;
}

/* =========================================================
   FOLLOW UP
   ========================================================= */

.lead-status.follow-up {
    color: #b97918;
}

.lead-status.follow-up .status-dot {
    background: #d79628;
}

/* =========================================================
   NOT INTERESTED
   ========================================================= */

.lead-status.not-interested {
    color: #a5394a;
}

.lead-status.not-interested .status-dot {
    background: #b5495a;
}

/* =========================================================
   NOT CONTACTED
   ========================================================= */

.lead-status.not-contacted {
    color: #687385;
}

.lead-status.not-contacted .status-dot {
    background: #7b8794;
}

/* =========================================================
   CALL CUT
   ========================================================= */

.lead-status.call-cut {
    color: #c05a32;
}

.lead-status.call-cut .status-dot {
    background: #d66a3c;
}

/* =========================================================
   SWITCH OFF
   ========================================================= */

.lead-status.switch-off {
    color: #d51717;
}

.lead-status.switch-off .status-dot {
    background: #d51717;
}

/* =========================
   SOURCE
========================= */

.lead-source-info {
    min-width: 115px;
}

.lead-source-name {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    color: #454c5d;
    line-height: 16px;
}

.source-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #000;
}

.source-dot.src-website {
    background: #f0b34c;
}

.source-dot.src-facebook {
    background: #0064e0;
}

.source-dot.src-google {
    background: #50a5f1;
}

.source-dot.src-99acres {
    background: #27dabf;
}

.source-dot.src-magicbricks {
    background: #f21437;
}

.lead-sub-source {
    display: block;
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 9.5px;
    line-height: 14px;
}

/* =========================
   MANAGED BY
========================= */

.manager-cell {
    display: flex;
    align-items: center;
    gap: 0px;
    white-space: nowrap;
    min-width: 150px;
}

.leads-table .manager-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 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;
}

.leads-table .manager-info strong {
    display: block;
    color: #5babf2;
    font-size: 10px;
    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: #5a5a5a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    text-decoration: none;
    transition: all 0.14s ease;
}

.lead-action-btn.edit {
    background: #a9721f;
}

.lead-action-btn.feedback {
    background: #4c6fa5;
}

.lead-action-btn.call {
    background: #1f7a6c;
}

.lead-action-btn.whatsapp {
    background: #1f7a6c;
}

/* =========================
   TABLE FOOTER
========================= */

.lead-table-footer {
    padding: 8px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.lead-table-footer .lead-pagination p,
ul {
    margin-bottom: 0 !important;
}

.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: 0.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, 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: row;
    gap: 4px;
}

.permission-role-item {
    width: 100%;

    border: 1px solid #e4e4e4;
    background: transparent;

    padding: 8px 9px;

    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    text-align: left;

    transition: all 0.15s ease;
}

.permission-role-item:hover {
    background: #f8f9fc;
}

.permission-role-item.active {
    background: #edf7ff;
    color: #50a5f1;
}

.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: #50a5f1;
    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: #edf7ff;
    color: #50a5f1;
}

.permission-actions {
    display: flex;
    gap: 5px;
}

.permission-actions .btn {
    font-size: 11px;
    padding: 5px 9px;
}

/* COLORFUL PERMISSION CARD GRID */
#permissionLoader {
    margin-bottom: 20px;
    text-align: center;
}

#permission-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    padding: 4px 2px 12px;
}
/* CARD BASE */

.permission-module {
    --card-bg: #ffffff;
    --card-border: #e9edf3;
    --card-accent: #7657d5;
    --card-heading: #263247;

    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.permission-module:hover {
    border-color: var(--card-border);
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.06);
}

/* CLEAN WHITE HEADER */

.permission-module-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #f0f2f6;
    background: #f4f4f4;
}

.permission-module-title {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* SIMPLE EMOJI ICON */

.permission-module-emoji .fas {
    color: #878787;
    font-size: 11px;
    box-shadow: none;
}

/* TITLE */

.permission-module-title h6 {
    margin: 0;
    color: #263247;
    font-size: 12px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.permission-module-title small {
    display: block;
    margin-top: 4px;
    color: #8a94a5;
    font-size: 10px;
    font-weight: 500;
}

.module-selected-count {
    font-weight: 500;
}

/* TOGGLE */

.permission-toggle {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 20px;
    margin: 0;
}

.permission-toggle input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.permission-toggle span {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: rgba(75, 85, 99, 0.2);
    transition: background 0.2s ease;
}

.permission-toggle span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.permission-toggle input:checked + span {
    background: #34c38f;
}

.permission-toggle input:checked + span::after {
    transform: translateX(24px);
}

/* PERMISSION OPTIONS */

.permission-list {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    padding: 10px;
    flex: 1;
}

.permission-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin: 0;
    padding: 5px 7px;
    border: 1px solid #e4e4e4dd;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.72);
    color: #475467;
    cursor: pointer;
    transition: all 0.18s ease;
}

.permission-item:hover {
    border-color: #9d9d9d;
    background: #fff;
}

.permission-checkbox {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-content: center;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin: 0;
    border: 1.5px solid #c3cbd7;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.permission-checkbox::after {
    content: "";
    width: 7px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.12s ease;
}

.permission-checkbox:checked {
    border-color: #34c38f;
    background: #34c38f;
}

.permission-checkbox:checked::after {
    transform: rotate(-45deg) scale(1);
}

.permission-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.permission-item:has(.permission-checkbox:checked) {
    border-color: #34c38f;
    background: rgba(255, 255, 255, 0.96);
    color: #34c38f;
    box-shadow: none;
}

/* CARD FOOTER */

.permission-module-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--card-border);
    color: var(--card-accent);
    font-size: 10px;
    font-weight: 650;
}

.permission-footer-icon {
    font-size: 15px;
    opacity: 0.65;
}

.permission-module.has-permissions .permission-footer-icon {
    opacity: 1;
}

/* MAIN FOOTER */

.permission-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #edf0f5;
}

.permission-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #667085;
}

.permission-summary i {
    color: #16a36a;
}

#savePermissions {
    padding: 9px 16px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

/* RESPONSIVE GRID */

@media (max-width: 1199px) {
    #permission-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    #permission-container {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .permission-module-header {
        padding: 14px;
    }

    .permission-list {
        padding: 13px;
    }
}

/* =====================================
           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, 0.15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition: all 0.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;
    scrollbar-width: thin;
}

.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: #f1f8ff;
    color: #50a5f1;

    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;
    }
}

/* Leads Assign Leads */
.assign-users-dropdown {
    width: 100%;
    padding: 8px !important;

    max-height: 360px;
    overflow: hidden;

    border: 1px solid #eaedf1;
    border-radius: 0 0 10px 10px;

    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

/* =========================
   SEARCH
========================= */

.assign-user-search {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;

    margin-bottom: 6px;
    padding: 0;

    background: #fff;
}

.assign-user-search > i {
    position: absolute;
    left: 10px;

    color: #9aa0ac;
    font-size: 15px;

    pointer-events: none;
}

.assign-user-search .form-control {
    width: 100%;
    height: 34px;

    padding-left: 32px;
    padding-right: 32px;

    border: 1px solid #e4e7ec;
    border-radius: 7px;

    background: #f8f9fb;

    font-size: 11px;

    box-shadow: none;
}

.assign-user-search .form-control:focus {
    border-color: #556ee6;
    background: #fff;

    box-shadow: 0 0 0 2px rgba(85, 110, 230, 0.08);
}

/* CLEAR */

.assign-user-search-clear {
    position: absolute;
    right: 7px;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #9aa0ac;

    font-size: 14px;
}

.assign-user-search-clear:hover {
    background: #f0f1f4;
    color: #495057;
}

/* =========================
   RESULTS
========================= */

.assign-user-results {
    width: 100%;
    max-height: 285px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
}

.assign-user-results::-webkit-scrollbar {
    width: 4px;
}

.assign-user-results::-webkit-scrollbar-track {
    background: transparent;
}

.assign-user-results::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #d9dce3;
}

.assign-user-results::-webkit-scrollbar-thumb:hover {
    background: #c2c6ce;
}

/* =========================
   USER ROW
========================= */

.assign-user-dropdown-item {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 9px;

    margin: 3px 0;
    padding: 7px 9px;

    border: 1px solid #e1e5eb;
    border-radius: 7px;

    background: #fff;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.assign-user-dropdown-item:hover {
    background: #f7f8fa;
    border-color: #d8dde5;
}

/* Checkbox */

.assign-user-dropdown-item input {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    margin: 0;
}

/* Avatar */

.assign-user-avatar {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 30px;

    border-radius: 50%;

    background: #eef1ff;
    color: #556ee6;

    font-size: 12px;
    font-weight: 600;
}

/* Info */

.assign-user-dropdown-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
    flex: 1;
}

/* Name */

.assign-user-dropdown-item .assign-user-name {
    display: block;

    font-size: 12px;
    font-weight: 600;

    color: #343a40;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Email */

.assign-user-dropdown-item .assign-user-email {
    display: block;

    margin-top: 2px;

    color: #8b8f98;

    font-size: 10px;
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reporting */

.assign-user-reporting {
    display: block;

    margin-top: 3px;

    color: #9aa0ac;

    font-size: 9px;
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assign-user-reporting i {
    margin-right: 2px;

    color: #9ca3af;

    font-size: 9px;
}

.assign-user-reporting strong {
    color: #737987;

    font-size: 9px;
    font-weight: 500;
}

/* =========================
   SELECT ALL
========================= */

.assign-user-select-all {
    margin: 0 0 6px 0;

    border: 0;
    border-bottom: 1px solid #e9ecef;

    border-radius: 0;

    padding: 7px 9px 9px;

    background: #fff;
}

.assign-user-select-all:hover {
    background: #fff;
}

/* =========================
   EMPTY SEARCH
========================= */

.assign-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 25px 10px;

    color: #9aa0ac;

    font-size: 10px;
}

.assign-search-empty i {
    font-size: 22px;
    color: #c2c6ce;
}

/* =========================
   SCROLLBAR
========================= */

.assign-user-results::-webkit-scrollbar {
    width: 4px;
}

.assign-user-results::-webkit-scrollbar-track {
    background: transparent;
}

.assign-user-results::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #d9dce3;
}

.assign-user-results::-webkit-scrollbar-thumb:hover {
    background: #c2c6ce;
}

/* =========================================================
   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: 15px;
}

.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), 0.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 0.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 0.15s ease,
        box-shadow 0.15s ease,
        background 0.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;
    cursor: pointer;
}

.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: 0.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, 0.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 0.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: 10px 12px;
    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, 0.35);
}

.transfer-panel-body {
    padding: 18px;
}

.transfer-user-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #454170;
}

.transfer-lead-filters {
    background: #f8fff8;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    padding: 5px;
    margin-top: 7px;
}

.transfer-filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 6px;
}

.transfer-filter-heading .advance-filter {
    display: flex;
    align-items: center;
}

.transfer-filter-heading .advance-filter p {
    margin-bottom: 0;
    font-size: 11px;
    font-weight: 500;
    margin-left: 3px;
}

.transfer-filter-heading i {
    font-size: 10px;
    color: #444;
}

.transfer-lead-filters .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.transfer-lead-filters .form-select {
    /* min-height: 37px; */
    font-size: 10px;
    border-color: #dce3eb;
    border-radius: 7px;
    background-color: #fff;
}

.transfer-lead-filters .form-select:focus {
    border-color: #50a5f1;
    box-shadow: 0 0 0 3px rgba(80, 165, 241, 0.12);
}

#clearLeadFilters {
    color: #fff;
    font-weight: 600;
    font-size: 9px;
    padding: 6px 7px;
    background: #444;
    border-radius: 50px;
    cursor: pointer;
}

/* 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 0.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, 0.12);
}

.transfer-multi-select.open .transfer-multi-select-toggle {
    border-color: var(--tl-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.transfer-multi-select-toggle i {
    font-size: 10px;
    color: var(--tl-violet);
    transition: transform 0.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: none;
    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;
    scrollbar-width: thin;
}

.transfer-user-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 9px;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #3a3560;
    border: 1px solid #f2f2f2;
    margin: 2px 0;
    transition: background 0.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 0.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-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 0px;
}

.transfer-user-option-name {
    font-size: 12px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.3;
}

.transfer-user-option-email {
    display: block;
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transfer-user-option-email i {
    width: 14px;
    font-size: 10px;
    margin-right: 3px;
}

.transfer-user-option-reporting {
    display: block;
    font-size: 10px;
    color: #585858;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transfer-user-option-reporting i {
    width: 14px;
    font-size: 10px;
    margin-right: 3px;
}

.transfer-user-option-reporting small {
    font-size: 9px;
    color: #94a3b8;
}

.transfer-user-option {
    align-items: flex-start !important;
}

.transfer-user-option.disabled {
    opacity: 0.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 0.12s ease,
        box-shadow 0.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: 10px 12px 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, 0.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, 0.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, 0.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 0.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: 0.2px;
}

.transfer-btn.btn-success {
    background: linear-gradient(135deg, var(--tl-green) 0%, #059669 100%);
    border: none;
    box-shadow: none;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.transfer-btn.btn-success:disabled {
    background: #d7d2f0;
    box-shadow: none;
    opacity: 0.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, 0.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, 0.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: -0.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: 0.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: 6px 10px;
    border-radius: 12px;
    background: #f1f8ff;
    border: 1px solid #e8e2ff;
}

.single-transfer-lead-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    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: 0.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 !important;
    font-size: 13px;
    font-weight: 500;
}

/* =========================
   CURRENT OWNER
========================= */

.single-transfer-owner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 12px;
    background: #eaeaea;
    border: 1px solid #bdbdbd;
}

.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;
}

/* User Picker */

.transfer-user-picker {
    position: relative;

    border: 1px solid #dbe1ea;
    border-radius: 11px;

    background: #fff;

    overflow: hidden;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.transfer-user-picker:focus-within {
    border-color: #6366f1;

    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

/* Search */

.transfer-search-box {
    position: relative;

    height: 46px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid #eef0f4;
}

.transfer-search-icon {
    width: 42px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #9ca3af;
    font-size: 12px;
}

.transfer-user-search {
    flex: 1;

    height: 100%;

    border: 0;
    outline: 0;

    font-size: 12px;
    color: #111827;

    background: transparent;

    padding: 0 4px;
}

.transfer-user-search::placeholder {
    color: #9ca3af;
}

.transfer-search-clear {
    width: 34px;
    height: 34px;

    margin-right: 6px;

    border: 0;
    background: transparent;

    color: #9ca3af;

    border-radius: 7px;

    cursor: pointer;
}

.transfer-search-clear:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Selected User */

.transfer-selected-user {
    margin: 8px;

    padding: 9px 10px;

    border-radius: 9px;

    background: #f5f7ff;
    border: 1px solid #e0e7ff;

    display: flex;
    align-items: center;
    gap: 9px;
}

.transfer-selected-avatar {
    width: 32px;
    height: 32px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #50a5f1;
    color: #fff;

    font-size: 12px;

    flex-shrink: 0;
}

.transfer-selected-info {
    min-width: 0;
    flex: 1;
}

.transfer-selected-info strong {
    display: block;

    font-size: 12px;
    color: #111827;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transfer-selected-info span {
    display: block;

    font-size: 10px;
    color: #6b7280;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transfer-selected-remove {
    width: 27px;
    height: 27px;

    border: 0;
    border-radius: 7px;

    background: #fff;
    color: #9ca3af;

    cursor: pointer;
}

.transfer-selected-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* User List */

.transfer-user-list {
    max-height: 245px;
    overflow-y: auto;

    padding: 5px;
}

.transfer-user-list::-webkit-scrollbar {
    width: 5px;
}

.transfer-user-list::-webkit-scrollbar-track {
    background: transparent;
}

.transfer-user-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

/* User Item */

.transfer-user-item {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 9px;

    border: 0;
    border-radius: 5px 10px;

    background: transparent;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.transfer-user-item:hover {
    background: #f5f7ff;
}

.transfer-user-item:active {
    transform: scale(0.99);
}

/* Avatar */

.transfer-user-avatar {
    width: 36px;
    height: 36px;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f8ff;
    color: #50a5f1;

    font-size: 12px;
    font-weight: 700;

    flex-shrink: 0;
}

/* User Info */

.transfer-user-info {
    min-width: 0;
    flex: 1;
}

.transfer-user-name {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 12px;
    font-weight: 600;

    color: #111827;

    line-height: 1.3;
}

.transfer-user-email {
    display: block;

    margin-top: 0px;

    font-size: 10px;
    color: #6b7280;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transfer-user-manager {
    display: flex;
    align-items: center;
    gap: 4px;

    margin-top: 0px;

    font-size: 10px;
    color: #9ca3af;
}

.transfer-user-manager i {
    font-size: 8px;
}

/* Current Owner */

.transfer-current-badge {
    flex-shrink: 0;

    padding: 3px 7px;

    border-radius: 5px;

    background: #f3f4f6;
    color: #6b7280;

    font-size: 9px;
    font-weight: 600;
}

/* Empty */

.transfer-user-empty {
    padding: 28px 15px;

    text-align: center;

    color: #9ca3af;
}

.transfer-user-empty i {
    display: block;

    font-size: 22px;

    margin-bottom: 8px;

    color: #d1d5db;
}

.transfer-user-empty strong {
    display: block;

    font-size: 12px;
    color: #6b7280;
}

.transfer-user-empty span {
    display: block;

    margin-top: 3px;

    font-size: 10px;
}

/* Loading */

.transfer-user-loading {
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #9ca3af;

    font-size: 11px;
}

/* Mobile */

@media (max-width: 575px) {
    .single-transfer-modal .modal-body {
        padding-left: 15px;
        padding-right: 15px;
    }

    .single-transfer-modal .modal-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .single-transfer-lead,
    .single-transfer-owner {
        width: 50% !important;
        margin-left: 0 !important;
    }

    .single-transfer-status-options {
        grid-template-columns: 1fr;
    }
}

/* =========================
   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 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.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 0.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 0.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 0.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 {
    background: #1b7551;
}

.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;
}

.bulk-upload-loading {
    padding: 32px 20px;
    text-align: center;
    border-radius: 14px;
    background: #d4f2e8;
    border: 1px solid #34c38f;
    margin-bottom: 20px;
}

.bulk-upload-loading-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(25, 135, 84, 0.08); */
}

/* Dotted spinner */
.bulk-upload-dotted-spinner {
    width: 42px;
    height: 42px;
    position: relative;
    animation: bulkUploadRotate 1.2s linear infinite;
}

.bulk-upload-dotted-spinner span {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #34c38f;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
}

/* 8 dots */
.bulk-upload-dotted-spinner span:nth-child(1) {
    transform: rotate(0deg) translateX(10px);
}

.bulk-upload-dotted-spinner span:nth-child(2) {
    transform: rotate(45deg) translateX(10px);
}

.bulk-upload-dotted-spinner span:nth-child(3) {
    transform: rotate(90deg) translateX(10px);
}

.bulk-upload-dotted-spinner span:nth-child(4) {
    transform: rotate(135deg) translateX(10px);
}

.bulk-upload-dotted-spinner span:nth-child(5) {
    transform: rotate(180deg) translateX(10px);
}

.bulk-upload-dotted-spinner span:nth-child(6) {
    transform: rotate(225deg) translateX(10px);
}

.bulk-upload-dotted-spinner span:nth-child(7) {
    transform: rotate(270deg) translateX(10px);
}

.bulk-upload-dotted-spinner span:nth-child(8) {
    transform: rotate(315deg) translateX(10px);
    display: none;
}

@keyframes bulkUploadRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.bulk-upload-loading-content h6 {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #212529;
}

.bulk-upload-loading-content p {
    margin-bottom: 12px;
    font-size: 12px;
    color: #6c757d;
}

.bulk-upload-loading-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #e8f4ff;
    color: #3498db;
    border: 1px solid #3498db;
    font-size: 11px;
    font-weight: 500;
}

.bulk-upload-loading-note i {
    font-size: 10px;
}

.project-option-item {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 9px 11px;

    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 8px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.project-option-item:hover {
    border-color: #b8c8df;
    background: #f8fbff;
}

.project-option-item .form-check-input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;

    cursor: pointer;
}

.project-option-item .form-check-label {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #344054;
    line-height: 1.35;
    cursor: pointer;
}

.project-option-item .form-check-input:checked {
    background-color: #34c38f;
    border: none;
}

.project-option-item:has(.form-check-input:checked) {
    border-color: rgba(52, 195, 143, 0.45);
    background: #f8fffc;
}

.project-option-item:has(.form-check-input:checked) .form-check-label {
    font-weight: 600;
}

.project-form-tabs-wrapper {
    margin: -2px -2px 20px;
    padding: 5px;

    background: #f8f9fb;
    border: 1px solid #e8ebf0;
    border-radius: 11px;

    overflow: hidden;
}

.project-form-tabs {
    display: flex;
    align-items: stretch;
    gap: 5px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 4px;

    scrollbar-width: thin;
    scrollbar-color: #cfd5df transparent;

    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.project-form-tabs::-webkit-scrollbar {
    height: 3px;
}

.project-form-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.project-form-tabs::-webkit-scrollbar-thumb {
    background: #cfd5df;
    border-radius: 10px;
}

.project-form-tabs::-webkit-scrollbar-thumb:hover {
    background: #aeb6c2;
}

.project-form-tab {
    position: relative;

    flex: 0 0 175px;
    width: 175px;
    min-width: 175px;
    min-height: 58px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 8px 10px;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;
    color: #667085;

    text-align: left;
    white-space: nowrap;

    cursor: pointer;

    transition: all 0.2s ease;
}

.project-form-tab:hover {
    background: #fff;
    color: #344054;
}

.project-form-tab.active {
    background: #fff;
    border-color: rgba(13, 110, 253, 0.12);
    color: #50a5f1;
    box-shadow: none;
}

.project-form-tab-icon {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f1f8ff;
    color: #50a5f1;

    font-size: 13px;
}

.project-form-tab.active .project-form-tab-icon {
    background: #f0f7ff;
    color: #0d6efd;
}

.project-form-tab-content {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    line-height: 1.2;
}

.project-form-tab-content strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 11px;
    font-weight: 600;
}

.project-form-tab-content small {
    display: block;

    margin-top: 4px;

    color: #98a2b3;

    font-size: 9px;
    line-height: 1.2;
}

.project-form-tab.active::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 0;

    height: 2px;

    background: #50a5f1;
    border-radius: 3px 3px 0 0;
}

/* =========================================
   TAB CONTENT
========================================= */

.project-form-tab-pane {
    display: none;
    animation: projectTabFade 0.18s ease;
}

.project-form-tab-pane.active {
    display: block;
}

@keyframes projectTabFade {
    from {
        opacity: 0;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   FORM SPACING
========================================= */

.project-form-card .card-body {
    padding: 18px;
}

.project-form-card .form-section-title {
    margin-bottom: 15px;
}

.project-form-card .form-label {
    margin-bottom: 6px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #344054;
}

.project-form-card .form-control,
.project-form-card .form-select {
    min-height: 36px;

    font-size: 12px;
    border-radius: 7px;
}

.project-form-card textarea.form-control {
    min-height: auto;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
    .project-form-tabs-wrapper {
        margin-bottom: 15px;
    }

    .project-form-tab {
        flex: 0 0 155px;
        width: 155px;
        min-width: 155px;

        min-height: 54px;

        padding: 7px 9px;
    }

    .project-form-tab-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;

        font-size: 12px;
    }

    .project-form-tab-content strong {
        font-size: 10px;
    }

    .project-form-tab-content small {
        font-size: 8.5px;
    }

    .project-form-card .card-body {
        padding: 14px;
    }
}

/* =====================================
   PROJECT CONFIGURATION
===================================== */

.project-config-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.project-config-item {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;

    padding: 10px 11px;

    border: 1px solid #e8ebf0;
    border-radius: 8px;

    background: #fafbfc;

    transition: all 0.15s ease;
}

.project-config-item:hover {
    border-color: #d8dce5;
    background: #fff;
}

.project-config-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #f3f0ff;
    color: var(--info-color);

    font-size: 14px;
}

.project-config-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.project-config-name {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 11px;
    font-weight: 600;

    color: #344054;
}

.project-config-size {
    font-size: 10px;
    color: #98a2b3;
}

@media (max-width: 767px) {
    .project-config-list {
        grid-template-columns: 1fr;
    }
}

/* =====================================
   PROJECT TAGS
===================================== */

.project-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 6px 9px;

    border: 1px solid #e7eaf0;
    border-radius: 6px;

    background: #fafbfc;

    color: #475467;

    font-size: 10px;
    font-weight: 500;

    line-height: 1.3;
}

.project-tag i {
    font-size: 11px;
    color: var(--info-color);
}

.project-live-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: var(--info-color);

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;
}

.project-live-link:hover {
    color: #3f51c5;
    text-decoration: underline;
}

.project-live-link i {
    font-size: 12px;
}

/* =========================================================
   PROJECT USER SELECTOR
========================================================= */

.project-user-selector {
    position: relative;
    width: 100%;
}

/* =========================================================
   DROPDOWN
========================================================= */

.custom-user-dropdown {
    position: relative;
    width: 100%;
}

/* =========================================================
   TRIGGER
========================================================= */

.user-dropdown-trigger {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #c9d0da;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.user-dropdown-trigger:hover {
    border-color: #aeb7c2;
}

.custom-user-dropdown.open .user-dropdown-trigger {
    border-color: #556ee6;
    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.1);
}

/* =========================================================
   SELECTED USER
========================================================= */

.selected-user-content {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #556ee6, #7c8cf8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.selected-user-info {
    min-width: 0;
}

.selected-user-name {
    color: #252b3a;
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-user-email {
    color: #8b93a7;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    color: #98a0b3;
    font-size: 11px;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.custom-user-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* =========================================================
   DROPDOWN MENU
========================================================= */

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 300px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: none;
    z-index: 1050;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.18s ease;

    overflow: hidden;
}

.custom-user-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================================
   SEARCH
========================================================= */

.user-search-wrapper {
    padding: 10px;
    border-bottom: 1px solid #edf0f4;
    background: #fafbfc;
    position: relative;
}

.user-search-wrapper > i {
    position: absolute;
    left: 21px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a0b3;
    font-size: 12px;
    pointer-events: none;
}

.user-search-input {
    width: 100%;
    height: 38px;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px 0 34px;
    outline: none;
    font-size: 12px;
    color: #303544;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.user-search-input:focus {
    border-color: #556ee6;
    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.08);
}

.user-search-input::placeholder {
    color: #a4aabb;
}

/* =========================================================
   USER LIST
========================================================= */

.user-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 5px;
}

/* scrollbar */

.user-list::-webkit-scrollbar {
    width: 5px;
}

.user-list::-webkit-scrollbar-track {
    background: transparent;
}

.user-list::-webkit-scrollbar-thumb {
    background: #d6dae2;
    border-radius: 10px;
}

/* =========================================================
   USER ITEM
========================================================= */

.user-item {
    width: 100%;
    border: 0;
    margin: 4px 0;
    background: transparent;
    padding: 3px 8px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.user-item:hover {
    background: #f5f7ff;
}

.user-item.active {
    background: #effaf6;
}

/* =========================================================
   USER AVATAR
========================================================= */

.user-item-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: #eef1ff;
    color: #556ee6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.user-item.active .user-item-avatar {
    background: #556ee6;
    color: #fff;
}

/* =========================================================
   USER DETAILS
========================================================= */

.user-item-details {
    min-width: 0;
    flex: 1;
}

.user-item-top {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.user-item-name {
    color: #252b3a;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-item-manager {
    color: #7d8699;
    font-size: 9.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-item-manager i {
    font-size: 9px;
    margin-right: 3px;
    color: #9aa2b3;
}

.user-item-email {
    margin-top: 0px;
    color: #8d95a7;
    font-size: 9.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-item-email i {
    font-size: 9px;
    margin-right: 4px;
    color: #a1a8b7;
}

/* =========================================================
   CHECK ICON
========================================================= */

.user-item-check {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 9px;
}

.user-item.active .user-item-check {
    background: #34c38f;
    color: #fff;
}

/* =========================================================
   EMPTY / LOADING
========================================================= */

.user-dropdown-message {
    min-height: 110px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9aa2b3;
    font-size: 11px;
    gap: 7px;
}

.user-dropdown-message i {
    font-size: 20px;
    color: #b2b9c7;
}

/* =========================================================
   LOADING
========================================================= */

.user-loading {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #8d95a7;
    font-size: 11px;
}

/* =========================================================
   NO RESULT
========================================================= */

.user-no-result {
    padding: 25px 10px;
    text-align: center;
    color: #9aa2b3;
    font-size: 11px;
}

.user-no-result i {
    display: block;
    margin-bottom: 7px;
    font-size: 18px;
}

/* =========================================================
   INVALID
========================================================= */

.project-user-selector.is-invalid .user-dropdown-trigger {
    border-color: #f46a6a;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {
    .user-dropdown-menu {
        min-width: 100%;
    }

    .user-item {
        padding: 10px 8px;
    }

    .user-item-manager {
        display: block;
        margin-top: 2px;
    }
}

/* =========================================================
   BULK LEADS CHECKBOX
========================================================= */

.bulk-checkbox-column {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    text-align: center;
    vertical-align: middle;
}

.lead-checkbox {
    appearance: none;
    -webkit-appearance: none;

    width: 17px;
    height: 17px;

    border: 1.5px solid #969798;
    border-radius: 5px;

    background: #fff;

    cursor: pointer;

    position: relative;

    transition: all 0.18s ease;

    vertical-align: middle;
}

.lead-checkbox:hover {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.lead-checkbox:checked {
    background: #34c38f;
    border-color: transparent;
}

.lead-checkbox:checked::after {
    content: "";

    position: absolute;

    width: 5px;
    height: 9px;

    border: solid #fff;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);

    left: 5px;
    top: 2px;
}

.select-all-checkbox {
    width: 15px;
    height: 15px;
}

/* =========================================================
   BULK ACTION BAR
========================================================= */

.bulk-action-bar {
    position: fixed;

    left: 50%;
    bottom: 1rem;

    transform: translateX(-50%) translateY(120px);

    min-width: 560px;
    max-width: calc(100% - 30px);

    /* Dark floating command bar */
    background: #111827;

    border: 1px solid #1f2937;
    border-radius: 12px;

    /* box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.22),
        0 6px 14px rgba(0, 0, 0, 0.12); */
    box-shadow: none;

    padding: 8px 10px;

    display: flex;
    align-items: center;
    gap: 6px;

    z-index: 1050;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

.bulk-action-bar.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-30%) translateY(0);
}

.bulk-selected-count {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 28px;

    padding: 0 9px;

    border-radius: 20px;

    background: #fff;
    color: #000;

    font-size: 12px;
    font-weight: 700;
}

.bulk-action-label {
    font-size: 13px;
    font-weight: 600;
    color: #fff;

    margin-right: 5px;

    white-space: nowrap;
}

.bulk-action-btn {
    height: 34px;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    background: #fff;

    padding: 0 12px;

    font-size: 12px;
    font-weight: 600;

    color: #334155;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    transition: all 0.18s ease;
}

.bulk-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.bulk-action-btn.status:hover {
    color: #4f46e5;
    border-color: #c7d2fe;
    background: #eef2ff;
}

.bulk-action-btn.source:hover {
    color: #0891b2;
    border-color: #a5f3fc;
    background: #ecfeff;
}

.bulk-action-btn.budget:hover {
    color: #059669;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.bulk-action-btn.delete {
    color: #dc2626;
}

.bulk-action-btn.delete:hover {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.bulk-action-divider {
    width: 1px;
    height: 25px;

    background: #e5e7eb;

    margin: 0 3px;
}

/* =========================================================
   BULK MODAL
========================================================= */

.bulk-modal .modal-dialog {
    max-width: 430px;
}

.bulk-modal .modal-content {
    border: 0;
    border-radius: 16px;

    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.bulk-modal .modal-header {
    padding: 16px 18px;

    border-bottom: 1px solid #eef2f7;
}

.bulk-modal .modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.bulk-modal .modal-body {
    padding: 18px;
}

.bulk-modal .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.bulk-modal .form-select,
.bulk-modal .form-control {
    min-height: 40px;

    font-size: 13px;

    border-radius: 8px;
    border-color: #dbe2ea;
}

.bulk-modal .form-select:focus,
.bulk-modal .form-control:focus {
    border-color: #818cf8;

    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.bulk-modal .modal-footer {
    padding: 12px 18px;

    border-top: 1px solid #eef2f7;
}

.bulk-selection-info {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .bulk-action-bar {
        min-width: 0;
        width: calc(100% - 20px);

        overflow-x: auto;

        justify-content: flex-start;

        bottom: 10px;
    }

    .bulk-action-label {
        display: none;
    }

    .bulk-action-divider {
        display: none;
    }
}

/* ================= FIX PAGINATION SVG ================= */

#importTrackerContent .pagination svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

#importTrackerContent .pagination .page-link {
    width: 36px;
    min-width: 36px;
    height: 36px;

    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;
}

#importTrackerContent .pagination .page-item:first-child .page-link,
#importTrackerContent .pagination .page-item:last-child .page-link {
    width: auto;
    min-width: 70px;
    padding: 0 12px !important;
}

/* Laravel pagination may wrap SVG inside spans */
#importTrackerContent .pagination .page-link span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

#importTrackerContent .pagination .page-link span svg {
    width: 14px !important;
    height: 14px !important;
}

/* =========================================
   MORE ACTIONS
========================================= */

.lead-more-wrapper {
    position: relative;
    display: inline-flex;
}

.more-actions-btn {
    cursor: pointer;
}

/* =========================================
   MORE MENU
========================================= */

.lead-more-menu {
    position: fixed; /* absolute -> fixed */
    top: 0;
    left: 0;

    min-width: 145px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);

    display: none;
    z-index: 99999;
    white-space: nowrap;
}

.lead-more-wrapper.show .lead-more-menu {
    display: block;
}

/* =========================================
   MENU ITEM
========================================= */

.more-menu-item {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 11px;

    border: none;
    background: transparent;

    border-radius: 7px;

    color: #333;
    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;
}

.more-menu-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
}

/* Hover */

.more-menu-item:hover {
    background: #f5f5f5;
    color: #222;
}

.more-menu-item.edit-item {
    color: #f1b44c;
}

.more-menu-item.edit-item:hover {
    background: #fff6e5;
    color: #bf7a04;
}

.more-menu-item.whatsapp-item {
    color: #34c38f;
}

.more-menu-item.whatsapp-item:hover {
    background: #e8f5f2;
    color: #238b65;
}

/* Delete */
.more-menu-item.delete-item {
    color: #d51717;
}

.more-menu-item.delete-item:hover {
    background: #fff0f0;
    color: #c00;
}

/* Transfer */

.more-menu-item:hover i.fa-random {
    transform: rotate(180deg);
}

.more-menu-item i {
    transition: transform 0.2s ease;
}

/* =========================================
   LEAD FEEDBACK MODAL
========================================= */

.lead-feedback-dialog {
    max-width: 650px;
}

.lead-feedback-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* =========================================
   HEADER
========================================= */

.feedback-modal-header {
    padding: 22px;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border-bottom: 1px solid #edf0f4;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-header-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.feedback-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #d8e7ff;
    color: #4c6fa5;

    font-size: 16px;
}

.feedback-header-title {
    font-size: 17px;
    font-weight: 400;
    color: #20232a;
    line-height: 1.3;
}

.feedback-header-lead {
    margin-top: 3px;
    font-size: 12px;
    color: #7b8190;
    font-weight: 500;
}

.feedback-close-btn {
    width: 32px;
    height: 32px;

    border: none;
    border-radius: 8px;

    background: #f1f2f5;
    color: #7b8190;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: all 0.2s ease;
}

.feedback-close-btn:hover {
    background: #e7e8ec;
    color: #333;
}

/* =========================================
   BODY
========================================= */

.feedback-modal-body {
    padding: 22px;
}

.feedback-section {
    margin-bottom: 21px;
}

.feedback-section-title {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 700;
    color: #252932;
}

.feedback-section-icon {
    width: 25px;
    height: 25px;

    border-radius: 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #f0f1ff;
    color: #5f6ee6;

    font-size: 11px;
}

.feedback-section-subtitle {
    margin-top: 4px;
    margin-bottom: 12px;

    font-size: 12px;
    color: #8a909c;
}

/* =========================================
   STATUS CARDS
========================================= */

.feedback-status-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.feedback-status-card {
    margin: 0;
    cursor: pointer;
}

.feedback-status-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.feedback-status-card-inner:hover {
    border-color: #cbd0e8;
    background: #fafbff;
}

.feedback-status-icon {
    /* width: 25px;
    height: 25px;
    flex: 0 0 25px; */
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f2f6;
    color: #69707e;
    font-size: 9px;
    padding: 8px;
}

.feedback-status-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.feedback-status-content small {
    font-size: 10.5px;
    color: #9297a2;
}

.feedback-status-check {
    width: 19px;
    height: 19px;

    margin-left: auto;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d9dce3;

    color: transparent;
    font-size: 9px;

    transition: all 0.2s ease;
}

/* =========================================
   CONTACTED - GREEN
========================================= */

.feedback-status-card.status-contacted
    .feedback-status-radio:checked
    + .feedback-status-card-inner {
    border-color: #34c38f;
    background: #e9f9f3;
    box-shadow: none;
}

.feedback-status-card.status-contacted
    .feedback-status-radio:checked
    + .feedback-status-card-inner
    .feedback-status-icon {
    background: #34c38f;
    color: #fff;
}

.feedback-status-card.status-contacted
    .feedback-status-radio:checked
    + .feedback-status-card-inner
    .feedback-status-check {
    background: #34c38f;
    border-color: #34c38f;
    color: #fff;
}

/* =========================================
   NOT CONTACTED - RED
========================================= */

.feedback-status-card.status-not-contacted
    .feedback-status-radio:checked
    + .feedback-status-card-inner {
    border-color: #e55353;
    background: #fff0f0;
    box-shadow: none;
}

.feedback-status-card.status-not-contacted
    .feedback-status-radio:checked
    + .feedback-status-card-inner
    .feedback-status-icon {
    background: #e55353;
    color: #fff;
}

.feedback-status-card.status-not-contacted
    .feedback-status-radio:checked
    + .feedback-status-card-inner
    .feedback-status-check {
    background: #e55353;
    border-color: #e55353;
    color: #fff;
}

/* =========================================
   FEEDBACK STATUS GRID
========================================= */

.feedback-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.feedback-status-card {
    display: block;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.feedback-status-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* CARD */

.feedback-status-card-inner {
    --status-color: #64748b;
    --status-bg: #f1f5f9;
    --status-border: #e2e8f0;

    position: relative;
    padding: 10px;

    display: flex;
    align-items: center;
    gap: 9px;

    border: 1px solid #e6e9ef;
    border-radius: 10px;
    background: #fff;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.feedback-status-card-inner:hover {
    border-color: var(--status-color);
    background: var(--status-bg);
}

/* TEXT */

.feedback-status-content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.feedback-status-content strong {
    color: #292f3b;
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.feedback-status-content small {
    color: #8a919e;
    font-size: 10.5px;
    line-height: 1.35;
}

/* CHECK INDICATOR */

.feedback-status-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dfe3ea;
    border-radius: 50%;

    color: transparent;
    font-size: 9px;

    transition: all 0.2s ease;
}

/* =========================================
   SELECTED STATE
========================================= */

.feedback-status-radio:checked + .feedback-status-card-inner {
    border-color: var(--status-color);
    background: var(--status-bg);
}

.feedback-status-radio:checked
    + .feedback-status-card-inner
    .feedback-status-icon {
    background: var(--status-color);
    color: #fff;
}

.feedback-status-radio:checked
    + .feedback-status-card-inner
    .feedback-status-check {
    background: var(--status-color);
    border-color: var(--status-color);
    color: #fff;
}

.feedback-status-radio:focus-visible + .feedback-status-card-inner {
    outline: 2px solid var(--status-color);
    outline-offset: 2px;
}

/* =========================================
   STATUS COLORS
========================================= */

/* Contacted - Green */
.status-contacted .feedback-status-card-inner {
    --status-color: #15976b;
    --status-bg: #eaf8f2;
}

/* Not Contacted - Red */
.status-not-contacted .feedback-status-card-inner {
    --status-color: #dc4545;
    --status-bg: #fff0f0;
}

/* Any additional status - Purple */
.status-default .feedback-status-card-inner {
    --status-color: #50a5f1;
    --status-bg: #edf7ff;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 480px) {
    .feedback-status-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .feedback-status-card-inner {
        min-height: 58px;
        padding: 8px 10px;
    }
}

/* =========================================
   FIELD LABEL
========================================= */

.feedback-field-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 600;
    color: #383d47;
}

.feedback-field-label i {
    color: #70778a;
    font-size: 9px;
}

.feedback-field-label > span:not(.optional) {
    color: #e53935;
}

.feedback-field-label .optional {
    margin-left: auto;

    color: #9a9fab;
    font-size: 10.5px;
    font-weight: 500;
}

/* =========================================
   SELECT
========================================= */

.feedback-select {
    width: 100%;
    height: 42px;

    padding: 0 12px;

    border: 1px solid #dfe2e8;
    border-radius: 9px;

    background: #fff;
    color: #343842;

    font-size: 11px;

    outline: none;

    transition: all 0.2s ease;
}

.feedback-select:focus {
    border-color: #5f6ee6;
    box-shadow: 0 0 0 3px rgba(95, 110, 230, 0.1);
}

.feedback-select:disabled {
    background: #f6f7f9;
    color: #a0a4ae;
    cursor: not-allowed;
}

/* =========================================
   NOTES
========================================= */

.feedback-textarea {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #dfe2e8;
    border-radius: 9px;

    resize: vertical;

    font-size: 11px;
    color: #343842;

    outline: none;

    transition: all 0.2s ease;
}

.feedback-textarea::placeholder {
    color: #a3a7b0;
}

.feedback-textarea:focus {
    border-color: #5f6ee6;
    box-shadow: 0 0 0 3px rgba(95, 110, 230, 0.1);
}

/* =========================================
   FOLLOW UP BOX
========================================= */

.feedback-followup-box {
    padding: 13px;

    display: flex;
    align-items: center;
    gap: 12px;

    border: 1px solid #e5e7ed;
    border-radius: 11px;

    background: #fafbfc;
}

.feedback-followup-icon {
    width: 35px;
    height: 35px;

    flex: 0 0 35px;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf5ff;
    color: #4c6fa5;

    font-size: 14px;
}

.feedback-followup-content {
    flex: 1;
}

.feedback-followup-title {
    font-size: 10px;
    font-weight: 600;
    color: #343841;
}

.feedback-followup-subtitle {
    margin-top: 2px;
    margin-bottom: 9px;

    font-size: 10.5px;
    line-height: 1.4;

    color: #8d929d;
}

.feedback-datetime {
    width: 100%;
    height: 38px;

    padding: 0 10px;

    border: 1px solid #dfe2e8;
    border-radius: 8px;

    background: #fff;

    color: #343842;
    font-size: 12px;

    outline: none;
}

.feedback-datetime:focus {
    border-color: #4c6fa5;
    box-shadow: 0 0 0 3px rgba(76, 111, 165, 0.1);
}

/* =========================================
   FOOTER
========================================= */

.feedback-modal-footer {
    padding: 14px 22px;

    border-top: 1px solid #edf0f4;

    display: flex;
    align-items: center;
    justify-content: end;

    background: #fff;
}

.feedback-footer-user {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 10.5px;
    color: #9297a1;
}

.feedback-footer-user strong {
    color: #555b67;
}

.feedback-user-icon {
    width: 25px;
    height: 25px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f0f1f4;
    color: #777d89;

    font-size: 10px;
}

.feedback-footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-cancel-btn {
    height: 36px;

    padding: 0 14px;

    border: 1px solid #e0e2e7;
    border-radius: 8px;

    background: #fff;
    color: #666c77;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.feedback-save-btn {
    height: 36px;

    padding: 0 15px;

    border: none;
    border-radius: 8px;

    background: #34c38f;
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: none;

    transition: all 0.2s ease;
}

.feedback-save-btn:hover {
    background: #258d67;
}

.feedback-save-btn i {
    margin-right: 5px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {
    .lead-feedback-dialog {
        margin: 10px;
    }

    .feedback-status-options {
        grid-template-columns: 1fr;
    }

    .feedback-modal-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .feedback-footer-actions {
        width: 100%;
    }

    .feedback-cancel-btn,
    .feedback-save-btn {
        flex: 1;
    }
}

/* =========================================
   FEEDBACK PRIORITY SELECTOR
========================================= */

.feedback-priority-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.feedback-priority-option {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.feedback-priority-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feedback-priority-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;

    border: 1px solid #e3e7ee;
    border-radius: 5px;

    background: #fff;
    color: #606978;

    font-size: 10px;
    font-weight: 500;

    transition: all 0.2s ease;
}

.feedback-priority-chip > i:first-child {
    font-size: 8px;
}

.feedback-priority-chip .priority-check {
    display: none;
    font-size: 10px;
}

/* LOW */
.priority-low {
    --priority-color: #15976b;
    --priority-bg: #eaf8f2;
}

/* MEDIUM */
.priority-medium {
    --priority-color: #c58a19;
    --priority-bg: #fff7e5;
}

/* HIGH */
.priority-high {
    --priority-color: #e07832;
    --priority-bg: #fff1e8;
}

/* URGENT / CRITICAL */
.priority-urgent {
    --priority-color: #dc4545;
    --priority-bg: #fff0f0;
}

/* OTHER CONFIGURED PRIORITIES */
.priority-default {
    --priority-color: #556ee6;
    --priority-bg: #eef1ff;
}

/* Hover */
.feedback-priority-chip:hover {
    border-color: var(--priority-color, #556ee6);
    background: var(--priority-bg, #f5f6ff);
}

/* Selected */
.feedback-priority-radio:checked + .feedback-priority-chip {
    color: #34c38f;
    background: #e8f8f0;
    border-color: #34c38f;
    box-shadow: none;
}

.feedback-priority-radio:checked + .feedback-priority-chip .priority-check {
    display: inline-block;
}

.feedback-priority-radio:focus-visible + .feedback-priority-chip {
    outline: 2px solid var(--priority-color, #556ee6);
    outline-offset: 2px;
}

/* ==========================================
   LEAD ACTIVITY TIMELINE
========================================== */

.lead-activity-list {
    position: relative;
}

/* ==========================================
   DATE HEADER
========================================== */

.lead-activity-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 16px;
}

.lead-activity-date:first-child {
    margin-top: 0;
}

.lead-activity-date-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb);
}

.lead-activity-date-line:last-child {
    background: linear-gradient(to left, transparent, #e5e7eb);
}

.lead-activity-date-text {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #eef0f3;
}

/* ==========================================
   ACTIVITY ITEM
========================================== */

.lead-activity-card {
    box-shadow: none;
    border: 1px solid #e8ebf0;
    border-radius: 10px;
    max-height: 51.3rem;
    overflow-y: auto;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #cfd5dc transparent;
}

/* Chrome / Edge / Safari */
.lead-activity-card::-webkit-scrollbar {
    width: 5px;
}

.lead-activity-card::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}

.lead-activity-card::-webkit-scrollbar-thumb {
    background: #cfd5dc;
    border-radius: 10px;
}

.lead-activity-card::-webkit-scrollbar-thumb:hover {
    background: #aeb6c0;
}

.lead-activity-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
}

/* ==========================================
   TIMELINE LINE
========================================== */

.lead-activity-item:not(:last-child)::before {
    content: "";
    position: absolute;

    left: 14px;
    top: 42px;
    bottom: 10px;

    width: 1px;

    background: linear-gradient(to bottom, #dfe3e8, #f1f3f5);
}

/* ==========================================
   ACTIVITY ICON
========================================== */

.lead-activity-icon {
    width: 29px;
    height: 29px;
    min-width: 29px;

    border-radius: 50%;

    background: #f0f7ff;
    border: 1px solid #d9ebff;

    color: #4c7faf;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;

    z-index: 1;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

/* Alternate activity colors */

.lead-activity-item:nth-child(4n + 1) .lead-activity-icon {
    background: #eef6ff;
    border-color: #d8eaff;
    color: #4c7faf;
}

.lead-activity-item:nth-child(4n + 2) .lead-activity-icon {
    background: #f4f0ff;
    border-color: #e5ddff;
    color: #7657b7;
}

.lead-activity-item:nth-child(4n + 3) .lead-activity-icon {
    background: #eefbf6;
    border-color: #d5f2e5;
    color: #318b68;
}

.lead-activity-item:nth-child(4n + 4) .lead-activity-icon {
    background: #fff7eb;
    border-color: #f9e5c4;
    color: #b77a28;
}

/* ==========================================
   CONTENT
========================================== */

.lead-activity-content {
    flex: 1;
    min-width: 0;

    padding: 10px 11px;

    background: #fafbfc;

    border: 1px solid #f0f1f3;

    border-radius: 7px;

    transition: all 0.2s ease;
}

.lead-activity-content:hover {
    background: #ffffff;
    border-color: #e2e5e9;
}

/* ==========================================
   DONE BY
========================================== */

.lead-activity-user {
    color: #343a40;

    font-size: 11px;

    font-weight: 500;

    font-style: italic;
}

/* ==========================================
   TIME
========================================== */

.lead-activity-time {
    font-size: 9px;

    color: #3e3737;

    background: #f1f3f5;

    padding: 3px 6px;

    border-radius: 4px;
}

/* ==========================================
   STATUS
========================================== */

.lead-activity-status {
    display: inline-block;

    margin-top: 2px;

    padding: 3px 8px;

    border-radius: 4px;

    background: #eef6ff;

    color: #4c7faf;

    font-size: 10px;

    font-weight: 500;
}

/* ==========================================
   SUB STATUS
========================================== */

.lead-activity-substatus {
    display: inline-block;

    padding: 3px 8px;

    border-radius: 4px;

    background: #f4f0ff;

    color: #7657b7;

    font-size: 9px;

    font-weight: 500;
    margin: 2px 0;
}

/* ==========================================
   FOLLOW UP
========================================== */

.lead-activity-content .fa-calendar-alt {
    color: #d18a32;
}

/* ==========================================
   NOTES
========================================== */

.lead-activity-note {
    display: inline-block;

    max-width: 100%;

    margin-bottom: 12px;

    padding: 7px 11px;

    border-radius: 5px;

    background: #fff9ed;

    border: 1px solid #f8ead0;

    color: #777;

    font-size: 10px;

    line-height: 1.5;
}

.lead-activity-note .fa-sticky-note {
    color: #c58a35;
}

/* ==========================================
   DATE BADGE
========================================== */

.lead-activity-date .badge {
    font-size: 8px !important;

    font-weight: 500;

    padding: 3px 6px;

    border-radius: 20px;
}

/* =========================================================
   LEAD DETAILS UI
========================================================= */

.lead-detail-card {
    border: 1px solid #e8ebf0;
    border-radius: 10px;
    box-shadow: none;
}

.lead-details-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4c6fa5;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.lead-status-badge,
.lead-substatus-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
}

.lead-status-badge {
    background: #f1f8ff;
    color: #50a5f1;
}

.lead-substatus-badge {
    background: #f1f3f5;
    color: #6c757d;
}

/* QUICK SUMMARY */

.lead-summary-item {
    padding: 12px 14px;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    background: #fafbfc;
}

.summary-label {
    display: block;
    margin-bottom: 0;
    color: #8a9199;
    font-size: 9px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.summary-value {
    display: block;
    color: #343a40;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

/* SECTION */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-heading h5,
.tab-section-header h5 {
    font-size: 14px;
    font-weight: 500;
    color: #343a40;
}

/* DETAIL ITEM */

.detail-item {
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f1f3;
}

.detail-label {
    display: block;
    margin-bottom: 0;
    color: #8b929a;
    font-size: 9px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.25px;
}

.detail-value {
    display: block;
    color: #343a40;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

/* =========================================================
   TABS
========================================================= */

.lead-detail-tabs-wrapper {
    border-bottom: 1px solid #e9ecef;
}

.lead-detail-tabs {
    padding-bottom: 10px;
    border-bottom: 0;
    gap: 5px;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #d7d7d7 transparent;
}

/* Chrome, Edge, Safari */
.lead-detail-tabs::-webkit-scrollbar {
    height: 5px;
}

.lead-detail-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.lead-detail-tabs::-webkit-scrollbar-thumb {
    background: #a9721f;
    border-radius: 10px;
}

.lead-detail-tabs::-webkit-scrollbar-thumb:hover {
    background: #8b5d18;
}

.lead-detail-tabs .nav-item {
    flex-shrink: 0;
}

.lead-detail-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 5px;
    padding: 5px 8px;
    color: #7b838c;
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
    background: transparent;
}

.lead-detail-tabs .nav-link:hover {
    color: #343a40;
    background: #e7e7e7;
}

.lead-detail-tabs .nav-link.active {
    color: #fff;
    background: #454545;
}

.lead-detail-tabs .nav-link i {
    font-size: 9px;
}

/* TAB CONTENT */

.tab-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.tab-section-header p {
    margin: 0;
    color: #9aa0a6;
    font-size: 10px;
}

/* =========================================================
   ACTIVITY
========================================================= */

.activity-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #edf0f3;
    border-radius: 9px;
    background: #fafbfc;
}

.activity-stat span {
    display: block;
    color: #8b929a;
    font-size: 10px;
    margin-bottom: 3px;
}

.activity-stat strong {
    display: block;
    color: #343a40;
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #7b7b7b;
    flex-shrink: 0;
}

/* =========================================================
   NOTES
========================================================= */

.lead-notes-box {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eceff2;
    border-radius: 9px;
    background: #fafbfc;
    align-items: center;
}

.notes-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notes-content {
    color: #495057;
    font-size: 12px;
    line-height: 1.75;
}

/* EMPTY */

.empty-tab-state {
    text-align: center;
    padding: 45px 20px;
    color: #adb5bd;
}

.empty-tab-state i {
    font-size: 28px;
    margin-bottom: 12px;
}

.empty-tab-state h6 {
    color: #6c757d;
    margin-bottom: 5px;
}

.empty-tab-state p {
    font-size: 12px;
    margin: 0;
}

/* MOBILE */

@media (max-width: 767px) {
    .lead-detail-tabs .nav-link {
        padding: 10px 11px;
        font-size: 11px;
    }

    .lead-detail-card .card-body {
        padding: 15px;
    }

    .lead-detail-tabs-wrapper {
        overflow: hidden;
    }

    .lead-detail-tabs {
        padding-bottom: 0 !important;
    }
}

.lead-tab-placeholder {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #74788d;
}

.lead-tab-placeholder-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-bottom: 12px;
}

.lead-tab-placeholder h6 {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
}

.lead-tab-placeholder p {
    margin: 0;
    font-size: 10px;
    color: #8a8f98;
}

/* WHATSAPP PROJECT MODAL */

.whatsapp-project-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* HEADER */

.whatsapp-project-modal .modal-header {
    padding: 20px 22px;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
}

.whatsapp-project-modal .modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #20242a;
}

.whatsapp-project-modal .modal-title i {
    color: #25d366;
}

.whatsapp-lead-name {
    margin-top: 4px;
    font-size: 12px;
    color: #7b8490;
}

/* BODY */

.whatsapp-project-modal .modal-body {
    padding: 20px 22px;
    background: #fafbfc;
}

.whatsapp-project-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.whatsapp-project-heading strong {
    display: block;
    font-size: 14px;
    color: #252a31;
}

.whatsapp-project-heading small {
    display: block;
    margin-top: 3px;
    color: #89919b;
    font-size: 11px;
}

#selected_project_count {
    padding: 5px 10px;
    border-radius: 20px;
    background: #e9f9f0;
    color: #1c9b55;
    font-size: 11px;
    font-weight: 600;
}

/* PROJECT LIST */

.whatsapp-project-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 390px;
    overflow-y: auto;
    padding: 2px;
}

/* CARD */

.whatsapp-project-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 72px;
    padding: 12px 13px;

    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 11px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.whatsapp-project-card:hover {
    border-color: #25d366;
}

/* HIDDEN CHECKBOX */

.whatsapp-project-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ICON */

.whatsapp-project-icon {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f0f4f7;
    color: #607080;

    font-size: 15px;

    transition: 0.2s ease;
}

/* CONTENT */

.whatsapp-project-info {
    min-width: 0;
    flex: 1;
}

.whatsapp-project-info strong {
    display: block;

    color: #272c33;
    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-project-info small {
    display: block;

    margin-top: 4px;

    color: #8b949e;
    font-size: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-project-info small i {
    margin-right: 3px;
}

/* ARROW */

.whatsapp-project-arrow {
    color: #b7bec6;
    font-size: 10px;
}

/* CHECK */

.whatsapp-project-check {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 19px;
    height: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dfe3e7;
    border-radius: 50%;

    background: #fff;
    color: transparent;

    font-size: 9px;

    transition: 0.2s ease;
}

/* SELECTED */

.whatsapp-project-checkbox:checked ~ .whatsapp-project-check {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.whatsapp-project-checkbox:checked ~ .whatsapp-project-icon {
    background: #e8f9ef;
    color: #20b957;
}

.whatsapp-project-checkbox:checked ~ .whatsapp-project-arrow {
    color: #25b85b;
}

.whatsapp-project-card:has(.whatsapp-project-checkbox:checked) {
    border-color: #25d366;
    background: #f7fffa;
}

/* FOOTER */

.whatsapp-project-modal .modal-footer {
    padding: 14px 22px;
    border-top: 1px solid #edf0f3;
    background: #fff;
}

/* SEND BUTTON */

.whatsapp-send-btn {
    background: #25d366;
    border-color: #25d366;
    color: #fff;

    padding: 9px 17px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;
}

.whatsapp-send-btn:hover {
    background: #1fbd59;
    border-color: #1fbd59;
    color: #fff;
}

.whatsapp-send-btn:disabled {
    background: #b8dfc6;
    border-color: #b8dfc6;
    color: #fff;
}

/* LOADING */

.whatsapp-project-loading,
.whatsapp-project-empty {
    grid-column: 1 / -1;

    min-height: 160px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 8px;

    color: #8a939d;
    font-size: 13px;
}

.whatsapp-project-loading i {
    color: #25d366;
    font-size: 20px;
}

.whatsapp-project-empty i {
    font-size: 25px;
    color: #c7cdd3;
}

.whatsapp-project-empty small {
    font-size: 11px;
    color: #9aa2aa;
}

/* MOBILE */

@media (max-width: 767px) {
    .whatsapp-project-list {
        grid-template-columns: 1fr;
    }
}

/* Dashboard */
.dashboard .card.mini-stats-wid.total-leads {
    min-height: 135px;
    height: calc(100% - 12px);
    border: 1px solid #d9e4ff;
    background: linear-gradient(125deg, #f7f9ff 0%, #edf2ff 55%, #e5eaff 100%);
    overflow: hidden;
}

/* Decorative wave layers */
.dashboard .card.mini-stats-wid.total-leads::before,
.dashboard .card.mini-stats-wid.total-leads::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 48%;
}

.dashboard .card.mini-stats-wid.total-leads::before {
    width: 190px;
    height: 145px;
    right: -48px;
    bottom: -100px;
    background: linear-gradient(135deg, #6d8dff, #7b61e8);
    opacity: 0.2;
    transform: rotate(-18deg);
}

.dashboard .card.mini-stats-wid.total-leads::after {
    width: 175px;
    height: 130px;
    right: -24px;
    bottom: -100px;
    background: linear-gradient(135deg, #537df5, #a18bff);
    opacity: 0.22;
    transform: rotate(22deg);
    transition: transform 0.4s ease;
}

.dashboard .card.mini-stats-wid.total-leads:hover::after {
    transform: rotate(35deg) translateY(-5px);
}

/* TOTAL DATA */
.dashboard .card.mini-stats-wid.total-data {
    min-height: 135px;
    height: calc(100% - 12px);
    border: 1px solid #cdeee5;
    background: linear-gradient(125deg, #f5fffc 0%, #e8faf4 55%, #ddf6ed 100%);
    overflow: hidden;
}

.dashboard .card.mini-stats-wid.total-data::before,
.dashboard .card.mini-stats-wid.total-data::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 48%;
}

.dashboard .card.mini-stats-wid.total-data::before {
    width: 190px;
    height: 145px;
    right: -48px;
    bottom: -100px;
    background: linear-gradient(135deg, #22b99a, #0e9385);
    opacity: 0.19;
    transform: rotate(-18deg);
}

.dashboard .card.mini-stats-wid.total-data::after {
    width: 175px;
    height: 130px;
    right: -24px;
    bottom: -100px;
    background: linear-gradient(135deg, #37cfa7, #66d6b5);
    opacity: 0.24;
    transform: rotate(22deg);
    transition: transform 0.4s ease;
}

.dashboard .card.mini-stats-wid.total-data:hover::after {
    transform: rotate(35deg) translateY(-5px);
}

.dashboard .card.mini-stats-wid p {
    margin-bottom: 00px;
    font-size: 11px;
    font-weight: 400 !important;
}

.dashboard .card.mini-stats-wid h4 {
    font-size: 17px;
}

.dashboard .card.mini-stats-wid .card-body {
    padding: 15px 20px;
}

.dashboard .card.mini-stats-wid .card-body .avatar-sm {
    height: 40px;
    width: 40px;
}

.dashboard .card.mini-stats-wid {
    margin-bottom: 10px;
}

/* Fresh Leads — Blue */
.dashboard .card.mini-stats-wid:nth-child(1) {
    --stat-color: #3978f6;
    --stat-soft: #edf4ff;
    --stat-border: #dce8ff;
}

/* Unassigned — Orange */
.dashboard .card.mini-stats-wid:nth-child(2) {
    --stat-color: #e79528;
    --stat-soft: #fff5e7;
    --stat-border: #ffead0;
}

/* ==========================================
   COMPACT PREMIUM PROFILE CARD
========================================== */

.profile-modern-card {
    position: relative;
    width: 100%;
    height: 456px;
    min-height: 456px;
    max-height: 456px;
    border: 5px solid #fff;
    border-radius: 28px;
    overflow: hidden;
    background: #f1f0eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* PROFILE IMAGE */

.profile-modern-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.profile-modern-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.4s ease;
}

.profile-modern-card:hover .profile-modern-image img {
    transform: scale(1.03);
}

/* GRADIENT */

.profile-modern-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(255, 255, 255, 0.15) 68%,
        rgba(255, 255, 255, 0.85) 82%,
        #fff 94%
    );
    z-index: 1;
}

/* CONTENT */

.profile-modern-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 12px 14px 11px;
}

/* NAME */

.profile-modern-content h3 {
    font-size: 19px;
    font-weight: 750;
    color: #252525;
    margin: 0 0 3px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* ROLE */

.profile-modern-role {
    font-size: 11px;
    font-weight: 500;
    color: #555;
    margin: 0 0 9px;
    line-height: 1.35;
}

.profile-modern-role i {
    color: #777;
    margin-right: 3px;
}

/* FOOTER */

.profile-modern-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-modern-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.profile-modern-info > i {
    width: 25px;
    height: 25px;
    min-width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f1f2;
    color: #555;
    font-size: 11px;
}

.profile-modern-info span {
    display: block;
    font-size: 9px;
    color: #858585;
    margin-bottom: 1px;
}

.profile-modern-info h6 {
    font-size: 10px;
    font-weight: 700;
    color: #292929;
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

/* RESPONSIVE */

@media (max-width: 767px) {
    .profile-modern-card {
        height: 270px;
        min-height: 270px;
        max-height: 270px;
        border-radius: 24px;
    }

    .profile-modern-content {
        padding: 10px 12px;
    }

    .profile-modern-content h3 {
        font-size: 17px;
    }

    .profile-modern-role {
        font-size: 10px;
    }

    .profile-modern-footer {
        gap: 7px;
    }

    .profile-modern-info {
        gap: 4px;
    }

    .profile-modern-info h6 {
        font-size: 9px;
    }
}

/* LEAD SOURCE CHART */

.dashboard-source-card {
    max-height: 456px;
    border: 1px solid #edf0f5;
    border-radius: 4px;
    box-shadow: none;
    overflow: hidden;
}

.dashboard-source-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    overflow: hidden;
}

.source-chart-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f8ff;
    color: #60adf2;
    font-size: 17px;
}

.source-chart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.source-chart-summary h3 {
    font-size: 27px;
    letter-spacing: -0.5px;
}

.source-chart-period {
    padding: 6px 9px;
    border-radius: 7px;
    background: #f5f6fa;
    color: #667085;
    font-size: 11px;
    white-space: nowrap;
}

.lead-source-chart {
    flex: 0 0 230px;
    width: 100%;
    height: 230px;
    min-height: 230px;
}

/* LEAD SOURCE LEGEND - CUSTOM SCROLLBAR */
.lead-source-legend {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-top: 5px;
    scrollbar-width: thin;
    scrollbar-color: #cbd3e1 transparent;
}

/* Chrome, Edge, Safari */
.lead-source-legend::-webkit-scrollbar {
    width: 5px;
}

.lead-source-legend::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
    margin: 5px 0;
}

.lead-source-legend::-webkit-scrollbar-thumb {
    background: #d0d7e3;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.lead-source-legend::-webkit-scrollbar-thumb:hover {
    background: #7b8bd4;
}

.lead-source-legend::-webkit-scrollbar-thumb:active {
    background: #5569d4;
}

.source-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    border-bottom: 1px solid #f0f2f6;
}

.source-legend-item:last-child {
    border-bottom: 0;
}

.source-legend-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #475467;
    font-size: 12px;
}

.source-legend-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 3px;
}

.source-legend-name span:last-child {
    overflow-wrap: anywhere;
}

.source-legend-value {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 12px;
}

.source-legend-value strong {
    color: #344054;
}

.source-legend-value small {
    color: #98a2b3;
    min-width: 35px;
    text-align: right;
}

@media (max-width: 767.98px) {
    .dashboard-source-card {
        height: 490px;
    }
}

/* Chart wrapper */
.lead-source-chart-wrap {
    position: relative;
    width: 100%;
    height: 155px;
}

.lead-source-chart {
    width: 100%;
    height: 180px;
}

.lead-source-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

.lead-source-center span {
    font-size: 10px;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.lead-source-center strong {
    display: block;
    color: #344054;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.6px;
    white-space: nowrap;
}

/* .lead-source-center span {
    display: block;
    margin-top: 5px;
    color: #74788d;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
} */

/* ==========================================
   REVENUE - COMING SOON
========================================== */

.revenue-coming-soon {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.revenue-coming-soon-gif {
    width: 100%;
    max-width: 260px;
    height: 180px;
    object-fit: contain;
    display: block;
}

.revenue-coming-soon h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-heading-color, #343a40);
}

.revenue-coming-soon p {
    max-width: 440px;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 576px) {
    .revenue-coming-soon {
        min-height: 260px;
    }

    .revenue-coming-soon-gif {
        max-width: 220px;
        height: 150px;
    }
}

/* ==========================================
   USER CREATE FULL-SCREEN LOADER
========================================== */

.user-create-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 30, 50, 0.55);
    backdrop-filter: blur(4px);
}

.user-create-loader.active {
    display: flex;
}

.user-loader-card {
    width: 100%;
    margin: 10% auto;
    max-width: 390px;
    padding: 35px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    animation: userLoaderAppear 0.25s ease-out;
}

.user-loader-spinner {
    width: 35px;
    height: 35px;
    margin: 0 auto;
    border: 5px dotted #e8ecff;
    border-top-color: #34c38f;
    border-right-color: #34c38f;
    border-left-color: #34c38f;
    border-radius: 50%;
    animation: userLoaderSpin 0.8s linear infinite;
}

.user-loader-card h5 {
    color: #343a40;
    font-weight: 600;
}

.user-loader-card p {
    font-size: 13px;
    line-height: 1.7;
}

.user-loader-progress {
    height: 5px;
    margin: 22px 0 15px;
    overflow: hidden;
    background: #edf0ff;
    border-radius: 10px;
}

.user-loader-progress span {
    display: block;
    width: 40%;
    height: 100%;
    background: #34c38f;
    border-radius: inherit;
    animation: userLoaderProgress 1.5s ease-in-out infinite;
}

.user-loader-card small {
    font-size: 11px;
}

@keyframes userLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes userLoaderProgress {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(270%);
    }
}

@keyframes userLoaderAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-form-card {
    padding: 25px;
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 16px;
    box-shadow: none;
}

.user-section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 21px;
    margin-bottom: 23px;
    border-bottom: 1px solid #edf0f5;
}

.user-section-heading h5 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 4px;
    color: #26334d;
}

.user-section-heading p {
    margin: 0;
    color: #8a94a6;
    font-size: 12px;
}

.user-section-icon,
.selection-leading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
}

.user-section-icon {
    width: 43px;
    height: 43px;
    font-size: 15px;
    border-radius: 50%;
}

.basic-icon {
    color: #50a5f1;
    background: #f1f8ff;
}
.org-icon {
    color: #34c38f;
    background: #e8f8f0;
}

.user-form-card .form-label {
    color: #39465e;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 0;
}

.user-form-card .form-control {
    border-color: #e1e6ef;
    border-radius: 5px;
    font-size: 12px;
    box-shadow: none;
}

.user-form-card textarea.form-control {
    min-height: auto;
}

.user-form-card .form-control:focus {
    border-color: #7789f2;
    box-shadow: 0 0 0 3px rgba(86, 108, 232, 0.1);
}

.custom-select-wrap {
    position: relative;
}

.custom-select-trigger {
    /* min-height: 66px; */
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid #e1e6ef;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.custom-select-trigger:hover,
.custom-select-wrap.open .custom-select-trigger {
    border-color: #7488ed;
    box-shadow: 0 0 0 3px rgba(86, 108, 232, 0.08);
}

.selection-leading {
    width: 25px;
    height: 25px;
    font-size: 9px;
    border-radius: 50%;
}

.role-leading {
    background: #e7e7e7;
    color: #000;
}
.manager-leading {
    background: #e9f5ff;
    color: #2980bf;
}
.general-leading {
    background: #fff4df;
    color: #b77a14;
}

.selection-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.selection-placeholder {
    color: #344054;
    font-size: 11px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.selection-main small {
    font-size: 11px;
    color: #929bad;
}

.select-chevron {
    color: #8a94a6;
    font-size: 20px;
    transition: transform 0.2s;
}

.custom-select-wrap.open .select-chevron {
    transform: rotate(180deg);
}

.custom-select-panel {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #e3e8f1;
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
}

.custom-select-wrap.open .custom-select-panel {
    display: block;
}

.selection-search {
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #edf0f5;
    color: #8c96a8;
}

.selection-search i {
    font-size: 12px;
}

.selection-search input {
    width: 100%;
    border: 0;
    outline: 0;
    font-size: 11px;
    color: #344054;
    background: transparent;
}

.selection-options {
    max-height: 245px;
    overflow-y: auto;
    padding: 5px;
    scrollbar-width: thin;
}

.selection-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    text-align: left;
    transition: background 0.15s;
}

.selection-option:hover {
    background: #f6f8ff;
}

.selection-option.selected {
    background: #eff2ff;
}

.option-avatar {
    width: 37px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
}

.role-avatar {
    background: #f1f8ff;
    color: #50a5f1;
    font-size: 13px;
}
.manager-avatar {
    background: #e9f5ff;
    color: #2980bf;
    margin-right: 0;
}
.general-avatar {
    background: #fff4df;
    color: #b77a14;
}

.option-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.option-copy strong {
    color: #344054;
    font-size: 12px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.option-copy small {
    color: #8993a5;
    font-size: 10px;
}

.option-check {
    display: none;
    color: #526ce5;
    font-size: 19px;
}

.selection-option.selected .option-check {
    display: block;
}

.option-reporting {
    padding-top: 2px;
}

.native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip-path: inset(50%) !important;
}

.native-select.is-invalid ~ .invalid-feedback {
    display: block;
}

.hierarchy-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding: 12px;
    border-radius: 10px;
    background: #fff6e9;
    color: #65718c;
    font-size: 11px;
    line-height: 1.6;
}

.hierarchy-note i {
    font-size: 17px;
    color: #f5a520;
    flex-shrink: 0;
}

.user-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 0 25px;
}

.user-form-actions .btn {
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
}

.user-create-loader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(19, 29, 52, 0.48);
    backdrop-filter: blur(4px);
}

.user-create-loader.active {
    display: flex;
}

.user-loader-card {
    width: 100%;
    max-width: 400px;
    padding: 35px 28px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.17);
}

.user-loader-card h5 {
    font-weight: 700;
    color: #344054;
}

.user-loader-card p {
    font-size: 12px;
    line-height: 1.7;
}

.user-loader-card small {
    font-size: 11px;
}

.user-loader-progress {
    height: 4px;
    overflow: hidden;
    margin: 23px 0 14px;
    background: #edf0f7;
    border-radius: 10px;
}

@keyframes userSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes userProgress {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(320%);
    }
}

@media (max-width: 575px) {
    .user-form-card {
        padding: 18px;
    }
    .user-form-actions {
        flex-wrap: wrap;
    }
    .user-form-actions .btn {
        flex: 1;
    }
}

.selection-no-results {
    padding: 25px 12px;
    text-align: center;
    color: #8a94a6;
}

.selection-no-results i {
    display: block;
    font-size: 25px;
    margin-bottom: 9px;
    color: #a6afbf;
}

.selection-no-results strong {
    display: block;
    color: #475467;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.selection-no-results small {
    display: block;
    font-size: 11px;
}

.selection-no-results[hidden] {
    display: none !important;
}

/* PROFILE */

.profile-card {
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 15px;
    box-shadow: 0 5px 22px rgba(29, 43, 76, 0.035);
    overflow: hidden;
}

.profile-cover {
    height: 112px;
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        #50a5f1,
        #667eea,
        #38b2ac,
        #3984e8,
        #50a5f1
    );

    background-size: 400% 400%;
    animation: profileBgColor 18s ease infinite;
}

/* Smooth background color animation */
@keyframes profileBgColor {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .profile-cover {
        animation: none;
    }
}

.profile-identity-content {
    text-align: center;
    padding: 0 10px 20px;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    margin: -44px auto 15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e4e4e4;
    border-radius: 50%;
    background: #ddd;
    color: #000;
    font-size: 31px;
    font-weight: 400;
    box-shadow: none;
}

.profile-user-name {
    color: #27334a;
    font-weight: 400;
    font-size: 20px;
    overflow-wrap: anywhere;
}

.profile-user-designation {
    color: #8993a6;
    font-size: 12px;
    margin-bottom: 15px;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.profile-role-badge,
.profile-status-badge,
.read-only-badge {
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 500;
}

.profile-role-badge {
    background: #eff1ff;
    color: #586de1;
}

.profile-status-badge {
    background: #eaf8f0;
    color: #168454;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    background: #20a568;
    border-radius: 50%;
    vertical-align: middle;
}

.profile-quick-details {
    padding: 19px 0;
    margin-top: 14px;
    border-top: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
}

.profile-quick-details > div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.quick-detail-icon {
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: #f1f8ff;
    color: #50a5f1;
    font-size: 12px;
}

.quick-detail-text {
    min-width: 0;
    color: #475467;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.profile-primary-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 19px;
}

.profile-primary-actions .btn {
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    width: 100%;
}

.profile-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 21px 23px;
    border-bottom: 1px solid #edf0f5;
}

.profile-card-heading h5 {
    margin: 0 0 4px;
    color: #29364e;
    font-size: 14px;
    font-weight: 400;
}

.profile-card-heading p {
    margin: 0;
    color: #939caf;
    font-size: 11px;
}

.profile-heading-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.personal-icon {
    background: #f1f8ff;
    color: #50a5f1;
}
.organization-icon {
    background: #e6f8f3;
    color: #0c9b85;
}
.security-icon {
    background: #fff4df;
    color: #b77a14;
}

.profile-heading-action {
    color: #566ce5;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    padding-top: 10px;
}

.profile-info-item {
    min-width: 0;
    padding: 16px 10px 10px 0;
}

.profile-info-item > span:first-child {
    display: block;
    color: #929bad;
    font-size: 10px;
}

.profile-info-item strong {
    display: block;
    color: #39465e;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.profile-info-item small {
    display: block;
    color: #929bad;
    font-size: 10px;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.profile-info-full {
    grid-column: 1 / -1;
    border-top: 1px solid #f0f2f6;
}

.read-only-badge {
    background: #f3f5f9;
    color: #778197;
    white-space: nowrap;
}

.status-active {
    color: #168454 !important;
}
.status-inactive {
    color: #c24141 !important;
}

.security-summary {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 19px 22px;
}

.security-summary-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #b77a14;
    background: #fff4df;
}

.security-summary strong,
.security-summary small {
    display: block;
}

.security-summary strong {
    font-size: 12px;
    color: #39465e;
    margin-bottom: 4px;
}

.security-summary small {
    color: #929bad;
    font-size: 10px;
}

.security-change-link {
    font-size: 11px;
    color: #566ce5;
    font-weight: 650;
    text-decoration: none;
}

@media (max-width: 575px) {
    .profile-card-heading {
        padding: 17px;
    }
    .profile-info-grid {
        padding: 7px 17px 16px;
    }
    .profile-info-item {
        padding-right: 8px;
    }
    .profile-heading-action {
        font-size: 10px;
    }
    .read-only-badge {
        font-size: 9px;
    }
}

.profile-readonly-box {
    display: flex;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e8ecf5;
    border-radius: 10px;
    background: #f7f8fc;
    color: #748097;
}

.profile-readonly-box > i {
    color: #6979d9;
    margin-top: 3px;
}

.profile-readonly-box strong,
.profile-readonly-box small {
    display: block;
}

.profile-readonly-box strong {
    color: #39465e;
    font-size: 12px;
    margin-bottom: 5px;
}

.profile-readonly-box small {
    font-size: 11px;
    line-height: 1.7;
}

#profile-edit-form .form-control {
    border-color: #e1e6ef;
    border-radius: 9px;
    font-size: 13px;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap .form-control {
    min-height: 44px;
    padding-right: 45px;
    border: 1px solid #e1e6ef;
    border-radius: 9px;
    font-size: 13px;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    background: transparent;
    color: #8993a6;
    cursor: pointer;
}

.password-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border-radius: 9px;
    background: #f5f7ff;
    color: #687590;
    font-size: 11px;
    line-height: 1.7;
}

.password-security-note i {
    margin-top: 3px;
    color: #f6a316;
    margin-right: 0 !important;
}

/* =====================================
   CHANGE PASSWORD MODAL
===================================== */

.password-modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(16, 24, 40, 0.16);
}

.password-modal-header {
    padding: 22px 24px;
    border-bottom: 1px solid #eef0f4;
}

.password-modal-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f8ff;
    color: #50a5f1;
    font-size: 15px;
    flex-shrink: 0;
}

.password-input-group {
    position: relative;
}

.password-input-group .form-control {
    padding-right: 46px;
    border-radius: 5px;
    border-color: #dfe3eb;
}

.password-input-group .form-control:focus {
    border-color: #556ee6;
    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.1);
}

#changePasswordModal .password-toggle {
    position: absolute;
    top: -4px;
    right: 0;
    height: 44px;
    width: 44px;
    border: 0;
    background: transparent;
    color: #747d8c;
    cursor: pointer;
}

.password-toggle:hover {
    color: #556ee6;
}

.password-security-note {
    background: #fff6e9;
    color: #f59e0b;
    border: 1px solid #f59e0b;
    border-radius: 5px;
    padding: 7px 15px;
    font-size: 12px;
    line-height: 1.6;
}

.password-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eef0f4;
}

.security-change-link {
    background: transparent;
    border: 0;
    color: #556ee6;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.security-change-link:hover {
    color: #4055c5;
}

@media (max-width: 575px) {
    .password-modal-header {
        padding: 18px;
    }

    .password-modal-content .modal-body {
        padding: 20px !important;
    }

    .password-modal-footer {
        padding: 14px 20px;
    }
}
