:root {
    --blue: #006eff;
    --blue-dark: #005be0;
    --green: #08a34d;
    --red: #d92d20;
    --orange: #b54708;
    --text: #071126;
    --muted: #667085;
    --bg: #f5f9ff;
    --card: #ffffff;
    --line: #e7edf5;
    --shadow: 0 10px 30px rgba(16, 42, 67, .08);
    --shadow-modal: 0 24px 80px rgba(15, 23, 42, .25);
    --radius: 22px;
    --sidebar: 260px;
    --topbar: 76px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 110, 255, .08), transparent 28%),
        radial-gradient(circle at 90% 80%, rgba(53, 196, 111, .10), transparent 28%),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.hotel-app {
    min-height: 100vh;
}

/* TOPBAR */
.hotel-topbar {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 50;
    height: var(--topbar);
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 18px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(225,234,246,.9);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    font-size: 24px;
    font-weight: 900;
}

.brand-logo {
    width: 40px;
    height: 40px;
    position: relative;
}

.brand-logo span:first-child {
    position: absolute;
    left: 2px;
    top: 4px;
    width: 22px;
    height: 32px;
    border-radius: 20px 4px 4px 20px;
    background: linear-gradient(180deg, #39c6ff, #005dff);
}

.brand-logo span:last-child {
    position: absolute;
    right: 2px;
    top: 8px;
    width: 18px;
    height: 24px;
    border-radius: 4px 18px 18px 4px;
    background: linear-gradient(180deg, #48de8a, #0aaf56);
}

/* TOP MENU */
.top-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow: visible;
}

.top-menu > a,
.menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 17px;
    border-radius: 18px;
    color: #121826;
    font-weight: 700;
    white-space: nowrap;
    transition: .2s;
}

.top-menu > a:hover,
.top-menu > a.active,
.menu-dropdown.active > .menu-link,
.menu-link:hover {
    color: #fff;
    background: linear-gradient(180deg, #0b7bff, #0068f5);
    box-shadow: 0 8px 18px rgba(0,110,255,.25);
}

.menu-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.arrow {
    font-size: 11px;
    transition: .25s;
}

.menu-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .2s;
    z-index: 999;
}

.menu-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
    color: #253142;
    transition: .2s;
}

.submenu a:hover,
.submenu a.active {
    background: #eef6ff;
    color: var(--blue);
}

/* TOP ACTION */
.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
    font-size: 20px;
}


/* MAIN */
.hotel-main {
    padding: calc(var(--topbar) + 36px) 12px 24px;
    margin-left: calc(var(--sidebar) + 24px);
    transition: .2s;
}

/* COMMON */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-head h2 {
    margin: 0;
    font-size: 26px;
}

.muted {
    color: var(--muted);
}

.mt-16 {
    margin-top: 16px;
}

.dash-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(225,234,246,.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

/* TABLE */
.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 13px;
}

/* FORM */
input,
select,
textarea {
    width: 100%;
    height: 42px;
    border: 1px solid #d7e1ef;
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
    color: var(--text);
    font-size: 15px;
    outline: none;
}

textarea {
    height: auto;
    min-height: 90px;
    padding-top: 12px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0,110,255,.09);
}

input::placeholder {
    color: #98a2b3;
}

.search-row {
    display: flex;
    gap: 12px;
}

.search-row input {
    max-width: 360px;
}

