/*
 * Admin panel shell: topbar, collapsible sidebar, content area and footer.
 * Colours and surfaces are refined in resources/views/admin/includes/theme*.blade.php.
 */
:root {
    --admin-topbar-height: 70px;
    --admin-sidebar-width: 250px;
    --admin-sidebar-width-sm: 70px;
    --admin-gutter: 24px;
    --bs-body-font-size: .9rem;
}

body {
    font-size: var(--bs-body-font-size);
    overflow-x: hidden;
}

/* Utilities used by the admin views */
.font-size-14 { font-size: 14px !important; }
.font-size-15 { font-size: 15px !important; }
.font-size-16 { font-size: 16px !important; }
.w-sm { min-width: 95px; }
.dropdown-menu-lg { width: 320px; }

/* Tinted buttons: .btn-soft-{primary|success|info|warning|danger} */
.btn-soft-primary { --soft-rgb: var(--bs-primary-rgb); }
.btn-soft-success { --soft-rgb: var(--bs-success-rgb); }
.btn-soft-info { --soft-rgb: var(--bs-info-rgb); }
.btn-soft-warning { --soft-rgb: var(--bs-warning-rgb); }
.btn-soft-danger { --soft-rgb: var(--bs-danger-rgb); }
/* page toolbars (.px-toolbar) keep their own neutral style from theme-override */
.btn[class*="btn-soft-"]:not(.px-toolbar .btn, .tool-box .btn) {
    background: rgba(var(--soft-rgb), .16) !important;
    border-color: transparent !important;
    color: rgb(var(--soft-rgb)) !important;
    box-shadow: none !important;
}
.btn[class*="btn-soft-"]:not(.px-toolbar .btn, .tool-box .btn):hover,
.btn[class*="btn-soft-"]:not(.px-toolbar .btn, .tool-box .btn):focus-visible {
    background: rgb(var(--soft-rgb)) !important;
    color: #fff !important;
}

/* Layout */
#layout-wrapper {
    min-height: 100vh;
}

.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: var(--admin-sidebar-width);
    transition: margin-left .2s ease;
}

.page-content {
    flex: 1 0 auto;
    padding: calc(var(--admin-topbar-height) + var(--admin-gutter)) calc(var(--admin-gutter) / 2) var(--admin-gutter);
}

.page-title-box {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: var(--admin-gutter);
}

.page-title-box h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer {
    padding: 20px calc(var(--admin-gutter) / 2);
}

.card {
    margin-bottom: var(--admin-gutter);
}

/* Topbar */
#page-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--admin-sidebar-width);
    z-index: 1002;
    transition: left .2s ease;
}

.navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--admin-topbar-height);
    padding: 0 12px 0 0;
}

.navbar-header .navbar-brand-box {
    display: none;
}

.header-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: var(--admin-topbar-height);
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    font-size: 20px;
}

.header-item > span,
.header-item > .font-size-15 {
    font-size: 15px;
}

.header-profile-user {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.noti-icon {
    position: relative;
}

.noti-icon .badge {
    position: absolute;
    top: 14px;
    right: 4px;
    font-size: 10px;
    line-height: 1;
}

.notification-item {
    padding: 12px 0;
}

/* Logo */
.navbar-brand-box {
    display: flex;
    align-items: center;
    width: var(--admin-sidebar-width);
    height: var(--admin-topbar-height);
    padding: 0 1.5rem;
}

.logo {
    display: block;
    width: 100%;
    line-height: var(--admin-topbar-height);
}

.logo-light { display: none; }
.logo .logo-sm { display: none; }
.logo .logo-lg { display: block; }

/* Sidebar */
.vertical-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    width: var(--admin-sidebar-width);
    transition: width .2s ease, transform .2s ease;
}

.vertical-menu > .vertical-menu-btn {
    display: none;
}

.sidebar-menu-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

#sidebar-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#sidebar-menu .menu-title {
    padding: 12px 20px;
    pointer-events: none;
    text-transform: uppercase;
}

