@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

body {
    color: #1f2933;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    --cms-sidebar-width: clamp(220px, 18vw, 248px);
    --cms-sidebar-visible-left: 16px;
    --cms-sidebar-hidden-left: calc((var(--cms-sidebar-width) * -1) - 28px);
    --cms-topbar-top: 14px;
    --cms-topbar-height: 60px;
    --cms-topbar-bottom: calc(var(--cms-topbar-top) + var(--cms-topbar-height));
    --cms-sidebar-top: calc(var(--cms-topbar-bottom) + 10px);
    --cms-sidebar-bottom-gap: 16px;
    --cms-content-left: 44px;
    --cms-ink: #2d2300;
    --cms-burgundy: #ffd23f;
    --cms-burgundy-deep: #e8ad00;
    --cms-wine: #c99000;
    --cms-avatar: #f0b90b;
    --cms-muted: #746234;
    --cms-border: rgba(196, 142, 0, 0.28);
    --cms-shadow-soft: 0 10px 24px rgba(138, 104, 22, 0.08);
    --cms-radius-md: 18px;
}

body.cms-shell *,
body.cms-shell *::before,
body.cms-shell *::after {
    box-sizing: border-box;
}

.cms-confirm-overlay {
    align-items: center;
    background: rgba(45, 35, 0, 0.48);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 12000;
}

.cms-confirm-overlay[hidden] {
    display: none;
}

.cms-confirm-card {
    background: #ffffff;
    border: 2px solid #ffd23f;
    border-radius: 18px;
    box-shadow: 0 22px 65px rgba(45, 35, 0, 0.3);
    color: #2d2300;
    max-width: 430px;
    padding: 28px;
    text-align: center;
    width: 100%;
}

.cms-confirm-icon {
    align-items: center;
    background: #ffd23f;
    border-radius: 50%;
    display: inline-flex;
    font-size: 24px;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.cms-confirm-card h2 {
    font-size: 21px;
    margin: 14px 0 8px;
}

.cms-confirm-message {
    color: #746234;
    line-height: 1.55;
    margin: 0;
}

.cms-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

.cms-confirm-actions .btn {
    min-width: 116px;
}

.cms-settlement-identity { color: #746234; margin-top: 16px; text-align: left; }
.cms-settlement-identity p { margin: 7px 0; }
.cms-settlement-identity label { display: block; font-size: 13px; font-weight: 700; margin-top: 10px; }
.cms-settlement-identity input { margin-top: 5px; width: 100%; }

body.cms-shell {
    background: linear-gradient(180deg, #4c1d95 0%, #6d28d9 48%, #a78bfa 100%);
    color: var(--cms-ink);
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body.cms-shell::before {
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    content: "";
    inset: 8px;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

body.cms-shell h1,
body.cms-shell h2,
body.cms-shell h3,
body.cms-shell h4,
body.cms-shell h5,
body.cms-shell h6,
body.cms-shell .card-header {
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
}

body.cms-shell a {
    color: #6f5100;
}

body.cms-shell a:hover {
    color: #3f2f00;
    text-decoration: none;
}

.cms-topbar {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.35);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(18, 24, 52, 0.08);
    color: var(--cms-ink);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    left: 16px;
    min-height: 44px;
    padding: 8px 12px;
    position: fixed;
    right: 16px;
    top: var(--cms-topbar-top);
    z-index: 1000;
}

.cms-topbar-left,
.cms-topbar-right {
    align-items: center;
    display: flex;
    gap: 16px;
    min-width: 0;
}

.cms-language-picker {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    margin: 0;
}

.cms-language-picker label {
    color: #6f5100;
    font-size: 12px;
    font-weight: 800;
    margin: 0;
}

.cms-language-picker select {
    background: #fffdf6;
    border: 1px solid rgba(196, 142, 0, 0.40);
    border-radius: 7px;
    color: #3f2f00;
    font-size: 12px;
    font-weight: 700;
    min-height: 32px;
    padding: 4px 8px;
}

.cms-menu-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.42);
    border-radius: 10px;
    color: var(--cms-burgundy);
    display: inline-flex;
    font-size: 15px;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.cms-topbar-brand {
    align-items: center;
    color: var(--cms-ink);
    display: flex;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
}

.cms-brand-mark {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.42);
    border-radius: 8px;
    color: var(--cms-burgundy);
    display: inline-flex;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.cms-brand-mark img {
    height: 28px;
    max-width: 30px;
    object-fit: contain;
    width: auto;
}

.cms-brand-copy strong {
    color: var(--cms-ink);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.cms-topbar-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    min-width: 0;
}

.cms-topbar-meta span {
    color: #697188;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cms-topbar-meta strong {
    color: var(--cms-ink);
    font-weight: 800;
}

.cms-user-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.35);
    border-radius: 999px;
    color: var(--cms-ink);
    display: flex;
    gap: 10px;
    padding: 4px 6px 4px 12px;
}

.cms-user-button:focus {
    box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.32);
    outline: 0;
}

.cms-user-copy {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

.cms-user-copy strong {
    color: var(--cms-ink);
    font-size: 12px;
    font-weight: 800;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-user-copy span {
    color: var(--cms-muted);
    font-size: 11px;
    font-weight: 700;
}

.cms-avatar {
    align-items: center;
    background: var(--cms-avatar);
    border-radius: 999px;
    color: #2d2300;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.cms-user-caret {
    color: #8b92a7;
    font-size: 10px;
    margin-right: 4px;
}

.cms-user-dropdown {
    border: 1px solid rgba(196, 142, 0, 0.35);
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(138, 104, 22, 0.14);
    margin-top: 8px;
    min-width: 210px;
    padding: 8px;
}

.cms-user-dropdown .dropdown-item {
    border-radius: 8px;
    color: #3b2c00;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 10px;
}

.cms-user-dropdown .dropdown-item:hover,
.cms-user-dropdown .dropdown-item:focus {
    background: #fff1b8;
    color: #3b2c00;
}

.brand-upload-row {
    align-items: center;
    display: flex;
    gap: 12px;
}

.brand-logo-preview {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.42);
    border-radius: 10px;
    color: var(--cms-burgundy);
    display: inline-flex;
    flex: 0 0 48px;
    font-size: 12px;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    object-fit: contain;
    width: 48px;
}

.brand-logo-empty {
    background: #fff6d1;
}

.cms-logout {
    border-color: rgba(196, 142, 0, 0.58);
    border-radius: 999px;
    color: var(--cms-burgundy);
    font-weight: 800;
}

#sidebar.cms-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #fff7d6 100%);
    border: 1px solid rgba(196, 142, 0, 0.42);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 28px rgba(138, 104, 22, 0.08);
    height: calc(100vh - var(--cms-sidebar-top) - var(--cms-sidebar-bottom-gap));
    height: calc(100dvh - var(--cms-sidebar-top) - var(--cms-sidebar-bottom-gap));
    left: var(--cms-sidebar-hidden-left);
    overflow: visible;
    position: fixed;
    top: var(--cms-sidebar-top);
    transition: left 0.24s ease, box-shadow 0.24s ease;
    width: var(--cms-sidebar-width);
    z-index: 30;
}

body.cms-nav-open #sidebar.cms-sidebar,
#sidebar.cms-sidebar:focus-within,
body.sidebar-collapse #sidebar.cms-sidebar,
body.cms-nav-pinned #sidebar.cms-sidebar {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 36px rgba(16, 22, 46, 0.10);
    left: var(--cms-sidebar-visible-left);
}

.cms-nav-handle {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(217, 221, 235, 0.96);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 10px 24px rgba(18, 24, 52, 0.08);
    color: var(--cms-burgundy);
    cursor: pointer;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    left: 0;
    position: fixed;
    top: calc(var(--cms-sidebar-top) + 22px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    width: 34px;
    z-index: 35;
}

.cms-nav-handle:hover,
.cms-nav-handle:focus {
    outline: 0;
    transform: translateX(2px);
}

body.cms-nav-open .cms-nav-handle,
body.sidebar-collapse .cms-nav-handle,
body.cms-nav-pinned .cms-nav-handle {
    opacity: 0;
    pointer-events: none;
}

.cms-nav-pin {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.42);
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(138, 104, 22, 0.12);
    color: #6f5100;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: -17px;
    top: 18px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    width: 34px;
    z-index: 2;
}

.cms-nav-pin:hover,
.cms-nav-pin:focus,
body.cms-nav-pinned .cms-nav-pin {
    background: var(--cms-burgundy);
    color: #2d2300;
    outline: 0;
}

body.cms-nav-pinned .cms-nav-pin {
    transform: rotate(-35deg);
}

.cms-sidebar-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 20px 14px 28px;
}

.cms-sidebar-scroll::-webkit-scrollbar {
    width: 7px;
}

.cms-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(196, 142, 0, 0.32);
    border-radius: 999px;
}

.cms-nav-label {
    color: var(--cms-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.20em;
    margin: 0 8px 12px;
    text-transform: uppercase;
}

.cms-nav-label + .cms-nav-link,
.cms-nav-label + .cms-nav-group {
    margin-top: 2px;
}

.cms-nav-link {
    align-items: center;
    border-radius: 12px;
    color: #3b2c00;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    line-height: 1.35;
    margin-bottom: 4px;
    min-height: 38px;
    padding: 10px 12px;
    position: relative;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
}

.cms-nav-link span,
.cms-subnav-link span {
    flex: 1 1 auto;
    min-width: 0;
}

.cms-nav-link:hover,
.cms-nav-link:focus {
    background: #fff1b8;
    color: #2d2300;
    box-shadow: 0 8px 16px rgba(138, 104, 22, 0.10);
    text-decoration: none;
}

.cms-nav-link.is-active {
    background: #ffd23f;
    box-shadow: inset 3px 0 0 #ffffff, 0 10px 18px rgba(138, 104, 22, 0.16);
    color: #2d2300;
}

.cms-nav-icon {
    color: #7b621c;
    text-align: center;
    transition: color 0.18s ease;
    width: 16px;
}

.cms-nav-link:hover .cms-nav-icon,
.cms-nav-link.is-active .cms-nav-icon,
.cms-nav-group[open] .cms-nav-icon {
    color: #2d2300;
}

.cms-nav-group {
    margin-bottom: 4px;
}

.cms-nav-toggle {
    cursor: pointer;
    list-style: none;
}

.cms-nav-toggle::-webkit-details-marker {
    display: none;
}

.cms-nav-caret {
    color: #8a6d1c;
    margin-left: auto;
    transition: transform 0.18s ease, color 0.18s ease;
}

.cms-nav-group[open] .cms-nav-caret {
    color: #2d2300;
    transform: rotate(90deg);
}

.cms-subnav {
    border-left: 1px solid var(--cms-border);
    display: grid;
    gap: 6px;
    margin: 4px 0 10px 18px;
    padding: 8px 0 6px 12px;
}

.cms-subnav-link {
    align-items: center;
    border-radius: 10px;
    color: #6f5100;
    display: flex;
    font-size: 12.5px;
    font-weight: 700;
    gap: 9px;
    line-height: 1.35;
    margin: 0;
    min-height: 38px;
    padding: 9px 12px 9px 18px;
    position: relative;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.cms-subnav-link::before {
    background: rgba(196, 142, 0, 0.42);
    border-radius: 999px;
    content: "";
    height: 5px;
    left: 8px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
}

.cms-subnav-link .fa {
    color: #8a6d1c;
    font-size: 12px;
    text-align: center;
    width: 14px;
}

.cms-subnav-link:hover,
.cms-subnav-link:focus {
    background: #fff1b8;
    color: #2d2300;
    text-decoration: none;
}

.cms-subnav-link.is-active {
    background: #ffd23f;
    box-shadow: inset 2px 0 0 #ffffff, 0 8px 14px rgba(138, 104, 22, 0.12);
    color: #2d2300;
}

.cms-subnav-link.is-active::before {
    background: #ffffff;
}

.cms-subnav-link.is-active .fa,
.cms-subnav-link:hover .fa {
    color: #2d2300;
}

#view-panel {
    min-height: 100vh;
    margin-left: var(--cms-content-left);
    padding: calc(var(--cms-topbar-bottom) + 22px) 16px 16px 14px;
    position: relative;
    transition: margin-left 0.24s ease, width 0.24s ease, padding 0.24s ease;
    width: calc(100% - var(--cms-content-left));
    z-index: 1;
}

body.cms-nav-pinned #view-panel {
    margin-left: calc(var(--cms-sidebar-width) + 32px);
    width: calc(100% - var(--cms-sidebar-width) - 32px);
}

.cms-page-shell {
    background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
    border: 1px solid rgba(109, 40, 217, 0.24);
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(49, 17, 103, 0.20);
    min-height: calc(100vh - 94px);
    padding: 18px;
}

