/* DXHOTEL Theme */
:root {
    --dx-primary: #0D3692;
    --dx-accent: #F5B400;
    --dx-bg: #FFFFFF;
    --dx-text: #1E293B;
    --dx-muted: #64748B;
    --dx-light: #F8FAFC;
    --dx-border: #E2E8F0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--dx-text);
    background: var(--dx-bg);
}

/* Buttons — căn giữa text/icon (đặc biệt trong flex container) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1.25;
    text-align: center;
    vertical-align: middle;
}
.btn i.bi {
    line-height: 1;
    flex-shrink: 0;
}

/* Frontend */
.dx-navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.dx-navbar .navbar-brand {
    font-weight: 700;
    color: var(--dx-primary) !important;
    font-size: 1.4rem;
}
.dx-navbar-logo {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}
.dx-nav-link {
    color: var(--dx-text) !important;
    font-weight: 500;
}
.dx-nav-link:hover { color: var(--dx-primary) !important; }

.dx-btn-primary {
    background: var(--dx-primary);
    border-color: var(--dx-primary);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
}
.dx-btn-primary:hover {
    background: #0a2b75;
    border-color: #0a2b75;
    color: #fff;
}
.dx-btn-accent {
    background: var(--dx-accent);
    border-color: var(--dx-accent);
    color: var(--dx-text);
    font-weight: 600;
    border-radius: 8px;
}
.dx-btn-accent:hover {
    background: #dba800;
    border-color: #dba800;
    color: var(--dx-text);
}

.dx-hero {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.dx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,54,146,0.75) 0%, rgba(0,0,0,0.4) 100%);
}
.dx-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
}
.dx-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.dx-stars { color: var(--dx-accent); }

.dx-search-box {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

/* Rooms filter sidebar */
.dx-filter-panel {
    border-radius: 12px;
    overflow: hidden;
}
.dx-filter-stay {
    background: linear-gradient(180deg, #f0f4fc 0%, #fff 100%);
}
.dx-date-field {
    position: relative;
}
.dx-date-field > i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dx-primary);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}
.dx-date-field .form-control,
.dx-date-field input.flatpickr-input {
    padding-left: 2.25rem;
    border-radius: 8px;
    border-color: var(--dx-border);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
}
.dx-date-field .form-control:focus,
.dx-date-field input.flatpickr-input:focus {
    border-color: var(--dx-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 54, 146, 0.12);
}
.dx-date-field .flatpickr-input[readonly] {
    background: #fff;
}

.dx-stay-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--dx-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 16px rgba(13, 54, 146, 0.06);
}
.dx-stay-summary-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.dx-stay-summary-item > i {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--dx-light);
    color: var(--dx-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.dx-stay-summary-item .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dx-muted);
    line-height: 1.2;
}
.dx-stay-summary-item strong {
    font-size: 0.95rem;
    color: #1a1a2e;
}
.dx-stay-summary-arrow {
    color: var(--dx-muted);
    font-size: 0.85rem;
}
.dx-stay-summary-divider {
    width: 1px;
    height: 32px;
    background: var(--dx-border);
    margin: 0 0.25rem;
}
@media (max-width: 767px) {
    .dx-stay-summary-divider { display: none; }
    .dx-stay-summary-arrow { display: none; }
}

/* Flatpickr brand */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--dx-primary) !important;
    border-color: var(--dx-primary) !important;
}
.flatpickr-day.today {
    border-color: var(--dx-accent) !important;
}
.flatpickr-day:hover {
    background: rgba(13, 54, 146, 0.1);
}

.dx-section {
    padding: 4rem 0;
}
.dx-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dx-primary);
    margin-bottom: 0.5rem;
}
.dx-section-sub {
    color: var(--dx-muted);
    margin-bottom: 2rem;
}

.dx-room-card {
    background: #fff;
    border: 1px solid var(--dx-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    box-shadow: 0 4px 20px rgba(13, 54, 146, 0.06);
}
.dx-room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(13, 54, 146, 0.14);
    border-color: rgba(13, 54, 146, 0.15);
}
.dx-room-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--dx-light);
}
.dx-room-card-media img {
    height: 240px;
    object-fit: cover;
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}
/* Fallback: ảnh trực tiếp (wizard chọn phòng) */
.dx-room-card > img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    display: block;
}
label.dx-room-card {
    cursor: pointer;
}
label.dx-room-card:has(input:checked) {
    border-color: var(--dx-primary);
    box-shadow: 0 0 0 3px rgba(13, 54, 146, 0.18);
}
.dx-room-card:hover .dx-room-card-media img {
    transform: scale(1.06);
}
.dx-room-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13, 54, 146, 0.35) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.dx-room-card:hover .dx-room-card-media::after {
    opacity: 1;
}
.dx-room-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}
.dx-room-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.dx-room-card-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dx-text);
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.dx-room-card-title:hover {
    color: var(--dx-primary);
}
.dx-room-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}
.dx-room-card-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dx-muted);
    background: var(--dx-light);
    border: 1px solid var(--dx-border);
    border-radius: 20px;
    padding: 0.2rem 0.55rem;
}
.dx-room-card-chip i {
    font-size: 0.8rem;
    color: var(--dx-primary);
}
.dx-room-card-price {
    color: var(--dx-primary);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}