#sidebar-menu ul li a {
    position: relative;
    display: block;
    padding: .6rem 1.2rem;
    font-size: .925rem;
    white-space: nowrap;
}

#sidebar-menu ul li a i {
    display: inline-block;
    min-width: 1.75rem;
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

#sidebar-menu ul li a span {
    vertical-align: middle;
}

#sidebar-menu .has-arrow {
    padding-right: 2.25rem;
}

#sidebar-menu .has-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.1rem;
    width: .45em;
    height: .45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
}

#sidebar-menu li.mm-active > .has-arrow::after {
    transform: translateY(-30%) rotate(-135deg);
}

#sidebar-menu ul.sub-menu {
    display: none;
    padding: 0;
}

#sidebar-menu li.mm-active > ul.sub-menu {
    display: block;
}

/* animated open / close (admin.js slide()) */
#sidebar-menu ul.sub-menu.mm-sliding {
    overflow: hidden;
    transition: height .28s cubic-bezier(.4, 0, .2, 1);
}

#sidebar-menu li.mm-closing > .has-arrow::after {
    transform: translateY(-70%) rotate(45deg);
}

#sidebar-menu li.mm-opening > ul.sub-menu > li {
    animation: navItemIn .3s cubic-bezier(.2, .7, .2, 1) both;
}
#sidebar-menu li.mm-opening > ul.sub-menu > li:nth-child(2) { animation-delay: .03s; }
#sidebar-menu li.mm-opening > ul.sub-menu > li:nth-child(3) { animation-delay: .06s; }
#sidebar-menu li.mm-opening > ul.sub-menu > li:nth-child(4) { animation-delay: .09s; }
#sidebar-menu li.mm-opening > ul.sub-menu > li:nth-child(5) { animation-delay: .12s; }
#sidebar-menu li.mm-opening > ul.sub-menu > li:nth-child(n+6) { animation-delay: .15s; }

#sidebar-menu li.mm-closing > ul.sub-menu > li {
    transition: opacity .18s ease;
    opacity: 0;
}

@keyframes navItemIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: none; }
}

#sidebar-menu ul.sub-menu li a {
    padding: .45rem 1.5rem .45rem 3.2rem;
    font-size: .875rem;
}

#sidebar-menu ul.sub-menu ul.sub-menu li a {
    padding-left: 4.2rem;
    font-size: .85rem;
}

/* Collapsed (icon-only) sidebar on desktop */
@media (min-width: 992px) {
    body[data-sidebar-size="sm"] .main-content { margin-left: var(--admin-sidebar-width-sm); }
    body[data-sidebar-size="sm"] #page-topbar { left: var(--admin-sidebar-width-sm); }
    body[data-sidebar-size="sm"] .vertical-menu { width: var(--admin-sidebar-width-sm); }
    body[data-sidebar-size="sm"] .vertical-menu .navbar-brand-box { width: var(--admin-sidebar-width-sm); padding: 0; justify-content: center; }
    body[data-sidebar-size="sm"] .vertical-menu .logo { text-align: center; }
    body[data-sidebar-size="sm"] .vertical-menu .logo .logo-lg { display: none; }
    body[data-sidebar-size="sm"] .vertical-menu .logo .logo-sm { display: block; }
    body[data-sidebar-size="sm"] .sidebar-menu-scroll { overflow: visible; }
    body[data-sidebar-size="sm"] #sidebar-menu { padding-left: 0; padding-right: 0; }
    body[data-sidebar-size="sm"] #sidebar-menu .menu-title,
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li > a span,
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li > a.has-arrow::after,
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li > ul.sub-menu {
        display: none;
    }
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li { position: relative; }
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li > a {
        padding: .9rem 0;
        margin-left: 10px;
        margin-right: 10px;
        text-align: center;
    }
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li > a i { min-width: 0; font-size: 1.35rem; }

    /* Hover fly-out: show the label next to the icon and the sub-menu below it */
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li:hover > a {
        position: relative;
        z-index: 2;
        width: calc(var(--admin-sidebar-width-sm) + 190px);
        text-align: left;
        padding-left: 14px;
    }
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li:hover > a span {
        display: inline;
        padding-left: 20px;
    }
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li:hover > ul.sub-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: calc(var(--admin-sidebar-width-sm) - 10px);
        width: 200px;
        padding: 6px 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 30px rgba(20, 30, 60, .25);
    }
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li > ul.sub-menu li a { padding-left: 1.5rem; }
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li > ul.sub-menu ul.sub-menu li a { padding-left: 2.5rem; }
    body[data-sidebar-size="sm"] #sidebar-menu > ul > li > ul.sub-menu li:hover > ul.sub-menu { display: block; }
}