.cms-page-shell > .container,
.cms-page-shell > .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.page-header {
    align-items: start;
    background: linear-gradient(135deg, #ffd64d 0%, #fff7d6 44%, #ffffff 100%);
    border: 1px solid rgba(196, 142, 0, 0.48);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(138, 104, 22, 0.14);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 1fr) minmax(420px, 680px);
    margin-bottom: 18px;
    padding: 16px 18px;
}

.page-header > div:first-child {
    min-width: 0;
}

.page-header h1,
.empty-state h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
}

.page-header p,
.muted,
.empty-state p {
    color: #6a5a2d;
    margin: 0;
}

.reception-page-nav {
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    justify-self: end;
    max-width: 680px;
}

.room-status-console {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
    border: 1px solid var(--cms-border);
    border-radius: 16px;
    box-shadow: var(--cms-shadow-soft);
    color: var(--cms-ink);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 auto;
    max-width: 1180px;
    min-height: 642px;
    overflow: visible;
    padding: 12px;
}

.room-status-titlebar {
    align-items: center;
    background: linear-gradient(135deg, #ffd64d 0%, #fff6d1 100%);
    border: 1px solid rgba(196, 142, 0, 0.42);
    border-radius: 12px;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 14px;
}

.room-status-titlebar strong {
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.36);
    border-radius: 999px;
    color: #5c4300;
    font-size: 12px;
    padding: 5px 10px;
}

.room-status-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 48px;
    padding: 12px 2px;
}

.room-status-toolbar label,
.room-status-page-label,
.room-status-page-size label {
    align-items: center;
    color: #5f4b16;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}

.room-status-toolbar select,
.room-status-toolbar input,
.room-status-page-size select,
.room-action-list select {
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.34);
    border-radius: 8px;
    box-shadow: none;
    color: var(--cms-ink);
    font-size: 13px;
    height: 34px;
    min-width: 78px;
    padding: 6px 9px;
}

.room-status-toolbar input[type="search"] {
    min-width: 86px;
    width: 96px;
}

.room-status-check input {
    height: auto;
    min-width: 0;
    width: auto;
}

.room-status-smile {
    align-items: center;
    background: var(--cms-burgundy);
    border: 1px solid var(--cms-wine);
    border-radius: 8px;
    color: #241b00;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 38px;
}

.room-status-board {
    align-content: start;
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.34);
    border-radius: 12px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    margin: 0;
    min-height: 462px;
    overflow: visible;
    padding: 10px;
}

.room-status-tile {
    border: 1px solid rgba(45, 35, 0, 0.32);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 4px 10px rgba(61, 46, 8, 0.08);
    color: #050505;
    cursor: default;
    height: 54px;
    min-height: 54px;
    overflow: visible;
    padding: 7px 8px 6px;
    position: relative;
}

.room-status-tile-main {
    align-items: center;
    display: flex;
    font-size: 11px;
    gap: 4px;
    line-height: 1.2;
    white-space: nowrap;
}

.room-status-tile-main strong {
    font-size: 15px;
    font-weight: 700;
}

.room-status-tile-main em {
    font-size: 9px;
    font-style: normal;
    margin-left: auto;
}

.room-status-tile p {
    font-size: 12px;
    line-height: 1.2;
    margin: 5px 0 0;
    min-height: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-status-vacant {
    background: #31c549;
}

.room-status-reserved {
    background: #35aeba;
}

.room-status-occupied,
.room-status-mask-guest {
    background: #ff3a15;
}

.room-status-dirty {
    background: #f4f037;
}

.room-status-expected-departure {
    background: #8d95ff;
}

.room-status-out-of-order {
    background: #a36922;
    color: #ffffff;
}

.room-status-out-of-service {
    background: #953093;
    color: #ffffff;
}

.room-status-inspected {
    background: #f2b7c7;
}

.room-status-clean {
    background: #35aeba;
}

.room-status-expected {
    box-shadow: inset 0 0 0 999px rgba(133, 142, 255, 0.45), 0 4px 10px rgba(61, 46, 8, 0.08);
}

.room-action-menu {
    inset: 0;
    position: absolute;
}

.room-action-menu summary {
    cursor: pointer;
    font-size: 0;
    height: 100%;
    list-style: none;
    width: 100%;
}

.room-action-menu summary::-webkit-details-marker {
    display: none;
}

.room-action-menu[open] {
    z-index: 30;
}

.room-action-list {
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.36);
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(61, 46, 8, 0.18);
    display: grid;
    gap: 0;
    left: 10px;
    min-width: 230px;
    overflow: hidden;
    padding: 6px 0;
    position: absolute;
    top: 40px;
}

.room-action-list span,
.room-action-list a,
.room-action-list button {
    background: transparent;
    border: 0;
    color: var(--cms-ink);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.15;
    min-height: 0;
    padding: 5px 12px;
    text-align: left;
    text-decoration: none;
}

.room-action-list span {
    border-bottom: 1px solid rgba(196, 142, 0, 0.2);
    color: var(--cms-muted);
    font-weight: 700;
}

.room-action-list a:hover,
.room-action-list button:hover {
    background: #fff6d1;
}

.room-action-list form {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
}

.room-status-command-bar button,
.room-status-command-bar a {
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.4);
    border-radius: 8px;
    color: #5c4300;
    font-size: 12px;
    font-weight: 700;
    min-height: 26px;
    padding: 6px 18px;
    text-align: center;
    text-decoration: none;
}

.room-action-list form:not(.room-clear-form) {
    border-top: 1px solid rgba(196, 142, 0, 0.2);
    gap: 6px;
    margin: 5px 0 0;
    padding: 8px 12px 2px;
}

.room-action-list form:not(.room-clear-form) button {
    background: var(--cms-burgundy);
    border: 1px solid var(--cms-wine);
    border-radius: 8px;
    color: #241b00;
    min-height: 24px;
    padding: 3px 12px;
    text-align: center;
}

.room-status-footer {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 2px 6px;
}

.room-status-legend {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.room-status-legend-item {
    align-items: center;
    color: var(--cms-ink);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 4px;
    line-height: 1;
}

.room-status-legend-count {
    border: 1px solid rgba(45, 35, 0, 0.32);
    border-radius: 6px;
    color: #050505;
    display: inline-flex;
    font-size: 12px;
    justify-content: center;
    min-width: 28px;
    padding: 1px 5px;
}

.room-status-command-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin: 0;
    padding: 10px 0 0;
}

.room-status-command-bar-top {
    border-bottom: 1px solid rgba(196, 142, 0, 0.2);
    padding: 10px 0 12px;
}

.room-status-command-bar button,
.room-status-command-bar a {
    height: 34px;
    min-width: 98px;
}

.room-status-empty {
    color: var(--cms-muted);
    font-size: 14px;
    padding: 18px;
}

.summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 18px;
}

.metric-card,
.work-panel,
.empty-state {
    background: linear-gradient(145deg, #ffffff 0%, #fffdf7 100%);
    border: 1px solid rgba(202, 151, 0, 0.34);
    border-radius: var(--cms-radius-md);
    box-shadow: 0 10px 24px rgba(93, 68, 7, 0.10);
    padding: 18px;
}

.metric-card {
    border-top: 4px solid #ffd23f;
    box-shadow: 0 12px 26px rgba(93, 68, 7, 0.12);
}

.metric-card span {
    color: #79662c;
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.metric-card strong {
    color: #3f2f00;
    display: block;
    font-size: 28px;
    margin-top: 8px;
}

.work-panel h2 {
    font-size: 18px;
    margin: 0 0 12px;
}

.account-grid {
    grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1.25fr);
}

.account-profile {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.account-avatar {
    align-items: center;
    background: var(--cms-avatar);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 18px;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.account-profile strong,
.account-profile span {
    display: block;
}

.account-profile strong {
    color: var(--cms-ink);
    font-size: 16px;
    font-weight: 800;
}

.account-profile span,
.account-detail-list {
    color: var(--cms-muted);
    font-size: 13px;
}

.account-detail-list {
    display: grid;
    gap: 10px;
}

.account-detail-list span {
    background: #f8f9fc;
    border: 1px solid rgba(217, 221, 235, 0.9);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.account-detail-list strong {
    color: var(--cms-ink);
}

body.cms-shell .card,
body.cms-shell .chart-container,
body.cms-shell .summary-card,
body.cms-shell .stat-card {
    background: linear-gradient(145deg, #ffffff 0%, #fffdf7 100%);
    border: 1px solid rgba(202, 151, 0, 0.34);
    border-radius: var(--cms-radius-md);
    box-shadow: 0 10px 24px rgba(93, 68, 7, 0.10);
}

body.cms-shell .card {
    overflow: hidden;
}

body.cms-shell .card-header {
    align-items: center;
    background: #fff6d1;
    border-bottom: 1px solid rgba(196, 142, 0, 0.30);
    color: var(--cms-ink);
    display: flex;
    font-size: 0.98rem;
    font-weight: 700;
    gap: 14px;
    justify-content: space-between;
    padding: 16px 20px;
}

body.cms-shell .card-body {
    padding: 20px;
}

body.cms-shell .table {
    color: var(--cms-ink);
    margin-bottom: 0;
}

body.cms-shell .table thead th {
    background: #ffd95e;
    border-bottom: 1px solid #c99000;
    border-top: 0;
    color: #3c2d00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.cms-shell .table td {
    vertical-align: middle;
}

body.cms-shell .table-hover tbody tr:hover,
body.cms-shell .table tbody tr:hover {
    background: #fff6d6;
}

body.cms-shell .btn {
    background: #ffd23f;
    border-color: #c99000;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(201, 144, 0, 0.18);
    color: #241b00;
    font-weight: 800;
}

body.cms-shell .btn-primary,
body.cms-shell .btn-custom,
body.cms-shell .btn-light,
body.cms-shell .btn-secondary,
body.cms-shell .btn-info,
body.cms-shell .btn-success,
body.cms-shell .btn-warning,
body.cms-shell .btn-danger {
    background: var(--cms-burgundy);
    border-color: var(--cms-wine);
    color: #241b00;
}

body.cms-shell .btn-primary:hover,
body.cms-shell .btn-primary:focus,
body.cms-shell .btn-custom:hover,
body.cms-shell .btn-custom:focus,
body.cms-shell .btn-light:hover,
body.cms-shell .btn-light:focus,
body.cms-shell .btn-secondary:hover,
body.cms-shell .btn-secondary:focus,
body.cms-shell .btn-info:hover,
body.cms-shell .btn-info:focus,
body.cms-shell .btn-success:hover,
body.cms-shell .btn-success:focus,
body.cms-shell .btn-warning:hover,
body.cms-shell .btn-warning:focus,
body.cms-shell .btn-danger:hover,
body.cms-shell .btn-danger:focus,
body.cms-shell .btn:hover,
body.cms-shell .btn:focus {
    background: var(--cms-burgundy-deep);
    border-color: #a97700;
    color: #241b00;
}

body.cms-shell .btn-outline-primary {
    background: #ffffff;
    border-color: rgba(196, 142, 0, 0.65);
    color: #5c4300;
}

body.cms-shell .btn-outline-primary:hover {
    background: var(--cms-burgundy);
    border-color: var(--cms-wine);
    color: #241b00;
}

body.cms-shell .form-control,
body.cms-shell .custom-select,
body.cms-shell input[type="date"],
body.cms-shell input[type="text"],
body.cms-shell input[type="password"],
body.cms-shell input[type="number"],
body.cms-shell textarea,
body.cms-shell select {
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.48);
    border-radius: 10px;
    color: var(--cms-ink);
    font-size: 13px;
    min-height: 38px;
}

body.cms-shell .form-control:focus,
body.cms-shell .custom-select:focus,
body.cms-shell input:focus,
body.cms-shell textarea:focus,
body.cms-shell select:focus {
    border-color: #c99000;
    box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.34);
}

body.cms-shell label {
    color: #4a3900;
    font-size: 12px;
    font-weight: 800;
}

.admin-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
    margin-bottom: 18px;
}

.panel-title-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-title-row h2 {
    margin: 0;
}

.count-badge {
    background: #e7f3f1;
    border-radius: 999px;
    color: #17424a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 9px;
}

.customer-table td small {
    color: #667783;
    display: block;
}

.empty-inline,
.control-note {
    background: #f6f8f9;
    border: 1px solid #e1e7eb;
    border-radius: 6px;
    color: #60707a;
    font-size: 13px;
    line-height: 1.5;
    padding: 12px;
}

.table td small {
    color: #667783;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.audit-table td {
    max-width: 260px;
    vertical-align: top;
}

.selected-row {
    background: #eef8f6;
}

.reservation-page-header {
    background: linear-gradient(135deg, #ffd64d 0%, #fff7d6 44%, #ffffff 100%);
    border: 1px solid rgba(196, 142, 0, 0.56);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(138, 104, 22, 0.16);
    padding: 16px 18px;
}

.reservation-page-header h1 {
    color: #2d2300;
}

.reservation-page-header p {
    color: #5e4900;
}

.reservation-filter-panel,
.reservation-editor-panel,
.reservation-table-panel {
    border-color: rgba(196, 142, 0, 0.42);
}

.reservation-editor-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fff9df 100%);
    box-shadow: 0 16px 34px rgba(122, 89, 9, 0.16);
}

.reservation-editor-panel .panel-title-row {
    border-bottom: 1px solid rgba(196, 142, 0, 0.34);
    padding-bottom: 12px;
}

.reservation-editor-panel h2,
.reservation-table-panel h2 {
    color: #3b2c00;
}

.reservation-editor-note {
    background: #fff5cf;
    border: 1px solid rgba(218, 168, 32, 0.36);
    border-radius: 10px;
    color: #745615;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 14px;
    padding: 10px 12px;
}

body.cms-page-reception-reservations .btn,
body.cms-page-reception-reservations .btn-light,
body.cms-page-reception-reservations .btn-primary,
body.cms-page-reception-reservations .btn-custom,
body.cms-page-reception-reservations button[type="submit"] {
    background: #ffd23f;
    border-color: #c99000;
    box-shadow: 0 10px 18px rgba(201, 144, 0, 0.22);
    color: #241b00;
}

body.cms-page-reception-reservations .btn:hover,
body.cms-page-reception-reservations .btn:focus,
body.cms-page-reception-reservations .btn-light:hover,
body.cms-page-reception-reservations .btn-light:focus,
body.cms-page-reception-reservations .btn-primary:hover,
body.cms-page-reception-reservations .btn-primary:focus,
body.cms-page-reception-reservations .btn-custom:hover,
body.cms-page-reception-reservations .btn-custom:focus,
body.cms-page-reception-reservations button[type="submit"]:hover,
body.cms-page-reception-reservations button[type="submit"]:focus {
    background: #e8ad00;
    border-color: #a97700;
    color: #241b00;
}

.reservation-table-panel .count-badge {
    background: #ffd23f;
    border: 1px solid #c99000;
    color: #302400;
}

.reservation-table-panel .selected-row,
.reservation-table-panel .table tbody tr.selected-row:hover {
    background: #fff1b8;
    box-shadow: inset 4px 0 0 #d49b00;
}

.reservation-table-panel .table thead th {
    background: #ffd95e;
    border-bottom-color: #c99000;
    color: #3c2d00;
}

body.cms-page-reception-reservations .cms-nav-link.is-active,
body.cms-page-reception-reservations .cms-subnav-link.is-active {
    background: #ffd23f;
    box-shadow: inset 3px 0 0 #ffffff, 0 10px 18px rgba(138, 104, 22, 0.16);
    color: #2d2300;
}

body.cms-page-reception-reservations .cms-nav-link.is-active .cms-nav-icon,
body.cms-page-reception-reservations .cms-subnav-link.is-active .fa {
    color: #2d2300;
}

body.cms-page-reception-reservations .cms-subnav-link.is-active::before {
    background: #ffffff;
}

body.cms-page-reception-reservations .form-control,
body.cms-page-reception-reservations input[type="date"],
body.cms-page-reception-reservations input[type="email"],
body.cms-page-reception-reservations input[type="number"],
body.cms-page-reception-reservations input[type="text"],
body.cms-page-reception-reservations select {
    background: #ffffff;
    border-color: rgba(196, 142, 0, 0.54);
}

body.cms-page-reception-reservations .form-control:focus,
body.cms-page-reception-reservations input:focus,
body.cms-page-reception-reservations select:focus {
    border-color: #c99000;
    box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.34);
}

