@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --qw-primary: #4f46e5;
    --qw-primary-600: #4338ca;
    --qw-primary-50: #eef2ff;
    --qw-accent: #7c3aed;
    --qw-success: #059669;
    --qw-warning: #d97706;
    --qw-danger: #dc2626;
    --qw-info: #0284c7;

    --qw-bg: #f4f6fb;
    --qw-surface: #ffffff;
    --qw-surface-2: #f8f9fc;
    --qw-border: #e7eaf2;
    --qw-text: #0f172a;
    --qw-text-2: #475569;
    --qw-text-3: #94a3b8;

    --qw-radius: 16px;
    --qw-radius-sm: 10px;
    --qw-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06);
    --qw-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.14);
    --qw-sidebar-w: 220px;
    --qw-header-h: 68px;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--qw-bg);
    color: var(--qw-text);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body { overscroll-behavior-y: none; }

h1, h2, h3, h4, h5, h6, .h4, .h5 {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--qw-text);
}

a { color: var(--qw-primary); }
a:hover { color: var(--qw-primary-600); }

/* ---------- Sidebar ---------- */
.dash-sidebar {
    background: var(--qw-surface) !important;
    border-right: 1px solid var(--qw-border);
    width: var(--qw-sidebar-w);
    box-shadow: none;
}

.dash-sidebar .m-header {
    height: var(--qw-header-h);
    padding: 0 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--qw-border);
}

.dash-sidebar .b-brand img.logo-lg { max-height: 36px; width: auto; }

.dash-sidebar .navbar-content { padding: 14px 12px; }

.dash-navbar { list-style: none; padding: 0; margin: 0; }

.dash-navbar .dash-item { margin: 2px 0; }

.dash-navbar .dash-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--qw-radius-sm);
    color: var(--qw-text-2) !important;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.dash-navbar .dash-link:hover {
    background: var(--qw-surface-2);
    color: var(--qw-text) !important;
}

.dash-navbar .dash-item.active > .dash-link,
.dash-navbar .dash-link.active {
    background: linear-gradient(135deg, var(--qw-primary), var(--qw-accent));
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
}

.dash-navbar .dash-micon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--qw-primary-50);
    color: var(--qw-primary);
    font-size: 17px;
    flex-shrink: 0;
}

.dash-navbar .dash-item.active .dash-micon,
.dash-navbar .dash-link.active .dash-micon {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.dash-navbar .dash-mtext { font-size: 14px; }

.dash-submenu {
    list-style: none;
    padding: 4px 0 4px 44px;
    margin: 0;
}

.dash-submenu .dash-link {
    padding: 7px 10px;
    font-size: 13px;
}

/* ---------- Header ---------- */
.dash-header:not(.transprent-bg) {
    background: rgba(255, 255, 255, .82) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--qw-border);
    box-shadow: none !important;
}

.dash-header .header-wrapper {
    min-height: var(--qw-header-h);
    padding: 0 20px;
}

.dash-header .btn-default {
    border: 1px solid var(--qw-border);
    background: var(--qw-surface);
    border-radius: var(--qw-radius-sm);
    color: var(--qw-text-2);
}

.dash-header .dash-h-item .dash-head-link,
.dash-header .drp-company .dash-head-link {
    color: var(--qw-text);
    font-weight: 500;
}

.dash-header .theme-avtar {
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--qw-border);
}

.dash-header .form-control {
    border-radius: var(--qw-radius-sm);
    border-color: var(--qw-border);
    background: var(--qw-surface-2);
}

/* ---------- Page & cards ---------- */
.page-content { padding: 24px; }

.card {
    background: var(--qw-surface);
    border: 1px solid var(--qw-border);
    border-radius: var(--qw-radius);
    box-shadow: var(--qw-shadow);
    margin-bottom: 20px;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--qw-border);
    padding: 18px 22px;
    border-radius: var(--qw-radius) var(--qw-radius) 0 0;
}

.card-header h5, .card-header h6 { margin: 0; font-size: 15px; font-weight: 600; }

.card-body { padding: 20px 22px; }

.card .card-body h4 { font-weight: 700; }

.card small.text-muted, .text-muted { color: var(--qw-text-3) !important; }

.theme-avtar {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    color: #fff;
}