/* Mobile and tablet: sidebar slides in over the content */
@media (max-width: 991.98px) {
    .main-content { margin-left: 0; }
    #page-topbar { left: 0; }
    .navbar-header .navbar-brand-box {
        display: flex;
        width: auto;
        padding: 0 8px 0 12px;
    }
    .navbar-header .navbar-brand-box .logo .logo-lg { display: none; }
    .navbar-header .navbar-brand-box .logo .logo-sm { display: block; }
    .vertical-menu {
        transform: translateX(-100%);
        box-shadow: none;
    }
    body.sidebar-enable .vertical-menu {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(20, 30, 60, .3);
    }
    body.sidebar-enable::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1002;
        background: rgba(15, 23, 42, .45);
    }
}

@media (max-width: 575.98px) {
    .dropdown-menu-lg { width: min(320px, calc(100vw - 24px)); }
}

@media (prefers-reduced-motion: reduce) {
    .main-content, #page-topbar, .vertical-menu, #sidebar-menu .has-arrow::after, #sidebar-menu ul.sub-menu.mm-sliding { transition: none; }
    #sidebar-menu li.mm-opening > ul.sub-menu > li { animation: none; }
}

@media print {
    #page-topbar, .vertical-menu, .footer { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-content { padding: 0 !important; }
}

/* pages without the side menu (main-layout noNav, e.g. the first-sign-in profile setup): the logo goes in the top bar */
body.px-no-nav #page-topbar { left: 0 !important; }
body.px-no-nav .vertical-menu-btn, body.px-no-nav .vertical-menu { display: none !important; }
body.px-no-nav .navbar-header .navbar-brand-box { display: flex; width: auto; padding: 0 1rem 0 clamp(.75rem, 2vw, 1.75rem); border-bottom: 0; background: transparent; }
body.px-no-nav .navbar-header .navbar-brand-box .logo { line-height: 1; }
body.px-no-nav .navbar-header .navbar-brand-box .admin-logo-lg { max-height: 40px; width: auto; }
body.px-no-nav .main-content { margin-left: 0 !important; }

/* booking forms: the price check result (js/panel/admin/reservationForm.js) - total, free count, free rooms to tap */
.rq-card { border: 1px solid var(--bs-border-color); border-radius: 14px; padding: .9rem 1rem; background: var(--bs-body-bg); }
.rq-card.rq-loading { display: grid; place-items: center; min-height: 64px; color: var(--bs-primary); }
.rq-card.rq-note { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); border-style: dashed; }
.rq-card.rq-note.danger { color: var(--bs-danger); }
.rq-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.rq-price { display: flex; flex-direction: column; min-width: 0; }
.rq-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bs-secondary-color); }
.rq-price b { font-size: 1.45rem; line-height: 1.2; letter-spacing: -.01em; color: var(--bs-emphasis-color); }
.rq-price small { color: var(--bs-secondary-color); font-size: .78rem; margin-top: .15rem; }
.rq-price.rq-error { flex-direction: row; align-items: center; gap: .4rem; color: var(--bs-danger); font-size: .88rem; }
.rq-pill { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.rq-pill.good { background: rgba(var(--bs-success-rgb), .12); color: var(--bs-success); }
.rq-pill.danger { background: rgba(var(--bs-danger-rgb), .12); color: var(--bs-danger); }
.rq-warn { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .45rem .65rem; border-radius: 10px; font-size: .82rem; background: rgba(var(--bs-danger-rgb), .08); color: var(--bs-danger); }
.rq-rooms-head { display: flex; align-items: baseline; gap: .5rem; margin: .85rem 0 .45rem; padding-top: .75rem; border-top: 1px solid var(--bs-border-color); }
.rq-rooms-head span { font-weight: 600; font-size: .85rem; }
.rq-rooms-head small { color: var(--bs-secondary-color); font-size: .76rem; }
.rq-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .45rem; }
.rq-room { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .5rem .6rem; border-radius: 10px; text-align: left;
    border: 1.5px solid var(--bs-border-color); background: var(--bs-body-bg); color: var(--bs-body-color); transition: border-color .15s, background .15s, transform .1s; }
