:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #f9fafb;
    --text: #172033;
    --muted: #667085;
    --line: #e5e7eb;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --danger: #dc2626;
    --warning: #b45309;
    --info: #2563eb;
    --shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.sidebar {
    background: #111827;
    color: white;
    padding: 28px 22px;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 36px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    font-weight: 800;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: #9ca3af;
}

nav {
    display: grid;
    gap: 8px;
}

    nav a {
        color: #d1d5db;
        text-decoration: none;
        padding: 12px 14px;
        border-radius: 8px;
        font-weight: 600;
    }

        nav a:hover {
            background: rgba(255, 255, 255, 0.08);
            color: white;
        }

.content {
    padding: 32px;
}

.topbar {
    margin-bottom: 26px;
}

    .topbar h1 {
        margin: 0;
        font-size: 28px;
    }

    .topbar p {
        margin: 6px 0 0;
        color: var(--muted);
    }

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    margin-bottom: 22px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

    .hero-panel h2 {
        max-width: 720px;
        margin: 8px 0;
        font-size: 30px;
    }

    .hero-panel p {
        max-width: 720px;
        margin: 0;
        color: var(--muted);
    }

.eyebrow {
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 22px;
}

    .stat-card span {
        color: var(--muted);
        font-size: 14px;
    }

    .stat-card strong {
        display: block;
        margin-top: 10px;
        font-size: 31px;
    }

.panel {
    padding: 22px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

    .section-header h2,
    .form-title h2 {
        margin: 0;
        font-size: 22px;
    }

    .section-header p,
    .form-title p {
        margin: 6px 0 0;
        color: var(--muted);
    }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.quick-action {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    text-decoration: none;
}

    .quick-action:hover {
        border-color: var(--primary);
    }

    .quick-action span {
        color: var(--muted);
        font-size: 14px;
    }

.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table th {
        padding: 12px;
        border-bottom: 1px solid var(--line);
        color: var(--muted);
        font-size: 13px;
        text-align: left;
    }

    .data-table td {
        padding: 15px 12px;
        border-bottom: 1px solid var(--line);
        vertical-align: middle;
    }

.table-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.room-number {
    display: inline-flex;
    min-width: 48px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: #eef6f5;
    color: var(--primary-dark);
}

.text-right {
    text-align: right;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

    .badge.success {
        background: #ecfdf3;
        color: #047857;
    }

    .badge.warning {
        background: #fffbeb;
        color: var(--warning);
    }

    .badge.info {
        background: #eff6ff;
        color: var(--info);
    }

    .badge.neutral {
        background: #f3f4f6;
        color: #4b5563;
    }

    .badge.danger {
        background: #fef2f2;
        color: var(--danger);
    }

.form-panel {
    max-width: 960px;
}

.form-title {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

    label.full {
        grid-column: 1 / -1;
    }

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: white;
    color: var(--text);
    font: inherit;
}

    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid rgba(15, 118, 110, 0.14);
        border-color: var(--primary);
    }

textarea {
    min-height: 112px;
    resize: vertical;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 14px;
    background: white;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

    .btn.small {
        min-height: 34px;
        padding: 7px 11px;
        font-size: 13px;
    }

    .btn.primary {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
    }

        .btn.primary:hover {
            background: var(--primary-dark);
        }

    .btn.danger {
        border-color: #fecaca;
        background: #fef2f2;
        color: var(--danger);
    }

.inline-form {
    display: inline;
}

span.field-validation-error,
.validation-summary {
    color: var(--danger);
    font-size: 13px;
}

@media (max-width: 980px) {
    body {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .quick-actions,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .content {
        padding: 20px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }
}

.dashboard-hero,
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 26px;
    margin-bottom: 22px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

    .dashboard-hero h2,
    .details-header h2 {
        margin: 6px 0;
        font-size: 30px;
    }

.dashboard-grid,
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.big-metric {
    font-size: 36px;
    font-weight: 900;
}

.occupancy-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

    .occupancy-bar span {
        display: block;
        height: 100%;
        background: #0f766e;
    }

.search-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.room-card {
    display: grid;
    gap: 18px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.room-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef6f5;
    color: #115e59;
    font-weight: 800;
}

.price-block strong {
    display: block;
    font-size: 28px;
}

.detail-list {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
}

    .detail-list dt {
        color: #667085;
        font-weight: 800;
    }

    .detail-list dd {
        margin: 0;
    }

.money-row {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .money-row.balance strong {
        color: #0f766e;
    }

.full {
    grid-column: 1 / -1;
}

@media (max-width: 980px) {
    .dashboard-grid,
    .details-grid,
    .room-grid,
    .search-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero,
    .details-header {
        align-items: stretch;
        flex-direction: column;
    }
}

.catalog-grid,
.amenity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.catalog-card,
.check-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.check-card {
    justify-content: flex-start;
    cursor: pointer;
    font-weight: 800;
    color: #172033;
}

    .check-card input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

@media (max-width: 980px) {
    .catalog-grid,
    .amenity-grid {
        grid-template-columns: 1fr;
    }
}

.actions.compact,
.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.table-subtitle {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 13px;
}

.text-right {
    text-align: right;
}

.inline-form {
    display: inline;
}