.bg-success { background-color: var(--qw-success) !important; }
.bg-warning { background-color: var(--qw-warning) !important; }
.bg-danger { background-color: var(--qw-danger) !important; }
.bg-primary { background-color: var(--qw-primary) !important; }
.bg-info { background-color: var(--qw-info) !important; }
.bg-dark { background-color: #1e293b !important; }

.breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 13px; }

/* ---------- Tabs ---------- */
.nav-tabs {
    border-bottom: 1px solid var(--qw-border);
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    margin-bottom: 4px;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--qw-text-3);
    font-weight: 500;
    font-size: 14px;
    padding: 12px 14px;
    white-space: nowrap;
    background: none;
}

.nav-tabs .nav-link:hover { color: var(--qw-text); }

.nav-tabs .nav-link.active {
    color: var(--qw-primary);
    border-bottom-color: var(--qw-primary);
    background: none;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--qw-radius-sm);
    font-weight: 500;
    font-size: 14px;
    padding: 9px 16px;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:active { transform: scale(.98); }

.btn-primary, .btn-primary:disabled {
    background: linear-gradient(135deg, var(--qw-primary), var(--qw-accent));
    border: none;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--qw-primary-600), var(--qw-accent));
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.32);
}

.btn-outline-primary { color: var(--qw-primary); border-color: rgba(79, 70, 229, .35); }
.btn-outline-primary:hover { background: var(--qw-primary-50); color: var(--qw-primary-600); border-color: var(--qw-primary); }

.btn-light, .btn-default {
    background: var(--qw-surface-2);
    border: 1px solid var(--qw-border);
    color: var(--qw-text-2);
}

.btn-light:hover { background: #eef1f7; color: var(--qw-text); }

.btn-success { background: var(--qw-success); border: none; }
.btn-danger { background: var(--qw-danger); border: none; }

.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- Forms ---------- */
.form-control, .form-select, select.form-control {
    border: 1px solid var(--qw-border);
    border-radius: var(--qw-radius-sm);
    background-color: var(--qw-surface);
    padding: 9px 12px;
    font-size: 14px;
    color: var(--qw-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--qw-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
    outline: none;
}

.form-control-label, label {
    font-size: 13px;
    font-weight: 500;
    color: var(--qw-text-2);
    margin-bottom: 6px;
}

.form-check-input:checked {
    background-color: var(--qw-primary);
    border-color: var(--qw-primary);
}

/* ---------- Tables ---------- */
.table-responsive {
    border-radius: var(--qw-radius-sm);
}

.table {
    --bs-table-bg: transparent;
    color: var(--qw-text);
    font-size: 14px;
}

.table thead th,
.table tr th {
    background: var(--qw-surface-2);
    color: var(--qw-text-3);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid var(--qw-border);
    padding: 12px 14px;
}

.table td {
    border-color: var(--qw-border);
    padding: 13px 14px;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color .15s ease;
}

.table tbody tr:hover { background: var(--qw-primary-50); }

/* ---------- Badges ---------- */
.badge {
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: .01em;
    padding: 5px 10px;
    border-radius: 999px;
}

/* ---------- Modals & dropdowns ---------- */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: var(--qw-shadow-lg);
}

.modal-header { border-bottom: 1px solid var(--qw-border); padding: 18px 22px; }
.modal-body { padding: 22px; }
.modal-footer { border-top: 1px solid var(--qw-border); padding: 16px 22px; }

.dropdown-menu {
    border: 1px solid var(--qw-border);
    border-radius: 14px;
    box-shadow: var(--qw-shadow-lg);
    padding: 6px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--qw-text-2);
}

.dropdown-item:hover, .dropdown-item:focus {
    background: var(--qw-primary-50);
    color: var(--qw-primary);
}