/* BUTTON */
.btn-primary,
.btn-light,
.btn-danger {
    height: 42px;
    border-radius: 12px;
    padding: 0 16px;
    font-weight: 800;
    border: 0;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-light {
    border: 1px solid #d7e1ef;
    background: #fff;
    color: #344054;
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

.btn-sm {
    border: 0;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 800;
    margin-right: 4px;
}

.btn-sm.blue {
    background: #e9f2ff;
    color: var(--blue);
}

.btn-sm.orange {
    background: #fff4e5;
    color: var(--orange);
}

.btn-sm.red {
    background: #fff0f2;
    color: var(--red);
}

/* BADGE / ALERT */
.badge-soft,
.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.badge-soft {
    height: 30px;
    padding: 0 10px;
    margin-right: 6px;
}

.badge-soft.green,
.status-badge.green {
    background: #e9fff1;
    color: var(--green);
}

.badge-soft.blue {
    background: #e9f2ff;
    color: var(--blue);
}

.status-badge {
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
}

.status-badge.gray {
    background: #eef1f5;
    color: var(--muted);
}

.status-badge.red {
    background: #fff0f2;
    color: var(--red);
}

.status-badge.orange {
    background: #fff4e5;
    color: var(--orange);
}

.alert-success,
.alert-error {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-weight: 800;
}

.alert-success {
    background: #e9fff1;
    color: var(--green);
}

.alert-error {
    background: #fff0f2;
    color: var(--red);
}

/* DASHBOARD */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 360px;
    gap: 16px;
}

.kpi-row {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.kpi-card {
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: "";
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 160px;
    height: 130px;
    background-image: radial-gradient(rgba(0,110,255,.18) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: .8;
}

.kpi-card.green {
    background: linear-gradient(110deg, #fff 0%, #fff 55%, #e6ffed 100%);
}

.kpi-card.blue {
    background: linear-gradient(110deg, #fff 0%, #fff 55%, #e7f6ff 100%);
}

.kpi-card.orange {
    background: linear-gradient(110deg, #fff 0%, #fff 55%, #fff2e4 100%);
}

.kpi-title {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 900;
}

.kpi-title a {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.kpi-number {
    margin: 18px 0 8px;
    font-size: 30px;
    font-weight: 900;
}

.dot-line {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--blue);
}

.chart-card {
    min-height: 500px;
}

.chart-card.large {
    grid-column: 1 / 2;
}

.chart-card.income {
    grid-column: 2 / 3;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.card-title {
    font-weight: 900;
    font-size: 18px;
}

.select-pill {
    border: 1px solid #d7e1ef;
    background: #fff;
    border-radius: 14px;
    height: 38px;
    padding: 0 14px;
}

.tabs {
    display: flex;
    gap: 26px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}

.tabs a {
    padding: 0 0 12px;
    font-weight: 800;
}

.tabs a.active {
    color: var(--blue);
    border-bottom: 3px solid var(--blue);
}

.fake-line-chart {
    height: 320px;
    position: relative;
    padding-left: 40px;
}

.fake-line-chart .grid-line {
    height: 20%;
    border-bottom: 1px dashed #d9e2ec;
    color: #6b778c;
    font-size: 13px;
}

.fake-bar-chart {
    height: 300px;
    display: flex;
    align-items: end;
    justify-content: space-around;
    border-bottom: 1px solid var(--line);
    margin-top: 25px;
}

.bar-group {
    display: flex;
    align-items: end;
    gap: 8px;
}

.bar {
    width: 34px;
    border-radius: 18px;
    background: #edf1f6;
}

.bar.blue {
    height: 230px;
    background: var(--blue);
}

.bar.red {
    height: 70px;
    background: #f35f73;
}

.side-panel {
    grid-column: 3 / 4;
    grid-row: 1 / span 4;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    background: #f7f9fc;
    border-radius: 18px;
    padding: 14px;
    margin-top: 12px;
    display: flex;
    gap: 12px;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #e8f2ff;
    display: grid;
    place-items: center;
    color: var(--blue);
}

.bottom-card {
    grid-column: 1 / 3;
    min-height: 260px;
}

.empty-state {
    height: 160px;
    display: grid;
    place-items: center;
    color: var(--muted);
}

/* MODAL */
.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15,23,42,.45);
    backdrop-filter: blur(5px);
}

.modal-mask.show {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-modal);
    animation: modalIn .18s ease-out;
}

.modal-box.small {
    max-width: 460px;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.modal-head h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.modal-head button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f2f4f7;
    font-size: 24px;
    line-height: 1;
}

.modal-box label {
    display: block;
    margin: 12px 0 7px;
    font-weight: 900;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.room-modal {
    width: calc(100vw - 48px);
    max-width: 930px;
    padding: 0;
    overflow: hidden;
}

.room-modal .modal-head {
    margin: 0;
    padding: 22px 26px;
    border-bottom: 1px solid #eef2f6;
}

.room-modal form {
    padding: 24px 28px 0;
}

.room-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 20px;
}

.form-group {
    min-width: 0;
}

.form-group label,
.label-row label {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    height: 42px;
    border-radius: 16px;
    font-size: 15px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.label-row a,
.help-text a {
    color: var(--blue);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.help-text {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.room-modal .modal-actions {
    margin: 26px -28px 0;
    padding: 14px 28px 24px;
    border-top: 1px solid #eef2f6;
    background: #fff;
}

/* LOGIN */
.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef6ff, #ffffff);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* RESPONSIVE */
@media (max-width: 1440px) {
    .top-menu > a,
    .menu-link {
        padding: 13px 11px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr 320px;
    }
}

@media (max-width: 1180px) {
    .top-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hotel-sidebar {
        transform: translateX(-120%);
        transition: .25s;
    }

    body.menu-open .hotel-sidebar {
        transform: translateX(0);
    }

    .hotel-main {
        margin-left: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .side-panel {
        grid-column: 1 / 3;
        grid-row: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .top-actions {
        margin-left: auto;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding-left: 18px;
        display: none;
    }

    .menu-dropdown.open .submenu {
        display: block;
    }

    .menu-dropdown {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-link {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .hotel-topbar {
        top: 8px;
        left: 8px;
        right: 8px;
        height: 64px;
        border-radius: 18px;
    }

    .brand {
        font-size: 20px;
        min-width: auto;
    }

    .circle-btn {
        display: none;
    }

    .hotel-main {
        padding: 86px 8px 18px;
    }

    .hotel-sidebar {
        top: 80px;
        width: calc(100vw - 16px);
        left: 8px;
        bottom: 8px;
    }

    .dashboard-grid,
    .kpi-row,
    .side-panel {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kpi-row,
    .chart-card.large,
    .chart-card.income,
    .bottom-card,
    .side-panel {
        grid-column: auto;
    }

    .chart-card {
        min-height: auto;
    }

    .fake-line-chart,
    .fake-bar-chart {
        height: 230px;
    }

    .page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .search-row {
        flex-direction: column;
    }

    .search-row input {
        max-width: none;
    }

    .modal-box {
        border-radius: 18px;
        padding: 18px;
    }

    .room-modal {
        width: calc(100vw - 20px);
        max-width: none;
        padding: 0;
    }

    .room-modal form {
        padding: 18px 18px 0;
    }

    .room-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .room-modal .modal-actions {
        margin: 20px -18px 0;
        padding: 14px 18px 20px;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions button {
        width: 100%;
    }

    th,
    td {
        white-space: nowrap;
    }
}
.kv-page {
    margin-top: -10px;
}

.kv-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.kv-title-row h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
}

.kv-tabs {
    display: inline-flex;
    background: rgba(255,255,255,.65);
    border-radius: 18px;
    padding: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.kv-tabs a {
    height: 36px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
    font-weight: 700;
    color: #475467;
}

.kv-tabs a.active {
    background: #fff;
    color: #071126;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.kv-search {
    margin-left: auto;
    width: 320px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
}

.kv-search input {
    height: 32px;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.kv-search input:focus {
    box-shadow: none;
}

.kv-add-btn {
    height: 36px;
    border: 0;
    background: var(--blue);
    color: #fff;
    border-radius: 12px;
    padding: 0 16px;
    font-weight: 900;
}

.kv-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #cfd8e3;
    background: #fff;
    border-radius: 50%;
    font-size: 18px;
}

.kv-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 12px;
}

.kv-filter {
    min-height: calc(100vh - 150px);
    background: #fff;
    border-radius: 18px 18px 0 0;
    padding: 18px 16px;
}

.filter-group {
    margin-bottom: 26px;
}

.filter-group label,
.filter-label-row label {
    display: block;
    font-weight: 900;
    margin-bottom: 10px;
}

.filter-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-label-row a {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.filter-chip {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: var(--blue);
    background: #e8f2ff;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid #cfd8e3;
}

.kv-content {
    min-width: 0;
}

.kv-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
}

.kv-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.kv-table th,
.kv-table td {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #dfe5ec;
    white-space: nowrap;
}

.kv-table th {
    font-size: 13px;
    font-weight: 900;
    color: #111827;
}

.kv-table td {
    font-size: 15px;
}

.kv-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.kv-status {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 8px;
    background: #dcfce7;
    color: #00a63e;
    font-size: 13px;
    font-weight: 900;
}

.kv-paging {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 13px;
}

.kv-paging select {
    width: auto;
    height: 30px;
    border-radius: 10px;
}

@media (max-width: 1180px) {
    .kv-layout {
        grid-template-columns: 1fr;
    }

    .kv-filter {
        min-height: auto;
    }

    .kv-title-row {
        flex-wrap: wrap;
    }

    .kv-search {
        width: 100%;
        order: 3;
    }
}
.hotel-sidebar {
    display: none !important;
}

.hotel-main {
    margin-left: 0 !important;
    padding: calc(var(--topbar) + 36px) 12px 24px !important;
}

.sidebar-mini .hotel-main {
    margin-left: 0 !important;
}

/* =========================================================
   LAYOUT FIX
   ========================================================= */

.hotel-sidebar {
    display: none !important;
}

.hotel-main {
    margin-left: 0 !important;
    padding: calc(var(--topbar) + 36px) 12px 24px !important;
}

.sidebar-mini .hotel-main {
    margin-left: 0 !important;
}

/* Không để style input chung làm hỏng checkbox/radio */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: initial;
    box-shadow: none;
}

/* Thuộc tính hidden phải luôn ẩn */
[hidden] {
    display: none !important;
}


/* =========================================================
   RECEPTION - SƠ ĐỒ PHÒNG
   ========================================================= */

.reception-page {
    min-height: calc(100vh - 64px);
    padding: 14px 16px 30px;
    background: #f4f6f8;
    color: #17212b;
}

.rec-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rec-view-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rec-icon-button,
.rec-price-list {
    min-height: 36px;
    border: 1px solid #d5dce2;
    border-radius: 7px;
    background: #fff;
    color: #52616e;
    padding: 0 11px;
    cursor: pointer;
}

.rec-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rec-icon-button.active {
    color: #16884e;
    border-color: #16884e;
    background: #eaf7ef;
    font-weight: 700;
}

.rec-search-box {
    width: 390px;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ccd5dc;
    border-radius: 7px;
    background: #fff;
    padding: 0 11px;
}

.rec-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.rec-search-icon {
    color: #71808d;
    font-size: 20px;
}

.rec-toolbar-spacer,
.rec-status-spacer,
.rec-fast-toolbar-spacer {
    flex: 1;
}

.rec-primary-button {
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    background: #169550;
    color: #fff;
    padding: 0 17px;
    font-weight: 700;
    cursor: pointer;
}

.rec-status-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 20px;
}

.rec-status-filter {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #ccd4db;
    border-radius: 18px;
    background: #fff;
    padding: 4px 12px;
    color: #51606d;
    cursor: pointer;
}

.rec-status-filter.active {
    color: #16884e;
    border-color: #16884e;
    box-shadow: 0 0 0 1px #16884e;
}

.rec-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #758493;
}

.rec-status-empty .rec-status-dot {
    background: #758493;
}

.rec-status-reserved .rec-status-dot {
    background: #ff8800;
}

.rec-status-occupied .rec-status-dot {
    background: #159550;
}

.rec-status-soon_checkout .rec-status-dot {
    background: #007b83;
}

.rec-status-overdue .rec-status-dot {
    background: #a55900;
}

.rec-status-maintenance .rec-status-dot {
    background: #706079;
}

.rec-status-debt .rec-status-dot {
    background: #cc382d;
}

.rec-text-button {
    border: 0;
    background: transparent;
    color: #536475;
    font-weight: 600;
    cursor: pointer;
}

.rec-alert {
    padding: 10px 14px;
    margin-bottom: 14px;
    border-radius: 7px;
}

.rec-alert-success {
    background: #e9f8ef;
    color: #12713e;
}

.rec-alert-error {
    background: #fff0ed;
    color: #b53127;
}

.rec-block-section {
    margin-bottom: 26px;
}

.rec-block-title {
    margin: 0 0 13px;
    font-size: 19px;
}

.rec-floor-section {
    margin-bottom: 23px;
}

.rec-floor-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 13px;
}

.rec-floor-heading h3 {
    margin: 0;
    white-space: nowrap;
    font-size: 18px;
}

.rec-floor-heading h3 span {
    color: #5d7585;
}

.rec-floor-line {
    height: 1px;
    flex: 1;
    background: #dce2e6;
}

.rec-room-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(210px, 226px));
    gap: 13px;
}

.rec-room-card {
    position: relative;
    min-height: 178px;
    border: 1px solid #d6dde2;
    border-radius: 12px;
    background: #fff;
    overflow: visible;
}

.rec-room-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 15px 5px;
}

.rec-clean-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 2px 8px;
    border-radius: 14px;
    background: #f0f3f5;
    color: #52616d;
    font-size: 12px;
}

.rec-room-menu-button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 21px;
    cursor: pointer;
}

.rec-room-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 5px 16px;
    text-align: left;
    cursor: pointer;
}

.rec-room-code {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.rec-room-tenant {
    font-size: 14px;
    font-weight: 600;
}

.rec-room-content small {
    margin-top: 4px;
    opacity: .75;
}

.rec-room-footer {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.rec-room-status-label {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .08);
    font-size: 12px;
}

.rec-room-debt {
    color: #c23328;
    font-size: 11px;
}

.rec-room-occupied {
    color: #fff;
    background: #17663c;
    border-color: #17663c;
}

.rec-room-reserved {
    color: #fff;
    background: #ff8500;
    border-color: #ff8500;
}

.rec-room-overdue {
    color: #fff;
    background: #a95b00;
    border-color: #a95b00;
}

.rec-room-soon_checkout {
    border: 2px solid #067b83;
}

.rec-room-maintenance {
    color: #fff;
    background: #73657e;
    border-color: #73657e;
}

.rec-room-card[hidden] {
    display: none;
}

.rec-room-context-menu {
    position: absolute;
    top: 40px;
    right: 10px;
    z-index: 30;
    width: 155px;
    padding: 5px;
    border: 1px solid #d8dee3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.rec-room-context-menu button {
    width: 100%;
    border: 0;
    border-radius: 5px;
    background: #fff;
    padding: 8px 9px;
    text-align: left;
    cursor: pointer;
}

.rec-room-context-menu button:hover {
    background: #edf8f2;
}

.rec-empty-state {
    padding: 40px;
    text-align: center;
    color: #71808d;
}

/* =========================================================
   MODAL CHUNG
   ========================================================= */

body.rec-modal-open {
    overflow: hidden;
}

.rec-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(0, 0, 0, .57);
}

.rec-modal-backdrop.open {
    display: block;
}

.rec-fast-modal,
.rec-detail-modal,
.rec-checkout-modal,
.rec-customer-modal {
    display: none;
    position: fixed;
    z-index: 9991;
    left: 50%;
    top: 50%;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(0, 0, 0, .32);
}

.rec-fast-modal.open,
.rec-detail-modal.open,
.rec-checkout-modal.open,
.rec-customer-modal.open {
    display: block;
}

.rec-fast-modal {
    width: min(1080px, calc(100vw - 28px));
}

.rec-detail-modal {
    width: min(860px, calc(100vw - 28px));
}

.rec-checkout-modal {
    width: min(820px, calc(100vw - 28px));
}

.rec-customer-modal {
    z-index: 9992;
    width: min(620px, calc(100vw - 28px));
}

.rec-modal-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 22px;
    border-bottom: 1px solid #e1e6ea;
}

.rec-modal-header h2 {
    margin: 0;
    font-size: 17px;
}

.rec-modal-close,
.rec-detail-icon-button {
    border: 0;
    background: transparent;
    color: #657684;
    cursor: pointer;
}

.rec-modal-close {
    font-size: 26px;
}

.rec-detail-icon-button {
    font-size: 20px;
}

.rec-detail-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.rec-modal-body {
    padding: 15px 22px 8px;
}

.rec-modal-footer,
.rec-detail-footer {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 12px 22px;
}

/* =========================================================
   POPUP ĐẶT/NHẬN NHANH
   ========================================================= */

.rec-fast-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rec-customer-search {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #169550;
    border-radius: 8px;
    padding: 0 10px;
    box-shadow: 0 0 0 2px rgba(22, 149, 80, .08);
}

.rec-customer-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
}