body.cms-page-reception-reservations label,
body.cms-page-reception-reservations .form-grid label {
    color: #4a3900;
}

body.cms-page-reception-reservations .table {
    border: 1px solid rgba(196, 142, 0, 0.28);
}

body.cms-page-reception-reservations .table td {
    border-top-color: rgba(196, 142, 0, 0.18);
}

body.cms-page-reception-reservations .table td small {
    color: #806412;
}

.form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label,
.module-list label {
    color: #34434d;
    font-size: 13px;
    font-weight: 700;
}

.form-grid .form-control {
    margin-top: 5px;
}

.span-2 {
    grid-column: span 2;
}

.reservation-guest-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.compact-form,
.license-form {
    border-bottom: 1px solid #e1e7eb;
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.stay-command-panel {
    display: grid;
    gap: 14px;
}

.stay-entry-list {
    display: grid;
    gap: 16px;
}

.stay-operations-table-wrap {
    border: 1px solid #e6e0f4;
    border-radius: 12px;
    overflow-x: auto;
}

.stay-operations-table {
    margin-bottom: 0;
    min-width: 920px;
}

.stay-operations-table thead th {
    background: #f6f3ff;
    border-bottom: 1px solid #e3dcf5;
    color: #4c1d95;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.stay-operations-table td {
    vertical-align: middle;
}

.stay-row td {
    border-top: 1px solid #eee9f8;
}

.stay-manage-row td {
    background: #fbf9ff;
    border-top: 0;
    padding-bottom: 10px;
    padding-top: 0;
}

.stay-manage-details {
    border: 1px solid #e6e0f4;
    border-radius: 10px;
    overflow: hidden;
}

.stay-manage-details summary {
    background: #ffffff;
    color: #4c1d95;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    list-style-position: inside;
    padding: 9px 12px;
}

.stay-manage-details[open] summary {
    border-bottom: 1px solid #e6e0f4;
}

.stay-entry-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
    border: 1px solid rgba(109, 40, 217, 0.20);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(49, 17, 103, 0.08);
    overflow: hidden;
}

.stay-entry-summary {
    align-items: center;
    border-bottom: 1px solid #e9e3f8;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(240px, 0.9fr) minmax(420px, 1.6fr);
    padding: 14px;
}

.stay-guest-cell {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.stay-guest-cell.compact {
    gap: 8px;
}

.stay-guest-photo {
    border: 1px solid rgba(109, 40, 217, 0.24);
    border-radius: 8px;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.stay-guest-cell.compact .stay-guest-photo {
    border-radius: 7px;
    height: 34px;
    width: 34px;
}

.stay-guest-cell.compact strong,
.stay-guest-cell.compact small {
    display: block;
}

.stay-guest-cell.compact small {
    color: #667783;
    font-size: 12px;
}

.stay-guest-initials {
    align-items: center;
    background: #ede9fe;
    color: #4c1d95;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
}

.stay-guest-cell h3 {
    color: #2d2300;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 4px;
}

.stay-guest-cell p {
    color: #667783;
    font-size: 13px;
    margin: 0;
}

.stay-facts {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(90px, 1fr));
}

.stay-facts span {
    background: #ffffff;
    border: 1px solid #ece6f9;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    min-width: 0;
    padding: 9px 10px;
}

.stay-facts strong {
    color: #6d28d9;
    display: block;
    font-size: 11px;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.stay-option-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    padding: 14px;
}

.stay-option-block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
}

.stay-option-block h4 {
    color: #3b2c00;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 12px;
}