/* ---------- Misc ---------- */
.footer {
    color: var(--qw-text-3);
    font-size: 13px;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

#nprogress .bar { background: var(--qw-primary) !important; height: 3px !important; }

::selection { background: rgba(79, 70, 229, .18); }

/* ---------- Desktop layout ---------- */
@media (min-width: 993px) {
    .dash-header:not(.transprent-bg) {
        left: var(--qw-sidebar-w) !important;
    }
}

/* ---------- Mobile / PWA ---------- */
@media (max-width: 992px) {
    :root { --qw-header-h: 60px; }

    .page-content { padding: 16px 14px calc(24px + env(safe-area-inset-bottom)); }

    .dash-sidebar {
        width: min(86vw, 300px);
        height: 100dvh;
        border-right: none;
        box-shadow: var(--qw-shadow-lg);
        padding-top: env(safe-area-inset-top);
    }

    .dash-header .header-wrapper { min-height: var(--qw-header-h); padding: 0 12px; }

    .card { border-radius: 14px; margin-bottom: 14px; }
    .card-body { padding: 16px; }
    .card-header { padding: 14px 16px; }

    .btn { min-height: 44px; }
    .btn-sm { min-height: 38px; }

    .form-control, .form-select { min-height: 44px; font-size: 16px; }

    .nav-tabs .nav-link { padding: 12px 12px; font-size: 13px; }

    .modal-dialog { margin: 0; max-width: 100%; min-height: 100dvh; }
    .modal-content { border-radius: 0; min-height: 100dvh; }
}

@media (max-width: 576px) {
    .page-content { padding: 12px 10px calc(20px + env(safe-area-inset-bottom)); }
    .footer { display: none; }
}

@media (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top); }
}

/* ---------- Booking notification bell ---------- */
.booking-alerts-menu { width: 340px; padding: 0; }
.booking-alerts-list { max-height: 360px; overflow-y: auto; }
.booking-alert-item { padding: 10px 14px; border-bottom: 1px solid var(--qw-border); font-size: 13px; }
.booking-alert-item:last-child { border-bottom: none; }
.booking-alert-item.unread { background: var(--qw-primary-50); border-left: 3px solid var(--qw-primary); }
#booking-alerts-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    color: #fff;
}

/* ---------- Sidebar width and logo ---------- */
.dash-sidebar .m-header {
    height: 70px;
    padding: 0 14px;
}
.dash-sidebar .m-header .b-brand img.logo-lg,
.dash-sidebar .m-header .logo-lg {
    max-height: 28px !important;
    width: auto !important;
    max-width: 150px;
    object-fit: contain;
}

@media (min-width: 993px) {
    .dash-sidebar { width: var(--qw-sidebar-w) !important; }
    .dash-header:not(.transprent-bg) { left: var(--qw-sidebar-w) !important; }
    .dash-container { margin-left: var(--qw-sidebar-w) !important; }
    .dash-header:not(.transprent-bg):not(.dash-mob-header) ~ .dash-container {
        margin-left: calc(var(--qw-sidebar-w) + 15px) !important;
    }
}

@media (max-width: 992px) {
    .dash-sidebar { width: min(78vw, 240px); }
}