.rec-customer-search button {
    border: 0;
    background: transparent;
    color: #597081;
    font-size: 18px;
    cursor: pointer;
}

.rec-guest-counter {
    min-height: 38px;
    display: grid;
    grid-template-columns: auto 82px;
    align-items: center;
    gap: 6px;
    border: 1px solid #d4dce2;
    border-radius: 8px;
    padding: 0 8px;
    white-space: nowrap;
}

.rec-guest-label {
    color: #43515c;
    font-size: 13px;
    font-weight: 700;
}

.rec-guest-counter input {
    width: 100%;
    min-height: 30px;
    border: 1px solid #d4dce2;
    border-radius: 6px;
    outline: 0;
    text-align: center;
    font-weight: 700;
}

.rec-customer-results {
    position: absolute;
    z-index: 35;
    width: 330px;
    max-height: 280px;
    overflow-y: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .18);
}

.rec-customer-result-item,
.rec-customer-empty-button {
    width: 100%;
    display: block;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
}

.rec-customer-result-item:hover {
    background: #edf8f2;
}

.rec-customer-result-item strong,
.rec-customer-result-item small {
    display: block;
}

.rec-customer-result-item small {
    margin-top: 3px;
    color: #6b7b88;
}

.rec-selected-customer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #bbe4ca;
    border-radius: 8px;
    background: #edf9f2;
}

