:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #eff6ff;
    --accent: #60a5fa;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --card-shadow: 0 1px 3px rgba(59, 130, 246, 0.06);
    --radius: 10px;
    --bs-font-sans-serif: 'Sarabun', sans-serif;
    --bs-body-font-family: 'Sarabun', sans-serif;
    --bs-primary: #3b82f6;
    --bs-primary-rgb: 59, 130, 246;
}

html {
    font-family: 'Sarabun', sans-serif;
}

*,
*::before,
*::after {
    font-family: inherit;
}

body,
button,
input,
optgroup,
select,
textarea,
.btn,
.form-control,
.form-select,
.input-group-text,
.dropdown-menu,
.modal,
.navbar,
.nav-link,
.badge,
.alert,
.table,
.fc,
.fc-toolbar-title,
.fc-col-header-cell-cushion,
.fc-daygrid-day-number,
.fc-event-title,
.swal2-popup,
.swal2-title,
.swal2-html-container,
.swal2-confirm,
.swal2-cancel {
    font-family: 'Sarabun', sans-serif !important;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 0 0 2rem;
}

.main-content:not(:has(.home-hero)) {
    padding-top: 1.25rem;
}

/* ── Hero ── */
.home-hero {
    background: var(--primary);
    color: #fff;
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
}

.home-hero h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.home-hero .lead {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.hero-info-panel {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: calc(var(--radius) + 4px);
    padding: 1rem 1.125rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-info-item:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.35);
    font-size: 1rem;
    line-height: 1;
}

.hero-info-item--rooms {
    border-color: rgba(52, 211, 153, 0.55);
}

.hero-info-item--rooms .hero-info-icon {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.18);
    border-color: #34d399;
}

.hero-info-item--rooms:hover {
    border-color: rgba(52, 211, 153, 0.75);
}

.hero-info-item--hours {
    border-color: rgba(251, 191, 36, 0.55);
}

.hero-info-item--hours .hero-info-icon {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.18);
    border-color: #fbbf24;
}

.hero-info-item--hours:hover {
    border-color: rgba(251, 191, 36, 0.75);
}

.hero-info-item--advance {
    border-color: rgba(167, 139, 250, 0.55);
}

.hero-info-item--advance .hero-info-icon {
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.18);
    border-color: #a78bfa;
}

.hero-info-item--advance:hover {
    border-color: rgba(167, 139, 250, 0.75);
}

.hero-info-text {
    font-size: 0.9375rem;
    line-height: 1.4;
    opacity: 0.92;
}

.hero-info-text strong {
    font-weight: 600;
    font-size: 1.0625rem;
    opacity: 1;
}

/* ── Navbar ── */
.navbar {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: none !important;
}

.navbar-collapse {
    overflow: visible;
}

