/* Theme tokens: css/theme.css (load before this file) */

body.booking-body {
    background-color: var(--booking-bg);
    color: var(--booking-text);
}

.booking-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.booking-topbar {
    background: var(--hms-bg);
    color: var(--hms-text-muted);
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--hms-border-soft);
}

.booking-topbar__link {
    color: var(--hms-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.booking-topbar__link:hover {
    color: var(--hms-accent);
}

.booking-topbar__support {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
}

.booking-topbar__sep {
    margin: 0 0.35rem;
    opacity: 0.6;
}

.booking-nav {
    background: var(--hms-primary);
    border-bottom: 1px solid color-mix(in srgb, var(--hms-primary) 75%, #000);
    box-shadow: 0 2px 10px rgba(var(--theme-primary-rgb), 0.28);
    --booking-nav-logo-height: 3.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.booking-nav > .container {
    align-items: center;
}

.booking-nav .booking-main-links .nav-link {
    font-weight: 500;
    padding: 0.65rem 1rem !important;
    border-radius: 8px;
    color: var(--hms-on-primary) !important;
    opacity: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.booking-nav .booking-main-links {
    gap: 0.35rem;
}

.booking-nav .navbar-collapse > .navbar-nav.ms-lg-auto {
    gap: 0.65rem;
}

.booking-nav .booking-main-links .nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--hms-on-primary) !important;
}

.booking-nav .booking-main-links .nav-link:focus,
.booking-nav .booking-main-links .nav-link.active,
.booking-nav .booking-main-links .show > .nav-link {
    color: var(--hms-on-primary) !important;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.booking-nav .navbar-text {
    color: color-mix(in srgb, var(--hms-on-primary) 88%, transparent) !important;
}

.booking-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.booking-nav .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.brand-logo-orb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hms-accent);
    color: var(--hms-on-accent);
    box-shadow: 0 2px 8px var(--hms-glow);
    position: relative;
    overflow: hidden;
}

.brand-logo-orb::after {
    content: "";
    position: absolute;
    inset: -40% -10%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.58) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: logoShine 3.2s linear infinite;
}

.brand-logo-orb i {
    position: relative;
    z-index: 1;
}

.brand-logo-image {
    display: block;
    flex-shrink: 0;
}

.booking-nav .navbar-brand.brand-logo-wrap {
    margin-right: 0;
    max-width: calc(100% - 3.5rem);
}

.booking-nav .brand-logo-wrap--with-image {
    gap: 0.65rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

@media (min-width: 992px) {
    .booking-nav .navbar-brand.brand-logo-wrap {
        margin-right: 2.25rem;
        padding-right: 0.75rem;
    }

    .booking-nav .navbar-collapse .booking-main-links {
        margin-left: 0.25rem;
        padding-left: 1.25rem;
        border-left: 1px solid rgba(255, 255, 255, 0.22);
        gap: 0.5rem;
    }

    .booking-nav .navbar-collapse > .navbar-nav.ms-lg-auto {
        gap: 0.85rem;
        margin-left: 1.75rem !important;
        padding-left: 1.25rem;
        border-left: 1px solid rgba(255, 255, 255, 0.22);
    }
}

.booking-nav .brand-logo-wrap--with-image .brand-logo-image {
    width: auto;
    height: var(--booking-nav-logo-height, 3.75rem);
    max-width: min(360px, 54vw);
    object-fit: contain;
    object-position: left center;
    background: transparent;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.booking-nav .brand-logo-wrap--with-image .brand-logo-text {
    display: none;
}

.footer-brand .brand-logo-image {
    width: auto;
    height: 48px;
    max-width: min(260px, 70vw);
    object-fit: contain;
    object-position: left center;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.brand-logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    color: var(--hms-accent);
}

.booking-nav .brand-logo-text {
    color: var(--hms-on-primary);
}

.booking-nav .brand-logo-text strong {
    color: var(--hms-on-primary);
}

.booking-nav .brand-logo-text small {
    color: color-mix(in srgb, var(--hms-on-primary) 88%, transparent);
}

.booking-nav .brand-logo-orb {
    background: #ffffff;
    color: var(--hms-accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.brand-logo-text strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.booking-nav .brand-logo-text strong {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.brand-logo-text small {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--hms-text-muted);
    margin-top: 0.2rem;
    line-height: 1.25;
    max-width: 16rem;
    white-space: normal;
}

.brand-logo-wrap:hover .brand-logo-orb {
    transform: translateY(-1px) scale(1.02);
    transition: transform 0.18s ease;
}

@keyframes logoShine {
    100% { transform: translateX(150%); }
}

/* Hero + search (restored) */
.hero-wrap {
    background: var(--hms-surface);
    color: var(--hms-text);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--hms-border);
    box-shadow: 0 6px 20px var(--hms-shadow);
}

.hero-wrap h1,
.hero-wrap .display-6 {
    color: var(--hms-text);
    font-weight: 600;
}

/* Home hero search — keep modest radius (never 999px; tall mobile stacks look like a circle) */
.search-panel {
    background: var(--hms-surface);
    border: 1px solid var(--hms-border);
    border-radius: var(--hms-radius-md, 8px);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px var(--hms-shadow), 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 992px) {
    .search-panel {
        border-radius: var(--hms-radius-lg, 12px);
        padding: 0.75rem 1rem;
    }
}

.search-panel:focus-within {
    border-color: var(--hms-accent);
    box-shadow: 0 0 0 3px var(--hms-focus-ring);
}

.search-panel__form {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
    margin-left: 0;
    margin-right: 0;
}

.search-panel__form > [class*="col-"] {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.search-panel .form-control,
.search-panel .form-select {
    border: 1px solid var(--hms-border-soft);
    border-radius: 6px;
    box-shadow: none;
    background-color: var(--hms-bg);
}

.search-panel .form-control:focus,
.search-panel .form-select:focus {
    border-color: var(--hms-accent-light);
    box-shadow: 0 0 0 0.15rem var(--hms-focus-ring);
    background-color: var(--hms-surface);
}

/* Why choose us */
.why-pms__heading {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.why-pms__brand {
    color: var(--hms-accent);
    font-weight: 800;
}

.why-pms-card {
    background: var(--hms-surface);
    border: 1px solid var(--hms-border);
    border-radius: 12px;
    padding: 1.15rem 1.1rem 1.25rem;
    height: 100%;
    cursor: default;
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.05);
    transition:
        opacity 0.45s ease var(--delay, 0ms),
        transform 0.45s ease var(--delay, 0ms),
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .why-pms-card.why-pms-card--animate {
        opacity: 0;
        transform: translateY(14px);
    }

    .why-pms-card.why-pms-card--animate.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-pms-card:hover,
.why-pms-card:focus-visible {
    background: #fff;
    border-color: var(--hms-accent-light);
    box-shadow: 0 14px 32px var(--hms-glow);
    transform: translateY(-4px);
    outline: none;
}

.why-pms-card__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    margin-bottom: 0.85rem;
    position: relative;
    transition: transform 0.25s ease;
}

.why-pms-card:hover .why-pms-card__icon {
    transform: scale(1.08) rotate(-3deg);
}

.why-pms-card__icon--flex,
.why-pms-card__icon--reviews,
.why-pms-card__icon--global,
.why-pms-card__icon--support {
    background: var(--hms-icon-bg);
    color: var(--hms-accent);
}

.why-pms-card__badge-icon {
    position: absolute;
    right: -0.2rem;
    bottom: -0.15rem;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 50%;
    padding: 0.1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.why-pms-card__check {
    position: absolute;
    right: -0.25rem;
    bottom: -0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--hms-accent);
    color: #fff;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.why-pms-card__title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    color: #1a1a1a;
}

.why-pms-card__title strong {
    font-weight: 800;
}

.why-pms-mark {
    background: transparent;
    padding: 0;
    font-weight: 800;
    color: inherit;
}

.why-pms-card__text {
    font-size: 0.84rem;
    color: #5a6472;
    margin: 0;
}

@media (max-width: 991.98px) {
    .why-pms__brand {
        display: inline-block;
        margin-top: 0.35rem;
    }
}

.room-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(var(--theme-primary-rgb), 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px var(--hms-glow);
}

.rooms-carousel {
    position: relative;
    padding: 0 2.25rem;
}

.rooms-carousel__control {
    width: 2.1rem;
    opacity: 1;
}

.rooms-carousel__control .carousel-control-prev-icon,
.rooms-carousel__control .carousel-control-next-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background-color: rgba(var(--theme-primary-rgb), 0.92);
    background-size: 52% 52%;
}

.rooms-carousel__control:hover .carousel-control-prev-icon,
.rooms-carousel__control:hover .carousel-control-next-icon {
    background-color: var(--hms-accent);
}

.property-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(var(--theme-primary-rgb), 0.08);
}

.info-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(var(--theme-primary-rgb), 0.07);
}

.section-image {
    height: 160px;
    object-fit: cover;
    background: var(--hms-tint-primary);
    display: block;
}

.room-card__thumb-link {
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    color: inherit;
    text-decoration: none;
}

.room-card__thumb-link:hover,
.room-card__thumb-link:focus-visible {
    color: inherit;
}

.room-card__thumb-link .section-image {
    transition: transform 0.25s ease;
}

.room-card__thumb-link:hover .section-image,
.room-card__thumb-link:focus-visible .section-image {
    transform: scale(1.04);
}

.destination-tile {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 200px;
}

.destination-tile img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    background: var(--hms-tint-primary);
    display: block;
}

.destination-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
    color: #fff;
    padding: 1rem;
}

.room-card .price {
    color: var(--booking-blue);
    font-weight: 700;
}

.room-badge {
    background: #ccfbf1;
    color: var(--hms-primary);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

.room-stars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.room-stars .stars {
    color: #f59e0b;
    letter-spacing: 0.06rem;
    line-height: 1;
}

.room-stars .rating-text {
    color: #475569;
    font-size: 0.84rem;
    font-weight: 600;
}

.primary-cta {
    background: var(--hms-button);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.primary-cta:hover,
.primary-cta:focus {
    background: var(--hms-button-dark);
    border: none;
    color: var(--hms-on-accent);
    transform: scale(1.02);
    box-shadow: 0 4px 14px var(--hms-button-glow);
}

.btn-hms-highlight {
    background: var(--hms-button);
    border: none;
    border-radius: 8px;
    color: var(--hms-on-accent);
    font-weight: 600;
    transition: background 0.18s ease, transform 0.15s ease;
}

.btn-hms-highlight:hover,
.btn-hms-highlight:focus {
    background: var(--hms-button-dark);
    color: var(--hms-on-accent);
    transform: scale(1.02);
    box-shadow: 0 4px 14px var(--hms-button-glow);
}

.btn-hms-subscribe {
    background: var(--hms-button);
    border: none;
    border-radius: 8px;
    color: var(--hms-on-accent);
    font-weight: 600;
}

.btn-hms-subscribe:hover {
    background: var(--hms-button-dark);
    color: var(--hms-on-accent);
    transform: translateY(-1px);
}

/* Themed outline button (avoids Bootstrap default blue) */
.btn-outline-hms {
    --bs-btn-color: var(--hms-button);
    --bs-btn-border-color: var(--hms-button);
    --bs-btn-hover-color: var(--hms-on-accent);
    --bs-btn-hover-bg: var(--hms-button);
    --bs-btn-hover-border-color: var(--hms-button);
    --bs-btn-active-color: var(--hms-on-accent);
    --bs-btn-active-bg: var(--hms-button-dark);
    --bs-btn-active-border-color: var(--hms-button-dark);
    --bs-btn-focus-shadow-rgb: var(--theme-button-rgb);
    font-weight: 600;
}

.btn-outline-hms {
    border-radius: 8px;
}

.btn-outline-hms:hover,
.btn-outline-hms:focus {
    color: var(--hms-on-accent);
    background-color: var(--hms-button);
    border-color: var(--hms-button);
}

.badge-hms {
    background: var(--hms-button);
    color: var(--hms-on-accent);
    font-weight: 700;
}

.booking-nav .btn-auth-signin {
    background: var(--hms-button);
    border: none;
    color: var(--hms-on-accent);
    border-radius: 8px;
    font-weight: 600;
}

.booking-nav .btn-auth-signin:hover {
    background: var(--hms-button-dark);
    color: var(--hms-on-accent);
}

.booking-nav .btn-auth-register {
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    background: transparent;
}

.booking-nav .btn-auth-register:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.direct-booking-banner {
    position: relative;
    overflow: hidden;
    border-radius: 1.15rem;
    border: 0;
    background: var(--hms-panel-bg-gradient);
    box-shadow: 0 14px 36px rgba(var(--theme-primary-rgb), 0.14);
    color: var(--hms-on-primary);
}

.direct-booking-banner__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.85fr);
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 1.85rem;
}

.direct-booking-banner__actions-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 1rem;
    padding: 1.1rem;
}

.direct-booking-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.75rem;
}

.direct-booking-banner__title {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 800;
    margin-bottom: 0.45rem;
    color: var(--hms-on-accent);
}

.direct-booking-banner__text {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 36rem;
    line-height: 1.55;
}

.direct-booking-banner__perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
}

.direct-booking-banner__perks li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.direct-booking-banner__perks i {
    color: #fde68a;
}

.direct-booking-banner__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

.direct-booking-banner__actions .btn {
    border-radius: 0.7rem;
    font-weight: 600;
    padding: 0.62rem 1.1rem;
    white-space: nowrap;
}

.direct-booking-banner__btn-primary {
    background: #fff;
    color: var(--hms-primary);
    border: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.direct-booking-banner__btn-primary:hover,
.direct-booking-banner__btn-primary:focus {
    background: var(--hms-surface-alt);
    color: var(--hms-primary);
    transform: translateY(-1px);
}

.direct-booking-banner__btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.direct-booking-banner__btn-outline:hover,
.direct-booking-banner__btn-outline:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--hms-border);
    margin-top: 2rem;
}

.footer-newsletter-wrap {
    background: var(--hms-bg);
    border-bottom: 1px solid var(--hms-border);
}

.footer-newsletter-wrap h5 {
    color: var(--hms-text);
}

.footer-newsletter-wrap p {
    color: var(--hms-text-muted) !important;
}

.footer-newsletter-form {
    width: 100%;
    max-width: 420px;
}

.footer-newsletter-form .form-control {
    min-height: 42px;
    border: 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.footer-brand .brand-logo-text strong {
    color: var(--hms-text);
}

.footer-brand .brand-logo-text small {
    color: var(--hms-text-muted);
    opacity: 1;
}

.footer-title {
    font-weight: 700;
    color: var(--hms-text);
    margin-bottom: 0.75rem;
}

.footer-link {
    color: var(--hms-accent-dark);
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--hms-highlight);
    text-decoration: underline;
}

.footer-muted {
    color: var(--hms-text-muted);
}

.footer-social {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--hms-border);
    color: var(--hms-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hms-border);
    border-radius: 8px;
    padding: 0.2rem 0.45rem;
    font-size: 0.73rem;
    color: var(--hms-text);
    background: var(--hms-surface-alt);
    font-weight: 600;
}

.footer-bottom-bar {
    border-top: 1px solid var(--hms-border);
    background: var(--hms-surface-alt);
}

.tw-copyright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
    width: 100%;
}

.tw-copyright__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}

.tw-copyright__logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.tw-copyright__content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.12rem;
    text-align: right;
    max-width: 100%;
}

.tw-copyright__system-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--hms-text);
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.tw-copyright__system-tagline {
    font-size: 0.78rem;
    color: var(--hms-text-muted);
    line-height: 1.35;
    max-width: 22rem;
}

.tw-copyright__text {
    color: var(--hms-text-muted);
    font-size: 0.8125rem;
    line-height: 1.35;
    margin-top: 0.2rem;
}

.tw-copyright__link {
    color: var(--hms-primary);
    text-decoration: none;
    font-weight: 600;
}

.tw-copyright__link:hover {
    color: var(--hms-primary-dark);
    text-decoration: underline;
}

