:root {
    --hotel-navy: #16213e;
    --hotel-blue: #0f6fff;
    --hotel-cyan: #1cc8c8;
    --hotel-surface: #f6f8fc;
}

body { background: var(--hotel-surface); }
body { color: #4b5567; }
#content-wrapper, #content { min-width: 0; }
.text-muted { color: #657084 !important; }
.topbar.navbar-light .navbar-nav .nav-item .nav-link { color: #657084; }
.metric-icon { flex-shrink: 0; }
.table td { vertical-align: middle; }
.table th { white-space: nowrap; }
.card-header.d-flex { flex-wrap: wrap; gap: .5rem; }
.btn, .form-control { border-radius: .45rem; }
.form-control { min-height: 2.6rem; color: #273449; }
.form-control::placeholder { color: #758197; }
.btn { min-height: 2.5rem; }
.btn-sm { min-height: 2.1rem; }
.badge { white-space: normal; line-height: 1.35; }
.badge-warning, .bg-warning.text-white { color: #483608 !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #0f6fff; outline-offset: 3px;
}
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 1200; background: #fff; padding: .8rem; border-radius: .4rem; }
.skip-link:focus { top: 1rem; }
.detail-label { font-size: .8rem; color: #657084; margin-bottom: .25rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.summary-total { background: #edf4ff; border-radius: .6rem; padding: 1rem; color: #183d77; }
.metric-link { color: inherit; text-decoration: none !important; }
.metric-link:hover, .metric-link.is-selected { box-shadow: 0 0 0 2px #416de0 !important; }
.icon-choice { display: block; position: relative; cursor: pointer; margin: 0; }
.icon-choice input { position: absolute; opacity: 0; }
.icon-choice span { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .65rem .25rem; border: 2px solid #e4e9f2; border-radius: .6rem; font-size: .75rem; }
.icon-choice i { font-size: 1.2rem; color: #3464c5; }
.icon-choice input:checked + span { border-color: #3464c5; background: #edf4ff; }
.icon-choice input:focus-visible + span { outline: 3px solid #0f6fff; outline-offset: 2px; }
.sidebar-backdrop { display: none; }
.sidebar .nav-unavailable { opacity: .65; cursor: default; }
.autocomplete-option.is-active { background: #eaf1ff; color: #183d77; }
.autocomplete-status { font-size: .8rem; margin-top: .4rem; color: #657084; }
.calendar-blocked { background: repeating-linear-gradient(135deg, #f4f5f8, #f4f5f8 8px, #e8ebf1 8px, #e8ebf1 10px); }
.calendar-free { display: flex; align-items: center; justify-content: center; min-height: 42px; color: #617084; }
.calendar-free:hover { background: #e9f2ff; text-decoration: none; }
.calendar-booking { color: #fff; }
.calendar-booking.bg-warning { color: #483608 !important; }
.calendar-booking small { display: block; overflow: hidden; text-overflow: ellipsis; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .8rem; }
.calendar-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.reservation-calendar-wrap:focus-visible { outline: 3px solid #0f6fff; outline-offset: -3px; }
@media (min-width: 1200px) { .sticky-summary { position: sticky; top: 1rem; } }
@media (max-width: 767.98px) {
    .container-fluid { padding-left: 1rem; padding-right: 1rem; }
    h1.h3 { font-size: 1.5rem; }
    .topbar { padding-left: .75rem; padding-right: .75rem; }
    #accordionSidebar, #accordionSidebar.toggled { position: fixed; top: 0; bottom: 0; left: 0; width: 14rem !important; z-index: 1060; overflow-y: auto; transform: translateX(-100%); }
    body.hotel-menu-open #accordionSidebar { transform: translateX(0); }
    #accordionSidebar .nav-item .nav-link { width: 14rem; text-align: left; padding: .8rem 1rem; }
    #accordionSidebar .nav-item .nav-link span { display: inline; font-size: .85rem; }
    #accordionSidebar .sidebar-brand-text { display: block; }
    #accordionSidebar .sidebar-heading { text-align: left; }
    #accordionSidebar .nav-item .collapse { position: static; margin: 0 1rem; }
    .sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(20,32,55,.45); border: 0; z-index: 1055; }
    .room-card .badge { max-width: 60%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.bg-gradient-hotel { background: linear-gradient(180deg, var(--hotel-navy) 0%, #253963 100%); }
.sidebar .sidebar-brand { letter-spacing: .02em; }
.sidebar .nav-item .nav-link { padding-top: .8rem; padding-bottom: .8rem; }
.hotel-context-icon { color: var(--hotel-blue); font-size: 1.35rem; }
.avatar-circle {
    align-items: center;
    background: #e8efff;
    border-radius: 50%;
    color: var(--hotel-blue);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}
.metric-card { border: 0; border-radius: .85rem; overflow: hidden; }
.metric-icon {
    align-items: center;
    border-radius: .75rem;
    display: flex;
    font-size: 1.25rem;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}
.room-state {
    border: 1px solid #e3e8f2;
    border-radius: .8rem;
    min-height: 95px;
    padding: 1rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.room-state:hover { box-shadow: 0 .35rem 1rem rgba(24, 40, 72, .08); transform: translateY(-2px); }
.status-dot { border-radius: 50%; display: inline-block; flex: 0 0 auto; height: .85rem; width: .85rem; }
.status-dot-sm { height: .6rem; width: .6rem; }
.room-card { border-radius: .85rem; overflow: visible; transition: transform .15s ease, box-shadow .15s ease; }
.room-card:hover { box-shadow: 0 .55rem 1.4rem rgba(24, 40, 72, .12) !important; transform: translateY(-3px); }
/* The open dropdown must escape its card and stay above neighboring rows. */
.room-card.room-menu-open { z-index: 10; }
.room-card-accent { height: .3rem; width: 100%; border-radius: .85rem .85rem 0 0; }
.room-card > .card-footer:last-child { border-radius: 0 0 .85rem .85rem; }
.room-card .display-4 { font-size: 2.35rem; }
.room-number { overflow-wrap: anywhere; }
.feature-check { align-items: center; border-radius: 50%; display: inline-flex; height: 1.6rem; justify-content: center; width: 1.6rem; }
.feature-check.enabled { background: #d7f5e8; color: #16a06a; }
.feature-check.disabled { background: #f0f1f5; color: #9ca3af; }
.guest-avatar {
    align-items: center;
    background: #e8efff;
    border-radius: .75rem;
    color: var(--hotel-blue);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 800;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}
.guest-avatar-lg { border-radius: 1rem; font-size: 1rem; height: 3.5rem; width: 3.5rem; }
.guest-details dt { color: #858796; font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; }
.guest-details dd { color: #3a3b45; margin-bottom: 1rem; }
.guest-note { background: #f8f9fc; border-radius: .65rem; min-height: 6rem; padding: 1rem; white-space: normal; }
.guest-timeline-item { border-left: 2px solid #dbe4f6; margin-left: .3rem; padding: 0 0 1rem 1rem; position: relative; }
.guest-timeline-item::before { background: var(--hotel-blue); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #dbe4f6; content: ''; height: .7rem; left: -.42rem; position: absolute; top: .2rem; width: .7rem; }
.guest-timeline-item:last-child { padding-bottom: 0; }
.reservation-calendar-wrap { overflow-x: auto; }
.reservation-calendar { min-width: 1550px; table-layout: fixed; }
.reservation-calendar th, .reservation-calendar td { border: 1px solid #edf0f6; height: 58px; min-width: 96px; padding: .35rem; vertical-align: middle; }
.reservation-calendar thead th { background: #f8f9fc; }
.reservation-calendar .reservation-room-heading { background: #fff; left: 0; min-width: 150px; position: sticky; width: 150px; z-index: 2; }
.reservation-calendar thead .reservation-room-heading { background: #f8f9fc; z-index: 3; }
.calendar-day-cell.is-today, .reservation-calendar th.is-today { background: #f3f7ff; }
.calendar-booking { border-radius: .35rem; display: block; font-size: .65rem; font-weight: 700; overflow: hidden; padding: .35rem; text-overflow: ellipsis; white-space: nowrap; }
.reservation-room-row { background: #fbfcff; border-color: #e6eaf2 !important; }
.login-shell { min-height: 100vh; background: linear-gradient(135deg, #101a34 0%, #244e87 55%, #1cc8c8 140%); }
.login-card { border: 0; border-radius: 1.2rem; overflow: hidden; }
.login-brand-panel { background: linear-gradient(145deg, rgba(15,111,255,.92), rgba(22,33,62,.98)); color: #fff; }
.login-brand-mark {
    align-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 1rem;
    display: inline-flex;
    font-size: 2rem;
    height: 4.5rem;
    justify-content: center;
    width: 4.5rem;
}
.autocomplete-results {
    background: #fff;
    border: 1px solid #d1d3e2;
    border-radius: 0 0 .35rem .35rem;
    left: 0;
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    z-index: 1050;
}

.autocomplete-option {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #eaecf4;
    color: #3a3b45;
    display: block;
    padding: .75rem 1rem;
    text-align: left;
    width: 100%;
}

.autocomplete-option:last-child {
    border-bottom: 0;
}

.autocomplete-option:hover,
.autocomplete-option:focus {
    background: #f8f9fc;
    color: #4e73df;
    outline: 0;
}

.autocomplete-option strong,
.autocomplete-option small {
    display: block;
}

.autocomplete-option small,
.autocomplete-empty {
    color: #858796;
    font-size: .8rem;
}

.autocomplete-empty {
    padding: 1rem;
}

.print-only { display: none; }

.audit-json {
    background: #f8f9fc;
    border: 1px solid #eaecf4;
    border-radius: .35rem;
    color: #3a3b45;
    font-size: .8rem;
    max-height: 32rem;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
}

@media print {
    #accordionSidebar,
    .topbar,
    .sticky-footer,
    .scroll-to-top,
    .no-print {
        display: none !important;
    }

    #content-wrapper,
    #content,
    body,
    #wrapper {
        background: #fff !important;
        margin: 0 !important;
        min-height: auto !important;
        width: 100% !important;
    }

    .container-fluid {
        max-width: none !important;
        padding: 0 !important;
    }

    .print-only { display: block !important; }
    .card { box-shadow: none !important; break-inside: avoid; }
    .table { font-size: .78rem; }
    a { color: #3a3b45 !important; text-decoration: none !important; }
}
