@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

html:not(.tabler-icons-ready) .ti {
    visibility: hidden;
}

html:not(.tabler-icons-ready) .ti::before {
    content: "";
}

.toggle-theme i {
    display: inline-block;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

[data-layout=horizontal-single] #horizontal-menu {
    position: relative;
    top: -12px;
    width: auto !important;
    box-shadow: none;
    display: block !important;
}

[data-layout=horizontal-single] #horizontal-single {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 1000;
    display: block !important;
}

[data-layout=horizontal-single] .header {
    top: 46px;
}

[data-layout=horizontal-single] .sidebar-horizontal.sidebar {
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 998;
}

[data-layout=horizontal] #horizontal-menu {
    display: block !important;
}

[data-layout=horizontal] .sidebar-horizontal.sidebar {
    top: 50px;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 998;
}

[data-layout=horizontal-single] #horizontal-menu {
    display: block !important;
}

.menu-horizontal #horizontal-menu {
    display: block !important;
}

.menu-horizontal #horizontal-single {
    display: block !important;
}

.menu-horizontal .sidebar-horizontal.sidebar {
    top: 50px;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 998;
}

[data-layout=horizontal-single] .menu-horizontal .page-wrapper {
    padding-top: 96px;
}

.header .dropdown-menu {
    z-index: 1200;
}

[data-layout=horizontal] .sidebar-horizontal.sidebar {
    overflow: visible;
}

[data-layout=horizontal] .sidebar-horizontal.sidebar .sidebar-menu {
    overflow-y: visible;
    position: relative;
    padding-bottom: 14px;
}


[data-layout=horizontal] .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li {
    position: relative;
}

[data-layout=horizontal] .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul {
    top: 100%;
    left: 0;
    margin-top: 6px;
}


[data-layout=horizontal] .sidebar-horizontal.sidebar .sidebar-menu ul ul {
    z-index: 1005;
    max-height: none;
    overflow: visible;
    width: max-content;
    min-width: 180px;
}

[data-layout=horizontal] .sidebar-horizontal.sidebar .sidebar-menu ul ul li {
    white-space: normal;
    display: block;
}

[data-layout=horizontal] .header .main-header,
[data-layout=horizontal-single] .header .main-header,
[data-layout=horizontal-overlay] .header .main-header,
[data-layout=horizontal-box] .header .main-header,
[data-layout=horizontal-sidemenu] .header .main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-layout=horizontal] .header .header-user,
[data-layout=horizontal-single] .header .header-user,
[data-layout=horizontal-overlay] .header .header-user,
[data-layout=horizontal-box] .header .header-user,
[data-layout=horizontal-sidemenu] .header .header-user {
    display: flex;
    align-items: center;
    visibility: visible;
    opacity: 1;
}

[data-layout=horizontal] .header .header-user .user-menu,
[data-layout=horizontal-single] .header .header-user .user-menu,
[data-layout=horizontal-overlay] .header .header-user .user-menu,
[data-layout=horizontal-box] .header .header-user .user-menu,
[data-layout=horizontal-sidemenu] .header .header-user .user-menu {
    display: flex;
    align-items: center;
    visibility: visible;
    opacity: 1;
}

[data-layout=horizontal] .header .header-left,
[data-layout=horizontal-single] .header .header-left,
[data-layout=horizontal-overlay] .header .header-left,
[data-layout=horizontal-box] .header .header-left,
[data-layout=horizontal-sidemenu] .header .header-left {
    display: flex;
    align-items: center;
    visibility: visible;
    opacity: 1;
}