.page-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.navbar-brand .brand-icon,
.brand-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar-brand .brand-icon {
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand .brand-text small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.navbar-brand {
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.navbar-brand .brand-text strong,
.navbar-brand .brand-text small {
    white-space: nowrap;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 0.85rem !important;
    margin: 0 0.1rem;
    transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.nav-link.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link.nav-pill i {
    font-size: 1rem;
}

.nav-link.nav-pill:hover {
    background: var(--primary-light);
    color: var(--primary-dark) !important;
    border-color: #bfdbfe;
}

.nav-link.nav-pill.active {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.nav-link.nav-pill-book:hover {
    background: #ecfdf5;
    color: #059669 !important;
    border-color: #a7f3d0;
}

.nav-link.nav-pill-book.active {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.nav-link.nav-pill-my:hover {
    background: #eef2ff;
    color: #4f46e5 !important;
    border-color: #c7d2fe;
}

.nav-link.nav-pill-my.active {
    background: #6366f1;
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.nav-link.nav-pill-approval {
    position: relative;
}

.nav-link.nav-pill-approval:hover {
    background: #fff7ed;
    color: #ea580c !important;
    border-color: #fed7aa;
}

.nav-link.nav-pill-approval.active {
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-color: #f97316;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4);
}

.nav-link.nav-pill-admin:hover {
    background: #f1f5f9;
    color: #475569 !important;
    border-color: #cbd5e1;
}

.nav-link.nav-pill-admin.active {
    background: #64748b;
    border-color: #64748b;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.35);
}

.nav-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 0.1rem;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

.nav-link.nav-pill-approval.active .nav-count-badge {
    background: #fff;
    color: #ea580c;
    box-shadow: none;
}

.nav-link.nav-pill-conflicts {
    position: relative;
}

.nav-link.nav-pill-conflicts:hover {
    background: #fef2f2;
    color: #dc2626 !important;
    border-color: #fecaca;
}

.nav-link.nav-pill-conflicts.active {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-color: #ef4444;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

.nav-count-badge-warning {
    background: #f59e0b;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.45);
}

.nav-link.nav-pill-conflicts.active .nav-count-badge-warning {
    background: #fff;
    color: #dc2626;
    box-shadow: none;
}

.navbar-actions .btn-nav-login {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 0.4rem 1rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.navbar-actions .btn-nav-login:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.navbar-actions .btn-nav-logout {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
}

.navbar-actions .btn-nav-logout:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.navbar-actions .btn-nav-icon {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary);
    width: 34px;
    height: 34px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.navbar-actions .btn-nav-icon:hover {
    background: var(--primary-light);
    border-color: #bfdbfe;
    color: var(--primary-dark);
}

.user-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-actions {
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .navbar > .container-fluid {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar-brand {
        flex: 0 0 auto;
        margin-right: 0.5rem;
    }

    .navbar-collapse {
        display: flex !important;
        flex: 1 1 0%;
        flex-wrap: nowrap;
        align-items: center;
        min-width: 0;
        overflow: hidden;
    }

    .navbar-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
        flex: 1 1 auto;
        padding-bottom: 1px;
        margin-bottom: 0 !important;
        margin-right: 0.5rem !important;
    }

    .navbar-nav::-webkit-scrollbar {
        height: 4px;
    }

    .navbar-nav::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

    .navbar-nav .nav-item {
        flex-shrink: 0;
    }

    .nav-link.nav-pill {
        font-size: 0.8125rem;
        padding: 0.4rem 0.6rem !important;
    }

    .navbar-actions .user-badge-pill {
        max-width: 9rem;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar-brand .brand-text small {
        display: none;
    }
}

.dropdown-menu-nav {
    border-radius: 10px;
    padding: 0.35rem;
    margin-top: 0.35rem !important;
}

.dropdown-menu-nav .dropdown-item {
    border-radius: 7px;
    padding: 0.5rem 0.85rem;
    font-weight: 500;
}

.dropdown-menu-nav .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.admin-page .main-content {
    padding-top: 1.25rem;
}

.admin-page .page-header h1 i {
    color: var(--primary);
}

.admin-page .admin-card,
.admin-page .settings-section {
    background: var(--surface);
}

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.admin-subnav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.15s;
}

.admin-subnav-item:hover {
    color: var(--primary-dark);
    background: var(--primary-light);
    border-color: #bfdbfe;
}

.admin-subnav-item.active {
    color: #fff;
    background: #64748b;
    border-color: #64748b;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.35);
}

.admin-subnav-item--alert:not(.active) {
    color: #b45309;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fbbf24;
}

.admin-subnav-item--alert:not(.active):hover {
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.admin-subnav-item--alert.active {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-color: #ef4444;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.35);
}

.btn-conflicts-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-conflicts-alert:hover,
.btn-conflicts-alert:focus {
    color: #fff;
    background: linear-gradient(135deg, #d97706, #dc2626);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.admin-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.admin-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid;
}

.admin-summary-pill i {
    font-size: 1rem;
}

.admin-summary-pill-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.admin-summary-pill-green {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}

.admin-summary-pill-slate {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

.admin-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.admin-card-header i {
    color: var(--primary);
    font-size: 1.1rem;
}

.admin-card-header-primary {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border-bottom-color: #bfdbfe;
}

.admin-card-header-primary i {
    color: #2563eb;
}

.admin-card-body {
    padding: 1.25rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table thead th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-room-name {
    font-weight: 600;
    color: var(--text);
}

.admin-room-number {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 400;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px dashed var(--border);
}

.admin-form-actions .btn-save {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
}

.admin-form-actions .btn-save:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 5px 14px rgba(59, 130, 246, 0.45);
}

.admin-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.15s;
}

.admin-btn-edit:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.settings-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9375rem;
    background: #f8fafc;
}

.settings-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.settings-section-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.settings-section-icon-amber {
    background: #fffbeb;
    color: #d97706;
}

.settings-section-icon-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.settings-section-body {
    padding: 1.25rem;
}

.settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.settings-toggle:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-toggle:first-child {
    padding-top: 0;
}

.settings-toggle-label {
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.settings-toggle-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
}

.settings-toggle .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    cursor: pointer;
}

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

.settings-save-bar {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.5rem;
}

.settings-save-bar .btn-save-settings {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
}

.settings-save-bar .btn-save-settings:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    box-shadow: 0 5px 14px rgba(99, 102, 241, 0.45);
}

.settings-config-panel-inner {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 1rem 1.15rem;
}

.settings-config-panel-inner code {
    font-size: 0.85em;
    color: #0369a1;
}

.admin-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.admin-empty i {
    font-size: 2.5rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.75rem;
}

/* ── Admin bookings dashboard ── */
.bookings-filter-bar {
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.bookings-stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid;
    height: 100%;
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.bookings-stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.bookings-stat-card-link:hover .bookings-stat-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.bookings-stat-card.is-active {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    border-width: 2px;
}

.bookings-stat-approved.is-active { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3); }
.bookings-stat-rejected.is-active { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3); }
.bookings-stat-cancelled.is-active { box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.3); }
.bookings-stat-total.is-active { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3); }

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

.bookings-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.bookings-stat-value-sm {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookings-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.bookings-stat-total { border-color: #bfdbfe; background: linear-gradient(135deg, #eff6ff, #fff); }
.bookings-stat-total .bookings-stat-icon { background: #dbeafe; color: #2563eb; }
.bookings-stat-total .bookings-stat-value { color: #1d4ed8; }

.bookings-stat-approved { border-color: #a7f3d0; background: linear-gradient(135deg, #ecfdf5, #fff); }
.bookings-stat-approved .bookings-stat-icon { background: #d1fae5; color: #059669; }
.bookings-stat-approved .bookings-stat-value { color: #047857; }

.bookings-stat-rejected { border-color: #fecaca; background: linear-gradient(135deg, #fef2f2, #fff); }
.bookings-stat-rejected .bookings-stat-icon { background: #fee2e2; color: #dc2626; }
.bookings-stat-rejected .bookings-stat-value { color: #b91c1c; }

.bookings-stat-cancelled { border-color: #e2e8f0; background: linear-gradient(135deg, #f8fafc, #fff); }
.bookings-stat-cancelled .bookings-stat-icon { background: #e2e8f0; color: #64748b; }
.bookings-stat-cancelled .bookings-stat-value { color: #475569; }

.bookings-stat-participants { border-color: #ddd6fe; background: linear-gradient(135deg, #f5f3ff, #fff); }
.bookings-stat-participants .bookings-stat-icon { background: #ede9fe; color: #7c3aed; }
.bookings-stat-participants .bookings-stat-value { color: #6d28d9; }

.bookings-stat-room { border-color: #fed7aa; background: linear-gradient(135deg, #fff7ed, #fff); }
.bookings-stat-room .bookings-stat-icon { background: #ffedd5; color: #ea580c; }
.bookings-stat-room .bookings-stat-value { color: #c2410c; }

#bookingsTable_wrapper .dataTables_filter input,
#bookingsTable_wrapper .dataTables_length select,
#myBookingsTable_wrapper .dataTables_filter input,
#myBookingsTable_wrapper .dataTables_length select {
    border-radius: 8px;
    border-color: var(--border);
    padding: 0.35rem 0.65rem;
}

#bookingsTable_wrapper .dataTables_info,
#bookingsTable_wrapper .dataTables_paginate,
#myBookingsTable_wrapper .dataTables_info,
#myBookingsTable_wrapper .dataTables_paginate {
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

#bookingsTable_wrapper .page-link,
#myBookingsTable_wrapper .page-link {
    border-radius: 6px;
    margin: 0 0.1rem;
}

/* ── My bookings page ── */
.bookings-stat-pending { border-color: #fde68a; background: linear-gradient(135deg, #fffbeb, #fff); }
.bookings-stat-pending .bookings-stat-icon { background: #fef3c7; color: #d97706; }
.bookings-stat-pending .bookings-stat-value { color: #b45309; }
.bookings-stat-pending.is-active { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35); }

.my-bookings-filter-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: inherit;
    color: inherit;
    cursor: pointer;
}

.my-bookings-filter-label {
    font-weight: 600;
    color: var(--primary-dark);
}

.my-bookings-card {
    border: 1px solid #e2e8f0;
    box-shadow: var(--card-shadow);
}

.my-bookings-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.75rem;
}

#myBookingsTable_wrapper .dataTables_filter input:focus,
#myBookingsTable_wrapper .dataTables_length select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

/* ── Approval page actions ── */
.approval-card {
    border-left: 4px solid #f97316;
}

.approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.approval-actions .btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.approval-actions .btn-action:hover {
    transform: translateY(-1px);
}

.approval-actions .btn-action-view {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.approval-actions .btn-action-view:hover {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.approval-actions .btn-action-approve {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.35);
}

.approval-actions .btn-action-approve:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    box-shadow: 0 5px 14px rgba(34, 197, 94, 0.45);
}

.approval-actions .btn-action-reject {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #fff;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
}

.approval-actions .btn-action-reject:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 5px 14px rgba(239, 68, 68, 0.45);
}

.approval-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.approval-summary .summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
}

.approval-summary .summary-pill strong {
    font-size: 1.1rem;
}

/* ── Admin conflicts page ── */
.conflicts-filter-bar {
    border-color: #fecaca;
}

.conflicts-scope-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.conflicts-scope-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.conflicts-scope-tab:hover {
    border-color: #fca5a5;
    color: #b91c1c;
    background: #fef2f2;
}

.conflicts-scope-tab.active {
    border-color: #f87171;
    background: linear-gradient(135deg, #fef2f2, #fff);
    color: #b91c1c;
    font-weight: 600;
}

.conflicts-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.875rem;
}

.conflicts-empty {
    border-left: 4px solid var(--success);
}

.conflict-group-card {
    border: 1px solid #fecaca;
    overflow: hidden;
}

.conflict-group-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #fef2f2, #fff7ed);
    border-bottom: 1px solid #fecaca;
}

.conflict-group-room {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.conflict-room-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.conflict-group-when {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.conflict-overlap-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
}

.conflict-bookings-table thead th {
    background: #fafafa;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.conflict-actions {
    white-space: nowrap;
}

.conflict-actions .btn {
    margin-left: 0.25rem;
}

.change-room-summary {
    padding: 0.75rem 0.875rem;
    border-radius: var(--radius);
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.change-room-summary-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.change-room-summary-meta {
    line-height: 1.4;
}

#bookingDetailModal .modal-header {
    align-items: flex-start;
}

/* ── Booking detail modal ── */
.booking-detail-modal .modal-dialog {
    max-width: 720px;
}

.booking-detail-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.booking-detail-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 0.55rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.booking-detail-modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 0.85rem 1.25rem;
}

.booking-modal-loading {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.booking-modal-hero {
    padding: 1.5rem 1.5rem 1.25rem;
    color: #fff;
    position: relative;
}

.booking-modal-hero-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 55%, #fcd34d 100%);
}

.booking-modal-hero-approved {
    background: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%);
}

.booking-modal-hero-rejected {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 55%, #f87171 100%);
}

.booking-modal-hero-cancelled {
    background: linear-gradient(135deg, #475569 0%, #64748b 55%, #94a3b8 100%);
}

.booking-modal-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.booking-modal-hero .badge {
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.4em 0.85em;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.booking-modal-hero-pending .badge-warning,
.booking-modal-hero-approved .badge-success,
.booking-modal-hero-rejected .badge-danger,
.booking-modal-hero-cancelled .badge-secondary {
    background: rgba(255, 255, 255, 0.95) !important;
}

.booking-modal-hero-pending .badge-warning { color: #b45309 !important; }
.booking-modal-hero-approved .badge-success { color: #047857 !important; }
.booking-modal-hero-rejected .badge-danger { color: #b91c1c !important; }
.booking-modal-hero-cancelled .badge-secondary { color: #475569 !important; }

.booking-modal-id {
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.booking-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.35;
    padding-right: 2rem;
}

.booking-modal-room {
    margin: 0;
    font-size: 0.9375rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.booking-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
    background: #fff;
}

.booking-modal-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.booking-modal-stat {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid;
}

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

.booking-modal-stat small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
}

.booking-modal-stat strong {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.35;
}

.booking-modal-stat-sub {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.1rem;
    opacity: 0.85;
}

.booking-modal-stat-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.booking-modal-stat-blue .booking-modal-stat-icon {
    background: #dbeafe;
    color: #2563eb;
}

.booking-modal-stat-purple {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #5b21b6;
}

.booking-modal-stat-purple .booking-modal-stat-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.booking-modal-stat-green {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.booking-modal-stat-green .booking-modal-stat-icon {
    background: #d1fae5;
    color: #059669;
}

.booking-modal-stat-slate {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

.booking-modal-stat-slate .booking-modal-stat-icon {
    background: #e2e8f0;
    color: #475569;
}

.booking-modal-section {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.booking-modal-section:last-child {
    margin-bottom: 0;
}

.booking-modal-section-notes {
    background: #fffbeb;
    border-color: #fde68a;
}

.booking-modal-section-approval {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.booking-modal-section-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.booking-modal-section-title i {
    color: var(--primary);
}

.booking-modal-text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.55;
}

.booking-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.booking-modal-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.booking-modal-tag-equipment {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.booking-modal-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.booking-modal-timeline-item {
    display: flex;
    gap: 0.75rem;
    position: relative;
    padding-bottom: 1rem;
}

.booking-modal-timeline-item:last-child {
    padding-bottom: 0;
}

.booking-modal-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 1.1rem;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.booking-modal-timeline-dot {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dbeafe;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.booking-modal-timeline-item.action-approved .booking-modal-timeline-dot {
    background: var(--success);
    box-shadow: 0 0 0 2px #bbf7d0;
}

.booking-modal-timeline-item.action-rejected .booking-modal-timeline-dot {
    background: var(--danger);
    box-shadow: 0 0 0 2px #fecaca;
}

.booking-modal-timeline-item.action-cancelled .booking-modal-timeline-dot {
    background: #94a3b8;
    box-shadow: 0 0 0 2px #e2e8f0;
}

.booking-modal-timeline-item.action-room_changed .booking-modal-timeline-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #fde68a;
}

.booking-modal-timeline-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

.booking-modal-timeline-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.booking-modal-timeline-note {
    font-size: 0.8125rem;
    color: var(--text);
    margin-top: 0.25rem;
    padding: 0.45rem 0.65rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.booking-detail-modal--pending .booking-detail-modal-content {
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.22);
}

.booking-detail-modal--approved .booking-detail-modal-content {
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.22);
}

.booking-detail-modal--rejected .booking-detail-modal-content {
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.22);
}

@media (max-width: 575.98px) {
    .booking-modal-stats {
        grid-template-columns: 1fr;
    }

    .booking-modal-title {
        font-size: 1.15rem;
    }

    .booking-modal-body {
        padding: 1rem;
    }

    .booking-modal-hero {
        padding: 1.25rem 1rem 1rem;
    }
}

.user-badge {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--text-muted);
    margin: 0;
}

/* ── Cards ── */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    background: var(--surface);
}

.card-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* ── Buttons ── */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-sm {
    border-radius: 7px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: none;
}

.btn-success {
    background: var(--success);
    border: 1px solid var(--success);
    color: #fff;
    box-shadow: none;
}

.btn-success:hover,
.btn-success:focus {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    border: 1px solid var(--danger);
    color: #fff;
    box-shadow: none;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    border: 1px solid var(--warning);
    color: #fff;
    box-shadow: none;
}

.btn-warning:hover,
.btn-warning:focus {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

.btn-secondary {
    background: #94a3b8;
    border: 1px solid #94a3b8;
    color: #fff;
    box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #64748b;
    border-color: #64748b;
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border: 1px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-outline-success {
    color: var(--success);
    border: 1px solid var(--success);
    background: transparent;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.btn-outline-danger {
    color: var(--danger);
    border: 1px solid var(--danger);
    background: transparent;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-outline-secondary {
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--surface);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: var(--bg);
    border-color: #cbd5e1;
    color: var(--text);
}

.btn-light {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--primary-dark);
    box-shadow: none;
    font-weight: 500;
}

.btn-light:hover,
.btn-light:focus {
    background: var(--primary-light);
    border-color: #fff;
    color: var(--primary-dark);
}

.btn-outline-light {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.btn-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.home-hero .btn {
    min-width: 140px;
}

.font-sarabun,
.font-sarabun * {
    font-family: 'Sarabun', sans-serif !important;
}

/* ── Badges ── */
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #f1f5f9; color: #475569; }

.badge {
    font-weight: 500;
    padding: 0.35em 0.75em;
    border-radius: 6px;
}

/* ── Room cards ── */
.room-card {
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.room-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.room-card .room-img {
    height: 160px;
    object-fit: cover;
    background: var(--primary-light);
}

.room-card .room-img-placeholder {
    height: 160px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 3rem;
}

.room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.room-meta span i {
    color: var(--primary);
}

/* ── Calendar ── */
.calendar-wrap,
#calendarBox {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.calendar-wrap {
    overflow: hidden;
}

#calendarBox {
    padding: 1rem;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.calendar-wrap #calendarBox.calendar-box-mobile {
    padding-top: 0.5rem;
}

.calendar-mobile-nav {
    position: relative;
    z-index: 20;
    padding: 0.75rem 0.75rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    pointer-events: auto;
}

.calendar-mobile-nav .btn {
    touch-action: manipulation;
}

.calendar-mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.calendar-mobile-nav-actions {
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.calendar-mobile-title {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text);
    padding: 0.15rem 0.5rem;
}

.calendar-mobile-nav .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.calendar-mobile-nav .btn-primary.active,
.calendar-mobile-nav .btn-primary:active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

#calendarBox .fc-header-toolbar {
    position: relative;
    z-index: 5;
}

.fc .fc-button-primary {
    background: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    font-weight: 500;
}

.fc .fc-button-primary:hover,
.fc .fc-button-primary:focus {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.fc .fc-button:focus,
.fc .fc-button:active {
    box-shadow: none !important;
    outline: none;
}

.fc .fc-button:not(:disabled):active {
    transform: none;
}

/* FullCalendar — ภาษาไทย */
.fc .fc-toolbar-title {
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: none;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number,
.fc .fc-list-day-text,
.fc .fc-list-day-side-text {
    text-transform: none;
    font-weight: 500;
}

.fc-timegrid .fc-col-header-cell-cushion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    line-height: 1.25;
    padding: 0.35rem 0.25rem;
}

.fc-timegrid .fc-day-header-weekday {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fc-timegrid .fc-day-header-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.fc .fc-button {
    text-transform: none;
    font-weight: 600;
}

.fc-direction-ltr .fc-toolbar > * > :not(:first-child) {
    margin-left: 0.4em;
}

.fc .fc-list-empty-cushion {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.fc-event {
    border-radius: 4px;
    border: none !important;
    padding: 0;
    font-size: 0.8rem;
    cursor: pointer;
    background: transparent !important;
    box-shadow: none !important;
}

.fc-booking-event {
    margin-bottom: 3px !important;
}

.fc-daygrid-event.fc-booking-event {
    white-space: normal;
}

.fc-daygrid-block-event .fc-event-main {
    overflow: visible;
}

.fc-booking-event .fc-event-main {
    padding: 0 !important;
}

.fc-booking-card {
    padding: 5px 7px;
    border-radius: 7px;
    border-left: 4px solid var(--room-color, #64748b);
    line-height: 1.3;
    overflow: hidden;
    width: 100%;
    min-height: 2.75rem;
}

.fc-booking-approved .fc-booking-card {
    background: #ecfdf5;
    color: #065f46;
}

.fc-booking-pending .fc-booking-card {
    background: #fffbeb;
    color: #92400e;
}

.fc-booking-room-label {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    width: 100%;
    margin: 0.2rem 0 0.25rem;
    padding: 0.25rem 0.45rem;
    border-radius: 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--room-color, #334155);
    background: color-mix(in srgb, var(--room-color, #64748b) 14%, #fff);
    border: 1px solid color-mix(in srgb, var(--room-color, #64748b) 32%, #fff);
    word-break: break-word;
    white-space: normal;
}

.fc-booking-room-label i {
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
    opacity: 0.85;
}

.fc-booking-room-label-inline {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0.15rem 0.4rem;
    font-size: 0.625rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-booking-room-label-hero {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.fc-booking-room-label-hero i {
    color: #fff;
    opacity: 0.95;
}

.fc-booking-card-top {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.fc-booking-card-top .fc-booking-time {
    margin-left: auto;
}

.fc-booking-approved .fc-booking-card {
    background: #ecfdf5;
    border-left-color: var(--room-color, #64748b);
    color: #065f46;
}

.fc-booking-pending .fc-booking-card {
    background: #fffbeb;
    border-left-color: var(--room-color, #64748b);
    color: #92400e;
}

.fc-booking-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.fc-booking-badge-approved {
    background: #10b981;
    color: #fff;
}

.fc-booking-badge-pending {
    background: #f59e0b;
    color: #fff;
}

.fc-booking-badge-sm {
    font-size: 0.6rem;
    padding: 0.05rem 0.35rem;
}

.fc-booking-time {
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
}

.fc-booking-room {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-booking-title {
    font-size: 0.6875rem;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-booking-card-compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 3px 6px;
    font-size: 0.75rem;
}

.fc-timegrid-event.fc-booking-approved {
    background: #ecfdf5 !important;
    border-left: 4px solid var(--room-color, #64748b) !important;
    color: #065f46 !important;
}

.fc-timegrid-event.fc-booking-pending {
    background: #fffbeb !important;
    border-left: 4px solid var(--room-color, #64748b) !important;
    color: #92400e !important;
}

.calendar-room-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.65rem;
}

.calendar-room-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.calendar-room-legend-bar {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.swal-booking-hero-room {
    margin: 0;
    font-size: 0.9375rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.75rem;
}

.calendar-legend-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid;
}

.calendar-legend-approved {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.calendar-legend-pending {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

/* ── SweetAlert booking popup ── */
.swal-booking-modal {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 16px !important;
}

.swal-booking-modal .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.swal-booking-modal .swal2-actions {
    margin: 0 !important;
    padding: 1rem 1.25rem 1.25rem !important;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

.swal-booking-modal .swal2-close {
    color: #fff !important;
    opacity: 0.9;
    top: 0.75rem;
    right: 0.75rem;
}

.swal-booking-hero {
    padding: 1.35rem 1.35rem 1.15rem;
    color: #fff;
    text-align: left;
}

.swal-booking-hero-approved {
    background: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%);
}

.swal-booking-hero-pending {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 55%, #fbbf24 100%);
}

.swal-booking-hero-top {
    margin-bottom: 0.65rem;
}

.swal-booking-hero-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    line-height: 1.35;
    padding-right: 1.5rem;
}

.swal-booking-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    line-height: 1.2;
}

.swal-booking-status-lg {
    font-size: 0.9375rem;
    padding: 0.45rem 1rem;
}

.swal-booking-status-approved {
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.swal-booking-status-pending {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.swal-booking-hero .swal-booking-status-approved,
.swal-booking-hero .swal-booking-status-pending {
    background: rgba(255, 255, 255, 0.95);
}

.swal-booking-hero .swal-booking-status-approved { color: #047857; }
.swal-booking-hero .swal-booking-status-pending { color: #b45309; }

.swal-booking-body {
    padding: 1.15rem 1.35rem 1.25rem;
    background: #fff;
    text-align: left;
}

.swal-booking-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.swal-booking-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.swal-booking-row-highlight {
    background: #f8fafc;
    margin: 0 -0.5rem;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    border-bottom: none;
    margin-bottom: 0.25rem;
}

.swal-booking-row-status {
    align-items: center;
    padding-top: 0.85rem;
    margin-top: 0.25rem;
    border-top: 1px dashed #e2e8f0;
    border-bottom: none;
}

.swal-booking-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.swal-booking-value {
    font-size: 0.9375rem;
    color: #1e293b;
    text-align: right;
    line-height: 1.4;
}

.swal-booking-value-strong {
    font-weight: 700;
    color: #1d4ed8;
}

.swal-booking-confirm-btn {
    min-width: 120px;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.fc-day-clickable {
    cursor: pointer;
}

.fc-day-clickable:hover {
    background: var(--primary-light) !important;
}

.fc-day-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.fc-day-disabled:hover {
    background: transparent !important;
}

.fc .fc-highlight {
    background: rgba(59, 130, 246, 0.12);
}

/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-item.action-approved::before { background: var(--success); }
.timeline-item.action-rejected::before { background: var(--danger); }
.timeline-item.action-cancelled::before { background: var(--text-muted); }
.timeline-item.action-room_changed::before { background: #f59e0b; }

/* ── Login ── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.login-card {
    max-width: 420px;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.login-logo-wrap {
    text-align: center;
    margin-bottom: 1rem;
}

.login-logo-img {
    max-width: 100%;
    width: min(320px, 100%);
    height: auto;
    display: inline-block;
}

.login-logo {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* ── Forms ── */
.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--border);
    padding: 0.6rem 0.85rem;
    background: var(--surface);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* ── Equipment checkboxes (book form) ── */
.equipment-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.equipment-check-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0.75rem 0;
}

.equipment-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.9rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.1s;
    user-select: none;
}

.equipment-check-item:hover {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

.equipment-check-item:has(.equipment-check-input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.equipment-check-item:has(.equipment-check-input:focus-visible) {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.equipment-check-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.equipment-check-box {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.1rem;
    border: 2px solid #94a3b8;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 1rem;
    font-weight: 700;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.equipment-check-item:has(.equipment-check-input:checked) .equipment-check-box {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.equipment-check-body {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.equipment-check-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.15s, color 0.15s;
}

.equipment-check-item:has(.equipment-check-input:checked) .equipment-check-icon {
    background: #fff;
    color: var(--primary-dark);
}

.equipment-check-text {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.35;
}

.equipment-check-item:has(.equipment-check-input:checked) .equipment-check-text {
    color: var(--primary-dark);
}

@media (max-width: 575.98px) {
    .equipment-check-grid {
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }
}

.filter-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
}

.site-footer {
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, var(--surface) 100%);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.site-footer-copy {
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.site-footer-dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    color: #475569;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(96, 165, 250, 0.04));
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-footer-dev-badge:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12);
}

.site-footer-dev-badge .bi-stars {
    color: var(--primary);
    font-size: 0.9rem;
}

.site-footer-dev-label {
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.6875rem;
    color: var(--primary-dark);
}

.site-footer-dev-name {
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

.table-bookings th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom-width: 1px;
}

.alert-primary {
    background: var(--primary-light);
    border-color: #bfdbfe;
    color: var(--primary-dark);
}

@media (max-width: 767.98px) {
    .page-header h1 { font-size: 1.25rem; }
    .calendar-wrap,
    #calendarBox { padding: 0; }
    .calendar-wrap .fc-header-toolbar,
    .calendar-wrap .fc-footer-toolbar {
        display: none !important;
    }
    .calendar-wrap #calendarBox.calendar-box-mobile {
        padding: 0.5rem;
        min-height: 320px;
    }
    .calendar-mobile-nav {
        padding: 0.65rem 0.65rem 0;
    }
    .calendar-mobile-title {
        font-size: 0.95rem;
    }
    .calendar-mobile-nav .btn-sm {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }
    .fc .fc-toolbar-chunk {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.25rem;
        width: 100%;
    }
    .fc-toolbar-title { font-size: 0.95rem !important; }
    .fc .fc-button {
        font-size: 0.75rem;
        padding: 0.3rem 0.55rem;
    }
    .fc .fc-daygrid-day-number {
        font-size: 0.85rem;
        padding: 2px 4px;
    }
    .fc .fc-col-header-cell-cushion {
        font-size: 0.75rem;
        padding: 4px 2px;
    }
    .fc .fc-list-empty-cushion {
        padding: 2rem 1rem;
    }
    .user-badge-pill { display: none; }
    .nav-link.nav-pill span:not(.nav-count-badge) { display: none; }
    .nav-link.nav-pill { padding: 0.5rem 0.65rem !important; }
    .approval-actions .btn-action { flex: 1 1 auto; justify-content: center; min-width: calc(50% - 0.25rem); }

    /* Calendar mobile */
    #calendar .filter-bar {
        padding: 0.75rem;
    }

    #calendar .filter-bar .col-md-4,
    #calendar .filter-bar .col-md-8 {
        width: 100%;
    }

    .calendar-legend,
    .calendar-room-legend {
        justify-content: flex-start;
        gap: 0.35rem 0.5rem;
    }

    .calendar-legend-label {
        width: 100%;
        margin-bottom: 0.15rem;
    }

    .calendar-room-legend-item {
        font-size: 0.6875rem;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .calendar-mobile-view-group .btn-outline-primary {
        background: #fff;
        color: var(--primary);
        border-color: rgba(255, 255, 255, 0.6);
    }

    .calendar-mobile-view-group .btn-outline-primary.active {
        background: rgba(255, 255, 255, 0.22);
        color: #fff;
        border-color: #fff;
    }

    .calendar-box-mobile .fc-daygrid-day {
        min-height: 4.5rem;
    }

    .calendar-box-mobile .fc-daygrid-day-frame {
        min-height: 4.5rem;
        padding: 2px;
    }

    .calendar-box-mobile .fc-daygrid-day-events {
        margin-top: 1px;
    }

    .calendar-box-mobile .fc-daygrid-event-harness {
        margin-top: 1px !important;
        margin-bottom: 1px !important;
    }

    .calendar-box-mobile .fc-booking-card {
        min-height: 0;
    }

    .fc-booking-card-mobile {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        padding: 2px 4px 2px 0 !important;
        min-height: 0 !important;
        border-left: none !important;
        border-radius: 4px !important;
        overflow: hidden;
    }

    .fc-booking-card-mobile .fc-booking-mobile-stripe {
        width: 3px;
        align-self: stretch;
        flex-shrink: 0;
        border-radius: 3px 0 0 3px;
        background: var(--room-color, #64748b);
        min-height: 1.5rem;
    }

    .fc-booking-card-mobile .fc-booking-mobile-main {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        line-height: 1.15;
    }

    .fc-booking-mobile-time {
        font-size: 0.5625rem;
        font-weight: 800;
        white-space: nowrap;
        opacity: 0.9;
    }

    .fc-booking-mobile-room {
        font-size: 0.5625rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fc-booking-mobile-status {
        width: 0.45rem;
        height: 0.45rem;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .fc-booking-mobile-status-approved {
        background: #10b981;
        box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35);
    }

    .fc-booking-mobile-status-pending {
        background: #f59e0b;
        box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
    }

    .calendar-box-mobile .fc-more-link {
        font-size: 0.625rem;
        font-weight: 700;
        padding: 0 2px;
    }

    .calendar-box-mobile .fc-list-event-title,
    .calendar-box-mobile .fc-list-event-time {
        font-size: 0.8125rem;
    }

    .fc-booking-list-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.35rem;
        padding: 0.15rem 0;
    }

    .fc-booking-list-time {
        font-size: 0.8125rem;
        font-weight: 700;
        color: var(--primary-dark);
        white-space: nowrap;
    }

    .swal-booking-modal {
        max-width: calc(100vw - 1.5rem) !important;
    }

    .swal-booking-hero-title {
        font-size: 1.05rem;
    }
}