.rq-room b { font-size: 1rem; line-height: 1.15; }
.rq-room small { font-size: .7rem; color: var(--bs-secondary-color); min-height: 1em; }
.rq-room .rq-tags { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .15rem; }
.rq-room .rq-tags em { font-style: normal; font-size: .62rem; padding: 0 .3rem; border-radius: 4px; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.rq-room .rq-tick { position: absolute; top: .3rem; right: .3rem; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem;
    background: var(--bs-primary); color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
button.rq-room { cursor: pointer; }
button.rq-room:hover { border-color: rgba(var(--bs-primary-rgb), .55); background: rgba(var(--bs-primary-rgb), .04); }
button.rq-room:active { transform: scale(.97); }
button.rq-room:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.rq-room.chosen { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .08); }
.rq-room.chosen .rq-tick { opacity: 1; transform: scale(1); }
.rq-room.off { opacity: .45; cursor: not-allowed; }
.rq-empty { margin-top: .75rem; font-size: .85rem; color: var(--bs-secondary-color); }
.form-select.rq-flash { animation: rqFlash .7s ease; }
@keyframes rqFlash { 0% { box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), .45); } 100% { box-shadow: 0 0 0 8px rgba(var(--bs-primary-rgb), 0); } }
@media (prefers-reduced-motion: reduce) { .rq-room, .rq-room .rq-tick { transition: none; } .form-select.rq-flash { animation: none; } }

/* searchable select (js/panel/admin/searchSelect.js): the select stays hidden in the form, this is what people use */
.px-ss-native { display: none !important; }
.px-ss { position: relative; }
.px-ss-toggle { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-ss-toggle.empty { color: var(--bs-secondary-color); }
.px-ss.open .px-ss-toggle { border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15); }
.px-ss-panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); border: 1px solid var(--bs-border-color); border-radius: 12px;
    background: var(--bs-body-bg); box-shadow: 0 12px 32px rgba(0, 0, 0, .14); overflow: hidden; }
.px-ss-search-wrap { position: relative; padding: .5rem; border-bottom: 1px solid var(--bs-border-color); }
.px-ss-search-wrap i { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); pointer-events: none; }
.px-ss-search { width: 100%; height: 36px; padding: 0 .7rem 0 2rem; border: 1px solid var(--bs-border-color); border-radius: 8px; background: var(--bs-tertiary-bg); color: var(--bs-body-color); outline: none; font-size: .9rem; }
.px-ss-search:focus { border-color: var(--bs-primary); background: var(--bs-body-bg); }
.px-ss-list { max-height: 240px; overflow-y: auto; padding: .3rem; }
.px-ss-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .65rem; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.px-ss-item.active { background: rgba(var(--bs-primary-rgb), .1); }
.px-ss-item.chosen { font-weight: 600; color: var(--bs-primary); }
.px-ss-empty { padding: .8rem; text-align: center; color: var(--bs-secondary-color); font-size: .88rem; }

/* walk-in: no room list; the system gives the best free room unless one is tapped in the price check */
.reservation-room-note { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; padding: .6rem .8rem; border-radius: 10px; font-size: .85rem;
    background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); border: 1px dashed var(--bs-border-color); }