.modal-header.bg-gradient-primary {
    background: linear-gradient(135deg, #7a70ba, #a379e3);
    color: #fff;
    transition: all 0.4s ease;
}


.btn-gradient-primary {
    background: linear-gradient(135deg, #7a70ba, #a379e3);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(122, 112, 186, 0.45);
}


.btn-animate:hover {
    transform: translateY(-2px) scale(1.05);
    transition: all 0.3s ease-in-out;
}


.form-control.border-primary {
    border-width: 2px;
    border-radius: 0.55rem;
    transition: all 0.3s ease-in-out;
}

.form-control.border-primary:focus {
    border-color: #7a70ba;
    box-shadow: 0 0 12px rgba(122, 112, 186, 0.55);
}

.input-animate:focus {
    transform: scale(1.02);
}


input.form-control.input-animate {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;

    border-radius: 12px;
    border: 2px solid transparent; /* transparent base border */
    outline: none;

    /* Gradient border using background-clip trick */
    background: linear-gradient(#fff, #fff) padding-box, 
                linear-gradient(135deg, #6a11cb, #2575fc) border-box;
    -webkit-background-clip: padding-box, border-box;
    background-clip: padding-box, border-box;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Focus effect */
input.form-control.input-animate:focus {
    box-shadow: 0 0 15px rgba(37, 117, 252, 0.4);
}

/* Placeholder */
input.form-control.input-animate::placeholder {
    color: #999;
    font-style: italic;
}



.modal-content.shadow-lg {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.25);
}

.modal-content.rounded-4 {
    border-radius: 1rem;
}


.form-select {
    height: 48px;
    padding: 10px 42px 10px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0.6rem;
    border: 2px solid #7a70ba;
    background-color: #fff;

    /* Custom arrow */
    background-image:
        linear-gradient(45deg, transparent 50%, #7a70ba 50%),
        linear-gradient(135deg, #7a70ba 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 20px,
        calc(100% - 16px) 20px;
    background-size: 6px 6px;
    background-repeat: no-repeat;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: all 0.35s ease;
}

/* Hover */
.form-select:hover {
    border-color: #a379e3;
    box-shadow: 0 0 14px rgba(163, 121, 227, 0.35);
}

/* Focus */
.form-select:focus {
    border-color: #7a70ba;
    box-shadow: 0 0 18px rgba(122, 112, 186, 0.6);
    transform: scale(1.02);
    outline: none;
}

/* Disabled */
.form-select:disabled {
    background-color: #f3f3f8;
    cursor: not-allowed;
    opacity: 0.75;
}

.form-select.gradient {
    background:
        linear-gradient(135deg, rgba(122,112,186,0.08), rgba(163,121,227,0.15)),
        #fff;
}


.form-group.floating-label {
    position: relative;
}

.form-group.floating-label label {
    position: absolute;
    top: 50%;
    left: 14px;
    font-size: 0.8rem;
    color: #888;
    transform: translateY(-50%);
    pointer-events: none;
    background: #fff;
    padding: 0 6px;
    transition: all 0.25s ease;
}

.form-group.floating-label .form-select:focus + label,
.form-group.floating-label .form-select:not([value=""]) + label {
    top: -8px;
    font-size: 0.7rem;
    color: #7a70ba;
}


.form-select option {
    font-weight: 500;
    padding: 10px;
}


@keyframes selectPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(122,112,186,0.6);
    }
    100% {
        box-shadow: 0 0 0 14px rgba(122,112,186,0);
    }
}

.form-select:focus {
    animation: selectPulse 0.6s ease-out;
}

#myModalLabel{
    color: #fff;
}

/* ==================================================
   DATATABLE BUTTONS – CLEAN PROFESSIONAL STYLE
================================================== */



/* ===== Customize Columns ===== */
.buttons-colvis {
    background: #eef2ff !important;
    color: #3730a3 !important;
    border-color: #c7d2fe !important;
}

.buttons-colvis:hover {
    background: #e0e7ff !important;
}

/* Arrow */
.dt-button-down-arrow {
    font-size: 11px;
    opacity: 0.7;
}

/* ===== Excel ===== */
.buttons-excel {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
}

.buttons-excel:hover {
    background: #d1fae5 !important;
}

/* ===== CSV ===== */
.buttons-csv {
    background: #fff7ed !important;
    color: #9a3412 !important;
    border-color: #fed7aa !important;
}

.buttons-csv:hover {
    background: #ffedd5 !important;
}

/* ===== Dropdown ===== */
.dt-button-collection {
    margin-top: 8px;
    padding: 10px;
    min-width: 240px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 9999 !important;
}

/* Column items */
.dt-button-collection .dt-button {
    width: 100%;
    padding: 10px 14px 10px 38px !important;
    margin-bottom: 6px;
    /*border-radius: 8px !important;*/
    background: #f9fafb !important;
    color: #374151 !important;
    border: 1px solid transparent !important;
}

/* Sidebar native scroll fallback for React render timing */
.sidebar .sidebar-inner.slimscroll {
    position: absolute;
    top: 50px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 16px 16px;
}

.sidebar .sidebar-inner.slimscroll .sidebar-menu {
    margin-top: 8px !important;
    padding: 0 0 16px;
}

/* In modern layout the logo row is hidden, so no extra top gap is needed */
[data-layout="modern"] .sidebar .sidebar-inner.slimscroll {
    top: 0;
}

[data-layout="modern"] .sidebar .sidebar-inner.slimscroll .sidebar-menu {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .sidebar .sidebar-inner.slimscroll {
        top: 0;
    }
}

/* Hover column */
.dt-button-collection .dt-button:hover {
    background: #eef2ff !important;
    color: #1e3a8a !important;
}

/* Active column */
.buttons-columnVisibility.dt-button-active {
    background: #e0e7ff !important;
    color: #1e3a8a !important;
    font-weight: 700;
}



/* Overlay */
.dt-button-background {
    background: rgba(0, 0, 0, 0.15) !important;
    display: block !important;
}

/* ===============================
   SEARCH CONTAINER
================================ */

.dataTables_filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

/* Hide default "Search:" text */
.dataTables_filter label {
    font-size: 0;
}

/* ===============================
   SEARCH INPUT
================================ */

.dataTables_filter input {
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 36px 8px 14px !important;
    border-radius: 10px !important;
    border: 1px solid #c7d2fe !important;
    background: #ffffff !important;
    color: #1e293b !important;
    width: 220px !important;
    transition: all 0.25s ease !important;
    outline: none !important;
}

/* Placeholder */
.dataTables_filter input::placeholder {
    color: #94a3b8;
}

/* Hover */
.dataTables_filter input:hover {
    border-color: #818cf8;
}

/* Focus */
.dataTables_filter input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* ===============================
   SEARCH ICON (PURE CSS)
================================ */

.dataTables_filter {
    position: relative;
}

.dataTables_filter::after {
    content: "🔍";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6366f1;
    pointer-events: none;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 768px) {

    .dataTables_filter {
        justify-content: center;
        margin-top: 10px;
    }

    .dataTables_filter input {
        width: 100%;
        max-width: 320px !important;
    }
}



/* ===============================
   HEADER COLORS
================================ */

#leadexport thead th {
    background: linear-gradient(180deg, #4f46e5, #4338ca);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,0.15);
}

/* ===============================
   ROW COLORS
================================ */

#leadexport tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

#leadexport tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

#leadexport tbody tr:hover {
    background: #eef2ff !important;
    transition: 0.2s ease-in-out;
}

#leadexport tbody td {
    font-size: 13px;
    color: #1e293b;
    vertical-align: middle;
}

/* ===============================
   STATUS BADGES
================================ */

.status-text {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* New Lead */
.status-text:contains("New Lead"),
.status-new {
    background: #dcfce7;
    color: #166534;
}


/* ===============================
   PHONE ICON
================================ */

.clicktocall i {
    background: #22c55e;
    color: #ffffff;
    padding: 6px;
    border-radius: 50%;
    font-size: 12px;
}

.clicktocall:hover i {
    background: #16a34a;
}

/* ===============================
   EDIT ICON
================================ */

.btn-edit i {
    color: #6366f1;
    font-size: 14px;
}

.btn-edit:hover i {
    color: #4338ca;
}

/* ===============================
   DATATABLE BUTTONS
================================ */

.dt-buttons .dt-button {
    /*border-radius: 8px !important;*/
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 600;
    border: none !important;
    margin-right: 6px;
}

/* Column button */
.dt-buttons .buttons-colvis {
    background: #e0e7ff !important;
    color: #3730a3 !important;
}

/* Excel */
.dt-buttons .buttons-excel {
    background: #dcfce7 !important;
    color: #166534 !important;
}

/* CSV */
.dt-buttons .buttons-csv {
    background: #ffedd5 !important;
    color: #9a3412 !important;
}

/* ===============================
   SEARCH BOX
================================ */

.dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #c7d2fe;
    padding: 6px 10px;
    outline: none;
}

.dataTables_filter input:focus {
    border-color: #6366f1;
}

/* ===============================
   RESPONSIVE TOGGLE
================================ */

table.dataTable.dtr-inline.collapsed
> tbody > tr > td.dtr-control::before {
    background: #6366f1;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
}

/* ===============================
   MOBILE CARD VIEW
================================ */

@media (max-width: 768px) {

    table.dataTable > tbody > tr.child {
        background: #eef2ff;
    }

    table.dataTable > tbody > tr.child ul.dtr-details li {
        background: #ffffff;
        border-left: 4px solid #6366f1;
        border-radius: 8px;
        margin-bottom: 8px;
        padding: 10px;
    }

    table.dataTable > tbody > tr.child span.dtr-title {
        font-weight: 700;
        color: #4f46e5;
        font-size: 11px;
    }

    table.dataTable > tbody > tr.child span.dtr-data {
        font-weight: 600;
        color: #1e293b;
    }
}



/* Reduce sidebar gap between logo and first menu section */
.sidebar .sidebar-logo {
  height: 44px;
  padding-top: 8px;
  padding-bottom: 0;
}
.sidebar .sidebar-menu {
  margin-top: 8px !important;
}

.theme-sidebarbg label {
    position: relative;
    width: 48px;
    height: 55px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    background: #0f172a;
}

.theme-sidebarbg .sidebar-pattern {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background-image: var(--pattern-image);
    background-size: var(--pattern-size, 24px 24px);
    background-position: 0 0;
}

.theme-sidebarbg .pattern-1 {
    --pattern-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 10px, rgba(255, 255, 255, 0) 10px 20px);
    --pattern-size: 28px 28px;
}