/* ---------- Desktop header alignment (overrides template offsets) ---------- */
@media (min-width: 993px) {
    html body .dash-header .header-wrapper {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        height: 70px !important;
        min-height: 70px !important;
        margin: 0 !important;
        padding: 0 20px !important;
        gap: 12px;
    }
    html body .dash-header .dash-mob-drp {
        display: flex !important;
        align-items: center !important;
        gap: 10px;
        height: 70px;
        margin: 0 !important;
        top: 0 !important;
    }
    html body .dash-header .dash-mob-drp > .btn,
    html body .dash-header .dash-mob-drp .btn-default {
        margin: 0 !important;
        top: 0 !important;
        position: relative;
        align-self: center;
    }
    html body .dash-header .dash-mob-drp ul,
    html body .dash-header .dash-mob-drp li {
        margin: 0 !important;
        top: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    html body .dash-header .dash-mob-drp li.drp-company { position: relative; }
    html body .dash-header .header-wrapper > .w-50 {
        align-self: center !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        border: none !important;
    }
    html body .dash-header .header-wrapper > .ms-auto:not(.w-50) {
        align-self: center !important;
        margin: 0 0 0 12px !important;
        height: auto !important;
    }
    html body .dash-header .header-wrapper > .ms-auto:not(.w-50) ul {
        display: flex !important;
        align-items: center !important;
        gap: 4px;
        margin: 0 !important;
    }
}

/* ---------- Sidebar brand centring and content top spacing (desktop) ---------- */
.dash-sidebar .m-header .b-brand {
    display: flex;
    align-items: center;
    height: 100%;
}
@media (min-width: 993px) {
    html body .dash-container .dash-content { padding-top: 0 !important; }
    html body .dash-container .qw-dash { padding-top: 0; }
}

/* ---------- Header and sidebar brand share one 70px band (desktop) ---------- */
@media (min-width: 993px) {
    html body .dash-sidebar .m-header { height: 70px !important; min-height: 70px !important; max-height: 70px !important; }
    html body .page-content { padding-top: 16px; }
    html body .dash-container .dash-content > .row { padding-top: 0; }
}

/* ---------- Tables stay inside their cards ---------- */
html body .table-responsive {
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    padding: 0;
}
html body .qw-table-card .table-responsive {
    border-radius: 16px;
    max-height: 70vh;
    overflow: auto;
}

/* ---------- Sidebar: sleek, aligned navigation (desktop + drawer) ---------- */
.dash-sidebar .navbar-content { padding: 14px 12px 24px; }
.dash-navbar { margin: 0; padding: 0; }
.dash-navbar .dash-item { margin: 2px 0; }
.dash-navbar .dash-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 6px 10px 6px 6px;
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    color: #475569 !important;
    white-space: nowrap;
}
.dash-navbar .dash-micon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px;
    margin: 0;
    border-radius: 10px;
    font-size: 17px;
}
.dash-navbar .dash-mtext {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-navbar .dash-arrow {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    opacity: .45;
    transition: transform .2s ease, opacity .2s ease;
}
.dash-navbar .dash-arrow svg, .dash-navbar .dash-arrow i { width: 14px; height: 14px; font-size: 14px; }
.dash-navbar .dash-item.dash-trigger > .dash-link .dash-arrow,
.dash-navbar .dash-item.active > .dash-link .dash-arrow { transform: rotate(90deg); opacity: 1; }
.dash-submenu { padding: 2px 0 6px 0; margin: 0 0 0 16px; border-left: 1px solid #e7eaf2; }
.dash-submenu .dash-link {
    padding: 7px 10px 7px 14px;
    min-height: 36px;
    font-size: 13.5px;
    border-radius: 10px;
}

/* ---------- Header: top-right icons on one centre line ---------- */
@media (min-width: 993px) {
    html body .dash-header .header-wrapper > .ms-auto:not(.w-50) li:not(.d-none) {
        display: flex !important;
        align-items: center !important;
        height: 70px;
        margin: 0 !important;
        top: 0 !important;
    }
    html body .dash-header .header-wrapper > .ms-auto:not(.w-50) li > a,
    html body .dash-header .header-wrapper > .ms-auto:not(.w-50) .dash-head-link {
        top: 0 !important;
        margin: 0 !important;
        position: relative;
    }
}

html body .dash-sidebar .dash-navbar .dash-link { margin: 0 !important; }
html body .dash-sidebar .dash-navbar > .dash-item { margin-left: 0 !important; }

/* ---------- Tables scroll sideways on phones instead of being cut off ---------- */
@media (max-width: 992px) {
    html body .card table { display: block; overflow-x: auto; max-width: 100%; }
}

/* ---------- Mobile header: one row + hotel selector below ---------- */
@media (max-width: 992px) {
    html body .dash-header {
        position: sticky !important;
        padding: 0 !important;
        z-index: 1000;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        background: #fff !important;
        border-bottom: 1px solid #e7eaf2;
        box-shadow: 0 1px 8px rgba(15, 23, 42, .05) !important;
    }
    html body .dash-header .header-wrapper {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas: "left right" "hotel hotel" !important;
        align-items: center !important;
        gap: 10px 8px !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 10px 12px !important;
    }
    html body .dash-header .dash-mob-drp {
        grid-area: left !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px;
        height: 40px !important;
        margin: 0 !important;
        min-width: 0;
    }
    html body .dash-header .dash-mob-drp ul,
    html body .dash-header .dash-mob-drp li {
        display: flex !important;
        align-items: center !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    html body .dash-header .dash-mob-drp .btn-default {
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        border: 1px solid #e7eaf2 !important;
        border-radius: 12px !important;
        background: #fff !important;
        color: #334155 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    html body .dash-header .header-wrapper > .ms-auto:not(.w-50) {
        grid-area: right !important;
        justify-self: end !important;
        display: flex !important;
        align-items: center !important;
        height: 40px !important;
        margin: 0 !important;
    }
    html body .dash-header .header-wrapper > .ms-auto:not(.w-50) > ul {
        display: flex !important;
        align-items: center !important;
        gap: 2px;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    html body .dash-header .header-wrapper > .ms-auto:not(.w-50) li:not(.d-none) {
        display: flex !important;
        align-items: center !important;
        height: 40px !important;
        margin: 0 !important;
    }
    html body .dash-header .dash-head-link {
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 6px !important;
        margin: 0 !important;
        border-radius: 10px;
    }
    html body .dash-header .drp-notification,
    html body .dash-header .dash-h-item:has(.ti-clock),
    html body .dash-header .drp-language,
    html body .dash-header .hide-mob { display: none !important; }
    html body .dash-header .theme-avtar { width: 30px !important; height: 30px !important; margin: 0 !important; }
    html body .dash-header .header-wrapper > .w-50 {
        grid-area: hotel !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
        margin: 0 !important;
        padding: 10px 0 0 0 !important;
        border-top: 2px solid #ff6600 !important;
    }
    html body .dash-header .header-wrapper > .w-50 select,
    html body .dash-header .header-wrapper > .w-50 .select2-container { width: 100% !important; }
}

/* ---------- Mobile content starts directly under the header ---------- */
@media (max-width: 992px) {
    html body .dash-container { top: 0 !important; margin-left: 0 !important; min-height: 0; }
    html body .dash-container .dash-content { padding-top: 0 !important; }
    html body .page-content { padding-top: 12px; }
    html body .dash-header .header-wrapper { padding: 8px 12px !important; }
    html body .dash-header .header-wrapper > .w-50 { padding-top: 8px !important; }
}

/* ---------- Sidebar footer: signed-in user and logout ---------- */
.dash-sidebar .navbar-wrapper { display: flex; flex-direction: column; height: 100%; }
.dash-sidebar .navbar-content { flex: 1 1 auto; display: flex; flex-direction: column; }
.dash-sidebar .dash-navbar { flex: 0 0 auto; }
.qw-sidebar-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fc;
    border: 1px solid #e7eaf2;
    border-radius: 14px;
}
.qw-sf-user { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; text-decoration: none; color: inherit; }
.qw-sf-user:hover { color: inherit; }
.qw-sf-avatar {
    width: 34px; height: 34px; flex: 0 0 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.qw-sf-text { display: flex; flex-direction: column; min-width: 0; }
.qw-sf-name { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qw-sf-role { font-size: 11px; color: #64748b; text-transform: capitalize; }
.qw-sf-logout {
    width: 34px; height: 34px; flex: 0 0 34px;
    border-radius: 10px; border: 1px solid #e7eaf2; background: #fff;
    color: #dc2626; display: flex; align-items: center; justify-content: center;
}
.qw-sf-logout:hover { background: #fef2f2; color: #b91c1c; }

/* ---------- Desktop: content and header expand when the menu is hidden ---------- */
@media (min-width: 993px) {
    html body .dash-container,
    html body .dash-header {
        transition: margin-left .25s ease, left .25s ease;
    }
    html body .dash-container.content-expanded,
    html body .dash-header .dash-container.content-expanded,
    html body .dash-header:not(.transprent-bg) ~ .dash-container.content-expanded {
        margin-left: 0 !important;
    }
    html body .dash-header.content-expanded:not(.transprent-bg) {
        left: 0 !important;
    }
}

/* ---------- Breadcrumbs removed across the CRM ---------- */
html body .breadcrumb,
html body .breadcrumb-item { display: none !important; }

/* ---------- Pagination ---------- */
html body .pagination { gap: 4px; margin: 0; flex-wrap: wrap; justify-content: center; }
html body .pagination .page-item .page-link {
    border: 1px solid #e7eaf2;
    border-radius: 10px !important;
    color: #334155;
    font-size: 13.5px;
    font-weight: 500;
    min-width: 36px;
    text-align: center;
    padding: 6px 12px;
    background: #fff;
}
html body .pagination .page-item .page-link:hover { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }
html body .pagination .page-item.active .page-link { background: linear-gradient(135deg, #4f46e5, #7c3aed); border-color: transparent; color: #fff; }
html body .pagination .page-item.disabled .page-link { color: #cbd5e1; background: #f8fafc; }
html body nav[role="navigation"] { font-size: 13.5px; }

/* ---------- Hotel bookings as cards (same look as the bookings list) ---------- */
html body .qw-bk-list { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
html body .qw-bk-card { border: 1px solid #e7eaf2; border-radius: 14px; padding: 14px 16px; background: #fff; }
html body .qw-bk-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
html body .qw-bk-id { color: #4f46e5; font-weight: 600; text-decoration: none; }
html body .qw-bk-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef1f6; color: #475569; white-space: nowrap; }
html body .qw-st-complete { background: rgba(5,150,105,.12); color: #047857; }
html body .qw-st-incomplete { background: rgba(217,119,6,.14); color: #b45309; }
html body .qw-st-cancelled, html body .qw-st-cancel, html body .qw-st-canceled { background: rgba(220,38,38,.12); color: #b91c1c; }
html body .qw-bk-name { font-weight: 600; margin-top: 8px; font-size: 15px; }
html body .qw-bk-hotel { color: #64748b; font-size: 13px; margin-bottom: 10px; }
html body .qw-bk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; font-size: 13px; border-top: 1px solid #eef0f5; padding-top: 10px; }
html body .qw-bk-grid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; word-break: break-word; }
html body .qw-bk-grid span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
@media (min-width: 768px) {
    html body .qw-bk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Manage Rates grid stays a scrollable table on phones ---------- */
@media (max-width: 992px) {
    html body #rates .table-responsive { overflow-x: auto; }
    html body #rates table.table { display: table !important; width: max-content; min-width: 100%; }
    html body #rates .table thead { display: table-header-group !important; }
    html body #rates .table tbody tr { display: table-row !important; border: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; }
    html body #rates .table td { display: table-cell !important; padding: 6px 8px !important; border-top: 1px solid #eef0f5; }
    html body #rates .table td::before { display: none !important; }
}

/* ---------- Dashboard calendar: no nested scroll boxes, toolbar wraps ---------- */
html body #calendar { min-height: 520px; }
html body #calendar .fc { height: auto !important; margin: 0 !important; font-size: 13px; }
html body #calendar .fc .fc-scroller-harness,
html body #calendar .fc .fc-scroller-harness-liquid,
html body #calendar .fc .fc-scroller { height: auto !important; max-height: none !important; overflow: visible !important; }
html body #calendar .fc .fc-toolbar { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
html body #calendar .fc .fc-toolbar-title { font-size: 16px; font-weight: 600; }
html body #calendar .fc .fc-daygrid-event { white-space: normal; border-radius: 6px; font-size: 12px; }
html body #calendar .fc .fc-daygrid-day-events { min-height: 0; }

/* ---------- Booking detail: concise General card ---------- */
html body .qw-gen { overflow: hidden; }
html body .qw-gen-head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
    padding: 16px 20px;
}
html body .qw-gen-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
html body .qw-gen-name { font-size: 20px; font-weight: 700; color: #fff; margin-top: 2px; }
html body .qw-gen-sub { font-size: 13px; opacity: .9; color: #fff; word-break: break-word; }
html body .qw-gen-client { color: #fff; font-weight: 600; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; padding: 6px 12px; text-decoration: none; white-space: nowrap; }
html body .qw-gen-grid, html body .qw-gen-price {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
}
html body .qw-gen-grid > div, html body .qw-gen-price > div {
    padding: 12px 20px; border-bottom: 1px solid #eef0f5; font-size: 14px; font-weight: 600; color: #0f172a;
    display: flex; flex-direction: column; gap: 3px; min-width: 0; word-break: break-word;
}
html body .qw-gen-grid > div:nth-child(3n+2), html body .qw-gen-price > div:nth-child(3n+2) { border-left: 1px solid #eef0f5; border-right: 1px solid #eef0f5; }
html body .qw-gen-grid > div span, html body .qw-gen-price > div span {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8;
}
html body .qw-gen-price { background: #f8f9fc; }
html body .qw-gen-final { color: #4f46e5 !important; font-size: 16px !important; }
@media (max-width: 768px) {
    html body .qw-gen-grid, html body .qw-gen-price { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html body .qw-gen-grid > div:nth-child(3n+2), html body .qw-gen-price > div:nth-child(3n+2) { border: 0; }
    html body .qw-gen-grid > div:nth-child(2n), html body .qw-gen-price > div:nth-child(2n) { border-left: 1px solid #eef0f5; }
}

/* ---------- Booking detail: activity timeline ---------- */
html body .qw-act-body { padding: 8px 20px 20px; max-height: 620px; overflow-y: auto; }
html body .qw-act-item { position: relative; display: flex; gap: 14px; padding: 14px 0 14px 4px; border-left: 2px solid #e7eaf2; margin-left: 6px; padding-left: 18px; }
html body .qw-act-item:last-child { border-left-color: transparent; }
html body .qw-act-dot { position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: #4f46e5; box-shadow: 0 0 0 4px #eef2ff; }
html body .qw-act-main { min-width: 0; flex: 1 1 auto; }
html body .qw-act-title { font-weight: 600; font-size: 14.5px; color: #0f172a; }
html body .qw-act-meta { font-size: 12.5px; color: #64748b; margin-top: 2px; }
html body .qw-act-changes { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
html body .qw-act-change { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #f8f9fc; border: 1px solid #eef0f5; border-radius: 10px; padding: 6px 10px; font-size: 13px; }
html body .qw-act-field { font-weight: 600; color: #334155; margin-right: 4px; }
html body .qw-act-change del { color: #b91c1c; text-decoration: line-through; word-break: break-all; }
html body .qw-act-arrow { color: #94a3b8; }
html body .qw-act-change strong { color: #047857; word-break: break-all; }

/* ---------- Booking detail: action buttons on one line ---------- */
html body .actions {
    display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 6px;
    overflow-x: auto; white-space: nowrap; max-width: 100%; scrollbar-width: thin;
}
html body .actions > *, html body .actions .dropdown { flex: 0 0 auto !important; min-width: 0 !important; margin: 0 !important; }
html body .actions .btn { white-space: nowrap; }

/* ---------- Booking detail: side menu active item stays readable ---------- */
html body #useradd-sidenav .list-group-item.active,
html body #useradd-sidenav .list-group-item:focus,
html body #useradd-sidenav .list-group-item.active .float-end i { color: #fff !important; background: linear-gradient(135deg, #4f46e5, #7c3aed) !important; }

/* ---------- Login and auth pages ---------- */
html body.qw-auth-body { background: #f4f6fb; min-height: 100vh; margin: 0; }
.qw-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }

.qw-auth-brand {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, #4338ca 0%, #4f46e5 45%, #7c3aed 100%);
    color: #fff; display: flex; align-items: center; padding: 56px 64px;
}
.qw-auth-brand::before, .qw-auth-brand::after {
    content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
}
.qw-auth-brand::before { width: 420px; height: 420px; right: -160px; top: -120px; }
.qw-auth-brand::after { width: 300px; height: 300px; left: -120px; bottom: -110px; }
.qw-brand-inner { position: relative; z-index: 1; max-width: 440px; }
.qw-brand-logo { height: 44px; width: auto; background: #fff; border-radius: 12px; padding: 8px 12px; }
.qw-auth-brand h1 { color: #fff; font-size: 34px; font-weight: 700; line-height: 1.15; margin: 36px 0 12px; letter-spacing: -.02em; }
.qw-auth-brand p { color: rgba(255,255,255,.85); font-size: 15px; margin: 0 0 32px; }
.qw-brand-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.qw-brand-points li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #fff; }
.qw-brand-points i {
    width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.16);
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}

.qw-auth-main { display: flex; flex-direction: column; padding: 28px 56px; min-width: 0; }
.qw-auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qw-mobile-logo { display: none; height: 34px; width: auto; }
.qw-lang {
    margin-left: auto; border: 1px solid #e7eaf2; background: #fff; border-radius: 10px;
    padding: 6px 30px 6px 12px; font-size: 13px; font-weight: 600; color: #334155;
}
.qw-auth-card { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; }

.qw-login { width: 100%; max-width: 400px; }
.qw-login h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; color: #0f172a; }
.qw-login-sub { color: #64748b; font-size: 14.5px; margin: 0 0 28px; }
.qw-login-form { display: flex; flex-direction: column; gap: 18px; }
.qw-field { display: flex; flex-direction: column; gap: 6px; }
.qw-field > label { font-size: 13px; font-weight: 600; color: #334155; }
.qw-input { position: relative; }
.qw-input > i:first-child {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 18px; pointer-events: none; z-index: 2;
}
.qw-input .form-control { padding: 12px 14px 12px 42px; min-height: 48px; font-size: 15px; width: 100%; }
.qw-input .form-control:focus { border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79,70,229,.14); }
.qw-input:has(.qw-eye) .form-control { padding-right: 46px; }
.qw-eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; background: transparent; color: #64748b;
    border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; z-index: 2;
}
.qw-eye:hover { background: #eef2ff; color: #4f46e5; }
.qw-error { color: #b91c1c; font-size: 13px; }
.qw-row { display: flex; justify-content: flex-end; margin-top: -6px; }
.qw-link { color: #4f46e5; font-weight: 600; text-decoration: none; font-size: 13.5px; }
.qw-link:hover { text-decoration: underline; }
.qw-submit {
    width: 100%; min-height: 50px; font-size: 15px; font-weight: 600; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px;
}
.qw-register { text-align: center; margin: 24px 0 0; font-size: 14px; color: #64748b; }
.qw-auth-foot { text-align: center; color: #94a3b8; font-size: 12.5px; margin: 16px 0 0; }

@media (max-width: 992px) {
    .qw-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .qw-auth-brand { padding: 28px 24px 34px; }
    .qw-auth-brand h1 { font-size: 24px; margin: 22px 0 8px; }
    .qw-auth-brand p { margin-bottom: 0; font-size: 14px; }
    .qw-brand-points { display: none; }
    .qw-auth-main { padding: 18px 20px 24px; }
    .qw-auth-top { display: flex; justify-content: flex-end; }
    .qw-mobile-logo { display: none; }
    .qw-auth-brand .qw-brand-logo { display: block; }
    .qw-auth-card { align-items: flex-start; padding: 24px 0 0; }
    .qw-login h2 { font-size: 24px; }
    .qw-lang { margin-left: 0; }
}
@media (max-width: 576px) {
    .qw-auth-brand { padding: 22px 20px 28px; }
    .qw-brand-logo { height: 38px; }
    .qw-input .form-control { font-size: 16px; min-height: 50px; }
    .qw-submit { min-height: 52px; }
}

/* ---------- Sidebar submenu: aligned under the parent label ---------- */
html body .dash-sidebar .dash-submenu {
    margin: 2px 0 8px 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
html body .dash-sidebar .dash-submenu .dash-item { margin: 1px 0; }
html body .dash-sidebar .dash-submenu .dash-link {
    margin: 0 !important;
    padding: 7px 10px 7px 51px !important;
    min-height: 36px;
    font-size: 13.5px;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Empty headings and DataTables lists (Notice Board, Budget, Invoices) ---------- */
html body h5:empty { display: none !important; }
html body .dataTables_wrapper { padding: 18px 20px; }
html body .dataTables_wrapper .row { margin: 0 0 12px; align-items: center; }
html body .dataTables_wrapper .dataTables_length label,
html body .dataTables_wrapper .dataTables_filter label { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 8px; margin: 0; }
html body .dataTables_wrapper .dataTables_filter input,
html body .dataTables_wrapper .dataTables_length select {
    border: 1px solid #e7eaf2; border-radius: 10px; padding: 7px 12px; font-size: 13.5px; background: #fff; color: #0f172a;
}
html body .dataTables_wrapper .dataTables_filter input { min-width: 220px; }
html body .dataTables_wrapper .dataTables_filter input:focus,
html body .dataTables_wrapper .dataTables_length select:focus { border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79,70,229,.12); outline: none; }
html body .dataTables_wrapper .dataTables_info { color: #64748b; font-size: 13px; padding-top: 14px; }
html body .dataTables_wrapper .dataTables_paginate { padding-top: 12px; }
html body .dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #e7eaf2 !important; border-radius: 10px !important; background: #fff !important;
    color: #334155 !important; padding: 5px 11px !important; margin: 0 2px; font-size: 13px;
}
html body .dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: #eef2ff !important; color: #4f46e5 !important; border-color: #c7d2fe !important; }
html body .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important; color: #fff !important; border-color: transparent !important;
}
html body .dataTables_wrapper .dataTables_paginate .paginate_button.disabled { color: #cbd5e1 !important; background: #f8fafc !important; }
html body table.dataTable thead th { background: #f8f9fc; color: #64748b; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #e7eaf2 !important; }
html body table.dataTable tbody td { border-color: #eef0f5; font-size: 14px; }