.dx-room-card-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dx-muted);
}
.dx-room-card-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #f0f4fc 0%, #f8fafc 100%);
    border: 1px solid var(--dx-border);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    margin: 0.85rem 0 1rem;
    font-size: 0.85rem;
}
.dx-room-card-total span {
    color: var(--dx-muted);
}
.dx-room-card-total strong {
    color: var(--dx-primary);
    font-size: 0.95rem;
}
.dx-room-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
}
.dx-room-card-actions .btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 42px;
}
.dx-btn-detail {
    background: #fff;
    border: 1.5px solid var(--dx-border);
    color: var(--dx-text);
}
.dx-btn-detail:hover {
    background: var(--dx-light);
    border-color: var(--dx-primary);
    color: var(--dx-primary);
}
.dx-room-card-actions .dx-btn-primary {
    padding: 0.55rem 0.75rem;
}
.dx-room-card-actions .btn:only-child {
    grid-column: 1 / -1;
}
.dx-room-card.is-unavailable {
    opacity: 0.92;
}
.dx-room-card.is-unavailable .dx-room-card-media img {
    filter: grayscale(0.25);
}
/* Legacy .price inside cards */
.dx-room-card .price {
    color: var(--dx-primary);
    font-size: 1.25rem;
    font-weight: 700;
}
.dx-badge-available {
    background: #DCFCE7;
    color: #166534;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}
.dx-badge-unavailable {
    background: #FEE2E2;
    color: #991B1B;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}
.dx-badge-awaiting {
    background: #E0E7FF;
    color: #3730A3;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

/* Room detail booking widget */
.dx-room-booking {
    border-radius: 14px;
    overflow: hidden;
}
.dx-room-booking-head .price {
    color: var(--dx-primary);
    font-weight: 700;
}
.dx-room-booking .dx-filter-stay {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.dx-date-field-sm > i {
    font-size: 0.9rem;
    left: 0.6rem;
}
.dx-date-field-sm .form-control,
.dx-date-field-sm input.flatpickr-input {
    padding-left: 2rem;
    min-height: 36px;
    font-size: 0.875rem;
}
.dx-room-booking-loading {
    opacity: 0.65;
    pointer-events: none;
}

/* Room detail gallery */
.dx-gallery-main {
    height: 400px;
    object-fit: cover;
}
.dx-gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0.125rem 0.5rem;
    scrollbar-width: thin;
}
.dx-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}
.dx-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--dx-border);
    border-radius: 3px;
}
.dx-gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s, transform 0.15s;
}
.dx-gallery-thumb:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.dx-gallery-thumb.active {
    border-color: var(--dx-primary);
    opacity: 1;
    box-shadow: 0 0 0 1px var(--dx-primary);
}
.dx-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dx-amenity-icon {
    width: 64px;
    height: 64px;
    background: var(--dx-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dx-primary);
    margin: 0 auto 0.75rem;
}

.dx-review-card {
    background: var(--dx-light);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}

.dx-footer {
    background: var(--dx-primary);
    color: rgba(255,255,255,0.9);
    padding: 3rem 0 1.5rem;
}
.dx-footer a { color: var(--dx-accent); text-decoration: none; }

/* Booking wizard */
.dx-wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}
.dx-wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--dx-muted);
    font-size: 0.9rem;
}
.dx-wizard-step.active { color: var(--dx-primary); font-weight: 600; }
.dx-wizard-step .num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--dx-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.dx-wizard-step.active .num {
    background: var(--dx-primary);
    color: #fff;
}
.dx-wizard-step.done .num {
    background: var(--dx-accent);
    color: var(--dx-text);
}