.theme-sidebarbg .pattern-2 {
    --pattern-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.18) 1px, rgba(255, 255, 255, 0) 1px);
    --pattern-size: 10px 10px;
}

.theme-sidebarbg .pattern-3 {
    --pattern-image: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, rgba(255, 255, 255, 0) 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, rgba(255, 255, 255, 0) 1px);
    --pattern-size: 16px 16px;
}

.theme-sidebarbg .pattern-4 {
    --pattern-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 8px, rgba(255, 255, 255, 0) 8px 16px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 0 8px, rgba(255, 255, 255, 0) 8px 16px);
    --pattern-size: 22px 22px;
}

.theme-sidebarbg .pattern-5 {
    --pattern-image: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 2px, rgba(255, 255, 255, 0) 2px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, rgba(255, 255, 255, 0) 1px);
    --pattern-size: 24px 12px;
}

.theme-sidebarbg .pattern-6 {
    --pattern-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 2px, rgba(255, 255, 255, 0) 2px),
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.08) 2px, rgba(255, 255, 255, 0) 2px);
    --pattern-size: 20px 20px;
}

.theme-sidebarbg .pattern-7 {
    --pattern-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, rgba(255, 255, 255, 0) 1px 8px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, rgba(255, 255, 255, 0) 1px 14px);
    --pattern-size: 18px 18px;
}

