
/* =========================================================
   SRU ROOM BOOKING - GLOBAL UI / THEME LAYER
   ========================================================= */
:root {
    --ui-bg: #f6f8fc;
    --ui-surface: #ffffff;
    --ui-surface-2: #f8fafc;
    --ui-text: #182433;
    --ui-muted: #667085;
    --ui-border: #e7ecf2;
    --ui-primary: #1677f2;
    --ui-shadow: 0 10px 35px rgba(15,23,42,.08);
    --ui-radius: 18px;
    color-scheme: light;
}
html[data-theme="dark"], body[data-theme="dark"] {
    --ui-bg: #0b1220;
    --ui-surface: #111a2b;
    --ui-surface-2: #162236;
    --ui-text: #f4f7fb;
    --ui-muted: #aab7ca;
    --ui-border: #25334a;
    --ui-primary: #68a8ff;
    --ui-shadow: 0 18px 50px rgba(0,0,0,.35);
    color-scheme: dark;
}
html[data-theme="liquid"], body[data-theme="liquid"] {
    --ui-bg: #edf4fb;
    --ui-surface: rgba(255,255,255,.64);
    --ui-surface-2: rgba(255,255,255,.45);
    --ui-text: #142033;
    --ui-muted: #64748b;
    --ui-border: rgba(255,255,255,.62);
    --ui-primary: #2776d5;
    --ui-shadow: 0 18px 45px rgba(50,86,130,.12);
}

html, body, body * { font-family:'Prompt',sans-serif !important; }
body {
    background: var(--ui-bg);
    color: var(--ui-text);
    transition: background-color .25s ease, color .25s ease;
}
button, input, select, textarea, option, table, th, td, .form-control, .form-select, .form-check-label,
.fc, .fc *, .table, .table * { font-family:'Prompt',sans-serif !important; }

/* Native / Bootstrap forms */
.form-control, .form-select {
    color:var(--ui-text) !important;
    background-color:var(--ui-surface) !important;
    border-color:var(--ui-border) !important;
}
.form-control::placeholder { color:var(--ui-muted) !important; opacity:.9; }
.form-control:focus, .form-select:focus {
    border-color:var(--ui-primary) !important;
    box-shadow:0 0 0 .2rem rgba(22,119,242,.11) !important;
}
.form-text, .text-muted { color:var(--ui-muted) !important; }
.card, .modal-content, .dropdown-menu, .alert {
    background-color:var(--ui-surface);
    color:var(--ui-text);
    border-color:var(--ui-border);
}

/* Tables */
table, .table, .approval-table, .fc-scrollgrid, .fc-theme-standard td, .fc-theme-standard th {
    font-family:'Prompt',sans-serif !important;
}
.table thead th, .approval-table th { color:var(--ui-muted) !important; }

/* FullCalendar */
.fc, .fc .fc-toolbar-title, .fc .fc-button, .fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number, .fc .fc-event-title, .fc .fc-event-time,
.fc .fc-list-day-text, .fc .fc-list-event-time, .fc .fc-list-event-title {
    font-family:'Prompt',sans-serif !important;
}
.fc .fc-toolbar-title { font-weight:700 !important; }

/* Generic cards / headings used by the app */
.card, .approval-card, #roomCalendarCard, .room-calendar-card, .history-card, .booking-card,
.user-topbar-account { transition:background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }

