/* ═══════════════════════════════════════════════════════════════════
 * WendyNails — app.css
 * Organised sections:
 *   • Root & Globals
 *   • Login Page
 *   • Navigation
 *   • Topbar & Search
 *   • Notifications & Birthdays
 *   • Appointments & Calendar
 *   • Clients
 *   • Services
 *   • Staff
 *   • Timer FAB
 *   • Modals & Sidebars
 *   • Summary Cards
 *   • Dashboard
 *   • Settings
 *   • Footer & PWA
 *   • Utilities
 *   • Other
 * Responsive breakpoints consolidated at the bottom.
 * ═══════════════════════════════════════════════════════════════════ */


/* ── Keyframe Animations ─────────────────────────────────────────── */

@keyframes knipper {0% {opacity: 0;}
    50% {opacity: 1;}
    100% {opacity: 0;}
}

@keyframes sunRise {
    from {top: 100%;opacity: 0;}
    to {top: -38px;opacity: 1;}
}

@keyframes moonRise {
    from {top: 100%;opacity: 0;}
    to {top: -38px;opacity: 1;}
}

@keyframes slide {
    0% {transform: translateX(-200px); /* Start off-screen left */}
    100% {transform: translateX(1450px); /* End off-screen right */}
}

@keyframes slide_right {
    0% {transform: translateX(1600px); /* Start off-screen right */}
    100% {transform: translateX(-1400px); /* End off-screen left */}
}

@keyframes gentleBreathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 16px rgba(240, 206, 170, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 20px rgba(240, 206, 170, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideInRight {
    from {transform: translateX(100%);opacity: 0;}
    to {transform: translateX(0);opacity: 1;}
}

@keyframes slideOutRight {
    from {transform: translateX(0);opacity: 1;}
    to {transform: translateX(100%);opacity: 0;}
}

@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(3px); }
    60%       { transform: translateX(-3px); }
    80%       { transform: translateX(2px); }
}

/* Login-specific helper classes (toggled by app-login.js) */
.field-focused { transform: translateY(-1px); transition: all 0.3s ease; }
.field-shaking { animation: loginShake 0.25s ease-in-out; }
.btn-pressed   { transform: scale(0.98) !important; }

@keyframes timerPulse {0%,100%{opacity:1;transform:scale(1);}50%{opacity:.6;transform:scale(1.3);}}

@keyframes timerSlideIn {from{opacity:0;transform:translateY(12px) scale(.97);}to{opacity:1;transform:translateY(0) scale(1);}}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(209,153,124,0.4); }
    50% { box-shadow: 0 4px 30px rgba(209,153,124,0.7); }
}

@keyframes floating {
    0% {transform: translate3d(0, 0, 0);}
    45% {transform: translate3d(0, -10%, 0);}
    55% {transform: translate3d(0, -10%, 0);}
    100% {transform: translate3d(0, 0, 0);}
}

@keyframes floatingShadow {
    0% {transform: scale(1);}
    45% {transform: scale(0.85);}
    55% {transform: scale(0.85);}
    100% {transform: scale(1);}
}


/* ── Root & Globals ────────────────────────────────────────────────── */

:root {
    /* Theme accent — used for all non-status badges, labels, and accent elements */
    --badge-accent: #d1997c;
    --label-color: #555;
    /* Appointment-status semantic colors */
    --status-pending-bg: #fff3cd;
    --status-pending-text: #856404;
    --status-confirmed-bg: #cfe2ff;
    --status-confirmed-text: #084298;
    --status-completed-bg: #d1e7dd;
    --status-completed-text: #0f5132;
    --status-cancelled-bg: #f8d7da;
    --status-cancelled-text: #842029;
    --primary: #d1997c;
    --primary-dark: #b8855e;
    --secondary: #6c757d;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #0dcaf0;
    --light: #f8f9fa;
    --dark: #212529;
    --border: #dee2e6;
    --bg-body: #f4f6f9;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --sidebar-width: 350px;
}

body, div, span, p, h1, h2, h3, h4, h5, h6, button, a, img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-family: "Poppins", sans-serif;
}

body {
    background: radial-gradient(circle at bottom right, #d1997c59, transparent 60%), #f8f9fa;
}

.card.card-background .card-body {
    color: #fff;
    position: relative;
    z-index: 2;
}

.card .card-body {
    font-family: Inter, Helvetica, Arial, sans-serif;
    padding: 1rem;
}

.dashboard-card .card-body { padding: 1rem 1.1rem; }

.services-table tbody tr {
    cursor: pointer;
    transition: background 0.2s;
}

.services-table tbody tr:hover { background: #f8f9fa; }

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

body.sidenav-minimized .sidebar { width: 60px; }

body.sidenav-minimized .sidebar .sidebar-header { display: none; }

body.sidenav-minimized .sidebar .nav-link span { display: none; }

body.sidenav-minimized .sidebar .nav-link i { margin-right: 0; }

body.sidenav-minimized .main-content { margin-left: 0; }

body.sidenav-minimized #sidenav-toggle { left: 0; }

body.sidenav-minimized.sidenav-hover .sidebar { width: 0; }

body.sidenav-minimized.sidenav-hover .sidebar .sidebar-header { display: block; }

body.sidenav-minimized.sidenav-hover .sidebar .nav-link span { display: inline; }

body.sidenav-minimized.sidenav-hover .sidebar .nav-link i { margin-right: 10px; }

body.sidenav-minimized.sidenav-hover .main-content { margin-left: 200px; }

body.sidenav-minimized.sidenav-hover #sidenav-toggle { left: 200px; }

.modal-body {
    padding: 20px;
    color: #4b4b4b;
}

.modal-body p { margin: 8px 0; }

.aaf-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.aaf-body::-webkit-scrollbar { width: 5px; }

.aaf-body::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 99px;
}

.staff-card-body {
    padding: 16px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.client-card-body {
    padding: 18px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.svc-card-body {
    padding: 18px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.detail-body {
    padding: 24px 30px 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

#allApptListWrap .aa-card-body .avatar-placeholder, #allApptListWrap .aa-card-body .client-card-avatar-wrap .avatar-placeholder {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.1rem !important;
    position: static;
}

#allApptListWrap .aa-card-body .client-card-avatar {
    width: 60px !important;
    height: 60px !important;
}

.aa-card-body {
    padding: 18px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.appt-sidebar-body {
    flex: 1;
    overflow-y: auto;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}


/* ── Login Page ────────────────────────────────────────────────────── */

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    margin: 50px auto;
}

.soft-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03),
        0 8px 24px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.soft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 206, 170, 0.5), transparent);
}

.comfort-header {
    text-align: center;
    margin-bottom: 40px;
}

.comfort-icon {
    color: rgba(139, 102, 85, 0.8);
    position: relative;
    z-index: 2;
}

.comfort-title {
    color: #8b6655;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.soft-field {
    position: relative;
    margin-bottom: 24px;
}

.soft-field input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 23px 16px 11px;
    color: #8b6655;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    position: relative;
    z-index: 2;
    font-family: inherit;
}

.soft-field input::placeholder { color: transparent; }

.soft-field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(139, 102, 85, 0.6);
    font-size: 15px;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 3;
    padding: 0 4px;
}

.soft-field input:focus + label, .soft-field input:not(:placeholder-shown) + label {
    top: 5px;
    font-size: 12px;
    color: #8b6655;
    transform: translateY(0);
    font-weight: 500;
}

.soft-field:has(.gentle-toggle) input { padding-right: 56px; }

.gentle-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 4;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.gentle-toggle:active { transform: translateY(-50%) scale(0.95); }

.toggle-icon {
    width: 20px;
    height: 20px;
    color: rgba(139, 102, 85, 0.6);
    transition: color 0.2s ease;
    pointer-events: none;
}

.gentle-toggle:hover { background: rgba(240, 206, 170, 0.1); }

.gentle-toggle:hover .toggle-icon { color: #8b6655; }

.eye-closed { display: none; }

.gentle-toggle.toggle-active .eye-open { display: none; }

.gentle-toggle.toggle-active .eye-closed { display: block; }

.comfort-button {
    width: 100%;
    background: transparent;
    color: #8b6655;
    border: none;
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    margin-bottom: 32px;
    overflow: hidden;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.comfort-button:hover { transform: translateY(-1px); }

.comfort-button:hover .button-background {
    background: linear-gradient(135deg, #ebc49a 0%, #dbb88c 100%);
    box-shadow: 0 8px 16px rgba(240, 206, 170, 0.4);
}

.comfort-button:active { transform: translateY(0); }

.comfort-button.loading .button-text { opacity: 0; }

.comfort-button.loading .button-loader { opacity: 1; }

.comfort-button:hover .button-glow { opacity: 0.4; }

.soft-field.error .field-container {
    border-color: #d97757;
    background: rgba(217, 119, 87, 0.05);
}

.soft-field.error label { color: #d97757; }


/* ── Navigation ────────────────────────────────────────────────────── */

#sidenav-toggle {
    position: fixed;
    top: 10px;
    left: 200px;
    z-index: 1001;
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: left 0.3s;
}

.side-nav-app {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 78px;
    background: #11101D;
    padding: 6px 14px;
    z-index: 1001;
    /* Increased z-index to ensure it's on top */transition: all 0.5s ease;
}

.side-nav-app.open {
    width: 250px;
    left: 0;
}

.side-nav-app .logo-details {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.side-nav-app .logo-details .logo_name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.5s ease;
}

.side-nav-app.open .logo-details, .side-nav-app.open .logo-details .logo_name { opacity: 1; }

.side-nav-app .logo-details #btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 22px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
}

.side-nav-app.open .logo-details #btn { text-align: right; }

.side-nav-app i {
    color: #fff;
    height: 60px;
    min-width: 50px;
    font-size: 28px;
    text-align: center;
    line-height: 60px;
}

.side-nav-app .nav-list {
    margin-top: 20px;
    height: calc(100% - 60px);
    /* Adjust height to account for logo-details */padding: 0;
    overflow-y: auto;
}

.side-nav-app li {
    position: relative;
    margin: 8px 0;
    list-style: none;
}

.side-nav-app input {
    font-size: 15px;
    color: #fff;
    font-weight: 400;
    outline: none;
    height: 50px;
    width: 100%;
    border: none;
    border-radius: 12px;
    transition: all 0.5s ease;
    background: #1d1b31;
    padding-left: 50px;
}

.side-nav-app .bx-search {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 22px;
    background: #1d1b31;
    color: #fff;
    border-radius: 12px;
    padding: 0 14px;
    cursor: pointer;
}

.side-nav-app .bx-search:hover {
    background: #fff;
    color: #11101D;
}

.side-nav-app li i {
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    border-radius: 12px;
}

.side-nav-app li a {
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
    background: #11101D;
}

.side-nav-app li a:hover { background: #fff; }

.side-nav-app li a .links_name {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.side-nav-app.open li a .links_name {
    opacity: 1;
    pointer-events: auto;
}

.side-nav-app li a:hover .links_name, .side-nav-app li a:hover i {
    transition: all 0.5s ease;
    color: #11101D;
}

.side-nav-app li .tooltip {
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%);
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.4s ease;
    color: #11101D;
}

.side-nav-app li:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
}

.side-nav-app.open li .tooltip { display: none; }

.side-nav-app li.profile {
    height: 60px;
    width: 78px;
    padding: 10px 14px;
    background: #1d1b31;
    transition: all 0.5s ease;
    overflow: hidden;
    z-index: 1002;
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
}

.side-nav-app.open li.profile { width: 250px; }

.side-nav-app .profile a {
    display: block;
    background: transparent;
    height: 0;
}

.side-nav-app li .profile-details {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.side-nav-app li img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}

.side-nav-app li.profile .name, .side-nav-app li.profile .job {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
}

.side-nav-app li.profile .job { font-size: 12px; }

.side-nav-app .profile #log_out {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #1d1b31;
    width: 100%;
    height: 60px;
    line-height: 60px;
    transition: all 0.5s ease;
    cursor: pointer;
}

.side-nav-app.open .profile #log_out {
    width: 50px;
    background: none;
}