.theme-sidebarbg .pattern-8 {
    --pattern-image: linear-gradient(120deg, rgba(255, 255, 255, 0.12) 25%, rgba(255, 255, 255, 0) 25%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.12) 25%, rgba(255, 255, 255, 0) 25%);
    --pattern-size: 40px 40px;
}

.theme-sidebarbg .pattern-9 {
    --pattern-image: linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0.14) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0.14) 75%);
    --pattern-size: 24px 24px;
}

[data-sidebarbg^="sidebarbg"] #sidebar {
    background-color: rgb(var(--sidebar-rgb, 15, 23, 42)) !important;
    background-image: var(--sidebar-pattern-image, none) !important;
    background-repeat: repeat !important;
    background-size: var(--sidebar-pattern-size, 24px 24px) !important;
    background-position: 0 0 !important;
}

[data-sidebar="all"] #sidebar {
    background-color: rgb(var(--sidebar-rgb, 15, 23, 42)) !important;
}

/* In horizontal layouts, keep the horizontal sidebar menu tied to sidebar color */
[data-layout="horizontal"][data-sidebar="all"] .header .sidebar-horizontal.sidebar .sidebar-menu,
[data-layout="horizontal-single"][data-sidebar="all"] .header .sidebar-horizontal.sidebar .sidebar-menu {
    background: rgb(var(--sidebar--rgb-picr)) !important;
    border-color: rgb(var(--sidebar--rgb-picr)) !important;
}

.topbar-attendance-slot {
    display: flex;
    align-items: center;
    justify-content: end;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 1rem;
}

.mobile-topbar-actions {
    display: none;
}

.dropdown .dropdown-toggle::after,
.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 991.98px) {
    .header .header-left {
        position: absolute;
        left: 56px;
        width: auto;
        right: auto;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0;
    }

    .header .header-left .logo,
    .header .header-left .dark-logo {
        width: auto;
        text-align: left;
        display: inline-flex;
        align-items: center;
        line-height: 1;
    }

    .header .header-left .logo img,
    .header .header-left .dark-logo img {
        width: 120px;
        max-width: none;
    }

    .mobile-topbar-actions {
        position: absolute;
        top: 10px;
        right: 12px;
        z-index: 11;
        display: flex;
    }

    .mobile-topbar-actions .btn-menubar {
        width: 30px;
        height: 30px;
        padding: 0;
    }

    .mobile-topbar-actions .topbar-attendance-slot {
        flex: 0 0 auto;
        min-width: auto;
        padding: 0;
        justify-content: center;
    }

    .mobile-topbar-actions .topbar-attendance-slot .d-flex {
        margin-right: 0 !important;
    }

    .mobile-topbar-actions .btn-checkin-action {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .mobile-topbar-actions .profile-dropdown {
        margin-left: 0 !important;
    }

    .mobile-topbar-actions .profile-dropdown .dropdown-toggle {
        border: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .mobile-topbar-actions .profile-dropdown .avatar img {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        border: 2px solid #F3F4F6;
        object-fit: cover;
    }
}

.btn-checkin-action {
    background: transparent !important;
    border: 1px solid #2563eb !important;
    color: #2563eb !important;
}

.btn-checkin-action:hover,
.btn-checkin-action:focus {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}

.btn-checkin-action:disabled {
    opacity: 0.7;
}

.app-toast-container {
    width: auto;
    max-width: min(90vw, 640px);
}

.app-toast {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    display: inline-flex;
}

.app-toast .toast-body {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Top nav animated wave line (all layouts) */
.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10'%3E%3Cpath d='M0 6 C 10 10, 20 10, 30 6 S 50 2, 60 6 80 10, 90 6 110 2, 120 6' fill='none' stroke='rgba(255,255,255,0.85)' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 120px 10px;
    animation: topbar-wave 3.2s linear infinite;
    opacity: 0.9;
    pointer-events: none;
}

@keyframes topbar-wave {
    0% { background-position: 0 0; }
    100% { background-position: -120px 0; }
}

/* Welcome toast after login */
.welcome-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    padding: 18px 28px;
    background: rgba(15, 23, 42, 0.95);
    color: #f8fafc;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 3000;
    pointer-events: none;
    letter-spacing: 0.2px;
}

.welcome-toast::before,
.welcome-toast::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
}