.stay-option-block .compact-form {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stay-option-block .stay-subform {
    border-top: 1px solid #edf0f3;
    margin-top: 12px;
    padding-top: 12px;
}

.stay-option-compact {
    align-content: start;
    display: grid;
    gap: 10px;
}

.stay-option-compact .compact-inline-form {
    align-items: stretch;
}

.stay-option-compact .form-control {
    min-width: 0;
}

.check-row {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.module-list {
    display: grid;
    gap: 10px;
}

.module-toggle {
    align-items: flex-start;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 10px;
}

.module-toggle input {
    margin-top: 4px;
}

.module-toggle small {
    color: #667783;
    display: block;
    font-weight: 400;
}

.filter-panel {
    margin-bottom: 18px;
}

.filter-form {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    max-width: 760px;
}

.wide-filter {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-width: none;
}

.filter-action {
    align-self: end;
}

.compact-inline-form,
.checkout-form {
    align-items: center;
    display: flex;
    gap: 8px;
}

.checkout-form {
    align-items: flex-start;
}

.order-lines {
    display: grid;
    gap: 8px;
}

.order-line {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(180px, 1fr) 90px minmax(120px, 0.8fr);
}

.kitchen-board {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.kitchen-column {
    background: #f7fafb;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    padding: 12px;
}

.kitchen-column h3 {
    font-size: 16px;
    margin: 0 0 10px;
}

.kitchen-ticket {
    background: #fff;
    border: 1px solid #dce3e8;
    border-radius: 6px;
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
    padding: 10px;
}

.kitchen-ticket span,
.kitchen-ticket small,
.kitchen-ticket em {
    color: #667783;
}

.kitchen-actions {
    margin-top: 4px;
}

.kitchen-order-table { min-width: 1120px; }
.kitchen-order-table th { white-space: nowrap; }
.kitchen-order-table td { vertical-align: top; }
.kitchen-order-table td > div { border-bottom: 1px solid #edf1f2; min-height: 27px; padding: 3px 0; }
.kitchen-order-table td > div:last-child { border-bottom: 0; }
.kitchen-order-table small { color: #9a532d; display: block; font-size: 11px; margin-top: 2px; }

.status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-list span {
    background: #e7f3f1;
    border: 1px solid #bedbd8;
    border-radius: 6px;
    color: #17424a;
    padding: 8px 10px;
}

.quick-link {
    background: #e7f3f1;
    border: 1px solid #bedbd8;
    border-radius: 6px;
    color: #17424a;
    font-weight: 700;
    padding: 8px 10px;
    text-decoration: none;
}

.quick-link:hover {
    background: #d5ebe8;
    color: #17424a;
    text-decoration: none;
}

.status-pill {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 9px;
}

.status-ready {
    background: #dff3e6;
    color: #146c3f;
}

.status-attention {
    background: #fff3cd;
    color: #7a5b00;
}

.status-missing {
    background: #f8d7da;
    color: #842029;
}

.status-pending {
    background: #fff3cd;
    color: #7a5b00;
}

.status-prepared {
    background: #e9ecef;
    color: #495057;
}

.status-synced {
    background: #dff3e6;
    color: #146c3f;
}

.status-accepted {
    background: #dff3e6;
    color: #146c3f;
}

.status-accepted_with_notes,
.status-deferred {
    background: #fff3cd;
    color: #7a5b00;
}

.status-failed {
    background: #f8d7da;
    color: #842029;
}

.status-open,
.status-in_progress {
    background: #fff3cd;
    color: #7a5b00;
}

.status-done {
    background: #dff3e6;
    color: #146c3f;
}

.status-cancelled,
.priority-urgent {
    background: #f8d7da;
    color: #842029;
}

.priority-high {
    background: #ffe3d0;
    color: #8a3d00;
}

.priority-normal {
    background: #e7f3f1;
    color: #17424a;
}

.priority-low {
    background: #e9ecef;
    color: #495057;
}

.availability-console {
    background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
    border: 1px solid rgba(109, 40, 217, 0.24);
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(49, 17, 103, 0.16);
    color: var(--cms-ink);
    display: grid;
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    gap: 10px;
    padding: 14px;
}

.availability-toolbar {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(109, 40, 217, 0.18);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(49, 17, 103, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 12px;
}

.availability-toolbar label {
    align-items: center;
    color: #4a3900;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    margin: 0;
}

.availability-toolbar input,
.availability-toolbar select,
.availability-toolbar button,
.availability-toolbar a,
.availability-chart-tools select,
.availability-chart-tools button,
.availability-actions button,
.availability-actions a,
.availability-normal-button,
.availability-back-button {
    background: #ffd23f;
    border: 1px solid #c99000;
    border-radius: 8px;
    color: #2d2300;
    font-size: 12px;
    font-weight: 800;
    min-height: 28px;
    padding: 4px 10px;
    text-decoration: none;
}

.availability-toolbar input,
.availability-toolbar select {
    background: #ffffff;
    border-color: rgba(109, 40, 217, 0.22);
    min-width: 148px;
}

.availability-check input {
    min-width: 0;
}

.availability-date-nav {
    display: inline-flex;
    gap: 6px;
}

.availability-date-nav a {
    align-items: center;
    background: #4c1d95;
    border: 1px solid #6d28d9;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 22px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    width: 38px;
}

.availability-date-nav a:hover {
    background: #6d28d9;
    color: #ffffff;
}

.availability-titlebar {
    align-items: center;
    background: linear-gradient(135deg, #ffd64d 0%, #fff7d6 52%, #ffffff 100%);
    border: 1px solid rgba(196, 142, 0, 0.48);
    border-radius: 12px;
    display: flex;
    font-size: 13px;
    gap: 20px;
    padding: 10px 12px;
}

.availability-titlebar strong {
    color: #2d2300;
    font-weight: 700;
}

.availability-grid-wrap {
    background: #ffffff;
    border: 1px solid rgba(109, 40, 217, 0.24);
    border-radius: 12px;
    max-height: 430px;
    overflow: auto;
}

.availability-grid {
    border-collapse: collapse;
    font-size: 12px;
    min-width: 1120px;
    table-layout: fixed;
    width: 100%;
}

.availability-grid th,
.availability-grid td {
    border: 1px solid #e8e1f6;
    height: 24px;
    line-height: 18px;
    padding: 2px 5px;
    text-align: left;
}

.availability-grid thead th {
    background: #4c1d95;
    color: #ffffff;
    font-weight: 800;
    position: sticky;
    top: 0;
    z-index: 2;
}

.availability-grid th:first-child {
    background: #fff6d1;
    color: #3b2c00;
    font-weight: 800;
    min-width: 138px;
    position: sticky;
    left: 0;
    z-index: 1;
}

.availability-grid thead th:first-child {
    z-index: 3;
}

.availability-grid td {
    background: #ffffff;
    color: #111;
    min-width: 54px;
}

.availability-grid td.is-zero {
    background: #b91c1c;
    color: #ffffff;
    font-weight: 700;
}

.availability-grid td.is-low {
    background: #fff1b8;
    color: #6f5100;
    font-weight: 700;
}

.availability-grid td.is-open {
    background: #ffffff;
    color: #111;
}

.availability-spacer-row th,
.availability-spacer-row td {
    background: #fbf9ff;
    height: 18px;
}

.availability-total-row th,
.availability-total-row td {
    background: #ffd23f;
    color: #2d2300;
    font-weight: 700;
}

.availability-lower {
    background: #ffffff;
    border: 1px solid rgba(109, 40, 217, 0.24);
    border-radius: 12px;
    display: grid;
    gap: 8px;
    grid-template-columns: 92px minmax(420px, 1fr) 126px;
    min-height: 190px;
    padding: 8px;
}

.availability-chart-tools,
.availability-actions {
    display: grid;
    gap: 6px;
}

.availability-chart-tools {
    align-content: start;
    border-right: 1px solid #e8e1f6;
    padding-right: 4px;
}

.availability-actions {
    align-content: start;
}

.availability-actions a {
    align-items: center;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.availability-chart-mode.is-active {
    background: #4c1d95;
    border-color: #6d28d9;
    color: #ffffff;
}

.availability-chart {
    border-left: 1px solid #6d28d9;
    border-bottom: 1px solid #6d28d9;
    display: grid;
    grid-template-columns: 42px minmax(280px, 1fr) 88px;
    min-height: 160px;
    padding: 10px 8px 20px 0;
    position: relative;
}

.availability-chart.is-line .availability-bars .availability-bar {
    opacity: 0;
}

.availability-chart.is-line .availability-line-chart {
    display: block;
}

.availability-line-chart {
    display: none;
    grid-column: 2;
    grid-row: 1;
    height: calc(100% - 32px);
    inset: 10px 96px 34px 42px;
    overflow: visible;
    pointer-events: none;
    position: absolute;
    width: calc(100% - 138px);
    z-index: 2;
}

.availability-line-chart polyline {
    fill: none;
    stroke: #c99000;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
    vector-effect: non-scaling-stroke;
}

.availability-normal-button,
.availability-back-button {
    display: none;
}

body.availability-chart-zoomed {
    overflow: hidden;
}

body.availability-chart-zoomed .availability-chart.is-zoomed {
    background: #ffffff;
    border: 1px solid #6d28d9;
    bottom: 12px;
    box-shadow: 0 20px 55px rgba(49, 17, 103, 0.25);
    grid-template-columns: 58px minmax(320px, 1fr) 100px;
    left: 12px;
    min-height: calc(100vh - 24px);
    padding: 54px 18px 42px 0;
    position: fixed;
    right: 12px;
    top: 12px;
    z-index: 3000;
}

body.availability-chart-zoomed .availability-chart.is-zoomed .availability-bars {
    min-height: calc(100vh - 130px);
}

body.availability-chart-zoomed .availability-chart.is-zoomed::before {
    inset: 54px 118px 58px 58px;
}

body.availability-chart-zoomed .availability-chart.is-zoomed .availability-line-chart {
    inset: 54px 118px 58px 58px;
    width: calc(100% - 176px);
}

body.availability-chart-zoomed .availability-chart.is-zoomed .availability-normal-button {
    display: inline-flex;
    position: absolute;
    right: 14px;
    top: 12px;
    z-index: 4;
}

body.availability-chart-zoomed .availability-chart.is-zoomed .availability-back-button {
    display: inline-flex;
    position: absolute;
    right: 92px;
    top: 12px;
    z-index: 4;
}

.availability-chart::before {
    background:
        linear-gradient(to bottom, rgba(109, 40, 217, 0.35) 0 1px, transparent 1px) 0 0 / 100% 25% repeat-y;
    content: "";
    inset: 10px 96px 34px 42px;
    opacity: 0.28;
    pointer-events: none;
    position: absolute;
}

.availability-chart-scale {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    justify-content: space-between;
    padding-right: 8px;
    text-align: right;
}

.availability-bars {
    align-items: end;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(17, minmax(14px, 1fr));
    min-height: 140px;
    position: relative;
    z-index: 1;
}

.availability-bar-item {
    align-items: center;
    display: grid;
    gap: 4px;
    grid-template-rows: 1fr auto;
    height: 100%;
}

.availability-bar {
    align-self: end;
    background: linear-gradient(180deg, #ffd23f 0%, #c99000 100%);
    display: block;
    height: calc((var(--bar-value) / var(--availability-max)) * 120px);
    min-height: 2px;
    width: 100%;
}

.availability-bar-item small {
    color: #111;
    font-size: 11px;
    text-align: center;
}

.availability-chart-legend {
    align-items: center;
    display: flex;
    font-size: 12px;
    gap: 6px;
    justify-content: center;
}

.availability-chart-legend span {
    background: #ffd23f;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.position-window {
    font-family: Arial, Helvetica, sans-serif;
}

.position-grid-wrap {
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.42);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(49, 17, 103, 0.08);
    max-height: 58vh;
    overflow: auto;
}

.position-grid {
    border-collapse: collapse;
    color: #111;
    font-size: 12px;
    min-width: 760px;
    table-layout: fixed;
    width: 100%;
}

.position-grid th,
.position-grid td {
    border: 1px solid #f1df9b;
    height: 26px;
    line-height: 18px;
    padding: 4px 8px;
}

.position-grid thead th {
    background: #ffd23f;
    color: #2d2300;
    font-weight: 800;
    position: sticky;
    top: 0;
    z-index: 2;
}

.position-grid th:first-child {
    background: #fff6d1;
    color: #3b2c00;
    font-weight: 800;
    min-width: 210px;
    position: sticky;
    left: 0;
    text-align: left;
    z-index: 1;
}

.position-grid td {
    background: #ffffff;
    color: #111;
    text-align: right;
}

.position-grid thead th:first-child {
    background: #ffd23f;
    color: #2d2300;
    z-index: 3;
}

.position-row-warning th:first-child {
    background: #ffe8a3;
    color: #5f4100;
    font-weight: 700;
}

.position-row-service th:first-child {
    background: #fff1b8;
    color: #6f5100;
    font-weight: 700;
}

.position-row-available th:first-child {
    background: #ffd23f;
    color: #2d2300;
    font-weight: 800;
}

.position-footer {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(196, 142, 0, 0.42);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(49, 17, 103, 0.08);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 12px;
}

.position-footer strong {
    background: #fff6d1;
    border: 1px solid #f1df9b;
    border-radius: 8px;
    color: #2d2300;
    font-size: 13px;
    padding: 6px 10px;
}

.position-footer a {
    background: #ffd23f;
    border: 1px solid #c99000;
    border-radius: 8px;
    color: #2d2300;
    font-size: 12px;
    font-weight: 800;
    min-width: 84px;
    padding: 6px 14px;
    text-align: center;
    text-decoration: none;
}

.position-footer-right {
    justify-content: flex-end;
}

.yearly-grid {
    min-width: 1280px;
}

.yearly-grid th:first-child {
    min-width: 62px;
}

.yearly-grid td,
.yearly-grid th {
    text-align: right;
}

.yearly-chart-panel {
    background: #ffffff;
    border: 1px solid rgba(109, 40, 217, 0.24);
    border-radius: 8px;
    padding: 14px 10px;
}

.yearly-chart {
    min-height: 270px;
}

.yearly-chart .availability-bars {
    grid-template-columns: repeat(12, minmax(24px, 1fr));
    min-height: 230px;
}

.login-body,
.blocked-body {
    align-items: center;
    background: linear-gradient(135deg, #17424a, #2f7d78);
    display: flex;
    min-height: 100vh;
    justify-content: center;
}

.login-shell {
    padding: 20px;
    width: 100%;
}

.login-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
    margin: 0 auto;
    max-width: 410px;
    padding: 30px;
    text-align: center;
}

.brand-mark {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(44, 29, 117, 0.12);
    border-radius: 8px;
    color: var(--cms-burgundy);
    display: inline-flex;
    font-size: 20px;
    font-weight: 800;
    height: 58px;
    justify-content: center;
    margin: 0 auto;
    width: 58px;
}

.brand-mark img {
    height: 48px;
    max-width: 52px;
    object-fit: contain;
    width: auto;
}

.login-panel h1 {
    font-size: 25px;
    margin: 18px 0 4px;
}

.login-panel p {
    color: #64727b;
    margin-bottom: 22px;
}

.login-panel label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-top: 12px;
    text-align: left;
}

/* Fast Systems login and password-reset screens */
.fast-login-page { background: #f8f8f8; color: #242424; overflow: hidden; position: relative; }
.fast-login-page::before, .fast-login-page::after { content: ''; pointer-events: none; position: fixed; }
.fast-login-page::before { background: linear-gradient(135deg, #f5ba19, #ffd765); clip-path: polygon(0 0, 100% 50%, 0 100%); height: min(88vh, 760px); left: 0; top: 6vh; width: min(27vw, 430px); }
.fast-login-page::after { background: linear-gradient(135deg, transparent 44%, rgba(245, 186, 25, .10) 44%, rgba(245, 186, 25, .10) 48%, transparent 48%); inset: 0; }
.fast-login-shell { align-items: center; display: flex; justify-content: center; min-height: calc(100vh - 48px); padding: 32px 20px 70px; position: relative; width: 100%; z-index: 1; }
.fast-login-panel { background: rgba(255,255,255,.98); border: 1px solid #ddd; border-radius: 28px; box-shadow: 0 18px 46px rgba(34, 34, 34, .10); max-width: 360px; padding: 32px 34px 25px; width: 100%; }
.fast-login-brand { color: #e5a500; display: inline-block; font-size: 35px; font-weight: 800; letter-spacing: -1.8px; line-height: 1; margin-bottom: 30px; text-decoration: none; }
.fast-login-brand span, .fast-login-panel h1 span { color: #f5ba19; }
.fast-login-panel h1 { font-size: 16px; font-weight: 700; margin: 0 0 26px; }
.fast-login-intro { color: #656565; font-size: 13px; line-height: 1.55; margin: -11px 0 18px; }
.fast-login-panel label { color: #333; display: block; font-size: 12px; font-weight: 600; margin: 17px 0 4px; }
.fast-login-panel .form-control { background: transparent; border: 0; border-bottom: 1px solid #ddd; border-radius: 0; box-shadow: none; font-size: 14px; height: 32px; padding: 2px 0; }
.fast-login-panel .form-control:focus { border-color: #e5a500; box-shadow: none; }
.fast-password-field { position: relative; }
.fast-password-field .form-control { padding-right: 32px; }
.fast-password-toggle { background: transparent; border: 0; color: #d69b00; cursor: pointer; padding: 5px; position: absolute; right: 0; top: 0; }
.fast-login-submit { align-items: center; background: #f1f1f1; border: 0; border-radius: 3px; color: #d69b00; cursor: pointer; display: inline-flex; font-size: 17px; font-weight: 700; justify-content: center; margin-top: 31px; min-height: 43px; width: 100%; }
.fast-login-content, .fast-login-loading { align-items: center; display: inline-flex; gap: 9px; justify-content: center; }
.fast-login-submit .fast-login-loading[hidden], .fast-login-submit .fast-login-content[hidden] { display: none; }
.fast-login-submit.is-loading { background: #f1f1f1; color: #f5ba19; cursor: wait; }
.fast-login-submit.is-loading .fa-circle-notch { animation: fast-login-spin .85s linear infinite; font-size: 15px; }
@keyframes fast-login-spin { to { transform: rotate(360deg); } }
.fast-login-submit:hover, .fast-login-submit:focus { background: #f5ba19; color: #fff; outline: none; }
.login-language-picker { justify-content: flex-end; margin-top: 16px; }
.login-language-picker label { color: #666; }
.fast-forgot-link { color: #d69b00; display: inline-block; font-size: 14px; margin-top: 24px; text-decoration: none; }
.fast-forgot-link:hover { color: #9d7100; text-decoration: underline; }
.fast-login-footer { bottom: 0; color: #454545; font-size: 12px; font-weight: 600; left: 0; padding: 12px 20px; position: fixed; text-align: center; width: 100%; z-index: 2; }
.fast-login-panel .alert { margin: 0 0 12px; }
@media (max-width: 640px) { .fast-login-page::before { height: 190px; opacity: .35; top: 0; width: 230px; } .fast-login-panel { border-radius: 20px; padding: 28px 25px 22px; } .fast-login-brand { font-size: 31px; } }

.license-warning {
    background: #fff3cd;
    border-radius: 6px;
    color: #7a5b00;
    padding: 5px 8px;
}

.alert {
    border-radius: 6px;
    font-size: 13px;
    margin: 10px 0;
    padding: 10px 12px;
}

.alert-success {
    background: #e7f3f1;
    color: #17424a;
}

.alert-danger {
    background: #ffe3d0;
    color: #8a3d00;
}

.inline-form {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(90px, 0.8fr) minmax(120px, 1fr) auto;
    min-width: 300px;
}

.blocked-panel {
    max-width: 520px;
    text-align: center;
}

.photo-reg-card {
    background: #ffffff;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    color: #17212b;
    margin: 0 auto;
    max-width: 980px;
    padding: 28px;
}

.photo-reg-header,
.photo-reg-hero,
.photo-reg-signatures {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.photo-reg-header {
    border-bottom: 2px solid #1f4e5f;
    padding-bottom: 18px;
}

.photo-reg-brand,
.photo-reg-guest {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.photo-reg-brand img,
.photo-reg-brand span {
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    height: 58px;
    object-fit: contain;
    width: 58px;
}

.photo-reg-brand span,
.photo-reg-guest span {
    align-items: center;
    background: #edf4f6;
    color: #1f4e5f;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
}

.photo-reg-brand h2,
.photo-reg-guest h3,
.photo-reg-section h3 {
    margin: 0;
}

.photo-reg-brand p,
.photo-reg-guest p,
.photo-reg-ref small,
.photo-reg-room small {
    color: #667783;
    margin: 3px 0 0;
}

.photo-reg-ref {
    text-align: right;
}

.photo-reg-ref span,
.photo-reg-guest small,
.photo-reg-room span,
.photo-reg-grid span {
    color: #667783;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.photo-reg-ref strong {
    display: block;
    font-size: 20px;
    margin: 4px 0;
}

.photo-reg-hero {
    background: #f7fafb;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    margin: 22px 0;
    padding: 18px;
}

.photo-reg-guest img,
.photo-reg-guest span {
    border: 1px solid #cbd8de;
    border-radius: 8px;
    height: 86px;
    object-fit: cover;
    width: 86px;
}

.photo-reg-room {
    border-left: 1px solid #d9e2e7;
    min-width: 160px;
    padding-left: 22px;
    text-align: right;
}

.photo-reg-room strong {
    display: block;
    font-size: 38px;
    line-height: 1;
    margin: 6px 0;
}

.photo-reg-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-reg-grid div {
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    min-width: 0;
    padding: 12px;
}

.photo-reg-grid strong {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.photo-reg-section {
    margin-top: 22px;
}

.photo-reg-table {
    border-collapse: collapse;
    margin-top: 10px;
    width: 100%;
}

.photo-reg-table th,
.photo-reg-table td {
    border: 1px solid #d9e2e7;
    font-size: 13px;
    padding: 10px;
    text-align: left;
}

.photo-reg-table th {
    background: #edf4f6;
    color: #1f4e5f;
}

.photo-reg-notes p {
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    min-height: 56px;
    padding: 12px;
}

.photo-reg-signatures {
    margin-top: 42px;
}

.photo-reg-signatures div {
    border-top: 1px solid #17212b;
    flex: 1;
    padding-top: 8px;
}

.photo-reg-signatures span {
    color: #667783;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.checkout-receipt-sheet {
    background: #fff;
    border: 1px solid #d9e2e7;
    color: #17212b;
    margin: 0 auto;
    max-width: 210mm;
    padding: 13mm;
}

.checkout-receipt-header,
.checkout-receipt-brand,
.checkout-receipt-meta,
.checkout-receipt-totals,
.checkout-receipt-signatures {
    display: flex;
}

.checkout-receipt-header {
    align-items: flex-start;
    border-bottom: 2px solid #17212b;
    justify-content: space-between;
    padding-bottom: 16px;
}

.checkout-receipt-brand { align-items: center; gap: 12px; }
.checkout-receipt-brand img { max-height: 48px; max-width: 72px; object-fit: contain; }
.checkout-receipt-brand h2 { font-size: 21px; margin: 0; }
.checkout-receipt-brand p { color: #667783; font-size: 12px; margin: 2px 0 0; }
.checkout-receipt-ref { text-align: right; }
.checkout-receipt-ref span, .checkout-receipt-ref small, .checkout-receipt-meta span, .checkout-receipt-totals span { color: #667783; display: block; font-size: 11px; text-transform: uppercase; }
.checkout-receipt-ref strong { display: block; font-size: 18px; }

.checkout-receipt-meta { border-bottom: 1px solid #d9e2e7; gap: 12px; padding: 15px 0; }
.checkout-receipt-meta div { flex: 1; min-width: 0; }
.checkout-receipt-meta strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.checkout-receipt-section { margin-top: 20px; }
.checkout-receipt-section h3 { font-size: 15px; margin-bottom: 8px; }
.checkout-receipt-table { border-collapse: collapse; font-size: 11px; width: 100%; }
.checkout-receipt-table th, .checkout-receipt-table td { border: 1px solid #d9e2e7; padding: 7px 6px; vertical-align: top; }
.checkout-receipt-table th { background: #edf4f6; color: #1f4e5f; }
.checkout-receipt-table .amount { text-align: right; white-space: nowrap; }
.checkout-receipt-totals { flex-wrap: wrap; justify-content: flex-end; margin: 18px 0 35px auto; max-width: 380px; }
.checkout-receipt-totals div { border-bottom: 1px solid #d9e2e7; display: flex; justify-content: space-between; padding: 6px 0; width: 100%; }
.checkout-receipt-totals strong { font-size: 14px; }
.checkout-receipt-totals .checkout-receipt-final { border-bottom: 2px solid #17212b; padding-top: 10px; }
.checkout-receipt-final strong { font-size: 18px; }
.checkout-receipt-signatures { gap: 45px; justify-content: space-between; }
.checkout-receipt-signatures div { border-top: 1px solid #17212b; flex: 1; font-size: 11px; padding-top: 7px; text-transform: uppercase; }

/* Touch-first POS ordering */
.cms-page-pos-order .cms-page-shell { max-width: 1600px; }
.pos-order-header { align-items: center; background: linear-gradient(115deg, #ffd23f 0%, #ffe588 58%, #fff7d6 100%); border-radius: 18px; color: #2d2300; display: flex; justify-content: space-between; margin-bottom: 14px; min-height: 128px; overflow: hidden; padding: 25px 30px; position: relative; }
.pos-order-header::after { background: rgba(255,255,255,.08); border-radius: 50%; content: ''; height: 270px; position: absolute; right: -75px; top: -145px; width: 270px; }
.pos-order-header > * { position: relative; z-index: 1; }
.pos-order-kicker { color: #8a6100; display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; margin-bottom: 4px; text-transform: uppercase; }
.pos-order-header h1 { color: #2d2300; font-size: clamp(25px, 2.3vw, 34px); line-height: 1.05; margin: 0; }
.pos-order-header p { color: #685006; font-size: 14px; margin: 8px 0 0; }
.pos-fullscreen-toggle { align-items: center; background: rgba(255,255,255,.78); border: 1px solid rgba(138,104,22,.36); border-radius: 9px; color: #4f3b05; display: inline-flex; font-size: 13px; font-weight: 800; gap: 7px; min-height: 42px; padding: 9px 13px; position: relative; touch-action: manipulation; z-index: 2; }
.pos-header-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; position: relative; z-index: 2; }.pos-active-user { align-items: center; background: rgba(255,255,255,.52); border: 1px solid rgba(138,104,22,.24); border-radius: 9px; color: #5d470a; display: inline-flex; font-size: 13px; font-weight: 800; gap: 6px; min-height: 42px; padding: 9px 12px; }.pos-active-user i { color: #a87500; }
.pos-pin-lock { align-items: center; background: rgba(45,35,0,.64); display: flex; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 9999; }.pos-pin-card { background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); max-width: 360px; padding: 28px; text-align: center; width: 100%; }.pos-pin-card > i { color: #c99000; font-size: 31px; }.pos-pin-card h2 { color: #2d2300; font-size: 22px; margin: 12px 0 7px; }.pos-pin-card p { color: #746234; margin: 0 0 16px; }.pos-pin-card input { border: 1px solid #d9b544; border-radius: 9px; font-size: 28px; letter-spacing: .38em; margin-bottom: 14px; padding: 10px 8px 10px 18px; text-align: center; width: 100%; }.pos-pin-card button { width: 100%; }.pos-pin-card .pos-pin-error { color: #ad3931; font-weight: 700; margin: -3px 0 12px; }
body.pos-order-fullscreen { background: #fff7d6; overflow: auto; } body.pos-order-fullscreen .cms-topbar, body.pos-order-fullscreen #sidebar, body.pos-order-fullscreen .cms-nav-handle { display: none !important; } body.pos-order-fullscreen #view-panel { margin: 0; padding: 12px; width: 100%; } body.pos-order-fullscreen .cms-page-shell { max-width: none; }
.pos-open-orders { align-items: center; background: #fff !important; border: 1px solid rgba(196,142,0,.38) !important; color: #2d2300 !important; display: inline-flex; font-weight: 700; gap: 8px; min-height: 48px; padding: 10px 16px; white-space: nowrap; }
.pos-order-context { background: #fff; border: 1px solid rgba(196,142,0,.30); border-radius: 14px; box-shadow: 0 5px 18px rgba(138,104,22,.07); margin-bottom: 14px; padding: 12px 16px; }
.pos-order-location { align-items: end; display: flex; flex-wrap: wrap; gap: 12px; }
.pos-order-location label { color: #746234; flex: 1 1 180px; font-size: 11px; font-weight: 800; letter-spacing: .07em; margin: 0; text-transform: uppercase; }
.pos-order-location select { appearance: auto; background: #fffdf5; border: 1px solid rgba(196,142,0,.30); border-radius: 9px; color: #2d2300; font-size: 14px; font-weight: 700; height: 42px; margin-top: 5px; padding: 7px 10px; width: 100%; }
.pos-touch-order { align-items: stretch; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(315px, 390px); }
.pos-catalog-panel, .pos-cart-panel { background: #fff; border: 1px solid rgba(196,142,0,.30); border-radius: 16px; box-shadow: 0 6px 20px rgba(138,104,22,.07); min-width: 0; }
.pos-catalog-panel { padding: 18px; }
.pos-order-tools { align-items: center; display: flex; gap: 14px; justify-content: space-between; }
.pos-service-picker { background: #fff4c7; border-radius: 11px; display: flex; gap: 3px; padding: 4px; }
.pos-service-picker button { align-items: center; background: transparent; border: 0; border-radius: 8px; color: #746234; display: inline-flex; font-size: 13px; font-weight: 800; gap: 7px; min-height: 43px; padding: 8px 12px; touch-action: manipulation; }
.pos-service-picker button i { font-size: 14px; }
.pos-service-picker button.is-selected { background: #fff; box-shadow: 0 2px 7px rgba(138,104,22,.16); color: #8a6100; }
.pos-search { align-items: center; background: #fffdf6; border: 1px solid rgba(196,142,0,.30); border-radius: 10px; color: #9a7b24; display: flex; height: 45px; margin: 0; max-width: 285px; padding: 0 13px; width: 100%; }
.pos-search input { background: transparent; border: 0; box-shadow: none !important; color: #2d2300; font-size: 14px; height: 100%; margin-left: 9px; min-width: 0; outline: 0; width: 100%; }
.pos-category-tabs { border-bottom: 1px solid #f1df9d; display: flex; gap: 7px; margin: 18px 0 17px; overflow-x: auto; padding-bottom: 11px; scrollbar-width: thin; }
.pos-category-tabs button { background: #fff7d6; border: 1px solid transparent; border-radius: 20px; color: #746234; flex: 0 0 auto; font-size: 13px; font-weight: 750; min-height: 39px; padding: 7px 13px; touch-action: manipulation; }
.pos-category-tabs button.is-selected { background: #ffd23f; color: #2d2300; }
.pos-category-tabs span { background: rgba(255,255,255,.2); border-radius: 10px; font-size: 11px; margin-left: 4px; padding: 1px 5px; }
.pos-item-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: calc(100vh - 405px); min-height: 290px; overflow-y: auto; padding: 2px; }
.pos-item-card { align-items: flex-start; background: #fbfdfd; border: 1px solid #dfeaec; border-radius: 13px; color: #163b45; display: flex; flex-direction: column; justify-content: center; min-height: 126px; padding: 15px; position: relative; text-align: left; touch-action: manipulation; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; width: 100%; }
.pos-item-card:hover, .pos-item-card:focus { border-color: #36a69b; box-shadow: 0 7px 15px rgba(16,111,105,.14); outline: 0; transform: translateY(-2px); }
.pos-item-card:active { background: #e6f5f1; transform: scale(.98); }
.pos-item-card-name { font-size: 15px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.pos-item-card-meta { color: #789096; font-size: 11px; margin-top: 6px; }
.pos-item-card strong { color: #08716b; font-size: 15px; margin-top: 11px; }
.pos-no-items { color: #779096; font-weight: 600; padding: 28px; text-align: center; }
.pos-cart-panel { display: flex; flex-direction: column; max-height: calc(100vh - 184px); min-height: 510px; padding: 19px; position: sticky; top: 16px; }
.pos-cart-title { align-items: center; border-bottom: 1px solid #e5eeee; display: flex; justify-content: space-between; padding-bottom: 14px; }
.pos-cart-title span { color: #678088; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pos-cart-title span i { color: #0e827a; margin-right: 3px; }
.pos-cart-title h2 { color: #163b45; font-size: 19px; margin: 3px 0 0; }
.pos-clear-cart { background: transparent; border: 0; color: #bd5a55; font-size: 13px; font-weight: 800; min-height: 40px; padding: 7px; }
.pos-clear-cart:disabled { color: #aebdc0; }
.pos-order-details { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; padding: 14px 0; }
.pos-order-details label { color: #607980; font-size: 11px; font-weight: 800; letter-spacing: .04em; margin: 0; text-transform: uppercase; }
.pos-order-details .pos-guest-field { grid-column: 1 / -1; }
.pos-order-details .form-control { background: #f7faf9; border: 1px solid #dce8e9; border-radius: 8px; color: #203c45; font-size: 13px; height: 40px; margin-top: 5px; }
.pos-cart-lines { border-bottom: 1px solid #e5eeee; border-top: 1px solid #e5eeee; flex: 1; min-height: 150px; overflow-y: auto; }
.pos-cart-empty { color: #7c9297; line-height: 1.55; padding: 40px 12px; text-align: center; }
.pos-cart-empty small { font-size: 12px; }
.pos-cart-line { align-items: center; border-bottom: 1px solid #edf2f2; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto 30px; min-height: 72px; padding: 9px 0; }
.pos-cart-line strong { color: #24434b; display: block; font-size: 13px; overflow-wrap: anywhere; }
.pos-cart-line small { color: #0f7a71; display: block; font-size: 12px; font-weight: 700; margin-top: 3px; }
.pos-quantity { align-items: center; background: #eff5f4; border-radius: 8px; display: flex; overflow: hidden; }
.pos-quantity button { background: transparent; border: 0; color: #116b68; font-size: 20px; font-weight: 600; height: 34px; touch-action: manipulation; width: 31px; }
.pos-quantity span { color: #23434a; font-size: 13px; font-weight: 800; min-width: 18px; text-align: center; }
.pos-remove { background: #fff4f2; border: 0; border-radius: 7px; color: #c45b54; font-size: 21px; height: 31px; line-height: 1; touch-action: manipulation; width: 30px; }
.pos-line-options { background: transparent; border: 0; color: #8a6100; display: inline-block; font-size: 11px; font-weight: 800; margin-top: 5px; padding: 0; text-decoration: underline; touch-action: manipulation; }
.pos-line-instruction { color: #9b3d1f !important; font-size: 11px !important; line-height: 1.3; }
.pos-item-options-modal { align-items: center; background: rgba(45,35,0,.58); display: flex; inset: 0; justify-content: center; padding: 18px; position: fixed; z-index: 10000; }
.pos-item-options-modal[hidden] { display: none; }
.pos-item-options-card { background: #fff; border-radius: 15px; box-shadow: 0 20px 55px rgba(0,0,0,.3); max-width: 440px; padding: 22px; width: 100%; }
.pos-item-options-head { align-items: flex-start; display: flex; justify-content: space-between; }.pos-item-options-head span { color: #9a720a; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.pos-item-options-head h2 { color: #2d2300; font-size: 21px; margin: 3px 0 0; }.pos-item-options-close { background: #fff4c7; border: 0; border-radius: 8px; color: #765d13; font-size: 25px; height: 34px; line-height: 1; width: 34px; }
.pos-item-options-card > p { color: #71591b; font-size: 14px; font-weight: 800; margin: 16px 0 11px; }
.pos-item-option-list { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }.pos-item-option-list label { align-items: center; background: #fff9e8; border: 1px solid #f1df9d; border-radius: 8px; color: #4d3c0d; display: flex; font-size: 13px; font-weight: 700; gap: 7px; margin: 0; min-height: 41px; padding: 8px; }.pos-item-option-list input { accent-color: #c99000; height: 17px; width: 17px; }
.pos-item-custom-note { color: #71591b; display: block; font-size: 12px; font-weight: 800; margin: 16px 0; }.pos-item-custom-note textarea, .pos-item-custom-note input { border: 1px solid #d9b544; border-radius: 8px; display: block; font: inherit; margin-top: 6px; padding: 9px; width: 100%; }.pos-item-custom-note textarea { min-height: 75px; resize: vertical; }.pos-item-options-actions { display: flex; gap: 9px; justify-content: flex-end; }.pos-item-options-actions .btn { font-weight: 800; }
.pos-item-pagination { align-items: center; display: flex; gap: 12px; justify-content: center; margin: 13px 0 4px; }.pos-item-pagination button { background: #fff7d6; border: 1px solid #d9b544; border-radius: 9px; color: #71591b; font-size: 14px; font-weight: 800; min-height: 45px; padding: 8px 15px; touch-action: manipulation; }.pos-item-pagination button:disabled { opacity: .4; }.pos-item-pagination span { color: #71591b; font-size: 12px; font-weight: 800; min-width: 132px; text-align: center; }
.waiter-touch-keyboard { align-items: flex-end; background: rgba(45,35,0,.58); display: flex; inset: 0; justify-content: center; padding: 12px; position: fixed; z-index: 10001; }.waiter-touch-keyboard[hidden] { display: none; }.waiter-touch-keyboard-card { background: #fffaf0; border-radius: 16px 16px 10px 10px; box-shadow: 0 -12px 34px rgba(0,0,0,.26); max-width: 760px; padding: 14px; width: 100%; }.waiter-touch-keyboard-head { align-items: center; color: #4d3c0d; display: flex; font-size: 15px; justify-content: space-between; margin-bottom: 12px; }.waiter-touch-keyboard-head button { background: #08736d; border: 0; border-radius: 8px; color: #fff; font-weight: 800; min-height: 38px; padding: 0 18px; }.waiter-touch-keyboard-keys { display: grid; gap: 7px; grid-template-columns: repeat(10, minmax(0, 1fr)); }.waiter-touch-keyboard-keys button { background: #fff; border: 1px solid #d9b544; border-radius: 8px; color: #2d2300; font-size: 17px; font-weight: 800; min-height: 47px; touch-action: manipulation; }.waiter-touch-keyboard-keys .waiter-key-space { grid-column: span 6; }.waiter-touch-keyboard-keys .waiter-key-action { background: #fff4c7; }.waiter-touch-keyboard-keys .waiter-key-action:last-child { grid-column: span 2; }
.pos-cart-total { align-items: baseline; display: flex; justify-content: space-between; padding: 15px 0 12px; }
.pos-cart-total span { color: #61797f; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pos-cart-total strong { color: #173f47; font-size: 24px; }
.pos-send-order { align-items: center; background: linear-gradient(100deg, #08736d, #129a86) !important; border: 0 !important; border-radius: 10px; box-shadow: 0 6px 13px rgba(9,117,108,.25); display: flex; font-size: 16px; font-weight: 800; justify-content: space-between; min-height: 57px; padding: 12px 18px; touch-action: manipulation; width: 100%; }
.pos-send-order:disabled { background: #aababc !important; box-shadow: none; }
@media (max-width: 1199.98px) { .pos-touch-order { grid-template-columns: minmax(0, 1fr) 340px; } .pos-service-picker button { padding: 8px 9px; } .pos-item-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); } }
@media (max-width: 991.98px) { .pos-touch-order { grid-template-columns: 1fr; } .pos-cart-panel { max-height: none; position: static; } .pos-item-grid { max-height: none; } }
@media (max-width: 640px) { .pos-order-header { align-items: flex-start; flex-direction: column; padding: 22px; } .pos-order-header p { font-size: 13px; } .pos-order-tools { align-items: stretch; flex-direction: column; } .pos-search { max-width: none; } .pos-service-picker { width: 100%; } .pos-service-picker button { flex: 1; flex-direction: column; font-size: 11px; gap: 3px; padding: 7px 4px; } .pos-item-grid { gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .pos-item-card { min-height: 112px; padding: 12px; } .pos-order-details { grid-template-columns: 1fr; } .pos-order-details .pos-guest-field { grid-column: auto; } .pos-item-option-list { grid-template-columns: 1fr; } }

/* POS brand palette: yellow, white, and the application's warm ink. */
.cms-page-pos-order .pos-item-card { background: #fffefa; border-color: rgba(196,142,0,.27); color: #2d2300; }
.cms-page-pos-order .pos-item-card:hover, .cms-page-pos-order .pos-item-card:focus { border-color: #e8ad00; box-shadow: 0 7px 15px rgba(138,104,22,.16); }
.cms-page-pos-order .pos-item-card:active { background: #fff1b8; }
.cms-page-pos-order .pos-item-card-name, .cms-page-pos-order .pos-cart-title h2, .cms-page-pos-order .pos-cart-total strong { color: #2d2300; }
.cms-page-pos-order .pos-item-card-meta, .cms-page-pos-order .pos-no-items, .cms-page-pos-order .pos-cart-empty { color: #746234; }
.cms-page-pos-order .pos-item-card strong, .cms-page-pos-order .pos-cart-line small { color: #a36e00; }
.cms-page-pos-order .pos-cart-title, .cms-page-pos-order .pos-cart-lines, .cms-page-pos-order .pos-cart-line { border-color: #f1df9d; }
.cms-page-pos-order .pos-cart-title span, .cms-page-pos-order .pos-order-details label, .cms-page-pos-order .pos-cart-total span { color: #746234; }
.cms-page-pos-order .pos-cart-title span i { color: #c99000; }
.cms-page-pos-order .pos-order-details .form-control { background: #fffdf6; border-color: rgba(196,142,0,.30); color: #2d2300; }
.cms-page-pos-order .pos-quantity { background: #fff4c7; }
.cms-page-pos-order .pos-quantity button { color: #8a6100; }
.cms-page-pos-order .pos-quantity span { color: #2d2300; }
.cms-page-pos-order .pos-remove { background: #fff1b8; color: #8a6100; }
.cms-page-pos-order .pos-clear-cart { color: #8a6100; }
.cms-page-pos-order .pos-send-order { background: linear-gradient(100deg, #e8ad00, #ffd23f) !important; box-shadow: 0 6px 13px rgba(138,104,22,.25); color: #2d2300 !important; }
.cms-page-pos-order .pos-send-order:disabled { background: #eadb9d !important; color: #8c7a40 !important; }
.cms-page-pos-order .pos-service-picker, .cms-page-pos-order #pos-table-id { display: none; }
.pos-table-step { align-items: center; background: #fff7d6; border: 1px solid rgba(196,142,0,.36); border-radius: 12px; display: flex; gap: 18px; justify-content: space-between; margin: 16px 0 3px; padding: 13px 15px; }
.pos-table-step span { color: #a36e00; display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pos-table-step strong { color: #2d2300; display: block; font-size: 15px; }
.pos-table-step small { color: #746234; display: block; margin-top: 2px; }
.pos-table-step select { background: #fff; border-color: #d9b544; font-weight: 700; max-width: 320px; min-height: 46px; }
.pos-back-to-tables { background: #fff7d6; border: 1px solid rgba(196,142,0,.38); border-radius: 8px; color: #71591b; font-size: 12px; font-weight: 800; margin: 11px 0 0; padding: 8px 11px; }
.pos-table-board { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); margin: 12px 0 4px; }
.pos-menu-groups { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 18px; }
.pos-menu-group { align-items: flex-start; background: #fffdf6; border: 1px solid rgba(196,142,0,.35); border-radius: 13px; color: #2d2300; display: flex; flex-direction: column; min-height: 130px; padding: 17px; text-align: left; touch-action: manipulation; }
.pos-custom-item-button { background: #fff4c7; border-color: #d9a400; }.pos-custom-item-button > i { color: #a36e00; }
.void-order-preview { border-top: 1px solid #e5e9e9; margin-top: 16px; padding-top: 15px; }.void-order-preview > strong { color: #27424a; display: block; font-size: 14px; margin-bottom: 8px; }.void-order-item { align-items: baseline; border-bottom: 1px solid #edf1f1; display: grid; gap: 5px 12px; grid-template-columns: 1fr auto; padding: 8px 0; }.void-order-item strong { color: #304a52; font-size: 13px; }.void-order-item span { color: #226d67; font-size: 13px; font-weight: 800; }.void-order-item small { color: #965132; font-size: 12px; grid-column: 1 / -1; }
.pos-menu-group:hover, .pos-menu-group:focus { border-color: #d9a400; box-shadow: 0 6px 14px rgba(138,104,22,.13); outline: 0; transform: translateY(-1px); }
.pos-menu-group > i { color: #d69c00; font-size: 27px; margin-bottom: 12px; }.pos-menu-group span { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }.pos-menu-group small { color: #846d31; font-size: 12px; font-weight: 700; margin-top: auto; padding-top: 10px; }.pos-menu-group small i { font-size: 10px; margin-left: 4px; }
.pos-items-heading { align-items: center; border-bottom: 1px solid #f1df9d; display: flex; gap: 12px; margin: 18px 0 14px; padding-bottom: 11px; }.pos-items-heading button { background: #fff7d6; border: 0; border-radius: 8px; color: #71591b; font-size: 12px; font-weight: 800; padding: 8px 10px; }.pos-items-heading strong { color: #2d2300; font-size: 16px; }
.pos-existing-order { background: #fff7d6; border: 1px solid rgba(196,142,0,.30); border-radius: 10px; margin-top: 14px; padding: 11px 13px; }.pos-existing-order strong { color: #5f480b; display: block; font-size: 13px; margin-bottom: 6px; }.pos-existing-order span { background: #fff; border-radius: 12px; color: #725d25; display: inline-block; font-size: 12px; font-weight: 700; margin: 3px 4px 0 0; padding: 4px 8px; }
.pos-table-card { background: #fff; border: 2px solid #ddd; border-radius: 11px; min-height: 92px; padding: 10px; text-align: left; touch-action: manipulation; }
.pos-table-card strong, .pos-table-card span, .pos-table-card small { display: block; }
.pos-table-card strong { color: #2d2300; font-size: 16px; }.pos-table-card span { font-size: 12px; font-weight: 800; margin-top: 4px; }.pos-table-card small { color: #746234; font-size: 10px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-table-card.is-free { background: #ecf9ee; border-color: #38a169; }.pos-table-card.is-free span { color: #207a3f; }
.pos-table-card.is-mine { background: #fff0ed; border-color: #df5d4f; }.pos-table-card.is-mine span { color: #b43e33; }
.pos-table-card.is-occupied { background: #f4f4f4; border-color: #b8b8b8; cursor: not-allowed; opacity: .72; }.pos-table-card.is-selected { box-shadow: 0 0 0 3px #ffd23f; }
@media (max-width: 640px) { .pos-table-step { align-items: stretch; flex-direction: column; } .pos-table-step select { max-width: none; } }
.cashier-order-entry { display: none; }
.pos-print-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 0 0 16px; }
.pos-print-ticket { background: #fff; border: 1px solid #d5d5d5; box-shadow: 0 4px 16px rgba(0,0,0,.08); margin: 0 auto 22px; max-width: 740px; padding: 28px; }
.pos-print-ticket-head { align-items: center; border-bottom: 3px solid #ffd23f; display: flex; font-size: 20px; justify-content: space-between; padding-bottom: 12px; }
.pos-print-ticket p { color: #555; line-height: 1.6; }
.pos-print-ticket table, .pos-a4-receipt table { border-collapse: collapse; width: 100%; }
.pos-print-ticket th, .pos-print-ticket td, .pos-a4-receipt th, .pos-a4-receipt td { border-bottom: 1px solid #ddd; padding: 10px 5px; text-align: left; }
.pos-print-ticket td:last-child, .pos-print-ticket th:last-child { text-align: right; width: 90px; }
.pos-print-ticket small { color: #555; display: block; margin-top: 4px; }
.pos-a4-receipt { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.10); margin: 0 auto; max-width: 210mm; min-height: 297mm; padding: 22mm; }
.pos-a4-receipt header { border-bottom: 3px solid #ffd23f; margin-bottom: 20px; padding-bottom: 15px; text-align: center; }
.pos-receipt-logo { display: block; margin: 0 auto 10px; max-height: 76px; max-width: 210px; object-fit: contain; }
.pos-a4-receipt header h1 { color: #2d2300; font-size: 25px; margin: 0; }
.pos-a4-receipt header p { font-weight: 800; letter-spacing: .14em; margin: 7px 0 0; }
.pos-receipt-meta { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; margin-bottom: 23px; }
.pos-a4-receipt th { background: #fff7d6; color: #2d2300; }
.pos-a4-receipt .amount { text-align: right; }
.pos-receipt-total { border-top: 2px solid #2d2300; display: flex; font-size: 20px; justify-content: space-between; margin: 22px 0; padding: 13px 5px; }
.pos-a4-receipt footer { border-top: 1px solid #ddd; color: #555; margin-top: 45px; padding-top: 12px; text-align: center; }

@media print {
    body.cms-page-pos-order-ticket, body.cms-page-pos-receipt { background: #fff; }
    body.cms-page-pos-order-ticket .cms-topbar, body.cms-page-pos-order-ticket .cms-sidebar, body.cms-page-pos-order-ticket .cms-nav-handle, body.cms-page-pos-order-ticket .pos-print-actions, body.cms-page-pos-receipt .cms-topbar, body.cms-page-pos-receipt .cms-sidebar, body.cms-page-pos-receipt .cms-nav-handle, body.cms-page-pos-receipt .pos-print-actions { display: none !important; }
    body.cms-page-pos-order-ticket #view-panel, body.cms-page-pos-receipt #view-panel, body.cms-page-pos-order-ticket .cms-page-shell, body.cms-page-pos-receipt .cms-page-shell { box-shadow: none; margin: 0; padding: 0; width: 100%; }
    .pos-print-ticket { border: 0; box-shadow: none; break-after: page; max-width: none; }
    .pos-a4-receipt { box-shadow: none; margin: 0; max-width: none; min-height: 0; padding: 12mm; }
    body.cms-page-reception-photo-reg-card {
        background: #ffffff;
    }

    body.cms-page-reception-photo-reg-card .cms-topbar,
    body.cms-page-reception-photo-reg-card .cms-sidebar,
    body.cms-page-reception-photo-reg-card .cms-nav-handle,
    body.cms-page-reception-photo-reg-card .photo-reg-screen-actions {
        display: none !important;
    }

    body.cms-page-reception-photo-reg-card #view-panel {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    body.cms-page-reception-photo-reg-card .cms-page-shell {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    body.cms-page-reception-photo-reg-card .photo-reg-card {
        border: 0;
        box-shadow: none;
        max-width: none;
        padding: 10mm;
    }

    body.cms-page-reception-checkout-receipt {
        background: #ffffff;
    }

    body.cms-page-reception-checkout-receipt .cms-topbar,
    body.cms-page-reception-checkout-receipt .cms-sidebar,
    body.cms-page-reception-checkout-receipt .cms-nav-handle,
    body.cms-page-reception-checkout-receipt .checkout-receipt-actions {
        display: none !important;
    }

    body.cms-page-reception-checkout-receipt #view-panel,
    body.cms-page-reception-checkout-receipt .cms-page-shell {
        border: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    body.cms-page-reception-checkout-receipt .checkout-receipt-sheet {
        border: 0;
        max-width: none;
        padding: 10mm;
    }
}

@media (max-width: 991.98px) {
    body {
        --cms-sidebar-width: min(88vw, 304px);
        --cms-topbar-top: 12px;
        --cms-sidebar-top: calc(var(--cms-topbar-bottom) + 10px);
        --cms-sidebar-visible-left: 12px;
        --cms-sidebar-hidden-left: calc((var(--cms-sidebar-width) * -1) - 28px);
        --cms-content-left: 0px;
    }

    .cms-topbar {
        left: 12px;
        padding: 8px 10px;
        right: 12px;
        top: var(--cms-topbar-top);
    }

    .cms-topbar-meta,
    .cms-brand-copy,
    .cms-user-copy span {
        display: none;
    }

    .cms-topbar-left,
    .cms-topbar-right {
        gap: 10px;
    }

    .cms-user-copy strong {
        max-width: 92px;
    }

    .cms-logout {
        padding-left: 10px;
        padding-right: 10px;
    }

    #sidebar.cms-sidebar {
        height: calc(100vh - 88px);
        height: calc(100dvh - 88px);
    }

    .cms-nav-handle {
        top: calc(var(--cms-sidebar-top) + 18px);
    }

    .cms-sidebar-scroll {
        padding: 18px 14px 24px;
    }

    #view-panel {
        margin-left: 0;
        padding: calc(var(--cms-topbar-bottom) + 18px) 12px 12px;
        width: 100%;
    }

    body.cms-nav-pinned #view-panel {
        margin-left: 0;
        width: 100%;
    }

    .cms-page-shell {
        border-radius: 18px;
        padding: 14px;
    }

    .page-header {
        align-items: flex-start;
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .reception-page-nav {
        justify-content: flex-start;
        justify-self: stretch;
        max-width: none;
    }

    .admin-grid,
    .form-grid,
    .stay-entry-summary,
    .stay-facts,
    .stay-option-grid,
    .order-line,
    .inline-form,
    .kitchen-board {
        grid-template-columns: 1fr;
    }

    .stay-entry-summary,
    .stay-option-grid {
        padding: 12px;
    }

    .stay-option-compact .compact-inline-form {
        flex-direction: column;
    }

    .availability-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .availability-toolbar label,
    .availability-toolbar input,
    .availability-toolbar select,
    .availability-toolbar button {
        width: 100%;
    }

    .availability-date-nav {
        width: 100%;
    }

    .availability-date-nav a {
        flex: 1;
    }

    .availability-lower {
        grid-template-columns: 1fr;
    }

    .photo-reg-header,
    .photo-reg-hero,
    .photo-reg-signatures {
        align-items: stretch;
        flex-direction: column;
    }

    .photo-reg-ref,
    .photo-reg-room {
        text-align: left;
    }

    .photo-reg-room {
        border-left: 0;
        border-top: 1px solid #d9e2e7;
        padding-left: 0;
        padding-top: 14px;
        width: 100%;
    }

    .photo-reg-grid {
        grid-template-columns: 1fr;
    }

    .availability-chart-tools,
    .availability-actions {
        border-right: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .span-2 {
        grid-column: span 1;
    }
}

/* Dedicated tablet waiter POS: use the whole screen without CMS chrome. */
body.waiter-pos-page { background: #fff7d6; min-height: 100vh; }
body.waiter-pos-page #view-panel { margin: 0; min-height: 100vh; padding: 12px; width: 100%; }
body.waiter-pos-page .cms-page-shell { max-width: none; }
body.waiter-pos-page .pos-touch-order { min-height: calc(100vh - 190px); }
body.waiter-pos-page .pos-item-grid { overflow: hidden; }
.waiter-pos-page .login-shell { align-items: flex-start; box-sizing: border-box; display: flex; justify-content: center; min-height: 100vh; padding: 7vh 20px 30px; }
.waiter-pos-page .login-panel { text-align: center; width: min(100%, 420px); }
.waiter-pos-page .waiter-outlet-title { font-size: 15px; font-weight: 800; letter-spacing: .12em; margin: 18px 0 20px; text-align: center; }
.waiter-pos-page .waiter-others-toggle { margin-top: 14px; min-height: 54px; }
.waiter-others-panel { background: rgba(255,255,255,.72); border: 1px solid #d9b544; border-radius: 14px; margin: 10px 0; padding: 12px; text-align: left; }
.waiter-quick-actions { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.waiter-quick-actions .waiter-quick-action:last-child { grid-column: span 2; }
.waiter-quick-action, .waiter-service-button { align-items: center; background: #fff; border: 1px solid #d9b544; border-radius: 12px; color: #3e3103; display: flex; flex-direction: column; font-weight: 800; justify-content: center; min-height: 92px; padding: 10px; touch-action: manipulation; }
.waiter-quick-action i { font-size: 22px; margin-bottom: 6px; }
.waiter-quick-action small { color: #725d25; font-size: 11px; font-weight: 700; margin-top: 4px; text-align: center; }
.waiter-quick-action:disabled { cursor: not-allowed; opacity: .5; }
.waiter-action-form { margin-top: 12px; }
.waiter-action-form label { color: #3e3103; display: block; font-size: 13px; font-weight: 800; }
.waiter-action-form input { font-size: 19px; min-height: 50px; margin: 6px 0 10px; text-align: center; }
.waiter-service-options { display: grid; gap: 9px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.waiter-service-button { font-size: 13px; min-height: 76px; }
.waiter-service-button i { font-size: 20px; margin-bottom: 6px; }
.waiter-service-button:disabled { cursor: not-allowed; opacity: .55; }
.waiter-pin-pad { display: grid; gap: 9px; grid-template-columns: repeat(3, 1fr); margin: 16px 0; }
.waiter-pin-pad button { background: #fff; border: 1px solid #d9b544; border-radius: 10px; color: #3e3103; font-size: 22px; font-weight: 800; min-height: 55px; touch-action: manipulation; }
.waiter-pin-pad button:active { background: #ffd23f; transform: translateY(1px); }
.waiter-pin-pad .waiter-pin-clear { font-size: 13px; }
.waiter-language-picker { margin: 18px 0 20px; }
.waiter-language-label { display: block; color: #665b32; font-size: 13px; font-weight: 800; letter-spacing: .04em; margin-bottom: 9px; text-align: center; }
.waiter-language-options { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.waiter-language-options button { align-items: center; background: #fffdf5; border: 2px solid #d9b544; border-radius: 13px; color: #3e3103; display: flex; font-size: 17px; font-weight: 800; justify-content: center; min-height: 58px; padding: 10px; touch-action: manipulation; }
.waiter-language-options button.is-selected { background: #ffd23f; border-color: #9c7610; box-shadow: inset 0 0 0 1px rgba(62,49,3,.15); }
.waiter-language-options button:active { transform: translateY(1px); }
.pos-existing-order-line { align-items: center; border-top: 1px solid rgba(196,142,0,.18); display: flex; gap: 10px; justify-content: space-between; padding: 7px 0; }
.pos-existing-order-line span { background: transparent; color: #5f480b; margin: 0; padding: 0; }
.pos-existing-order-line small { color: #8a6100; font-size: 12px; font-weight: 800; text-align: right; white-space: nowrap; }
.pos-existing-order-total { align-items: center; border-top: 1px solid rgba(196,142,0,.35); display: flex; justify-content: space-between; margin-top: 5px; padding-top: 8px; }
.pos-existing-order-total span { background: transparent; color: #725d25; margin: 0; padding: 0; }
.pos-existing-order-total strong { color: #5f480b; margin: 0; }
.pos-existing-order-hint { color: #8a6100; display: block; font-size: 11px; font-style: italic; font-weight: 700; margin: -3px 0 6px; }

/* Cashier open-order list: coloured groups keep every table's KOT and items together. */
.pos-open-orders-table { border-collapse: separate; border-spacing: 0 9px; }
.pos-open-orders-table thead th { border-bottom: 0 !important; }
.pos-open-orders-table td { border: 0 !important; }
.pos-open-orders-table .pos-open-order-row td { font-weight: 600; }
.pos-open-orders-table .pos-open-order-row td:first-child { border-radius: 9px 0 0 9px; }
.pos-open-orders-table .pos-open-order-row td:last-child { border-radius: 0 9px 9px 0; }
.pos-open-orders-table .pos-open-order-items td { padding-top: 0; }
.pos-open-orders-table .pos-open-order-items td:first-child { border-radius: 0 0 0 9px; }
.pos-open-orders-table .pos-open-order-items td:last-child { border-radius: 0 0 9px 0; }
.pos-open-orders-table .pos-open-order-items .status-pill { background: rgba(255, 255, 255, .68); color: #30434a; margin: 2px 4px 2px 0; }
.pos-open-orders-table .pos-table-colour td { background: hsl(var(--pos-order-hue) 75% 94%); }
@media (max-width: 767px) {
    .pos-open-orders-table { border-spacing: 0 6px; }
    .pos-open-orders-table td, .pos-open-orders-table th { white-space: nowrap; }
}

@media (min-width: 992px) {
    html:has(body.waiter-pos-page), body.waiter-pos-page { height: 100%; overflow: hidden; }
    body.waiter-pos-page #view-panel { box-sizing: border-box; height: 100vh; overflow: hidden; }
    body.waiter-pos-page .cms-page-shell { display: flex; flex-direction: column; height: 100%; }
    body.waiter-pos-page .pos-order-header { flex: 0 0 auto; min-height: 96px; padding: 17px 24px; }
    body.waiter-pos-page .pos-order-context { flex: 0 0 auto; margin-bottom: 10px; padding: 9px 14px; }
    body.waiter-pos-page .pos-touch-order { flex: 1 1 auto; min-height: 0; }
    body.waiter-pos-page .pos-catalog-panel, body.waiter-pos-page .pos-cart-panel { min-height: 0; }
    body.waiter-pos-page .pos-catalog-panel { display: flex; flex-direction: column; overflow: hidden; }
    body.waiter-pos-page .pos-cart-panel { height: 100%; max-height: none; position: static; }
    body.waiter-pos-page .pos-existing-order { -webkit-overflow-scrolling: touch; flex: 0 1 auto; max-height: 185px; overflow-y: auto; touch-action: pan-y; }
    body.waiter-pos-page .pos-item-grid { flex: 1 1 auto; max-height: none; min-height: 0; overflow-y: auto; }
}

/* Small-screen safeguards shared by all CMS modules.  Individual modules can
   keep their desktop density while the shell remains usable on touch devices. */
@media (max-width: 575.98px) {
    body { --cms-topbar-top: 8px; --cms-topbar-height: 54px; }
    body.cms-shell::before { border-radius: 14px; inset: 4px; }
    .cms-topbar { border-radius: 12px; left: 8px; min-height: 42px; right: 8px; }
    .cms-topbar-left, .cms-topbar-right { gap: 7px; }
    .cms-menu-toggle { height: 38px; width: 38px; }
    .cms-language-picker label, .cms-language-picker select { font-size: 11px; }
    .cms-language-picker select { max-width: 92px; min-height: 34px; }
    .cms-user-button { min-height: 38px; padding: 3px 6px; }
    #view-panel { padding: calc(var(--cms-topbar-bottom) + 12px) 8px 8px; }
    .cms-page-shell { border-radius: 14px; min-height: calc(100dvh - 76px); padding: 11px; }
    .page-header { border-radius: 13px; padding: 13px; }
    .page-header h1, .cms-page-shell h1 { font-size: clamp(1.25rem, 6vw, 1.65rem); }
    .cms-page-shell .btn { min-height: 42px; }
    .cms-page-shell .btn-sm { min-height: 36px; }
    .cms-page-shell .table-responsive { -webkit-overflow-scrolling: touch; border-radius: 10px; }
    .cms-page-shell table { min-width: max-content; }
    .cms-page-shell .form-control, .cms-page-shell select.form-control { font-size: 16px; min-height: 42px; }
    .cms-confirm-actions { align-items: stretch; flex-direction: column-reverse; }
    .cms-confirm-actions .btn { width: 100%; }
    .waiter-pos-page .login-shell { padding: 24px 12px; }
    .waiter-pos-page .login-panel { width: 100%; }
    .waiter-language-options button { font-size: 16px; min-height: 62px; }
    .waiter-pin-pad button { min-height: 62px; }
    .waiter-quick-actions, .waiter-service-options { grid-template-columns: 1fr; }
    .waiter-quick-actions .waiter-quick-action:last-child { grid-column: auto; }
}

/* Full-screen feedback while the server loads the next CMS interface. */
.cms-page-loader { align-items: center; background: rgba(255, 255, 255, .97); display: flex; inset: 0; justify-content: center; position: fixed; z-index: 9999; }
.cms-page-loader[hidden] { display: none; }
.cms-page-loader__content { align-items: center; color: #404040; display: flex; flex-direction: column; font-family: Arial, sans-serif; gap: 17px; }
.cms-page-loader__spinner { align-items: center; animation: cms-page-loader-pulse 1.1s ease-in-out infinite; background: #ffe58a; border: 5px solid #fff8d8; border-radius: 50%; box-sizing: border-box; display: flex; height: 58px; justify-content: center; width: 58px; }
.cms-page-loader__spinner span { background: #f5ba19; border-radius: 50%; display: block; height: 7px; width: 7px; }
.cms-page-loader__label { font-size: 13px; font-weight: 500; text-transform: uppercase; }
html[lang="am"] body { font-family: "Noto Sans Ethiopic", "Nyala", "Abyssinica SIL", Arial, sans-serif; }
body.cms-is-navigating { cursor: wait; }
body.cms-is-navigating * { cursor: wait !important; }
@keyframes cms-page-loader-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 186, 25, .14); transform: scale(1); } 50% { box-shadow: 0 0 0 10px rgba(245, 186, 25, 0); transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .cms-page-loader__spinner { animation: none; } }

/* Responsive safety layer: every CMS module inherits these constraints, even
   when a page has a dense report, a long Amharic label, or a bespoke panel. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.cms-shell, #view-panel, .cms-page-shell { min-width: 0; }
.cms-page-shell img, .cms-page-shell svg, .cms-page-shell video, .cms-page-shell canvas { height: auto; max-width: 100%; }
.cms-page-shell input, .cms-page-shell select, .cms-page-shell textarea { max-width: 100%; }
.cms-page-shell .work-panel, .cms-page-shell .card, .cms-page-shell .table-responsive, .cms-page-shell .stay-operations-table-wrap { max-width: 100%; min-width: 0; }
.cms-auto-table-scroll { max-width: 100%; min-width: 0; }
.cms-page-shell .form-grid, .cms-page-shell .filter-form, .cms-page-shell .wide-filter, .cms-page-shell .admin-grid, .cms-page-shell .summary-grid, .cms-page-shell .kitchen-board { min-width: 0; }
.cms-page-shell h1, .cms-page-shell h2, .cms-page-shell h3, .cms-page-shell h4, .cms-page-shell p, .cms-page-shell label, .cms-page-shell .btn { overflow-wrap: anywhere; }

@media (max-width: 767.98px) {
    #view-panel { min-height: 100dvh; }
    .cms-page-shell { overflow: hidden; }
    .cms-page-shell .table-responsive, .cms-page-shell .stay-operations-table-wrap, .cms-auto-table-scroll { -webkit-overflow-scrolling: touch; overflow-x: auto; overscroll-behavior-x: contain; }
    .cms-page-shell table:not(.availability-table) { max-width: none; min-width: max-content; }
    .cms-page-shell .table-responsive > table, .cms-page-shell .stay-operations-table-wrap > table { margin-bottom: 0; }
    .page-header, .work-panel, .card, .cms-confirm-card { max-width: 100%; }
    .form-actions, .compact-inline-form, .checkout-form, .inline-form { flex-wrap: wrap; }
    .form-actions .btn, .compact-inline-form .btn, .checkout-form .btn { min-height: 42px; }
    .reception-page-nav { width: 100%; }
    .reception-page-nav .btn { flex: 1 1 132px; }
    .cms-confirm-overlay { align-items: flex-end; padding: 12px; }
    .cms-confirm-card { max-height: calc(100dvh - 24px); overflow-y: auto; }
}

@media (max-width: 639.98px) {
    .filter-form, .wide-filter, .reservation-guest-grid { grid-template-columns: minmax(0, 1fr); max-width: none; }
    .filter-action { justify-self: stretch; width: 100%; }
    .filter-action .btn, .filter-form > .btn, .filter-form > button { width: 100%; }
    .room-status-console { border-radius: 12px; min-height: 0; padding: 8px; }
    .room-status-titlebar { align-items: flex-start; flex-direction: column; gap: 8px; }
    .room-status-toolbar label { align-items: stretch; display: flex; flex: 1 1 100%; flex-direction: column; }
    .room-status-toolbar select, .room-status-toolbar input[type="search"] { width: 100%; }
    .room-status-board { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); min-height: 0; }
    .availability-chart-tools, .availability-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 399.98px) {
    body { --cms-topbar-top: 5px; --cms-topbar-height: 50px; }
    .cms-topbar { gap: 5px; left: 5px; padding: 6px; right: 5px; }
    .cms-topbar-left, .cms-topbar-right { gap: 5px; }
    .cms-user-copy strong, .cms-user-caret, .cms-language-picker label { display: none; }
    .cms-language-picker select { max-width: 76px; padding-left: 5px; padding-right: 5px; }
    .cms-user-button { padding-left: 4px; }
    .cms-avatar { height: 27px; width: 27px; }
    #view-panel { padding-left: 5px; padding-right: 5px; }
    .cms-page-shell { border-radius: 12px; padding: 9px; }
    .page-header { padding: 11px; }
    .page-header h1, .cms-page-shell h1 { font-size: 1.2rem; }
    .cms-page-shell h2 { font-size: 1.05rem; }
    .cms-page-shell .btn { white-space: normal; }
}

@media (max-height: 520px) and (orientation: landscape) {
    body { --cms-topbar-top: 5px; --cms-topbar-height: 46px; --cms-sidebar-bottom-gap: 6px; }
    .cms-topbar { padding-bottom: 5px; padding-top: 5px; }
    #sidebar.cms-sidebar { height: calc(100dvh - var(--cms-sidebar-top) - var(--cms-sidebar-bottom-gap)); }
    .cms-page-shell { min-height: calc(100dvh - 68px); }
}