.rec-selected-customer small {
    display: block;
    margin-top: 3px;
}

.rec-selected-customer button {
    border: 1px solid #d1584e;
    border-radius: 6px;
    background: #fff;
    color: #bd3429;
    padding: 5px 9px;
}

.rec-customer-modal-body {
    padding: 18px 22px;
}

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

.rec-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rec-field-full {
    grid-column: 1 / -1;
}

.rec-field span {
    color: #43515c;
    font-size: 13px;
    font-weight: 700;
}

.rec-field b {
    color: #d92d20;
}

.rec-field input,
.rec-field select,
.rec-field textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d3dce2;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
}

.rec-field textarea {
    resize: vertical;
}

.rec-form-error {
    margin-bottom: 12px;
    border: 1px solid #f6b5af;
    border-radius: 8px;
    background: #fff3f0;
    color: #b42318;
    padding: 10px 12px;
    font-weight: 600;
}

.rec-fast-table-header,
.rec-fast-room-row {
    display: grid;
    grid-template-columns:
        minmax(130px, 1fr)
        minmax(155px, 1.1fr)
        minmax(165px, 1.25fr)
        minmax(165px, 1.25fr)
        minmax(76px, .55fr)
        minmax(96px, .75fr);
    gap: 10px;
    align-items: center;
}