.reservation-room-note i { font-size: 1.1rem; color: var(--bs-primary); }
.reservation-room-note.chosen { background: rgba(var(--bs-primary-rgb), .08); border: 1px solid rgba(var(--bs-primary-rgb), .35); color: var(--bs-body-color); }
.reservation-room-note.chosen b { font-size: 1rem; }
.reservation-room-note .reservation-room-clear { margin-left: auto; font-size: .8rem; }
.reservation-room-note.rq-flash { animation: rqFlash .7s ease; }

/* guest entry of a booking: the booked guest and the stay, read only */
.walkin-booking-guest { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: 12px; background: rgba(var(--bs-primary-rgb), .07); }
.walkin-booking-guest > i { font-size: 2.2rem; color: var(--bs-primary); }
.walkin-booking-guest b { font-size: 1.05rem; }
.walkin-booking-guest small { display: block; color: var(--bs-secondary-color); font-size: .8rem; }
.walkin-booking-stay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .9rem; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--bs-border-color); }
.walkin-booking-stay > div { min-width: 0; }
.walkin-booking-stay .full { grid-column: 1 / -1; }
.walkin-booking-stay span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); }
.walkin-booking-stay b { font-size: .92rem; overflow-wrap: anywhere; }
.walkin-booking-stay small { color: var(--bs-secondary-color); }
@media (max-width: 480px) { .walkin-booking-stay { grid-template-columns: 1fr; } }

/* the owner's report factors (Reports > Factors) */
.rf-group { padding: 0; overflow: hidden; }
.rf-group-head { padding: .7rem 1rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); }
.rf-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(160px, 1.2fr) minmax(150px, 1fr) auto; gap: .5rem 1rem; align-items: center; padding: .7rem 1rem; border-top: 1px solid var(--bs-border-color); }
.rf-group-head + .rf-row { border-top: 0; }
.rf-now .rf-value { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-weight: 700; background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); margin-right: .35rem; }
.rf-actions { display: flex; gap: .35rem; justify-content: flex-end; }
.rf-history { padding: 0 1rem .7rem; }
.rf-history .table { font-size: .85rem; }
@media (max-width: 768px) {
    .rf-row { grid-template-columns: 1fr auto; }
    .rf-now, .rf-example { grid-column: 1 / 2; }
    .rf-actions { grid-row: 1; grid-column: 2; }
}