.side-nav-app li.active a { background: #fff; }

.side-nav-app li.active a .links_name, .side-nav-app li.active a i { color: #11101D; }

.side-nav-app li.active .tooltip { display: none; }


/* ── Topbar & Search ───────────────────────────────────────────────── */

.full-topbar { border-bottom: 2px solid #efefef; }

.notif-time {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: space-between;
}

.notif-read-label {
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    background: #e9ecef;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
}

.bday-notif-icon {
    background: #fce4ec;
    color: #e91e63;
}

.bday-notif-icon .bx { font-size: 15px; }

.notif-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background .15s;
}

.notif-item:hover { background: #fdf6f3; }

.notif-item.unread {
    background: #fff8f5;
    border-left: 3px solid #d1997c;
}

.notif-item .notif-time {
    font-size: 10px;
    color: #aaa;
}

.notif-item .notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-tab-btn { color: #6c757d; }

.notif-tab-btn.active {
    color: #d1997c;
    border-bottom: 2px solid #d1997c !important;
    font-weight: 600;
}

.userDropdown {
    min-width: 200px;
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    z-index: 2000;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.notifBellBtn {
    color: #d1997c;
    font-size: 22px;
    line-height: 1;
    position: relative;
}

.notifBellBtn:hover, .notifBellBtn:focus, .notifBellBtn:active { color: #d1997c !important; }

.notifBadge {
    padding: 6px 9px;
    font-size: 9px;
    text-align: center;
}

#notifDropdown {
    width: 390px;
    max-height: 460px;
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    z-index: 2000;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.search-results {
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background .12s;
    color: inherit;
}

.search-result-item:hover { background: #f8f9fa; }

.search-result-item:last-child { border-bottom: none; }

.badge-accent, .badge.badge-accent {
    background-color: var(--badge-accent) !important;
    color: #fff !important;
    border: none;
}

.sticky-search {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 0 20px;
    border-radius: 15px;
    transition: all 0.4s ease-in-out;
}

.hidden-search {
    opacity: 0 !important;
    transform: translateY(20px) scale(0.95) !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.sticky-search:not(.hidden-search) {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

#closeStickySearch {
    font-size: 2rem;
    line-height: 0;
    width: 30px;
    height: 30px;
    background: #d1997c;
    color: #fff !important;
    border-radius: 50px;
}

#closeStickySearch:hover { color: #fff !important; }

#openStickySearch {
    background: #d1997c;
    border: none;
    color: white;
    bottom: 28px;
    right: 92px;
    width: 50px;
    height: 50px;
    z-index: 1050;
    line-height: 0;
    transform: translateX(70px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

#openStickySearch:not(.hidden) {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

#openStickySearch:hover { transform: translateX(0) scale(1.1); }

#notifDropdown, #userDropdown { z-index: 1050 !important; }

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.13);
    z-index: 2000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-result-item:hover, .search-result-item:focus {
    background: #fdf6f2;
    outline: none;
}

.search-scroll-area {
    overflow-y: auto;
    max-height: 320px;
}

.search-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 4px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #888;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.search-group-header i { font-size: 13px; }

.search-result-item:last-of-type { border-bottom: 1px solid #e9ecef; }

.search-footer {
    padding: 10px 14px 12px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

.search-footer-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #adb5bd;
    margin-bottom: 8px;
}

.search-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.search-footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e9ecef;
    transition: background .12s, color .12s, border-color .12s, box-shadow .12s;
}

.search-footer-link-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(209,153,124,.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-footer-link-icon i { font-size: 13px; }

.search-footer-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(209,153,124,.25);
}

.search-footer-link:hover .search-footer-link-icon {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.search-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px 20px;
    gap: 6px;
}

.search-empty-icon {
    font-size: 2rem;
    color: #ced4da;
    line-height: 1;
    margin-bottom: 4px;
}

.search-empty-heading {
    font-size: .85rem;
    font-weight: 700;
    color: #495057;
}

.search-empty-sub {
    font-size: .75rem;
    color: #adb5bd;
    max-width: 240px;
    line-height: 1.4;
}


/* ── Notifications & Birthdays ─────────────────────────────────────── */

#birthdayFabDismiss {
    display: none;
    position: fixed;
    bottom: 70px;
    left: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #555;
    border: none;
    color: #fff;
    font-size: 14px;
    line-height: 2;
    cursor: pointer;
    z-index: 1062;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s;
}

#birthdayFabDismiss:hover { background: #222; }

#birthdayFabBadge {
    display: none;
    position: fixed;
    bottom: 34px;
    left: 78px;
    text-align: center;
    width: 91px;
    background: #e91e63;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 10px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(233, 30, 99, .35);
    z-index: 1060;
    align-items: center;
    pointer-events: none;
}

#birthdayFab {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e91e63;
    border: none;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(233,30,99,.45);
    z-index: 1060;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s;
}

#birthdayFab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(233,30,99,.6);
}

#birthdayFabCard {
    display: none;
    position: fixed;
    bottom: 90px;
    left: 28px;
    width: 320px;
    max-height: 330px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,.15);
    z-index: 9999;
}

#birthdayFabCard .fab-card-header {
    padding: 10px 14px 8px;
    background: #fce4ec;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f8bbd0;
}

#birthdayFabCard .fab-card-title {
    font-weight: 700;
    font-size: 13px;
    color: #c2185b;
    flex: 1;
}

#birthdayFabClose {
    background: none;
    border: none;
    color: #c2185b;
    font-size: 18px;
    line-height: 1;
    padding: 0 0 0 8px;
    cursor: pointer;
}

#birthdayFabList { padding: 4px 0; }

.appointment-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px;
    display: flex;
    align-items: center;
    animation: slideInRight 0.5s ease-out;
    border-left: 4px solid #e74c3c;
}