.tw-copyright--site .tw-copyright__text {
    color: var(--hms-text-muted);
}

.tw-copyright--site .tw-copyright__link {
    color: var(--hms-accent);
}

.tw-copyright--site .tw-copyright__link:hover {
    color: var(--hms-accent-dark);
}

.app-dashboard-footer {
    margin-top: auto;
    border-top: 1px solid var(--admin-border);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.85rem 0;
}

.customer-shell .app-dashboard-footer {
    border-top-color: var(--hms-border);
}

.tw-copyright--dashboard {
    justify-content: center;
}

.tw-copyright--dashboard .tw-copyright__content {
    align-items: center;
    text-align: center;
}

.tw-copyright--dashboard .tw-copyright__text {
    color: var(--hms-text-muted);
}

.tw-copyright--dashboard .tw-copyright__logo {
    height: 34px;
}

.property-main-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--hms-tint-primary);
}

.property-gallery-carousel {
    border-radius: 14px;
    overflow: hidden;
}

.property-gallery-carousel .carousel-control-prev,
.property-gallery-carousel .carousel-control-next {
    width: 8%;
    opacity: 1;
}

.property-gallery-carousel .carousel-control-prev-icon,
.property-gallery-carousel .carousel-control-next-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background-color: rgba(var(--theme-primary-rgb), 0.92);
    background-size: 50% 50%;
    filter: none;
}

.property-gallery-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.property-gallery-carousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--hms-accent);
}

.property-gallery-carousel .carousel-control-prev,
.property-gallery-carousel .carousel-control-next {
    filter: none;
}

.property-thumb-image {
    width: 100%;
    height: 92px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--hms-tint-primary);
}

.room-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}

.room-gallery-thumbs [data-bs-target] {
    width: 100%;
    height: auto;
    margin: 0;
    text-indent: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: transparent;
    opacity: 0.8;
    overflow: hidden;
}

.room-gallery-thumbs [data-bs-target].active {
    border-color: var(--booking-accent);
    opacity: 1;
}

.review-score-box {
    background: var(--hms-accent);
    color: #fff;
    border-radius: 12px;
    min-width: 82px;
    text-align: center;
    padding: 0.55rem 0.7rem;
}

.review-score-box .score {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.facility-chip {
    background: #f0fdfa;
    border: 1px solid var(--hms-border);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    font-size: 0.92rem;
}

.sticky-booking-card {
    position: sticky;
    top: 7.75rem;
}

@media (max-width: 991px) {
    .property-main-image {
        height: 280px;
    }

    .property-thumb-image {
        height: 76px;
    }

    .room-gallery-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sticky-booking-card {
        position: static;
    }
}

.admin-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    background: var(--admin-bg);
}

.admin-sidebar {
    width: 280px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--admin-sidebar-text);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    z-index: 1040;
    background: linear-gradient(180deg, var(--admin-sidebar-from) 0%, var(--admin-sidebar-to) 100%);
    box-shadow: 4px 0 24px rgba(var(--theme-primary-rgb), 0.18);
}