.rec-fast-table-header {
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 11px;
    background: #e5f5ec;
    font-size: 13px;
    font-weight: 700;
}

.rec-fast-table-header b {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #199650;
    color: #fff;
}

.rec-receive-heading {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rec-receive-mode {
    border: 1px solid #199650;
    border-radius: 5px;
    background: #fff;
    color: #148649;
    padding: 3px 7px;
    font-size: 12px;
    cursor: pointer;
}

.rec-receive-mode.active {
    background: #e4f8ec;
}

.rec-align-right {
    text-align: right;
}

.rec-fast-room-row {
    min-height: 57px;
    padding: 8px 12px;
}

.rec-fast-room-row select,
.rec-fast-room-row input {
    width: 100%;
    min-height: 36px;
    border: 1px solid #d3dce2;
    border-radius: 7px;
    background: #fff;
    padding: 0 9px;
}

.rec-fast-room-row input[readonly] {
    background: #f6f8fa;
    color: #42505b;
    cursor: not-allowed;
}

.rec-room-type-text {
    color: #303d47;
}

.rec-row-total {
    padding-bottom: 5px;
    border-bottom: 1px solid #d9dfe3;
    text-align: right;
    font-weight: 700;
}

.rec-fast-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 7px 0 12px;
}

.rec-outline-success-button {
    min-height: 36px;
    border: 1px solid #169550;
    border-radius: 7px;
    background: #fff;
    color: #16884e;
    padding: 0 13px;
    font-weight: 700;
    cursor: pointer;
}