/* report sections (check-in / check-out, room status...): heading and subtotal rows */
.table tr.rp-section th { background: var(--bs-tertiary-bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding-top: .55rem; }
.table tr.rp-subtotal td { font-weight: 600; border-top: 1px solid var(--bs-border-color); }

/* report tables: the table scrolls inside the card, headings stay on top and the totals row stays at the bottom */
.rp-scroll { max-height: calc(100vh - 260px); min-height: 160px; overflow: auto; }
.modal .rp-scroll { max-height: calc(100vh - 330px); }
.rp-table thead th { position: sticky; top: 0; z-index: 3; background: var(--bs-card-bg, var(--bs-body-bg)); box-shadow: inset 0 -1px 0 var(--bs-border-color); }
.rp-table tfoot th { position: sticky; bottom: 0; z-index: 3; background: var(--bs-card-bg, var(--bs-body-bg)); box-shadow: inset 0 2px 0 var(--bs-border-color), 0 -6px 12px rgba(0, 0, 0, .06); font-weight: 700; }

/* step-by-step new booking and new group (#newBooking, #newGroup): numbered steps, big − / + buttons, room cards, the summary */
.nb { display: grid; gap: 1rem; }
.nb-step { margin-bottom: 0; }
.nb-step-title { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; font-weight: 700; }
.nb-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bs-primary); color: #fff; font-size: .95rem; flex: none; }
.nb-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.nb-stepper { display: flex; align-items: stretch; max-width: 190px; }
.nb-stepper .form-control { text-align: center; border-radius: 0; font-weight: 600; font-size: 1.05rem; -moz-appearance: textfield; }
.nb-stepper .form-control::-webkit-outer-spin-button, .nb-stepper .form-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nb-step-btn { min-width: 46px; font-size: 1.3rem; line-height: 1; font-weight: 700; border: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); }
.nb-step-btn:first-child { border-radius: 10px 0 0 10px; }
.nb-step-btn:last-child { border-radius: 0 10px 10px 0; }
.nb-step-btn:hover:not(:disabled) { background: var(--bs-primary); color: #fff; border-color: var(--bs-primary); }
.nb-stepper.sm { max-width: 150px; }
.nb-stepper.sm .nb-step-btn { min-width: 38px; font-size: 1.1rem; }
.nb-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem; }
.nb-room { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; text-align: left; padding: .9rem 1rem; border: 2px solid var(--bs-border-color); border-radius: 14px; background: var(--bs-body-bg); color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.nb-room:hover:not(:disabled) { border-color: var(--bs-primary); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.nb-room.chosen { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle, var(--bs-tertiary-bg)); }
.nb-room.off { opacity: .55; cursor: not-allowed; }
.nb-room-name { font-weight: 700; font-size: 1.02rem; }
.nb-room-size { font-size: .82rem; color: var(--bs-secondary-color); }
.nb-room-price b { font-size: 1.1rem; }
.nb-room-price small { display: block; color: var(--bs-secondary-color); }
.nb-room-state { font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; }
.nb-room-state.good, .ng-row-free.good { color: var(--bs-success); background: var(--bs-success-bg-subtle, transparent); }
.nb-room-state.bad, .ng-row-free.bad { color: var(--bs-danger); background: var(--bs-danger-bg-subtle, transparent); }
.nb-room-tick { display: none; position: absolute; top: .6rem; right: .7rem; font-size: .78rem; font-weight: 700; color: var(--bs-primary); }
.nb-room.chosen .nb-room-tick { display: inline-flex; align-items: center; gap: .2rem; }
.nb-note { padding: .9rem 1rem; border: 1px dashed var(--bs-border-color); border-radius: 12px; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); }
.nb-note.bad { color: var(--bs-danger); }
.nb-none { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 10px; background: var(--bs-tertiary-bg); }
.nb-summary { display: grid; gap: .35rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); font-size: .98rem; }
.nb-summary.ready { border-color: var(--bs-success); }
.nb-summary i { color: var(--bs-primary); }
.nb-sum-guest { font-size: 1.05rem; }
.nb-sum-total { font-size: 1.15rem; }
.nb-sum-missing { color: var(--bs-danger); font-weight: 600; }
.nb-options summary { cursor: pointer; font-weight: 600; color: var(--bs-primary); }
.nb-save-hint { color: var(--bs-secondary-color); }
.ng-rooms { display: grid; gap: .6rem; }
.ng-row { display: grid; grid-template-columns: minmax(160px, 1fr) auto auto auto; align-items: center; gap: .75rem 1rem; padding: .7rem .9rem; border: 2px solid var(--bs-border-color); border-radius: 12px; }
.ng-row.chosen { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle, var(--bs-tertiary-bg)); }
.ng-row.off { opacity: .55; }
.ng-row-name small { display: block; color: var(--bs-secondary-color); }
.ng-row-free { font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.ng-row-field { display: flex; flex-direction: column; gap: .2rem; margin: 0; font-size: .78rem; color: var(--bs-secondary-color); }
.ng-total { margin-top: .8rem; padding: .8rem 1rem; border-radius: 12px; background: var(--bs-tertiary-bg); }
.ng-total.ready { border: 1px solid var(--bs-success); }
.ng-choice { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem .9rem; border: 2px solid var(--bs-border-color); border-radius: 12px; cursor: pointer; height: 100%; margin: 0; }
.ng-choice:has(input:checked) { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle, var(--bs-tertiary-bg)); }
.ng-choice small { display: block; color: var(--bs-secondary-color); }
@media (max-width: 767.98px) {
    .ng-row { grid-template-columns: 1fr auto; }
    .ng-row-field { grid-column: span 1; }
    .nb-stepper { max-width: none; }
}