.dx-payment-option {
    border: 2px solid var(--dx-border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s;
}
.dx-payment-option:hover,
.dx-payment-option.selected {
    border-color: var(--dx-primary);
    background: var(--dx-light);
}
.dx-wallet-row > [class*="col-"] {
    display: flex;
}
.dx-wallet-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    cursor: default;
}
.dx-wallet-card .dx-wallet-name {
    min-height: 2.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dx-wallet-card .dx-wallet-amount {
    margin-top: auto;
    margin-bottom: 0.75rem;
}
.dx-wallet-card .dx-wallet-memo code {
    background: rgba(13, 54, 146, 0.08);
    color: var(--dx-primary);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.dx-payment-qr-box code {
    background: rgba(13, 54, 146, 0.08);
    color: var(--dx-primary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* Admin */
.dx-admin-sidebar {
    background: var(--dx-primary);
    height: 100vh;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.dx-admin-sidebar .brand {
    color: #fff;
    font-weight: 700;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.dx-admin-sidebar > .nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.dx-admin-sidebar > .nav::-webkit-scrollbar {
    width: 6px;
}
.dx-admin-sidebar > .nav::-webkit-scrollbar-track {
    background: transparent;
}
.dx-admin-sidebar > .nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
.dx-admin-sidebar > .nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}
.dx-admin-brand-logo {
    max-height: 40px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.dx-admin-login-logo {
    max-height: 64px;
    max-width: 100%;
    object-fit: contain;
}
.dx-admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    white-space: nowrap;
}
.dx-admin-sidebar .nav-link hr,
.dx-admin-sidebar > .nav > hr {
    width: calc(100% - 3rem);
    margin: 0.5rem 1.5rem;
    flex-shrink: 0;
}
.dx-admin-sidebar .nav-link:hover,
.dx-admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.dx-admin-main {
    margin-left: 260px;
    padding: 1.5rem 2rem;
    background: var(--dx-light);
    min-height: 100vh;
}
.dx-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--dx-border);
}
.dx-stat-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dx-primary);
}
.dx-stat-card .label {
    color: var(--dx-muted);
    font-size: 0.875rem;
}

/* Admin page header */
.dx-admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dx-admin-page-header h4 {
    margin: 0;
    font-weight: 700;
    color: var(--dx-text);
}
.dx-admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.dx-admin-filter-bar .btn {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 500;
    min-height: 2rem;
}
.dx-admin-filter-bar .btn-primary {
    background: var(--dx-primary);
    border-color: var(--dx-primary);
}
.dx-admin-filter-bar .btn-outline-secondary {
    background: #fff;
    border-color: var(--dx-border);
    color: var(--dx-muted);
}
.dx-admin-filter-bar .btn-outline-secondary:hover {
    background: var(--dx-light);
    border-color: #cbd5e1;
    color: var(--dx-text);
}

/* Admin list cards & tables */
.dx-admin-card {
    background: #fff;
    border: 1px solid var(--dx-border) !important;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(13, 54, 146, 0.06) !important;
    overflow: hidden;
}
.dx-admin-card .dx-admin-table-wrap {
    overflow-x: auto;
}
.dx-admin-card .dataTables_wrapper {
    padding: 1.25rem 1.5rem 1rem;
}
.dx-admin-card .dataTables_wrapper .dx-admin-table {
    margin-bottom: 0 !important;
}

.dx-admin-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(13, 54, 146, 0.04);
    border-collapse: separate;
    border-spacing: 0;
    width: 100% !important;
}
.dx-admin-table thead th {
    background: linear-gradient(180deg, #f1f5fb 0%, #e8eef8 100%);
    color: var(--dx-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid rgba(13, 54, 146, 0.12);
    padding: 0.85rem 1rem;
    white-space: nowrap;
    vertical-align: middle;
}
.dx-admin-table thead th:first-child {
    border-top-left-radius: 0;
}
.dx-admin-table thead th:last-child {
    border-top-right-radius: 0;
}
.dx-admin-table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9375rem;
}
.dx-admin-table tbody tr:last-child td {
    border-bottom: 0;
}
.dx-admin-table tbody tr:hover td {
    background: rgba(13, 54, 146, 0.03);
}
.dx-admin-table tbody tr:nth-child(even) td {
    background: rgba(248, 250, 252, 0.7);
}
.dx-admin-table tbody tr:nth-child(even):hover td {
    background: rgba(13, 54, 146, 0.04);
}
.dx-admin-table td code {
    background: rgba(13, 54, 146, 0.08);
    color: var(--dx-primary);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
}
.dx-admin-table td strong {
    color: var(--dx-text);
    font-weight: 600;
}
.dx-admin-table td small.text-muted {
    font-size: 0.8125rem;
}
.dx-admin-table .dx-table-thumb {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--dx-border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.dx-admin-table .dx-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}
.dx-admin-table .dx-table-actions .btn {
    border-radius: 8px;
    font-size: 0.8125rem;
    padding: 0.3rem 0.65rem;
    white-space: nowrap;
}
.dx-admin-table .dx-table-actions .btn-outline-primary {
    border-color: rgba(13, 54, 146, 0.35);
    color: var(--dx-primary);
}
.dx-admin-table .dx-table-actions .btn-outline-primary:hover {
    background: var(--dx-primary);
    border-color: var(--dx-primary);
    color: #fff;
}
.dx-admin-table .dx-table-actions .btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* Status badges */
.dx-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.dx-status-success { background: #dcfce7; color: #166534; }
.dx-status-warning { background: #fef3c7; color: #92400e; }
.dx-status-danger  { background: #fee2e2; color: #991b1b; }
.dx-status-info    { background: #dbeafe; color: #1e40af; }
.dx-status-primary { background: rgba(13, 54, 146, 0.12); color: var(--dx-primary); }
.dx-status-secondary { background: #f1f5f9; color: #475569; }

/* DataTables controls in admin */
.dx-admin-main .dataTables_length label,
.dx-admin-main .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--dx-muted);
    font-weight: 500;
}
.dx-admin-main .dataTables_length select,
.dx-admin-main .dataTables_filter input {
    border: 1px solid var(--dx-border);
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font-size: 0.875rem;
    color: var(--dx-text);
    background: #fff;
    min-height: 36px;
}
.dx-admin-main .dataTables_filter input {
    min-width: 200px;
    margin-left: 0.35rem;
}
.dx-admin-main .dataTables_filter input:focus,
.dx-admin-main .dataTables_length select:focus {
    border-color: var(--dx-primary);
    box-shadow: 0 0 0 3px rgba(13, 54, 146, 0.12);
    outline: 0;
}
.dx-admin-main .dataTables_info {
    font-size: 0.8125rem;
    color: var(--dx-muted);
    padding-top: 0.25rem;
}
.dx-admin-main .dataTables_paginate {
    padding-top: 0.25rem;
}
.dx-admin-main .dataTables_paginate .pagination {
    gap: 0.25rem;
    margin: 0;
}
.dx-admin-main .dataTables_paginate .page-link {
    border-radius: 8px !important;
    border: 1px solid var(--dx-border);
    color: var(--dx-muted);
    font-size: 0.8125rem;
    padding: 0.35rem 0.7rem;
    margin: 0;
}
.dx-admin-main .dataTables_paginate .page-item.active .page-link {
    background: var(--dx-primary);
    border-color: var(--dx-primary);
    color: #fff;
}
.dx-admin-main .dataTables_paginate .page-item.disabled .page-link {
    background: #f8fafc;
    color: #cbd5e1;
}
.dx-admin-main table.dataTable thead th,
.dx-admin-main table.dataTable thead td {
    border-bottom: 2px solid rgba(13, 54, 146, 0.12) !important;
}
.dx-admin-main table.dataTable.no-footer {
    border-bottom: 0;
}

/* Compact tables (dashboard, detail) */
.dx-admin-main .dx-admin-table.table-sm thead th {
    padding: 0.65rem 0.85rem;
    font-size: 0.7rem;
}
.dx-admin-main .dx-admin-table.table-sm tbody td {
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
}

/* Admin alerts */
.dx-admin-main > .alert {
    border-radius: 10px;
    border: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Room availability calendar */
.dx-room-calendar-wrap {
    overflow: auto;
    max-height: calc(100vh - 280px);
}
.dx-room-calendar {
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}
.dx-room-calendar thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f1f5fb;
    vertical-align: middle;
    min-width: 88px;
    font-size: 0.75rem;
}
.dx-room-calendar .dx-cal-room-col {
    position: sticky;
    left: 0;
    z-index: 4;
    background: #fff;
    min-width: 120px;
    max-width: 120px;
    border-right: 2px solid var(--dx-border);
    vertical-align: middle;
}
.dx-room-calendar thead .dx-cal-room-col {
    z-index: 5;
    background: #f1f5fb;
}
.dx-cal-day-name {
    font-weight: 700;
    color: var(--dx-primary);
}
.dx-cal-day-date {
    font-size: 0.8rem;
}
.dx-cal-day-stats {
    font-size: 0.7rem;
    margin-top: 0.15rem;
}
.dx-cal-cell {
    padding: 0.35rem !important;
    vertical-align: top;
    min-height: 72px;
    height: auto;
    border: 1px solid #eef2f7 !important;
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
}
.dx-cal-slots {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.dx-cal-slot {
    display: block;
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    font-size: 0.68rem;
    line-height: 1.35;
}
.dx-cal-slot:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: inherit;
}
.dx-cal-slot-hourly {
    border-left: 3px solid #06b6d4;
}
.dx-cal-time {
    display: block;
    font-weight: 700;
    color: var(--dx-primary);
    font-size: 0.72rem;
    margin-bottom: 0.1rem;
}
.dx-cal-slot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.15rem;
}
.dx-cal-type-tag {
    display: inline-block;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    background: #cffafe;
    color: #0e7490;
    font-size: 0.62rem;
    font-weight: 600;
}
.dx-cal-slot-pending { border-left: 3px solid #f59e0b; }
.dx-cal-slot-booked { border-left: 3px solid #3b82f6; }
.dx-cal-slot-pre_checked { border-left: 3px solid #0ea5e9; }
.dx-cal-slot-staying { border-left: 3px solid #6366f1; }
.dx-room-calendar > tbody > tr > td.dx-cal-free {
    background-color: #ecfdf5 !important;
}
.dx-room-calendar > tbody > tr > td.dx-cal-pending {
    background-color: #fef3c7 !important;
    box-shadow: inset 4px 0 0 #f59e0b;
}
.dx-room-calendar > tbody > tr > td.dx-cal-booked {
    background-color: #dbeafe !important;
    box-shadow: inset 4px 0 0 #3b82f6;
}
.dx-room-calendar > tbody > tr > td.dx-cal-pre_checked {
    background-color: #e0f2fe !important;
    box-shadow: inset 4px 0 0 #0ea5e9;
}
.dx-room-calendar > tbody > tr > td.dx-cal-staying {
    background-color: #c7d2fe !important;
    box-shadow: inset 4px 0 0 #6366f1;
}
.dx-room-calendar > tbody > tr > td.dx-cal-blocked {
    background-color: #f1f5f9 !important;
    box-shadow: inset 4px 0 0 #94a3b8;
}
.dx-room-calendar > tbody > tr:hover > td.dx-cal-free {
    background-color: #d1fae5 !important;
}
.dx-room-calendar > tbody > tr:hover > td.dx-cal-pending {
    background-color: #fde68a !important;
}
.dx-room-calendar > tbody > tr:hover > td.dx-cal-booked {
    background-color: #bfdbfe !important;
}
.dx-room-calendar > tbody > tr:hover > td.dx-cal-pre_checked {
    background-color: #bae6fd !important;
}
.dx-room-calendar > tbody > tr:hover > td.dx-cal-staying {
    background-color: #a5b4fc !important;
}
.dx-cal-booking-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.dx-cal-booking-link:hover {
    filter: brightness(0.95);
}
.dx-cal-code {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dx-primary);
    line-height: 1.2;
}
.dx-cal-status-tag {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.3;
}
.dx-cal-pending .dx-cal-status-tag {
    background: #f59e0b;
    color: #fff;
}
.dx-cal-booked .dx-cal-status-tag {
    background: #3b82f6;
    color: #fff;
}
.dx-cal-pre_checked .dx-cal-status-tag {
    background: #0ea5e9;
    color: #fff;
}
.dx-cal-staying .dx-cal-status-tag {
    background: #6366f1;
    color: #fff;
}
.dx-cal-guest {
    display: block;
    font-size: 0.68rem;
    color: var(--dx-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.dx-cal-free-label,
.dx-cal-blocked-label {
    font-size: 0.68rem;
    color: var(--dx-muted);
}
.dx-cal-legend {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    vertical-align: -2px;
    margin-right: 0.25rem;
    border: 1px solid rgba(0,0,0,0.06);
}
.dx-cal-legend.dx-cal-free { background: #ecfdf5; }
.dx-cal-legend.dx-cal-pending { background: #fef3c7; }
.dx-cal-legend.dx-cal-booked { background: #dbeafe; }
.dx-cal-legend.dx-cal-pre_checked { background: #e0f2fe; }
.dx-cal-legend.dx-cal-staying { background: #c7d2fe; }
.dx-cal-legend.dx-cal-blocked { background: #f1f5f9; }
.dx-cal-legend.dx-cal-hourly { background: #cffafe; border: 1px solid #06b6d4; }

@media (max-width: 768px) {
    .dx-admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    .dx-admin-sidebar > .nav {
        overflow-y: auto;
        overflow-x: hidden;
        flex-wrap: nowrap;
    }
    .dx-admin-main { margin-left: 0; }
    .dx-search-box { margin-top: 1rem; }
}