/* Sidebar / topbar */
.user-sidebar-wrapper, .user-sidebar {
    font-family:'Prompt',sans-serif !important;
}
.user-sidebar .nav-link, .user-sidebar .nav-link span, .user-sidebar .nav-link i,
.user-sidebar-bottom .logout-link, .user-sidebar-bottom .logout-link span,
.user-sidebar-bottom .logout-link i { font-family:'Prompt',sans-serif !important; }
.user-sidebar-bottom .logout-link,
.user-sidebar-bottom .logout-link span,
.user-sidebar-bottom .logout-link i { color:#fff !important; }

/* Existing page-specific topbars */
.user-desktop-topbar .settings-dropdown,
.user-desktop-topbar .notification-dropdown,
.settings-dropdown, .notification-dropdown {
    font-family:'Prompt',sans-serif !important;
    color:var(--ui-text) !important;
}
.settings-item, .settings-item-title, .settings-item-subtitle { font-family:'Prompt',sans-serif !important; }

/* Theme control */
.sru-theme-control {
    width:calc(100% - 16px);
    margin:8px;
    padding:11px;
    border:1px solid var(--ui-border);
    border-radius:14px;
    background:var(--ui-surface-2);
}
.sru-theme-label {
    display:block;
    margin:0 0 7px 2px;
    color:var(--ui-muted);
    font-size:11px;
    font-weight:700;
}
.sru-theme-buttons { display:flex; gap:6px; }
.sru-theme-button {
    flex:1 1 0;
    border:1px solid var(--ui-border);
    background:var(--ui-surface);
    color:var(--ui-text);
    border-radius:10px;
    padding:8px 6px;
    font:600 11px 'Prompt',sans-serif !important;
    cursor:pointer;
}
.sru-theme-button:hover { border-color:var(--ui-primary); color:var(--ui-primary); }
.sru-theme-button.active { background:rgba(22,119,242,.11); border-color:rgba(22,119,242,.35); color:var(--ui-primary); }

/* Notification base */
.notification-dropdown {
    background:var(--ui-surface) !important;
    border:1px solid var(--ui-border) !important;
    color:var(--ui-text) !important;
    box-shadow:var(--ui-shadow) !important;
}
.notification-header, .notification-footer { border-color:var(--ui-border) !important; }
.notification-item { background:transparent !important; color:var(--ui-text) !important; border-bottom:1px solid var(--ui-border); }
.notification-item:hover { background:var(--ui-surface-2) !important; }
.notification-item.unread { background:rgba(22,119,242,.07) !important; }
.notification-item-title { color:var(--ui-text) !important; font-family:'Prompt',sans-serif !important; font-weight:700 !important; }
.notification-item-message, .notification-item-time { color:var(--ui-muted) !important; }
.notification-tabs button, .mark-all-read-btn, .notification-footer a { font-family:'Prompt',sans-serif !important; }

/* Liquid / One UI-like glass effect */
html[data-theme="liquid"] body,
body[data-theme="liquid"] { background:linear-gradient(135deg,#edf5ff 0%,#f4f8fc 45%,#eaf1fb 100%); }
html[data-theme="liquid"] .notification-dropdown,
body[data-theme="liquid"] .notification-dropdown,
html[data-theme="liquid"] .settings-dropdown,
body[data-theme="liquid"] .settings-dropdown {
    background:rgba(255,255,255,.72) !important;
    border:1px solid rgba(255,255,255,.72) !important;
    backdrop-filter:blur(24px) saturate(150%);
    -webkit-backdrop-filter:blur(24px) saturate(150%);
    box-shadow:0 22px 60px rgba(48,76,112,.16) !important;
}
html[data-theme="liquid"] .notification-item.unread { background:rgba(89,161,255,.11) !important; }

/* Mobile notification: floating One UI / glass card */
@media (max-width:767.98px) {
    .mobile-header-actions .notification-dropdown,
    .notification-dropdown-mobile {
        width:min(390px, calc(100vw - 20px)) !important;
        max-width:calc(100vw - 20px) !important;
        max-height:min(560px, calc(100vh - 88px)) !important;
        border-radius:24px !important;
        overflow:hidden !important;
    }
    body[data-theme="liquid"] .mobile-header-actions .notification-dropdown,
    html[data-theme="liquid"] .notification-dropdown-mobile {
        background:rgba(247,251,255,.78) !important;
        backdrop-filter:blur(28px) saturate(160%);
        -webkit-backdrop-filter:blur(28px) saturate(160%);
    }
    .mobile-header-actions .notification-header,
    .notification-dropdown-mobile .notification-header {
        padding:16px 16px 11px !important;
    }
    .mobile-header-actions .notification-header h3,
    .notification-dropdown-mobile .notification-header h3 { font-size:18px !important; }
    .mobile-header-actions .notification-list,
    .notification-dropdown-mobile .notification-list {
        max-height:min(390px, calc(100vh - 250px)) !important;
        overflow:auto !important;
    }
    .mobile-header-actions .notification-item,
    .notification-dropdown-mobile .notification-item {
        padding:13px 15px !important;
        gap:11px !important;
    }
    .notification-item-icon { width:38px !important; height:38px !important; flex-basis:38px !important; }
}

/* Generic responsive helpers */
@media (max-width:767.98px) {
    .container, .container-fluid { max-width:100% !important; }
    .row > [class*="col-"] { min-width:0; }
}

.sru-profile-toast{position:fixed;right:22px;bottom:22px;z-index:3000;display:flex;align-items:center;gap:10px;min-width:260px;max-width:min(420px,calc(100vw - 30px));padding:13px 15px;border:1px solid var(--ui-border);border-radius:15px;background:var(--ui-surface);color:var(--ui-text);box-shadow:var(--ui-shadow);font-size:13px;font-weight:650;animation:sruToastIn .25s ease-out;}
.sru-profile-toast span{width:28px;height:28px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:rgba(22,119,242,.1);color:var(--ui-primary);font-weight:900;flex:0 0 28px;}
.sru-profile-toast-danger span{background:rgba(220,38,38,.1);color:#dc2626;}
.sru-profile-toast.hide{opacity:0;transform:translateY(10px);pointer-events:none;transition:.25s ease;}
@keyframes sruToastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:767.98px){.sru-profile-toast{right:12px;left:12px;bottom:12px;min-width:0;max-width:none;}}


/* =========================================================
   GLOBAL LIQUID + RESPONSIVE LEGACY LAYOUT
   ========================================================= */
html[data-theme="liquid"] body,
body[data-theme="liquid"]{
    background:
        radial-gradient(circle at 12% 10%, rgba(117,184,255,.16), transparent 28%),
        radial-gradient(circle at 90% 85%, rgba(178,152,255,.12), transparent 28%),
        linear-gradient(135deg,#eef6ff 0%,#f7fbff 52%,#edf4fc 100%);
    background-attachment:fixed;
}
html[data-theme="liquid"] .card,
html[data-theme="liquid"] .permission-card,
html[data-theme="liquid"] .booking-card,
html[data-theme="liquid"] .dashboard-card,
html[data-theme="liquid"] .stat-card,
html[data-theme="liquid"] .summary-card,
html[data-theme="liquid"] .modal-content{
    background:rgba(255,255,255,.66) !important;
    border-color:rgba(255,255,255,.68) !important;
    backdrop-filter:blur(20px) saturate(145%);
    -webkit-backdrop-filter:blur(20px) saturate(145%);
}

.sru-legacy-layout{
    display:flex;
    align-items:stretch;
    width:100%;
    min-height:100vh;
    margin:0;
    padding:0;
}
.sru-legacy-layout > .user-sidebar-wrapper{
    flex:0 0 256px;
    width:256px;
}
.sru-legacy-main{
    flex:1 1 auto;
    min-width:0;
    padding:24px 28px 40px;
    box-sizing:border-box;
}
.sru-legacy-main > .user-desktop-topbar{margin-bottom:18px;}
@media(max-width:767.98px){
    .sru-legacy-layout{display:block;min-height:0;}
    .sru-legacy-layout > .user-sidebar-wrapper{width:0 !important;min-width:0 !important;flex:0 0 0 !important;}
    .sru-legacy-main{width:100%;padding:16px 12px 30px;}
}

/* Never allow plugin/table typography to fall back to Kanit. */
input,select,textarea,button,option,optgroup,
.form-control,.form-select,.form-check-label,
.table,.table *,table,table *,tbody,thead,tfoot,
.dataTables_wrapper,.dataTables_wrapper *,
.fc,.fc *, .fc button, .fc input, .fc select, .fc textarea{
    font-family:'Prompt',sans-serif !important;
}


/* =========================================================
   SRU FINAL VISUAL PATCH — LIQUID LIGHT / ACCESSIBLE STATUS / DROPDOWNS
   ========================================================= */
html[data-theme="liquid"], body[data-theme="liquid"]{
    --ui-primary:#3e79c8;
    --ui-primary-strong:#2f67b7;
    --ui-surface:#ffffff;
    --ui-text:#172033;
}

/* Ensure every generated FullCalendar node stays Prompt. */
#roomCalendar,
#roomCalendar * ,
.fc,
.fc * {
    font-family:'Prompt',sans-serif !important;
}

/* Make topbar controls reliably clickable above page content. */
.user-desktop-topbar,
.user-desktop-topbar .user-topbar-account,
.admin-topbar {
    position:relative;
    z-index:5000;
}
.user-desktop-topbar .notification-dropdown,
.user-desktop-topbar .settings-dropdown,
.notification-dropdown-mobile,
.settings-dropdown-mobile {
    z-index:2147483000 !important;
    pointer-events:none;
}
.user-desktop-topbar .notification-dropdown.show,
.user-desktop-topbar .settings-dropdown.show,
.notification-dropdown-mobile.show,
.settings-dropdown-mobile.show {
    pointer-events:auto;
}

/* Status vocabulary used across booking cards/history/approval. */
.status-approved,
.badge.status-approved {
    background:#16a34a !important;
    color:#fff !important;
    border:1px solid rgba(22,163,74,.34) !important;
    box-shadow:0 7px 16px rgba(22,163,74,.16) !important;
}
.status-pending,
.badge.status-pending {
    background:#f59e0b !important;
    color:#2f2100 !important;
    border:1px solid rgba(217,119,6,.30) !important;
    box-shadow:0 7px 16px rgba(245,158,11,.15) !important;
}
.status-rejected,
.badge.status-rejected {
    background:#dc2626 !important;
    color:#fff !important;
    border:1px solid rgba(220,38,38,.34) !important;
    box-shadow:0 7px 16px rgba(220,38,38,.15) !important;
}
.status-cancelled,
.status-finished,
.badge.status-cancelled,
.badge.status-finished {
    background:#64748b !important;
    color:#fff !important;
    border:1px solid rgba(100,116,139,.34) !important;
    box-shadow:0 7px 16px rgba(100,116,139,.13) !important;
}

/* Liquid primary action used for booking CTA. */
.liquid-booking-btn{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:1px solid rgba(255,255,255,.76) !important;
    background:linear-gradient(135deg,rgba(73,137,216,.92),rgba(54,108,191,.86)) !important;
    color:#fff !important;
    border-radius:15px !important;
    box-shadow:0 14px 30px rgba(54,108,191,.22), inset 0 1px 0 rgba(255,255,255,.34) !important;
    backdrop-filter:blur(18px) saturate(155%);
    -webkit-backdrop-filter:blur(18px) saturate(155%);
    font-family:'Prompt',sans-serif !important;
    font-weight:750 !important;
    transition:transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
.liquid-booking-btn:hover{
    color:#fff !important;
    transform:translateY(-2px);
    filter:brightness(1.03);
    box-shadow:0 18px 34px rgba(54,108,191,.26), inset 0 1px 0 rgba(255,255,255,.38) !important;
}

/* Liquid cards and buttons inherit accessible text. */
html[data-theme="liquid"] .btn-secondary,
html[data-theme="liquid"] .btn-light,
html[data-theme="liquid"] .btn-outline-secondary{
    color:#294563 !important;
}

/* Form text + native controls */
body, body button, body input, body select, body textarea,
body option, body table, body th, body td,
body .form-label, body .form-text, body .form-check-label,
body .form-control, body .form-select {
    font-family:'Prompt',sans-serif !important;
}


/* Desktop Liquid sidebar: keep the same One UI-like glass language. */
@media (min-width:768px){
    html[data-theme="liquid"] .user-sidebar-wrapper{
        background:linear-gradient(180deg,rgba(255,255,255,.58),rgba(235,244,253,.55)) !important;
        border-right:1px solid rgba(255,255,255,.80) !important;
        backdrop-filter:blur(22px) saturate(145%);
        -webkit-backdrop-filter:blur(22px) saturate(145%);
    }
    html[data-theme="liquid"] .user-sidebar{
        background:linear-gradient(180deg,rgba(255,255,255,.70),rgba(230,240,251,.60)) !important;
        color:#172033 !important;
        backdrop-filter:blur(24px) saturate(145%);
        -webkit-backdrop-filter:blur(24px) saturate(145%);
    }
    html[data-theme="liquid"] .user-sidebar-header{
        background:linear-gradient(180deg,rgba(255,255,255,.38),rgba(255,255,255,0)) !important;
    }
    html[data-theme="liquid"] .user-sidebar .nav-link{
        color:#60758e !important;
        background:rgba(255,255,255,.18) !important;
        border:1px solid rgba(255,255,255,.22) !important;
    }
    html[data-theme="liquid"] .user-sidebar .nav-link:hover{
        color:#205fa7 !important;
        background:rgba(255,255,255,.55) !important;
        border-color:rgba(255,255,255,.70) !important;
    }
    html[data-theme="liquid"] .user-sidebar .nav-link.active{
        color:#145fae !important;
        background:linear-gradient(135deg,rgba(224,239,255,.84),rgba(203,227,253,.66)) !important;
        border-color:rgba(166,203,239,.78) !important;
        box-shadow:0 10px 25px rgba(61,116,175,.11) !important;
    }
    html[data-theme="liquid"] .user-sidebar .nav-link i{color:#5d7da0 !important;}
    html[data-theme="liquid"] .user-sidebar .nav-link.active i{color:#2d76c7 !important;}
    html[data-theme="liquid"] .user-sidebar-bottom,
    html[data-theme="liquid"] .user-sidebar-divider{border-color:rgba(130,158,191,.18) !important;}
    html[data-theme="liquid"] .sru-sidebar-theme-panel{
        background:rgba(255,255,255,.30) !important;
        border:1px solid rgba(255,255,255,.46) !important;
        border-radius:18px !important;
        backdrop-filter:blur(15px) saturate(145%);
        -webkit-backdrop-filter:blur(15px) saturate(145%);
    }
}

/* =========================================================
   V4 FINAL — NO EMOJI UI, ICON FONT FIX, LIQUID, THEMES
   ========================================================= */
/* Tabler icons MUST keep their icon font; global Prompt must not override them. */
.ti,.ti[class*="ti-"],[class^="ti-"],[class*=" ti-"]{
    font-family:'tabler-icons' !important;font-style:normal !important;font-weight:normal !important;
    font-variant:normal;text-transform:none;line-height:1;display:inline-block;
}
/* FullCalendar ships a separate icon font. Prevent Prompt from replacing its arrows. */
.fc .fc-icon,.fc-icon{
    font-family:'fcicons' !important;font-style:normal !important;font-weight:normal !important;line-height:1;
}
/* Prompt everywhere else. */
html,body,body *,button,input,select,textarea,option,optgroup,table,th,td,.table,.table *,.form-control,.form-select,.modal,.modal *,.fc,.fc *{font-family:'Prompt',sans-serif !important;}
.ti,.ti[class*="ti-"],[class^="ti-"],[class*=" ti-"]{font-family:'tabler-icons' !important;}
.fc .fc-icon,.fc-icon{font-family:'fcicons' !important;}

/* Settings theme selector — only Light / Dark / ตามระบบ. */
.settings-theme-block{margin-top:8px;padding:10px;border-radius:16px;background:rgba(237,245,254,.58);border:1px solid rgba(211,226,242,.84);}
.settings-theme-title{display:flex;align-items:center;gap:7px;margin-bottom:8px;color:#54708d;font-size:11px;font-weight:800;}
.settings-theme-title .ti{color:#2c73bb !important;font-size:15px;}
.settings-theme-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
.settings-theme-btn{min-width:0;min-height:45px;padding:7px 4px;border:1px solid rgba(206,222,239,.92);border-radius:12px;background:rgba(255,255,255,.72);color:#4c6781;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:700 10px 'Prompt',sans-serif !important;cursor:pointer;transition:.18s ease;}
.settings-theme-btn .ti{font-size:17px;color:#3e7db9 !important;}
.settings-theme-btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.94);border-color:rgba(92,151,210,.50);box-shadow:0 7px 15px rgba(44,97,150,.10);}
.settings-theme-btn.active{background:linear-gradient(135deg,rgba(224,239,255,.96),rgba(210,231,252,.72));border-color:rgba(96,161,222,.72);color:#1e67ad;box-shadow:0 8px 18px rgba(48,108,167,.11);}

/* Liquid light is the app's Light theme. */
html[data-theme="liquid"],body[data-theme="liquid"]{--ui-bg:#edf5fc;--ui-surface:rgba(255,255,255,.70);--ui-surface-2:rgba(248,252,255,.56);--ui-text:#172033;--ui-muted:#61758e;--ui-border:rgba(211,225,240,.80);--ui-primary:#3c79bd;}
html[data-theme="liquid"] body,body[data-theme="liquid"]{background:radial-gradient(circle at 10% 0%,rgba(120,184,245,.14),transparent 28%),radial-gradient(circle at 90% 85%,rgba(171,200,231,.13),transparent 26%),linear-gradient(135deg,#eef6fd 0%,#f7fbff 52%,#edf4fb 100%) !important;background-attachment:fixed;}
html[data-theme="liquid"] .user-content,html[data-theme="liquid"] .user-page-content,html[data-theme="liquid"] .user-main-content,html[data-theme="liquid"] .admin-page,body[data-theme="liquid"] .user-content,body[data-theme="liquid"] .user-page-content{background:transparent !important;}
html[data-theme="liquid"] .card,html[data-theme="liquid"] .booking-card,html[data-theme="liquid"] .dashboard-card,html[data-theme="liquid"] .permission-card,html[data-theme="liquid"] .stat-card,html[data-theme="liquid"] .summary-card{background:rgba(255,255,255,.66) !important;border-color:rgba(255,255,255,.88) !important;box-shadow:0 18px 44px rgba(49,83,120,.10),inset 0 1px 0 rgba(255,255,255,.76) !important;backdrop-filter:blur(18px) saturate(145%);-webkit-backdrop-filter:blur(18px) saturate(145%);}

/* Status colors used by history/cards/approval. */
.status-approved,.badge.status-approved{background:#16a34a !important;color:#fff !important;border-color:#12813b !important;box-shadow:0 7px 17px rgba(22,163,74,.16) !important;}
.status-pending,.badge.status-pending{background:#f4b400 !important;color:#2f2100 !important;border-color:#d99700 !important;box-shadow:0 7px 17px rgba(244,180,0,.14) !important;}
.status-rejected,.badge.status-rejected{background:#dc2626 !important;color:#fff !important;border-color:#b91c1c !important;box-shadow:0 7px 17px rgba(220,38,38,.15) !important;}
.status-cancelled,.badge.status-cancelled{background:#64748b !important;color:#fff !important;border-color:#475569 !important;box-shadow:0 7px 17px rgba(100,116,139,.14) !important;}
.status-finished,.badge.status-finished{background:#64748b !important;color:#fff !important;border-color:#475569 !important;}

/* Topbar icons — single blue family + hover. */
.user-topbar-icon{color:#2e73bc !important;background:rgba(238,246,255,.80) !important;border:1px solid rgba(209,226,242,.86) !important;}
.user-topbar-icon .ti{color:#2e73bc !important;font-size:19px;}
.user-topbar-icon:hover{background:rgba(255,255,255,.96) !important;border-color:rgba(107,167,221,.54) !important;box-shadow:0 8px 18px rgba(42,98,153,.10);transform:translateY(-1px);}
.user-topbar-avatar-default .ti{color:#4f7fae !important;}
.notification-item-icon,.settings-item-icon{color:#2e73bc !important;}
.notification-item-icon .ti,.settings-item-icon .ti{color:#2e73bc !important;font-size:18px;}

/* FullCalendar liquid glass + keep arrows/icons intact. */
html[data-theme="liquid"] #roomCalendar,html[data-theme="liquid"] .fc{font-family:'Prompt',sans-serif !important;color:#30475f !important;}
html[data-theme="liquid"] #roomCalendar{padding:7px;border-radius:22px;background:rgba(255,255,255,.42);border:1px solid rgba(255,255,255,.82);box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 14px 36px rgba(51,84,120,.08);backdrop-filter:blur(16px) saturate(145%);-webkit-backdrop-filter:blur(16px) saturate(145%);}
html[data-theme="liquid"] .fc .fc-toolbar{margin-bottom:12px !important;}
html[data-theme="liquid"] .fc .fc-toolbar-title{color:#172033 !important;font-weight:800 !important;}
html[data-theme="liquid"] .fc .fc-button-primary{background:rgba(255,255,255,.68) !important;color:#2f70b3 !important;border:1px solid rgba(255,255,255,.90) !important;border-radius:12px !important;box-shadow:0 7px 17px rgba(48,92,135,.10),inset 0 1px 0 rgba(255,255,255,.70) !important;}
html[data-theme="liquid"] .fc .fc-button-primary:hover,html[data-theme="liquid"] .fc .fc-button-primary:focus{background:rgba(255,255,255,.92) !important;color:#1f65aa !important;border-color:rgba(107,169,221,.50) !important;}
html[data-theme="liquid"] .fc .fc-button-primary.fc-button-active{background:linear-gradient(135deg,rgba(224,239,255,.96),rgba(209,230,251,.78)) !important;color:#1e65ac !important;border-color:rgba(112,168,218,.54) !important;}
html[data-theme="liquid"] .fc-theme-standard .fc-scrollgrid,html[data-theme="liquid"] .fc-theme-standard td,html[data-theme="liquid"] .fc-theme-standard th{border-color:rgba(184,202,221,.42) !important;}
html[data-theme="liquid"] .fc .fc-scrollgrid-liquid{border-radius:17px;overflow:hidden;background:rgba(255,255,255,.24);}
html[data-theme="liquid"] .fc .fc-col-header-cell-cushion{color:#516983 !important;font-weight:750;}
html[data-theme="liquid"] .fc .fc-daygrid-day{background:rgba(255,255,255,.28) !important;}
html[data-theme="liquid"] .fc .fc-daygrid-day:hover{background:rgba(255,255,255,.52) !important;}
html[data-theme="liquid"] .fc .fc-daygrid-day-number{color:#2b3f55 !important;font-weight:650;}
html[data-theme="liquid"] .fc .fc-daygrid-day.fc-day-today{background:rgba(255,242,182,.50) !important;}
html[data-theme="liquid"] .fc .fc-event{border-radius:8px !important;box-shadow:0 4px 10px rgba(44,76,112,.10);font-weight:650 !important;}

/* Liquid booking CTA. */
.liquid-booking-btn{display:inline-flex !important;align-items:center;justify-content:center;gap:7px;background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(219,236,252,.76)) !important;color:#2b6eae !important;border:1px solid rgba(255,255,255,.92) !important;border-radius:15px !important;box-shadow:0 11px 26px rgba(52,94,135,.12),inset 0 1px 0 rgba(255,255,255,.78) !important;backdrop-filter:blur(16px) saturate(155%);-webkit-backdrop-filter:blur(16px) saturate(155%);font-weight:750 !important;}
.liquid-booking-btn .ti{color:#2b6eae !important;}
.liquid-booking-btn:hover{color:#1d5e9d !important;background:linear-gradient(135deg,rgba(255,255,255,.97),rgba(207,229,250,.88)) !important;transform:translateY(-1px);}

/* Booking cart: compact, safe area, never forced open on mobile. */
.booking-cart{z-index:1200 !important;}
.booking-cart-close{font-size:12px !important;padding:0 9px !important;min-width:48px;width:auto !important;color:#2f6f9f !important;background:rgba(255,255,255,.66) !important;}
.booking-cart-minibar{color:#2b658f !important;background:rgba(255,255,255,.76) !important;}
.booking-cart-minibar .ti{color:#3d7db7 !important;font-size:15px;}
.booking-confirm-overlay{z-index:2147482000 !important;}
.booking-confirm-icon .ti{font-family:'tabler-icons' !important;color:#2d70be !important;font-size:24px;}
@media(max-width:767.98px){
    .booking-cart{bottom:74px !important;left:9px !important;right:9px !important;width:auto !important;max-height:min(47dvh,410px) !important;border-radius:22px !important;padding:12px !important;}
    .booking-cart-body{max-height:calc(min(47dvh,410px) - 128px) !important;}
    .booking-cart-minibar{left:12px !important;right:12px !important;bottom:max(12px,env(safe-area-inset-bottom)) !important;min-height:46px !important;padding:8px 12px !important;border-radius:16px !important;}
    .booking-confirm-popup{width:min(470px,calc(100vw - 26px)) !important;max-height:76dvh !important;padding:20px 14px !important;border-radius:22px !important;}
    .booking-confirm-popup h3{font-size:20px !important;}
    .booking-confirm-actions{flex-direction:column-reverse !important;}
    .booking-confirm-back,.booking-confirm-submit{width:100% !important;min-width:0 !important;}
}

/* Smaller booking detail modal so it does not compete with top notification. */
.booking-detail-modal .modal-dialog{max-width:560px !important;margin-top:70px !important;margin-bottom:20px !important;}
.booking-detail-modal .modal-content{border-radius:20px !important;border:1px solid rgba(255,255,255,.88) !important;background:rgba(255,255,255,.88) !important;backdrop-filter:blur(22px) saturate(150%);-webkit-backdrop-filter:blur(22px) saturate(150%);box-shadow:0 26px 65px rgba(38,64,94,.18) !important;}
.booking-detail-modal .modal-body{max-height:calc(100dvh - 220px);overflow:auto;}
@media(max-width:767.98px){.booking-detail-modal .modal-dialog{max-width:calc(100vw - 24px) !important;margin:62px 12px 14px !important;}.booking-detail-modal .modal-body{max-height:calc(100dvh - 175px);}.booking-detail-modal .booking-detail-box{padding:11px !important;border-radius:12px !important;}}

/* Form/table text contrast. */
html[data-theme="liquid"] input,html[data-theme="liquid"] select,html[data-theme="liquid"] textarea,html[data-theme="liquid"] .form-control,html[data-theme="liquid"] .form-select{color:#172033 !important;background:rgba(255,255,255,.70) !important;}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select{color:#eef5ff !important;background:rgba(25,37,56,.82) !important;border-color:rgba(125,149,177,.40) !important;}
html[data-theme="dark"] .settings-theme-block{background:rgba(31,45,66,.72);border-color:rgba(255,255,255,.10);}
html[data-theme="dark"] .settings-theme-btn{background:rgba(27,39,58,.78);color:#c7d6e8;border-color:rgba(255,255,255,.10);}
html[data-theme="dark"] .settings-theme-btn.active{background:rgba(77,134,196,.22);color:#dff0ff;border-color:rgba(127,186,244,.36);}
html[data-theme="dark"] .booking-detail-modal .modal-content{background:rgba(23,34,53,.94) !important;color:#f4f7fb !important;border-color:rgba(255,255,255,.12) !important;}

/* Prevent invisible white labels in dark/light glass. */
html[data-theme="liquid"] .settings-item-title,html[data-theme="liquid"] .notification-item-title,html[data-theme="liquid"] .booking-detail-value{color:#172033 !important;}
html[data-theme="dark"] .settings-item-title,html[data-theme="dark"] .notification-item-title{color:#f4f7fb !important;}


/* V5 visual safeguards: one icon language + compact booking detail dialog. */
.ti,.ti[class*="ti-"],[class^="ti-"],[class*=" ti-"]{font-family:'tabler-icons' !important;font-style:normal !important;font-weight:400 !important;}
.user-sidebar .sru-sidebar-icon,.user-topbar-icon .ti,.settings-item-icon .ti,.notification-item-icon .ti,.settings-theme-btn .ti{color:#2e73bc !important;}
.user-sidebar .nav-link:hover .sru-sidebar-icon,.user-sidebar .nav-link.active .sru-sidebar-icon{color:#236fbe !important;}
.booking-detail-modal .modal-dialog{max-width:470px !important;margin-top:78px !important;margin-bottom:18px !important;}
.booking-detail-modal .modal-content{border-radius:18px !important;}
.booking-detail-modal .modal-body{max-height:calc(100dvh - 205px) !important;}
@media(max-width:767.98px){
    .booking-detail-modal .modal-dialog{max-width:calc(100vw - 32px) !important;margin:54px 16px 12px !important;}
    .booking-detail-modal .modal-body{max-height:calc(100dvh - 145px) !important;}
}

/* =========================================================
   V10 STABILITY LAYER
   Inline SVG icons + explicit click targets.
   ========================================================= */
.sru-svg-icon{width:1em !important;height:1em !important;display:inline-block !important;flex:0 0 auto !important;overflow:visible !important;vertical-align:-.125em !important;fill:none !important;stroke:currentColor !important;stroke-width:1.8 !important;stroke-linecap:round !important;stroke-linejoin:round !important;color:currentColor !important;}
.user-sidebar .sru-svg-icon{width:20px !important;height:20px !important;color:#2e73bc !important;}
.user-sidebar .nav-link:hover .sru-svg-icon,.user-sidebar .nav-link.active .sru-svg-icon{color:#176bc2 !important;}
.user-sidebar .logout-link .sru-svg-icon{color:#fff !important;}
.desktop-sidebar-toggle .sru-svg-icon,.mobile-drawer-trigger .sru-svg-icon,.user-topbar-icon .sru-svg-icon,.settings-item-icon .sru-svg-icon,.notification-item-icon .sru-svg-icon,.settings-theme-title .sru-svg-icon,.settings-theme-btn .sru-svg-icon{color:#2e73bc !important;}
.user-topbar-icon,.notification-btn,.settings-btn,.mobile-drawer-trigger,.desktop-sidebar-toggle,.sru-login-action,.logout-link,.user-sidebar .nav-link{pointer-events:auto !important;cursor:pointer !important;}
.user-desktop-topbar,.user-desktop-topbar .user-topbar-account,.user-sidebar-wrapper,.mobile-header-actions{pointer-events:auto !important;}

/* FullCalendar arrow fallback when its fcicons font is unavailable. */
.fc .fc-icon{font-family:Arial,Helvetica,sans-serif !important;font-weight:700 !important;line-height:1 !important;}
.fc .fc-icon:before{font-family:Arial,Helvetica,sans-serif !important;}
.fc .fc-icon-chevron-left:before{content:'‹' !important;font-size:28px !important;}
.fc .fc-icon-chevron-right:before{content:'›' !important;font-size:28px !important;}
.fc .fc-icon-chevrons-left:before{content:'«' !important;font-size:24px !important;}
.fc .fc-icon-chevrons-right:before{content:'»' !important;font-size:24px !important;}
.fc .fc-icon-x:before{content:'×' !important;font-size:24px !important;}

/* Liquid mode must remain readable; never wash core text to white. */
html[data-theme="liquid"] body,html[data-theme="liquid"] .user-sidebar,html[data-theme="liquid"] .user-desktop-topbar .user-topbar-account{color:#172033 !important;}
html[data-theme="liquid"] .user-sidebar-title,html[data-theme="liquid"] .user-sidebar-subtitle,html[data-theme="liquid"] .user-topbar-name,html[data-theme="liquid"] .user-topbar-role,html[data-theme="liquid"] h1,html[data-theme="liquid"] h2,html[data-theme="liquid"] h3,html[data-theme="liquid"] h4,html[data-theme="liquid"] label,html[data-theme="liquid"] .form-label{color:#172033 !important;}
.notification-dropdown.show,.settings-dropdown.show{pointer-events:auto !important;}

/* Session timeout dialog. */
.sru-session-timeout-overlay{position:fixed !important;inset:0 !important;z-index:2147483647 !important;display:flex !important;align-items:center !important;justify-content:center !important;padding:18px !important;background:rgba(15,23,42,.48) !important;backdrop-filter:blur(8px) !important;-webkit-backdrop-filter:blur(8px) !important;}
.sru-session-timeout-card{width:min(430px,calc(100vw - 30px));padding:28px 24px 24px;border-radius:24px;text-align:center;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.9);box-shadow:0 28px 80px rgba(15,23,42,.28);font-family:'Prompt',sans-serif;}
.sru-session-timeout-icon{width:58px;height:58px;border-radius:18px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;background:rgba(39,118,213,.10);color:#2e73bc;}
.sru-session-timeout-icon .sru-svg-icon{width:30px !important;height:30px !important;}
.sru-session-timeout-card h2{margin:0 0 10px;color:#172033;font-size:21px;font-weight:800;}
.sru-session-timeout-card p{margin:3px 0;color:#64748b;font-size:13px;line-height:1.65;}
.sru-session-timeout-btn{margin-top:18px;width:100%;min-height:46px;border:0;border-radius:13px;background:#2776d5;color:#fff !important;font:700 13px 'Prompt',sans-serif;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;box-shadow:0 10px 24px rgba(39,118,213,.20);}
.sru-session-timeout-btn .sru-svg-icon{width:17px !important;height:17px !important;}
html[data-theme="dark"] .sru-session-timeout-card{background:#132036;border-color:rgba(255,255,255,.10);} html[data-theme="dark"] .sru-session-timeout-card h2{color:#f4f7fb;} html[data-theme="dark"] .sru-session-timeout-card p{color:#aab7ca;}


/* =========================================================
   V11 STABILITY PATCH — CLICK TARGETS / LOGOUT / GOOGLE CTA
   ========================================================= */
/* Never let the transparent topbar container block the page behind it. */
.user-desktop-topbar{pointer-events:none !important;}
.user-desktop-topbar .user-topbar-account{pointer-events:none !important;}
.user-desktop-topbar .notification-wrapper,
.user-desktop-topbar .settings-wrapper,
.user-desktop-topbar .user-topbar-avatar,
.user-desktop-topbar .user-topbar-info,
.user-desktop-topbar .notification-btn,
.user-desktop-topbar .settings-btn,
.user-desktop-topbar .notification-dropdown,
.user-desktop-topbar .settings-dropdown,
.user-desktop-topbar a,
.user-desktop-topbar button{pointer-events:auto !important;}

/* The sidebar itself is always an active click surface. */
.user-sidebar-wrapper,
.user-sidebar,
.user-sidebar .nav-link,
.user-sidebar .nav-link *{pointer-events:auto !important;}

/* Desktop overlay is only for the mobile drawer; never create a click shield on desktop. */
@media (min-width:768px){
  .user-sidebar-overlay{display:none !important;pointer-events:none !important;visibility:hidden !important;opacity:0 !important;}
}

/* Logout must remain visible in Liquid light mode. */
.user-sidebar .logout-link,
.user-sidebar .logout-link span,
.user-sidebar .logout-link .sru-sidebar-icon,
.user-sidebar .logout-link .sru-svg-icon{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  opacity:1 !important;
  visibility:visible !important;
}
.user-sidebar .logout-link{
  background:linear-gradient(135deg,#ef495b,#dc3047) !important;
  border:1px solid rgba(255,255,255,.45) !important;
  min-height:44px !important;
  box-shadow:0 10px 24px rgba(220,48,71,.16) !important;
}
.user-sidebar .logout-link:hover{background:linear-gradient(135deg,#e94356,#cb2940) !important;}

/* Reliable Google CTA: keep the original Google SVG asset. */
.sru-login-action{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:4px !important;
  position:relative !important;
  z-index:20 !important;
  pointer-events:auto !important;
  cursor:pointer !important;
  text-decoration:none !important;
  user-select:none !important;
}
.sru-login-action img{display:block !important;flex:0 0 auto !important;pointer-events:none !important;}
.sru-login-action span{pointer-events:none !important;}

/* Make all primary controls explicit click surfaces. */
button,.btn,a.nav-link,input[type="submit"],input[type="button"],select{pointer-events:auto;}

/* Close a dropdown before navigation, but never place an invisible shield over content. */
.notification-dropdown:not(.show),
.settings-dropdown:not(.show){pointer-events:none !important;visibility:hidden !important;opacity:0 !important;}
.notification-dropdown.show,
.settings-dropdown.show{pointer-events:auto !important;visibility:visible !important;opacity:1 !important;}

/* =========================================================
   V14 — FINAL LOGIN CLICK TARGET + SIDEBAR TYPOGRAPHY
   ========================================================= */
.sru-login-action{
  position:relative !important;
  z-index:2147483000 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:46px !important;
  padding:10px 18px !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  touch-action:manipulation !important;
  -webkit-tap-highlight-color:transparent !important;
  user-select:none !important;
  isolation:isolate !important;
}
.sru-login-action img{display:block !important;width:22px !important;height:22px !important;flex:0 0 22px !important;pointer-events:none !important;}
.sru-login-action span{pointer-events:none !important;}
.sru-login-action:hover{filter:brightness(.985);box-shadow:0 8px 20px rgba(15,23,42,.08) !important;}

/* The landing/login page is unauthenticated: do not let app click-shields affect it. */
body:not(:has(.user-sidebar)) .sru-login-action{pointer-events:auto !important;}

/* Keep sidebar subtitle comfortably readable on desktop/mobile. */
.user-sidebar-subtitle{font-size:13px !important;line-height:1.55 !important;font-weight:500 !important;}
@media(max-width:767.98px){
  .user-sidebar-subtitle{font-size:11.5px !important;line-height:1.5 !important;font-weight:500 !important;}
}


/* =========================================================
   V15 INTERACTION / RESPONSIVE / THEME HARDENING
   ========================================================= */
/* Keep the topbar from becoming a full-page click shield. Only its actual
   controls receive pointer events. */
.user-desktop-topbar{
    position:fixed !important;
    top:16px !important;
    right:22px !important;
    width:auto !important;
    height:auto !important;
    z-index:50000 !important;
    pointer-events:none !important;
}
.user-desktop-topbar .user-topbar-account{
    position:relative !important;
    z-index:50001 !important;
    pointer-events:auto !important;
}
.user-desktop-topbar .notification-wrapper,
.user-desktop-topbar .settings-wrapper,
.user-desktop-topbar .user-topbar-avatar,
.user-desktop-topbar .user-topbar-info,
.user-desktop-topbar .notification-btn,
.user-desktop-topbar .settings-btn{
    pointer-events:auto !important;
}
.user-desktop-topbar .notification-dropdown,
.user-desktop-topbar .settings-dropdown{
    pointer-events:none !important;
}
.user-desktop-topbar .notification-dropdown.show,
.user-desktop-topbar .settings-dropdown.show{
    pointer-events:auto !important;
}

/* Main navigation must stay above any transparent decorative layers. */
.user-sidebar-wrapper{position:sticky !important;z-index:12000 !important;pointer-events:auto !important;}
.user-sidebar{position:relative !important;z-index:12001 !important;pointer-events:auto !important;}
.user-sidebar .nav-link,
.user-sidebar .nav-link *{pointer-events:auto !important;position:relative;z-index:12002;}
.desktop-sidebar-toggle{z-index:12010 !important;pointer-events:auto !important;}
.user-sidebar-overlay{pointer-events:none !important;}
@media(min-width:768px){
    .user-sidebar-overlay{display:none !important;visibility:hidden !important;opacity:0 !important;}
}

/* All app page content gets a lower stacking context than interactive chrome. */
.user-page-content,
.user-main-content,
.admin-page,
.sru-legacy-main,
main{position:relative;z-index:1;}

/* Dropdowns use one predictable layer and never keep an invisible hitbox. */
.notification-dropdown,
.settings-dropdown{
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    transition:opacity .16s ease, transform .16s ease !important;
}
.notification-dropdown.show,
.settings-dropdown.show{
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
    z-index:2147483000 !important;
}

/* Notification counter: red, circular, bottom-right like approval count. */
.notification-btn{position:relative !important;overflow:visible !important;}
.notification-badge{
    position:absolute !important;
    right:-4px !important;
    bottom:-4px !important;
    top:auto !important;
    min-width:19px !important;
    width:auto !important;
    height:19px !important;
    padding:0 5px !important;
    border-radius:999px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#e3263f !important;
    color:#fff !important;
    border:2px solid #fff !important;
    font:800 9px/1 'Prompt',sans-serif !important;
    box-shadow:0 4px 10px rgba(227,38,63,.25) !important;
    z-index:50 !important;
}
html[data-theme="dark"] .notification-badge{border-color:#111a2b !important;}

/* Logout: red/white in normal state; invert on hover. */
.user-sidebar .logout-link,
.user-sidebar .logout-link span,
.user-sidebar .logout-link .sru-sidebar-icon,
.user-sidebar .logout-link .sru-svg-icon{
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
}
.user-sidebar .logout-link{
    background:#e3263f !important;
    border:1px solid #e3263f !important;
    box-shadow:0 10px 24px rgba(227,38,63,.15) !important;
}
.user-sidebar .logout-link:hover,
.user-sidebar .logout-link:focus-visible{
    background:#fff !important;
    border-color:#e3263f !important;
    color:#e3263f !important;
}
.user-sidebar .logout-link:hover span,
.user-sidebar .logout-link:hover .sru-sidebar-icon,
.user-sidebar .logout-link:hover .sru-svg-icon,
.user-sidebar .logout-link:focus-visible span,
.user-sidebar .logout-link:focus-visible .sru-sidebar-icon,
.user-sidebar .logout-link:focus-visible .sru-svg-icon{
    color:#e3263f !important;
    -webkit-text-fill-color:#e3263f !important;
}

/* User status badge in topbar. */
.user-topbar-role-badge{
    display:inline-flex !important;
    align-items:center;
    min-height:18px;
    padding:2px 7px;
    border-radius:999px;
    background:rgba(45,118,189,.10);
    border:1px solid rgba(45,118,189,.18);
    color:#2b6eaf !important;
    font:800 9px/1 'Prompt',sans-serif !important;
    white-space:nowrap;
}
html[data-theme="dark"] .user-topbar-role-badge{
    background:rgba(104,168,255,.14);
    border-color:rgba(104,168,255,.25);
    color:#bcdcff !important;
}

/* Gear icon: clean centered SVG stroke. */
.user-topbar-settings .settings-btn .sru-svg-icon,
.user-topbar-settings .settings-btn .ti{
    width:19px !important;
    height:19px !important;
    font-size:19px !important;
    stroke-width:2 !important;
    color:#2e73bc !important;
}
.user-topbar-settings .settings-btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:1 !important;
}

/* Mobile drawer: true viewport drawer, stable sizing and scrolling. */
@media(max-width:767.98px){
    .user-sidebar-wrapper{z-index:10000 !important;}
    .mobile-header-actions{z-index:10003 !important;pointer-events:auto !important;}
    .mobile-drawer-trigger{z-index:10004 !important;pointer-events:auto !important;}
    .user-sidebar{z-index:10005 !important;overflow:hidden !important;}
    .user-sidebar-menu{overflow:auto !important;overscroll-behavior:contain !important;}
    .user-sidebar-bottom{flex:0 0 auto !important;}
    .user-sidebar .nav-link{z-index:10006 !important;}
    .user-sidebar-overlay{z-index:10001 !important;}
    body.mobile-drawer-open .user-sidebar-overlay{pointer-events:auto !important;}
    body.mobile-drawer-open .user-sidebar{z-index:10006 !important;}
    .user-desktop-topbar{display:none !important;}
    .notification-dropdown-mobile,
    .settings-dropdown-mobile{z-index:10020 !important;}
}

/* Light = Liquid Glass: no accidental dark surfaces. */
html[data-theme="liquid"] body,
html[data-theme="liquid"] .user-sidebar,
html[data-theme="liquid"] .user-desktop-topbar .user-topbar-account,
html[data-theme="liquid"] .card,
html[data-theme="liquid"] .modal-content,
html[data-theme="liquid"] .dropdown-menu,
html[data-theme="liquid"] .settings-dropdown,
html[data-theme="liquid"] .notification-dropdown{
    color:#172033 !important;
}
html[data-theme="liquid"] .user-sidebar,
html[data-theme="liquid"] .user-desktop-topbar .user-topbar-account{
    background-color:rgba(255,255,255,.66) !important;
}
html[data-theme="liquid"] .user-sidebar .nav-link,
html[data-theme="liquid"] .user-sidebar .nav-link span,
html[data-theme="liquid"] .user-sidebar .nav-link i,
html[data-theme="liquid"] .user-topbar-name,
html[data-theme="liquid"] .settings-header h3,
html[data-theme="liquid"] .notification-header h3,
html[data-theme="liquid"] .settings-item-title,
html[data-theme="liquid"] .notification-item-title{color:#172033 !important;}
html[data-theme="liquid"] .settings-item-subtitle,
html[data-theme="liquid"] .notification-item-message,
html[data-theme="liquid"] .notification-item-time{color:#61758e !important;}

/* Dark = explicitly dark across shared chrome and common Bootstrap surfaces. */
html[data-theme="dark"] body{background:#0b1220 !important;color:#f4f7fb !important;}
html[data-theme="dark"] .user-sidebar,
html[data-theme="dark"] .user-desktop-topbar .user-topbar-account,
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .settings-dropdown,
html[data-theme="dark"] .notification-dropdown,
html[data-theme="dark"] .alert,
html[data-theme="dark"] .table,
html[data-theme="dark"] .table td,
html[data-theme="dark"] .table th,
html[data-theme="dark"] .approval-card,
html[data-theme="dark"] .booking-card,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .permission-card,
html[data-theme="dark"] .summary-card{
    background-color:#111a2b !important;
    color:#f4f7fb !important;
    border-color:#25334a !important;
}
html[data-theme="dark"] .user-sidebar .nav-link{color:#b7c7da !important;background:rgba(255,255,255,.035) !important;}
html[data-theme="dark"] .user-sidebar .nav-link.active,
html[data-theme="dark"] .user-sidebar .nav-link:hover{color:#e6f2ff !important;background:rgba(86,149,221,.18) !important;border-color:rgba(123,180,240,.24) !important;}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] h5,html[data-theme="dark"] h6,
html[data-theme="dark"] label,html[data-theme="dark"] .form-label,html[data-theme="dark"] .fc,
html[data-theme="dark"] .fc-toolbar-title,html[data-theme="dark"] .fc-col-header-cell-cushion,
html[data-theme="dark"] .fc-daygrid-day-number{color:#f4f7fb !important;}
html[data-theme="dark"] .text-muted,html[data-theme="dark"] .form-text{color:#aab7ca !important;}
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select,html[data-theme="dark"] textarea,html[data-theme="dark"] input,html[data-theme="dark"] select{
    background:#19253a !important;color:#f4f7fb !important;border-color:#34445e !important;
}
html[data-theme="dark"] .form-control::placeholder{color:#93a6bd !important;}
html[data-theme="dark"] .notification-item{color:#f4f7fb !important;border-bottom-color:#25334a !important;}
html[data-theme="dark"] .notification-item-message,html[data-theme="dark"] .notification-item-time,
html[data-theme="dark"] .settings-item-subtitle{color:#aab7ca !important;}
html[data-theme="dark"] .user-sidebar-bottom{border-top-color:rgba(255,255,255,.10) !important;}

/* Theme selector is always present inside Setting dropdowns, including mobile. */
.settings-theme-block{display:block !important;}
.settings-theme-buttons{pointer-events:auto !important;}
.settings-theme-btn{pointer-events:auto !important;cursor:pointer !important;}

/* =========================================================
   V16 FINAL CLEAN INTERACTION / DESKTOP / MOBILE
   ========================================================= */

/* Stable stacking: interactive chrome always sits above page content. */
.user-main-content,
.sru-legacy-layout{position:relative !important;z-index:0 !important;}
.user-content,
.user-page-content,
.sru-legacy-main,
.admin-content{position:relative !important;z-index:1 !important;}
.user-sidebar-wrapper{position:sticky !important;z-index:2147482000 !important;isolation:isolate !important;pointer-events:auto !important;}
.user-sidebar{position:relative !important;z-index:2147482001 !important;pointer-events:auto !important;}
.user-sidebar-menu,.user-sidebar-bottom{position:relative !important;z-index:2147482002 !important;pointer-events:auto !important;}
.user-sidebar .nav-link{position:relative !important;z-index:2147482003 !important;pointer-events:auto !important;touch-action:manipulation !important;}
.user-sidebar .nav-link *{pointer-events:none !important;}
.desktop-sidebar-toggle{z-index:2147482010 !important;pointer-events:auto !important;}

/* Desktop topbar: compact, aligned and independently clickable. */
@media(min-width:768px){
    .user-desktop-topbar{
        position:fixed !important;
        top:18px !important;
        right:22px !important;
        width:auto !important;
        height:auto !important;
        z-index:2147482500 !important;
        pointer-events:none !important;
        display:flex !important;
        justify-content:flex-end !important;
    }
    .user-desktop-topbar .user-topbar-account{
        position:relative !important;
        display:flex !important;
        align-items:center !important;
        gap:6px !important;
        min-height:52px !important;
        padding:5px !important;
        border-radius:18px !important;
        pointer-events:auto !important;
        z-index:2147482501 !important;
    }
    .user-desktop-topbar .notification-wrapper,
    .user-desktop-topbar .settings-wrapper{
        position:relative !important;
        z-index:2147482502 !important;
        pointer-events:auto !important;
    }
    .user-desktop-topbar .notification-btn,
    .user-desktop-topbar .settings-btn{
        width:42px !important;
        height:42px !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        border:0 !important;
        border-radius:13px !important;
        background:rgba(255,255,255,.78) !important;
        color:#2d73ba !important;
        box-shadow:none !important;
        pointer-events:auto !important;
        cursor:pointer !important;
    }
    .user-desktop-topbar .user-topbar-avatar{width:42px !important;height:42px !important;flex:0 0 42px !important;pointer-events:auto !important;}
    .user-desktop-topbar .user-topbar-info{pointer-events:auto !important;min-width:0 !important;}
    .user-desktop-topbar .notification-dropdown,
    .user-desktop-topbar .settings-dropdown{
        position:absolute !important;
        top:calc(100% + 10px) !important;
        right:0 !important;
        left:auto !important;
        width:360px !important;
        max-width:min(360px,calc(100vw - 24px)) !important;
        margin:0 !important;
        transform:none !important;
        pointer-events:none !important;
        visibility:hidden !important;
        opacity:0 !important;
        z-index:2147482600 !important;
    }
    .user-desktop-topbar .notification-dropdown.show,
    .user-desktop-topbar .settings-dropdown.show{
        pointer-events:auto !important;
        visibility:visible !important;
        opacity:1 !important;
    }
}

/* The dropdowns are anchored to their button wrappers; no fixed-position drift. */
.notification-wrapper,.settings-wrapper{position:relative !important;}
.notification-dropdown,.settings-dropdown{
    max-width:calc(100vw - 20px) !important;
    box-sizing:border-box !important;
}
.notification-dropdown.show,.settings-dropdown.show{pointer-events:auto !important;}
.notification-dropdown .notification-item,
.notification-dropdown .notification-header button,
.notification-dropdown .notification-footer a,
.settings-dropdown .settings-item,
.settings-dropdown .settings-theme-btn{pointer-events:auto !important;cursor:pointer !important;touch-action:manipulation !important;}

/* Clean notification controls. */
.notification-tabs{display:flex !important;gap:6px !important;}
.notification-tabs button,
.mark-all-read-btn{
    border:0 !important;
    border-radius:9px !important;
    background:rgba(39,118,213,.08) !important;
    color:#2e73bc !important;
    padding:7px 10px !important;
    font:600 11px/1.2 'Prompt',sans-serif !important;
    cursor:pointer !important;
}
.notification-tabs button.active{background:rgba(39,118,213,.14) !important;color:#1e66b3 !important;}
.notification-item{cursor:pointer !important;}

/* Gear icon: optically centered, never skewed. */
.user-topbar-settings .settings-btn svg.sru-svg-icon,
.user-topbar-settings .settings-btn .ti{
    display:block !important;
    width:19px !important;
    height:19px !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
    flex:0 0 19px !important;
    line-height:1 !important;
}

/* Logout: red with white icon/text; invert on hover. No decorative stroke. */
.user-sidebar .logout-link,
.user-sidebar .logout-link:visited{
    background:#e3263f !important;
    color:#fff !important;
    border:0 !important;
    box-shadow:0 12px 26px rgba(227,38,63,.17) !important;
    -webkit-text-fill-color:#fff !important;
}
.user-sidebar .logout-link span,
.user-sidebar .logout-link .sru-sidebar-icon,
.user-sidebar .logout-link .sru-svg-icon{color:#fff !important;-webkit-text-fill-color:#fff !important;}
.user-sidebar .logout-link:hover,
.user-sidebar .logout-link:focus-visible{
    background:#fff !important;
    color:#e3263f !important;
    border:0 !important;
    box-shadow:0 10px 24px rgba(227,38,63,.14) !important;
}
.user-sidebar .logout-link:hover span,
.user-sidebar .logout-link:hover .sru-sidebar-icon,
.user-sidebar .logout-link:hover .sru-svg-icon,
.user-sidebar .logout-link:focus-visible span,
.user-sidebar .logout-link:focus-visible .sru-sidebar-icon,
.user-sidebar .logout-link:focus-visible .sru-svg-icon{color:#e3263f !important;-webkit-text-fill-color:#e3263f !important;}

/* Mobile header controls: white, no stroke. */
@media(max-width:767.98px){
    .mobile-header-actions{
        position:fixed !important;
        top:12px !important;
        right:108px !important;
        z-index:2147483004 !important;
        pointer-events:auto !important;
    }
    .mobile-header-actions .notification-wrapper,
    .mobile-header-actions .settings-wrapper{position:relative !important;}
    .mobile-header-actions .notification-btn,
    .mobile-header-actions .settings-btn,
    .mobile-drawer-trigger{
        border:0 !important;
        background:#fff !important;
        color:#2d73ba !important;
        box-shadow:0 10px 26px rgba(40,78,120,.11) !important;
    }
    .mobile-header-actions .notification-btn,
    .mobile-header-actions .settings-btn{width:44px !important;height:44px !important;border-radius:15px !important;}
    .mobile-drawer-trigger{right:12px !important;top:12px !important;}
    .mobile-header-actions .ti,.mobile-header-actions .sru-svg-icon,.mobile-drawer-trigger .ti,.mobile-drawer-trigger .sru-svg-icon{color:#2d73ba !important;}

    .user-sidebar-wrapper{z-index:2147483000 !important;}
    .user-sidebar-overlay{z-index:2147483001 !important;pointer-events:none !important;}
    body.mobile-drawer-open .user-sidebar-overlay{pointer-events:auto !important;}
    .user-sidebar{z-index:2147483002 !important;}
    body.mobile-drawer-open .user-sidebar{z-index:2147483003 !important;}
    .user-sidebar .nav-link{z-index:2147483004 !important;}

    /* Mobile drawer is white/light in Light/Liquid mode. */
    html[data-theme="liquid"] .user-sidebar,
    html[data-theme="light"] .user-sidebar,
    body[data-theme="liquid"] .user-sidebar,
    body[data-theme="light"] .user-sidebar{
        background:#fff !important;
        color:#172033 !important;
        border:0 !important;
        box-shadow:0 24px 70px rgba(34,67,105,.22) !important;
    }
    html[data-theme="liquid"] .user-sidebar .nav-link,
    html[data-theme="light"] .user-sidebar .nav-link,
    body[data-theme="liquid"] .user-sidebar .nav-link,
    body[data-theme="light"] .user-sidebar .nav-link{
        background:#fff !important;
        color:#526b87 !important;
        border:0 !important;
        box-shadow:0 3px 12px rgba(49,87,130,.06) !important;
    }
    html[data-theme="liquid"] .user-sidebar .nav-link.active,
    html[data-theme="light"] .user-sidebar .nav-link.active{
        background:linear-gradient(135deg,#eaf4ff,#dceeff) !important;
        color:#1e67b5 !important;
        border:0 !important;
        box-shadow:0 8px 22px rgba(64,125,191,.10) !important;
    }
    .user-sidebar-header{background:#fff !important;border:0 !important;}
    .user-sidebar-logo-wrap{background:#fff !important;border:0 !important;box-shadow:none !important;width:66px !important;height:66px !important;}
    .user-sidebar-header img{width:48px !important;height:48px !important;object-fit:contain !important;object-position:center !important;transform:none !important;}
    .user-sidebar-header-close{border:0 !important;background:#eef5fc !important;color:#2d73ba !important;box-shadow:none !important;}
    .user-sidebar-bottom{border-top:1px solid #eef2f7 !important;}

    /* Mobile dropdowns sit next to their buttons and do not drift off-screen. */
    .mobile-header-actions .notification-dropdown,
    .mobile-header-actions .settings-dropdown{
        position:absolute !important;
        top:calc(100% + 10px) !important;
        right:0 !important;
        left:auto !important;
        width:min(370px,calc(100vw - 20px)) !important;
        max-width:calc(100vw - 20px) !important;
        max-height:calc(100dvh - 88px) !important;
        transform:none !important;
        z-index:2147483500 !important;
    }
    .mobile-header-actions .notification-dropdown.show,
    .mobile-header-actions .settings-dropdown.show{pointer-events:auto !important;visibility:visible !important;opacity:1 !important;}

    /* Settings on mobile includes the same theme controls as desktop. */
    .settings-dropdown-mobile .settings-theme-block{display:block !important;margin-top:10px !important;padding-top:10px !important;border-top:1px solid #e9eef5 !important;}
    .settings-dropdown-mobile .settings-theme-buttons{display:flex !important;gap:6px !important;}
    .settings-dropdown-mobile .settings-theme-btn{flex:1 1 0 !important;min-height:44px !important;border:0 !important;border-radius:12px !important;background:#f7fafe !important;color:#29415d !important;}
    .settings-dropdown-mobile .settings-theme-btn.active{background:#e5f2ff !important;color:#246fbd !important;}
    .settings-dropdown-mobile .settings-theme-btn .sru-svg-icon{color:#2e73bc !important;width:17px !important;height:17px !important;}
}

/* Theme separation: Light/Liquid and Dark are visually unambiguous. */
html[data-theme="liquid"] body,
html[data-theme="light"] body{background:#eef5fb !important;color:#172033 !important;}
html[data-theme="liquid"] .user-sidebar,
html[data-theme="light"] .user-sidebar{color:#172033 !important;}
html[data-theme="dark"] body{background:#0a1220 !important;color:#f7fbff !important;}
html[data-theme="dark"] .user-sidebar,
html[data-theme="dark"] .user-desktop-topbar .user-topbar-account,
html[data-theme="dark"] .mobile-header-actions .notification-btn,
html[data-theme="dark"] .mobile-header-actions .settings-btn,
html[data-theme="dark"] .mobile-drawer-trigger{background:#111a2b !important;color:#d8e7f8 !important;border-color:#25334a !important;}
html[data-theme="dark"] .user-sidebar{border-right:1px solid #25334a !important;}
html[data-theme="dark"] .user-sidebar .nav-link{background:#111a2b !important;color:#b9c8da !important;border:0 !important;}
html[data-theme="dark"] .user-sidebar .nav-link.active,
html[data-theme="dark"] .user-sidebar .nav-link:hover{background:#1a2b44 !important;color:#e8f3ff !important;border:0 !important;}
html[data-theme="dark"] .settings-dropdown,
html[data-theme="dark"] .notification-dropdown{background:#111a2b !important;color:#f4f7fb !important;border:1px solid #25334a !important;}
html[data-theme="dark"] .notification-tabs button,
html[data-theme="dark"] .mark-all-read-btn{background:#1b2d47 !important;color:#d5e8ff !important;}
html[data-theme="dark"] .settings-dropdown-mobile .settings-theme-block{border-top-color:#25334a !important;}
html[data-theme="dark"] .settings-dropdown-mobile .settings-theme-btn{background:#19253a !important;color:#d6e5f6 !important;}
html[data-theme="dark"] .settings-dropdown-mobile .settings-theme-btn.active{background:#263f61 !important;color:#dff0ff !important;}

/* Booking CTA: liquid, no stroke. */
.liquid-booking-btn,
.btn.liquid-booking-btn,
a.liquid-booking-btn{
    border:0 !important;
    outline:0 !important;
    background:rgba(225,239,255,.92) !important;
    color:#2770bd !important;
    box-shadow:0 10px 24px rgba(61,113,169,.12) !important;
    backdrop-filter:blur(16px) saturate(145%);
    -webkit-backdrop-filter:blur(16px) saturate(145%);
}
.liquid-booking-btn:hover{background:#d8ebff !important;color:#1e66b3 !important;transform:translateY(-1px);}

/* All core clickable controls. */
button,.btn,a.nav-link,input[type="submit"],input[type="button"],select{touch-action:manipulation;}

/* =========================================================
   V17 SHARED GLOBAL TOPBAR / POPUPS / THEME
   One popup instance per page; desktop + mobile triggers share it.
   ========================================================= */

html, body { min-width:0 !important; }
body { overflow-x:hidden !important; }

/* Shared account capsule */
.user-desktop-topbar{
    position:fixed !important;
    top:18px !important;
    right:22px !important;
    z-index:2147483001 !important;
    display:flex !important;
    justify-content:flex-end !important;
    pointer-events:none !important;
    width:auto !important;
    padding:0 !important;
}
.user-topbar-account{
    min-width:260px !important;
    max-width:min(430px,calc(100vw - 24px)) !important;
    min-height:56px !important;
    padding:6px 10px 6px 7px !important;
    gap:7px !important;
    border:0 !important;
    background:rgba(255,255,255,.72) !important;
    border-radius:19px !important;
    box-shadow:0 14px 35px rgba(45,79,116,.11) !important;
    backdrop-filter:blur(22px) saturate(150%) !important;
    -webkit-backdrop-filter:blur(22px) saturate(150%) !important;
    pointer-events:auto !important;
}
.user-topbar-icon{
    width:42px !important;height:42px !important;flex:0 0 42px !important;
    display:inline-flex !important;align-items:center !important;justify-content:center !important;
    border:0 !important;border-radius:13px !important;
    background:rgba(255,255,255,.84) !important;
    color:#2d73ba !important;cursor:pointer !important;
    box-shadow:0 8px 18px rgba(53,91,132,.08) !important;
    padding:0 !important;
}
.user-topbar-icon:hover{background:#e9f4ff !important;color:#1f69b1 !important;transform:translateY(-1px);}
.user-topbar-icon .sru-svg-icon{width:20px !important;height:20px !important;margin:0 !important;}
.user-topbar-avatar{width:44px !important;height:44px !important;flex:0 0 44px !important;object-fit:cover !important;border-radius:50% !important;}
.user-topbar-info{min-width:0 !important;max-width:250px !important;line-height:1.2 !important;pointer-events:none !important;}
.user-topbar-name{color:#172033 !important;font-size:14px !important;font-weight:800 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}
.user-topbar-role{margin-top:3px !important;}
.user-topbar-role-badge{display:inline-flex !important;align-items:center !important;min-height:18px !important;padding:2px 8px !important;border-radius:999px !important;background:rgba(45,118,189,.10) !important;border:0 !important;color:#2b6eaf !important;font:800 9px/1 'Prompt',sans-serif !important;}

/* Global popup portal */
.sru-global-dropdown-layer{
    position:fixed !important;
    inset:0 !important;
    z-index:2147483000 !important;
    pointer-events:none !important;
    overflow:visible !important;
}
.sru-global-popup{
    position:fixed !important;
    left:12px;
    top:12px;
    display:block !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    z-index:2147483005 !important;
    box-sizing:border-box !important;
    margin:0 !important;
    border-radius:22px !important;
    overflow:hidden !important;
    transform:translateY(-4px) scale(.985) !important;
    transform-origin:top right !important;
    transition:opacity .16s ease,transform .16s ease,visibility .16s ease !important;
    color:var(--ui-text) !important;
}
.sru-global-popup.show{
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
    transform:none !important;
}
html[data-theme="liquid"] .sru-global-popup{
    background:rgba(248,252,255,.82) !important;
    border:1px solid rgba(255,255,255,.88) !important;
    box-shadow:0 24px 65px rgba(46,80,117,.20) !important;
    backdrop-filter:blur(30px) saturate(165%) !important;
    -webkit-backdrop-filter:blur(30px) saturate(165%) !important;
}
html[data-theme="dark"] .sru-global-popup{
    background:rgba(17,26,43,.97) !important;
    border:1px solid #2a3a53 !important;
    box-shadow:0 24px 65px rgba(0,0,0,.38) !important;
    color:#f4f7fb !important;
}

/* Notification popup */
.sru-global-popup[data-popup-type="notification"]{width:390px;max-height:72vh;}
.sru-global-popup .notification-header{
    display:flex !important;align-items:flex-start !important;justify-content:space-between !important;
    gap:12px !important;padding:16px 16px 12px !important;
    border-bottom:1px solid var(--ui-border) !important;
}
.sru-global-popup .notification-header h3,.sru-global-popup .settings-header h3{
    margin:0 !important;color:var(--ui-text) !important;font-size:18px !important;font-weight:800 !important;line-height:1.35 !important;
}
.sru-global-popup .notification-tabs{display:flex !important;gap:6px !important;margin-top:8px !important;}
.sru-global-popup .notification-tabs button,.sru-global-popup .mark-all-read-btn{
    appearance:none !important;border:0 !important;border-radius:9px !important;background:rgba(39,118,213,.09) !important;color:#2e73bc !important;
    padding:7px 10px !important;font:600 11px/1.2 'Prompt',sans-serif !important;cursor:pointer !important;box-shadow:none !important;
}
.sru-global-popup .notification-tabs button.active{background:rgba(39,118,213,.16) !important;color:#1f69b1 !important;}
.sru-global-popup .notification-list{max-height:calc(72vh - 122px) !important;overflow:auto !important;overscroll-behavior:contain !important;}
.sru-global-popup .notification-item{position:relative !important;display:flex !important;gap:10px !important;padding:13px 14px !important;background:transparent !important;color:var(--ui-text) !important;border-bottom:1px solid var(--ui-border) !important;cursor:pointer !important;}
.sru-global-popup .notification-item:hover{background:rgba(39,118,213,.06) !important;}
.sru-global-popup .notification-item.unread{background:rgba(39,118,213,.075) !important;}
.sru-global-popup .notification-item-icon{width:36px !important;height:36px !important;flex:0 0 36px !important;display:flex !important;align-items:center !important;justify-content:center !important;border-radius:11px !important;background:rgba(39,118,213,.08) !important;color:#2c73bb !important;}
.sru-global-popup .notification-item-icon .sru-svg-icon{width:17px !important;height:17px !important;}
.sru-global-popup .notification-item-content{min-width:0 !important;flex:1 1 auto !important;}
.sru-global-popup .notification-item-title{margin-bottom:2px !important;color:var(--ui-text) !important;font-size:13px !important;font-weight:800 !important;line-height:1.45 !important;}
.sru-global-popup .notification-item-message{color:var(--ui-muted) !important;font-size:12px !important;line-height:1.5 !important;overflow-wrap:anywhere !important;}
.sru-global-popup .notification-item-time{margin-top:2px !important;color:var(--ui-muted) !important;font-size:10px !important;line-height:1.4 !important;}
.sru-global-popup .notification-unread-dot{position:absolute !important;right:10px !important;top:12px !important;width:8px !important;height:8px !important;border-radius:50% !important;background:#e3263f !important;box-shadow:0 0 0 3px rgba(227,38,63,.12) !important;}
.sru-global-popup .notification-footer{padding:11px 14px !important;text-align:center !important;border-top:1px solid var(--ui-border) !important;}
.sru-global-popup .notification-footer a{color:#2b73bc !important;text-decoration:none !important;font-size:12px !important;font-weight:700 !important;}

/* Settings popup */
.sru-global-popup[data-popup-type="settings"]{width:370px;max-height:72vh;}
.sru-global-popup .settings-header{padding:16px 18px 12px !important;border-bottom:1px solid var(--ui-border) !important;}
.sru-global-popup .settings-menu{padding:6px !important;}
.sru-global-popup .settings-item{display:flex !important;align-items:center !important;gap:12px !important;width:100% !important;min-height:62px !important;padding:10px 12px !important;border:0 !important;border-radius:13px !important;background:transparent !important;color:var(--ui-text) !important;text-align:left !important;cursor:pointer !important;}
.sru-global-popup .settings-item:hover{background:rgba(39,118,213,.07) !important;}
.sru-global-popup .settings-item-icon{width:34px !important;height:34px !important;flex:0 0 34px !important;display:flex !important;align-items:center !important;justify-content:center !important;border-radius:10px !important;background:rgba(39,118,213,.09) !important;color:#2d73ba !important;}
.sru-global-popup .settings-item-icon .sru-svg-icon{width:17px !important;height:17px !important;}
.sru-global-popup .settings-item-content{min-width:0 !important;}
.sru-global-popup .settings-item-title{color:var(--ui-text) !important;font-size:13px !important;font-weight:800 !important;line-height:1.35 !important;}
.sru-global-popup .settings-item-subtitle{margin-top:2px !important;color:var(--ui-muted) !important;font-size:11px !important;line-height:1.4 !important;}
.sru-global-popup .settings-theme-block{margin:7px 5px 5px !important;padding:11px !important;border-radius:14px !important;background:rgba(255,255,255,.32) !important;border:1px solid var(--ui-border) !important;}
.sru-global-popup .settings-theme-title{display:flex !important;align-items:center !important;gap:7px !important;margin-bottom:9px !important;color:var(--ui-text) !important;font-size:12px !important;font-weight:800 !important;}
.sru-global-popup .settings-theme-title .sru-svg-icon{width:15px !important;height:15px !important;color:#2d73ba !important;}
.sru-global-popup .settings-theme-buttons{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:7px !important;}
.sru-global-popup .settings-theme-btn{min-width:0 !important;min-height:44px !important;display:flex !important;align-items:center !important;justify-content:center !important;gap:5px !important;border:0 !important;border-radius:12px !important;background:rgba(255,255,255,.74) !important;color:#4a5f78 !important;font:700 11px/1.1 'Prompt',sans-serif !important;cursor:pointer !important;}
.sru-global-popup .settings-theme-btn .sru-svg-icon{width:15px !important;height:15px !important;color:currentColor !important;}
.sru-global-popup .settings-theme-btn:hover{background:#e8f3ff !important;color:#246eb8 !important;}
.sru-global-popup .settings-theme-btn.active{background:#dceeff !important;color:#246eb8 !important;box-shadow:inset 0 0 0 1px rgba(91,164,235,.30) !important;}
html[data-theme="dark"] .sru-global-popup .settings-theme-block{background:rgba(255,255,255,.03) !important;}
html[data-theme="dark"] .sru-global-popup .settings-theme-btn{background:#19253a !important;color:#d6e5f6 !important;}
html[data-theme="dark"] .sru-global-popup .settings-theme-btn:hover,html[data-theme="dark"] .sru-global-popup .settings-theme-btn.active{background:#263f61 !important;color:#e4f1ff !important;}

/* Mobile: popup follows the same global host instead of being nested in the drawer. */
@media(max-width:767.98px){
    .user-desktop-topbar{display:none !important;}
    .sru-global-popup[data-popup-type="notification"]{width:min(420px,calc(100vw - 24px)) !important;max-height:70vh !important;border-radius:24px !important;}
    .sru-global-popup[data-popup-type="settings"]{width:min(390px,calc(100vw - 24px)) !important;max-height:76vh !important;border-radius:24px !important;}
    .sru-global-popup .notification-list{max-height:calc(70vh - 122px) !important;}
    .sru-global-popup .notification-item{padding:12px 13px !important;}
    .sru-global-popup .notification-item-title{font-size:13px !important;}
    .sru-global-popup .notification-item-message{font-size:12px !important;}
    .sru-global-popup .settings-item{min-height:68px !important;}
}

/* Theme-wide light/dark inversion for common app surfaces. Light is Liquid. */
html[data-theme="liquid"] body{background:linear-gradient(135deg,#edf5ff 0%,#f6f9fd 48%,#eaf2fb 100%) !important;color:#172033 !important;}
html[data-theme="liquid"] .user-content,html[data-theme="liquid"] .admin-content,html[data-theme="liquid"] main{color:#172033 !important;}
html[data-theme="liquid"] h1,html[data-theme="liquid"] h2,html[data-theme="liquid"] h3,html[data-theme="liquid"] h4,html[data-theme="liquid"] h5,html[data-theme="liquid"] h6,html[data-theme="liquid"] label{color:#172033 !important;}
html[data-theme="liquid"] .card,html[data-theme="liquid"] .alert,html[data-theme="liquid"] .table-responsive,html[data-theme="liquid"] .approval-card,html[data-theme="liquid"] .booking-card,html[data-theme="liquid"] .permission-card,html[data-theme="liquid"] .history-card{background:rgba(255,255,255,.72) !important;color:#172033 !important;border-color:rgba(214,228,241,.80) !important;}
html[data-theme="dark"] body{background:#0b1220 !important;color:#f4f7fb !important;}
html[data-theme="dark"] .user-content,html[data-theme="dark"] .admin-content,html[data-theme="dark"] main{color:#f4f7fb !important;}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] h5,html[data-theme="dark"] h6,html[data-theme="dark"] label,html[data-theme="dark"] .form-label{color:#f4f7fb !important;}
html[data-theme="dark"] .card,html[data-theme="dark"] .alert,html[data-theme="dark"] .table-responsive,html[data-theme="dark"] .approval-card,html[data-theme="dark"] .booking-card,html[data-theme="dark"] .permission-card,html[data-theme="dark"] .history-card{background:#111a2b !important;color:#f4f7fb !important;border-color:#25334a !important;}
html[data-theme="dark"] .table,html[data-theme="dark"] .table td,html[data-theme="dark"] .table th{background:#111a2b !important;color:#f4f7fb !important;border-color:#25334a !important;}
html[data-theme="dark"] .text-muted,html[data-theme="dark"] .form-text,html[data-theme="dark"] .user-topbar-role{color:#aab7ca !important;}
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select,html[data-theme="dark"] textarea,html[data-theme="dark"] input,html[data-theme="dark"] select{background:#19253a !important;color:#f4f7fb !important;border-color:#34445e !important;}
html[data-theme="dark"] .form-control::placeholder{color:#8fa3bb !important;}
html[data-theme="dark"] .user-topbar-account{background:rgba(17,26,43,.90) !important;box-shadow:0 16px 42px rgba(0,0,0,.28) !important;}
html[data-theme="dark"] .user-topbar-icon{background:#19253a !important;color:#a9d0ff !important;}
html[data-theme="dark"] .user-topbar-icon:hover{background:#243754 !important;color:#d8ecff !important;}

/* Mobile menu always follows current theme, while Liquid is explicitly white. */
html[data-theme="liquid"] .user-sidebar{background:rgba(255,255,255,.97) !important;color:#172033 !important;}
html[data-theme="liquid"] .user-sidebar .nav-link{color:#5b6f87 !important;background:rgba(247,250,254,.90) !important;}
html[data-theme="liquid"] .user-sidebar .nav-link.active{color:#1d65b0 !important;background:linear-gradient(135deg,#eaf4ff,#dceeff) !important;}
html[data-theme="dark"] .user-sidebar{background:rgba(17,26,43,.97) !important;color:#f4f7fb !important;}
html[data-theme="dark"] .user-sidebar .nav-link{background:rgba(255,255,255,.035) !important;color:#b7c7da !important;}
html[data-theme="dark"] .user-sidebar .nav-link.active{background:rgba(86,149,221,.20) !important;color:#e6f2ff !important;}

/* Remove decorative outlines from the Liquid booking CTA. */
.liquid-booking-btn{border:0 !important;outline:0 !important;box-shadow:0 12px 28px rgba(39,118,213,.18) !important;}


/* =========================================================
   V20 FINAL INTERACTION FIX
   Keep page content clickable; popups only intercept their own area.
   ========================================================= */
html,body{overflow-x:hidden !important;}
.user-page,.user-main-content,.user-content,main{position:relative;z-index:1 !important;}
.user-sidebar-wrapper{position:sticky !important;z-index:20000 !important;pointer-events:auto !important;}
.user-sidebar,.user-sidebar-menu,.user-sidebar-bottom,.user-sidebar .nav-link{pointer-events:auto !important;}
.user-sidebar-overlay{pointer-events:none !important;}
@media(min-width:768px){.user-sidebar-overlay{display:none !important;visibility:hidden !important;opacity:0 !important;}}
.user-desktop-topbar{z-index:25000 !important;pointer-events:none !important;}
.user-desktop-topbar .user-topbar-account,.user-desktop-topbar .notification-wrapper,.user-desktop-topbar .settings-wrapper,.user-desktop-topbar .user-topbar-icon{pointer-events:auto !important;}
.sru-global-dropdown-layer{pointer-events:none !important;z-index:30000 !important;}
.sru-global-popup{pointer-events:none !important;z-index:30005 !important;}
.sru-global-popup.show{pointer-events:auto !important;}
.user-sidebar .nav-link{position:relative !important;z-index:20010 !important;cursor:pointer !important;touch-action:manipulation !important;}
.user-content a:not(.disabled),.user-content button:not(:disabled),.user-content input[type="submit"],.user-content input[type="button"],.user-content select{position:relative;z-index:10;cursor:pointer;}
button:disabled,.btn:disabled{cursor:not-allowed !important;}

/* Dashboard topbar lives in the global fixed layer; prevent local legacy rules from adding spacing. */
.user-content > .user-desktop-topbar{margin:0 !important;padding:0 !important;min-height:0 !important;height:0 !important;}
@media(max-width:767.98px){.user-content > .user-desktop-topbar{display:none !important;}}

/* Exact logout appearance in both themes. */
.user-sidebar .logout-link,.user-sidebar .logout-link:visited{background:#e3263f !important;color:#fff !important;border:0 !important;box-shadow:0 12px 26px rgba(227,38,63,.17) !important;}
.user-sidebar .logout-link span,.user-sidebar .logout-link .sru-sidebar-icon,.user-sidebar .logout-link .sru-svg-icon{color:#fff !important;-webkit-text-fill-color:#fff !important;}
.user-sidebar .logout-link:hover,.user-sidebar .logout-link:focus-visible{background:#fff !important;color:#e3263f !important;border:0 !important;}
.user-sidebar .logout-link:hover span,.user-sidebar .logout-link:hover .sru-sidebar-icon,.user-sidebar .logout-link:hover .sru-svg-icon,.user-sidebar .logout-link:focus-visible span,.user-sidebar .logout-link:focus-visible .sru-sidebar-icon,.user-sidebar .logout-link:focus-visible .sru-sidebar-icon{color:#e3263f !important;-webkit-text-fill-color:#e3263f !important;}


/* =========================================================
   V22 CLEAN FINAL UI OVERRIDES
   Single source of truth for interaction chrome.
   ========================================================= */

/* Prevent hidden desktop/mobile controls from blocking clicks. */
.mobile-header-actions { display:none !important; pointer-events:none !important; }
.sru-global-dropdown-layer { pointer-events:none !important; z-index:2147483000 !important; }
.sru-global-popup {
    position:fixed !important;
    display:block !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    z-index:2147483005 !important;
    box-sizing:border-box !important;
    margin:0 !important;
    transform:translateY(-4px) scale(.985) !important;
}
.sru-global-popup.show {
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
    transform:none !important;
}

/* Desktop topbar: compact and in-flow neutral; popup is portal/fixed. */
@media (min-width:768px) {
    .user-desktop-topbar {
        position:fixed !important;
        top:18px !important;
        right:22px !important;
        width:auto !important;
        height:auto !important;
        min-height:0 !important;
        margin:0 !important;
        padding:0 !important;
        z-index:2147482500 !important;
        pointer-events:none !important;
    }
    .user-desktop-topbar .user-topbar-account {
        display:flex !important;
        align-items:center !important;
        gap:7px !important;
        min-width:260px !important;
        max-width:min(430px,calc(100vw - 24px)) !important;
        min-height:56px !important;
        padding:6px 10px 6px 7px !important;
        border:0 !important;
        border-radius:19px !important;
        pointer-events:auto !important;
    }
    .user-desktop-topbar .notification-wrapper,
    .user-desktop-topbar .settings-wrapper,
    .user-desktop-topbar .notification-btn,
    .user-desktop-topbar .settings-btn { pointer-events:auto !important; }
    .user-desktop-topbar .user-topbar-icon {
        width:42px !important;
        height:42px !important;
        flex:0 0 42px !important;
        border:0 !important;
        border-radius:13px !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 !important;
    }
    .user-desktop-topbar .user-topbar-avatar { width:44px !important; height:44px !important; flex:0 0 44px !important; }
    .user-desktop-topbar .user-topbar-info { min-width:0 !important; max-width:250px !important; }
}

/* Single canonical logout treatment. */
.user-sidebar .user-sidebar-bottom .logout-link,
.user-sidebar .user-sidebar-bottom .logout-link:visited {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:9px !important;
    min-height:46px !important;
    padding:10px 16px !important;
    background:#e3263f !important;
    color:#fff !important;
    border:0 !important;
    border-radius:14px !important;
    opacity:1 !important;
    -webkit-text-fill-color:#fff !important;
    box-shadow:0 12px 26px rgba(227,38,63,.17) !important;
    text-decoration:none !important;
}
.user-sidebar .user-sidebar-bottom .logout-link * {
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    stroke:#fff !important;
}
.user-sidebar .user-sidebar-bottom .logout-link:hover,
.user-sidebar .user-sidebar-bottom .logout-link:focus-visible {
    background:#fff !important;
    color:#e3263f !important;
    -webkit-text-fill-color:#e3263f !important;
}
.user-sidebar .user-sidebar-bottom .logout-link:hover * ,
.user-sidebar .user-sidebar-bottom .logout-link:focus-visible * {
    color:#e3263f !important;
    -webkit-text-fill-color:#e3263f !important;
    stroke:#e3263f !important;
}

/* Mobile hamburger-only top chrome. Notification/Setting live in the drawer. */
@media (max-width:767.98px) {
    .mobile-drawer-trigger {
        position:fixed !important;
        top:12px !important;
        right:12px !important;
        width:46px !important;
        height:46px !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 !important;
        border:0 !important;
        border-radius:15px !important;
        background:rgba(255,255,255,.94) !important;
        color:#2d73ba !important;
        z-index:2147483010 !important;
        pointer-events:auto !important;
        box-shadow:0 10px 25px rgba(48,81,118,.15) !important;
    }
    .mobile-menu-tools {
        display:flex !important;
        flex-direction:column !important;
        gap:8px !important;
        padding:8px 12px 4px !important;
    }
    .mobile-menu-tool {
        position:relative !important;
        width:100% !important;
        min-height:52px !important;
        display:flex !important;
        align-items:center !important;
        gap:11px !important;
        padding:11px 14px !important;
        border:0 !important;
        border-radius:15px !important;
        background:rgba(247,250,254,.92) !important;
        color:#546b85 !important;
        text-align:left !important;
        cursor:pointer !important;
        pointer-events:auto !important;
        touch-action:manipulation !important;
        font:650 15px/1.2 'Prompt',sans-serif !important;
    }
    .mobile-menu-tool:hover,
    .mobile-menu-tool:focus-visible { background:#eaf4ff !important; color:#1d65b0 !important; outline:0 !important; }
    .mobile-menu-tool-icon { width:22px !important; height:22px !important; display:inline-flex !important; align-items:center !important; justify-content:center !important; flex:0 0 22px !important; color:#2e73bc !important; }
    .mobile-menu-tool-icon .sru-svg-icon { width:20px !important; height:20px !important; }
    .mobile-menu-tool-text { flex:1 1 auto !important; min-width:0 !important; }
    .mobile-menu-tool .notification-badge {
        position:static !important;
        margin-left:auto !important;
        width:20px !important;
        min-width:20px !important;
        height:20px !important;
        padding:0 !important;
        border:0 !important;
        background:#e3263f !important;
        color:#fff !important;
        font:800 10px/1 'Prompt',sans-serif !important;
    }
    .user-sidebar.mobile-menu-open { overflow:auto !important; }
    .user-sidebar-menu { overflow:auto !important; }

    /* On phones center the global popup below the browser/header chrome. */
    .sru-global-popup[data-popup-type="notification"],
    .sru-global-popup[data-popup-type="settings"] {
        width:calc(100vw - 24px) !important;
        max-width:calc(100vw - 24px) !important;
        left:12px !important;
        right:auto !important;
        border-radius:22px !important;
    }
}

/* Desktop popup appearance. */
@media (min-width:768px) {
    .sru-global-popup[data-popup-type="notification"] { width:390px !important; max-width:calc(100vw - 24px) !important; max-height:72vh !important; }
    .sru-global-popup[data-popup-type="settings"] { width:370px !important; max-width:calc(100vw - 24px) !important; max-height:72vh !important; }
}

/* Booking detail modal: one Bootstrap backdrop only, light Liquid instead of black wash. */
.modal-backdrop {
    background-color:#9fb4c9 !important;
    opacity:.24 !important;
    backdrop-filter:blur(6px) saturate(115%) !important;
    -webkit-backdrop-filter:blur(6px) saturate(115%) !important;
}
html[data-theme="dark"] .modal-backdrop {
    background-color:#050b15 !important;
    opacity:.62 !important;
}
.booking-detail-modal .modal-dialog { position:relative !important; z-index:1110 !important; }
.booking-detail-modal .modal-content {
    border:0 !important;
    border-radius:22px !important;
    background:rgba(255,255,255,.82) !important;
    backdrop-filter:blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter:blur(24px) saturate(150%) !important;
    box-shadow:0 24px 70px rgba(24,55,90,.20) !important;
}
html[data-theme="dark"] .booking-detail-modal .modal-content { background:rgba(19,31,49,.94) !important; color:#f4f7fb !important; }

/* Keep all obvious app controls interactive; no decorative layer should eat pointer events. */
.user-content a:not(.disabled),
.user-content button:not(:disabled),
.user-content select,
.user-sidebar a.nav-link,
.user-sidebar button,
.user-topbar-icon,
.mobile-menu-tool,
.mobile-drawer-trigger { pointer-events:auto !important; cursor:pointer !important; }

/* Remove the old mobile quick-action surface completely. */
@media (max-width:767.98px) { .mobile-header-actions { display:none !important; } }


/* V22 final layout guard: topbar stays compact; no accidental spacer. */
@media (min-width:768px) {
    .user-content { padding-top:24px !important; }
    .user-content > .user-desktop-topbar {
        display:block !important;
        position:fixed !important;
        height:0 !important;
        min-height:0 !important;
        margin:0 !important;
        padding:0 !important;
    }
}

/* Mobile drawer has no topbar quick-action row; the hamburger is the only fixed control. */
@media (max-width:767.98px) {
    .mobile-header-actions { display:none !important; }
    .user-sidebar-wrapper { pointer-events:none !important; }
    .user-sidebar-wrapper .user-sidebar,
    .user-sidebar-wrapper .mobile-drawer-trigger,
    .user-sidebar-wrapper .user-sidebar-overlay { pointer-events:auto !important; }
}


/* =========================================================
   V23 BOOKING DETAIL MODAL - HARDENED CLOSE / LAYER FIX
   This is intentionally scoped to the booking detail modal.
   ========================================================= */
.booking-detail-modal {
    z-index: 2147481000 !important;
    pointer-events: none !important;
}
.booking-detail-modal.show {
    display: block !important;
    pointer-events: none !important;
}
.booking-detail-modal .modal-dialog {
    position: relative !important;
    z-index: 2147481001 !important;
    pointer-events: auto !important;
}
.booking-detail-modal .modal-content,
.booking-detail-modal .modal-header,
.booking-detail-modal .modal-body,
.booking-detail-modal .modal-footer,
.booking-detail-modal .modal-content button {
    position: relative !important;
    z-index: 2147481002 !important;
    pointer-events: auto !important;
}
.booking-detail-modal .btn-close,
.booking-detail-modal .modal-footer [data-bs-dismiss="modal"] {
    position: relative !important;
    z-index: 2147481003 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}
/* Keep only one backdrop and put it beneath the dialog. */
body > .modal-backdrop,
.modal-backdrop {
    z-index: 2147480990 !important;
}
/* Profile modals must sit above the shared backdrop and app chrome after being
   portaled to body from a page's lower stacking context. */
#profileSetupModal,
#editProfileModal {
    z-index: 2147483646 !important;
    pointer-events: auto !important;
}
#profileSetupModal .modal-dialog,
#profileSetupModal .modal-content,
#profileSetupModal form,
#profileSetupModal button[type="submit"],
#editProfileModal .modal-dialog,
#editProfileModal .modal-content,
#editProfileModal form,
#editProfileModal button {
    pointer-events: auto !important;
}
#profileSetupModal button[type="submit"] {
    position: relative !important;
    z-index: 1 !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}
html:not([data-theme="dark"]) #profileSetupModal .locked-input {
    background-color: #e9edf2 !important;
    color: #687588 !important;
    -webkit-text-fill-color: #687588 !important;
    border-color: #d4dce6 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}
html[data-theme="dark"] #profileSetupModal .locked-input {
    background-color: #293548 !important;
    color: #aab6c8 !important;
    -webkit-text-fill-color: #aab6c8 !important;
    border-color: #45556c !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}
/* Make the Liquid backdrop a light glass wash, never an opaque gray layer. */
html[data-theme="light"] .modal-backdrop,
html[data-theme="liquid"] .modal-backdrop,
html:not([data-theme="dark"]) .modal-backdrop {
    background:#9fb4c9 !important;
    opacity:.18 !important;
    backdrop-filter:blur(5px) saturate(115%) !important;
    -webkit-backdrop-filter:blur(5px) saturate(115%) !important;
}
html[data-theme="dark"] .modal-backdrop {
    background:#050b15 !important;
    opacity:.58 !important;
}
/* Bootstrap sometimes leaves a stale scroll lock after custom close flows. */
body.modal-open {
    padding-right:0 !important;
}

/* =========================================================
   V24 — CANONICAL LOGOUT BUTTON
   ID-scoped so legacy sidebar rules cannot override it.
   ========================================================= */
#sruLogoutButton,
#sruLogoutButton:visited {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:9px !important;
    width:100% !important;
    min-height:46px !important;
    padding:10px 16px !important;
    box-sizing:border-box !important;
    border:0 !important;
    border-radius:14px !important;
    outline:0 !important;
    background:#e3263f !important;
    background-image:none !important;
    color:#fff !important;
    opacity:1 !important;
    filter:none !important;
    mix-blend-mode:normal !important;
    -webkit-text-fill-color:#fff !important;
    text-decoration:none !important;
    box-shadow:0 12px 26px rgba(227,38,63,.17) !important;
    transform:none !important;
}

#sruLogoutButton span,
#sruLogoutButton i,
#sruLogoutButton .sru-sidebar-icon,
#sruLogoutButton .sru-svg-icon {
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    stroke:#fff !important;
    opacity:1 !important;
    filter:none !important;
}

#sruLogoutButton:hover,
#sruLogoutButton:focus-visible {
    background:#fff !important;
    background-image:none !important;
    color:#e3263f !important;
    -webkit-text-fill-color:#e3263f !important;
    border:0 !important;
    outline:0 !important;
    box-shadow:0 12px 26px rgba(227,38,63,.12) !important;
}

#sruLogoutButton:hover span,
#sruLogoutButton:hover i,
#sruLogoutButton:hover .sru-sidebar-icon,
#sruLogoutButton:hover .sru-svg-icon,
#sruLogoutButton:focus-visible span,
#sruLogoutButton:focus-visible i,
#sruLogoutButton:focus-visible .sru-sidebar-icon,
#sruLogoutButton:focus-visible .sru-svg-icon {
    color:#e3263f !important;
    -webkit-text-fill-color:#e3263f !important;
    stroke:#e3263f !important;
}

/* Collapsed desktop sidebar: keep icon visible. */
@media (min-width:768px) {
    body.sru-sidebar-collapsed #sruLogoutButton,
    .user-sidebar-wrapper.desktop-sidebar-collapsed #sruLogoutButton {
        width:100% !important;
        min-height:46px !important;
        padding:10px 7px !important;
    }
}

/* Mobile drawer: same canonical appearance. */
@media (max-width:767.98px) {
    #sruLogoutButton {
        min-height:52px !important;
        border-radius:15px !important;
        font-size:15px !important;
    }
}

/* =========================================================
   V25 MOBILE RESPONSIVE HEADER / DRAWER
   Reference: compact top navigation, no overlapping chrome.
   This is intentionally appended as the final override layer.
   ========================================================= */

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

@media (max-width:767.98px) {
    html, body {
        width:100% !important;
        max-width:100% !important;
        overflow-x:hidden !important;
    }

    body {
        padding-top:0 !important;
    }

    /* ---------- fixed mobile top navigation ---------- */
    .sru-mobile-topbar {
        position:fixed !important;
        top:0 !important;
        left:0 !important;
        right:0 !important;
        width:100% !important;
        height:64px !important;
        min-height:64px !important;
        display:flex !important;
        align-items:center !important;
        gap:10px !important;
        padding:8px 10px !important;
        z-index:2147482990 !important;
        box-sizing:border-box !important;
        pointer-events:auto !important;
        background:rgba(247,251,255,.90) !important;
        border-bottom:1px solid rgba(192,210,229,.45) !important;
        backdrop-filter:blur(20px) saturate(160%) !important;
        -webkit-backdrop-filter:blur(20px) saturate(160%) !important;
    }

    html[data-theme="dark"] .sru-mobile-topbar {
        background:rgba(10,18,32,.92) !important;
        border-bottom-color:rgba(255,255,255,.08) !important;
    }

    .sru-mobile-topbar-title {
        min-width:0 !important;
        flex:1 1 auto !important;
        overflow:hidden !important;
        white-space:nowrap !important;
        text-overflow:ellipsis !important;
        color:#172033 !important;
        font:800 18px/1.2 'Prompt',sans-serif !important;
        letter-spacing:-.2px !important;
    }

    html[data-theme="dark"] .sru-mobile-topbar-title {
        color:#f4f7fb !important;
    }

    .sru-mobile-topbar-actions {
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
        gap:6px !important;
        flex:0 0 auto !important;
        min-width:0 !important;
    }

    .sru-mobile-action {
        position:relative !important;
        width:42px !important;
        height:42px !important;
        flex:0 0 42px !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 !important;
        border:0 !important;
        outline:0 !important;
        border-radius:14px !important;
        background:rgba(255,255,255,.96) !important;
        color:#2d73ba !important;
        box-shadow:0 8px 20px rgba(44,84,126,.10) !important;
        cursor:pointer !important;
        pointer-events:auto !important;
        touch-action:manipulation !important;
    }

    .sru-mobile-action:hover,
    .sru-mobile-action:focus-visible {
        background:#eaf4ff !important;
        color:#1d65b0 !important;
        outline:0 !important;
    }

    .sru-mobile-action .ti {
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:21px !important;
        height:21px !important;
        line-height:1 !important;
        font-size:21px !important;
        color:currentColor !important;
        pointer-events:none !important;
    }

    .sru-mobile-avatar {
        width:34px !important;
        height:34px !important;
        display:block !important;
        flex:0 0 34px !important;
        object-fit:cover !important;
        object-position:center !important;
        border-radius:50% !important;
        pointer-events:none !important;
    }

    html[data-theme="dark"] .sru-mobile-action {
        background:#19253a !important;
        color:#a9d0ff !important;
        box-shadow:0 8px 20px rgba(0,0,0,.20) !important;
    }

    html[data-theme="dark"] .sru-mobile-action:hover,
    html[data-theme="dark"] .sru-mobile-action:focus-visible {
        background:#243754 !important;
        color:#d9ecff !important;
    }

    /* ---------- hamburger: only top-left drawer control ---------- */
    .mobile-drawer-trigger {
        position:fixed !important;
        top:10px !important;
        left:10px !important;
        right:auto !important;
        width:44px !important;
        height:44px !important;
        min-width:44px !important;
        min-height:44px !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 !important;
        border:0 !important;
        outline:0 !important;
        border-radius:14px !important;
        background:rgba(255,255,255,.96) !important;
        color:#2d73ba !important;
        box-shadow:0 8px 20px rgba(44,84,126,.10) !important;
        z-index:2147483000 !important;
        pointer-events:auto !important;
        touch-action:manipulation !important;
    }

    .mobile-drawer-trigger:hover,
    .mobile-drawer-trigger:focus-visible {
        background:#eaf4ff !important;
        color:#1d65b0 !important;
        outline:0 !important;
    }

    .mobile-drawer-trigger .ti {
        font-size:23px !important;
        line-height:1 !important;
        color:currentColor !important;
        pointer-events:none !important;
    }

    /* Keep title away from hamburger. */
    .sru-mobile-topbar {
        padding-left:66px !important;
    }

    /* ---------- old desktop topbar is not rendered on phones ---------- */
    .user-desktop-topbar {
        display:none !important;
    }

    /* ---------- mobile page content starts below the fixed header ---------- */
    .user-content,
    .user-page-content,
    .admin-content,
    .user-main-content,
    .user-page-layout,
    .sru-legacy-main {
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        box-sizing:border-box !important;
    }

    .user-content {
        padding-top:76px !important;
        padding-left:12px !important;
        padding-right:12px !important;
        padding-bottom:30px !important;
    }

    .user-page-content,
    .admin-content,
    .sru-legacy-main {
        padding-top:76px !important;
        padding-left:12px !important;
        padding-right:12px !important;
        padding-bottom:30px !important;
    }

    /* Booking page already has Bootstrap py-5; reduce only its top padding. */
    .user-page-content > .container,
    .admin-content > .container {
        width:100% !important;
        max-width:100% !important;
        padding-left:0 !important;
        padding-right:0 !important;
        padding-top:10px !important;
    }

    .user-page-content > .container.py-5,
    .admin-content > .container.py-5 {
        padding-top:10px !important;
        padding-bottom:24px !important;
    }

    /* ---------- mobile drawer ---------- */
    .user-sidebar-wrapper {
        position:static !important;
        width:0 !important;
        min-width:0 !important;
        max-width:none !important;
        flex:0 0 0 !important;
        height:0 !important;
        min-height:0 !important;
        overflow:visible !important;
        pointer-events:none !important;
        z-index:2147482995 !important;
    }

    .user-sidebar-overlay {
        position:fixed !important;
        inset:0 !important;
        display:block !important;
        opacity:0 !important;
        visibility:hidden !important;
        pointer-events:none !important;
        background:rgba(42,61,83,.28) !important;
        backdrop-filter:blur(6px) !important;
        -webkit-backdrop-filter:blur(6px) !important;
        z-index:2147482980 !important;
        transition:opacity .20s ease, visibility .20s ease !important;
    }

    .user-sidebar-wrapper.mobile-drawer-open .user-sidebar-overlay,
    body.mobile-drawer-open .user-sidebar-overlay {
        opacity:1 !important;
        visibility:visible !important;
        pointer-events:auto !important;
    }

    .user-sidebar {
        position:fixed !important;
        top:0 !important;
        bottom:0 !important;
        left:0 !important;
        right:auto !important;
        width:min(326px, calc(100vw - 28px)) !important;
        height:100dvh !important;
        max-height:none !important;
        min-height:100dvh !important;
        margin:0 !important;
        border:0 !important;
        border-radius:0 24px 24px 0 !important;
        transform:translateX(-105%) !important;
        transition:transform .24s cubic-bezier(.2,.8,.2,1) !important;
        overflow:hidden !important;
        box-shadow:18px 0 50px rgba(22,49,79,.18) !important;
        z-index:2147482990 !important;
        pointer-events:auto !important;
    }

    .user-sidebar.mobile-menu-open {
        transform:translateX(0) !important;
    }

    .user-sidebar-header {
        padding:22px 18px 14px !important;
    }

    .user-sidebar-logo-wrap {
        width:72px !important;
        height:72px !important;
        margin-bottom:10px !important;
        border-radius:20px !important;
    }

    .user-sidebar-header img {
        width:54px !important;
        height:54px !important;
        max-width:54px !important;
        max-height:54px !important;
        object-fit:contain !important;
        object-position:center !important;
        transform:none !important;
    }

    .user-sidebar-title {
        font-size:17px !important;
    }

    .user-sidebar-subtitle {
        font-size:11.5px !important;
        line-height:1.5 !important;
    }

    .user-sidebar-menu {
        flex:1 1 auto !important;
        min-height:0 !important;
        max-height:none !important;
        overflow:auto !important;
        overscroll-behavior:contain !important;
        padding:8px 12px 4px !important;
    }

    .user-sidebar .nav-link {
        min-height:50px !important;
        margin-bottom:7px !important;
        padding:10px 13px !important;
        border-radius:14px !important;
        font-size:14px !important;
        border:0 !important;
        box-shadow:none !important;
    }

    .user-sidebar-bottom {
        flex:0 0 auto !important;
        padding:10px 12px calc(12px + env(safe-area-inset-bottom)) !important;
        border-top:1px solid rgba(125,153,184,.14) !important;
    }

    .user-sidebar-header-close {
        top:12px !important;
        right:12px !important;
        width:40px !important;
        height:40px !important;
        display:inline-flex !important;
        border:0 !important;
        border-radius:13px !important;
        background:#eef5fc !important;
        color:#2d73ba !important;
        box-shadow:none !important;
    }

    .mobile-menu-tools {
        display:flex !important;
        flex-direction:column !important;
        flex:0 0 auto !important;
        gap:7px !important;
        padding:7px 12px 3px !important;
    }

    /* Global popup: below the mobile header, inside viewport. */
    .sru-global-dropdown-layer {
        z-index:2147482985 !important;
    }

    .sru-global-popup {
        width:calc(100vw - 20px) !important;
        max-width:calc(100vw - 20px) !important;
        max-height:calc(100dvh - 82px) !important;
        left:10px !important;
        right:auto !important;
        top:72px !important;
        border-radius:22px !important;
        transform:translateY(-5px) scale(.985) !important;
    }

    .sru-global-popup.show {
        transform:none !important;
    }

    .sru-global-popup .notification-list {
        max-height:calc(100dvh - 220px) !important;
    }

    .sru-global-popup .settings-theme-buttons {
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }

    /* Prevent the fixed booking cart from hiding the primary form controls. */
    .booking-cart {
        left:10px !important;
        right:10px !important;
        bottom:calc(12px + env(safe-area-inset-bottom)) !important;
        width:auto !important;
        max-width:none !important;
    }

    #bookingForm {
        padding-bottom:150px !important;
    }

    /* Calendar remains inside the viewport; horizontal scrolling is local to the calendar only. */
    .fc,
    #roomCalendarCard,
    .room-calendar-card,
    .calendar-card {
        max-width:100% !important;
        min-width:0 !important;
    }

    .fc-scrollgrid-section-body,
    .fc-scroller {
        min-width:0 !important;
    }

    /* Small phones: prioritize content width and preserve tap targets. */
    @media (max-width:390px) {
        .sru-mobile-topbar {
            padding-left:62px !important;
            gap:6px !important;
        }

        .sru-mobile-topbar-title {
            font-size:16px !important;
        }

        .sru-mobile-action,
        .mobile-drawer-trigger {
            width:41px !important;
            height:41px !important;
            flex-basis:41px !important;
        }

        .sru-mobile-action:last-child {
            width:41px !important;
            flex-basis:41px !important;
        }
    }
}

/* Dark drawer follows the same shared theme. */
@media (max-width:767.98px) {
    html[data-theme="dark"] .user-sidebar {
        background:#111a2b !important;
        color:#f4f7fb !important;
        box-shadow:18px 0 50px rgba(0,0,0,.34) !important;
    }

    html[data-theme="dark"] .user-sidebar-header,
    html[data-theme="dark"] .user-sidebar-logo-wrap {
        background:#111a2b !important;
        color:#f4f7fb !important;
    }

    html[data-theme="dark"] .user-sidebar-header-close {
        background:#19253a !important;
        color:#a9d0ff !important;
    }

    html[data-theme="dark"] .user-sidebar .nav-link {
        background:#111a2b !important;
        color:#b7c7da !important;
    }

    html[data-theme="dark"] .user-sidebar .nav-link.active,
    html[data-theme="dark"] .user-sidebar .nav-link:hover {
        background:#1a2b44 !important;
        color:#e8f3ff !important;
    }
}


/* =========================================================
   V26 FINAL TARGETED RESPONSIVE / MODAL CLEANUP
   ========================================================= */

/* Remove the stray inline CSS issue marker from legacy block if present. */
/* No unsupported CSS properties are used in this V26 block. */

/* Desktop: mobile-only tool row must never appear in the sidebar. */
@media (min-width:768px){
    .mobile-menu-tools{display:none !important;}
}

/* Desktop global topbar remains compact and clickable. */
@media (min-width:768px){
    .user-desktop-topbar{
        position:fixed !important;
        top:18px !important;
        right:22px !important;
        width:auto !important;
        height:auto !important;
        z-index:2147483001 !important;
        pointer-events:none !important;
        padding:0 !important;
    }
    .user-desktop-topbar .user-topbar-account,
    .user-desktop-topbar .notification-wrapper,
    .user-desktop-topbar .settings-wrapper,
    .user-desktop-topbar .user-topbar-icon,
    .user-desktop-topbar .user-topbar-avatar,
    .user-desktop-topbar .user-topbar-info{
        pointer-events:auto !important;
    }
}

/* =========================================================
   MOBILE TOP BAR: hamburger + page title only
   Notification / Setting live inside the hamburger drawer.
   ========================================================= */
@media (max-width:767.98px){
    .sru-mobile-topbar{
        height:64px !important;
        min-height:64px !important;
        padding:8px 12px !important;
        gap:10px !important;
        background:rgba(247,251,255,.92) !important;
        border-bottom:1px solid rgba(192,210,229,.48) !important;
        z-index:2147482990 !important;
    }

    .sru-mobile-menu-button{
        position:relative !important;
        inset:auto !important;
        width:44px !important;
        height:44px !important;
        min-width:44px !important;
        min-height:44px !important;
        flex:0 0 44px !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        border:0 !important;
        outline:0 !important;
        border-radius:14px !important;
        background:rgba(255,255,255,.96) !important;
        color:#2874bd !important;
        box-shadow:0 8px 20px rgba(44,84,126,.10) !important;
        cursor:pointer !important;
        pointer-events:auto !important;
        z-index:2147483002 !important;
    }

    .sru-mobile-menu-button .ti{
        font-size:23px !important;
        line-height:1 !important;
        color:currentColor !important;
        pointer-events:none !important;
    }

    .sru-mobile-topbar-title{
        flex:1 1 auto !important;
        min-width:0 !important;
        padding:0 !important;
        color:#172033 !important;
        font:800 18px/1.2 'Prompt',sans-serif !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }

    /* Remove the old bell / palette / profile row completely. */
    .sru-mobile-topbar-actions{
        display:none !important;
        width:0 !important;
        min-width:0 !important;
        overflow:hidden !important;
        pointer-events:none !important;
    }

    /* The old standalone drawer trigger remains in DOM only for compatibility. */
    .user-sidebar-wrapper > .mobile-drawer-trigger{
        display:none !important;
        pointer-events:none !important;
    }
}

/* =========================================================
   MOBILE SIDEBAR = DROPDOWN PANEL UNDER THE TOP BAR
   ========================================================= */
@media (max-width:767.98px){
    body.mobile-drawer-open{overflow:hidden !important;}

    .user-sidebar-wrapper{
        position:static !important;
        width:0 !important;
        min-width:0 !important;
        max-width:none !important;
        height:0 !important;
        min-height:0 !important;
        flex:0 0 0 !important;
        pointer-events:none !important;
        z-index:2147482995 !important;
    }

    .user-sidebar-overlay{
        position:fixed !important;
        inset:64px 0 0 0 !important;
        display:block !important;
        visibility:hidden !important;
        opacity:0 !important;
        pointer-events:none !important;
        background:rgba(39,63,89,.18) !important;
        backdrop-filter:blur(5px) !important;
        -webkit-backdrop-filter:blur(5px) !important;
        z-index:2147482980 !important;
        transition:opacity .18s ease,visibility .18s ease !important;
    }

    .user-sidebar-wrapper.mobile-drawer-open .user-sidebar-overlay{
        visibility:visible !important;
        opacity:1 !important;
        pointer-events:auto !important;
    }

    .user-sidebar{
        position:fixed !important;
        top:72px !important;
        left:12px !important;
        right:12px !important;
        bottom:auto !important;
        width:auto !important;
        max-height:calc(100dvh - 84px) !important;
        min-height:0 !important;
        height:auto !important;
        margin:0 !important;
        border:0 !important;
        border-radius:24px !important;
        transform:translateY(-10px) scale(.985) !important;
        transform-origin:top center !important;
        opacity:0 !important;
        visibility:hidden !important;
        pointer-events:none !important;
        overflow:hidden !important;
        background:rgba(255,255,255,.94) !important;
        box-shadow:0 22px 60px rgba(29,57,86,.20),inset 0 1px 0 rgba(255,255,255,.70) !important;
        z-index:2147482990 !important;
        transition:transform .20s ease,opacity .18s ease,visibility .18s ease !important;
    }

    .user-sidebar.mobile-menu-open{
        transform:none !important;
        opacity:1 !important;
        visibility:visible !important;
        pointer-events:auto !important;
    }

    .user-sidebar-header{
        padding:18px 18px 12px !important;
    }

    .user-sidebar-header-close{
        top:12px !important;
        right:12px !important;
        width:38px !important;
        height:38px !important;
        border:0 !important;
        background:#f2f7fd !important;
        color:#2d73ba !important;
        box-shadow:none !important;
    }

    .user-sidebar-logo-wrap{
        width:68px !important;
        height:68px !important;
        border-radius:18px !important;
        background:rgba(247,251,255,.96) !important;
        margin-bottom:9px !important;
    }

    .user-sidebar-header img{
        width:52px !important;
        height:52px !important;
        max-width:52px !important;
        max-height:52px !important;
        object-fit:contain !important;
        object-position:center !important;
        transform:none !important;
    }

    .user-sidebar-title{font-size:16px !important;}
    .user-sidebar-subtitle{font-size:11.5px !important;line-height:1.45 !important;}
    .user-sidebar-role{margin-top:7px !important;}

    .user-sidebar-menu{
        max-height:calc(100dvh - 310px) !important;
        overflow:auto !important;
        padding:7px 12px 4px !important;
    }

    .user-sidebar .nav-link{
        min-height:48px !important;
        margin-bottom:6px !important;
        padding:9px 13px !important;
        border-radius:13px !important;
        border:0 !important;
        box-shadow:none !important;
        font-size:14px !important;
        pointer-events:auto !important;
    }

    .mobile-menu-tools{
        display:flex !important;
        flex-direction:column !important;
        gap:6px !important;
        padding:6px 12px 4px !important;
        border-top:1px solid rgba(125,153,184,.14) !important;
    }

    .mobile-menu-tool{
        min-height:44px !important;
        width:100% !important;
        border:0 !important;
        border-radius:13px !important;
        background:rgba(247,250,254,.92) !important;
        color:#4e6780 !important;
        display:flex !important;
        align-items:center !important;
        gap:10px !important;
        padding:9px 12px !important;
        cursor:pointer !important;
        pointer-events:auto !important;
    }

    .mobile-menu-tool-icon{display:inline-flex !important;align-items:center !important;justify-content:center !important;color:#2d73ba !important;}

    .user-sidebar-bottom{
        padding:8px 12px calc(10px + env(safe-area-inset-bottom)) !important;
        border-top:1px solid rgba(125,153,184,.14) !important;
    }

    .user-sidebar-bottom .logout-link{min-height:48px !important;}
}

/* =========================================================
   BOOKING DETAIL MODAL - PURE CUSTOM LIQUID
   No Bootstrap backdrop. No X. Centered title. Clickable close.
   ========================================================= */
.sru-booking-modal{
    position:fixed !important;
    inset:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:20px !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    z-index:2147483600 !important;
    background:rgba(157,178,200,.22) !important;
    backdrop-filter:blur(7px) saturate(115%) !important;
    -webkit-backdrop-filter:blur(7px) saturate(115%) !important;
    transition:opacity .16s ease,visibility .16s ease !important;
}

.sru-booking-modal.is-open{
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
}

.sru-booking-modal-dialog{
    position:relative !important;
    width:min(720px,calc(100vw - 32px)) !important;
    max-height:calc(100dvh - 40px) !important;
    margin:0 !important;
    display:flex !important;
    flex-direction:column !important;
    pointer-events:auto !important;
}

.sru-booking-modal-content{
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    max-height:calc(100dvh - 40px) !important;
    overflow:hidden !important;
    border:0 !important;
    border-radius:24px !important;
    background:rgba(248,252,255,.88) !important;
    box-shadow:0 24px 70px rgba(33,62,91,.22),inset 0 1px 0 rgba(255,255,255,.75) !important;
    backdrop-filter:blur(28px) saturate(155%) !important;
    -webkit-backdrop-filter:blur(28px) saturate(155%) !important;
    color:#172033 !important;
    pointer-events:auto !important;
}

.sru-booking-modal-header{
    flex:0 0 auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:66px !important;
    padding:14px 22px !important;
    border-bottom:1px solid rgba(127,153,181,.16) !important;
}

.sru-booking-modal-title{
    margin:0 !important;
    text-align:center !important;
    color:#172033 !important;
    font:800 19px/1.3 'Prompt',sans-serif !important;
}

.sru-booking-modal-body{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow:auto !important;
    padding:16px !important;
    pointer-events:auto !important;
}

.sru-booking-modal-footer{
    flex:0 0 auto !important;
    display:flex !important;
    justify-content:flex-end !important;
    padding:12px 16px 16px !important;
    border-top:1px solid rgba(127,153,181,.14) !important;
}

.booking-detail-close-btn{
    min-width:82px !important;
    min-height:42px !important;
    padding:9px 18px !important;
    border:0 !important;
    border-radius:12px !important;
    background:#64748b !important;
    color:#fff !important;
    font:700 14px/1 'Prompt',sans-serif !important;
    cursor:pointer !important;
    pointer-events:auto !important;
}

.booking-detail-close-btn:hover,
.booking-detail-close-btn:focus-visible{
    background:#475569 !important;
    color:#fff !important;
    outline:none !important;
}

/* Inside the detail card, use labels rather than leading icons. */
.sru-booking-modal .booking-detail-value .ti,
.sru-booking-modal .booking-detail-value .bi{
    display:none !important;
}

html[data-theme="dark"] .sru-booking-modal{
    background:rgba(3,8,16,.38) !important;
}
html[data-theme="dark"] .sru-booking-modal-content{
    background:rgba(19,31,49,.94) !important;
    color:#f4f7fb !important;
}
html[data-theme="dark"] .sru-booking-modal-title{
    color:#f4f7fb !important;
}

@media (max-width:767.98px){
    .sru-booking-modal{
        align-items:flex-start !important;
        padding:76px 10px 14px !important;
    }
    .sru-booking-modal-dialog{
        width:100% !important;
        max-height:calc(100dvh - 90px) !important;
    }
    .sru-booking-modal-content{
        max-height:calc(100dvh - 90px) !important;
        border-radius:20px !important;
    }
    .sru-booking-modal-header{min-height:58px !important;padding:11px 16px !important;}
    .sru-booking-modal-title{font-size:17px !important;}
    .sru-booking-modal-body{padding:12px !important;}
    .sru-booking-modal-footer{padding:10px 12px 12px !important;}
}

/* Prevent legacy Bootstrap modal styles from participating in our custom dialog. */
.sru-booking-modal .modal-dialog,
.sru-booking-modal .modal-content,
.sru-booking-modal .modal-header,
.sru-booking-modal .modal-body,
.sru-booking-modal .modal-footer{all:unset !important;}
.sru-booking-modal .modal-dialog{display:flex !important;flex-direction:column !important;}

/* After custom modal closes, never retain a legacy body lock/backdrop. */
body.sru-booking-modal-open .sru-booking-modal{pointer-events:auto !important;}
body.sru-booking-modal-open > .modal-backdrop{display:none !important;}

/* Logout canonical appearance, shared by both themes. */
#sruLogoutButton,
#sruLogoutButton:visited{
    background:#e3263f !important;
    color:#fff !important;
    border:0 !important;
    opacity:1 !important;
}
#sruLogoutButton span,
#sruLogoutButton .sru-sidebar-icon,
#sruLogoutButton .ti,
#sruLogoutButton .sru-svg-icon{color:#fff !important;-webkit-text-fill-color:#fff !important;}
#sruLogoutButton:hover,
#sruLogoutButton:focus-visible{
    background:#fff !important;
    color:#e3263f !important;
}
#sruLogoutButton:hover span,
#sruLogoutButton:hover .sru-sidebar-icon,
#sruLogoutButton:hover .ti,
#sruLogoutButton:hover .sru-svg-icon,
#sruLogoutButton:focus-visible span,
#sruLogoutButton:focus-visible .sru-sidebar-icon,
#sruLogoutButton:focus-visible .ti,
#sruLogoutButton:focus-visible .sru-svg-icon{color:#e3263f !important;-webkit-text-fill-color:#e3263f !important;}


/* =========================================================
   V27 FINAL BUGFIX / RESPONSIVE CANONICAL OVERRIDES
   Single final layer. Scoped to UI surfaces only.
   ========================================================= */

/* Base click safety: never create a transparent page-wide click blocker. */
.user-content,
.user-page-content,
.admin-content,
.permission-content,
.user-sidebar-wrapper,
.user-sidebar,
.user-sidebar .nav-link,
.user-sidebar-bottom,
.user-sidebar-bottom .logout-link { pointer-events:auto !important; }

.user-sidebar-overlay { pointer-events:none !important; }

/* Desktop: sidebar + content remain stable and topbar never creates vertical space. */
@media (min-width:768px) {
  .user-content > .user-desktop-topbar,
  .admin-content > .admin-topbar,
  .permission-content > .permission-topbar {
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  .user-desktop-topbar {
    position:fixed !important;
    top:14px !important;
    right:18px !important;
    width:auto !important;
    z-index:2147483000 !important;
    pointer-events:none !important;
  }

  .user-desktop-topbar .user-topbar-account {
    pointer-events:auto !important;
    display:flex !important;
    align-items:center !important;
    min-width:250px !important;
    max-width:min(430px,calc(100vw - 32px)) !important;
    min-height:54px !important;
    padding:6px 10px 6px 7px !important;
    gap:7px !important;
  }
}

/* Desktop and mobile user pill: flexible width instead of a cramped fixed card. */
.user-topbar-info { min-width:90px !important; }
.user-topbar-name { max-width:230px !important; overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important; }

/* Native date inputs: always clickable and readable. */
#booking_date,
#booking_end_date,
input[type="date"] {
  position:relative !important;
  z-index:20 !important;
  pointer-events:auto !important;
  cursor:pointer !important;
  font-family:'Prompt',sans-serif !important;
  color:var(--ui-text,#172033) !important;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity:1 !important;
  cursor:pointer !important;
  width:22px;
  height:22px;
}
html[data-theme="dark"] #booking_date,
html[data-theme="dark"] #booking_end_date,
html[data-theme="dark"] input[type="date"] { color:#f4f7fb !important; }

/* History cards: flexible height, balanced two-column desktop grid, one-column phone. */
.user-content > .row.g-4,
.user-content > .row.g-3,
.permission-grid,
.approval-grid { align-items:stretch !important; }
.user-content > .row.g-4 > [class*="col-"] { display:flex !important; }
.booking-card { width:100% !important; min-width:0 !important; height:100% !important; display:flex !important; flex-direction:column !important; }
.booking-card .card-body { flex:1 1 auto !important; display:flex !important; flex-direction:column !important; }
.booking-actions { margin-top:auto !important; padding-top:16px !important; }
@media (max-width:991.98px) and (min-width:768px) {
  .user-content > .row.g-4 > [class*="col-lg-6"] { width:100% !important; }
}
@media (max-width:767.98px) {
  .user-content > .row.g-4 > [class*="col-"] { width:100% !important; }
  .booking-card .card-body { padding:16px !important; }
}

/* Approval cards: buttons are explicit hit targets and never swallowed by overlays. */
.approval-card,
.approval-actions,
.approval-actions form,
.approval-actions button,
.detail-btn,
.approve-btn,
.reject-btn { pointer-events:auto !important; position:relative !important; z-index:30 !important; }
.approval-actions form { margin:0 !important; }
.approval-actions .action-btn { width:100% !important; min-height:44px !important; cursor:pointer !important; }
@media (max-width:767.98px) {
  .approval-actions { display:grid !important; grid-template-columns:1fr !important; gap:8px !important; }
}

/* Permission cards: same visual language as approval cards. */
.permission-user-card,
.permission-user-card form,
.permission-user-card select,
.permission-user-card button { pointer-events:auto !important; position:relative !important; z-index:30 !important; }

/* Pure custom booking modal: no Bootstrap backdrop and always closable. */
body.sru-booking-modal-open { overflow:hidden !important; }
.sru-booking-modal { pointer-events:none !important; }
.sru-booking-modal.is-open { pointer-events:auto !important; }
.sru-booking-modal-dialog,
.sru-booking-modal-content,
.sru-booking-modal-body,
.sru-booking-modal-footer,
.booking-detail-close-btn { pointer-events:auto !important; }
.sru-booking-modal-header { justify-content:center !important; }
.sru-booking-modal-title { text-align:center !important; }
.booking-detail-close-btn { color:#fff !important; -webkit-text-fill-color:#fff !important; }

/* Kill any legacy Bootstrap backdrop if it appears on the custom history modal. */
body.sru-booking-modal-open > .modal-backdrop { display:none !important; pointer-events:none !important; }
body.sru-booking-modal-open .modal-backdrop { display:none !important; pointer-events:none !important; }

/* Mobile reference layout: horizontal top bar, hamburger left, title center, actions right. */
@media (max-width:767.98px) {
  html,body { width:100% !important; max-width:100% !important; overflow-x:hidden !important; }
  .sru-mobile-topbar {
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    height:68px !important;
    min-height:68px !important;
    display:grid !important;
    grid-template-columns:46px minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:8px !important;
    padding:8px 10px !important;
    z-index:2147483000 !important;
    background:rgba(255,255,255,.84) !important;
    border-bottom:1px solid rgba(194,211,228,.45) !important;
    backdrop-filter:blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter:blur(20px) saturate(160%) !important;
    pointer-events:auto !important;
  }
  .sru-mobile-topbar-title {
    min-width:0 !important;
    margin:0 !important;
    font:800 19px/1.1 'Prompt',sans-serif !important;
    color:#172033 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    text-align:left !important;
  }
  .sru-mobile-topbar-actions {
    display:flex !important;
    align-items:center !important;
    gap:5px !important;
  }
  .sru-mobile-action,
  .mobile-drawer-trigger {
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    min-height:44px !important;
    border:0 !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.86) !important;
    box-shadow:0 6px 18px rgba(48,81,118,.08) !important;
    color:#2d73ba !important;
    pointer-events:auto !important;
    cursor:pointer !important;
  }
  .sru-mobile-avatar { width:34px !important; height:34px !important; border-radius:50% !important; object-fit:cover !important; }
  .sru-mobile-action .ti { font-size:21px !important; }

  /* Main content clears the fixed header exactly once. */
  .user-content,
  .user-page-content,
  .admin-content,
  .permission-content {
    padding-top:82px !important;
  }
  .user-content > .user-desktop-topbar { display:none !important; }

  /* Hamburger opens a dropdown-like drawer panel rather than a side rail. */
  .user-sidebar-wrapper {
    position:static !important;
    width:0 !important;
    min-width:0 !important;
    flex:0 0 0 !important;
    height:0 !important;
    min-height:0 !important;
    pointer-events:none !important;
    z-index:2147482995 !important;
  }
  .user-sidebar-overlay {
    position:fixed !important;
    inset:0 !important;
    display:block !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    z-index:2147482990 !important;
    background:rgba(31,49,70,.20) !important;
    backdrop-filter:blur(4px) !important;
  }
  .user-sidebar-wrapper.mobile-drawer-open .user-sidebar-overlay,
  body.mobile-drawer-open .user-sidebar-overlay { visibility:visible !important; opacity:1 !important; pointer-events:auto !important; }
  .user-sidebar {
    position:fixed !important;
    top:76px !important;
    left:10px !important;
    right:10px !important;
    bottom:auto !important;
    width:auto !important;
    height:auto !important;
    max-height:calc(100dvh - 88px) !important;
    min-height:0 !important;
    border:0 !important;
    border-radius:22px !important;
    background:rgba(255,255,255,.94) !important;
    box-shadow:0 24px 60px rgba(29,55,85,.20) !important;
    transform:translateY(-10px) scale(.98) !important;
    opacity:0 !important;
    visibility:hidden !important;
    overflow:auto !important;
    transition:transform .18s ease,opacity .18s ease,visibility .18s ease !important;
    z-index:2147482995 !important;
    pointer-events:none !important;
  }
  .user-sidebar.mobile-menu-open {
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }
  .user-sidebar-header { padding:18px 16px 12px !important; }
  .user-sidebar-logo-wrap { width:70px !important; height:70px !important; border-radius:18px !important; }
  .user-sidebar-header img { width:54px !important; height:54px !important; object-fit:contain !important; transform:none !important; }
  .user-sidebar-title { font-size:18px !important; }
  .user-sidebar-subtitle { font-size:12px !important; }
  .user-sidebar-menu { padding:8px 10px 4px !important; max-height:none !important; overflow:visible !important; }
  .user-sidebar .nav-link { min-height:48px !important; margin-bottom:6px !important; border:0 !important; border-radius:13px !important; }
  .user-sidebar-bottom { padding:8px 10px calc(10px + env(safe-area-inset-bottom)) !important; border-top:1px solid rgba(125,153,184,.14) !important; }
  .user-sidebar-header-close { display:inline-flex !important; }
  .desktop-sidebar-toggle { display:none !important; }

  /* Notification / settings are not duplicated inside a second floating header. */
  .mobile-header-actions { display:none !important; }

  /* Small phones: keep action row usable. */
  @media (max-width:390px) {
    .sru-mobile-topbar { grid-template-columns:42px minmax(0,1fr) auto !important; gap:5px !important; padding:8px !important; }
    .sru-mobile-action,.mobile-drawer-trigger { width:41px !important; height:41px !important; min-width:41px !important; }
    .sru-mobile-topbar-title { font-size:17px !important; }
  }
}

/* Strong light/dark color separation for the shared UI. */
html[data-theme="liquid"] body { background:linear-gradient(135deg,#edf5ff 0%,#f7fafd 48%,#eaf2fb 100%) !important; color:#172033 !important; }
html[data-theme="liquid"] .sru-mobile-topbar { background:rgba(255,255,255,.86) !important; color:#172033 !important; }
html[data-theme="dark"] body { background:#0b1220 !important; color:#f4f7fb !important; }
html[data-theme="dark"] .sru-mobile-topbar { background:rgba(12,20,34,.90) !important; border-bottom-color:rgba(255,255,255,.08) !important; }
html[data-theme="dark"] .sru-mobile-topbar-title { color:#f4f7fb !important; }
html[data-theme="dark"] .sru-mobile-action,html[data-theme="dark"] .mobile-drawer-trigger { background:#19253a !important; color:#b9d9ff !important; }
html[data-theme="dark"] .user-sidebar { background:#111a2b !important; color:#f4f7fb !important; }
html[data-theme="dark"] .user-sidebar-title { color:#f4f7fb !important; }
html[data-theme="dark"] .user-sidebar-subtitle { color:#aab7ca !important; }
html[data-theme="dark"] .booking-card { background:#111a2b !important; color:#f4f7fb !important; border-color:#25334a !important; }
html[data-theme="dark"] .booking-objective { background:#19253a !important; border-color:#30415a !important; }
html[data-theme="dark"] .booking-detail-value { color:#f4f7fb !important; }
html[data-theme="dark"] .sru-booking-modal-content { background:rgba(19,31,49,.96) !important; color:#f4f7fb !important; }

/* Logout: red + white by default, exact white + red on hover. */
#sruLogoutButton,
#sruLogoutButton:visited,
.user-sidebar .logout-link,
.user-sidebar .logout-link:visited {
  background:#e3263f !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border:0 !important;
  opacity:1 !important;
  filter:none !important;
  box-shadow:0 12px 26px rgba(227,38,63,.17) !important;
}
#sruLogoutButton *,
.user-sidebar .logout-link * { color:#fff !important; -webkit-text-fill-color:#fff !important; stroke:#fff !important; }
#sruLogoutButton:hover,
#sruLogoutButton:focus-visible,
.user-sidebar .logout-link:hover,
.user-sidebar .logout-link:focus-visible { background:#fff !important; color:#e3263f !important; -webkit-text-fill-color:#e3263f !important; }
#sruLogoutButton:hover *,
#sruLogoutButton:focus-visible *,
.user-sidebar .logout-link:hover *,
.user-sidebar .logout-link:focus-visible * { color:#e3263f !important; -webkit-text-fill-color:#e3263f !important; stroke:#e3263f !important; }


/* =========================================================
   V28 FINAL UI CANONICAL OVERRIDES
   One mobile header, one responsive drawer, reliable hit areas,
   explicit Liquid FullCalendar theme, no invisible click shields.
   ========================================================= */

/* Generic interactive elements must not be blocked by decorative layers. */
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

/* Global popup host is never a click shield when its children are hidden. */
.sru-global-dropdown-layer {
  pointer-events: none !important;
  z-index: 2147483000 !important;
}
.sru-global-popup {
  pointer-events: none !important;
}
.sru-global-popup.show {
  pointer-events: auto !important;
}

/* Session timeout overlay: the login CTA is the only interactive target. */
.sru-session-timeout-overlay {
  pointer-events: auto !important;
  z-index: 2147483647 !important;
}
.sru-session-timeout-card,
.sru-session-timeout-btn {
  position: relative !important;
  z-index: 2147483648 !important;
  pointer-events: auto !important;
}
.sru-session-timeout-btn {
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}
body.sru-session-timeout-active > *:not(#sruSessionTimeoutOverlay) {
  pointer-events: none !important;
}

/* ---------- Desktop topbar ---------- */
@media (min-width: 768px) {
  .user-desktop-topbar {
    position: relative !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 10px 0 !important;
    margin: 0 0 6px !important;
    z-index: 1000 !important;
    pointer-events: none !important;
  }
  .user-desktop-topbar .user-topbar-account {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1001 !important;
  }
  .user-desktop-topbar .user-topbar-icon,
  .user-desktop-topbar .user-topbar-avatar,
  .user-desktop-topbar .user-topbar-info {
    pointer-events: auto !important;
  }
  .admin-topbar,
  .permission-topbar {
    min-height: 58px !important;
    margin-bottom: 6px !important;
  }
}

/* ---------- Mobile canonical header on EVERY page ---------- */
@media (max-width: 767.98px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Parent wrappers may be hidden by legacy page CSS; keep the shared mobile bar visible. */
  .admin-topbar,
  .permission-topbar {
    display: contents !important;
    margin: 0 !important;
    min-height: 0 !important;
  }
  .admin-topbar > .user-desktop-topbar,
  .permission-topbar > .user-desktop-topbar {
    display: none !important;
  }
  .admin-topbar > .sru-mobile-topbar,
  .permission-topbar > .sru-mobile-topbar,
  .sru-mobile-topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 68px !important;
    min-height: 68px !important;
    display: grid !important;
    grid-template-columns:46px minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    z-index: 2147483000 !important;
    pointer-events: auto !important;
    background: rgba(255,255,255,.90) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(188,208,229,.42) !important;
    box-shadow: 0 8px 24px rgba(49,82,119,.06) !important;
    backdrop-filter: blur(22px) saturate(165%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
  }
  html[data-theme="dark"] .admin-topbar > .sru-mobile-topbar,
  html[data-theme="dark"] .permission-topbar > .sru-mobile-topbar,
  html[data-theme="dark"] .sru-mobile-topbar {
    background: rgba(11,18,32,.94) !important;
    border-bottom-color: rgba(255,255,255,.08) !important;
  }

  .sru-mobile-topbar > .mobile-drawer-trigger {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.96) !important;
    color: #2d73ba !important;
    box-shadow: 0 7px 18px rgba(45,84,122,.09) !important;
    pointer-events: auto !important;
    z-index: 2 !important;
  }
  html[data-theme="dark"] .sru-mobile-topbar > .mobile-drawer-trigger {
    background: #19253a !important;
    color: #b9d9ff !important;
  }

  .sru-mobile-topbar-title {
    position:absolute !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    width:max-content !important;
    max-width:calc(100vw - 190px) !important;
    margin:0 !important;
    padding:0 2px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    text-align:center !important;
    font:800 clamp(17px,4.8vw,20px)/1.2 'Prompt',sans-serif !important;
    color:#172033 !important;
}

  html[data-theme="dark"] .sru-mobile-topbar-title { color: #f4f7fb !important; }

  /* Mobile notification / theme / avatar controls live inside the drawer. */
  .sru-mobile-topbar-actions {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:6px !important;
    width:auto !important;
    min-width:92px !important;
}
  .user-sidebar-wrapper > .mobile-drawer-trigger { display: none !important; }

  /* Leave one predictable content offset on every page. */
  .user-content,
  .user-page-content,
  .admin-content,
  .permission-content,
  .sru-legacy-main,
  .notification-page-main {
    padding-top: 86px !important;
    box-sizing: border-box !important;
  }

  /* Responsive drawer: white Liquid menu, centered, with complete navigation. */
  .user-sidebar-wrapper {
    position: static !important;
    width: 0 !important;
    min-width: 0 !important;
    flex: 0 0 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    pointer-events: none !important;
    z-index: 2147482990 !important;
  }
  .user-sidebar-overlay {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 2147482991 !important;
    background: rgba(71,93,116,.20) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
  }
  .user-sidebar-wrapper.mobile-drawer-open .user-sidebar-overlay,
  body.mobile-drawer-open .user-sidebar-overlay {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .user-sidebar {
    position: fixed !important;
    top: 76px !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 24px 70px rgba(37,65,95,.22) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) scale(.985) !important;
    overflow: hidden !important;
    z-index: 2147482995 !important;
    pointer-events: none !important;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
  }
  .user-sidebar.mobile-menu-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .user-sidebar-header {
    flex: 0 0 auto !important;
    padding: 20px 18px 13px !important;
  }
  .user-sidebar-header-close {
    display: inline-flex !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: rgba(245,249,253,.96) !important;
    color: #2d73ba !important;
    box-shadow: 0 6px 18px rgba(45,84,122,.08) !important;
    pointer-events: auto !important;
  }
  .user-sidebar-logo-wrap {
    width: 76px !important;
    height: 76px !important;
    margin-bottom: 10px !important;
    border: 0 !important;
    border-radius: 21px !important;
    background: rgba(248,251,254,.92) !important;
    box-shadow: 0 10px 28px rgba(45,84,122,.08) !important;
  }
  .user-sidebar-header img {
    width: 58px !important;
    height: 58px !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }
  .user-sidebar-title { font-size: 18px !important; }
  .user-sidebar-subtitle { font-size: 12px !important; line-height: 1.5 !important; }
  .user-sidebar-role { font-size: 10px !important; }
  .user-sidebar-menu {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
    padding: 8px 14px 4px !important;
  }
  .user-sidebar .nav-link {
    min-height: 52px !important;
    margin-bottom: 7px !important;
    padding: 12px 15px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: #f8fbff !important;
    color: #22344b !important;
    box-shadow: 0 3px 14px rgba(48,85,121,.04) !important;
    pointer-events: auto !important;
  }
  .user-sidebar .nav-link.active,
  .user-sidebar .nav-link[aria-current="page"] {
    background: linear-gradient(135deg,rgba(226,241,255,.98),rgba(207,231,255,.84)) !important;
    color: #1769b6 !important;
  }
  .user-sidebar .nav-link .sru-sidebar-icon { color: #4f87c2 !important; }
  .mobile-menu-tools {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    flex: 0 0 auto !important;
    padding: 5px 14px !important;
    border-top: 1px solid rgba(125,153,184,.12) !important;
  }
  .mobile-menu-tool {
    position: relative !important;
    width: 100% !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 11px 15px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: #f8fbff !important;
    color: #22344b !important;
    text-align: left !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  .mobile-menu-tool:hover,.mobile-menu-tool:focus-visible{background:#edf6ff !important;color:#1769b6 !important;outline:0 !important;}
  .mobile-menu-tool-icon{width:22px !important;height:22px !important;display:flex !important;align-items:center !important;justify-content:center !important;color:#4f87c2 !important;}
  .mobile-menu-tool-text{font-size:13px !important;font-weight:700 !important;}
  .user-sidebar-bottom {
    flex: 0 0 auto !important;
    padding: 8px 14px calc(14px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(125,153,184,.12) !important;
  }
  #sruLogoutButton { min-height: 52px !important; border-radius: 15px !important; }

  html[data-theme="dark"] .user-sidebar { background: rgba(16,25,41,.98) !important; }
  html[data-theme="dark"] .user-sidebar .nav-link,
  html[data-theme="dark"] .mobile-menu-tool { background: #19253a !important; color: #e1ecf9 !important; }
  html[data-theme="dark"] .user-sidebar .nav-link.active { background: linear-gradient(135deg,#203b60,#294c78) !important; color:#dceeff !important; }
  html[data-theme="dark"] .user-sidebar .nav-link:hover,
  html[data-theme="dark"] .mobile-menu-tool:hover { background:#21314a !important; }

  /* Global popups are centered below the mobile bar; no random top/left position. */
  .sru-global-popup {
    left: 12px !important;
    right: 12px !important;
    top: 78px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 90px) !important;
    border-radius: 22px !important;
    transform: translateY(-5px) scale(.985) !important;
  }
  .sru-global-popup.show { transform:none !important; }
}

/* ---------- FullCalendar: canonical Liquid + Prompt ---------- */
.fc,
.fc * { font-family:'Prompt',sans-serif !important; }
.fc .fc-toolbar-title { font-weight:800 !important; color:#172033 !important; }
.fc .fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th { border-color:rgba(126,155,188,.18) !important; }
.fc .fc-col-header-cell { background:rgba(238,246,253,.64) !important; }
.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number { color:#355873 !important; font-weight:700 !important; text-decoration:none !important; }
.fc .fc-daygrid-day { background:rgba(255,255,255,.58) !important; }
.fc .fc-day-today { background:rgba(255,244,190,.38) !important; }
.fc .fc-button,
.fc .fc-button-primary {
  border:0 !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.72) !important;
  color:#2b6eaf !important;
  font-weight:700 !important;
  box-shadow:0 6px 16px rgba(43,89,133,.08) !important;
}
.fc .fc-button:hover,
.fc .fc-button-primary:hover,
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active { background:rgba(218,236,255,.92) !important; color:#145f9e !important; }
.fc .fc-event { border:0 !important; border-radius:9px !important; font-weight:700 !important; }

html[data-theme="dark"] .fc .fc-toolbar-title,
html[data-theme="dark"] .fc .fc-col-header-cell-cushion,
html[data-theme="dark"] .fc .fc-daygrid-day-number { color:#dbeafe !important; }
html[data-theme="dark"] .fc .fc-col-header-cell { background:#19253a !important; }
html[data-theme="dark"] .fc .fc-daygrid-day { background:rgba(17,26,43,.82) !important; }
html[data-theme="dark"] .fc .fc-button,
html[data-theme="dark"] .fc .fc-button-primary { background:#19253a !important; color:#b9d9ff !important; }
html[data-theme="dark"] .fc .fc-day-today { background:rgba(102,82,20,.30) !important; }

/* Approval / Permission buttons are explicit hit targets. */
.approval-actions button,
.approval-actions form,
.approval-card,
.permission-user-card,
.permission-user-card form,
.permission-user-card select,
.permission-user-card button { pointer-events:auto !important; }

/* Avoid the old text-only notification/settings controls from appearing outside the shared UI. */
@media (min-width:768px){
  .mobile-menu-tools{display:none !important;}
}

/* Hide mobile topbar on desktop */
@media (min-width: 769px) {
    .sru-mobile-topbar {
        display: none !important;
        pointer-events: none !important;
    }
}
/* =========================================================
   MOBILE PERFORMANCE SAFETY OVERRIDES
   Keep the Liquid visual language, but remove the expensive
   backdrop/fixed-background effects that can cause scroll
   stutter on mobile browsers.
   ========================================================= */
@media (max-width: 767.98px) {
    /* Fixed gradient backgrounds can make mobile scrolling heavier. */
    html[data-theme="liquid"] body,
    body[data-theme="liquid"] {
        background-attachment: scroll !important;
    }

    /* Keep the glass surfaces translucent, but do not blur the page
       behind every card while the user scrolls. */
    html[data-theme="liquid"] .booking-card,
    html[data-theme="liquid"] .history-card,
    html[data-theme="liquid"] .dashboard-card,
    html[data-theme="liquid"] .permission-card,
    html[data-theme="liquid"] .stat-card,
    html[data-theme="liquid"] .summary-card,
    .room-card,
    .booking-card,
    .history-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Mobile topbar stays fixed, but without live background blur. */
    .sru-mobile-topbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Booking tray/minibar are fixed glass layers too. */
    .booking-cart,
    .booking-cart-minibar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Avoid animating unrelated CSS properties on the fixed cart. */
    .booking-cart {
        transition: opacity .25s ease, transform .25s cubic-bezier(.22,1,.36,1) !important;
    }

    .booking-cart-minibar {
        transition: opacity .24s ease, transform .24s ease !important;
    }
}

@media (max-width: 767.98px) {

    .sru-mobile-topbar-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        width: auto !important;
        min-width: 82px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .sru-mobile-topbar-actions .sru-mobile-action {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .sru-mobile-topbar {
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
    }
}

@media (max-width: 767.98px) {

    .sru-mobile-topbar {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 8px !important;
    }

    /* ปุ่ม 3 ขีด */
    .sru-mobile-topbar > .mobile-drawer-trigger {
        flex: 0 0 44px !important;
        width: 44px !important;
        min-width: 44px !important;
    }

    /* ชื่อหน้า = อยู่ตรงกลางระหว่างซ้ายและขวา */
    .sru-mobile-topbar-title {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;

        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;

        font: 800 18px/1.2 'Prompt', sans-serif !important;
        color: #172033 !important;

        pointer-events: none !important;
    }

    /* กลุ่มปุ่มขวา */
    .sru-mobile-topbar-actions {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 7px !important;

        margin-left: 0 !important;
    }

    /* รูปโปรไฟล์ */
    .sru-mobile-topbar-actions .sru-mobile-user-action {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }

    .sru-mobile-topbar-actions .sru-mobile-user-action .sru-mobile-avatar {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }

}

/* Mobile paint stability: avoid repainting large blurred surfaces while scrolling. */
@media (max-width:767.98px){
    html[data-theme="liquid"] body,
    body[data-theme="liquid"]{
        background-attachment:scroll !important;
    }

    html[data-theme="liquid"] .card,
    html[data-theme="liquid"] .booking-card,
    html[data-theme="liquid"] .dashboard-card,
    html[data-theme="liquid"] .permission-card,
    html[data-theme="liquid"] .stat-card,
    html[data-theme="liquid"] .summary-card,
    html[data-theme="liquid"] #roomCalendar,
    body[data-theme="liquid"] .card,
    body[data-theme="liquid"] .booking-card,
    body[data-theme="liquid"] .dashboard-card,
    body[data-theme="liquid"] .permission-card,
    body[data-theme="liquid"] .stat-card,
    body[data-theme="liquid"] .summary-card,
    body[data-theme="liquid"] #roomCalendar{
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        background-color:#fff !important;
    }

    html[data-theme="dark"] :is(.card,.booking-card,.dashboard-card,.permission-card,.stat-card,.summary-card,#roomCalendar),
    body[data-theme="dark"] :is(.card,.booking-card,.dashboard-card,.permission-card,.stat-card,.summary-card,#roomCalendar){
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        background-color:#111a2b !important;
    }

    .user-sidebar,
    .user-sidebar-overlay,
    .user-topbar-account,
    .booking-cart,
    .booking-cart-minibar,
    .booking-confirm-overlay,
    .booking-confirm-popup,
    .booking-detail-modal .modal-content,
    .cancel-confirm-overlay,
    .notification-dropdown,
    .settings-dropdown,
    .sru-global-popup,
    .sru-settings-modal,
    .mobile-header-actions .notification-dropdown,
    .mobile-header-actions .settings-dropdown{
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
    }
}

/* =========================================================
   LINE CONNECT GUIDE MODAL
   LIQUID GLASS — MATCH SYSTEM THEME
   ========================================================= */

.sru-line-connect-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 20px !important;

    opacity: 0 !important;
    visibility: hidden !important;

    transition:
        opacity .18s ease,
        visibility .18s ease !important;
}

.sru-line-connect-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
}


/* =========================================================
   LIQUID GLASS BACKDROP
   ========================================================= */

.sru-line-connect-backdrop {
    position: absolute !important;
    inset: 0 !important;

    background: rgba(31, 57, 84, .24) !important;

    backdrop-filter: blur(10px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(130%) !important;
}


/* =========================================================
   LIQUID GLASS CARD
   ========================================================= */

.sru-line-connect-card {
    position: relative !important;
    z-index: 2 !important;

    width: min(460px, calc(100vw - 32px)) !important;
    max-height: calc(100dvh - 40px) !important;

    overflow: auto !important;

    padding: 28px !important;

    border-radius: 26px !important;

    background: rgba(255, 255, 255, .72) !important;

    border: 1px solid rgba(255, 255, 255, .78) !important;

    backdrop-filter: blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;

    box-shadow:
        0 22px 60px rgba(48, 76, 112, .16) !important;

    color: #172033 !important;

    transform: translateY(12px) scale(.98) !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease !important;
}

.sru-line-connect-modal.show .sru-line-connect-card {
    transform: translateY(0) scale(1) !important;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.sru-line-connect-close {
    position: absolute !important;

    top: 14px !important;
    right: 14px !important;

    width: 36px !important;
    height: 36px !important;

    border: 1px solid rgba(211, 225, 240, .72) !important;

    border-radius: 50% !important;

    background: rgba(255, 255, 255, .55) !important;

    color: #55708d !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    cursor: pointer !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;

    transition: .18s ease !important;
}

.sru-line-connect-close:hover {
    background: rgba(255, 255, 255, .85) !important;
    transform: scale(1.04) !important;
}


/* =========================================================
   LINE ICON
   ========================================================= */

.sru-line-connect-icon {
    width: 64px !important;
    height: 64px !important;

    margin: 0 auto 16px !important;

    border-radius: 20px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: rgba(6, 199, 85, .92) !important;

    color: #fff !important;

    box-shadow:
        0 12px 28px rgba(6, 199, 85, .20) !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.sru-line-connect-icon i {
    font-size: 34px !important;
}


/* =========================================================
   TITLE
   ========================================================= */

.sru-line-connect-card h3 {
    margin: 0 !important;

    text-align: center !important;

    font-family: 'Prompt', sans-serif !important;

    font-size: 22px !important;
    font-weight: 800 !important;

    color: #172033 !important;
}

.sru-line-connect-card > p {
    margin: 8px 20px 22px !important;

    text-align: center !important;

    font-family: 'Prompt', sans-serif !important;

    font-size: 13px !important;
    line-height: 1.6 !important;

    color: #61758e !important;
}


/* =========================================================
   STEPS
   ========================================================= */

.sru-line-connect-steps {
    display: flex !important;

    flex-direction: column !important;

    gap: 10px !important;

    margin-bottom: 22px !important;
}

.sru-line-connect-step {
    display: flex !important;

    align-items: center !important;

    gap: 12px !important;

    padding: 13px !important;

    border-radius: 16px !important;

    background: rgba(255, 255, 255, .48) !important;

    border: 1px solid rgba(211, 225, 240, .72) !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.sru-line-connect-step > span {
    width: 32px !important;
    height: 32px !important;

    flex: 0 0 32px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;

    background: rgba(224, 239, 255, .88) !important;

    color: #246fbd !important;

    font-family: 'Prompt', sans-serif !important;

    font-size: 13px !important;
    font-weight: 800 !important;
}

.sru-line-connect-step strong {
    display: block !important;

    font-family: 'Prompt', sans-serif !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    color: #25364a !important;
}

.sru-line-connect-step small {
    display: block !important;

    margin-top: 2px !important;

    font-family: 'Prompt', sans-serif !important;

    font-size: 11px !important;

    color: #71849a !important;
}


/* =========================================================
   OPEN LINE BUTTON
   ========================================================= */

/* =========================================================
   LINE OPEN BUTTON
   ========================================================= */

.sru-line-connect-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    min-height: 46px;

    margin-top: 18px;
    padding: 0 18px;

    background: #06C755;
    color: #ffffff !important;

    border: 1px solid #06C755;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none !important;

    box-shadow:
        0 6px 16px rgba(6, 199, 85, 0.22);

    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.sru-line-connect-open-btn:hover {
    background: #05B94F;
    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 9px 22px rgba(6, 199, 85, 0.28);
}

.sru-line-connect-open-btn:active {
    transform: translateY(0);

    box-shadow:
        0 4px 12px rgba(6, 199, 85, 0.20);
}

.sru-line-connect-open-btn i {
    font-size: 20px;
    color: #ffffff;
}

.sru-line-connect-open-btn:hover {
    background: rgba(5, 184, 79, .98) !important;

    color: #fff !important;

    transform: translateY(-1px) !important;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.sru-line-connect-close-btn {
    width: 100% !important;

    min-height: 42px !important;

    border: 1px solid rgba(211, 225, 240, .72) !important;

    border-radius: 14px !important;

    background: rgba(255, 255, 255, .42) !important;

    color: #526b87 !important;

    font-family: 'Prompt', sans-serif !important;

    font-size: 12px !important;
    font-weight: 700 !important;

    cursor: pointer !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;

    transition: .18s ease !important;
}

.sru-line-connect-close-btn:hover {
    background: rgba(255, 255, 255, .72) !important;
}


/* =========================================================
   DARK THEME
   ========================================================= */

html[data-theme="dark"] .sru-line-connect-backdrop {
    background: rgba(2, 8, 18, .58) !important;
}

html[data-theme="dark"] .sru-line-connect-card {
    background: rgba(17, 26, 43, .78) !important;

    border-color: rgba(78, 103, 133, .42) !important;

    color: #f4f7fb !important;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, .42) !important;
}

html[data-theme="dark"] .sru-line-connect-close {
    background: rgba(25, 37, 58, .72) !important;

    border-color: rgba(78, 103, 133, .48) !important;

    color: #b9c8da !important;
}

html[data-theme="dark"] .sru-line-connect-close:hover {
    background: rgba(34, 51, 77, .90) !important;
}

html[data-theme="dark"] .sru-line-connect-card h3 {
    color: #f4f7fb !important;
}

html[data-theme="dark"] .sru-line-connect-card > p {
    color: #aab7ca !important;
}

html[data-theme="dark"] .sru-line-connect-step {
    background: rgba(25, 37, 58, .64) !important;

    border-color: rgba(78, 103, 133, .40) !important;
}

html[data-theme="dark"] .sru-line-connect-step > span {
    background: rgba(38, 63, 97, .82) !important;

    color: #dff0ff !important;
}

html[data-theme="dark"] .sru-line-connect-step strong {
    color: #edf4fb !important;
}

html[data-theme="dark"] .sru-line-connect-step small {
    color: #9eafc3 !important;
}

html[data-theme="dark"] .sru-line-connect-close-btn {
    background: rgba(25, 37, 58, .64) !important;

    border-color: rgba(78, 103, 133, .40) !important;

    color: #b9c8da !important;
}

html[data-theme="dark"] .sru-line-connect-close-btn:hover {
    background: rgba(34, 51, 77, .86) !important;
}
/* =========================================================
   LINE OPEN BUTTON - DARK THEME
   ========================================================= */

html[data-theme="dark"] .sru-line-connect-open-btn,
body[data-theme="dark"] .sru-line-connect-open-btn {
    background: #06C755 !important;
    border-color: #06C755 !important;
    color: #ffffff !important;

    box-shadow:
        0 6px 18px rgba(6, 199, 85, .18) !important;
}

html[data-theme="dark"] .sru-line-connect-open-btn:hover,
body[data-theme="dark"] .sru-line-connect-open-btn:hover {
    background: #05B94F !important;
    border-color: #05B94F !important;

    box-shadow:
        0 9px 24px rgba(6, 199, 85, .24) !important;
}

html[data-theme="dark"] .sru-line-connect-open-btn i,
body[data-theme="dark"] .sru-line-connect-open-btn i {
    color: #ffffff !important;
}


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

@media (max-width: 575.98px) {

    .sru-line-connect-modal {
        padding: 12px !important;
    }

    .sru-line-connect-card {
        width: calc(100vw - 24px) !important;

        padding: 22px 18px !important;

        border-radius: 22px !important;
    }

    .sru-line-connect-icon {
        width: 58px !important;
        height: 58px !important;

        border-radius: 18px !important;
    }

    .sru-line-connect-icon i {
        font-size: 30px !important;
    }

    .sru-line-connect-card h3 {
        font-size: 20px !important;
    }

    .sru-line-connect-step {
        padding: 11px !important;
    }
}
/* =========================================================
   LINE CONNECTED - LIQUID GLASS
   ========================================================= */

html body .settings-item.line-connected {
    background: rgba(6, 199, 85, 0.08) !important;
    border: 1px solid rgba(6, 199, 85, 0.20) !important;
}

html body .settings-item.line-connected:hover {
    background: rgba(6, 199, 85, 0.13) !important;
    border-color: rgba(6, 199, 85, 0.35) !important;
}

/* LINE icon */
html body .settings-item.line-connected .line-connected-icon {
    background: rgba(6, 199, 85, 0.12) !important;
    color: #06C755 !important;
    border-color: rgba(6, 199, 85, 0.18) !important;
}

html body .settings-item.line-connected .line-connected-icon i {
    color: #06C755 !important;
}

/* LINE title */
html body .settings-item.line-connected .line-connected-title {
    color: #06C755 !important;
    font-weight: 700 !important;
}

/* Subtitle */
html body .settings-item.line-connected .settings-item-subtitle {
    color: #5f7180 !important;
}

/* Dark Mode */
html[data-theme="dark"] body .settings-item.line-connected,
body[data-theme="dark"] .settings-item.line-connected {
    background: rgba(6, 199, 85, 0.10) !important;
    border-color: rgba(6, 199, 85, 0.24) !important;
}

html[data-theme="dark"] body .settings-item.line-connected:hover,
body[data-theme="dark"] .settings-item.line-connected:hover {
    background: rgba(6, 199, 85, 0.16) !important;
    border-color: rgba(6, 199, 85, 0.38) !important;
}

html[data-theme="dark"] body .settings-item.line-connected .line-connected-icon,
body[data-theme="dark"] .settings-item.line-connected .line-connected-icon {
    background: rgba(6, 199, 85, 0.14) !important;
    color: #06C755 !important;
}

html[data-theme="dark"] body .settings-item.line-connected .line-connected-icon i,
body[data-theme="dark"] .settings-item.line-connected .line-connected-icon i {
    color: #06C755 !important;
}

html[data-theme="dark"] body .settings-item.line-connected .line-connected-title,
body[data-theme="dark"] .settings-item.line-connected .line-connected-title {
    color: #06C755 !important;
}

html[data-theme="dark"] body .settings-item.line-connected .settings-item-subtitle,
body[data-theme="dark"] .settings-item.line-connected .settings-item-subtitle {
    color: #a8b5c3 !important;
}

/* =========================================================
   LINE CONNECTION MANAGER
   ========================================================= */

.line-manager-card {
    text-align: center;
}

/* LINE Logo */
.line-manager-logo-image {
    width: 64px;
    height: 64px;

    display: block;

    margin: 0 auto;

    object-fit: contain;
}

/* =========================================================
   LINE DISCONNECT CONFIRM MODAL
   ========================================================= */

.sru-line-confirm-modal {
    position: fixed;

    inset: 0;

    z-index: 2147483600;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .18s ease,
        visibility .18s ease;
}

.sru-line-confirm-modal.show {
    opacity: 1;
    visibility: visible;
}


/* Backdrop */

.sru-line-confirm-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(20, 35, 50, .30);

    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
}


/* Card */

.sru-line-confirm-card {
    position: relative;

    z-index: 1;

    width: min(420px, calc(100vw - 40px));

    padding: 28px;

    border-radius: 24px;

    background: rgba(255, 255, 255, .82);

    border: 1px solid rgba(255, 255, 255, .78);

    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);

    box-shadow:
        0 24px 70px rgba(30, 50, 75, .22);

    text-align: center;

    transform: translateY(10px) scale(.97);

    transition:
        transform .18s ease;
}

.sru-line-confirm-modal.show .sru-line-confirm-card {
    transform: translateY(0) scale(1);
}


/* Icon */

.sru-line-confirm-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(220, 38, 38, .10);

    border: 1px solid rgba(220, 38, 38, .16);

    color: #DC2626;

    font-size: 23px;
}


/* Heading */

.sru-line-confirm-card h3 {
    margin: 0;

    color: #172033;

    font-size: 20px;

    font-weight: 800;
}


/* Description */

.sru-line-confirm-card p {
    margin: 10px auto 22px;

    max-width: 330px;

    color: #64748B;

    font-size: 14px;

    line-height: 1.65;
}


/* Buttons */

.sru-line-confirm-actions {
    display: flex;

    gap: 10px;

    width: 100%;
}


/* Cancel */

.sru-line-confirm-cancel,
.sru-line-confirm-danger {
    flex: 1;

    min-height: 44px;

    border-radius: 13px;

    padding: 10px 14px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.sru-line-confirm-cancel {
    background: rgba(255,255,255,.65);

    border: 1px solid rgba(100,116,139,.18);

    color: #475569;
}

.sru-line-confirm-cancel:hover {
    background: rgba(255,255,255,.9);

    border-color: rgba(100,116,139,.28);
}


/* Danger */

.sru-line-confirm-danger {
    background: #DC2626;

    border: 1px solid #DC2626;

    color: #ffffff;

    box-shadow:
        0 6px 18px rgba(220,38,38,.16);
}

.sru-line-confirm-danger:hover {
    background: #B91C1C;

    border-color: #B91C1C;

    box-shadow:
        0 9px 24px rgba(220,38,38,.22);

    transform: translateY(-1px);
}


/* Dark */

html[data-theme="dark"] .sru-line-confirm-card,
body[data-theme="dark"] .sru-line-confirm-card {
    background: rgba(25, 32, 42, .88);

    border-color: rgba(255,255,255,.10);
}

html[data-theme="dark"] .sru-line-confirm-card h3,
body[data-theme="dark"] .sru-line-confirm-card h3 {
    color: #F1F5F9;
}

html[data-theme="dark"] .sru-line-confirm-card p,
body[data-theme="dark"] .sru-line-confirm-card p {
    color: #A8B3C2;
}

html[data-theme="dark"] .sru-line-confirm-cancel,
body[data-theme="dark"] .sru-line-confirm-cancel {
    background: rgba(255,255,255,.06);

    border-color: rgba(255,255,255,.10);

    color: #CBD5E1;
}

/* Mobile */

@media (max-width: 480px) {

    .sru-line-confirm-card {
        padding: 24px 20px;

        border-radius: 22px;
    }

    .sru-line-confirm-actions {
        flex-direction: column;
    }

    .sru-line-confirm-cancel,
    .sru-line-confirm-danger {
        width: 100%;
    }
}
/* =========================================================
   LINE CONNECTION MANAGER - FORCE UI
   ========================================================= */

#lineConnectionManagerModal .line-manager-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    margin: 18px auto 20px !important;
    padding: 9px 16px !important;

    border-radius: 999px !important;

    background: rgba(6, 199, 85, 0.10) !important;
    border: 1px solid rgba(6, 199, 85, 0.20) !important;

    color: #16803C !important;

    font-size: 13px !important;
    font-weight: 700 !important;
}

#lineConnectionManagerModal .line-manager-status-dot {
    width: 8px !important;
    height: 8px !important;

    display: block !important;
    flex: 0 0 8px !important;

    border-radius: 50% !important;

    background: #06C755 !important;

    box-shadow:
        0 0 0 4px rgba(6, 199, 85, .10) !important;
}


/* =========================================================
   DISCONNECT BUTTON
   ========================================================= */

#lineConnectionManagerModal #lineDisconnectButton {
    width: 100% !important;

    min-height: 46px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 12px 18px !important;
    margin: 2px 0 0 !important;

    border-radius: 14px !important;

    background: rgba(220, 38, 38, .07) !important;
    border: 1px solid rgba(220, 38, 38, .22) !important;

    color: #DC2626 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1.4 !important;

    cursor: pointer !important;

    box-shadow: none !important;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease !important;
}

#lineConnectionManagerModal #lineDisconnectButton::before {
    content: "↪" !important;

    margin-right: 8px !important;

    font-size: 17px !important;
    font-weight: 700 !important;

    transform: rotate(180deg);
}

#lineConnectionManagerModal #lineDisconnectButton:hover {
    background: rgba(220, 38, 38, .11) !important;
    border-color: rgba(220, 38, 38, .38) !important;

    box-shadow:
        0 7px 20px rgba(220, 38, 38, .10) !important;

    transform: translateY(-1px) !important;
}

#lineConnectionManagerModal #lineDisconnectButton:active {
    transform: translateY(0) !important;
}


/* =========================================================
   DARK MODE
   ========================================================= */

html[data-theme="dark"] #lineConnectionManagerModal .line-manager-status,
body[data-theme="dark"] #lineConnectionManagerModal .line-manager-status {
    background: rgba(6, 199, 85, .12) !important;
    border-color: rgba(6, 199, 85, .24) !important;
    color: #65E894 !important;
}

html[data-theme="dark"] #lineConnectionManagerModal #lineDisconnectButton,
body[data-theme="dark"] #lineConnectionManagerModal #lineDisconnectButton {
    background: rgba(248, 113, 113, .08) !important;
    border-color: rgba(248, 113, 113, .22) !important;
    color: #F87171 !important;
}
/* =========================================================
   FIX: LINE CONNECTION MANAGER ON RESPONSIVE
   ========================================================= */

#lineConnectionManagerModal.sru-line-connect-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483600 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;

    padding: 20px !important;
    box-sizing: border-box !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transition: opacity .18s ease, visibility .18s ease !important;
}

#lineConnectionManagerModal.sru-line-connect-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#lineConnectionManagerModal .sru-line-connect-backdrop {
    position: absolute !important;
    inset: 0 !important;

    background: rgba(25, 40, 60, .38) !important;

    backdrop-filter: blur(10px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(130%) !important;

    pointer-events: auto !important;
}

#lineConnectionManagerModal .sru-line-connect-card {
    position: relative !important;
    z-index: 2 !important;

    width: min(460px, calc(100vw - 32px)) !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 40px) !important;

    overflow-y: auto !important;
    box-sizing: border-box !important;

    pointer-events: auto !important;

    background: rgba(255, 255, 255, .88) !important;
    border: 1px solid rgba(255, 255, 255, .85) !important;
    border-radius: 24px !important;

    box-shadow: 0 24px 70px rgba(20, 40, 65, .24) !important;

    padding: 30px 24px !important;
    text-align: center !important;

    transform: translateY(8px) scale(.98) !important;
    transition: transform .18s ease !important;
}

#lineConnectionManagerModal.show .sru-line-connect-card {
    transform: translateY(0) scale(1) !important;
}

#lineConnectionManagerModal .line-manager-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
}

#lineConnectionManagerModal #lineDisconnectButton {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 46px !important;
    margin-top: 16px !important;
    padding: 12px 18px !important;

    border: 1px solid rgba(220, 38, 38, .24) !important;
    border-radius: 14px !important;

    background: rgba(220, 38, 38, .08) !important;
    color: #DC2626 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    cursor: pointer !important;
}

@media (max-width: 767.98px) {
    #lineConnectionManagerModal.sru-line-connect-modal {
        padding: 16px !important;
    }

    #lineConnectionManagerModal .sru-line-connect-card {
        width: calc(100vw - 32px) !important;
        padding: 28px 20px !important;
        border-radius: 22px !important;
    }
}

html[data-theme="dark"] #lineConnectionManagerModal .sru-line-connect-card,
body[data-theme="dark"] #lineConnectionManagerModal .sru-line-connect-card {
    background: rgba(25, 32, 42, .96) !important;
    border-color: rgba(255, 255, 255, .12) !important;
    color: #F1F5F9 !important;
}

/* =========================================================
   ADMIN AUDIT LOG — RESPONSIVE LIQUID SURFACES
   ========================================================= */
.audit-page{min-width:0;}
.audit-container{width:min(100%,1500px);margin:0 auto;}
.audit-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:10px 0 24px;padding:26px 30px;border:1px solid rgba(255,255,255,.78);border-radius:26px;background:linear-gradient(118deg,rgba(255,255,255,.76),rgba(239,247,255,.54));box-shadow:0 18px 48px rgba(48,76,112,.08),inset 0 1px 0 rgba(255,255,255,.9);backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%);}
.audit-eyebrow{display:flex;align-items:center;gap:7px;margin-bottom:7px;color:#3774b7;font-size:12px;font-weight:750;letter-spacing:.04em;}
.audit-heading h1{margin:0;color:#172b45;font-size:clamp(23px,3vw,30px);font-weight:800;letter-spacing:-.025em;}
.audit-heading p{margin:7px 0 0;color:#6c7f96;font-size:13px;}
.audit-heading-mark{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border:1px solid rgba(65,126,189,.16);border-radius:19px;background:linear-gradient(145deg,rgba(255,255,255,.8),rgba(206,229,251,.63));color:#3479bd;font-size:26px;box-shadow:0 10px 24px rgba(56,109,166,.12);}
.audit-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px;}
.audit-stat-card{display:flex;align-items:center;gap:13px;min-width:0;padding:17px 19px;border:1px solid rgba(255,255,255,.82);border-radius:20px;background:rgba(255,255,255,.68);box-shadow:0 10px 30px rgba(49,78,112,.065),inset 0 1px 0 rgba(255,255,255,.9);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);}
.audit-stat-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:14px;background:rgba(66,132,202,.11);color:#3579bd;font-size:21px;}
.audit-stat-icon-today{background:rgba(27,153,103,.11);color:#16895a;}
.audit-stat-icon-privacy{background:rgba(125,94,197,.11);color:#7055b2;}
.audit-stat-card small,.audit-stat-card strong{display:block;}
.audit-stat-card small{margin-bottom:3px;color:#73849a;font-size:11px;font-weight:650;}
.audit-stat-card strong{color:#203a57;font-size:20px;line-height:1.25;font-weight:800;}
.audit-stat-card .audit-stat-text{font-size:14px;}
.audit-filters{display:grid;grid-template-columns:minmax(210px,1.5fr) minmax(170px,1fr) repeat(2,minmax(145px,.7fr)) auto;align-items:end;gap:12px;margin-bottom:16px;padding:17px;border:1px solid rgba(255,255,255,.82);border-radius:20px;background:rgba(255,255,255,.62);box-shadow:0 10px 28px rgba(49,78,112,.055);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);}
.audit-filters label{display:block;min-width:0;margin:0;color:#566d86;font-size:11px;font-weight:750;}
.audit-filters label>span{display:block;margin:0 0 6px 2px;}
.audit-filters input,.audit-filters select{width:100%;min-height:42px;padding:9px 11px;border:1px solid rgba(164,187,211,.48);border-radius:12px;background:rgba(255,255,255,.82);color:#263d58;font:500 12px 'Prompt',sans-serif;outline:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;}
.audit-filters input:focus,.audit-filters select:focus{border-color:#79aee0;box-shadow:0 0 0 3px rgba(72,139,202,.14);background:#fff;}
.audit-search-field>div{position:relative;}
.audit-search-field>div>i{position:absolute;top:50%;left:12px;transform:translateY(-50%);color:#8093a9;font-size:17px;pointer-events:none;}
.audit-search-field input{padding-left:36px;}
.audit-filter-actions{display:flex;align-items:center;gap:8px;white-space:nowrap;}
.audit-primary-btn,.audit-reset-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 13px;border-radius:12px;font:700 12px 'Prompt',sans-serif;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,background .16s ease;}
.audit-primary-btn{border:1px solid rgba(47,111,181,.24);background:linear-gradient(135deg,#4389d2,#286dcc);color:#fff;box-shadow:0 7px 17px rgba(49,111,184,.18);}
.audit-primary-btn:hover{transform:translateY(-1px);color:#fff;box-shadow:0 10px 22px rgba(49,111,184,.24);}
.audit-reset-btn{border:1px solid rgba(163,184,205,.42);background:rgba(255,255,255,.66);color:#58718d;}
.audit-reset-btn:hover{background:#fff;color:#2d5d8c;}
.audit-table-card{overflow:hidden;border:1px solid rgba(255,255,255,.84);border-radius:22px;background:rgba(255,255,255,.72);box-shadow:0 15px 42px rgba(42,70,102,.075),inset 0 1px 0 rgba(255,255,255,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);}
.audit-table-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 21px 16px;border-bottom:1px solid rgba(148,171,195,.18);}
.audit-table-heading h2{margin:0;color:#203852;font-size:16px;font-weight:800;}
.audit-table-heading p{margin:4px 0 0;color:#798ba0;font-size:11px;}
.audit-readonly-tag{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid rgba(83,135,187,.15);border-radius:999px;background:rgba(230,241,252,.63);color:#54789c;font-size:10px;font-weight:700;white-space:nowrap;}
.audit-table-wrap{max-height:calc(100vh - 390px);min-height:220px;}
.audit-table{min-width:950px;--tblr-table-border-color:rgba(145,168,192,.15);}
.audit-table thead th{position:sticky;top:0;z-index:1;padding:11px 13px;border-bottom:1px solid rgba(145,168,192,.20);background:rgba(244,249,254,.96);color:#71849a;font-size:10px;font-weight:800;letter-spacing:.035em;white-space:nowrap;}
.audit-table tbody td{padding:12px 13px;color:#334b65;font-size:11px;vertical-align:top;}
.audit-table tbody tr{transition:background .14s ease;}
.audit-table tbody tr:hover{background:rgba(231,242,253,.34);}
.audit-time strong,.audit-time span,.audit-actor small,.audit-entity small,.audit-event-code{display:block;}
.audit-time strong{color:#364d66;font-size:11px;font-weight:750;white-space:nowrap;}
.audit-time span{margin-top:3px;color:#8292a5;font-size:10px;font-variant-numeric:tabular-nums;}
.audit-actor{display:flex;align-items:center;gap:8px;min-width:165px;}
.audit-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid rgba(106,154,198,.14);border-radius:11px;background:rgba(219,236,251,.62);color:#4a83b8;font-size:15px;}
.audit-actor strong{display:block;max-width:175px;overflow:hidden;color:#334d68;font-size:11px;text-overflow:ellipsis;white-space:nowrap;}
.audit-actor small{max-width:175px;margin-top:2px;overflow:hidden;color:#8392a4;font-size:9px;text-overflow:ellipsis;white-space:nowrap;}
.audit-event-badge{display:inline-flex;align-items:center;max-width:160px;padding:5px 8px;border:1px solid rgba(78,132,187,.14);border-radius:9px;background:rgba(224,239,253,.65);color:#3f719e;font-size:10px;font-weight:750;line-height:1.35;}
.audit-event-booking-approved,.audit-event-auth-login-success,.audit-event-line-connected{border-color:rgba(35,158,104,.15);background:rgba(224,247,236,.72);color:#268158;}
.audit-event-booking-rejected,.audit-event-booking-cancelled,.audit-event-auth-logout{border-color:rgba(208,117,110,.15);background:rgba(255,236,233,.68);color:#a75b55;}
.audit-event-role-updated,.audit-event-room-archived,.audit-event-equipment-archived{border-color:rgba(156,124,66,.15);background:rgba(255,246,224,.68);color:#91702e;}
.audit-event-code{margin-top:4px;color:#9aa7b6;font-size:9px;}
.audit-entity{display:block;color:#526a83;font-size:10px;font-weight:750;text-transform:capitalize;}
.audit-entity+small{display:block;margin-top:3px;color:#8796a7;font-size:9px;}
.audit-description{max-width:260px;color:#475f79;font-size:10px;line-height:1.55;}
.audit-details{margin-top:5px;color:#74889e;font-size:9px;}
.audit-details summary{width:max-content;max-width:100%;cursor:pointer;color:#5886b0;font-size:9px;font-weight:700;}
.audit-details summary:focus-visible{outline:2px solid rgba(59,131,201,.35);outline-offset:2px;border-radius:4px;}
.audit-detail-body{display:grid;gap:5px;max-width:270px;margin-top:7px;padding:9px;border:1px solid rgba(143,168,193,.19);border-radius:10px;background:rgba(245,249,253,.8);}
.audit-detail-body pre{max-height:180px;margin:0;overflow:auto;color:#4b6178;font:10px/1.55 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;}
.audit-detail-body>span{color:#76899e;overflow-wrap:anywhere;}
.audit-user-agent{display:-webkit-box;max-height:34px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
.audit-empty{display:grid;justify-items:center;gap:5px;padding:42px 15px;text-align:center;}
.audit-empty>span{display:grid;place-items:center;width:44px;height:44px;margin-bottom:4px;border-radius:15px;background:rgba(223,237,251,.72);color:#6290ba;font-size:21px;}
.audit-empty strong{color:#445d76;font-size:13px;}
.audit-empty small{color:#8291a3;font-size:10px;}
.audit-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid rgba(148,171,195,.18);color:#73869b;font-size:10px;}
.audit-pagination>div{display:flex;gap:6px;}
.audit-pagination a,.audit-pagination .disabled{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(147,172,197,.26);border-radius:11px;background:rgba(255,255,255,.75);color:#477ba9;text-decoration:none;font-size:16px;}
.audit-pagination a:hover{border-color:rgba(76,137,193,.42);background:#fff;box-shadow:0 4px 12px rgba(50,94,135,.09);}
.audit-pagination .disabled{color:#b3bfca;}
.audit-privacy-note{display:flex;align-items:flex-start;gap:7px;margin:12px 3px 0;color:#78899b;font-size:10px;line-height:1.6;}
.audit-privacy-note i{margin-top:1px;color:#6390b5;font-size:14px;}
.audit-migration-alert{display:flex;align-items:flex-start;gap:12px;padding:17px;border:1px solid rgba(190,144,58,.22);border-radius:17px;background:rgba(255,248,229,.82);color:#795c25;box-shadow:0 10px 26px rgba(88,71,34,.06);}
.audit-migration-alert>i{font-size:22px;}
.audit-migration-alert strong,.audit-migration-alert span{display:block;}
.audit-migration-alert span{margin-top:4px;font-size:12px;line-height:1.6;}
.audit-migration-alert code{color:#76551b;}

/* LINE actions keep the brand green while preserving the site's soft glass look. */
html[data-theme="liquid"] .profile-page .line-card{border:1px solid rgba(6,199,85,.15)!important;background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(242,255,248,.67))!important;box-shadow:0 18px 45px rgba(37,115,83,.08),inset 0 1px 0 rgba(255,255,255,.92)!important;backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%);}
html[data-theme="liquid"] .profile-page .line-icon{border:1px solid rgba(255,255,255,.48);border-radius:17px;background:linear-gradient(145deg,#0a8740,#067237)!important;box-shadow:0 10px 24px rgba(6,137,65,.22);}
html[data-theme="liquid"] .profile-page .line-status{border:1px solid rgba(6,199,85,.12);background:rgba(239,255,246,.72)!important;}
html[data-theme="liquid"] .profile-page .line-connected{color:#08763a!important;}
html[data-theme="liquid"] .profile-page .line-disconnected{color:#9b702d!important;}
.profile-page .line-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:13px;font-size:13px;font-weight:750;letter-spacing:.005em;transition:transform .18s ease,box-shadow .18s ease,background .18s ease!important;}
.profile-page .line-button i{font-size:18px;}
.profile-page .line-connected-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.profile-page .line-connected{display:inline-flex;align-items:center;gap:7px;}
html[data-theme="liquid"] .profile-page .line-manage-button{border:1px solid rgba(63,131,189,.18)!important;background:rgba(255,255,255,.68)!important;color:#4e7293!important;box-shadow:0 6px 16px rgba(43,82,116,.07),inset 0 1px 0 rgba(255,255,255,.88)!important;backdrop-filter:blur(12px);}
html[data-theme="liquid"] .profile-page .line-manage-button:hover{background:rgba(235,245,255,.9)!important;box-shadow:0 9px 20px rgba(43,82,116,.12)!important;transform:translateY(-1px);}
html[data-theme="liquid"] .profile-page .line-connect-button{border:1px solid rgba(4,103,49,.72)!important;background:linear-gradient(135deg,#0a8740,#067237)!important;color:#fff!important;box-shadow:0 9px 20px rgba(6,137,65,.22),inset 0 1px 0 rgba(255,255,255,.16)!important;}
html[data-theme="liquid"] .profile-page .line-connect-button:hover{background:linear-gradient(135deg,#087a3a,#05672f)!important;box-shadow:0 13px 26px rgba(6,137,65,.27)!important;transform:translateY(-2px);}
html[data-theme="liquid"] .profile-page .line-add-button{border:1px solid rgba(6,120,55,.25)!important;background:rgba(255,255,255,.72)!important;color:#08763a!important;box-shadow:0 6px 16px rgba(43,110,79,.08),inset 0 1px 0 rgba(255,255,255,.9)!important;backdrop-filter:blur(12px);}
html[data-theme="liquid"] .profile-page .line-add-button:hover{background:rgba(235,255,243,.88)!important;box-shadow:0 9px 20px rgba(43,110,79,.13)!important;transform:translateY(-1px);}
.profile-page .line-button:focus-visible,.sru-line-connect-open-btn:focus-visible{outline:3px solid rgba(6,199,85,.30)!important;outline-offset:3px;}
html[data-theme="liquid"] .settings-item.line-not-connected{border:1px solid rgba(6,199,85,.16)!important;background:linear-gradient(115deg,rgba(255,255,255,.66),rgba(229,255,239,.47))!important;}
html[data-theme="liquid"] .settings-item.line-not-connected .settings-item-icon{border-color:rgba(6,199,85,.18)!important;background:rgba(6,199,85,.11)!important;color:#08a94a!important;}
html[data-theme="liquid"] .sru-line-connect-open-btn{border:1px solid rgba(4,103,49,.72)!important;border-radius:14px!important;background:linear-gradient(135deg,#0a8740,#067237)!important;box-shadow:0 10px 23px rgba(6,137,65,.23),inset 0 1px 0 rgba(255,255,255,.16)!important;}
html[data-theme="liquid"] .sru-line-connect-open-btn:hover{background:linear-gradient(135deg,#087a3a,#05672f)!important;box-shadow:0 14px 27px rgba(6,137,65,.28)!important;}
html[data-theme="liquid"] body .settings-item.line-connected .line-connected-title{color:#08763a!important;}
html[data-theme="liquid"] .line-manager-status{border-color:rgba(6,199,85,.18)!important;background:rgba(231,255,240,.75)!important;}

html[data-theme="dark"] .audit-heading{border-color:rgba(255,255,255,.08);background:linear-gradient(118deg,rgba(23,36,56,.93),rgba(18,30,48,.86));box-shadow:0 18px 48px rgba(0,0,0,.2);}
html[data-theme="dark"] .audit-heading h1,html[data-theme="dark"] .audit-stat-card strong,html[data-theme="dark"] .audit-table-heading h2{color:#edf4fc;}
html[data-theme="dark"] .audit-eyebrow{color:#8bbcf0;}
html[data-theme="dark"] .audit-heading p,html[data-theme="dark"] .audit-stat-card small,html[data-theme="dark"] .audit-table-heading p,html[data-theme="dark"] .audit-privacy-note{color:#a2b2c5;}
html[data-theme="dark"] .audit-heading-mark,html[data-theme="dark"] .audit-stat-card,html[data-theme="dark"] .audit-filters,html[data-theme="dark"] .audit-table-card{border-color:rgba(255,255,255,.08);background:rgba(17,27,43,.88);box-shadow:0 14px 36px rgba(0,0,0,.2);}
html[data-theme="dark"] .audit-heading-mark{background:linear-gradient(145deg,rgba(61,91,124,.42),rgba(31,52,77,.52));color:#9bcaff;}
html[data-theme="dark"] .audit-filters label{color:#c0cede;}
html[data-theme="dark"] .audit-filters input,html[data-theme="dark"] .audit-filters select{border-color:#34445b;background:#152238;color:#e8f0f8;}
html[data-theme="dark"] .audit-reset-btn{border-color:#34445b;background:#18263c;color:#c2d4e7;}
html[data-theme="dark"] .audit-table thead th{border-color:#2b3b52;background:#17253a;color:#a9bad0;}
html[data-theme="dark"] .audit-table tbody td{border-color:#26364c;color:#d3deeb;}
html[data-theme="dark"] .audit-table tbody tr:hover{background:rgba(80,126,174,.08);}
html[data-theme="dark"] .audit-time strong,html[data-theme="dark"] .audit-actor strong,html[data-theme="dark"] .audit-description{color:#dbe6f2;}
html[data-theme="dark"] .audit-time span,html[data-theme="dark"] .audit-actor small,html[data-theme="dark"] .audit-entity+small,html[data-theme="dark"] .audit-event-code{color:#98a9bd;}
html[data-theme="dark"] .audit-entity{color:#b9cee4;}
html[data-theme="dark"] .audit-detail-body{border-color:#34445b;background:#111d30;}
html[data-theme="dark"] .audit-detail-body pre,html[data-theme="dark"] .audit-detail-body>span{color:#becde0;}
html[data-theme="dark"] .audit-pagination{border-color:#2b3b52;color:#a9bad0;}
html[data-theme="dark"] .audit-pagination a,html[data-theme="dark"] .audit-pagination .disabled{border-color:#34445b;background:#18263c;color:#b8d8f5;}
html[data-theme="dark"] .audit-readonly-tag{border-color:#34445b;background:#1c2a40;color:#b8d8f5;}
html[data-theme="dark"] .audit-empty strong{color:#d4e0ed;}
html[data-theme="dark"] .audit-empty small{color:#a1b1c4;}
html[data-theme="dark"] .audit-migration-alert{border-color:rgba(196,153,76,.22);background:rgba(76,59,27,.38);color:#eed59f;}
html[data-theme="dark"] .audit-migration-alert code{color:#f2d58f;}
html[data-theme="dark"] .profile-page .line-status{border:1px solid rgba(6,199,85,.18);background:rgba(12,56,37,.28);}
html[data-theme="dark"] .profile-page .line-connected{color:#78d8a0!important;}
html[data-theme="dark"] .profile-page .line-disconnected{color:#e7c37d!important;}
html[data-theme="dark"] .profile-page .line-manage-button{border:1px solid rgba(128,169,208,.22)!important;background:rgba(25,42,63,.86)!important;color:#c8dced!important;}

@media(max-width:1100px){.audit-filters{grid-template-columns:repeat(2,minmax(0,1fr));}.audit-filter-actions{grid-column:1/-1;justify-content:flex-end;}}
@media(max-width:700px){.audit-container{padding-top:18px!important;}.audit-heading{margin:4px 0 16px;padding:20px;border-radius:21px;}.audit-heading-mark{flex-basis:46px;width:46px;height:46px;border-radius:15px;font-size:21px;}.audit-heading p{max-width:420px;font-size:11px;line-height:1.6;}.audit-stats{grid-template-columns:1fr;gap:9px;margin-bottom:12px;}.audit-stat-card{padding:13px 15px;border-radius:16px;}.audit-stat-card strong{font-size:17px;}.audit-filters{grid-template-columns:1fr 1fr;gap:10px;padding:13px;border-radius:17px;}.audit-search-field{grid-column:1/-1;}.audit-filter-actions{justify-content:stretch;}.audit-primary-btn,.audit-reset-btn{flex:1;}.audit-table-card{border-radius:18px;}.audit-table-heading{padding:15px;}.audit-table-wrap{max-height:none;}.audit-privacy-note{font-size:9px;}.profile-page .line-header{gap:14px;}.profile-page .line-header>div:last-child{width:100%;}.profile-page .line-header>div:last-child .line-button{flex:1;}}
@media(max-width:420px){.audit-filters{grid-template-columns:1fr;}.audit-search-field{grid-column:auto;}.audit-filter-actions{grid-column:auto;}.audit-heading{align-items:flex-start;padding:17px;}.audit-heading-mark{flex-basis:40px;width:40px;height:40px;}.audit-heading h1{font-size:22px;}}
@media(prefers-reduced-motion:reduce){.profile-page .line-button,.sru-line-connect-open-btn,.audit-primary-btn,.audit-reset-btn{transition:none!important;}}

/* Consistent keyboard focus across the booking and administration workflows. */
html[data-theme="liquid"] :is(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid rgba(48,124,192,.34)!important;outline-offset:2px!important;}
html[data-theme="dark"] :is(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid rgba(126,183,238,.54)!important;outline-offset:2px!important;}
html :is(button,input[type="submit"],input[type="button"]):disabled{cursor:not-allowed!important;opacity:.58;}
@media(prefers-reduced-motion:reduce){html *{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}}