.rec-link-button {
    border: 0;
    background: transparent;
    color: #0872df;
    font-weight: 600;
    cursor: pointer;
}

.rec-fast-services {
    padding: 11px;
    margin-bottom: 12px;
    border: 1px solid #d9e3dd;
    border-radius: 8px;
    background: #f8fbf9;
}

#recServiceList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.rec-service-item {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    align-items: center;
    gap: 7px;
    padding: 9px;
    border: 1px solid #dce3df;
    border-radius: 7px;
    background: #fff;
}

.rec-service-item small {
    display: block;
    color: #72808b;
}

.rec-service-empty {
    color: #71808d;
}

.rec-fast-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
    align-items: start;
    margin-top: 12px;
}

.rec-fast-note {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.rec-fast-note > label {
    padding-top: 10px;
    font-weight: 700;
}

.rec-fast-note > input {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-bottom: 1px solid #d5dce2;
    outline: 0;
}

.rec-extra-options {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
    padding: 12px;
    border: 1px solid #dbe7df;
    border-radius: 10px;
    background: #f8fbf9;
}

.rec-extra-options label {
    display: grid;
    gap: 5px;
    color: #43515c;
    font-size: 12px;
    font-weight: 700;
}

.rec-extra-options input {
    width: 100%;
    min-height: 36px;
    border: 1px solid #d4dce2;
    border-radius: 6px;
    padding: 0 8px;
    font: inherit;
}

.rec-payment-box {
    padding: 14px 15px;
    border-radius: 10px;
    background: #f5f7f8;
}

.rec-payment-row {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #dfe4e7;
}

.rec-payment-total strong {
    color: #10944e;
}

.rec-payment-row input {
    width: 108px;
    border: 0;
    border-bottom: 1px solid #d5dce1;
    background: transparent;
    text-align: right;
    font-weight: 700;
    outline: 0;
}

.rec-payment-method {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 7px;
}

.rec-payment-method select {
    border: 0;
    background: transparent;
    color: #16884e;
}

.rec-payment-method span {
    color: #c13a2e;
    font-size: 12px;
}

.rec-more-option-button {
    border: 0;
    background: transparent;
    color: #657582;
    cursor: pointer;
}

.rec-checkin-button,
.rec-booking-button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 0 20px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.rec-checkin-button {
    background: #199650;
}

.rec-booking-button {
    background: #ff8500;
}

/* =========================================================
   POPUP CHI TIẾT PHÒNG
   ========================================================= */

.rec-detail-body {
    padding: 16px 24px 5px;
}

.rec-detail-card {
    padding: 15px 16px;
    border: 1px solid #d9dfe4;
    border-radius: 12px;
}

.rec-detail-room-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid #dfe4e7;
}