.welcome-toast::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
}

.welcome-toast::after {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.welcome-toast.show {
    opacity: 1;
    animation: welcome-pop 0.7s ease-out forwards;
}

.welcome-toast.show::before {
    animation: welcome-blast 0.7s ease-out forwards;
}

.welcome-toast.show::after {
    animation: welcome-ring 0.7s ease-out forwards;
}

.lead-status-timeline {
    display: flex;
    gap: 18px;
    align-items: center;
    position: relative;
    padding: 8px 4px 0;
}

.lead-status-timeline::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #d7dde6;
    z-index: 0;
}

.lead-status-timeline-horizontal {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 14px 8px 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.lead-status-step-horizontal {
    position: relative;
    z-index: 1;
    flex: 0 0 160px;
    min-width: 160px;
    text-align: center;
    padding-top: 8px;
}

.lead-status-step-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 16px;
    padding: 12px 12px 10px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    animation: timeline-fade-in 0.7s ease both;
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lead-status-step-item.is-current {
    animation:
        timeline-fade-in 0.7s ease both,
        timeline-current-flash 1.4s ease-in-out infinite;
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.12);
}

.lead-status-step-item.is-current .lead-status-step-label {
    color: #6b7280;
}

.lead-status-step-meta {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.35;
    word-break: break-word;
    min-height: 32px;
}

.lead-status-step-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 8px;
    min-height: 20px;
    width: 100%;
}

.lead-status-step-label .lead-status-dot {
    flex-shrink: 0;
    margin: 0;
}

.lead-status-dot.is-current {
    background: #9ca3af;
    border-color: #9ca3af;
    position: relative;
    animation:
        timeline-dot-pulse 2.8s ease-in-out infinite,
        timeline-dot-blink 2.2s steps(2, end) infinite;
}

.lead-status-dot.is-previous {
    background: #22c55e;
    border-color: #22c55e;
    position: relative;
    animation: timeline-complete-flash 0.38s ease both;
    animation-delay: var(--step-delay, 0ms);
}

.lead-status-step-item.is-current .lead-status-step-meta {
    color: #475569;
}

.lead-status-dot.is-current::after,
.lead-status-dot.is-previous::after {
    content: "\2713";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    animation: timeline-tick-pop 0.4s ease both;
    animation-delay: calc(var(--step-delay, 0ms) + 0.28s);
}

@keyframes timeline-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes timeline-current-glow {
    0%, 100% {
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 0 0 0 rgba(34, 197, 94, 0.12);
    }
    50% {
        box-shadow: 0 2px 10px rgba(34, 197, 94, 0.18), 0 0 0 6px rgba(34, 197, 94, 0.08);
    }
}

@keyframes timeline-current-flash {
    0%, 100% {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.98));
        box-shadow: 0 10px 24px rgba(34, 197, 94, 0.14), 0 0 0 6px rgba(34, 197, 94, 0.08);
        transform: scale(1.02);
    }
}

@keyframes timeline-dot-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

@keyframes timeline-dot-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.72;
    }
}

@keyframes timeline-complete-flash {
    0% {
        background: #22c55e;
        border-color: #22c55e;
        transform: scale(1);
    }
    55% {
        background: #22c55e;
        border-color: #22c55e;
        transform: scale(1.08);
    }
    100% {
        background: #22c55e;
        border-color: #22c55e;
        transform: scale(1);
    }
}

@keyframes timeline-tick-pop {
    from {
        opacity: 0;
        transform: scale(0.4);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lead-status-step {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.lead-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin: 0 auto 6px;
    background: #d7dde6;
    border: 2px solid #d7dde6;
}

.lead-status-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

.lead-status-step.is-done .lead-status-dot {
    background: #22c55e;
    border-color: #22c55e;
}

.lead-status-step.is-current .lead-status-dot {
    background: #2563eb;
    border-color: #2563eb;
}

.lead-status-step.is-done .lead-status-label,
.lead-status-step.is-current .lead-status-label {
    color: #1f2937;
}

@keyframes welcome-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes welcome-blast {
    0% { opacity: 0; transform: scale(0.6); }
    60% { opacity: 0.6; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(1.6); }
}

@keyframes welcome-ring {
    0% { opacity: 0; transform: scale(0.7); }
    60% { opacity: 0.5; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.6); }
}

/* Horizontal dropdown text color consistency */
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu ul li.submenu ul li a,
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu ul li.submenu ul li a span,
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu ul li.submenu ul li a i {
    color: #111827;
}

.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu ul li.submenu ul li a:hover,
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu ul li.submenu ul li a.active {
    color: #f26522;
}


[data-sidebarbg^="sidebarbg"] #sidebar::before {
    background: transparent !important;
}