.admin-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(var(--theme-accent-rgb), 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.admin-sidebar > * {
    position: relative;
    z-index: 1;
}

.admin-menu {
    flex: 1 1 auto;
    padding-bottom: 1.25rem;
    overflow-y: auto;
}

.admin-brand {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.admin-brand a,
.admin-brand-link {
    font-size: 1.02rem;
    letter-spacing: 0.02em;
}

.admin-brand--logo-only .admin-brand-link {
    display: block;
    width: 100%;
}

.admin-brand--logo-only .admin-brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: auto;
    object-fit: contain;
    object-position: center;
}

.admin-brand--logo-only .admin-logo-icon {
    width: 100%;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.admin-sidebar-toggle,
.customer-sidebar-toggle {
    display: none;
}

.admin-brand-logo {
    width: auto;
    height: 36px;
    max-width: 160px;
    object-fit: contain;
    object-position: left center;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.admin-brand-text {
    line-height: 1.2;
    min-width: 0;
}

.admin-brand-subtitle {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.admin-menu-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    padding-left: 0.35rem;
    font-weight: 700;
}

.admin-menu-group {
    margin-bottom: 0.35rem;
}

.admin-menu-group-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 0.58rem 0.7rem;
    border-radius: 0.65rem;
    margin-bottom: 0.15rem;
    transition: background 0.18s ease, color 0.18s ease;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.admin-menu-group-toggle:hover,
.admin-menu-group-toggle.is-open {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-menu-group-toggle.is-open {
    border-left-color: rgba(255, 193, 7, 0.85);
}

.admin-menu-group-icon {
    width: 1.2rem;
    margin-right: 0.45rem;
    font-size: 1rem;
    opacity: 0.95;
    flex-shrink: 0;
}

.admin-menu-group-label {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-menu-group-toggle .admin-menu-chevron {
    font-size: 0.72rem;
    opacity: 0.85;
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.admin-menu-group-toggle.is-open .admin-menu-chevron {
    transform: rotate(180deg);
}

.admin-menu-group-items {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.24s ease;
}

.admin-menu-group-items.is-open {
    grid-template-rows: 1fr;
}

.admin-menu-group-items-inner {
    overflow: hidden;
    padding-left: 0.35rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    margin-left: 0.55rem;
    margin-bottom: 0.35rem;
}

.admin-menu-group-items.is-open .admin-menu-group-items-inner {
    padding-top: 0.15rem;
    padding-bottom: 0.1rem;
}

.admin-menu-group-items .admin-menu-link {
    font-size: 0.86rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 0.62rem 0.75rem;
    border-radius: 0.65rem;
    margin-bottom: 0.2rem;
    transition: background 0.18s ease, color 0.18s ease, padding 0.18s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.admin-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.admin-menu-link i {
    width: 1.2rem;
    margin-right: 0.45rem;
    font-size: 1.05rem;
    opacity: 0.95;
}

.admin-menu-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding-left: calc(0.75rem + 2px);
}

.admin-menu-link.active {
    background: rgba(255, 255, 255, 0.14);
    border-left-color: var(--hms-button);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.admin-menu-link-muted {
    opacity: 0.65;
}

.admin-menu-link-coming-soon {
    opacity: 0.72;
}

.admin-menu-link-coming-soon:hover {
    opacity: 0.95;
}

.admin-menu-link-coming-soon.active {
    opacity: 1;
}

.admin-menu-link-nested {
    padding-left: 2.15rem;
    font-size: 0.84rem;
}

.admin-menu-collapse-toggle {
    text-align: left;
}

.admin-menu-collapse-toggle .admin-menu-chevron {
    font-size: 0.75rem;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.admin-menu-collapse-toggle[aria-expanded="true"] .admin-menu-chevron {
    transform: rotate(180deg);
}

.admin-menu-collapse {
    margin-bottom: 0.25rem;
}

.under-construction-page {
    max-width: 52rem;
    margin: 0 auto;
}

.under-construction-card {
    overflow: hidden;
}

.under-construction-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.12), rgba(var(--theme-accent-rgb), 0.18));
    color: var(--hms-primary);
    font-size: 2.25rem;
}

.under-construction-lead {
    max-width: 36rem;
}

.letter-spacing-wide {
    letter-spacing: 0.12em;
}

.under-construction-related-link {
    display: block;
    padding: 0.85rem 1rem;
    border: 1px solid var(--admin-border, #e8edf3);
    border-radius: 0.65rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.under-construction-related-link:hover {
    border-color: rgba(0, 59, 149, 0.35);
    box-shadow: 0 0.35rem 1rem rgba(0, 59, 149, 0.08);
    color: inherit;
}

.admin-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100vh;
    color: var(--admin-text);
    display: flex;
    flex-direction: column;
    background: var(--admin-bg);
}

.admin-main > main.container-fluid {
    flex: 1 1 auto;
    min-height: 0;
}

#bookingsTrendChart,
#bookingStatusChart,
#roomStatusChart,
#inventoryMovementChart {
    min-height: 220px;
}

.admin-header {
    position: static;
    border-bottom: 1px solid var(--admin-border) !important;
    background: #fff !important;
}

.dashboard-header-actions {
    flex-shrink: 0;
}

.dashboard-header-toolbar {
    flex-shrink: 0;
}

.dashboard-profile-menu-wrap {
    flex-shrink: 0;
}

.dashboard-profile-name {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-profile-menu {
    position: relative;
}

.dashboard-profile-toggle {
    color: var(--hms-text, #1e293b) !important;
    padding: 0.2rem 0.45rem !important;
    border-radius: 999px;
    font-weight: 500;
    border: 0;
    line-height: 1;
    text-decoration: none;
    box-shadow: none !important;
}

.dashboard-profile-toggle:hover,
.dashboard-profile-toggle:focus,
.dashboard-profile-toggle.show,
.dashboard-profile-menu.show .dashboard-profile-toggle {
    color: var(--hms-primary, #101213) !important;
    background: var(--hms-tint-primary, #eef4ff);
    text-decoration: none;
}

.dashboard-profile-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.dashboard-profile-menu .dropdown-menu {
    min-width: 12.5rem;
    margin-top: 0.5rem;
}

.dashboard-profile-menu .dropdown-item {
    font-weight: 500;
}

.dashboard-profile-menu .dropdown-item .bi {
    opacity: 0.8;
}

@media (min-width: 768px) {
    .dashboard-profile-menu .dropdown-toggle::after {
        display: none;
    }
}

.admin-kpi-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(var(--theme-primary-rgb), 0.08);
    overflow: hidden;
}

.admin-kpi-card .card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.kpi-meta {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hms-text-muted);
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hms-text);
    margin: 0;
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
}

.kpi-icon-blue { background: linear-gradient(135deg, var(--hms-accent), var(--hms-accent-dark)); }
.kpi-icon-teal { background: linear-gradient(135deg, var(--hms-accent-light), var(--hms-accent-dark)); }
.kpi-icon-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.kpi-icon-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.kpi-icon-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.kpi-icon-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.kpi-icon-slate { background: linear-gradient(135deg, #64748b, #334155); }

.admin-panel-card {
    border: 1px solid var(--admin-card-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(var(--theme-primary-rgb), 0.08);
    background: var(--admin-surface);
}

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

.quick-link-pill {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.admin-chart-wrap {
    position: relative;
    min-height: 240px;
}

.admin-chart-wrap-sm {
    min-height: 200px;
}

.admin-chart-wrap-circle {
    min-height: 240px;
    max-width: 360px;
    margin: 0 auto;
}

.sort-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.sort-icon-link:hover {
    background: var(--hms-focus-ring);
    color: var(--hms-accent-dark);
}

.sort-icon-link.active {
    background: color-mix(in srgb, var(--hms-accent) 18%, transparent);
    color: var(--hms-accent-dark);
    font-weight: 700;
}

.admin-page-title {
    font-weight: 700;
    color: var(--hms-text);
    /* text-decoration: underline; */
}

.admin-page-subtitle {
    color: var(--hms-text-muted);
    font-size: 0.92rem;
}

.admin-main .card {
    border: 1px solid var(--admin-card-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(var(--theme-primary-rgb), 0.08);
    background: var(--admin-surface);
    overflow: hidden;
}

/* Listing pages — align with dashboard panel styling */
.admin-main > .d-flex.justify-content-between {
    margin-bottom: 1.25rem !important;
}

.admin-main > .d-flex.justify-content-between h1,
.admin-main > .d-flex.justify-content-between .h3 {
    font-weight: 700;
    color: var(--hms-text);
    margin-bottom: 0;
}

.admin-main > form.row {
    background: var(--admin-surface);
    border: 1px solid var(--admin-card-border);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(var(--theme-primary-rgb), 0.06);
    margin-bottom: 1.25rem !important;
    align-items: center;
}

.admin-list-card {
    border: 1px solid var(--admin-table-head-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(var(--theme-primary-rgb), 0.08);
    overflow: hidden;
}

.admin-list-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-list-pagination {
    background: var(--admin-surface);
    border: 1px solid var(--admin-card-border);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    box-shadow: 0 4px 16px rgba(var(--theme-primary-rgb), 0.05);
}

.admin-list-pagination .pagination {
    margin-bottom: 0;
}

.admin-data-table {
    --bs-table-hover-bg: var(--hms-tint-primary);
}

.admin-sortable-col {
    width: 2.25rem;
    padding-left: 0.75rem !important;
    padding-right: 0.35rem !important;
}

.admin-sortable-handle {
    width: 2.25rem;
    padding-left: 0.75rem !important;
    padding-right: 0.35rem !important;
    cursor: grab;
    user-select: none;
    text-align: center;
    vertical-align: middle !important;
}

.admin-sortable-handle:active {
    cursor: grabbing;
}

.admin-sortable-handle .bi {
    font-size: 1.1rem;
    opacity: 0.55;
}

tr:hover .admin-sortable-handle .bi {
    opacity: 0.9;
}

.admin-sortable-row--ghost {
    opacity: 0.45;
    background: var(--hms-tint-primary, #eef4ff) !important;
}

.admin-sortable-row--dragging {
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(var(--theme-primary-rgb), 0.12);
}

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

.admin-main .admin-data-table > :not(caption) > * > * {
    padding: 0.72rem 1rem;
    border-bottom: 1px solid var(--admin-table-row-border);
    vertical-align: middle;
    font-size: 0.9rem;
}

.admin-main .admin-data-table thead th {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--admin-table-head-text);
    background: var(--admin-table-head-bg);
    border-bottom: 2px solid var(--admin-table-head-border);
    white-space: nowrap;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.admin-main .admin-data-table thead th a {
    color: var(--admin-table-head-text);
    font-weight: inherit;
}

.admin-main .admin-data-table thead th a:hover {
    color: var(--hms-accent);
}

.admin-main .admin-data-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.85);
}

.admin-main .admin-data-table tbody tr:hover {
    background: var(--hms-tint-primary) !important;
}

.admin-main .admin-data-table tbody tr:last-child > * {
    border-bottom: 0;
}

.admin-cell-primary {
    font-weight: 600;
    color: var(--hms-text);
}

.admin-cell-money {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
    white-space: nowrap;
}


.admin-table-actions form {
    display: inline-flex;
    margin: 0;
}

.admin-main .admin-data-table .admin-table-actions .btn-sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 8px;
    line-height: 1.2;
}

.admin-table-empty {
    padding: 2.25rem 1rem !important;
    text-align: center;
    color: var(--hms-text-muted);
    font-size: 0.92rem;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-status-badge--success {
    background: #dcfce7;
    color: #166534;
}

.admin-status-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.admin-status-badge--danger {
    background: #fee2e2;
    color: #991b1b;
}

.admin-status-badge--info {
    background: var(--hms-tint-accent);
    color: #1e40af;
}

.admin-status-badge--neutral {
    background: #e2e8f0;
    color: #475569;
}

.admin-main .card > .card-header {
    background: var(--admin-table-head);
    border-bottom: 1px solid var(--admin-card-border);
    font-weight: 600;
    padding: 0.85rem 1rem;
    color: var(--hms-text);
}

.admin-main .form-control,
.admin-main .form-select,
.admin-main textarea {
    border-radius: 10px;
    border-color: var(--admin-border);
    min-height: 40px;
}

.admin-main .form-control:focus,
.admin-main .form-select:focus,
.admin-main textarea:focus {
    border-color: var(--hms-accent-light);
    box-shadow: 0 0 0 0.2rem var(--hms-focus-ring);
}

/* Admin panel buttons — brand CTA color (matches public site --hms-button) */
.admin-shell .btn-primary,
.admin-shell .btn-primary:hover,
.admin-shell .btn-primary:focus,
.admin-shell .btn-primary:active,
.admin-shell .btn-primary:disabled {
    color: var(--hms-on-primary) !important;
    background: var(--admin-button) !important;
    border-color: var(--admin-button) !important;
}

.admin-shell .btn-primary:hover,
.admin-shell .btn-primary:focus,
.admin-shell .btn-primary:active {
    background: var(--admin-button-dark) !important;
    border-color: var(--admin-button-dark) !important;
    box-shadow: 0 4px 14px var(--hms-button-glow);
}

.admin-shell .btn-outline-primary {
    color: var(--admin-button) !important;
    border-color: var(--admin-button) !important;
    background-color: var(--admin-surface);
}

.admin-shell .btn-outline-primary:hover,
.admin-shell .btn-outline-primary:focus,
.admin-shell .btn-outline-primary:active,
.admin-shell .btn-outline-primary.active,
.admin-shell .btn-outline-primary.show,
.admin-shell .btn-outline-primary:first-child:active {
    color: var(--hms-on-primary) !important;
    background: var(--admin-button) !important;
    border-color: var(--admin-button) !important;
    box-shadow: none;
}

.admin-shell .btn-outline-primary:hover i,
.admin-shell .btn-outline-primary:focus i,
.admin-shell .btn-outline-primary:active i {
    color: var(--hms-on-primary) !important;
}

.admin-shell .btn-outline-secondary {
    color: #475569 !important;
    border-color: #cad5e8;
    background-color: #ffffff;
}

.admin-shell .btn-outline-secondary:hover,
.admin-shell .btn-outline-secondary:focus,
.admin-shell .btn-outline-secondary:active,
.admin-shell .btn-outline-secondary.active {
    color: #ffffff !important;
    background-color: #64748b !important;
    border-color: #64748b !important;
}

.admin-shell .btn-outline-secondary:hover i,
.admin-shell .btn-outline-secondary:focus i,
.admin-shell .btn-outline-secondary:active i {
    color: #ffffff !important;
}

.admin-shell .btn-outline-success:hover,
.admin-shell .btn-outline-success:focus,
.admin-shell .btn-outline-success:active,
.admin-shell .btn-outline-danger:hover,
.admin-shell .btn-outline-danger:focus,
.admin-shell .btn-outline-danger:active,
.admin-shell .btn-outline-info:hover,
.admin-shell .btn-outline-info:focus,
.admin-shell .btn-outline-info:active {
    color: #ffffff !important;
}

.admin-main .badge {
    border-radius: 999px;
    padding: 0.35rem 0.55rem;
}

.admin-main .alert {
    border: 0;
    border-radius: 12px;
}

.interactive-form {
    background: var(--hms-tint-primary);
    border-radius: 14px;
    padding: 0.8rem;
}

.interactive-form-section {
    background: var(--hms-surface);
    border: 1px solid var(--admin-card-border);
    border-radius: 14px;
    padding: 0.9rem 1rem 1.05rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.05);
}

.interactive-form > .interactive-form-section:last-child {
    margin-bottom: 0;
}

.interactive-form-heading {
    margin: -0.9rem -1rem 0.9rem;
    padding: 0.72rem 1rem;
    border-bottom: 1px solid #edf2fb;
    border-left: 4px solid transparent;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, #eef4ff 0%, #f7f9ff 100%);
    transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.interactive-form-heading h6 {
    font-weight: 700;
    color: var(--hms-primary);
}

.interactive-form-heading p {
    color: #51617c;
    font-size: 0.84rem;
}

.interactive-amenities-wrap {
    max-height: 240px;
    overflow-y: auto;
    border-color: #d6dfef !important;
    background: #f8fbff !important;
}

.interactive-form-section:nth-of-type(1) .interactive-form-heading {
    background: linear-gradient(90deg, var(--hms-tint-accent) 0%, var(--hms-surface) 100%);
    border-left-color: var(--hms-accent);
}

.interactive-form-section:nth-of-type(2) .interactive-form-heading {
    background: linear-gradient(90deg, #e8fbf1 0%, #f4fff9 100%);
    border-left-color: #16a34a;
}

.interactive-form-section:nth-of-type(3) .interactive-form-heading {
    background: linear-gradient(90deg, #fff3dd 0%, #fffaf0 100%);
    border-left-color: #d97706;
}

.interactive-form-section:nth-of-type(4) .interactive-form-heading {
    background: linear-gradient(90deg, #f2ecff 0%, #faf7ff 100%);
    border-left-color: #7c3aed;
}

.interactive-form-section:hover .interactive-form-heading {
    transform: translateX(2px);
}

.interactive-form .form-control,
.interactive-form .form-select,
.interactive-form textarea {
    background: #fcfdff;
    border-color: #d7e0f1;
}

.interactive-form .form-control::placeholder,
.interactive-form textarea::placeholder {
    color: #99a6bd;
}

/* Customer dashboard */
.customer-dashboard-page .customer-page-title {
    color: var(--customer-page-title);
    font-weight: 700;
}

.customer-kpi-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(var(--theme-primary-rgb), 0.1);
    overflow: hidden;
    height: 100%;
}

.customer-kpi-card .card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

.customer-kpi-blue { background: linear-gradient(135deg, var(--hms-tint-primary) 0%, var(--hms-tint-accent) 100%); }
.customer-kpi-teal { background: linear-gradient(135deg, var(--hms-tint-accent) 0%, var(--hms-tint-accent-strong) 100%); }
.customer-kpi-orange { background: linear-gradient(135deg, var(--hms-tint-highlight) 0%, color-mix(in srgb, var(--theme-highlight) 20%, var(--theme-surface)) 100%); }
.customer-kpi-green { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.customer-kpi-indigo { background: linear-gradient(135deg, var(--hms-tint-primary) 0%, var(--hms-tint-accent) 100%); }
.customer-kpi-rose { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); }

.customer-kpi-card .kpi-meta {
    color: var(--hms-text-muted);
}

.customer-kpi-card .kpi-value {
    color: var(--hms-text);
}

.customer-payment-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(var(--theme-primary-rgb), 0.08);
    height: 100%;
}

.customer-payment-card .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

.customer-payment-booked {
    background: linear-gradient(135deg, var(--hms-surface-alt) 0%, var(--hms-border-soft) 100%);
}

.customer-payment-due {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.customer-payment-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}

.customer-payment-icon-slate {
    background: linear-gradient(135deg, #64748b, #334155);
}

.customer-payment-icon-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.customer-bookings-panel {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(var(--theme-primary-rgb), 0.1);
    overflow: hidden;
}

.customer-bookings-panel .card-header {
    background: var(--customer-panel-header);
    color: var(--customer-panel-header-text, var(--hms-text));
    border: 0;
    border-bottom: 1px solid var(--customer-panel-header-border, var(--hms-border));
    padding: 1rem 1.25rem;
}

.customer-bookings-panel .card-header h2 {
    color: var(--customer-panel-header-text, var(--hms-text));
    font-weight: 600;
}

.customer-bookings-table thead th {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.85rem 1rem;
}

.customer-bookings-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.customer-bookings-table tbody tr:nth-child(even) {
    background-color: var(--hms-surface-alt);
}

.customer-bookings-table tbody tr:hover {
    background-color: #eff6ff;
}

.customer-bookings-table tbody td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e8edf5;
}

.customer-bookings-table .booking-id-cell {
    font-weight: 600;
    color: var(--hms-primary);
}

.customer-bookings-table .room-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ccfbf1;
    color: var(--hms-accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.65rem;
    flex-shrink: 0;
}

.customer-bookings-empty {
    background: var(--hms-surface-alt);
}

/* Customer portal shell (sidebar layout) */
.customer-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    background: var(--admin-bg);
}

.customer-sidebar {
    width: 280px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    z-index: 1040;
    background: linear-gradient(180deg, var(--admin-sidebar-from) 0%, var(--admin-sidebar-to) 100%);
    color: var(--admin-sidebar-text);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 4px 0 24px rgba(var(--theme-primary-rgb), 0.18);
}

.customer-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(var(--theme-accent-rgb), 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.customer-sidebar > * {
    position: relative;
    z-index: 1;
}

.customer-brand {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.customer-brand--logo-only .customer-brand-link {
    min-width: 0;
}

.customer-brand--logo-only .customer-brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: auto;
    object-fit: contain;
    object-position: center;
}

.customer-brand--logo-only .customer-logo-icon {
    width: 100%;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.customer-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.customer-menu {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 1.25rem;
}

.customer-brand-logo {
    width: auto;
    height: 36px;
    max-width: 140px;
    object-fit: contain;
    object-position: left center;
    border-radius: 0;
    background: transparent;
    padding: 0;
    flex-shrink: 0;
}

.customer-brand-text {
    line-height: 1.2;
    min-width: 0;
}

.customer-brand-subtitle {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.customer-menu-group {
    margin-bottom: 0.35rem;
}

.customer-menu-group-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 0.58rem 0.7rem;
    border-radius: 0.65rem;
    margin-bottom: 0.15rem;
    transition: background 0.18s ease, color 0.18s ease;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.customer-menu-group-toggle:hover,
.customer-menu-group-toggle.is-open {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.customer-menu-group-toggle.is-open {
    border-left-color: rgba(255, 193, 7, 0.85);
}

.customer-menu-group-icon {
    width: 1.2rem;
    margin-right: 0.45rem;
    font-size: 1rem;
    opacity: 0.95;
    flex-shrink: 0;
}

.customer-menu-group-label {
    flex: 1 1 auto;
    min-width: 0;
}

.customer-menu-group-toggle .customer-menu-chevron {
    font-size: 0.72rem;
    opacity: 0.85;
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.customer-menu-group-toggle.is-open .customer-menu-chevron {
    transform: rotate(180deg);
}

.customer-menu-group-items {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.24s ease;
}

.customer-menu-group-items.is-open {
    grid-template-rows: 1fr;
}

.customer-menu-group-items-inner {
    overflow: hidden;
    padding-left: 0.35rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    margin-left: 0.55rem;
    margin-bottom: 0.35rem;
}

.customer-menu-group-items.is-open .customer-menu-group-items-inner {
    padding-top: 0.15rem;
    padding-bottom: 0.1rem;
}

.customer-menu-group-items .customer-menu-link {
    font-size: 0.86rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.customer-menu-link-coming-soon {
    opacity: 0.82;
}

.customer-menu-link-coming-soon:hover {
    opacity: 1;
}

.customer-menu-link-coming-soon.active {
    opacity: 1;
}

.customer-menu-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
    padding-left: 0.5rem;
}

.customer-menu-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.62rem 0.75rem;
    border-radius: 0.65rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.customer-menu-link i {
    font-size: 1.05rem;
    opacity: 0.9;
}

.customer-menu-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.customer-menu-link.active {
    background: rgba(255, 255, 255, 0.14);
    border-left: 3px solid var(--hms-button);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.customer-menu-link-logout {
    background: transparent;
    cursor: pointer;
    margin-top: 0.25rem;
}

.customer-menu-link-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fecaca;
}

.customer-logout-form {
    margin: 0;
}

.customer-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100vh;
    color: var(--admin-text);
    display: flex;
    flex-direction: column;
    background: var(--admin-bg);
}

.customer-main > main.container-fluid {
    flex: 1 1 auto;
    min-height: 0;
}

.customer-header {
    position: static;
    border-bottom: 1px solid var(--admin-border) !important;
    background: #fff !important;
}

.customer-panel-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(var(--theme-primary-rgb), 0.08);
}

.customer-laundry-order-card {
    background: var(--hms-surface-alt, #f8fafc);
    border: 1px solid var(--hms-border, #e2e8f0);
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

.customer-laundry-status-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0;
}

.customer-laundry-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 72px;
    text-align: center;
}

.customer-laundry-status-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.customer-laundry-status-step.is-complete .customer-laundry-status-dot,
.customer-laundry-status-step.is-current .customer-laundry-status-dot {
    border-color: var(--hms-primary, #101213);
    background: var(--hms-primary, #101213);
    color: #fff;
}

.customer-laundry-status-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}

.customer-laundry-status-step.is-current .customer-laundry-status-label {
    color: var(--hms-primary, #101213);
}

.customer-laundry-status-line {
    flex: 1 1 12px;
    min-width: 12px;
    height: 2px;
    background: #cbd5e1;
    margin-bottom: 1.4rem;
}

.customer-laundry-status-line.is-complete {
    background: var(--hms-primary, #101213);
}

.customer-hk-type-option {
    display: block;
    cursor: pointer;
    margin: 0;
    height: 100%;
}

.customer-hk-type-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    height: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--hms-border, #e2e8f0);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.customer-hk-type-option:hover .customer-hk-type-card {
    border-color: color-mix(in srgb, var(--hms-primary, #101213) 35%, #fff);
    background: color-mix(in srgb, var(--hms-tint-primary, #eef4ff) 55%, #fff);
}

.customer-hk-type-option input:checked + .customer-hk-type-card {
    border-color: var(--hms-primary, #101213);
    background: var(--hms-tint-primary, #eef4ff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--hms-primary, #101213) 25%, transparent);
}

.customer-hk-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--hms-primary, #101213) 12%, #fff);
    color: var(--hms-primary, #101213);
    font-size: 1.05rem;
}

.customer-hk-type-option input:checked + .customer-hk-type-card .customer-hk-type-icon {
    background: var(--hms-primary, #101213);
    color: #fff;
}

.customer-hk-type-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.customer-hk-type-name {
    font-weight: 600;
    color: var(--hms-text, #1e293b);
    line-height: 1.3;
}

.customer-hk-type-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
}

.customer-hk-type-check {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    border-radius: 999px;
    background: var(--hms-primary, #101213);
    color: #fff;
    font-size: 0.85rem;
}

.customer-hk-type-option input:checked + .customer-hk-type-card .customer-hk-type-check {
    display: inline-flex;
}

.customer-back-link {
    --bs-btn-color: var(--hms-text-muted, #64748b);
    --bs-btn-border-color: var(--hms-border, #e2e8f0);
    --bs-btn-hover-color: var(--hms-primary, #101213);
    --bs-btn-hover-bg: var(--hms-tint-primary, #eef4ff);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--hms-primary, #101213) 35%, #fff);
    --bs-btn-active-bg: var(--hms-tint-primary, #eef4ff);
    --bs-btn-active-border-color: var(--hms-primary, #101213);
    font-weight: 500;
}

.customer-profile-card {
    overflow: hidden;
}

.customer-profile-tabs {
    background: var(--customer-panel-header, var(--hms-surface));
    border-bottom: 1px solid var(--customer-panel-header-border, var(--hms-border));
    padding: 0 1rem;
}

.customer-profile-nav {
    border-bottom: 0;
    gap: 0.25rem;
    margin-bottom: -1px;
}

.customer-profile-nav .nav-link {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: var(--hms-text-muted, #64748b);
    font-weight: 600;
    padding: 1rem 1.25rem;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.customer-profile-nav .nav-link:hover {
    background: rgba(var(--theme-primary-rgb), 0.04);
    color: var(--hms-primary, #101213);
    isolation: isolate;
}

.customer-profile-nav .nav-link.active {
    background: transparent;
    border-bottom-color: var(--hms-primary, #101213);
    color: var(--hms-primary, #101213);
}

.customer-profile-tab-content {
    min-height: 280px;
}

.customer-preference-block {
    background: var(--hms-surface-alt, #f8fafc);
    border: 1px solid var(--hms-border, #e2e8f0);
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

.customer-preference-block textarea {
    resize: vertical;
    min-height: 110px;
}

.customer-profile-form-actions {
    background: linear-gradient(to top, rgba(248, 250, 252, 0.85), transparent);
}

@media (max-width: 575.98px) {
    .customer-profile-tabs {
        padding: 0 0.5rem;
    }

    .customer-profile-nav .nav-link {
        font-size: 0.82rem;
        padding: 0.85rem 0.55rem;
    }

    .customer-profile-nav .nav-link i {
        display: none;
    }
}

.customer-stay-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: var(--hms-surface-alt, #f8fafc);
    border: 1px solid var(--hms-border, #e2e8f0);
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
}

.customer-stay-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.customer-stay-stat-icon-blue { background: var(--hms-tint-accent); color: var(--hms-accent-dark); }
.customer-stay-stat-icon-teal { background: rgba(13, 148, 136, 0.12); color: #0d9488; }
.customer-stay-stat-icon-amber { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.customer-stay-stat-icon-green { background: rgba(22, 163, 74, 0.12); color: #16a34a; }

.customer-stay-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hms-text-muted, #64748b);
    font-weight: 600;
}

.customer-stay-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.customer-stay-section {
    background: var(--hms-surface-alt, #f8fafc);
    border: 1px solid var(--hms-border, #e2e8f0);
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

.customer-stay-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--hms-border, #e2e8f0);
}

.customer-stay-booking-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.customer-stay-booking-item {
    background: #fff;
    border: 1px solid var(--hms-border, #e2e8f0);
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
}

.customer-stay-feedback-item {
    background: #fff;
    border: 1px solid var(--hms-border, #e2e8f0);
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
    margin-bottom: 0.65rem;
}

.customer-stay-feedback-item:last-of-type {
    margin-bottom: 0;
}

.customer-stay-inline-form {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    padding-top: 0.75rem;
}

.customer-stay-rating {
    letter-spacing: 0.05rem;
}

.customer-document-block {
    background: var(--hms-surface-alt, #f8fafc);
    border: 1px solid var(--hms-border, #e2e8f0);
    border-radius: 12px;
    padding: 1.15rem;
}

.customer-document-block-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.customer-document-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.customer-document-icon-id {
    background: rgba(37, 99, 235, 0.12);
    color: var(--hms-accent);
}

.customer-document-icon-card {
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
}

.customer-document-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 120px;
    border: 1px dashed var(--hms-border, #cbd5e1);
    border-radius: 10px;
    background: #fff;
    color: var(--hms-text-muted, #64748b);
    font-size: 0.9rem;
}

.customer-document-empty i {
    font-size: 1.75rem;
    opacity: 0.55;
}

.customer-document-preview {
    background: #fff;
    border: 1px solid var(--hms-border, #e2e8f0);
    border-radius: 10px;
    padding: 0.75rem;
}

.customer-document-preview-image {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--hms-surface-alt);
}

.customer-document-preview-file {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 80px;
    padding: 0.5rem;
}

.customer-guest-type-option {
    cursor: pointer;
    margin: 0;
}

.customer-guest-type-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.customer-guest-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    height: 100%;
    min-height: 130px;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 2px solid var(--hms-border, #e2e8f0);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.customer-guest-type-option:hover .customer-guest-type-card {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.06);
}

.customer-guest-type-option.is-selected .customer-guest-type-card {
    border-color: var(--hms-primary, #101213);
    background: rgba(37, 99, 235, 0.04);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.customer-guest-type-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--hms-primary, #101213);
    font-size: 1.1rem;
}

.customer-guest-type-label {
    font-weight: 700;
    color: var(--hms-text, #0f172a);
}

.customer-guest-type-desc {
    font-size: 0.82rem;
    color: var(--hms-text-muted, #64748b);
    line-height: 1.45;
}

.customer-consent-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--hms-border, #e2e8f0);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.customer-consent-card.is-active {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.04);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.customer-consent-card .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    min-height: 100%;
}

.customer-consent-card .form-check-input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.customer-consent-title {
    display: block;
    font-weight: 700;
    color: var(--hms-text, #0f172a);
    margin-bottom: 0.25rem;
}

.customer-consent-desc {
    font-size: 0.84rem;
    color: var(--hms-text-muted, #64748b);
    line-height: 1.45;
}

.booking-nav .booking-profile-menu .booking-profile-toggle {
    color: var(--hms-on-primary) !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 999px;
    font-weight: 500;
}

.booking-nav .booking-profile-menu .booking-profile-toggle:hover,
.booking-nav .booking-profile-menu.show .booking-profile-toggle {
    color: var(--hms-on-primary) !important;
    background: rgba(255, 255, 255, 0.14);
}

.booking-nav .booking-profile-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.booking-nav .booking-profile-menu .dropdown-menu {
    min-width: 12rem;
    margin-top: 0.5rem;
}

.booking-nav .booking-profile-menu .dropdown-item {
    font-weight: 500;
}

.booking-nav .booking-profile-menu .dropdown-item .bi {
    opacity: 0.8;
}

@media (min-width: 992px) {
    .booking-nav .booking-profile-menu .dropdown-toggle::after {
        display: none;
    }
}

/* ========== Rooms listing page ========== */
.rooms-listing-page .container {
    max-width: 1140px;
}

.rooms-listing-page .listing-search-bar {
    background: var(--hms-surface);
    border: 1px solid var(--hms-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px var(--hms-shadow), 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rooms-listing-page .listing-search-form {
    margin: 0;
}

.rooms-listing-page .listing-search-form .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
    margin-left: 0;
    margin-right: 0;
}

.rooms-listing-page .listing-search-bar:focus-within {
    border-color: var(--hms-accent);
    box-shadow: 0 0 0 3px var(--hms-focus-ring);
}

.rooms-listing-page .listing-search-form .form-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.rooms-listing-page .listing-search-form .form-control,
.rooms-listing-page .listing-search-form .form-select {
    font-size: 0.9rem;
    border-radius: 6px;
    border-color: #cbd5e1;
    min-height: 38px;
}

.rooms-listing-page .listing-page {
    align-items: flex-start;
}

.rooms-listing-page .listing-filters {
    background: #fff;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(var(--theme-primary-rgb), 0.06);
    position: sticky;
    top: 5.25rem;
    overflow: hidden;
}

.rooms-listing-page .listing-filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--hms-surface);
    color: var(--hms-text);
    border-bottom: 1px solid var(--hms-border);
}

.rooms-listing-page .listing-filters__title {
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rooms-listing-page .listing-filters__clear {
    font-size: 0.75rem;
    color: var(--hms-accent);
    text-decoration: underline;
    font-weight: 600;
}

.rooms-listing-page .listing-filters__clear:hover {
    color: var(--hms-accent-dark);
}

.rooms-listing-page .listing-filters__body {
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
}

.rooms-listing-page .listing-filter-group {
    border: 0;
    margin: 0;
    padding: 0.85rem 1rem 0.85rem 1.25rem;
    border-bottom: 1px solid #e8edf5;
}

.rooms-listing-page .listing-filter-group__title {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--booking-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: 100%;
}

.rooms-listing-page .listing-filter-group__hint {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #64748b;
    font-size: 0.68rem;
}

.rooms-listing-page .listing-filter-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.rooms-listing-page .listing-filter-input {
    font-size: 0.85rem;
    border-color: #cbd5e1;
    border-radius: 6px;
}

.rooms-listing-page .listing-filter-note {
    font-size: 0.72rem;
    color: #64748b;
    margin: 0.4rem 0 0;
    padding: 0.35rem 0.5rem;
    background: #f1f5f9;
    border-radius: 4px;
}

.rooms-listing-page .listing-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-left: 0.35rem;
}

.rooms-listing-page .listing-filter-options--scroll {
    max-height: 130px;
    overflow-y: auto;
}

.rooms-listing-page .listing-filter-check.form-check {
    margin: 0;
    padding: 0.35rem 0.5rem 0.35rem 1.85rem;
    border-radius: 6px;
    min-height: 1.6rem;
}

.rooms-listing-page .listing-filter-check .form-check-input {
    margin-left: -1.5rem;
    margin-top: 0.15rem;
}

.rooms-listing-page .listing-filter-check:hover {
    background: #f1f5f9;
}

.rooms-listing-page .listing-filter-check .form-check-input:checked {
    background-color: var(--booking-accent);
    border-color: var(--booking-accent);
}

.rooms-listing-page .listing-filter-check .form-check-label {
    font-size: 0.82rem;
    cursor: pointer;
}

.rooms-listing-page .listing-filters__actions {
    padding: 0.75rem 1rem;
    background: var(--hms-surface-alt);
    border-top: 1px solid #e8edf5;
}

.rooms-listing-page .listing-results {
    background: transparent;
}

.rooms-listing-page .listing-results__header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.rooms-listing-page .listing-results__header h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--booking-blue);
}

.rooms-listing-page .listing-results__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rooms-listing-page .listing-result {
    background: #fff;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rooms-listing-page .listing-result:hover {
    border-color: var(--hms-accent-light);
    box-shadow: 0 8px 24px var(--hms-glow);
    transform: translateY(-2px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rooms-listing-page .listing-result__inner {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) 168px;
    align-items: stretch;
}

.rooms-listing-page .listing-result__media {
    display: block;
    width: 220px;
    max-width: 220px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #e8edf5;
}

.rooms-listing-page .listing-result__image {
    width: 220px;
    height: 100%;
    min-height: 132px;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

.rooms-listing-page .listing-result__content {
    padding: 0.75rem 1rem;
    border-left: 1px solid var(--hms-border-soft);
    min-width: 0;
}

.rooms-listing-page .listing-result__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}

.rooms-listing-page .listing-result__title a {
    color: var(--hms-accent-dark);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.25;
}

.rooms-listing-page .listing-result__title a:hover {
    color: var(--hms-accent);
    text-decoration: underline;
}

.rooms-listing-page .listing-empty .alert-link {
    color: var(--hms-accent-dark);
    font-weight: 600;
}

.rooms-listing-page .listing-empty .alert-link:hover {
    color: var(--hms-highlight);
}

.rooms-listing-page .listing-result__score {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.rooms-listing-page .listing-result__score-badge {
    background: var(--hms-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px 6px 6px 0;
    line-height: 1.2;
}

.rooms-listing-page .listing-result__score-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
}

.rooms-listing-page .listing-result__score .room-stars .stars {
    color: #f59e0b;
    letter-spacing: 0.06rem;
    line-height: 1;
}

.rooms-listing-page .listing-result__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 0.35rem !important;
}

.rooms-listing-page .listing-result__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.rooms-listing-page .listing-result__amenity {
    font-size: 0.7rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    padding: 0.12rem 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.rooms-listing-page .listing-result__aside {
    padding: 0.75rem;
    background: var(--hms-surface-alt);
    border-left: 1px solid var(--hms-border-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: right;
}

.rooms-listing-page .listing-result__price-amount {
    color: var(--booking-blue);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.2;
}

.rooms-listing-page .listing-result__aside .btn {
    font-size: 0.8rem;
}

@media (min-width: 992px) {
    .rooms-listing-page .col-lg-3 {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .rooms-listing-page .col-lg-9 {
        flex: 1 1 0;
        max-width: calc(100% - 260px);
    }
}

@media (max-width: 991.98px) {
    .rooms-listing-page .listing-filters {
        position: static;
    }

    .rooms-listing-page .listing-result__inner {
        grid-template-columns: 160px minmax(0, 1fr) !important;
        grid-template-rows: auto auto;
    }

    .rooms-listing-page .listing-result__media {
        width: 160px;
        max-width: 160px;
        grid-row: span 2;
    }

    .rooms-listing-page .listing-result__image {
        width: 160px;
        min-height: 120px;
        max-height: 140px;
    }

    .rooms-listing-page .listing-result__aside {
        grid-column: 2;
        border-left: 0;
        border-top: 1px solid var(--hms-border-soft);
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        gap: 0.5rem;
    }

    .rooms-listing-page .listing-result__aside .btn {
        width: auto !important;
        flex: 1;
    }

    .admin-list-pagination {
        display: flex;
        justify-content: center;
        padding: 0.65rem 0.5rem;
    }

    .admin-list-pagination nav {
        width: 100%;
    }

    /* Pagination — compact window with arrows */
    .admin-shell .pagination-compact {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.15rem;
    }

    .admin-shell .pagination-compact .page-link {
        min-width: 2.1rem;
        padding: 0.35rem 0.5rem;
        text-align: center;
    }

    .admin-shell .pagination-compact .pagination-ellipsis .page-link {
        min-width: 1.75rem;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 575.98px) {
    .rooms-listing-page .listing-result__inner {
        grid-template-columns: 1fr !important;
    }

    .rooms-listing-page .listing-result__media,
    .rooms-listing-page .listing-result__image {
        width: 100%;
        max-width: 100%;
        max-height: 140px;
    }

    .rooms-listing-page .listing-result__content {
        border-left: 0;
        border-top: 1px solid var(--hms-border-soft);
    }

    .rooms-listing-page .listing-result__aside {
        grid-column: 1;
    }
}

/* Booking checkout (Booking.com-inspired) */
.checkout-breadcrumb {
    color: #6b7280;
}

.checkout-breadcrumb a {
    color: var(--booking-accent);
    text-decoration: none;
}

.checkout-breadcrumb a:hover {
    text-decoration: underline;
}

.checkout-breadcrumb__sep {
    margin: 0 0.35rem;
    color: #9ca3af;
}

.checkout-breadcrumb__current {
    color: #374151;
    font-weight: 600;
}

.checkout-progress {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.checkout-progress__step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.85rem;
}

.checkout-progress__step.is-done,
.checkout-progress__step.is-active {
    color: var(--booking-blue);
}

.checkout-progress__step.is-active .checkout-progress__label {
    font-weight: 700;
}

.checkout-progress__dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.checkout-progress__step.is-done .checkout-progress__dot {
    background: var(--booking-blue);
    border-color: var(--booking-blue);
    color: #fff;
}

.checkout-progress__step.is-active .checkout-progress__dot {
    background: #fff;
    border-color: var(--booking-accent);
    color: var(--booking-accent);
}

.checkout-progress__line {
    flex: 1 1 2rem;
    min-width: 1.5rem;
    max-width: 4rem;
    height: 2px;
    background: #e5e7eb;
    margin: 0 0.5rem;
}

.checkout-progress__line.is-done {
    background: var(--booking-blue);
}

.checkout-account-banner__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e8f2ff;
    color: var(--booking-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.checkout-guest-label {
    border-left: 3px solid var(--booking-accent);
    padding-left: 0.75rem;
}

.checkout-section-title {
    color: var(--booking-blue);
}

.checkout-summary__thumb {
    object-fit: cover;
    flex-shrink: 0;
}

.checkout-summary__title {
    font-size: 0.95rem;
    line-height: 1.3;
}

.checkout-summary__total {
    color: var(--booking-blue);
}

@media (max-width: 575px) {
    .checkout-progress__label {
        display: none;
    }

    .checkout-progress__line {
        max-width: 2rem;
    }
}

/* ========== Frontend responsive ========== */
.min-h-44 {
    min-height: 44px;
}

body.booking-body {
    overflow-x: hidden;
}

@media (max-width: 991.98px) {
    .booking-header {
        margin-bottom: 1rem !important;
    }

    .booking-nav {
        --booking-nav-logo-height: 3.15rem;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .booking-nav .brand-logo-wrap--with-image .brand-logo-image {
        max-width: min(300px, 62vw);
    }

    .sticky-booking-card {
        top: 6.75rem;
    }

    .booking-main-links {
        padding-bottom: 0.5rem;
        gap: 0.4rem;
    }

    .booking-nav .navbar-collapse > .navbar-nav.ms-lg-auto {
        gap: 0.5rem;
        margin-top: 0.75rem !important;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
    }

    .booking-nav .navbar-collapse .navbar-nav.ms-lg-auto {
        width: 100%;
    }

    .booking-nav .navbar-collapse .navbar-nav.ms-lg-auto .nav-item,
    .booking-nav .navbar-collapse .navbar-nav.ms-lg-auto .btn {
        width: 100%;
    }

    .booking-nav .navbar-collapse .navbar-nav.ms-lg-auto form {
        width: 100%;
    }

    .booking-nav .navbar-collapse .navbar-nav.ms-lg-auto .booking-profile-menu,
    .booking-nav .navbar-collapse .navbar-nav.ms-lg-auto .booking-profile-toggle {
        width: 100%;
    }

    .booking-nav .navbar-collapse .booking-profile-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        border: 1px solid rgba(15, 23, 42, 0.08);
        margin-top: 0.35rem;
    }

    .rooms-carousel {
        padding: 0 1.5rem;
    }

    .footer-newsletter-wrap .container {
        text-align: center;
    }

    .footer-newsletter-form {
        max-width: 100%;
        flex-direction: column;
    }

    .footer-newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .search-panel {
        border-radius: var(--hms-radius-md, 8px);
        padding: 0.65rem 0.75rem;
    }
}

@media (max-width: 767.98px) {

    .direct-booking-banner__inner {
        grid-template-columns: 1fr;
        padding: 1.25rem 1.15rem;
    }

    .booking-topbar {
        display: none !important;
    }

    .admin-shell,
    .customer-shell {
        display: block;
    }

    .admin-sidebar,
    .customer-sidebar {
        width: 100%;
        min-height: auto;
        position: sticky;
        top: 0;
        z-index: 1045;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 4px 18px rgba(var(--theme-primary-rgb), 0.14);
    }

    .admin-brand--logo-only .admin-brand-logo,
    .customer-brand--logo-only .customer-brand-logo {
        max-height: 2.5rem;
        max-width: 130px;
    }

    .admin-brand--logo-only .admin-logo-icon,
    .customer-brand--logo-only .customer-logo-icon {
        height: 2.5rem;
        width: auto;
        max-width: 3rem;
    }

    .admin-sidebar-toggle,
    .customer-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: none;        
        background: none;
        color: #fff;
        font-size: 1.45rem;
        line-height: 1;
        cursor: pointer;
        transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }

    .admin-sidebar-toggle:hover,
    .admin-sidebar-toggle:focus-visible,
    .customer-sidebar-toggle:hover,
    .customer-sidebar-toggle:focus-visible {
        background: none;
        border: none;
        color: #fff;
        outline: none;
    }

    .admin-menu,
    .customer-menu {
        display: none;
        flex: none;
        max-height: min(70vh, calc(100dvh - 4.5rem));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .admin-sidebar.is-menu-open .admin-menu,
    .customer-sidebar.is-menu-open .customer-menu {
        display: block;
    }

    .admin-sidebar-backdrop,
    .customer-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(15, 17, 18, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .admin-sidebar-backdrop.is-visible,
    .customer-sidebar-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-header,
    .customer-header {
        position: static;
    }

    body.admin-sidebar-open,
    body.customer-sidebar-open {
        overflow: hidden;
    }

    .customer-logout-form {
        width: 100%;
    }

    .admin-header .dashboard-header-actions,
    .customer-header .dashboard-header-actions {
        width: auto !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem;
        margin-left: auto;
    }

    .admin-header .dashboard-header-actions:has(.dashboard-header-voice-slot),
    .admin-header .dashboard-header-actions:has(.dashboard-header-toolbar),
    .customer-header .dashboard-header-actions.dashboard-header-toolbar {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        margin-left: auto;
    }

    .admin-header .dashboard-header-actions .dashboard-profile-menu-wrap,
    .customer-header .dashboard-header-actions .dashboard-profile-menu-wrap {
        width: auto !important;
        margin-left: 0;
        justify-content: flex-end;
    }

    .dashboard-header-toolbar .hms-notification-bell,
    .customer-header .dashboard-header-actions .hms-notification-bell {
        flex: none;
        width: auto;
    }

    .customer-header .dashboard-header-actions .btn {
        flex: none;
    }

    .admin-main .dashboard-profile-menu-wrap,
    .customer-main .dashboard-profile-menu-wrap {
        flex-shrink: 0;
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .admin-header .dashboard-profile-name,
    .customer-header .dashboard-profile-name {
        display: none;
    }

    .booking-topbar__sep {
        display: none;
    }

    .booking-topbar__support {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .brand-logo-wrap {
        max-width: calc(100vw - 5.5rem);
    }

    .brand-logo-text strong {
        font-size: 0.95rem;
    }

    .hero-wrap {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .hero-wrap .display-6 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .search-panel .form-control,
    .search-panel .form-select {
        min-height: 44px;
    }

    .property-gallery-carousel .carousel-control-prev,
    .property-gallery-carousel .carousel-control-next {
        width: 12%;
    }

    .room-gallery-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .overview .btn-outline-primary,
    .overview .btn-primary {
        width: 100%;
    }

    /*
     * Portal-wide mobile actions — every .btn stacks full-width, one per line.
     * Excludes profile avatar toggle, close buttons, sidebar toggle, and dropdown menu items.
     */
    .admin-shell .admin-main .btn:not(.dashboard-profile-toggle):not(.btn-close):not(.hms-voice-trigger):not(.hms-notification-bell__toggle),
    .admin-shell .admin-main a.btn:not(.dashboard-profile-toggle):not(.hms-voice-trigger):not(.hms-notification-bell__toggle),
    .admin-shell .admin-main button.btn:not(.dashboard-profile-toggle):not(.btn-close):not(.hms-voice-trigger):not(.hms-notification-bell__toggle),
    .admin-shell .admin-main input.btn:not(.dashboard-profile-toggle):not(.hms-voice-trigger):not(.hms-notification-bell__toggle),
    .admin-shell .admin-header .btn:not(.dashboard-profile-toggle):not(.btn-close):not(.hms-voice-trigger):not(.hms-notification-bell__toggle),
    .admin-shell .admin-header a.btn:not(.dashboard-profile-toggle):not(.hms-voice-trigger):not(.hms-notification-bell__toggle),
    .admin-shell .admin-header input.btn:not(.dashboard-profile-toggle):not(.hms-voice-trigger):not(.hms-notification-bell__toggle),
    .customer-shell .customer-main .btn:not(.dashboard-profile-toggle):not(.btn-close):not(.hms-notification-bell__toggle),
    .customer-shell .customer-main a.btn:not(.dashboard-profile-toggle):not(.hms-notification-bell__toggle),
    .customer-shell .customer-main button.btn:not(.dashboard-profile-toggle):not(.btn-close):not(.hms-notification-bell__toggle),
    .customer-shell .customer-main input.btn:not(.dashboard-profile-toggle):not(.hms-notification-bell__toggle),
    .customer-shell .customer-header .btn:not(.dashboard-profile-toggle):not(.btn-close):not(.hms-notification-bell__toggle),
    .customer-shell .customer-header a.btn:not(.dashboard-profile-toggle):not(.hms-notification-bell__toggle),
    .customer-shell .customer-header input.btn:not(.dashboard-profile-toggle):not(.hms-notification-bell__toggle) {
        display: block !important;
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    .admin-shell .admin-main .dropdown-menu .btn,
    .admin-shell .admin-main .dropdown-menu .dropdown-item,
    .admin-shell .admin-header .dropdown-menu .btn,
    .admin-shell .admin-header .dropdown-menu .dropdown-item,
    .customer-shell .customer-main .dropdown-menu .btn,
    .customer-shell .customer-main .dropdown-menu .dropdown-item,
    .customer-shell .customer-header .dropdown-menu .btn,
    .customer-shell .customer-header .dropdown-menu .dropdown-item {
        display: block;
        width: 100%;
        margin-bottom: 0;
    }

    .admin-shell .admin-main .btn-group,
    .admin-shell .admin-header .btn-group,
    .customer-shell .customer-main .btn-group,
    .customer-shell .customer-header .btn-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 0.35rem;
    }

    .admin-shell .admin-main .btn-group > .btn,
    .admin-shell .admin-header .btn-group > .btn,
    .customer-shell .customer-main .btn-group > .btn,
    .customer-shell .customer-header .btn-group > .btn {
        border-radius: var(--bs-btn-border-radius, 0.375rem) !important;
    }

    .admin-shell .admin-main .d-flex:has(> .btn),
    .admin-shell .admin-main .d-flex:has(> a.btn),
    .admin-shell .admin-main .d-inline-flex:has(> .btn),
    .admin-shell .admin-main .d-inline-flex:has(> a.btn),
    .admin-shell .admin-header .d-flex:not(.dashboard-header-actions):not(.dashboard-header-toolbar):has(> .btn),
    .admin-shell .admin-header .d-flex:not(.dashboard-header-actions):not(.dashboard-header-toolbar):has(> a.btn),
    .customer-shell .customer-main .d-flex:has(> .btn),
    .customer-shell .customer-main .d-flex:has(> a.btn),
    .customer-shell .customer-header .d-flex:not(.dashboard-header-actions):not(.dashboard-header-toolbar):has(> .btn),
    .customer-shell .customer-header .d-flex:not(.dashboard-header-actions):not(.dashboard-header-toolbar):has(> a.btn) {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }

    /* Admin portal — shared page toolbars */
    .admin-shell .admin-main > .d-flex.justify-content-between,
    .admin-shell .admin-main > .d-flex.flex-wrap.justify-content-between,
    .admin-shell .admin-main > .d-block.d-sm-flex.justify-content-between,
    .customer-shell .customer-main > .d-flex.justify-content-between,
    .customer-shell .customer-main > .d-flex.flex-wrap.justify-content-between,
    .customer-shell .customer-main > .d-block.d-sm-flex.justify-content-between,
    .customer-shell .customer-main [class*="-page"] > .d-flex.justify-content-between,
    .customer-shell .customer-main [class*="-page"] > .d-flex.flex-wrap.justify-content-between {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .admin-shell .admin-main > .d-flex.justify-content-between > .btn,
    .admin-shell .admin-main > .d-flex.justify-content-between > a.btn,
    .admin-shell .admin-main > .d-flex.flex-wrap.justify-content-between > .btn,
    .admin-shell .admin-main > .d-flex.flex-wrap.justify-content-between > a.btn,
    .admin-shell .admin-main > .d-block.d-sm-flex.justify-content-between > a.btn,
    .admin-shell .admin-main > .d-block.d-sm-flex.justify-content-between > .btn,
    .customer-shell .customer-main > .d-flex.justify-content-between > .btn,
    .customer-shell .customer-main > .d-flex.justify-content-between > a.btn,
    .customer-shell .customer-main > .d-flex.flex-wrap.justify-content-between > .btn,
    .customer-shell .customer-main > .d-flex.flex-wrap.justify-content-between > a.btn,
    .customer-shell .customer-main > .d-block.d-sm-flex.justify-content-between > a.btn,
    .customer-shell .customer-main > .d-block.d-sm-flex.justify-content-between > .btn,
    .customer-shell .customer-main [class*="-page"] > .d-flex.justify-content-between > .btn,
    .customer-shell .customer-main [class*="-page"] > .d-flex.justify-content-between > a.btn,
    .customer-shell .customer-main [class*="-page"] > .d-flex.flex-wrap.justify-content-between > .btn,
    .customer-shell .customer-main [class*="-page"] > .d-flex.flex-wrap.justify-content-between > a.btn {
        width: 100%;
    }

    .admin-shell .admin-main > .d-flex.flex-wrap.justify-content-between > .d-flex,
    .admin-shell .admin-main > .d-flex.flex-wrap.justify-content-between > .d-flex.flex-wrap,
    .customer-shell .customer-main > .d-flex.flex-wrap.justify-content-between > .d-flex,
    .customer-shell .customer-main > .d-flex.flex-wrap.justify-content-between > .d-flex.flex-wrap,
    .customer-shell .customer-main [class*="-page"] > .d-flex.flex-wrap.justify-content-between > .d-flex,
    .customer-shell .customer-main [class*="-page"] > .d-flex.flex-wrap.justify-content-between > .d-flex.flex-wrap {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem !important;
    }

    .admin-shell .admin-main > .d-flex.flex-wrap.justify-content-between > .d-flex .btn,
    .admin-shell .admin-main > .d-flex.flex-wrap.justify-content-between > .d-flex.flex-wrap .btn,
    .customer-shell .customer-main > .d-flex.flex-wrap.justify-content-between > .d-flex .btn,
    .customer-shell .customer-main > .d-flex.flex-wrap.justify-content-between > .d-flex.flex-wrap .btn,
    .customer-shell .customer-main [class*="-page"] > .d-flex.flex-wrap.justify-content-between > .d-flex .btn,
    .customer-shell .customer-main [class*="-page"] > .d-flex.flex-wrap.justify-content-between > .d-flex.flex-wrap .btn {
        width: 100%;
    }

    /* Filter / search rows */
    .admin-shell .admin-main > form.row .btn,
    .customer-shell .customer-main > form.row .btn {
        width: 100%;
    }

    .admin-shell .admin-main > form.row .d-flex.gap-2,
    .customer-shell .customer-main > form.row .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    /* Card headers & form footers */
    .admin-shell .card-header.d-flex.justify-content-between,
    .customer-shell .card-header.d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
    }

    .admin-shell .card-header.d-flex.justify-content-between .btn,
    .customer-shell .card-header.d-flex.justify-content-between .btn {
        width: 100%;
    }

    .admin-shell .card-footer.d-flex.justify-content-between,
    .customer-shell .card-footer.d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
    }

    .admin-shell .card-footer.d-flex.justify-content-between .btn,
    .customer-shell .card-footer.d-flex.justify-content-between .btn {
        width: 100%;
    }

    /* KPI rows — full-width stat cards */
    .admin-shell .row.g-3 > .col-6.col-md,
    .admin-shell .row.g-3 > .col-6.col-md-3,
    .admin-shell .row.g-3.mb-4 > .col-6,
    .customer-shell .row.g-3 > .col-sm-6,
    .customer-shell .row.g-3 > .col-6.col-md-3,
    .customer-shell .row.g-3.mb-4 > .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Quick links & setup module buttons */
    .admin-shell .configuration-modules .btn,
    .admin-shell .configuration-modules a,
    .admin-shell .card-body.d-flex.flex-wrap.gap-2 .quick-link-pill {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }

    .admin-shell .card-body.d-flex.flex-wrap.gap-2 {
        display: block !important;
    }

    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 0.35rem;
        display: block !important;
        column-count: 2;
    }

    .admin-tabs .nav-item {
        flex: 0 0 auto;
        min-width: 7.5rem;
    }

    .admin-tabs .nav-link {
        min-height: 4.25rem;
    }

    .setup-choice-grid {
        grid-template-columns: 1fr;
    }

    .customer-laundry-status-track {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-laundry-status-step {
        flex-direction: row;
        min-width: 0;
        text-align: left;
    }

    .customer-laundry-status-line {
        display: none;
    }

    th.room-calendar-room-col,
    .room-calendar-room-col,
    .room-calendar-room-cell {
        width: 50px;
        min-width: 50px;
    }

    .room-calendar-date-col {
        min-width: 64px;
        width: 64px;
    }

    .room-calendar-scroll {
        max-height: none;
    }

    .booking-calendar-workspace {
        min-height: calc(100dvh - 12rem);
    }

    .room-calendar-legend-items {
       display: block !important    ;
       column-count: 3;
    }

    .room-calendar-nav .prev,
    .room-calendar-nav .next,
    .room-calendar-nav .btn,
    .room-calendar-nav .room-calendar-range {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center;
    }

    .room-calendar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .hk-module .admin-tabs {
        column-count: 1 !important;
    }

    .admin-table-actions .btn {
        width: 100% !important;
        margin-bottom: 5px !important;
    }

    .admin-shell .admin-table-actions form {
        display: block;
        width: 100%;
    }

    .admin-shell .admin-data-table .text-end .btn,
    .admin-shell .admin-data-table .admin-table-actions .btn {
        display: block;
        width: 100% !important;
        margin-bottom: 5px !important;
    }

    .admin-shell .admin-data-table .text-end,
    .admin-shell .admin-data-table .admin-table-actions {
        text-align: left !important;
        white-space: normal;
    }

    .checkout-progress {
        justify-content: space-evenly !important;
    }
    
}

@media (max-width: 575.98px) {
    .booking-topbar__location,
    .booking-topbar__support {
        font-size: 0.75rem;
    }

    .brand-logo-text small {
        display: none;
    }

    .hero-wrap .display-6 {
        font-size: 1.25rem;
    }

    .search-panel__form {
        --bs-gutter-x: 0.5rem;
    }

    .rooms-carousel {
        padding: 0 0.25rem;
    }

    .rooms-carousel__control {
        width: 1.75rem;
    }

    .room-gallery-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rooms-listing-page .listing-search-form .row > [class*="col-"] {
        width: 100%;
    }

    .rooms-listing-page .listing-result__aside {
        flex-direction: column;
        align-items: stretch !important;
    }

    .rooms-listing-page .listing-result__aside .btn {
        width: 100% !important;
        flex: none;
    }
}

/* Setup wizard */
.setup-wizard-page {
    background: radial-gradient(
        circle at top right,
        var(--hms-tint-accent-strong) 0%,
        var(--hms-surface-alt) 45%,
        var(--hms-bg) 100%
    );
    min-height: 100vh;
    color: var(--hms-text);
}

.setup-wizard-wrap {
    max-width: 940px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.setup-wizard-hero {
    text-align: center;
    margin-bottom: 1.75rem;
}

.setup-wizard-hero__icon {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hms-accent), var(--hms-primary));
    color: var(--hms-on-accent);
    box-shadow: 0 12px 28px rgba(var(--theme-accent-rgb), 0.28);
    font-size: 1.65rem;
    margin-bottom: 1rem;
}

.setup-wizard-hero h1 {
    font-weight: 800;
    color: var(--hms-primary);
    margin-bottom: 0.5rem;
}

.setup-wizard-hero p {
    color: var(--hms-text-muted);
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

.setup-wizard-card {
    border: 1px solid var(--hms-border);
    border-radius: 1.15rem;
    box-shadow: 0 18px 42px rgba(var(--theme-primary-rgb), 0.1);
    background: var(--hms-surface);
    overflow: hidden;
}

.setup-wizard-card .interactive-form {
    background: transparent;
    border-radius: 0;
    padding: 1.25rem 1.35rem 1.35rem;
}

.setup-wizard-card__intro {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.25rem 1.35rem 0;
    padding: 1.15rem 1.25rem;
    border: 1px solid #dce6f8;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f8fbff 0%, #f3f7ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.setup-wizard-card__intro-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
}

.setup-wizard-card__intro-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hms-primary, #1e3a8a);
    line-height: 1.3;
}

.setup-wizard-card__intro-text {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 42rem;
}

.setup-wizard-alert {
    border-radius: 0.85rem;
    border: 0;
    box-shadow: 0 6px 18px rgba(var(--theme-primary-rgb), 0.06);
}

.setup-demo-import {
    margin-bottom: 1.25rem;
}

.setup-choice-panel {
    margin-bottom: 1.25rem;
}

.setup-choice-panel__heading {
    margin-bottom: 1rem;
}

.setup-choice-panel__heading p {
    color: #64748b;
}

.setup-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.setup-choice-card {
    height: 100%;
    margin-bottom: 0;
}

.setup-demo-import__icon--fresh {
    background: #0f766e;
}

.setup-demo-import__card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.35rem;
    border: 1px solid #cfe0ff;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #f5f9ff 0%, #eef4ff 100%);
    box-shadow: 0 12px 28px rgba(var(--theme-primary-rgb), 0.08);
}

.setup-demo-import__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hms-primary, #101213);
    color: #fff;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.setup-demo-import__body p,
.setup-demo-import__body li {
    color: #475569;
}

.setup-demo-import__list {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.setup-demo-import__divider {
    text-align: center;
    margin: 1rem 0 0.25rem;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.setup-progress-panel {
    background: linear-gradient(180deg, var(--hms-tint-primary) 0%, var(--hms-surface) 100%);
    border: 1px solid #e4ebf8;
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.35rem;
}

.setup-progress-panel .checkout-progress {
    justify-content: center;
}

.setup-progress-panel .checkout-progress__label {
    font-weight: 600;
}

.setup-step-panel {
    margin-bottom: 0;
    border-color: #dce6f8;
    box-shadow: 0 8px 22px rgba(var(--theme-primary-rgb), 0.06);
}

.setup-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.setup-step-heading__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 6px 16px rgba(var(--theme-primary-rgb), 0.12);
}

.setup-step-heading--branding .setup-step-heading__icon {
    background: linear-gradient(135deg, var(--hms-accent), var(--hms-primary));
}

.setup-step-heading--contact .setup-step-heading__icon {
    background: linear-gradient(135deg, #16a34a, #059669);
}

.setup-step-heading--admin .setup-step-heading__icon {
    background: linear-gradient(135deg, #d97706, #ea580c);
}

.setup-step-heading--branding {
    background: linear-gradient(90deg, var(--hms-tint-accent) 0%, var(--hms-surface) 100%);
    border-left-color: var(--hms-accent);
}

.setup-step-heading--contact {
    background: linear-gradient(90deg, #e8fbf1 0%, #f4fff9 100%);
    border-left-color: #16a34a;
}

.setup-step-heading--admin {
    background: linear-gradient(90deg, #fff3dd 0%, #fffaf0 100%);
    border-left-color: #d97706;
}

.setup-step {
    display: none;
    animation: setupWizardFadeIn 0.28s ease;
}

.setup-step.is-active {
    display: block;
}

@keyframes setupWizardFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.setup-field-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.setup-input-wrap {
    position: relative;
}

.setup-input-wrap .setup-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8ba6;
    pointer-events: none;
    font-size: 1rem;
    z-index: 2;
}

.setup-input-wrap .form-control,
.setup-input-wrap .form-select {
    padding-left: 2.45rem;
    border-radius: 0.75rem;
    border-color: #d7e0f1;
    background: #fcfdff;
    min-height: 2.65rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.setup-input-wrap textarea.form-control {
    padding-top: 0.7rem;
    min-height: auto;
}

.setup-input-wrap .form-control:focus,
.setup-input-wrap .form-select:focus,
.setup-wizard-card textarea.form-control:focus {
    border-color: var(--hms-accent);
    background: #fff;
    box-shadow: 0 0 0 0.2rem var(--hms-focus-ring);
}

.setup-input-wrap .form-control.is-invalid,
.setup-input-wrap .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.12);
}

.setup-input-wrap--password .form-control {
    padding-right: 2.6rem;
}

.setup-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #7b8ba6;
    font-size: 1rem;
    padding: 0.2rem;
    cursor: pointer;
    z-index: 2;
}

.setup-password-toggle:hover {
    color: var(--hms-primary);
}

.setup-wizard-card textarea.form-control {
    border-radius: 0.75rem;
    border-color: #d7e0f1;
    background: #fcfdff;
}

.setup-wizard-card .form-text {
    color: #7b8ba6;
    font-size: 0.8rem;
}

.setup-wizard-card input:-webkit-autofill,
.setup-wizard-card textarea:-webkit-autofill,
.setup-wizard-card select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fcfdff inset;
    box-shadow: 0 0 0 1000px #fcfdff inset;
    -webkit-text-fill-color: #1e293b;
    caret-color: #1e293b;
    transition: background-color 99999s ease-out 0s;
}

.setup-wizard-card input.form-control,
.setup-wizard-card textarea.form-control,
.setup-wizard-card select.form-select {
    color: #1e293b;
}

.setup-wizard-card input.form-control::placeholder,
.setup-wizard-card textarea.form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.setup-logo-field {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
}

.setup-upload-zone {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

.setup-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.setup-upload-zone__inner {
    border: 2px dashed #c9d7ef;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
    padding: 1rem 0.85rem;
    min-height: 6.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.setup-upload-zone:hover .setup-upload-zone__inner,
.setup-upload-zone:focus-within .setup-upload-zone__inner {
    border-color: var(--hms-accent);
    background: #eef4ff;
}

.setup-upload-zone__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.55rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0ff;
    color: var(--hms-accent);
    font-size: 1.25rem;
}

.setup-upload-zone__title {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.15rem;
}

.setup-upload-zone__hint {
    font-size: 0.8rem;
    color: #7b8ba6;
}

.room-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.room-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 7.5rem;
}

.room-gallery-item__img {
    width: 7.5rem;
    height: 5.625rem;
    object-fit: cover;
    border-radius: 0.65rem;
    border: 1px solid #dce6f8;
    background: #f8fbff;
}

.room-gallery-item__caption,
.room-gallery-item__remove {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.2;
    word-break: break-word;
}

.room-gallery-item__remove {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0;
    cursor: pointer;
}

.room-gallery-item.is-marked-remove .room-gallery-item__img {
    opacity: 0.45;
    border-color: #f1aeb5;
}

.setup-logo-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 0 0 5.5rem;
    width: 5.5rem;
    padding: 0.5rem;
    border: 1px solid #dce6f8;
    border-radius: 0.85rem;
    background: #f8fbff;
}

.setup-logo-preview {
    max-height: 3.25rem;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.35rem;
}

.setup-logo-preview-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.setup-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.35rem;
    padding: 1rem 1.15rem;
    border-top: 1px solid #e8eef8;
    background: linear-gradient(180deg, #fafcff 0%, #f3f7ff 100%);
    border-radius: 0 0 1rem 1rem;
    margin-left: -1.35rem;
    margin-right: -1.35rem;
    margin-bottom: -1.35rem;
}

.setup-step-counter {
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    border: 1px solid #dce6f8;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}

.setup-btn-back {
    border-radius: 0.7rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-color: #c9d7ef;
    color: #475569;
}

.setup-btn-back:hover {
    background: #eef4ff;
    border-color: #9eb8e8;
    color: var(--hms-primary);
}

.setup-btn-next,
.setup-btn-submit {
    border-radius: 0.7rem;
    font-weight: 600;
    padding: 0.58rem 1.35rem;
    border: 0;
    background: linear-gradient(135deg, var(--hms-accent), var(--hms-primary));
    box-shadow: 0 8px 20px rgba(var(--theme-accent-rgb), 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.setup-btn-next:hover,
.setup-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(var(--theme-accent-rgb), 0.34);
    background: linear-gradient(135deg, var(--hms-accent), var(--hms-primary));
    color: #fff;
}

@media (max-width: 575.98px) {
    .setup-wizard-card .interactive-form {
        padding: 1rem;
    }

    .setup-nav {
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: -1rem;
        flex-wrap: wrap;
    }

    .setup-step-counter {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .setup-progress-panel .checkout-progress__label {
        display: none;
    }
}

/* Admin settings — reuse setup wizard inside control panel */
.admin-settings-wrap {
    max-width: 920px;
}

.admin-settings-hero {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.admin-settings-hero .setup-wizard-hero__icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.admin-main .admin-settings-wrap .setup-wizard-card {
    border-color: var(--admin-table-head-border);
    box-shadow: 0 12px 32px rgba(var(--theme-primary-rgb), 0.08);
}

.admin-main .admin-settings-wrap .setup-wizard-card .interactive-form {
    background: transparent;
}

@media (max-width: 991.98px) {
    .admin-settings-wrap {
        max-width: none;
        width: 100%;
        min-width: 0;
    }

    .admin-settings-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .admin-main .admin-settings-wrap .setup-wizard-card .interactive-form {
        padding: 1rem;
    }

    .admin-settings-wrap .setup-progress-panel {
        padding: 0.85rem 0.75rem;
        margin-bottom: 1rem;
    }

    .admin-settings-wrap .setup-progress-panel .checkout-progress {
        justify-content: space-between;
        width: 100%;
    }

    .admin-settings-wrap .setup-progress-panel .checkout-progress__label {
        display: none;
    }

    .admin-settings-wrap .setup-progress-panel .checkout-progress__line {
        max-width: 2rem;
        min-width: 1rem;
        flex: 1 1 auto;
    }

    .admin-settings-wrap .setup-step-heading {
        flex-direction: column;
        gap: 0.65rem;
    }

    .admin-settings-wrap .setup-logo-field {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-settings-wrap .setup-logo-preview-wrap {
        flex: none;
        width: 100%;
        max-width: 9rem;
    }

    .admin-settings-wrap .setup-nav {
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: -1rem;
        flex-wrap: wrap;
        padding: 0.85rem 1rem;
        gap: 0.5rem;
    }

    .admin-settings-wrap .setup-step-counter {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 0.15rem;
    }

    .admin-settings-wrap .setup-nav .setup-btn-back,
    .admin-settings-wrap .setup-nav .setup-btn-next,
    .admin-settings-wrap .setup-nav .setup-btn-submit {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .admin-settings-wrap .setup-nav {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .admin-settings-wrap .setup-nav .setup-btn-back,
    .admin-settings-wrap .setup-nav .setup-btn-next,
    .admin-settings-wrap .setup-nav .setup-btn-submit {
        width: 100% !important;
        flex: none;
        margin-bottom: 0 !important;
    }
}

.admin-main .alert-success,
.admin-main .alert-danger {
    border-radius: 0.85rem;
    border: 0;
    box-shadow: 0 6px 18px rgba(var(--theme-primary-rgb), 0.06);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Room Calendar / Availability Grid
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.room-calendar-filters {
    background: var(--admin-surface);
    border: 1px solid var(--admin-card-border);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(var(--theme-primary-rgb), 0.06);
}

.room-calendar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.room-calendar-legend {
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.05);
}

.room-calendar-legend .card-body {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.room-calendar-legend-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hms-text-muted);
    margin-right: 0.25rem;
}

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

.legend-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.legend-swatch--available {
    background: #fff;
    border-color: #d8e2f0;
}

.legend-swatch--pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.legend-swatch--confirmed {
    background: linear-gradient(135deg, var(--hms-tint-accent-strong), color-mix(in srgb, var(--hms-accent) 28%, #fff));
}

.legend-swatch--occupied {
    background: linear-gradient(135deg, var(--hms-accent), var(--hms-accent-dark));
}

.legend-swatch--maintenance {
    background: repeating-linear-gradient(-45deg, #fff7ed, #fff7ed 4px, #fed7aa 4px, #fed7aa 8px);
    border-color: #fb923c;
}

.legend-swatch--out-of-service {
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
}

.legend-swatch--dirty {
    background: #fffbeb;
    border-color: #fcd34d;
}

.legend-swatch--cleaning {
    background: #eff6ff;
    border-color: #93c5fd;
}

.legend-swatch--clean {
    background: #f0fdf4;
    border-color: #86efac;
}

.legend-swatch--inspected {
    background: var(--hms-tint-accent);
    border-color: var(--hms-accent-light);
}

.room-calendar-card {
    overflow: hidden;
    margin-top: 0;
    position: relative;
}

.room-calendar-card--busy .room-calendar-scroll {
    pointer-events: none;
    opacity: 0.55;
}

.room-calendar-busy-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
}

.room-calendar-busy-overlay[hidden] {
    display: none !important;
}

.room-calendar-busy-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-card-border);
    box-shadow: 0 8px 24px rgba(var(--theme-primary-rgb), 0.12);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hms-text);
}

.room-calendar-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    max-width: min(360px, calc(100vw - 2rem));
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(var(--theme-primary-rgb), 0.16);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.room-calendar-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.room-calendar-toast--info {
    background: var(--hms-tint-accent-strong);
    color: var(--hms-accent-dark);
    border: 1px solid var(--hms-accent-light);
}

.room-calendar-toast--success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.room-calendar-toast--error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.cal-booking--saving {
    opacity: 0.45;
    pointer-events: none;
}

.room-calendar-row--saving {
    outline: 2px solid var(--hms-accent);
    outline-offset: -2px;
}

.room-calendar-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 72px);
}

/* Booking Calendar tab — stretch grid to fill remaining viewport below page chrome */
.admin-main > main.container-fluid:has(.booking-calendar-page) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 1rem !important;
}

.booking-calendar-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.booking-calendar-page > .tab-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.booking-calendar-workspace {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    min-height: 28rem;
}

.booking-calendar-workspace .room-calendar-filters,
.booking-calendar-workspace .room-calendar-nav,
.booking-calendar-workspace .room-calendar-legend {
    flex-shrink: 0;
}

.booking-calendar-workspace .room-calendar-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.booking-calendar-workspace .room-calendar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.room-calendar-grid {
    width: 100%;
    min-width: 1100px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.room-calendar-grid thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--admin-table-head);
    border-bottom: 2px solid var(--admin-card-border);
    padding: 0.55rem 0.3rem;
    text-align: center;
    vertical-align: bottom;
    font-weight: 600;
    font-size: 0.75rem;
}

.room-calendar-room-col {
    position: sticky;
    left: 0;
    z-index: 5;
    width: 168px;
    min-width: 168px;
    text-align: left !important;
    padding-left: 0.85rem !important;
    box-shadow: 2px 0 8px rgba(var(--theme-primary-rgb), 0.07);
}

.room-calendar-date-col {
    min-width: 84px;
    width: 84px;
}

.room-calendar-date-col.is-today {
    background: var(--hms-tint-accent-strong);
    color: var(--hms-accent-dark);
    box-shadow: inset 0 -3px 0 var(--hms-accent);
}

.room-calendar-date-col.is-weekend {
    background: color-mix(in srgb, var(--hms-bg) 55%, var(--admin-table-head));
}

.room-calendar-date-col.is-weekend .room-calendar-dow {
    color: var(--hms-accent-dark);
}

.room-calendar-dow {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--hms-text-muted);
    letter-spacing: 0.03em;
}

.room-calendar-day {
    display: block;
    font-size: 1.05rem;
    line-height: 1.15;
    font-weight: 700;
}

.room-calendar-month {
    display: block;
    font-size: 0.65rem;
    color: var(--hms-text-muted);
}

.room-calendar-grid tbody tr:nth-child(even) .room-calendar-room-cell {
    background: color-mix(in srgb, var(--hms-bg) 35%, var(--admin-surface));
}

.room-calendar-grid tbody tr:nth-child(even) .cal-cell-available {
    background: color-mix(in srgb, var(--hms-bg) 50%, #fff);
}

.room-calendar-room-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--admin-surface);
    border-right: 1px solid var(--admin-border);
    border-bottom: 1px solid #e8edf5;
    padding: 0.55rem 0.85rem;
    vertical-align: middle;
    box-shadow: 2px 0 6px rgba(var(--theme-primary-rgb), 0.04);
}

.room-calendar-room-number {
    font-weight: 700;
    color: var(--hms-text);
    font-size: 0.92rem;
    line-height: 1.25;
}

.room-calendar-room-meta {
    color: var(--hms-text-muted);
    font-size: 0.7rem;
    line-height: 1.3;
}

.room-calendar-hk-badge {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.room-calendar-hk-badge--dirty { background: #fef3c7; color: #b45309; }
.room-calendar-hk-badge--cleaning { background: var(--hms-tint-accent); color: var(--hms-accent-dark); }
.room-calendar-hk-badge--clean { background: #dcfce7; color: #15803d; }
.room-calendar-hk-badge--inspected { background: color-mix(in srgb, var(--hms-accent) 18%, #fff); color: var(--hms-accent-dark); }

/* Housekeeping — blue icons only on module-specific elements (not global buttons) */
.admin-menu-link.hk-nav-link .bi:not(.admin-menu-chevron) {
    color: color-mix(in srgb, var(--hms-accent-light) 85%, #fff);
}

.admin-menu-link.hk-nav-link:hover .bi:not(.admin-menu-chevron),
.admin-menu-link.hk-nav-link.active .bi:not(.admin-menu-chevron) {
    color: #fff;
}

.hk-icon {
    color: var(--hms-accent);
}

.hk-module .kpi-icon {
    background: linear-gradient(135deg, var(--hms-accent), var(--hms-accent-dark));
    color: #fff;
}

.hk-module .hk-form-card .card-header {
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-border);
    font-weight: 600;
    color: var(--hms-primary);
}

.hk-module .hk-form-card .card-body {
    padding: 1.25rem;
}

.hk-module .hk-form-card .form-label {
    font-weight: 500;
    color: var(--hms-text);
}

.hk-task-card .card-header,
.hk-inspection-card .card-header {
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-border);
}

.hk-task-card .card-footer,
.hk-inspection-card .card-footer {
    border-top: 1px solid var(--admin-border);
}

.hk-action-row .btn {
    min-height: 2.5rem;
}

@media (max-width: 575.98px) {
    .hk-task-card .card-body,
    .hk-task-card .card-header,
    .hk-task-card .card-footer,
    .hk-inspection-card .card-body,
    .hk-inspection-card .card-header,
    .hk-inspection-card .card-footer {
        padding: 0.85rem 1rem;
    }
}

.room-calendar-cell {
    border-bottom: 1px solid #e8edf5;
    border-right: 1px solid var(--hms-border-soft);
    padding: 3px;
    height: 58px;
    vertical-align: middle;
}

.room-calendar-cell--booking {
    padding: 3px;
}

.room-calendar-range {
    font-weight: 600;
    color: var(--hms-text);
    font-size: 0.92rem;
}

.cal-cell-available {
    background: #fff;
}

.cal-cell--dirty { background: #fffbeb !important; }
.cal-cell--cleaning { background: #eff6ff !important; }
.cal-cell--clean { background: #f0fdf4 !important; }
.cal-cell--inspected { background: var(--hms-tint-accent) !important; }

.cal-booking {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 7px;
    padding: 0.35rem 0.5rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 1px 4px rgba(var(--theme-primary-rgb), 0.08);
}

.cal-booking:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.14);
    z-index: 1;
}

.cal-booking--compact {
    padding: 0.3rem 0.35rem;
    justify-content: center;
}

.cal-booking--compact {
    position: relative;
}

.cal-booking--compact .cal-booking-guest {
    font-size: 0.68rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    white-space: normal;
    line-height: 1.15;
    padding-right: 0.35rem;
}

.cal-booking-payment-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.cal-booking-payment-dot--paid { background: #16a34a; }
.cal-booking-payment-dot--partial { background: #d97706; }
.cal-booking-payment-dot--unpaid { background: var(--hms-highlight); }

.cal-booking--pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.cal-booking--confirmed {
    background: linear-gradient(135deg, var(--hms-tint-accent-strong), color-mix(in srgb, var(--hms-accent) 28%, #fff));
    color: var(--hms-accent-dark);
    border-left: 3px solid var(--hms-accent);
}

.cal-booking--occupied {
    background: linear-gradient(135deg, var(--hms-accent), var(--hms-accent-dark));
    color: var(--hms-on-accent);
    border-left: 3px solid var(--hms-primary-dark);
}

.cal-booking--checked-out {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #475569;
    border-left: 3px solid #94a3b8;
}

.cal-booking--default {
    background: var(--hms-tint-primary);
    color: var(--hms-text);
    border-left: 3px solid var(--hms-border);
}

.cal-booking-guest {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    width: 100%;
}

.cal-booking-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.2rem;
    width: 100%;
}

.cal-booking-status {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-payment-icon {
    font-size: 0.75rem;
    flex-shrink: 0;
}

.cal-payment-icon--paid { color: #16a34a; }
.cal-payment-icon--partial { color: #d97706; }
.cal-payment-icon--unpaid { color: var(--hms-highlight); }

.cal-booking--occupied .cal-payment-icon--paid,
.cal-booking--occupied .cal-payment-icon--partial,
.cal-booking--occupied .cal-payment-icon--unpaid {
    color: rgba(255, 255, 255, 0.92);
}

.cal-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 50px;
    border-radius: 7px;
    padding: 0.35rem 0.5rem;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.cal-block-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.cal-block-reason {
    font-size: 0.64rem;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.1rem;
}

.cal-block-ticket {
    font-size: 0.6rem;
    font-weight: 600;
    opacity: 0.75;
    margin-top: 0.1rem;
}

.room-calendar-row--drag-over .room-calendar-room-cell,
.room-calendar-row--drag-over .room-calendar-cell {
    background: var(--hms-tint-accent) !important;
    outline: 2px dashed var(--hms-accent);
    outline-offset: -2px;
}

.cal-booking--dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.cal-booking[draggable="true"] {
    cursor: grab;
}

.cal-block--maintenance {
    background: repeating-linear-gradient(
        -45deg,
        #fff7ed,
        #fff7ed 6px,
        #fed7aa 6px,
        #fed7aa 12px
    );
    color: #c2410c;
    border: 1px dashed #fb923c;
}

.cal-block--owner {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #5b21b6;
}

.cal-block--staff {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
}

.cal-block--out-of-service {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #64748b;
    border: 1px dashed #94a3b8;
}

.cal-block-remove {
    position: absolute;
    top: 3px;
    right: 5px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.cal-block:hover .cal-block-remove {
    opacity: 1;
}

.cal-block-remove .btn-link {
    color: inherit;
    opacity: 0.7;
    font-size: 0.7rem;
    text-decoration: none;
}

.cal-block-remove .btn-link:hover {
    opacity: 1;
}

/* Website room availability badges */
.room-availability-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.room-availability-badge--available {
    background: #dcfce7;
    color: #15803d;
}

.room-availability-badge--booked {
    background: #fef3c7;
    color: #b45309;
}

.room-availability-badge--occupied {
    background: color-mix(in srgb, var(--hms-accent) 18%, #fff);
    color: var(--hms-accent-dark);
}

.room-availability-badge--blocked {
    background: #f1f5f9;
    color: #64748b;
    border: 1px dashed #94a3b8;
}

.room-calendar-filters .form-label {
    font-size: 0.72rem;
    font-weight: 600;
}

/* Front desk arrivals / departures — room-grouped scrollable list */
.front-desk-guest-card {
    overflow: hidden;
    margin-top: 0;
}

.front-desk-guest-scroll {
    overflow: auto;
    max-height: calc(100vh - 320px);
}

.front-desk-guest-grid {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    table-layout: fixed;
}

.front-desk-guest-grid thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--admin-table-head-bg, var(--admin-table-head));
    color: var(--admin-table-head-text);
    border-bottom: 2px solid var(--admin-table-head-border, var(--admin-card-border));
    padding: 0.8rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-align: left;
    vertical-align: middle;
}

.front-desk-guest-grid thead th.text-end {
    text-align: right;
}

.front-desk-guest-grid tbody td {
    padding: 0.8rem 0.85rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--admin-table-row-border, #e8edf5);
    background: var(--admin-surface, #fff);
    font-size: 0.88rem;
}

.front-desk-room-col,
.front-desk-room-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 168px;
    min-width: 168px;
    max-width: 168px;
    background: var(--admin-surface, #fff);
    border-right: 1px solid var(--admin-table-row-border, #e8edf5);
    box-shadow: 2px 0 6px rgba(var(--theme-primary-rgb), 0.04);
    vertical-align: top;
    overflow: visible;
}

.front-desk-guest-grid thead th.front-desk-room-col {
    z-index: 5;
    left: 0;
}

.front-desk-guest-row--alt td {
    background: rgba(248, 250, 252, 0.9);
}

.front-desk-guest-row--alt .front-desk-room-cell {
    background: color-mix(in srgb, var(--hms-bg) 40%, var(--admin-surface, #fff));
}

.front-desk-guest-row:hover td:not(.front-desk-room-cell) {
    background: var(--hms-tint-primary);
}

.front-desk-guest-row:hover .front-desk-room-cell {
    background: color-mix(in srgb, var(--hms-tint-primary) 70%, var(--admin-surface, #fff));
}

.front-desk-guest-row--vacant .front-desk-guest-empty {
    color: var(--hms-text-muted);
    font-size: 0.88rem;
    font-style: italic;
    vertical-align: middle;
}

.front-desk-guest-cell {
    min-width: 140px;
}

.front-desk-guest-name {
    display: block;
    font-weight: 600;
    color: var(--hms-text);
    line-height: 1.35;
}

.front-desk-guest-phone {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--hms-text-muted);
}

.front-desk-notes-cell {
    font-size: 0.82rem;
    color: var(--hms-text-muted);
}

.front-desk-actions-col {
    width: 240px;
    min-width: 240px;
}

.front-desk-actions-cell {
    text-align: right;
    vertical-align: middle;
    white-space: normal;
}

.front-desk-actions-toolbar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    max-width: 100%;
}

.front-desk-actions-toolbar > form {
    display: inline-flex;
    margin: 0;
}

.front-desk-actions-toolbar .btn-sm {
    padding: 0.32rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: 8px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Front desk — Update room menu (custom floating panel; avoids sticky-table Popper bugs) */
.front-desk-room-dropdown {
    position: relative;
    width: 100%;
}

.front-desk-room-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    padding: 0.32rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: 8px;
    line-height: 1.2;
    white-space: nowrap;
    background: var(--admin-surface, #fff);
    border-color: var(--admin-card-border, #d8dee9);
    color: var(--hms-text);
}

.front-desk-room-dropdown-toggle:hover,
.front-desk-room-dropdown-toggle:focus {
    background: var(--admin-surface, #fff);
    border-color: color-mix(in srgb, var(--bs-primary, #A47D37) 45%, var(--admin-card-border, #d8dee9));
    color: var(--hms-text);
}

.front-desk-room-dropdown.is-open .front-desk-room-dropdown-toggle {
    background: color-mix(in srgb, var(--bs-primary, #A47D37) 8%, var(--admin-surface, #fff));
    border-color: var(--bs-primary, #A47D37);
    color: var(--bs-primary, #A47D37);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.12);
}

.front-desk-room-dropdown-caret {
    font-size: 0.7rem;
    opacity: 0.75;
    transition: transform 0.15s ease;
}

.front-desk-room-dropdown.is-open .front-desk-room-dropdown-caret {
    transform: rotate(180deg);
}

.front-desk-room-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    min-width: 11.75rem;
    max-height: min(70vh, 22rem);
    overflow-y: auto;
    background: var(--admin-surface, #fff);
    border: 1px solid var(--admin-card-border, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(var(--theme-primary-rgb), 0.14);
}

.front-desk-room-dropdown-menu--floating {
    position: fixed;
    z-index: 1080;
}

.front-desk-room-dropdown-label {
    display: block;
    padding: 0.35rem 0.85rem 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hms-text-muted);
}

.front-desk-room-dropdown-divider {
    height: 1px;
    margin: 0.35rem 0;
    background: var(--admin-card-border, #e8edf5);
}

.front-desk-room-dropdown-menu form {
    display: block;
    width: 100%;
    margin: 0;
}

.front-desk-room-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.45rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 500;
    text-align: left;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--hms-text);
}

.front-desk-room-dropdown-item:hover,
.front-desk-room-dropdown-item:focus {
    background-color: var(--hms-tint-primary, rgba(13, 110, 253, 0.08));
    color: var(--hms-text);
}

.front-desk-room-dropdown-item.is-active {
    background-color: var(--bs-primary, #A47D37);
    color: #fff;
}

.front-desk-room-cell-actions .front-desk-room-dropdown {
    width: 100%;
}

.front-desk-actions-cell,
.front-desk-room-cell-actions {
    overflow: visible;
}

.front-desk-guest-grid tbody td {
    overflow: visible;
}

.front-desk-guest-grid .admin-cell-money {
    text-align: right;
}

/* Front desk — modern segmented section tabs */
.admin-tabs {
    --admin-tabs-track: color-mix(in srgb, var(--hms-text) 5%, var(--admin-surface, #fff));
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.4rem;
    margin-bottom: 1.5rem !important;
    list-style: none;
    background: var(--admin-tabs-track);
    border: 1px solid color-mix(in srgb, var(--admin-card-border, var(--hms-border)) 75%, transparent);
    border-radius: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 10px 28px rgba(var(--theme-primary-rgb), 0.06);
}

.admin-tabs .nav-item {
    flex: 1 1 11rem;
    margin-bottom: 0;
}

.admin-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3.1rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--hms-text-muted);
    background: transparent;
    border: 1px solid transparent !important;
    border-radius: 14px;
    margin-bottom: 0;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-tabs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 11px;
    background: color-mix(in srgb, var(--hms-accent) 7%, transparent);
    color: var(--hms-accent);
    font-size: 1.02rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-tabs__label {
    text-align: left;
    white-space: nowrap;
}

.admin-tabs .nav-link:hover,
.admin-tabs .nav-link:focus-visible {
    color: var(--hms-text);
    background: color-mix(in srgb, var(--admin-surface, #fff) 72%, transparent);
    border-color: color-mix(in srgb, var(--hms-accent) 12%, transparent) !important;
}

.admin-tabs .nav-link:hover .admin-tabs__icon,
.admin-tabs .nav-link:focus-visible .admin-tabs__icon {
    background: color-mix(in srgb, var(--hms-accent) 14%, transparent);
    color: var(--hms-accent-dark);
}

.admin-tabs .nav-link.active {
    color: var(--hms-text);
    background: var(--admin-surface, #fff);
    border-color: color-mix(in srgb, var(--hms-accent) 18%, var(--admin-card-border)) !important;
    box-shadow:
        0 1px 2px rgba(var(--theme-primary-rgb), 0.05),
        0 8px 20px rgba(var(--theme-primary-rgb), 0.08);
    transform: translateY(-1px);
}

.admin-tabs .nav-link.active .admin-tabs__icon {
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--hms-accent) 88%, #fff),
        color-mix(in srgb, var(--hms-accent-dark) 75%, #000)
    );
    color: var(--hms-on-accent);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--hms-accent) 35%, transparent);
}

.admin-tabs .nav-link.active .admin-tabs__label {
    color: var(--hms-accent-dark);
}

@media (max-width: 991.98px) {
    .admin-tabs .nav-link {
        flex-direction: column;
        gap: 0.4rem;
        min-height: 4.5rem;
        padding: 0.65rem 0.55rem;
    }

    .admin-tabs__label {
        font-size: 0.78rem;
        text-align: center;
        white-space: normal;
        line-height: 1.25;
    }
}

/* Front desk — Book Now guest type (matches segmented tabs) */
.front-desk-guest-type-card {
    border: 1px solid color-mix(in srgb, var(--admin-card-border, var(--hms-border)) 75%, transparent);
    box-shadow: 0 8px 22px rgba(var(--theme-primary-rgb), 0.05);
}

.front-desk-guest-type-card .card-body {
    background: var(--admin-surface, #fff);
}

.front-desk-guest-type-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hms-text-muted);
}

.front-desk-guest-type {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem;
    background: color-mix(in srgb, var(--hms-text) 5%, var(--admin-surface, #fff));
    border: 1px solid color-mix(in srgb, var(--admin-card-border, var(--hms-border)) 75%, transparent);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.front-desk-guest-type-option {
    margin: 0;
    cursor: pointer;
}

.front-desk-guest-type-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.front-desk-guest-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--hms-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.front-desk-guest-type-pill i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--hms-accent);
    background: color-mix(in srgb, var(--hms-accent) 8%, transparent);
}

.front-desk-guest-type-option:hover .front-desk-guest-type-pill {
    color: var(--hms-text);
    background: color-mix(in srgb, var(--admin-surface, #fff) 70%, transparent);
}

.front-desk-guest-type-input:focus-visible + .front-desk-guest-type-pill {
    outline: 2px solid var(--hms-accent-light);
    outline-offset: 2px;
}

.front-desk-guest-type-input:checked + .front-desk-guest-type-pill {
    color: var(--hms-accent-dark);
    background: var(--admin-surface, #fff);
    border-color: color-mix(in srgb, var(--hms-accent) 18%, var(--admin-card-border));
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.08);
}

.front-desk-guest-type-input:checked + .front-desk-guest-type-pill i {
    color: var(--hms-on-accent);
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--hms-accent) 88%, #fff),
        color-mix(in srgb, var(--hms-accent-dark) 75%, #000)
    );
}

.front-desk-folio-table thead th {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hms-text-muted);
    border-bottom-width: 1px;
}

.front-desk-folio-table tfoot th {
    font-size: 0.82rem;
    border-top: 1px solid var(--admin-card-border, #e8edf5);
}

@media (max-width: 991.98px) {
    .front-desk-guest-scroll {
        max-height: calc(100vh - 280px);
    }
}

/* Laundry order — per-piece garment lines table */
.laundry-piece-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.laundry-piece-picker .form-select {
    min-width: min(100%, 280px);
    flex: 1 1 220px;
}

.laundry-order-lines-table {
    font-size: 0.875rem;
}

.laundry-order-lines-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.laundry-order-qty-col {
    width: 4.5rem;
}

.laundry-order-actions-col {
    width: 7.5rem;
}

.laundry-order-qty {
    display: inline-block;
    min-width: 1.75rem;
    font-weight: 700;
}

.laundry-order-line-actions .btn {
    padding: 0.2rem 0.45rem;
}

.laundry-order-line-name .fw-semibold {
    color: var(--bs-body-color);
}

.laundry-piece-order-total {
    font-size: 0.95rem;
}

/* Shop receipt — print layout (hide admin chrome, commission, sidebar) */
@media print {
    @page {
        margin: 12mm;
    }

    body.booking-body {
        background: #fff !important;
    }

    .admin-sidebar,
    .admin-header,
    .app-dashboard-footer,
    .admin-shell .alert,
    .shop-receipt-no-print,
    .hms-receipt-no-print,
    .d-print-none {
        display: none !important;
    }

    .admin-shell {
        display: block !important;
        min-height: auto !important;
    }

    .admin-main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

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

    .shop-receipt-print,
    .hms-receipt-print {
        color: #000 !important;
        padding-bottom: 12mm;
    }

    .shop-receipt-print .row,
    .hms-receipt-print .row {
        display: block !important;
        margin: 0 !important;
    }

    .shop-receipt-print .col-lg-8,
    .shop-receipt-print .col-lg-4,
    .hms-receipt-print .col-lg-8,
    .hms-receipt-print .col-lg-4,
    .hms-receipt-print .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .shop-receipt-print .card,
    .hms-receipt-print .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 1rem !important;
    }

    .shop-receipt-print .card-header,
    .hms-receipt-print .card-header {
        background: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .shop-receipt-print .table,
    .hms-receipt-print .table {
        font-size: 0.9rem;
    }

    .shop-receipt-supplier-note {
        display: none !important;
    }

    .shop-receipt-print-header,
    .hms-receipt-print-header {
        text-align: center;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #333;
    }

    .shop-receipt-print-meta,
    .hms-receipt-print-meta {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
    }

    .kitchen-ticket-print .card {
        border: 2px dashed #333 !important;
        max-width: 100% !important;
    }

    .shop-receipt-print::after,
    .hms-receipt-print::after {
        content: "HMS powered by Technology Wisdom";
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 9pt;
        color: #444;
        padding: 3mm 0;
    }
}

/* Folio invoice — dedicated print document (A4, no admin chrome) */
.folio-print-body {
    background: #f4f6f8;
    color: #111;
}

.folio-invoice-print {
    max-width: 210mm;
    margin: 0 auto;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.folio-invoice-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.folio-invoice-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #222;
}

.folio-invoice-logo {
    max-height: 48px;
    max-width: 180px;
    object-fit: contain;
}

.folio-invoice-hotel {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.folio-invoice-doc-type {
    font-weight: 600;
    font-size: 1rem;
}

.folio-invoice-meta,
.folio-invoice-label {
    font-size: 0.85rem;
    color: #555;
}

.folio-invoice-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.7rem;
}

.folio-invoice-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.folio-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    table-layout: fixed;
}

.folio-invoice-table th,
.folio-invoice-table td {
    border: 1px solid #ccc;
    padding: 0.35rem 0.5rem;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.folio-invoice-table th {
    background: #f3f4f6;
    font-weight: 600;
}

.folio-invoice-table th:nth-child(1),
.folio-invoice-table td:nth-child(1) { width: 14%; }
.folio-invoice-table th:nth-child(2),
.folio-invoice-table td:nth-child(2) { width: 36%; }
.folio-invoice-table th:nth-child(3),
.folio-invoice-table td:nth-child(3) { width: 16%; }
.folio-invoice-table th:nth-child(4),
.folio-invoice-table td:nth-child(4) { width: 8%; }
.folio-invoice-table th:nth-child(5),
.folio-invoice-table td:nth-child(5) { width: 13%; }
.folio-invoice-table th:nth-child(6),
.folio-invoice-table td:nth-child(6) { width: 13%; }

.folio-invoice-table--compact th:nth-child(1),
.folio-invoice-table--compact td:nth-child(1) { width: 18%; }
.folio-invoice-table--compact th:nth-child(2),
.folio-invoice-table--compact td:nth-child(2) { width: 18%; }
.folio-invoice-table--compact th:nth-child(3),
.folio-invoice-table--compact td:nth-child(3) { width: 16%; }
.folio-invoice-table--compact th:nth-child(4),
.folio-invoice-table--compact td:nth-child(4) { width: 22%; }
.folio-invoice-table--compact th:nth-child(5),
.folio-invoice-table--compact td:nth-child(5) { width: 26%; }

.folio-invoice-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.folio-invoice-totals {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.folio-invoice-totals table {
    width: 280px;
    font-size: 0.9rem;
}

.folio-invoice-totals td {
    padding: 0.2rem 0;
}

.folio-invoice-totals-strong td {
    font-weight: 700;
    border-top: 2px solid #222;
    padding-top: 0.35rem;
}

.folio-invoice-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 320px;
    margin-left: auto;
    padding: 0.75rem 1rem;
    border: 2px solid #222;
    font-size: 1rem;
}

.folio-invoice-thanks {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.folio-invoice-footer {
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ccc;
    font-size: 0.75rem;
    color: #666;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    html,
    body.folio-print-body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
    }

    .folio-invoice-print {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .folio-invoice-no-print {
        display: none !important;
    }

    .folio-invoice-table {
        page-break-inside: auto;
    }

    .folio-invoice-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .folio-invoice-footer {
        position: static;
    }
}

.bootstrap-icon-picker__preview {
    min-width: 2.75rem;
    justify-content: center;
    font-size: 1.15rem;
}

.bootstrap-icon-picker__input[readonly] {
    background-color: #fff;
    cursor: default;
}

.bootstrap-icon-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.5rem;
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.15rem;
}

.bootstrap-icon-picker__icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 0.25rem;
    border: 1px solid #dce6f8;
    border-radius: 0.65rem;
    background: #fff;
    font-size: 1.35rem;
    color: #334155;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    min-height: 4.75rem;
}

.bootstrap-icon-picker__icon-btn:hover,
.bootstrap-icon-picker__icon-btn:focus {
    border-color: var(--hms-accent);
    background: var(--hms-tint-accent);
    color: var(--hms-accent-dark);
    box-shadow: 0 0 0 0.15rem var(--hms-focus-ring);
}

.bootstrap-icon-picker__icon-btn.is-selected {
    border-color: var(--hms-accent);
    background: var(--hms-tint-accent-strong);
    color: var(--hms-accent-dark);
}

.bootstrap-icon-picker__icon-label {
    font-size: 0.65rem;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
    padding: 0 0.15rem;
}

.bootstrap-icon-picker-modal .modal-body {
    min-height: 12rem;
}

/* HMS in-app notifications */
.hms-notification-bell {
    display: inline-flex;
    vertical-align: middle;
    position: relative;
    flex-shrink: 0;
}

.hms-notification-bell__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--hms-text, #1e293b) !important;
    padding: 0 !important;
    border: 0;
    line-height: 1;
    font-size: 1.15rem;
    text-decoration: none;
    box-shadow: none !important;
}

.hms-notification-bell__toggle:hover,
.hms-notification-bell__toggle:focus,
.hms-notification-bell__toggle.show {
    color: var(--hms-accent-dark, #0f766e) !important;
}

.hms-notification-bell__toggle .bi-bell {
    font-size: 1.15rem;
    line-height: 1;
}

.hms-notification-count {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    font-size: inherit;
    line-height: 1;
    flex: none;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hms-notification-bell__toggle .hms-notification-count--header {
    position: absolute;
    top: 0.2rem;
    right: 0.12rem;
    width: 0.875rem;
    height: 0.875rem;
    max-width: 0.875rem;
    max-height: 0.875rem;
    font-size: 0.5625rem;
    border: 1px solid #fff;
    pointer-events: none;
}

.hms-notification-bell__toggle .hms-notification-count--header-wide {
    width: 1.0625rem;
    height: 1.0625rem;
    max-width: 1.0625rem;
    max-height: 1.0625rem;
    font-size: 0.5rem;
    letter-spacing: -0.05em;
}

.hms-notification-count--sidebar {
    margin-left: auto;
    align-self: center;
    width: 1.375rem;
    height: 1.375rem;
    max-width: 1.375rem;
    max-height: 1.375rem;
    font-size: 0.625rem;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.hms-notification-count--sidebar-wide {
    width: 1.4375rem;
    height: 1.4375rem;
    max-width: 1.4375rem;
    max-height: 1.4375rem;
    font-size: 0.5625rem;
    letter-spacing: -0.05em;
}

.admin-menu-link .hms-notification-count--sidebar,
.customer-menu-link .hms-notification-count--sidebar {
    transform: none;
    margin-top: 0;
    margin-bottom: 0;
}

.hms-notification-dropdown {
    min-width: 18rem;
    max-width: 24rem;
    width: 22rem;
    z-index: 1060;
}

.hms-notification-dropdown__title,
.hms-notification-dropdown__message {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .hms-notification-bell__toggle {
        display: inline-flex !important;
        width: 2.5rem !important;
        height: 2.5rem !important;
        max-width: 2.5rem !important;
        margin-bottom: 0 !important;
    }

    .hms-notification-dropdown {
        min-width: 0;
        width: 18rem;
        max-width: calc(100vw - 1.5rem);
    }

    .hms-notification-dropdown.show {
        position: fixed !important;
        transform: none !important;
        margin: 0 !important;
    }

    .hms-notification-dropdown__title,
    .hms-notification-dropdown__message {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .admin-header,
    .customer-header {
        overflow: visible;
        position: relative;
        z-index: 1035;
    }

    .admin-header .container-fluid,
    .customer-header .container-fluid {
        overflow: visible;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
    }

    .admin-header-intro,
    .customer-header-intro {
        min-width: 0;
        flex: 1 1 auto;
    }

    .admin-header .dashboard-header-actions,
    .customer-header .dashboard-header-actions {
        flex: 0 0 auto;
    }

    .admin-header .dashboard-header-toolbar,
    .customer-header .dashboard-header-actions.dashboard-header-toolbar {
        flex-wrap: nowrap !important;
        gap: 0.35rem !important;
    }

    .admin-header-intro h6,
    .customer-header-intro h6 {
        font-size: 0.92rem;
        line-height: 1.25;
    }
}

.hms-notification-dropdown__list {
    max-height: 18rem;
    overflow-y: auto;
}

.hms-notification-dropdown__item {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid var(--hms-border-soft, #e2e8f0);
}

.hms-notification-dropdown__item--unread {
    background: rgba(var(--theme-primary-rgb, 15, 118, 110), 0.06);
}

.hms-notifications-card {
    overflow: hidden;
}

.hms-notifications-list {
    display: flex;
    flex-direction: column;
}

.hms-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--admin-table-head-border, #e8edf3);
    background: var(--admin-surface, #fff);
    transition: background 0.15s ease;
}

.hms-notification-item:last-child {
    border-bottom: 0;
}

.hms-notification-item--unread {
    background: rgba(var(--theme-primary-rgb, 15, 118, 110), 0.05);
}

.hms-notification-item__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--hms-tint-primary, #ecfdf5);
    color: var(--hms-accent-dark, #0f766e);
    font-size: 0.95rem;
}

.hms-notification-item:not(.hms-notification-item--unread) .hms-notification-item__icon {
    background: #f1f5f9;
    color: #64748b;
}

.hms-notification-item__body {
    flex: 1;
    min-width: 0;
}

.hms-notification-item__message {
    color: var(--hms-text-muted, #64748b);
    margin-bottom: 0;
    line-height: 1.5;
}

.hms-notification-item__time {
    color: var(--hms-text-muted, #64748b);
    font-size: 0.78rem;
    white-space: nowrap;
}

.hms-notifications-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--admin-table-head-border, #e8edf3);
    background: var(--admin-surface, #fff);
}

.hms-notifications-pagination {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.hms-notifications-empty {
    padding: 3rem 1.5rem;
}

.hms-notifications-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}