.rec-detail-room-head > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.rec-detail-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.rec-detail-status-reserved {
    color: #e16c00;
    background: #fff0e2;
}

.rec-detail-status-occupied,
.rec-detail-status-soon_checkout {
    color: #16884e;
    background: #e6f7ed;
}

.rec-detail-status-overdue {
    color: #c13a2e;
    background: #ffe9e6;
}

.rec-detail-channel {
    color: #52626f;
    font-size: 13px;
}

.rec-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 15px;
}

.rec-detail-grid > div {
    min-height: 58px;
    padding: 6px 15px;
    border-right: 1px solid #e0e5e8;
}

.rec-detail-grid > div:nth-child(3n) {
    border-right: 0;
}

.rec-detail-grid label,
.rec-checkout-summary label {
    display: block;
    margin-bottom: 5px;
    color: #758492;
    font-size: 12px;
}

.rec-detail-lower {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
    align-items: start;
    padding-top: 18px;
}

.rec-detail-note {
    color: #788795;
}

.rec-detail-price-box {
    padding: 12px 14px;
    border-radius: 9px;
    background: #f5f6f7;
}

.rec-detail-price-box > div {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rec-text-danger {
    color: #bf3328;
}

/* =========================================================
   POPUP TRẢ PHÒNG
   ========================================================= */

.rec-checkout-body {
    padding: 17px 22px;
}

.rec-checkout-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 13px;
    margin-bottom: 15px;
    border: 1px solid #dce2e6;
    border-radius: 9px;
    background: #f8faf9;
}