[data-sidebarbg="sidebarbg1"] #sidebar {
    --sidebar-pattern-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 10px, rgba(255, 255, 255, 0) 10px 20px);
    --sidebar-pattern-size: 28px 28px;
}

[data-sidebarbg="sidebarbg2"] #sidebar {
    --sidebar-pattern-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.18) 1px, rgba(255, 255, 255, 0) 1px);
    --sidebar-pattern-size: 10px 10px;
}

[data-sidebarbg="sidebarbg3"] #sidebar {
    --sidebar-pattern-image: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, rgba(255, 255, 255, 0) 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, rgba(255, 255, 255, 0) 1px);
    --sidebar-pattern-size: 16px 16px;
}

[data-sidebarbg="sidebarbg4"] #sidebar {
    --sidebar-pattern-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 8px, rgba(255, 255, 255, 0) 8px 16px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 0 8px, rgba(255, 255, 255, 0) 8px 16px);
    --sidebar-pattern-size: 22px 22px;
}

[data-sidebarbg="sidebarbg5"] #sidebar {
    --sidebar-pattern-image: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 2px, rgba(255, 255, 255, 0) 2px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, rgba(255, 255, 255, 0) 1px);
    --sidebar-pattern-size: 24px 12px;
}

[data-sidebarbg="sidebarbg6"] #sidebar {
    --sidebar-pattern-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 2px, rgba(255, 255, 255, 0) 2px),
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.08) 2px, rgba(255, 255, 255, 0) 2px);
    --sidebar-pattern-size: 20px 20px;
}

[data-sidebarbg="sidebarbg7"] #sidebar {
    --sidebar-pattern-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, rgba(255, 255, 255, 0) 1px 8px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, rgba(255, 255, 255, 0) 1px 14px);
    --sidebar-pattern-size: 18px 18px;
}

[data-sidebarbg="sidebarbg8"] #sidebar {
    --sidebar-pattern-image: linear-gradient(120deg, rgba(255, 255, 255, 0.12) 25%, rgba(255, 255, 255, 0) 25%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.12) 25%, rgba(255, 255, 255, 0) 25%);
    --sidebar-pattern-size: 40px 40px;
}

[data-sidebarbg="sidebarbg9"] #sidebar {
    --sidebar-pattern-image: linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0.14) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0.14) 75%);
    background-position: 0 0, 12px 12px !important;
    --sidebar-pattern-size: 24px 24px;
}

:root {
    --sidebar-text-color: #111827;
    --sidebar-text-muted: #6B7280;
    --sidebar-icon-color: #374151;
    --sidebar-arrow-color: #6B7280;
}

.sidebar .sidebar-menu ul li a,
.sidebar .sidebar-menu ul li a span,
.sidebar .sidebar-menu ul li a i,
.sidebar .sidebar-menu .menu-title span,
.sidebar-twocol.sidebar .sidebar-right h6,
.sidebar-twocol.sidebar .sidebar-right p,
.sidebar-stacked .sidebar-right h6,
.sidebar-stacked .sidebar-right p {
    color: var(--sidebar-text-color);
}

.sidebar .sidebar-menu ul li ul li a,
.sidebar .sidebar-menu ul li ul li a span,
.sidebar .sidebar-menu ul li ul li a i {
    color: var(--sidebar-text-muted);
}

.sidebar .sidebar-menu .menu-arrow::before {
    border-color: var(--sidebar-arrow-color);
}

.sidebar-horizontal.sidebar .sidebar-menu ul li a,
.sidebar-horizontal.sidebar .sidebar-menu ul li a span,
.sidebar-horizontal.sidebar .sidebar-menu ul li a i {
    color: var(--sidebar-text-color);
}

/* Ensure only compact logo shows in collapsed sidebar */
.mini-sidebar .sidebar .sidebar-logo .dark-logo {
    display: none !important;
}

.customer-layout {
    font-family: "Outfit", sans-serif;
    background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08), transparent 40%),
        #f6f7fb;
    min-height: 100vh;
}

.customer-layout .page-wrapper {
    background: transparent;
    min-height: calc(100vh - 72px);
    padding-top: 84px;
}

.customer-topbar {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
}

.customer-topbar__inner {
    padding: 10px 24px;
    min-height: 64px;
}

.customer-topbar__logo img {
    height: 34px;
}

.customer-topbar__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 2;
}

.customer-topbar__name {
    font-weight: 600;
    color: #0f172a;
}

.customer-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-right: 1px solid rgba(15, 23, 42, 0.2);
    top: 0;
    padding-top: 74px;
}

.customer-sidebar__logo {
    padding: 16px 20px 12px;
}