.appointment-notification .notification-title { color: #e74c3c; }


/* ── Appointments & Calendar ───────────────────────────────────────── */

.icon-appointments {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.fc-day-past { background-color: #f0f0f0 !important; }

.view-toggle-btn {
    background: #dfe3e3;
    border: 2px solid #c7c7c7;
    border-radius: 10px;
    color: #262626;
    padding: .5rem 1rem;
    margin-right: 5px;
    transition: background 0.3s;
}

.view-toggle-btn.active {
    background: #0c3061;
    color: #fff;
    border-color: #0c3061;
}

.view-toggle-btn:hover { background: #cbcbcb; }

.date-item {
    min-width: 60px;
    padding: 10px;
    border-radius: 10px;
    background: #e9d5c3;
    cursor: pointer;
    transition: background 0.3s;
    line-height: 1.4;
    color: #fff;
    position: relative;
}

.date-item:hover {
    background: #4d4d4d;
    background-color: #fff;
}

.date-item.active { background: #ffffff; }

.date-item .event-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff6f61;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.event-card {
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    overflow: unset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 1.5rem !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.event-card:last-child { margin-bottom: 0 !important; }

.event-card:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-card.completed {
    background: #c1c1c1;
    border: 2px solid #0c6151;
    opacity: 0.6;
}

.event-card.completed:hover { background: #d0d0d0; }

.event-card .event-details {
    flex: 1;
    overflow: hidden;
}

.event-card h6 {
    margin: 0;
    font-size: 1.3rem;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card p {
    margin: 5px 0 0;
    font-size: 16px;
}

.appt-seq-num {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d7d7d7;
    color: #555;
    border-radius: 50%;
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    pointer-events: none;
}

.upcoming-day-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    padding: 10px 0 4px;
    background: transparent !important;
    box-shadow: none !important;
    border: none;
    margin-bottom: 27px;
}

.upcoming-day-header::before {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.modal .date-item {
    min-width: 70px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.2;
    color: #262626;
    position: relative;
    border: 1px solid #d2d6da;
    margin: 0 4px;
}

.modal .date-item:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.modal .date-item.active {
    background: #e9d5c3;
    color: #d1997c;
    border-color: #cda795;
}

.modal .date-item.active .day-name { color: #d1997c; }

.modal .date-item.active .month { color: #d1997c; }

.date-item.past {
    opacity: 0.5;
    cursor: not-allowed;
}

.date-item.today { border: 2px solid #d18b69; }

.upcoming-header {
    color: #494949;
    padding: 5px;
    border-radius: 0.5rem;
}

.appointments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.appointments-table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.appointments-table table {
    width: 100%;
    border-collapse: collapse;
}

.appointments-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.appointments-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.appointments-table tr:hover { background-color: #f8f9fa; }

.appointment-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.event-card-highlight {
    border: 2px solid var(--primary) !important;
    background: rgba(209,153,124,.12) !important;
    box-shadow: 0 0 0 3px rgba(209,153,124,.25) !important;
    transition: all 0.3s ease;
}

#deleteAppointmentDetails {
    margin-top: 15px;
    font-size: 14px;
}

#deleteAppointmentDetails strong { color: #856404; }

.date-item.highlight {
    background-color: #709db9 !important;
    color: #ffffff;
}

.appt-status-pending, .badge.bg-pending, .status-badge.status-pending {
    background-color: var(--status-pending-bg)   !important;
    color: var(--status-pending-text)   !important;
    border: none;
}

.appt-status-confirmed, .badge.bg-confirmed, .status-badge.status-confirmed {
    background-color: var(--status-confirmed-bg) !important;
    color: var(--status-confirmed-text) !important;
    border: none;
}

.appt-status-completed, .badge.bg-completed, .status-badge.status-completed {
    background-color: var(--status-completed-bg) !important;
    color: var(--status-completed-text) !important;
    border: none;
}

.appt-status-cancelled, .badge.bg-cancelled, .status-badge.status-cancelled {
    background-color: var(--status-cancelled-bg) !important;
    color: var(--status-cancelled-text) !important;
    border: none;
}

#appointmentSidebar {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 420px;
    background: #fff;
    z-index: 10001;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    flex-direction: column;
}

#appointmentSidebar button, #appointmentSidebar a.btn, #serviceSidebar button, #serviceSidebar .btn { border: none !important; }

.upcoming-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: none !important;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    transition: background 0.15s;
    flex-shrink: 0;
}

.upcoming-icon-btn:hover { background: #f3f4f6; }

.upcoming-icon-btn[style*="color:#16a34a"]:hover { background: #f0fdf4; }

#appointmentSidebar .flex { display: flex; }

#appointmentSidebar .grid { display: grid; }

.appt-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.appt-summary-grid > :last-child {
    grid-column: 5 / -1;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    box-sizing: border-box;
}

.appt-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    border: 2px solid transparent;
    cursor: pointer;
}

.appt-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
}

.appt-summary-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(209,153,124,.18);
}

.aa-summary-card--active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(209,153,124,.18) !important;
    transform: translateY(-2px);
}

.aa-summary-filter-card.aa-summary-any-active { opacity: 0.55; }

.appt-summary-icon {
    font-size: 1.4rem;
    opacity: 0.75;
    flex-shrink: 0;
}

.appt-summary-total .appt-summary-icon { color: var(--primary); }

.appt-summary-pending .appt-summary-icon { color: var(--warning); }

.appt-summary-confirmed .appt-summary-icon { color: var(--info); }

.appt-summary-completed .appt-summary-icon { color: var(--success); }

.appt-summary-cancelled .appt-summary-icon { color: var(--danger); }

.appt-summary-popular .appt-summary-icon { color: var(--warning); }

.appt-summary-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: #2c3e50;
}

.appt-summary-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f8c8d;
    margin-top: 3px;
}

.appt-filter-bar {
    display: flex;
    align-items: center;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    background: #fff;
    padding: 10px 16px;
    box-shadow: var(--card-shadow);
    gap: 0;
}

.tech-avatar-filter-section { flex-shrink: 0; }

.tech-avatar-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tech-avatar-clip {
    overflow: hidden;
    max-width: 330px;
    flex-shrink: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.tech-avatar-clip--mobile {
    flex: 1;
    min-width: 0;
    max-width: none;
}

.tech-avatar-track, .mobile-tech-avatar-track {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.mobile-tech-avatar-track { gap: 8px; }

.tech-avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 7px;
    border-radius: 10px;
    transition: background 0.15s;
    flex-shrink: 0;
    border: none;
    background: none;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tech-avatar-item:hover { background: rgba(209,153,124,0.10); }

.tech-avatar-item:hover .tech-avatar-label { color: #fff; }

.tech-avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2.5px solid #dee2e6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.tech-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tech-avatar-initials {
    font-size: 17px;
    font-weight: 700;
    color: #6c757d;
    line-height: 1;
}

.tech-avatar-all {
    background: linear-gradient(135deg, #d1997c, #c27a5a);
    border-color: #d1997c;
    transition: background 0.2s, border-color 0.2s;
}

.tech-avatar-all i {
    color: #fff;
    font-size: 18px;
    transition: color 0.2s;
}

.tech-avatar-item:hover .tech-avatar-all {
    background: #fff;
    border-color: #d1997c;
}

.tech-avatar-item:hover .tech-avatar-all i { color: #d1997c; }

.tech-avatar-item.active .tech-avatar-all {
    background: #fff;
    border-color: #d1997c;
    box-shadow: 0 0 0 3px rgba(209,153,124,0.38);
}

.tech-avatar-item.active .tech-avatar-all i { color: #d1997c; }

.tech-avatar-label {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    line-height: 1.2;
    transition: color 0.15s;
}

.tech-avatar-item.active .tech-avatar-circle {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(209,153,124,0.30);
}

.tech-avatar-item.active .tech-avatar-label {
    color: #fff;
    font-weight: 700;
}

.tech-nav-arrow {
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    font-size: 11px;
    flex-shrink: 0;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
}

.tech-nav-arrow:hover {
    background: #f5ede8;
    border-color: #d1997c;
    color: #d1997c;
}

.tech-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mobile-tech-avatar-bar {
    padding: 8px 0 10px;
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
    box-shadow: var(--card-shadow);
}

.mobile-tech-avatar-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tech-avatar-all-fixed {
    flex-shrink: 0;
    margin-right: 16px !important;
}

.mobile-tech-avatar-track .tech-avatar-item { flex-shrink: 0; }

.svc-summary-total .appt-summary-icon { color: var(--primary); }

.svc-summary-active .appt-summary-icon { color: var(--success); }

.svc-summary-inactive .appt-summary-icon { color: var(--danger); }

.svc-summary-categories .appt-summary-icon { color: var(--info); }

.svc-summary-popular .appt-summary-icon { color: var(--warning); }

.appointments-list {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    min-width: 0;
}

.appointments-list .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.appointments-list table {
    min-width: 480px;
    font-size: .88rem;
}

.aa-list-avatar-wrap.client-card-avatar-wrap .client-card-avatar {
    width: 60px;
    height: 60px;
    border: 1.5px solid #f3f3f3;
}

.aa-list-avatar-wrap.client-card-avatar-wrap .avatar-placeholder {
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
}

.aa-list-avatar-wrap.client-card-avatar-wrap .loyalty-badge {
    bottom: -3px;
    right: -3px;
    font-size: .55rem;
    padding: 1px 4px;
}

.appt-history-cards-view { width: 100%; }

.appt-history-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.appt-history-card {
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: box-shadow .2s, transform .2s;
    position: relative;
}

.appt-history-card--pending { background: linear-gradient(135deg, #fffdf5 0%, #fff 60%); }

.appt-history-card--confirmed { background: linear-gradient(135deg, #f5f9ff 0%, #fff 60%); }

.appt-history-card--completed { background: linear-gradient(135deg, #f5fff8 0%, #fff 60%); }

.appt-history-card--cancelled { background: linear-gradient(135deg, #fff5f5 0%, #fff 60%); }

.appt-history-card--clickable { cursor: pointer; }

.appt-history-card--clickable:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.appt-history-card--archive { opacity: .72; }

.appt-history-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.appt-history-card-service {
    font-weight: 700;
    font-size: .87rem;
    color: #1a1a2e;
    line-height: 1.3;
}

.appt-history-card-meta {
    font-size: .77rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.appt-history-card-amount {
    font-weight: 700;
    font-size: .87rem;
    color: var(--primary);
}

.appt-list-archive-tag {
    font-size: .65rem;
    background: #e9ecef;
    color: #6c757d;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
}

.appt-history-list-view { width: 100%; }

.appt-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.appt-list-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.appt-list-item--pending { background: linear-gradient(90deg, #fffdf5 0%, #fff 80%); }

.appt-list-item--confirmed { background: linear-gradient(90deg, #f5f9ff 0%, #fff 80%); }

.appt-list-item--completed { background: linear-gradient(90deg, #f5fff8 0%, #fff 80%); }

.appt-list-item--cancelled { background: linear-gradient(90deg, #fff5f5 0%, #fff 80%); }

.appt-list-item--clickable { cursor: pointer; }

.appt-list-item--clickable:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.09);
    transform: translateX(2px);
}

.appt-list-item--archive { opacity: .72; }

.appt-list-date {
    min-width: 72px;
    width: 72px;
    padding: 12px 8px;
    background: rgba(0,0,0,.025);
    border-right: 1px solid #edf0f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.appt-list-date-day {
    font-weight: 700;
    font-size: .84rem;
    color: #212529;
    line-height: 1.2;
}

.appt-list-date-year {
    font-size: .64rem;
    color: #adb5bd;
    line-height: 1;
}

.appt-list-date-time {
    font-size: .7rem;
    color: #6c757d;
    margin-top: 3px;
}

.appt-list-info {
    flex: 1;
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.appt-list-service {
    font-weight: 700;
    font-size: .86rem;
    color: #1a1a2e;
}

.appt-list-staff {
    font-size: .75rem;
    color: #6c757d;
}

.appt-list-right {
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.appt-list-amount {
    font-weight: 700;
    font-size: .84rem;
    color: var(--primary);
}

.appt-list-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #edf0f4;
    margin-top: 6px;
}

.appt-list-total-label {
    font-size: .8rem;
    color: #6c757d;
}

.appt-list-total-amount {
    font-weight: 700;
    font-size: .88rem;
    color: var(--primary);
}

.appt-history-cards-view .appt-list-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.appt-history-cards-view .appt-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
}

.appt-history-cards-view .appt-list-item--clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

.appt-history-cards-view .appt-list-right {
    order: 0;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 10px 12px 6px;
    border-bottom: 1px solid #edf0f4;
}

.appt-history-cards-view .appt-list-info {
    order: 1;
    padding: 8px 12px 4px;
    width: 100%;
}

.appt-history-cards-view .appt-list-date {
    order: 2;
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 12px 10px;
    border-right: none;
    background: transparent;
    text-align: left;
}

.appt-history-cards-view .appt-list-date-year { display: none; }

.appt-history-cards-view .appt-list-date-day {
    font-size: .78rem;
    font-weight: 600;
}

.appt-history-cards-view .appt-list-date-time { margin-top: 0; }

.aa-control-bar {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
}

.aa-control-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.aa-has-check {
    grid-template-columns: 36px minmax(160px,2fr) 140px minmax(120px,1.2fr) minmax(100px,1fr) 100px 90px 116px;
}

.aa-no-check {
    grid-template-columns: minmax(160px,2fr) 140px minmax(120px,1.2fr) minmax(100px,1fr) 100px 90px 116px;
}

.aa-header {
    display: grid;
    background: #f4f6f9;
    border: 1px solid #e4e8ee;
    border-radius: 10px 10px 0 0;
    padding: 0;
}

.aa-col {
    padding: 9px 12px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9aa0ac;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aa-col-check {
    display: flex;
    align-items: center;
    padding: 9px 8px 9px 14px;
}

.aa-col-actions {
    text-align: right;
    padding-right: 14px;
}

.aa-row {
    display: grid;
    background: #fff;
    border-bottom: 1px solid #f0f3f6;
    transition: background .13s;
    cursor: pointer;
    position: relative;
    align-items: center;
}

.aa-row:last-child {
    border-radius: 0 0 10px 10px;
    border-bottom: none;
}

.aa-row:hover { background: #fafbfd; }

.aa-row.selected { background: #fff8f5; }

#allApptList.aa-list-view .aa-row.selected { box-shadow: inset 3px 0 0 var(--primary); }

#allApptList.aa-list-view {
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.aa-cell {
    padding: 11px 12px;
    font-size: .82rem;
    color: #3a3f47;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

.aa-cell-check {
    padding: 11px 8px 11px 14px;
    display: flex;
    align-items: center;
}

.aa-cell-status { overflow: visible; }

.aa-cell-actions {
    padding: 7px 10px 7px 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-shrink: 0;
    overflow: visible;
}

.aa-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
}

.aa-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
    overflow: hidden;
}

.aa-avatar--initials {
    background: var(--primary);
    color: #fff;
}

.aa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.aa-avatar-wrap .loyalty-badge {
    position: absolute;
    bottom: -3px;
    right: -4px;
    z-index: 2;
}

.aa-customer {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

#allApptListWrap .aa-cell .avatar-placeholder, #allApptListWrap .aa-cell .client-card-avatar-wrap .avatar-placeholder {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.1rem !important;
    position: static;
}

#allApptListWrap .aa-cell .client-card-avatar {
    width: 60px !important;
    height: 60px !important;
}

.aa-name-wrap { min-width: 0; }

.aa-name {
    font-weight: 600;
    font-size: .84rem;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aa-email {
    font-size: .72rem;
    color: #8a94a2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aa-date-line {
    font-weight: 600;
    font-size: .81rem;
    color: #1a1a2e;
}

.aa-time-line {
    font-size: .71rem;
    color: #8a94a2;
    margin-top: 1px;
}

.aa-amount {
    font-weight: 700;
    color: var(--primary);
    font-size: .83rem;
}

.aa-cell-actions .view-btn, .aa-cell-actions .edit-btn, .aa-cell-actions .delete-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: .88rem;
    flex-shrink: 0;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #5c6370;
    transition: background .12s, color .12s, border-color .12s;
    cursor: pointer;
}

.aa-cell-actions .view-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.aa-cell-actions .edit-btn:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.aa-cell-actions .delete-btn:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.aa-cards-view .aa-header { display: none; }

.aa-cards-view #allApptList {
    border: none;
    background: transparent;
    overflow: visible;
}

.aa-cards-view #allApptListWrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.aa-cards-view .aa-row {
    display: flex;
    flex-direction: column;
    border-bottom: none;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
    cursor: pointer;
}

.aa-cards-view .aa-row:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.11);
    transform: translateY(-2px);
}

.aa-cards-view .aa-row.selected, .aa-cards-view .aa-row.selected:hover {
    border-color: #d1997c;
    box-shadow: 0 0 0 2px rgba(209,153,124,.28);
}

.aa-card-select {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: none;
}

.aa-card-select input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d1997c;
}

.aa-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aa-card-price {
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 3px;
    text-align: right;
}

.aa-card-service-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    font-size: .83rem;
    color: #444;
}

.aa-card-service-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.aa-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px 14px;
    border-top: 1px solid #f2f2f2;
}

.aa-card-footer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
}

.aa-card-footer-actions .btn {
    flex: 0 0 auto;
    font-size: .78rem;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 500;
}

.mobile-upcoming-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1045;
    cursor: pointer;
}

.mobile-upcoming-tab-inner {
    background: linear-gradient(to bottom, #d1997c, #cb8a6b);
    color: white;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    gap: 4px;
}

.mobile-upcoming-badge {
    font-size: 11px;
    font-weight: 700;
}

.mobile-upcoming-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1046;
}

.mobile-upcoming-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 90%;
    max-width: 380px;
    background: white;
    z-index: 10001;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    overflow: hidden;
}


/* ── Clients ───────────────────────────────────────────────────────── */

.detail-header {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.view-history-btn { color: #17a2b8; }

.view-history-btn:hover { color: #138496; }

.client-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: box-shadow .18s ease, transform .18s ease;
    border: 1px solid rgba(0,0,0,.06);
}

.client-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.11);
    transform: translateY(-2px);
}

.client-card.selected {
    border-color: #d1997c;
    box-shadow: 0 0 0 2px rgba(209,153,124,.28);
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.client-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f3f3;
    flex-shrink: 0;
    display: block;
}

.client-card-identity {
    flex: 1;
    min-width: 0;
}

.client-card-name {
    font-weight: 700;
    font-size: .95rem;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.client-card-email {
    font-size: .78rem;
    color: #8a9099;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-card-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    font-size: .83rem;
    color: #444;
}

.client-card-phone a {
    color: inherit;
    text-decoration: none;
}

.client-card-phone a:hover {
    color: #d1997c;
    text-decoration: underline;
}

.client-card-phone .text-muted { font-size: .83rem; }

.client-card-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.client-card-select {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.client-card-select input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d1997c;
}

.client-card-meta-val a, a.client-card-meta-val {
    color: inherit;
    text-decoration: none;
}

.client-card-meta-val a:hover, a.client-card-meta-val:hover {
    color: #d1997c;
    text-decoration: underline;
}

.client-card-meta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #f0f0f0;
    text-align: center;
    gap: 2px;
}

.client-card-meta-box-val {
    font-weight: 700;
    font-size: .82rem;
    color: #1a1a2e;
    line-height: 1.2;
}

.client-card-meta-box-lbl {
    font-size: .62rem;
    color: #8a9099;
    text-transform: uppercase;
    letter-spacing: .03em;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.client-card--inactive .client-card-meta-box { background: #f9f9f9; }

.client-card--inactive .client-card-meta-box-val { color: #9ca3af; }

.client-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px 14px;
    border-top: 1px solid #f2f2f2;
}

.client-card-footer .client-card-toggle { margin-right: auto; }

.sidebar-client-status-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .03em;
    margin-top: 2px;
}

.sidebar-client-status-badge--active {
    background: #d1e7dd;
    color: #0f5132;
    position: absolute;
    right: 0;
    top: 0;
}

.sidebar-client-status-badge--inactive {
    background: #e9ecef;
    color: #6c757d;
    position: absolute;
    right: 0;
    top: 0;
}

.client-card-avatar-wrap .avatar-placeholder {
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
    position: static;
}

.client-card-avatar-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.client-card--inactive {
    background: #f8f9fa;
    border-left: 3px solid #ced4da !important;
}

.client-card--inactive .client-card-name { color: #9ca3af; }

.client-card--inactive .client-card-email { color: #b5bec9; }

.client-card--inactive .avatar-placeholder {
    background-color: #adb5bd;
    color: #fff;
}

.client-card--inactive .loyalty-badge {
    background: linear-gradient(135deg, #adb5bd 0%, #868e96 100%);
}

.client-card-badge-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    margin-left: auto;
}

.client-card--inactive .client-card-badge-col .badge { opacity: .7; }

.client-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d1997c;
}

.client-col-span-full { grid-column: 1 / -1; }

.client-error-icon {
    font-size: 2.2rem;
    color: #dc3545;
}


/* ── Services ──────────────────────────────────────────────────────── */

.service-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: white;
    z-index: 1100;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-sidebar button, .service-sidebar .btn { border: none !important; }

.service-sidebar.active { right: 0; }

.booking-status-box {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 5px;
    font-size: 0.875rem;
    font-weight: 600;
}

.booking-status-box.pending {
    background: #fff3cd;
    color: #856404;
}

.booking-status-box.confirmed {
    background: #cff4fc;
    color: #055160;
}

.booking-status-box.completed {
    background: #d1e7dd;
    color: #0f5132;
}

.booking-status-box.cancelled {
    background: #f8d7da;
    color: #842029;
}

.svc-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 1.25rem;
}

.svc-summary-filter { cursor: pointer; }

.svc-summary-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.svc-popular-name {
    font-size: 1rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.svc-cat-pill {
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 500;
    border: 1.5px solid #e9ecef;
    color: #4b5563;
    background: #fff;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}

.svc-cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(209,153,124,.06);
}

.svc-cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.svc-cat-pill-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    font-size: .75rem;
    line-height: 1;
    opacity: .65;
    transition: opacity .15s;
}

.svc-cat-pill:hover .svc-cat-pill-x,
.svc-cat-pill.active .svc-cat-pill-x { opacity: 1; }

.svc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.svc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: box-shadow .18s ease, transform .18s ease;
    border: 1px solid rgba(0,0,0,.06);
}

.svc-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.11);
    transform: translateY(-2px);
}

.svc-card--inactive { opacity: .65; }

.svc-card--inactive:hover { opacity: .85; }

.svc-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.svc-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(209,153,124,.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.svc-card--inactive .svc-icon-wrap {
    background: #f3f4f6;
    color: #9ca3af;
}

.svc-card-identity {
    flex: 1;
    min-width: 0;
}

.svc-card-name {
    font-weight: 700;
    font-size: .95rem;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.svc-card-category {
    font-size: .74rem;
    color: #8a9099;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.svc-badge-active {
    background: rgba(25,135,84,.1);
    color: #198754;
    font-weight: 600;
}

.svc-badge-inactive {
    background: rgba(220,53,69,.1);
    color: #dc3545;
    font-weight: 600;
}

.svc-card-desc {
    font-size: .78rem;
    color: #6b7280;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.svc-card-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.svc-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .77rem;
    color: #555;
    overflow: hidden;
}

.svc-card-meta-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(209,153,124,.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    flex-shrink: 0;
}

.svc-card--inactive .svc-card-meta-icon {
    background: #f3f4f6;
    color: #9ca3af;
}

.svc-card-meta-val {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.svc-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px 14px;
    border-top: 1px solid #f2f2f2;
}

.svc-card-footer .svc-card-toggle { margin-right: auto; }

.svc-card-badge-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.svc-card-price {
    font-size: .76rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .01em;
}

.svc-card-meta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #f0f0f0;
    text-align: center;
    gap: 2px;
}

.svc-card-meta-box-val {
    font-weight: 700;
    font-size: .82rem;
    color: #1a1a2e;
    line-height: 1.2;
}

.svc-card-meta-box-lbl {
    font-size: .62rem;
    color: #8a9099;
    text-transform: uppercase;
    letter-spacing: .03em;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.svc-card--inactive .svc-card-meta-box { background: #f9f9f9; }

.svc-card--inactive .svc-card-meta-box-val { color: #9ca3af; }

.svc-cat-scroll-outer {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.svc-cat-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.svc-cat-scroll-inner {
    display: flex;
    gap: 6px;
    transition: transform .25s ease;
}

.svc-cat-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    padding: 0;
    font-size: .9rem;
    transition: background .15s, border-color .15s, color .15s;
}

.svc-cat-arrow:hover {
    background: rgba(209,153,124,.08);
    border-color: var(--primary);
    color: var(--primary);
}

.svc-booking-counts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.svc-bcount-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    border-radius: 8px;
    text-align: center;
    gap: 2px;
    border: 1px solid transparent;
}

.svc-bcount-num {
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.2;
}

.svc-bcount-lbl {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.svc-bcount-box.svc-bcount-pending {
    background: var(--status-pending-bg);
    border-color: rgba(133,100,4,.18);
}

.svc-bcount-box.svc-bcount-confirmed {
    background: var(--status-confirmed-bg);
    border-color: rgba(8,66,152,.18);
}

.svc-bcount-box.svc-bcount-completed {
    background: var(--status-completed-bg);
    border-color: rgba(15,81,50,.18);
}

.svc-bcount-box.svc-bcount-cancelled {
    background: var(--status-cancelled-bg);
    border-color: rgba(132,32,41,.18);
}

.svc-bcount-pending .svc-bcount-num, .svc-bcount-pending .svc-bcount-lbl { color: var(--status-pending-text); }

.svc-bcount-confirmed .svc-bcount-num, .svc-bcount-confirmed .svc-bcount-lbl { color: var(--status-confirmed-text); }

.svc-bcount-completed .svc-bcount-num, .svc-bcount-completed .svc-bcount-lbl { color: var(--status-completed-text); }

.svc-bcount-cancelled .svc-bcount-num, .svc-bcount-cancelled .svc-bcount-lbl { color: var(--status-cancelled-text); }

.svc-booking-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .18s, transform .18s;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    margin-bottom: 7px;
}

.svc-booking-item:last-child { margin-bottom: 0; }

.svc-booking-item:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transform: translateX(2px);
}

.svc-booking-item--pending { background: linear-gradient(90deg, #fffdf5 0%, #fff 80%); }

.svc-booking-item--confirmed { background: linear-gradient(90deg, #f5f9ff 0%, #fff 80%); }

.svc-booking-item--completed { background: linear-gradient(90deg, #f5fff8 0%, #fff 80%); }

.svc-booking-item--cancelled { background: linear-gradient(90deg, #fff5f5 0%, #fff 80%); }

.svc-booking-date-col {
    min-width: 54px;
    width: 54px;
    padding: 9px 5px;
    background: rgba(0,0,0,.025);
    border-right: 1px solid #edf0f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.svc-booking-date-day {
    font-weight: 700;
    font-size: .75rem;
    color: #212529;
    line-height: 1.2;
}

.svc-booking-date-mon {
    font-size: .6rem;
    color: #adb5bd;
    line-height: 1;
}

.svc-booking-date-time {
    font-size: .62rem;
    color: #6c757d;
    margin-top: 2px;
}

.svc-booking-info {
    flex: 1;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
}

.svc-booking-client {
    font-weight: 700;
    font-size: .8rem;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.svc-booking-staff {
    font-size: .7rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.svc-booking-right {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}


/* ── Staff ─────────────────────────────────────────────────────────── */

.staff-summary-grid, .timelog-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 1.25rem;
}

.staff-summary-name {
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-summary-card--active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(209,153,124,.18) !important;
}

.staff-summary-filter-card:not(.staff-summary-card--active).any-filter-active { opacity: .55; }

.staff-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.staff-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #ede8e3;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .18s, transform .18s;
    position: relative;
}

.staff-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

.staff-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-card-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.staff-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f3f3;
    flex-shrink: 0;
    display: block;
}

.staff-card-identity {
    flex: 1;
    min-width: 0;
}

.staff-card-name {
    font-weight: 700;
    font-size: .95rem;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.staff-card-email {
    font-size: .78rem;
    color: #8a9099;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-card-badge-col { flex-shrink: 0; }

.staff-card-meta {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6px;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.staff-card-meta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #f0f0f0;
    text-align: center;
    gap: 2px;
}

.staff-card-meta-box--wide {
    align-items: flex-start;
    padding: 7px 10px;
    text-align: left;
}

.staff-card-meta-box-val {
    font-weight: 700;
    font-size: .82rem;
    color: #1a1a2e;
    line-height: 1.2;
}

.staff-card-meta-box-val--sm {
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.staff-card-meta-box-lbl {
    font-size: .62rem;
    color: #8a9099;
    text-transform: uppercase;
    letter-spacing: .03em;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.staff-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px 14px;
    border-top: 1px solid #f2f2f2;
}

.staff-card-footer .staff-card-toggle { margin-right: auto; }

.staff-card--inactive { opacity: .75; }

.staff-card--inactive .staff-card-name { color: #9ca3af; }

.staff-card--inactive .staff-card-email { color: #b5bec9; }

.staff-card--inactive .staff-card-meta-box { background: #f9f9f9; }

.staff-card--inactive .staff-card-meta-box-val { color: #9ca3af; }


/* ── Timer FAB ─────────────────────────────────────────────────────── */

.has-timer-fab .quick-scroll-top { bottom: 150px; }

.timer-fab {
    position: fixed;
    bottom: 87px;
    right: 24px;
    z-index: 1040;
}

.timer-fab-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg,#2d6a4f,#40916c);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    position: relative;
    transition: transform .2s;
}

.timer-fab-btn:hover { transform: scale(1.06); }

.timer-fab-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 11px;
    height: 11px;
    background: #ef4444;
    border-radius: 50%;
    display: none;
    border: 2px solid white;
    animation: timerPulse 2s infinite;
}

.timer-panel {
    display: none;
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 310px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden;
    transform-origin: bottom right;
    animation: timerSlideIn .2s ease;
}

.timer-panel-header {
    background: linear-gradient(135deg,#2d6a4f,#40916c);
    padding: 14px 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timer-panel-header-name {
    font-weight: 700;
    font-size: .95rem;
}

.timer-panel-header-date {
    font-size: .78rem;
    opacity: .85;
}

.timer-panel-close {
    background: none;
    border: none;
    color: white;
    padding: 4px;
    cursor: pointer;
    opacity: .8;
    line-height: 1;
}

.timer-panel-close:hover { opacity: 1; }

.timer-panel-clock {
    padding: 20px 16px 8px;
    text-align: center;
}

.timer-state-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin-bottom: 6px;
}

.timer-state--idle { color: #6b7280; }

.timer-state--working { color: #2d6a4f; }

.timer-state--lunch { color: #f59e0b; }

.timer-display {
    font-size: 2.6rem;
    font-weight: 700;
    font-family: monospace;
    color: #111827;
    line-height: 1;
    letter-spacing: 2px;
}

.timer-lunch-line {
    font-size: .78rem;
    color: #6b7280;
    margin-top: 6px;
    min-height: 18px;
}

.timer-actions {
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timer-btn-clockin {
    background-color: #d1997c;
    color: #fff;
    border: 1px solid #d1997c;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    font-size: .875rem;
    transition: background-color .15s,color .15s;
}

.timer-btn-clockin:hover {
    background-color: transparent;
    color: #d1997c;
}

.timer-active-actions {
    display: none;
    flex-direction: row;
    gap: 8px;
}

.timer-btn-lunch {
    flex: 1;
    background: transparent;
    color: #d1997c;
    border: 1px solid rgba(209,153,124,.35);
    padding: 8px 10px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-size: .875rem;
    transition: background-color .15s,border-color .15s;
}

.timer-btn-lunch:hover {
    background: rgba(209,153,124,.08);
    border-color: #d1997c;
}

.timer-btn-clockout {
    flex: 1;
    background: transparent;
    color: #dc3545;
    border: 1px solid rgba(220,53,69,.25);
    padding: 8px 10px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-size: .875rem;
    transition: background-color .15s,border-color .15s;
}

.timer-btn-clockout:hover {
    background: rgba(220,53,69,.06);
    border-color: #dc3545;
}

.timer-btn-clockout.timer-clockout--confirm {
    background: #7f1d1d;
    color: white;
    border-color: #7f1d1d;
}

.timer-summary {
    display: none;
    padding: 12px 16px;
    background: #f0fdf4;
    border-top: 1px solid #bbf7d0;
    font-size: .85rem;
    color: #15803d;
    text-align: center;
}

.timer-footer {
    padding: 8px 16px 12px;
    text-align: center;
    border-top: 1px solid #f3f4f6;
}

.timer-footer a {
    font-size: .78rem;
    color: #6b7280;
    text-decoration: none;
}

.timer-footer a:hover { color: #374151; }


/* ── Modals & Sidebars ─────────────────────────────────────────────── */

.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.detail-overlay.active { transform: translateX(0); }


.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1056;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.sidebar-backdrop.active { display: block; }

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
}

.sidebar .sidebar-header {
    margin-bottom: 20px;
    transition: opacity 0.3s;
}

.modal-content {
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
}

.install-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #191919;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999990;
    text-align: center;
}

.install-popup p { margin: 0 0 10px 0; }

.install-popup button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-header {
    background: #f1f1f1;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    padding: 10px 15px;
    border-top: 1px solid #dee2e6;
}


.sidebar-backdrop.show { opacity: 1; }

.sidebar-footer-actions {
    background: #fff;
    flex-shrink: 0;
}

.sidebar-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    background: #fff;
    box-shadow: -6px 0 32px rgba(0,0,0,.13);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 1057;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-modal.active { transform: translateX(0); }

.aaf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #eef0f3;
    background: #fff;
    flex-shrink: 0;
}

.aaf-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aaf-header-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(209,153,124,.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.aaf-header-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
    letter-spacing: .01em;
}

.aaf-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background .14s, color .14s;
    flex-shrink: 0;
}

.aaf-close:hover {
    background: #fee2d5;
    color: var(--primary);
}

.aaf-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aaf-section-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aaf-section-label i {
    font-size: .9rem;
    color: var(--primary);
}

.aaf-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.aaf-custom-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #fafbfc;
    border-radius: 10px;
    border: 1px solid #eef0f3;
    margin-top: 2px;
}

.aaf-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aaf-date-label {
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    width: 28px;
    flex-shrink: 0;
}

.aaf-date-input {
    flex: 1;
    padding: 7px 10px;
    font-size: .82rem;
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    color: #374151;
    background: #fff;
    transition: border-color .15s;
}

.aaf-date-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(209,153,124,.15);
}

.aaf-select {
    width: 100%;
    padding: 9px 12px;
    font-size: .84rem;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    appearance: auto;
    transition: border-color .15s, box-shadow .15s;
}

.aaf-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(209,153,124,.15);
}

.aaf-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eef0f3;
    background: #fff;
    flex-shrink: 0;
}

.aaf-btn-reset {
    flex: 0 0 auto;
    padding: 9px 18px;
    font-size: .84rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    transition: background .14s, border-color .14s;
}

.aaf-btn-reset:hover {
    background: #fee2d5;
    border-color: var(--primary);
    color: var(--primary);
}

.aaf-btn-apply {
    flex: 1;
    padding: 9px 18px;
    font-size: .84rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid var(--primary);
    background: var(--primary);
    color: #fff;
    transition: background .14s, border-color .14s;
}

.aaf-btn-apply:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    max-width: 740px;
}

.modal-dialog-scrollable .modal-content > form {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.sidebar-modal > form {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.drawer-title {
    margin: 0;
    font-weight: 600;
}

.drawer-close-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
}

.drawer-view-all {
    color: #494949;
    display: block;
    text-align: right;
    margin-bottom: 12px;
    font-size: 13px;
}


/* ── Summary Cards ─────────────────────────────────────────────────── */

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transition: 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-card h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card small {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.summary-card.active { border-left-color: var(--success); }

.summary-card.inactive { border-left-color: var(--danger); }

.summary-card.revenue { border-left-color: var(--info); }

.summary-card.popular { border-left-color: var(--warning); }

.clients-summary-card--active {
    box-shadow: 0 0 0 2px var(--primary), 0 4px 12px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

.clients-summary-filter-card:not(.clients-summary-card--active).any-filter-active { opacity: 0.6; }


/* ── Dashboard ─────────────────────────────────────────────────────── */

.stat-upcoming { border-color: var(--primary); }

.stat-finished { border-color: var(--success); }

.stat-canceled { border-color: var(--secondary); }

.dashboard-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}


/* ── Settings ──────────────────────────────────────────────────────── */

#settingsTabs .nav-link {
    color: #6c757d;
    font-weight: 600;
    font-size: .85rem;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 16px;
    transition: color .15s, border-color .15s;
}

#settingsTabs .nav-link:hover { color: var(--primary); }

#settingsTabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

#settingsTabs { border-bottom: 2px solid #e9ecef; }


/* ── Footer & PWA ──────────────────────────────────────────────────── */

.logo_footer {
    width: 150px;
    display: block;
    margin-right: auto;
    margin: 80px auto 35px auto;
}

.footer {
    text-align: left;
    color: #6c757d;
    font-size: 0.9em;
    background: #fff;
}

.footer .heart { color: #FF5E62; }

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}


/* ── Utilities ─────────────────────────────────────────────────────── */

.status-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.status-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.status-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.status-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .status-slider { background-color: var(--success); }

input:checked + .status-slider:before { transform: translateX(26px); }

.search-input {
    padding-left: 35px;
    border-radius: 20px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #6c757d;
}

.new-btn {
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.new-btn:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.filter-toggle-btn {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-theme {
    background-color: #d1997c;
    color: #fff;
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1997c;
}

.btn-theme:hover {
    background-color: transparent;
    color: #d1997c;
    border-color: #d1997c;
}

.quick-scroll-top {
    position: fixed;
    bottom: 90px;
    right: 27px;
    background-color: #d1997c;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    z-index: 9999;
    padding: 7px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(70px);
    transition: all 0.4s ease-in-out;
}

.quick-scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quick-scroll-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    background: #9b6a50;
}

.quick-scroll-top span, .quick-scroll-top:hover span {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    position: relative;
    top: -14px;
    right: -1px;
}

.quick-scroll-top svg, .quick-scroll-top:hover svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    position: relative;
    top: -4px;
}

.btn-cc-edit {
    background: transparent;
    border: 1px solid rgba(209,153,124,.35);
    color: #d1997c;
}

.btn-cc-edit:hover {
    background: rgba(209,153,124,.08);
    border-color: #d1997c;
    color: #d1997c;
}

.btn-cc-history {
    background: transparent;
    border: 1px solid rgba(209,153,124,.35);
    color: #d1997c;
}

.btn-cc-history:hover {
    background: rgba(209,153,124,.08);
    border-color: #d1997c;
    color: #d1997c;
}

.btn-cc-delete {
    background: transparent;
    border: 1px solid rgba(220,53,69,.25);
    color: #dc3545;
    flex: 0 0 auto !important;
    padding: 5px 10px !important;
}

.btn-cc-delete:hover {
    background: rgba(220,53,69,.06);
    border-color: #dc3545;
    color: #dc3545;
}


/* ── Other ─────────────────────────────────────────────────────────── */

.container { padding: 0; }

.row { margin: 0; }

::-webkit-scrollbar {
    background-color: #d0d0d0;
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb { background-color: #262626; }

input, textarea {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.bday-email-btn {
    background: #e91e63;
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border: none;
    border-radius: 4px;
    line-height: 1.4;
    align-self: flex-end;
}

.bday-email-btn:hover {
    background: #c2185b;
    color: #fff;
}

.tab-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    vertical-align: middle;
}

.notif-section-label {
    padding: 5px 12px 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.bday-fab-item {
    cursor: pointer;
    padding: 8px 14px;
}

.bday-sub { font-size: 12px; }

.mobile-filter-trigger {
    position: fixed;
    left: -33px !important;
    top: 47%;
    transform: rotate(-90deg);
    z-index: 1000;
    cursor: pointer;
}

.mobile-filter-label {
    background: linear-gradient(to bottom, #d1997c, #cb8a6b);
    color: white;
    border-radius: 0 0 12px 12px;
    box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.22);
    padding: 10px 18px 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.mobile-filter-label .vertical-text {
    white-space: nowrap;
    display: block;
}

.mobile-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.mobile-filter-header {
    padding: 12px 22px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
}

.mobile-filter-title {
    margin: 0;
    font-weight: 700;
    color: #222;
}

.mobile-filter-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #888;
    padding: 0 12px;
    cursor: pointer;
}

.mobile-filter-content { padding: 25px 20px 25px; }

.mobile-filter-section {
    padding: 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 16px;
}

.card {
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.card.card-background .full-background {
    background-position: 50%;
    background-size: cover;
    margin-bottom: 30px;
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: .5rem;
}

.card.card-background:after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    display: block;
    content: "";
    background: rgb(0 0 0 / 2%);
    border-radius: .5rem;
}

.pt-8 { padding-top: 8.5rem !important; }

#sunAndMoon {
    position: absolute;
    top: 20%;
    left: 50%;
    margin: -110px 0 0 -600px;
    width: 1200px;
    height: 1200px;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.7s ease-in-out;
}

#gradient {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    transition: all 1.4s;
    z-index: 0;
}

#sun, #moon {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -40px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    display: none;
}

#moon :before, #moon :after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

#moon :before {
    background-color: transparent;
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.1);
}

#moon :after {
    background-color: transparent;
    box-shadow: 0 0 0 48px rgba(32, 94, 114, 0.1);
}

#moon-shadow {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 0px 0px 0px 16px rgba(32, 94, 114, 0.6);
}

#sun {
    background-color: yellow;
    box-shadow: 0 0 100px #ffff36;
}

#moon {
    background-color: white;
    box-shadow: 0 0 10px white;
}

.morning {
    background: linear-gradient(180deg, #93d5ef 0%, #0e45ff 100%);
}

.afternoon {
    background: linear-gradient(180deg, #1E90FF 0%, #87CEEB 100%);
}

.evening { background: #000214; }

.star {
    background: white;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    position: absolute;
    display: none;
}

.morning .star, .evening .star { display: block; }

#sun.initial-rise { animation: sunRise 1.4s ease-in-out forwards; }

#moon.initial-rise { animation: moonRise 1.4s ease-in-out forwards; }

.c1 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
}

.c2 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    top: -50px;
    left: 25px;
    background: #fff;
}

.c3 {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    position: absolute;
    top: -25px;
    left: 100px;
    background: #fff;
}

.c4 {
    width: 110px;
    height: 15px;
    background: #fff;
    position: absolute;
    left: 25px;
    top: 35px;
}

.cloud1, .cloud2, .cloud3 {
    position: absolute;
    display: none;
    z-index: 1;
}

.morning .cloud1, .morning .cloud2, .morning .cloud3, .afternoon .cloud1, .afternoon .cloud2, .afternoon .cloud3, .evening .cloud1, .evening .cloud2, .evening .cloud3 { display: block; }

.cloud1 {
    top: 78px;
    opacity: 0.3;
    animation: slide 80s linear infinite;
}

.cloud2 {
    top: 190px;
    opacity: 0.6;
    animation: slide 60s linear infinite;
}

.cloud3 {
    top: 115px;
    opacity: 1;
    animation: slide_right 70s linear infinite;
}

.evening .cloud1 { opacity: 0.3; }

.evening .cloud2 { opacity: 0.6; }

.evening .cloud3 { opacity: 0.7; }

.btn {
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.stat-overdue { border-color: var(--danger); }

.stat-noshow { border-color: #fd7e14; }

.stat-paid { border-color: var(--info); }

.stat-total { border-color: #6f42c1; }

.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    display: none;
}

.no-data-message h5 {
    margin-bottom: 10px;
    font-weight: 500;
}

.no-data-message p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.2rem 0 0.1rem;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.78rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.icon-revenue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.icon-tax {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.icon-clients {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.icon-pending {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.icon-confirmed {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

.icon-completed {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.icon-cancelled {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.icon-staff {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.icon-services {
    background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%);
    color: white;
}

.icon-popular {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: #333;
}

.icon-top {
    background: linear-gradient(135deg, #f8b500 0%, #fceabb 100%);
    color: #333;
}

.badge-change {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.badge-up {
    background-color: #d4edda;
    color: #155724;
}

.badge-down {
    background-color: #f8d7da;
    color: #721c24;
}

.activity-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.activity-item:last-child { border-bottom: none; }

.activity-time {
    font-size: 0.75rem;
    color: #95a5a6;
}

.chart-bar {
    height: 30px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0 5px 0;
    color: #2c3e50;
}

.summary-label {
    font-size: 0.875rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.services-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.services-table table { margin: 0; }

.services-table thead { background: #f8f9fa; }

.info-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.info-box-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-box-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

.gentle-logo {
    position: relative;
    width: 95px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle {
    position: relative;
    width: 95px;
    height: 95px;
    background: linear-gradient(135deg, #f0ceaa, #e0be9c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(240, 206, 170, 0.3),inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: gentleBreathe 4s ease-in-out infinite;
}

.gentle-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(240, 206, 170, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

.gentle-subtitle {
    color: rgba(139, 102, 85, 0.7);
    font-size: 15px;
    font-weight: 400;
}

.field-container {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(240, 206, 170, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.field-container:focus-within {
    border-color: #f0ceaa;
    box-shadow: 0 0 0 3px rgba(240, 206, 170, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.field-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f0ceaa, #e0be9c);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.field-container:focus-within .field-accent { width: 100%; }

.button-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0ceaa 0%, #e0be9c 100%);
    transition: all 0.3s ease;
    border-radius: 16px;
}

.button-text {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.button-loader {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gentle-spinner {
    width: 20px;
    height: 20px;
    position: relative;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(139, 102, 85, 0.2);
    border-top: 2px solid #8b6655;
    border-radius: 50%;
    animation: gentleSpin 1s linear infinite;
}

.button-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #f0ceaa, #e0be9c);
    border-radius: 18px;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.gentle-divider {
    display: flex;
    align-items: center;
    margin: 32px 0 0;
    gap: 16px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 206, 170, 0.4), transparent);
}

.divider-text {
    color: rgba(139, 102, 85, 0.6);
    font-size: 13px;
    font-weight: 400;
}

.gentle-error {
    color: #d97757;
    font-size: 13px;
    font-weight: 400;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.gentle-error.show {
    opacity: 1;
    transform: translateY(0);
}

.error-message {
    background-color: rgba(217, 119, 87, 0.1);
    border-left: 4px solid #d97757;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 8px;
    color: #d97757;
    font-size: 14px;
}

.sidebar {
    width: 200px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    padding: 20px;
    background-color: #f8f9fa;
    transition: width 0.3s, background-color 0.3s;
    z-index: 1000;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar a i {
    margin-right: 10px;
    transition: margin-right 0.3s;
}

.sidebar a:hover {
    background-color: #e9ecef;
    border-radius: 5px;
}

.main-content {
    padding: 20px;
    transition: margin-left 0.3s;
}

.main-content.no-sidebar { margin-left: 0; }

.input-group .btn-outline-secondary { border-left: 0; }

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.dark-mode .table { color: #ddd; }

.fade-out { animation: fadeOut 0.3s ease; }

.container.mt-5 { margin-top: 5rem; }

.text-danger { color: #dc3545; }

#mobileUpcomingTab { display: none; }

.fc {
    width: 100%;
    overflow-x: auto;
}

.badge.bg-success { background-color: #28a745 !important; }

.badge.bg-warning { background-color: #ffc107 !important; }

.badge.bg-info { background-color: #17a2b8 !important; }

.badge.bg-danger { background-color: #dc3545 !important; }

#clients-table thead tr {
    background-color: #8B5A2B;
    color: white;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.export-btn {
    background-color: #6c757d;
    color: white;
}

.edit-btn i { color: #007bff; }

.pagination .page-item.active .page-link {
    background-color: #8B5A2B;
    border-color: #8B5A2B;
    color: white;
}

.pagination .page-link { color: #8B5A2B; }

.select-group-outline {
    position: relative;
    width: 100%;
}

.select-group-outline .form-control {
    border: 1px solid #d2d6da;
    border-radius: 0.375rem;
    padding: 0.45rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

.select-group-outline .form-control:focus {
    border-color: #344767;
    box-shadow: 0 0 0 0.2rem rgba(52, 71, 103, 0.25);
}

.select2-container--default .select2-selection--single {
    border: 1px solid #d2d6da!important;
    border-radius: 0.375rem!important;
    padding: 0.45rem 0.5rem;
    background-color: transparent !important;
    height: auto !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.5rem; }

.select2-container--default .select2-selection--single .select2-selection__arrow { height: calc(2.25rem + 2px); }

#time {
    font-size: 15px;
    font-weight: bold;
    color: #515151;
}

#installButton {
    background: #42424a;
    color: white;
    margin-right: 10px;
}

#dismissButton {
    background: transparent;
    color: #ccc;
}

.user-avatar img {
    border: 2px solid #999999;
    width: 60px;
    height: 60px;
}

.no-event {
    width: 200px;
    opacity: 0.5;
    mix-blend-mode: multiply;
}

.logo {
    width: 150px;
    margin: 5px 5px 10px;
}

#monthSelector, #yearSelector, #technician-filter {
    margin: 0 3px;
    background: #f5f5f5;
    border: 2px solid #d9d9d9;
    border-radius: 10px;
    color: #262626;
    line-height: 1rem;
    padding: .5rem 1rem .5rem 1rem;
}

#yearSelector { margin-right: 8px; }

#eventCount {
    font-size: 15px;
    font-weight: 500;
}

.btn.bg-gradient-dark.active {
    background: #d1997c !important;
    color: #fff !important;
}

.date-selector {
    background: #f1f1f1;
    padding: 20px 50px;
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
}

.date-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.date-list::-webkit-scrollbar { display: none; }

.day-name {
    font-size: 0.7rem;
    color: #b0bec5;
}

.day-num {
    font-size: 1.3rem;
    font-weight: 600;
}

.month {
    font-size: 0.7rem;
    color: #b0bec5;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #d1997c;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.scroll-arrow:hover { background: #021a39; }

.left-arrow { left: 15px; }

.right-arrow { right: 15px; }

.month-view-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 30px 10px;
}

.month-view-day {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
}

.month-view-day:hover { background: #cbcbcb; }

.month-view-day.active {
    background: #e9d5c3;
    color: #815b47;
}

.month-view-day.empty {
    background: transparent;
    cursor: default;
}

.month-view-day.sunday, .month-view-day.saturday { background: #d3d3d3; }

.month-view-day.sunday.active, .month-view-day.saturday.active {
    background: #0c3061;
    color: #fff;
}

.month-view-day .event-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff6f61;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.month-view-day-header {
    text-align: center;
    font-weight: 600;
    color: #535353;
    padding: 5px;
    background: #f3e3d3;
    border-radius: 8px;
}

.events-section {
    position: sticky;
    top: 120px;
}

.event-label {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    color: #fff;
}

#noEventsContainer, #eventsContainer {
    transition: opacity 0.3s ease;
    opacity: 1;
}

#noEventsContainer[style*="display: none"], #eventsContainer[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
}

.day-group { margin-bottom: 20px; }

.day-group-header {
    padding: 10px 15px;
    border-left: 5px solid #b1b1b1;
    margin-bottom: 1rem;
    margin-left: 4px;
}

.day-group-header:first-child { margin-top: 0; }

#todayButton {
    background: #d1997c !important;
    color: #fff !important;
    border-radius: 5px;
}

.addappt {
    background: #e3c2a4 !important;
    color: #d1997c !important;
}

.day-num, .day-name, .month { color: #65412d; }

.list-group-item {
    background: #ffffff;
    border-radius: 15px !important;
    margin-bottom: 27px;
    box-shadow: 0 0 8px 0 rgb(0 0 0 / 7%);
}

.list-group-item:last-child { margin-bottom: 0; }

.list-group-item:hover { transform: translateY(-2px); }

.list-group-item .badge {
    position: absolute;
    right: 12px;
    padding: 9px 15px;
    font-size: 14px;
    top: -15px;
    text-align: center;
}

.sticky-sidebar {
    position: sticky;
    top: 115px;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    padding: 21px 15px;
    border-radius: 15px;
}

.time-slots-grid {
    display: block;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.time-slot {
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 14px;
    background: #fff;
    border: 1px solid #d2d6da;
}

.time-slot:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.time-slot.available {
    background: #e8f5e9;
    border-color: #4caf50;
}

.time-slot.unavailable {
    background: #ffebee;
    border-color: #f44336;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.blocked {
    background: #a19e9f;
    border-color: #6b6060;
    cursor: not-allowed;
    opacity: 0.6;
    color: #000000;
}

.time-slot.selected {
    background: #edd7c3;
    color: #d1997c;
    font-weight: 600;
    border-color: #c1a08f;
}

.time-slot.current-edit {
    background: #fff8e1;
    border-color: #ffc107;
    border-style: dashed;
}

.time-slot.current-edit::after {
    content: " (current)";
    font-size: 11px;
    color: #999;
    display: block;
}

#modalDateList {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#modalDateList::-webkit-scrollbar { display: none; }

.modal .day-name {
    font-size: 0.7rem;
    color: #d1997c;
}

.modal .day-num {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal .month {
    font-size: 0.65rem;
    color: #d1997c;
}

.modal .event-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff6f61;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.modal .scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #d1997c;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.modal .scroll-arrow:hover { background: #021a39; }

.modal .left-arrow { left: 5px; }

.modal .right-arrow { right: 5px; }

.select2-results__option[data-add-new="true"] {
    font-weight: bold;
    color: #007bff;
}

.set-reminder-list button, .set-reminder-event {
    background: #edded0;
    border: 2px solid #e1c8b6;
    color: #9b6a50;
    border-radius: 6px;
    padding: 6px 12px;
}

.set-reminder-list button:hover, .set-reminder-event:hover {
    color: #fff;
    background-color: #d1997c;
    border: 2px solid #d1997c;
}

.current-date-info {
    background: #f1f1f1;
    border-radius: 15px;
    padding: 15px 19px;
}

#currentDateDisplay {
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.current-time {
    font-weight: 600;
    color: #494949;
}

#upcomingCount {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    background: #f1f1f1 !important;
    color: #535353!important;
}

.badge {
    padding: 12px 15px;
    font-size: 12px;
    text-align: center;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px;
    display: flex;
    align-items: center;
    animation: slideInRight 0.5s ease-out;
    border-left: 4px solid #17a2b8;
}

.notification.success { border-left-color: #28a745; }

.notification.warning { border-left-color: #ffc107; }

.notification.error { border-left-color: #dc3545; }

.notification-content {
    display: flex;
    width: 100%;
}

.notification-icon {
    margin-right: 8px;
    color: #17a2b8;
}

.notification.success .notification-icon { color: #28a745; }

.notification.warning .notification-icon { color: #ffc107; }

.notification.error .notification-icon { color: #dc3545; }

.notification-text { flex-grow: 1; }

.notification-title {
    margin: 0 0 8px 0;
    text-transform: capitalize;
}

.notification-message {
    margin: 0;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    color: #999;
}

.notification-time-remaining {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #cfe2ff;
    color: #084298;
}

.status-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #842029;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons button, .action-buttons a {
    padding: 5px 8px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.view-btn {
    background-color: #6c757d;
    color: white;
}

.edit-btn {
    background-color: #0d6efd;
    color: white;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

.detail-section { margin-bottom: 20px; }

.detail-section h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #495057;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
}

.detail-label {
    font-weight: 500;
    width: 140px;
    color: #6c757d;
}

.detail-value { flex: 1; }

.no-data-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #dee2e6;
}

.date-option {
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 500;
    text-align: center;
    border: 1.5px solid #e9ecef;
    color: #4b5563;
    background: #fff;
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
}

.date-option:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(209,153,124,.06);
}

.date-option.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.clear-search {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
}

.clear-search:hover { background-color: #dee2e6; }

.pagination-info {
    color: #6c757d;
    font-size: 14px;
}

.pagination {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li { margin: 0 2px; }

.pagination a, .pagination span {
    display: block;
    padding: 6px 12px;
    color: #0d6efd;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background-color: white;
}

.pagination a:hover { background-color: #e9ecef; }

.pagination .active span {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.pagination .disabled span {
    color: #6c757d;
    background-color: white;
    border-color: #dee2e6;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: bold;
    position: relative;
}

.customer-details {
    display: flex;
    flex-direction: column;
}

.customer-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.customer-email {
    font-size: 12px;
    color: #6c757d;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    flex-wrap: wrap;
}

.bulk-actions select-all { margin-right: 10px; }

.bulk-delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.bulk-delete-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.checkbox-cell { width: 40px; }

.tech-filter-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

.tech-filter-label {
    font-size: 14px;
    color: #6c757d;
    margin-right: 5px;
}

.tech-filter-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.tech-filter-btn:hover { background-color: #5a6268; }

.tech-filter-btn.active { background-color: #0d6efd; }

#deleteModal { overflow: hidden; }

.technician-filter-btn, .service-filter-btn { margin: 0 !important; }

.technician-filter-buttons, .service-filter-buttons { gap: 0.5rem; }

.technician-filter-btn, .service-filter-btn, #technicianFilterToggle, #serviceFilterToggle, #monthViewNext, #monthViewPrev, #viewDay, #viewWeek, #viewMonth {
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    background-color: transparent !important;
    border-color: #d1997c;
    color: #d1997c;
}

.technician-filter-btn:hover, .service-filter-btn:hover,#technicianFilterToggle:hover, #serviceFilterToggle:hover, #monthViewNext:hover, #monthViewPrev:hover, #viewDay:hover, #viewWeek:hover, #viewMonth:hover {
    color: #fff;
    background-color: #d1997c !important;
    border-color: #d1997c;
}

.technician-filter-btn.active, .service-filter-btn.active, #viewDay.active, #viewWeek.active, #viewMonth.active {
    background-color: #d1997c  !important;
    color: white !important;
    border-color: #d1997c !important;
}

.filter-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.service-filter-dropdown {
    position: absolute;
    background-color: white;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    z-index: 1000;
    min-width: 200px;
}

#resetFiltersBtn { transition: all 0.2s ease-in-out; }

#resetFiltersBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-all-item {
    padding: 10px;
    cursor: pointer;
    text-align: center;
    color: #007bff;
    font-weight: 500;
}

.view-all-item:hover { background: #e7f1ff; }

.absoBadge {
    position: absolute;
    left: 18px;
    padding: 7px 9px;
    font-size: 10px;
}

.bg-theme-subtle {
    background-color: #f1f1f1;
    padding: 1rem 1rem 1rem 1rem;
}

.filler { fill: #d1997c; }

.quickak {
    position: sticky;
    top: 5px;
    z-index: 9;
}

.quickakserch {
    position: sticky;
    top: 95px;
    z-index: 9;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.event-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.event-avatar.me-3 .loyalty-badge {
    bottom: 15px;
    right: 0px;
}

.avatar-placeholder {
    color: white;
    font-size: 20px;
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: #d1997c;
}

.avatar-clientimg {
    object-fit: cover;
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#breadcrumbMenuBtn { display: none; }

.menico-float {
    position: absolute;
    right: 10px;
    top: 17px;
}

#filterschedule { transition: opacity 0.3s ease, transform 0.3s ease; }

#filterschedule.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.month-view-day.highlight {
    background-color: #709db9 !important;
    color: #ffffff;
}

.fab-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none !important;
}

#fabMain { animation: fabPulse 3s ease-in-out infinite; }

#fabMain:hover {
    animation: none;
    transform: scale(1.07);
    box-shadow: 0 6px 24px rgba(209,153,124,0.6);
}

#_notifStack .notification {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    animation: slideInRight 0.4s ease-out;
}

.form-label, label { color: var(--label-color); }

.boo-wrapper { text-align: center; }

.boo-wrapper h1 {
    font-size: 36px;
    margin-top: 32px;
}

.boo-wrapper p {
    font-size: 18px;
    margin-top: 32px;
}

.boo {
    width: 160px;
    height: 184px;
    background-color: #f7f7f7;
    margin-left: auto;
    margin-right: auto;
    border: 4px solid #9b9b9b;
    border-bottom: 0;
    overflow: hidden;
    border-radius: 80px 80px 0 0;
    box-shadow: -16px 0 0 2px rgba(234, 234, 234, 0.5) inset;
    position: relative;
    padding-bottom: 32px;
    animation: floating 3s ease-in-out infinite;
}

.boo::after {
    content: "";
    display: block;
    position: absolute;
    left: -19px;
    bottom: -8px;
    width: calc(100% + 32px);
    height: 32px;
    background-repeat: repeat-x;
    background-size: 32px 32px;
    background-position: left bottom;
    background-image: linear-gradient(-45deg, #f7f7f7 16px, transparent 0), linear-gradient(45deg, #f7f7f7 16px, transparent 0), linear-gradient(-45deg, #9b9b9b 19px, transparent 0), linear-gradient(45deg, #9b9b9b 19px, transparent 0);
}

.boo .face {
    width: 24px;
    height: 3.2px;
    border-radius: 5px;
    background-color: #9b9b9b;
    position: absolute;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
}

.boo .face::before, .boo .face::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background-color: #9b9b9b;
    border-radius: 50%;
    position: absolute;
    bottom: 40px;
}

.boo .face::before { left: -24px; }

.boo .face::after { right: -24px; }

.booshadow {
    width: 128px;
    height: 16px;
    background-color: rgba(234, 234, 234, 0.75);
    margin-top: 10px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 50%;
    animation: floatingShadow 3s ease-in-out infinite;
}

.tech-filter-divider {
    width: 1px;
    background: #e9ecef;
    height: 54px;
    margin: 0 18px;
    flex-shrink: 0;
}

.other-filters-section {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.staff-role-badge {
    font-size: .7rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.staff-role-staff {
    background: rgba(209,153,124,.15);
    color: #a0745a;
    border: 1px solid rgba(209,153,124,.3);
}

.staff-role-admin {
    background: rgba(99,102,241,.12);
    color: #4f46e5;
    border: 1px solid rgba(99,102,241,.25);
}

.staff-role-super_admin {
    background: rgba(16,185,129,.12);
    color: #059669;
    border: 1px solid rgba(16,185,129,.25);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: .65rem;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    margin-left: 5px;
    line-height: 1;
}

.clients-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.clients-grid-loading {
    opacity: .5;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.profile-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: sticky;
    top: 70px;
}

.profile-card-banner {
    height: 72px;
    background: linear-gradient(135deg, #e8c5ae 0%, #d1997c 100%);
    position: relative;
}

.profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: -40px;
    margin-bottom: 10px;
    position: relative;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    background: #f0f0f0;
}

.profile-identity {
    text-align: center;
    padding: 0 20px 16px;
}

.profile-identity .profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
    word-break: break-word;
}

.profile-identity .profile-email {
    font-size: .78rem;
    color: #7a8494;
    word-break: break-all;
}

.profile-section {
    border-top: 1px solid #f2f3f5;
    padding: 14px 20px;
}

.profile-section-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #adb5bd;
    margin-bottom: 10px;
}

.profile-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    color: #3d4452;
    padding: 5px 0;
    min-width: 0;
}

.profile-info-row + .profile-info-row { border-top: 1px solid #f7f8f9; }

.profile-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(209,153,124,.1);
    color: #d1997c;
    flex-shrink: 0;
    font-size: .75rem;
}

.profile-info-label {
    font-size: .72rem;
    color: #adb5bd;
    display: block;
    line-height: 1;
    margin-bottom: 1px;
}

.profile-info-value {
    font-size: .85rem;
    color: #3d4452;
    line-height: 1.2;
    word-break: break-word;
    min-width: 0;
}

.profile-tel {
    color: #3d4452;
    text-decoration: none;
}

.profile-tel:hover {
    color: #d1997c;
    text-decoration: underline;
}

.profile-notes-box {
    background: #fafbfc;
    border-left: 3px solid #e8c5ae;
    border-radius: 0 6px 6px 0;
    padding: 10px 12px;
    font-size: .84rem;
    color: #5a6270;
    font-style: italic;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.5;
}

.profile-actions {
    padding: 14px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-profile-action {
    font-size: .8rem;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 500;
    transition: all .15s;
    text-align: center;
    white-space: nowrap;
}

.btn-profile-edit {
    background: #f4f6f9;
    border: 1px solid #dee2e6;
    color: #495057;
}

.btn-profile-edit:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.btn-profile-toggle {
    background: #f4f6f9;
    border: 1px solid #dee2e6;
    color: #495057;
}

.btn-profile-toggle--active {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.btn-profile-toggle--active:hover { background: #c3e6cb; }

.btn-profile-toggle--inactive {
    background: #f8f9fa;
    border: 1px solid #adb5bd;
    color: #6c757d;
}

.btn-profile-toggle--inactive:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-profile-upcoming {
    font-size: .8rem;
    padding: 7px 12px;
    border-radius: 8px;
    background: #f0f7ff;
    border: 1px solid #b8d8f8;
    color: #1a6bbf;
    font-weight: 500;
    transition: all .15s;
}

.btn-profile-upcoming:hover {
    background: #dceeff;
    border-color: #74b5f5;
}

.profile-status-badge {
    position: absolute;
    top: 20px;
    right: 15px;
    font-size: .7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .03em;
}

.profile-status-badge--active {
    background: rgba(255,255,255,.85);
    color: #1a7a3c;
    border: 1px solid rgba(40,167,69,.3);
}

.profile-status-badge--inactive {
    background: rgba(255,255,255,.85);
    color: #6c757d;
    border: 1px solid rgba(108,117,125,.3);
}

.profile-birthday-row { margin-top: 20px; }

.btn-birthday {
    font-size: .8rem;
    padding: 7px 14px;
    border-radius: 8px;
    background: #fff5f0;
    border: 1px solid #f5c6a0;
    color: #b8550a;
    font-weight: 500;
    transition: all .15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-birthday:hover {
    background: #ffeada;
    border-color: #d1997c;
    color: #8a3d00;
}

.btn-birthday .spinner-border {
    vertical-align: middle;
    margin-right: 4px;
}

.profile-avatar-wrap .avatar-placeholder {
    width: 90px;
    height: 90px;
    font-size: 1.9rem;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    position: static;
}

.loyalty-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: linear-gradient(135deg, #f5c542 0%, #e8a800 100%);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    padding: 1px 5px;
    font-size: .6rem;
    font-weight: 800;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    white-space: nowrap;
    z-index: 2;
}

.profile-loyalty-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #f5c542 0%, #e8a800 100%);
    color: #fff;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: .72rem;
    font-weight: 700;
    box-shadow: 0 1px 6px rgba(232,168,0,.35);
    position: relative;
    top: -26px;
}

.clients-summary-grid { grid-template-columns: repeat(3, 1fr) !important; }

.clients-summary-grid > :last-child {
    grid-column: auto !important;
    width: 100%;
    justify-self: stretch;
}

.clients-summary-filter-card {
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}

.clients-summary-filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

#allApptListWrap {
    display: flex;
    flex-direction: column;
}

.staff-meta-val {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#apptViewToggle .btn.active, #allApptViewToggle .btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.header-menu-icon {
    color: #d1997c;
    font-size: 26px;
    margin: 5px 5px 5px 8px;
    cursor: pointer;
}

.date-selector-panel {
    background: #e0e1e1;
    padding: 10px;
    border-radius: 10px;
}

.time-selector-panel {
    background: #e0e1e1;
    padding: 10px;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.availability-time-panel {
    background: #e0e1e1;
    padding: 10px;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.client-avatar-wrap {
    position: relative;
    display: inline-block;
}

.client-avatar-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.sidebar-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.sidebar-avatar-circle {
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.sidebar-section-label { font-size: 10px; }

.sidebar-quick-actions-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.sidebar-pricing-toggle-bg { background: #f8f9fa; }

.sidebar-close-icon { font-size: 20px; }

.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.fab-actions {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.fab-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fab-label {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.fab-btn-appt {
    width: 40px;
    height: 40px;
    background: #ec4899;
    border: none;
    color: white;
}

.fab-btn-avail {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border: none;
    color: white;
}

.fab-btn-all {
    width: 40px;
    height: 40px;
    background: #8b5cf6;
    border: none;
    color: white;
}

.fab-main-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #d1997c, #c47a5a);
    border: none;
}

.loyalty-star-icon { font-size: .45rem; }

.avatar-sm {
    width: 38px;
    height: 38px;
}

.avatar-sm-placeholder {
    width: 38px;
    height: 38px;
    font-size: 14px;
}

.reminder-list-divider { border-top: 1px solid #e9ecef; }

.form-control-sm { border-radius: 8px; }

.form-control:focus {
    border-color: #d1997c;
    box-shadow: 0 0 0 0.25rem rgba(209,153,124,.25);
}


/* ════════════════════════════════════════════════════════════════════
 * Responsive — Breakpoints (largest → smallest)
 * ════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .view-toggle-buttons     { display: flex !important; }
    .view-toggle-dropdown     { display: none !important; }
    .aa-cards-view .aa-cell, .aa-cards-view .aa-cell-check, .aa-cards-view .aa-cell-actions     { display: none; }
    .aa-cards-view .aa-card-body, .aa-cards-view .aa-card-footer     { display: flex; }
    .aa-cards-view .aa-card-select     { display: block; }
    .aa-list-view .aa-card-body, .aa-list-view .aa-card-footer, .aa-list-view .aa-card-select     { display: none !important; }
}

@media (max-width: 1500px) and (min-width: 1400px) {
    .side-nav-app     {
        left: -300px;
        width: 250px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }
    .side-nav-app.mobile-open     { left: 0; }
    .side-nav-app li.profile     {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        margin: 0;
    }
    .side-nav-app li a .links_name     {
        opacity: 1;
        pointer-events: auto;
    }
    .side-nav-app .logo-details .logo_name     { opacity: 1; }
    .side-nav-app li .tooltip     { display: none; }
    .side-nav-app .profile #log_out     {
        width: 50px;
        background: none;
    }
}

@media (max-width: 1320px) and (min-width: 1199px) {
    .side-nav-app     {
        left: -300px;
        width: 250px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }
    .side-nav-app.mobile-open     { left: 0; }
    .side-nav-app li.profile     {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        margin: 0;
    }
    .side-nav-app li a .links_name     {
        opacity: 1;
        pointer-events: auto;
    }
    .side-nav-app .logo-details .logo_name     { opacity: 1; }
    .side-nav-app li .tooltip     { display: none; }
    .side-nav-app .profile #log_out     {
        width: 50px;
        background: none;
    }
}

@media (max-width: 1200px) and (min-width: 1100px) {
    .tech-avatar-clip     { max-width: 230px; }
}

@media (max-width: 1140px) and (min-width: 992px) {
    .side-nav-app     {
        left: -300px;
        width: 250px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }
    .side-nav-app.mobile-open     { left: 0; }
    .side-nav-app li.profile     {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        margin: 0;
    }
    .side-nav-app li a .links_name     {
        opacity: 1;
        pointer-events: auto;
    }
    .side-nav-app .logo-details .logo_name     { opacity: 1; }
    .side-nav-app li .tooltip     { display: none; }
    .side-nav-app .profile #log_out     {
        width: 50px;
        background: none;
    }
}

@media (max-width: 1200px) {
    .list-group-item .badge     {
        width: 100%;
        margin: 15px 0;
        position: relative;
        right: 0;
        top: 0;
    }
    .set-reminder-list     {
        position: unset;
        margin-bottom: 10px;
    }
}

@media (max-width: 1100px) {
    .col-md-8, .col-md-4     {
        width: 100%;
        max-width: 100%;
    }
    #mobileUpcomingTab     { display: block; }
    #stickySidebar     { display: none; }
    .aa-cards-view #allApptListWrap     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 994px) {
    .event-card     { flex-direction: column; }
    .event-card-mt     { margin-top: 20px; }
    .event-card .fullw     { width: 100% !important; }
    .btn-sm     {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 992px) {
    .detail-grid     { grid-template-columns: 1fr; }
    .profile-card     { position: static; }
}

@media (max-width: 991px) {
    .appt-summary-grid     { grid-template-columns: repeat(3, 1fr); }
    .appt-summary-grid > :last-child     { grid-column: 2 / -1; }
    .staff-summary-grid, .timelog-summary-grid     { grid-template-columns: repeat(2, 1fr); }
    .staff-card-grid     { grid-template-columns: repeat(2, 1fr); }
    .clients-card-grid     { grid-template-columns: repeat(2, 1fr); }
    .svc-summary-grid     { grid-template-columns: repeat(3, 1fr); }
    .clients-summary-grid     { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 900px) {
    .side-nav-app     {
        left: -300px;
        width: 250px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }
    .side-nav-app.mobile-open     { left: 0; }
    .side-nav-app li.profile     {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        margin: 0;
    }
    .side-nav-app li a .links_name     {
        opacity: 1;
        pointer-events: auto;
    }
    .side-nav-app .logo-details .logo_name     { opacity: 1; }
    .side-nav-app li .tooltip     { display: none; }
    .side-nav-app .profile #log_out     {
        width: 50px;
        background: none;
    }
    .row>*     { padding: 0; }
}

@media (max-width: 769px) {
    .sticky-search     { top: 78px; padding: 0 10px; }
}

@media (max-width: 768px) {
    #sidenav-toggle     { display: block; }
    .main-content     { padding: 10px; }
    #calendar     { font-size: 12px; }
    .fc-toolbar     {
        flex-direction: column;
        align-items: flex-start;
    }
    .fc-toolbar-chunk     { margin-bottom: 10px; }
    .fc     {
        width: 100%;
        overflow-x: auto;
    }

    .card     { margin-bottom: 15px; }
    .nav-tabs     {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    body.sidenav-minimized .sidebar     { pointer-events: auto; }
    .sidebar-modal     {
        width: 100%;
        transform: translateX(100%);
    }
    .table-footer     {
        flex-direction: column;
        gap: 10px;
    }
    .bulk-actions     {
        flex-direction: column;
        align-items: flex-start;
    }
    .tech-filter-buttons     {
        margin-left: 0;
        margin-top: 10px;
    }
    .hid     { display: none; }
    .bg-theme-subtle     { padding: 10px 1rem 10px 1rem; }
    .quickakserch     { top: 78px; }
    body.scrolled #breadcrumbMenuBtn     { display: inline-block; }
    .detail-header     { padding: 10px 14px; }
    .detail-body     { padding: 14px 14px 40px; }
    .stats-grid     {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px;
    }
    .appointments-list     { padding: 14px; }
    .appt-history-cards-grid     { grid-template-columns: repeat(2, 1fr); }
    .appt-history-cards-view .appt-list-wrap     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .view-toggle-buttons     { display: none !important; }
    .view-toggle-dropdown     { display: block !important; }
}

@media (max-width: 767px) {
    #allApptList.aa-list-view     {
        border: none;
        background: transparent;
        overflow: visible;
    }
    .aa-header     { display: none !important; }
    #allApptListWrap     {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .aa-row     {
        display: flex;
        flex-direction: column;
        border-bottom: none;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
        border: 1px solid rgba(0,0,0,.06);
        overflow: hidden;
    }
    .aa-cell, .aa-cell-check, .aa-cell-actions     { display: none !important; }
    .aa-card-body, .aa-card-footer     { display: flex !important; }
    .aa-card-select     { display: block !important; }
}

@media only screen and (max-width: 600px) {
    #sunAndMoon     {
        top: 10%;
        left: 90%;
        margin: 2px 0 0 -722px;
        width: 1225px;
        height: 1225px;
        transform: none !important;
    }
    #moon     {
        top: 100px !important;
        left: 50%;
        margin-left: 33px;
        width: 200px;
        height: 200px;
    }
    #sun     {
        top: 100px !important;
        left: 50%;
        margin-left: 33px;
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .aa-control-bar     { padding: 8px 10px; }
    .aa-control-right     { width: 100%; }
    .aa-cards-view #allApptListWrap     { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .list-group-item     { font-size: 14px; }
    .modal-dialog     { margin: 2px; }
    .form-control     { font-size: 14px; }
    .nav-tabs .nav-link     {
        font-size: 14px;
        padding: 8px 12px;
    }
    #notifDropdown     {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-90%) !important;
        top: 35px !important;
        width: calc(100vw - 20px) !important;
        max-width: 380px !important;
    }
    .staff-card-grid     { grid-template-columns: 1fr; }
    .clients-card-grid     { grid-template-columns: 1fr; }
    .svc-card-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .appt-summary-grid     { grid-template-columns: repeat(2, 1fr); }
    .appt-summary-grid > :last-child     { grid-column: 1 / -1; }
    .staff-summary-grid, .timelog-summary-grid     { grid-template-columns: repeat(2, 1fr); }
    .svc-summary-grid     { grid-template-columns: repeat(2, 1fr); }
    .clients-summary-grid     { grid-template-columns: repeat(2, 1fr) !important; }
    .sticky-search .py-2     {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    .form-control-sm     {
        font-size: 0.875rem;
        padding: .375rem .5rem;
    }
    .btn-sm     { padding: .25rem .5rem; }
    #openStickySearch     {
        width: 45px;
        height: 45px;
        bottom: 28px;
        right: 92px;
    }
}

@media (max-width: 550px) {
    .logo_footer     {
        width: 120px;
        margin: 0 auto 35px auto;
    }
    .events-section     { padding: 35px 10px; }
}

@media (max-width: 480px) {
    .soft-card     {
        padding: 36px 28px;
        border-radius: 24px;
    }
    .comfort-title     { font-size: 1.75rem; }
    .sidebar-modal     {
        width: 100%;
        transform: translateX(100%);
    }
    .stats-grid     {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .stat-card     { padding: 12px 8px; }
    .stat-card h3     { font-size: 1.1rem; }
    .appointments-list table     { min-width: 440px; }
    .appt-history-cards-grid     { grid-template-columns: 1fr; }
    .appt-history-cards-view .appt-list-wrap     { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
    #notifDropdown     {
        transform: translateX(-86%) !important;
        width: calc(100vw - 30px) !important;
    }
}

@media (max-width: 400px) {
    .set-reminder-list     {
        position: unset;
        margin-bottom: 10px;
    }
}

@media (max-width: 360px) {
    .form-control-sm     { font-size: 0.8125rem; }
}