.rec-checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

.rec-checkout-grid label {
    font-weight: 600;
}

.rec-checkout-grid input,
.rec-checkout-grid select,
.rec-checkout-grid textarea {
    width: 100%;
    min-height: 38px;
    margin-top: 6px;
    border: 1px solid #d3dce2;
    border-radius: 7px;
    padding: 7px 9px;
    font-family: inherit;
}

.rec-checkout-note {
    grid-column: 1 / -1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .rec-fast-table-header {
        display: none;
    }

    .rec-fast-room-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        margin-bottom: 10px;
        border: 1px solid #dce2e6;
        border-radius: 9px;
    }

    .rec-fast-bottom {
        grid-template-columns: 1fr;
    }

    .rec-fast-toolbar {
        flex-wrap: wrap;
    }

    .rec-fast-toolbar-spacer {
        display: none;
    }
}

@media (max-width: 820px) {
    .rec-toolbar {
        flex-wrap: wrap;
    }

    .rec-search-box {
        width: auto;
        flex: 1;
    }

    .rec-toolbar-spacer {
        display: none;
    }

    .rec-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rec-detail-grid > div {
        border-right: 0;
    }

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

    .rec-checkout-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .reception-page {
        padding: 10px;
    }

    .rec-room-grid {
        grid-template-columns: 1fr;
    }

    .rec-room-card {
        min-height: 160px;
    }

    .rec-price-list,
    .rec-primary-button {
        flex: 1;
    }

    .rec-customer-search {
        width: 100%;
    }

    .rec-fast-toolbar,
    .rec-fast-bottom {
        grid-template-columns: 1fr;
    }

    .rec-fast-room-row {
        grid-template-columns: 1fr;
    }

    .rec-extra-options {
        grid-template-columns: 1fr;
    }

    #recServiceList {
        grid-template-columns: 1fr;
    }

    .rec-fast-note {
        flex-direction: column;
    }

    .rec-detail-grid,
    .rec-checkout-summary,
    .rec-checkout-grid {
        grid-template-columns: 1fr;
    }

    .rec-modal-footer,
    .rec-detail-footer {
        flex-wrap: wrap;
    }

    .rec-more-option-button {
        width: 100%;
    }

    .rec-checkout-note {
        grid-column: auto;
    }
}