.customer-sidebar .sidebar-menu ul li a {
    color: #e2e8f0;
    border-radius: 12px;
    margin: 6px 14px;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.customer-sidebar .sidebar-menu ul li a i {
    color: #f8fafc;
}

.customer-sidebar .sidebar-menu ul li a.active,
.customer-sidebar .sidebar-menu ul li a:hover {
    background: rgba(248, 250, 252, 0.1);
    color: #fff;
}

.customer-sidebar .menu-title span {
    color: rgba(226, 232, 240, 0.7);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.customer-chat {
    padding: 18px 8px 30px;
}

.customer-chat__grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

.customer-chat__list,
.customer-chat__panel {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.customer-chat__list {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.customer-chat__list-header h4 {
    font-weight: 600;
    color: #0f172a;
}

.customer-chat__list-header p {
    margin: 0;
    font-size: 0.9rem;
}

.customer-chat__search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px 12px;
    color: #64748b;
}

.customer-chat__search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: #0f172a;
}

.customer-chat__contact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(249, 115, 22, 0.08));
    transition: background 0.2s, border-color 0.2s;
}

.customer-chat__contact--active {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.22), rgba(249, 115, 22, 0.18));
    border-color: rgba(15, 118, 110, 0.45);
}

.customer-chat__avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.customer-chat__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-chat__avatar--lg {
    width: 56px;
    height: 56px;
}

.customer-chat__status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
}

.customer-chat__contact-info h6 {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.customer-chat__contact-info span {
    font-size: 0.85rem;
    color: #475569;
}

.customer-chat__contact-state {
    margin-left: auto;
    font-size: 0.8rem;
    color: #0f766e;
    font-weight: 600;
}

.customer-chat__panel {
    display: flex;
    flex-direction: column;
    min-height: 70vh;
}

.customer-chat__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.customer-chat__panel-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.customer-chat__panel-title h5 {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.customer-chat__panel-title p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.customer-chat__panel-body {
    flex: 1;
    padding: 20px 26px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), #fff);
    overflow: hidden;
}

.customer-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 8px;
}

.customer-chat__messages::-webkit-scrollbar {
    width: 6px;
}

.customer-chat__messages::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

.customer-chat__empty {
    color: #64748b;
    text-align: center;
    padding: 40px 0;
}

.customer-msg {
    display: flex;
}

.customer-msg--mine {
    justify-content: flex-end;
}

.customer-msg__bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.customer-msg--mine .customer-msg__bubble {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
}

.customer-msg__time {
    margin-top: 6px;
    font-size: 0.75rem;
    opacity: 0.7;
}

.customer-msg__file {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.customer-msg__reply {
    border-left: 3px solid rgba(15, 118, 110, 0.7);
    padding-left: 10px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: inherit;
    opacity: 0.85;
}

.customer-msg__reply span {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.customer-msg__reply p {
    margin: 0;
}

.customer-msg--theirs .customer-msg__file {
    background: #e2e8f0;
    color: #0f172a;
}

.customer-chat__panel-footer {
    padding: 18px 24px 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.customer-chat__composer {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.customer-chat__composer input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: #0f172a;
}

.customer-chat__reply {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #e2e8f0;
    border-radius: 12px;
    padding: 8px 10px;
    width: 100%;
    margin-bottom: 8px;
}

.customer-chat__reply strong {
    color: #0f172a;
    font-size: 0.85rem;
}

.customer-chat__reply p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #475569;
}

.customer-chat__reply button {
    border: none;
    background: transparent;
    color: #475569;
}

.customer-chat__attach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #0f172a;
    cursor: pointer;
}

.customer-chat__attach input {
    display: none;
}

.customer-chat__attach i {
    font-size: 16px;
}

.chat-context-menu {
    position: fixed;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.15);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    min-width: 140px;
    padding: 6px;
}

.chat-context-menu button {
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    color: #0f172a;
    font-size: 0.9rem;
}

.chat-context-menu button:hover {
    background: #f1f5f9;
}

.chat-notice {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.25);
    z-index: 3000;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.chat-notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 6px;
    line-height: 1;
}

.customer-topbar__bell {
    position: relative;
    border: none;
    background: #e2e8f0;
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-notify-dropdown {
    position: fixed;
    width: 300px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.2);
    z-index: 3001;
    overflow: hidden;
}

.chat-notify-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    font-weight: 600;
}

.chat-notify-dropdown__header button {
    border: none;
    background: transparent;
    color: #64748b;
}

.chat-notify-dropdown__list {
    max-height: 320px;
    overflow-y: auto;
}

.chat-notify-dropdown__item {
    width: 100%;
    text-align: left;
    border: none;
    background: #fff;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.chat-notify-dropdown__item:hover {
    background: #f1f5f9;
}

.chat-notify-dropdown__title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.chat-notify-dropdown__message {
    color: #475569;
    font-size: 0.85rem;
}

