.auth-wrapper {
    min-height: 87vh;
    /* Full screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertical center */
    /* align-items: center; */
    /* Horizontal center */
    /* text-align: center; */
    /* Center text */
    /* padding: 20px; */
}

.margin-top-70 {
    margin-top: 70px !important;
}

.beautified-banner {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #e7e7e7;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
    position: relative;
}


/* Smooth hover glow */

.beautified-banner:hover {
    box-shadow: 0px 14px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}


/* Optional subtle overlay */

.beautified-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.0));
    pointer-events: none;
}

.beautified-banner img {
    border-radius: 20px;
}

.followup-card {
    border-radius: 12px;
}

.followup-card .btn {
    min-width: 36px;
    min-height: 36px;
}

.followup-card .badge {
    font-size: 11px;
}

.lead-action-row {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}

.lead-action-row .action-btn {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.empty-state {
    min-height: 70vh;
    /* Centers vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.empty-icon {
    font-size: 70px;
    /* Bigger icon */
    color: #adb5bd;
}

/* ================================
   MOBILE / APK SAFE AREA LAYOUT
   (notch, camera cutout, home bar)
   ================================ */

:root {
    --app-safe-top: 36px;
    --app-safe-bottom: 16px;
    --app-safe-left: 12px;
    --app-safe-right: 12px;
    --app-content-gutter: 16px;
}

.mobile-safe-layout {
    padding-left: 0;
    padding-right: 0;
}

.mobile-safe-layout .salon-main-header {
    padding-block: unset;
    padding-top: max(44px, calc(12px + env(safe-area-inset-top, var(--app-safe-top))));
    padding-bottom: 12px;
    padding-left: var(--app-content-gutter);
    padding-right: var(--app-content-gutter);
}

.mobile-safe-layout .custom-container {
    padding-left: var(--app-content-gutter) !important;
    padding-right: var(--app-content-gutter) !important;
}

.mobile-safe-layout .salon-main-header .custom-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mobile-safe-layout .salon-main-header .header-content {
    gap: 12px;
    min-height: 44px;
}

.mobile-safe-layout .salon-main-header .header-content img {
    flex-shrink: 0;
}

.mobile-safe-layout .bottom-navbar {
    padding-top: 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, var(--app-safe-bottom)));
    padding-left: max(10px, env(safe-area-inset-left, var(--app-safe-left)));
    padding-right: max(10px, env(safe-area-inset-right, var(--app-safe-right)));
}

.mobile-safe-layout .mobile-bottom-spacer {
    height: calc(96px + env(safe-area-inset-bottom, var(--app-safe-bottom)));
    width: 100%;
    pointer-events: none;
}

.mobile-safe-layout .salon-auth-header {
    padding-top: calc(20px + env(safe-area-inset-top, var(--app-safe-top)));
    padding-left: 0;
    padding-right: 0;
}

.mobile-safe-layout.auth-page .bottom-navbar,
.mobile-safe-layout.auth-page .mobile-bottom-spacer {
    display: none !important;
}

.mobile-safe-layout .app-page-content,
.mobile-safe-layout .custom-container2,
.mobile-safe-layout .container {
    padding-left: var(--app-content-gutter);
    padding-right: var(--app-content-gutter);
}

body.mobile-safe-layout.is-mobile-app .salon-main-header {
    padding-top: max(48px, calc(12px + env(safe-area-inset-top, 40px))) !important;
}

body.mobile-safe-layout.android-webview-app .salon-main-header,
body.mobile-safe-layout.android-webview-app.is-mobile-app .salon-main-header {
    padding-top: 12px !important;
}

body.mobile-safe-layout.android-webview-app .salon-main-header {
    background-color: #fff;
}

body.mobile-safe-layout.is-mobile-app .bottom-navbar {
    left: var(--app-content-gutter) !important;
    right: var(--app-content-gutter) !important;
    bottom: max(14px, env(safe-area-inset-bottom, 14px)) !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14) !important;
}