.chat-notify-dropdown__empty {
    padding: 16px;
    color: #64748b;
}

.customer-chat__composer .customer-chat__send-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    padding: 8px 16px;
    background: #f97316;
    border: none;
    color: #fff;
}

.customer-chat__composer .customer-chat__status-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #f26522;
    color: #f26522;
}

.customer-chat__composer .customer-chat__status-trigger:hover,
.customer-chat__composer .customer-chat__status-trigger:focus,
.customer-chat__composer .customer-chat__status-trigger:active {
    background: #f26522;
    color: #fff;
}

.customer-chat__composer .customer-chat__status-trigger:disabled {
    opacity: 0.6;
    background: transparent;
    color: #f26522;
    border-color: #f26522;
}

.customer-status {
    padding: 18px 8px 30px;
}

.customer-status__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 20px 24px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}

.customer-status__header h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-weight: 600;
}

.customer-status__header p {
    margin: 0;
    color: #64748b;
}

.customer-status__badge {
    background: #0f766e;
    color: #fff;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
}

.customer-status__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.customer-status__card {
    background: #fff;
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.customer-status__card h5 {
    margin-bottom: 16px;
    font-weight: 600;
    color: #0f172a;
}

.customer-status__summary {
    display: grid;
    gap: 14px;
}

.customer-status__summary span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
}

.customer-status__summary strong {
    color: #0f172a;
    font-weight: 600;
}

.customer-status__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.customer-status__steps li {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.customer-status__steps span {
    display: inline-flex;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 6px;
}

.customer-status__steps p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .customer-chat__grid {
        grid-template-columns: 1fr;
    }

    .customer-sidebar {
        padding-top: 64px;
    }

    .customer-layout .page-wrapper {
        padding-top: 74px;
    }
}

.topbar-checkin-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 2055;
    background: rgba(10, 14, 28, 0.58);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.topbar-checkin-modal {
    width: min(100%, 640px);
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.topbar-checkin-modal__header {
    background: #06070b;
    color: #ffffff;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-checkin-modal__header h5 {
    color: #ffffff;
    font-size: 1.15rem;
}

.topbar-checkin-modal__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-checkin-modal__body {
    padding: 36px 28px 24px;
    text-align: center;
}

.topbar-checkin-modal__tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(90, 79, 255, 0.25);
    background: #f3f0ff;
    margin-bottom: 18px;
}

.topbar-checkin-modal__tabs button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1f2937;
    font-weight: 600;
    padding: 10px 22px;
}

.topbar-checkin-modal__tabs button.is-active {
    background: linear-gradient(135deg, #635bff, #4c39e8);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(91, 75, 255, 0.32);
}

.topbar-checkin-modal__tabs button:disabled {
    opacity: 0.75;
}

.topbar-checkin-modal__clock {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    color: #111827;
}

.topbar-checkin-modal__period {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #4b5563;
}

.topbar-checkin-modal__time {
    font-size: clamp(2.7rem, 8vw, 4rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.topbar-checkin-modal__seconds {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #374151;
}

.topbar-checkin-modal__date {
    margin-top: 10px;
    margin-bottom: 24px;
    font-size: 1rem;
    color: #4b5563;
}

.topbar-checkin-modal__hold {
    --hold-ring: 0deg;
    width: 184px;
    height: 184px;
    border: 0;
    border-radius: 50%;
    padding: 8px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#4d41ef var(--hold-ring), rgba(77, 65, 239, 0.18) 0deg);
    box-shadow: 0 18px 46px rgba(77, 65, 239, 0.22);
}

.topbar-checkin-modal__hold-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at top, #6155ff, #4d41ef 62%, #4438d7 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 4px solid #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

.topbar-checkin-modal__hold-icon {
    font-size: 3rem;
    line-height: 1;
}

.topbar-checkin-modal__hint {
    color: #5b6472;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 18px;
}

.topbar-checkin-modal__reason {
    width: 100%;
    min-height: 88px;
    border-radius: 14px;
    border: 1.5px solid rgba(92, 76, 255, 0.6);
    padding: 14px 16px;
    outline: none;
    resize: vertical;
    color: #111827;
    margin-bottom: 18px;
}

.topbar-checkin-modal__reason:focus {
    border-color: #4d41ef;
    box-shadow: 0 0 0 4px rgba(77, 65, 239, 0.12);
}

.topbar-checkin-modal__schedule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 64px;
    border-radius: 16px;
    background: #f3f4f8;
    color: #3f4652;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 12px 16px;
}

.topbar-checkin-modal__schedule i {
    font-size: 1.3rem;
}

@media (max-width: 767px) {
    .topbar-checkin-modal__body {
        padding: 28px 18px 18px;
    }

    .topbar-checkin-modal__hold {
        width: 170px;
        height: 170px;
    }

    .topbar-checkin-modal__tabs button {
        padding: 10px 16px;
    }
}