body.mobile-safe-layout.is-mobile-app .mobile-bottom-spacer {
    height: calc(100px + env(safe-area-inset-bottom, 18px)) !important;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    body.mobile-safe-layout .bottom-navbar {
        left: var(--app-content-gutter) !important;
        right: var(--app-content-gutter) !important;
        bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 16px !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14) !important;
    }

    .mobile-safe-layout .app-page-content,
    .mobile-safe-layout .custom-container2,
    .mobile-safe-layout .container {
        padding-left: var(--app-content-gutter) !important;
        padding-right: var(--app-content-gutter) !important;
        max-width: 100% !important;
    }

    .mobile-safe-layout .salon-main-header .main-content h4 {
        font-size: 15px;
        line-height: 1.25;
    }

    .mobile-safe-layout .salon-main-header .main-content h5 {
        font-size: 12px;
        margin-top: 2px;
    }

    .mobile-safe-layout .bottom-navbar ul li .icon h5 {
        font-size: 11px;
        line-height: 1.1;
    }

    .mobile-safe-layout .bottom-navbar ul li .icon .menu-icon {
        padding: 6px 12px;
    }
}

/* ================================
   FIELD SALES VISIT UI
   ================================ */

.fsv-body {
    padding: 16px var(--app-content-gutter, 16px) 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.fsv-header,
.vs-page-header {
    margin-bottom: 18px;
}

.fsv-header-title,
.vs-page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.fsv-header-subtitle,
.vs-page-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

.vs-page-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.vs-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.vs-back-btn:hover {
    background: #f8fafc;
    color: #0f766e;
}

.vs-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .vs-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .vs-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.vs-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    border: 2px solid transparent;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vs-summary-card:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.vs-summary-card.is-active {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.vs-summary-count {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.vs-summary-label {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    opacity: 0.95;
}

.vs-theme-all { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.vs-theme-success { background: linear-gradient(135deg, #15803d, #22c55e); }
.vs-theme-teal { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.vs-theme-info { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.vs-theme-warning { background: linear-gradient(135deg, #c2410c, #f97316); }
.vs-theme-danger { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.vs-theme-purple { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }

.vs-filter-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.vs-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.vs-filter-field {
    flex: 1 1 220px;
}

.vs-filter-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.vs-filter-input {
    border-radius: 12px;
    border-color: #e2e8f0;
    min-height: 42px;
}

.vs-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vs-filter-btn {
    min-width: 96px;
    border-radius: 12px;
    min-height: 42px;
    font-weight: 600;
}

.vs-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.vs-results-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.vs-results-count {
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
    background: #ccfbf1;
    padding: 6px 10px;
    border-radius: 999px;
}

.vs-lead-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vs-lead-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left-width: 5px;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.vs-lead-card.vs-theme-success { border-left-color: #16a34a; }
.vs-lead-card.vs-theme-teal { border-left-color: #0f766e; }
.vs-lead-card.vs-theme-info { border-left-color: #2563eb; }
.vs-lead-card.vs-theme-warning { border-left-color: #ea580c; }
.vs-lead-card.vs-theme-danger { border-left-color: #dc2626; }
.vs-lead-card.vs-theme-purple { border-left-color: #7c3aed; }
.vs-lead-card.vs-theme-all { border-left-color: #14b8a6; }

.vs-lead-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.vs-lead-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfeff;
    color: #0f766e;
    font-weight: 800;
    flex-shrink: 0;
}

.vs-lead-main {
    flex: 1;
    min-width: 0;
}

.vs-lead-name {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}

.vs-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #334155;
}

.vs-lead-card.vs-theme-success .vs-status-pill { background: #dcfce7; color: #166534; }
.vs-lead-card.vs-theme-teal .vs-status-pill { background: #ccfbf1; color: #115e59; }
.vs-lead-card.vs-theme-info .vs-status-pill { background: #dbeafe; color: #1e40af; }
.vs-lead-card.vs-theme-warning .vs-status-pill { background: #ffedd5; color: #9a3412; }
.vs-lead-card.vs-theme-danger .vs-status-pill { background: #fee2e2; color: #991b1b; }
.vs-lead-card.vs-theme-purple .vs-status-pill { background: #ede9fe; color: #5b21b6; }

.vs-lead-id {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}

.vs-lead-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.vs-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

.vs-meta-item i {
    margin-top: 2px;
    color: #0f766e;
    flex-shrink: 0;
}

.vs-meta-note span {
    word-break: break-word;
}

.vs-lead-actions {
    margin-top: 14px;
}

.vs-lead-action-btn,
.fsv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.vs-lead-action-btn {
    background: #0f766e;
    color: #fff;
}

.vs-lead-action-btn:hover {
    background: #115e59;
    color: #fff;
}

.vs-empty-state {
    text-align: center;
    padding: 42px 20px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

.vs-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfeff;
    color: #0f766e;
    font-size: 24px;
}

.vs-empty-state h6 {
    margin-bottom: 6px;
    font-weight: 700;
    color: #0f172a;
}

.vs-empty-state p {
    margin-bottom: 14px;
    color: #64748b;
    font-size: 13px;
}

.fsv-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fsv-visit-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #0f766e;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.fsv-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.fsv-visit-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.fsv-status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #ccfbf1;
    color: #115e59;
    white-space: nowrap;
}

.fsv-visit-info {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #475569;
}

.fsv-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.fsv-btn-checkin {
    background: #0f766e;
    color: #fff;
}

.fsv-btn-checkin:hover {
    background: #115e59;
    color: #fff;
}

.fsv-btn-map {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.fsv-btn-map:hover {
    background: #dbeafe;
    color: #1e40af;
}

/* Android WebView: allow nested chat message panes to scroll */
body.android-webview-app .lead-chat-messages,
body.android-webview-app .chat-messages,
body.android-webview-app #employee-chat-list {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

/* Select2 searchable Service / City dropdowns — match Bootstrap form-control */
select.js-searchable-select + .select2-container {
    width: 100% !important;
    display: block;
    margin: 0;
}

.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    min-height: 38px;
    height: auto;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    box-sizing: border-box;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
    line-height: 1.5;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: -0.625rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: -2px;
    margin-left: -4px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(var(--theme-color), 1);
    outline: 0;
    box-shadow: none;
}

.select2-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #fff;
    z-index: 1060 !important;
}

/* Select2 attaches a wrapper span; keep it out of document flow */
.modal .select2-container,
span.select2-container {
    box-sizing: border-box;
}

.modal > .select2-container,
.modal-content > span > .select2-dropdown,
.modal-content > .select2-container {
    position: absolute !important;
}

/* Elevate only the dropdown above Bootstrap modals (1055).
   Do NOT raise .select2-container--open — that floats the multi-select chips/search over confirm dialogs. */
.modal .select2-dropdown,
.modal .select2-container--open .select2-dropdown {
    z-index: 2060 !important;
}

.select2-container--default .select2-search--dropdown {
    display: block;
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100% !important;
    height: 38px;
    margin: 0;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-sizing: border-box;
}

/* Override global `li { display: inline-block }` from style.css */
.select2-results,
.select2-results__options,
ul.select2-results__options {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
    line-height: normal !important;
    font-size: 14px !important;
}

.select2-results__options {
    max-height: 220px;
    overflow-y: auto;
}

.select2-container--default .select2-results__option,
li.select2-results__option {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    line-height: 1.25 !important;
    font-size: 14px !important;
    min-height: 0 !important;
    height: auto !important;
    white-space: normal !important;
    box-sizing: border-box;
    clear: both;
    vertical-align: top;
}

.select2-container--default .select2-results__option[aria-disabled="true"],
.select2-container--default .select2-results__option--disabled,
.select2-results__option[style*="display: none"] {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: rgba(var(--theme-color), 1);
    color: #fff;
}

.modal .modal-body {
    overflow: visible;
}

.modal-content {
    position: relative;
    overflow: visible;
}
