:root {
    --bg: #eef2f7;
    --bg-accent: #dfe8f5;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-border: rgba(15, 23, 42, 0.08);
    --text: #18212f;
    --muted: #64748b;
    --shadow: 0 22px 44px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --success: #0f766e;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --sidebar-width: 280px;
    --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 35%),
        radial-gradient(circle at top right, rgba(194, 223, 255, 0.7), transparent 25%),
        linear-gradient(160deg, var(--bg) 0%, var(--bg-accent) 100%);
}

body {
    min-height: 100vh;
}

.auth-body {
    display: grid;
    place-items: center;
    padding: 28px;
}

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

button,
input,
textarea,
select {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: rgba(249, 250, 251, 0.66);
    backdrop-filter: blur(24px);
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    position: sticky;
    top: 0;
    min-height: 100vh;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px;
}

.brand-block h1,
.topbar h2,
.page-hero h3,
.section-head h4 {
    margin: 0;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.brand-mark,
.profile-avatar,
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #d9e8ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-soft);
}

.brand-mark {
    width: 52px;
    height: 52px;
    font-weight: 700;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    color: #334155;
    transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
    transform: translateX(2px);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.nav-icon {
    width: 36px;
    height: 36px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.sidebar-footer strong,
.profile-chip strong,
.stat-card strong {
    display: block;
}

.sidebar-footer span,
.profile-chip span,
.page-description,
.stat-card span,
.timeline-item p {
    color: var(--muted);
}

.main-shell {
    flex: 1;
    padding: 28px;
}

.topbar,
.page-hero,
.glass-card {
    border: 1px solid var(--surface-border);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.topbar {
    position: relative;
    z-index: 80;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.topbar-start,
.topbar-end {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--surface-strong);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #1e293b;
    border-radius: 999px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    min-width: 300px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.search-box span {
    color: var(--muted);
    font-size: 0.92rem;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.profile-menu {
    position: relative;
    flex-shrink: 0;
}

.profile-menu summary {
    display: flex;
    list-style: none;
}

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

.profile-chip--button {
    cursor: pointer;
    user-select: none;
    min-width: 0;
}

.profile-chip--button:focus-visible {
    outline: none;
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.profile-menu__chevron {
    margin-left: 6px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.profile-menu__chevron svg {
    display: block;
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.profile-menu__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(260px, calc(100vw - 40px));
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
    z-index: 60;
}

.profile-menu:not([open]) .profile-menu__panel {
    display: none;
}

.profile-menu__section {
    display: grid;
    gap: 10px;
    margin: 0;
}

.profile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    background: rgba(248, 250, 252, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.profile-menu__link:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(37, 99, 235, 0.24);
}

.profile-menu__logout-button {
    width: 100%;
    justify-content: center;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    color: #ffffff;
    border: 1px solid rgba(220, 38, 38, 0.34);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.18);
}

.profile-menu__logout-button:hover {
    background: linear-gradient(180deg, #f87171, #dc2626);
    color: #ffffff;
}

.inline-form {
    margin: 0;
}

.profile-chip--button span {
    font-size: calc(0.95rem - 2px);
}

.profile-avatar {
    width: 42px;
    height: 42px;
    font-size: 0.82rem;
    font-weight: 700;
}

.content {
    display: grid;
    gap: 22px;
}

.alert-banner {
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert-banner--error {
    background: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.18);
}

.alert-banner--success {
    background: rgba(15, 118, 110, 0.10);
    color: var(--success);
    border-color: rgba(15, 118, 110, 0.18);
}

.alert-banner--warning {
    background: rgba(245, 158, 11, 0.10);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.18);
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
}

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

.glass-card {
    border-radius: var(--radius-md);
    padding: 22px;
}

.stat-card strong {
    margin: 8px 0 6px;
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.card-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.content-grid--single {
    grid-template-columns: 1fr;
}

.module-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.95fr;
    gap: 18px;
}

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

.text-action {
    color: var(--accent);
    font-weight: 600;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
}

.timeline-time {
    color: var(--accent);
    font-weight: 700;
}

.timeline-item p {
    margin: 6px 0 0;
}

.table-wrap {
    overflow-x: auto;
}

.inline-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.inline-search-form--wide {
    flex-wrap: wrap;
}

.inline-search-form input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    outline: none;
}

.inline-search-form select {
    min-width: 200px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    outline: none;
}

.searchable-select {
    display: grid;
}

.searchable-select input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    outline: none;
}

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

.data-table th,
.data-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.data-table th {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table-actions {
    text-align: right;
}

.link-button {
    color: var(--accent);
    font-weight: 600;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.10);
    color: var(--success);
    font-size: 0.84rem;
    font-weight: 600;
}

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

.settings-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.settings-form input:not([type="checkbox"]):not([type="radio"]),
.settings-form textarea,
.settings-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    outline: none;
}

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

.settings-form label.field-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.settings-form label.field-inline input {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #ffffff;
    appearance: auto;
    -webkit-appearance: checkbox;
    accent-color: #2563eb;
    flex-shrink: 0;
}

body[data-active-theme="dark"] .settings-form label.field-inline input {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.45);
}

.file-upload-field {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.file-upload {
    position: relative;
}

.file-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-upload__surface {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.file-upload__surface:hover {
    border-color: rgba(37, 99, 235, 0.30);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.file-upload__input:focus + .file-upload__surface,
.file-upload__input:focus-visible + .file-upload__surface {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.file-upload__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.file-upload__name {
    flex: 1;
    min-width: 0;
    text-align: right;
    color: var(--muted);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload.has-file .file-upload__name {
    color: var(--text);
}

@media (max-width: 640px) {
    .file-upload__surface {
        flex-direction: column;
        align-items: stretch;
    }

    .file-upload__name {
        text-align: left;
    }
}

.form-actions {
    display: flex;
    gap: 12px;
}

.backup-card {
    display: grid;
    gap: 18px;
}

.backup-card .section-head,
.backup-card .detail-note,
.backup-card__form {
    margin: 0;
}

.backup-card__form {
    gap: 18px;
}

.backup-card .field-inline {
    padding-top: 2px;
}

.backup-card .form-actions {
    padding-top: 4px;
}
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
}

.auth-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 24px;
}

.auth-panel {
    border: 1px solid var(--surface-border);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    border-radius: 32px;
}

.auth-panel--intro {
    padding: 36px;
    display: grid;
    gap: 28px;
    align-content: space-between;
    min-height: 720px;
}

.auth-copy h2,
.login-card h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.auth-copy p {
    max-width: 48ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

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

.auth-panel--form {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(440px, 100%);
    display: grid;
    gap: 18px;
    padding: 30px;
    border-radius: 28px;
    background: var(--surface-strong);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-soft);
}

.login-card label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.login-card input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    outline: none;
}

.demo-credentials {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
}

.primary-button {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    display: grid;
    gap: 8px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .sidebar {
        position: fixed;
        left: 16px;
        top: 16px;
        bottom: 16px;
        min-height: auto;
        transform: translateX(calc(-100% - 24px));
        transition: transform 0.22s ease;
        z-index: 20;
        border-radius: 28px;
        box-shadow: var(--shadow);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .main-shell {
        width: 100%;
        padding: 18px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .topbar,
    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-end {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-panel--intro {
        min-height: auto;
    }

    .search-box {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .card-grid,
    .settings-form,
    .auth-highlights {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .profile-chip {
        width: 100%;
    }

    .inline-search-form {
        flex-direction: column;
        align-items: stretch;
    }
}
.detail-section {
    margin-top: 24px;
}

.details-panel {
    display: grid;
    gap: 24px;
}

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

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

.detail-card {
    min-height: 0;
}

.detail-block {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.section-head--compact {
    margin-bottom: 0;
}

.section-head--compact h5 {
    margin: 0;
    font-size: 1.15rem;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-list div {
    display: grid;
    gap: 4px;
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.detail-list--secondary {
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-note {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.detail-note p,
.activity-item p,
.muted-copy {
    margin: 0;
}

.activity-stack {
    display: grid;
    gap: 18px;
}

.activity-block {
    display: grid;
    gap: 12px;
}

.activity-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.activity-item span {
    font-weight: 700;
}

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

.data-table--compact th,
.data-table--compact td {
    padding-top: 12px;
    padding-bottom: 12px;
}

@media (max-width: 1200px) {
    .details-grid,
    .detail-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .details-grid,
    .detail-grid-2 {
        grid-template-columns: 1fr;
    }
}
.section-head--with-actions {
    align-items: center;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.reservations-form-shell {
    display: grid;
    gap: 24px;
}
.table-actions {
    text-align: right;
    white-space: nowrap;
}

.table-actions .action-link + .action-link {
    margin-left: 8px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 12px 14px;
    border-radius: 15px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.action-link:hover {
    transform: translateY(-1px);
}

.action-link--view {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

.action-link--edit {
    color: #fff;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.16);
}
.details-panel .section-actions {
    justify-content: flex-end;
}
.reservation-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .reservation-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .reservation-form {
        grid-template-columns: 1fr;
    }
}
.clickable-row {
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.clickable-row:hover td,
.clickable-row:focus td {
    background: rgba(59, 130, 246, 0.08);
}

.clickable-row:focus {
    outline: none;
}

.clickable-row:focus td:first-child {
    box-shadow: inset 3px 0 0 #2563eb;
}
.clickable-row.is-selected td {
    background: rgba(37, 99, 235, 0.12);
}
.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.field-warning {
    min-height: 1.1rem;
    margin-left: auto;
    text-align: right;
    color: #b91c1c;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.danger-button {
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    box-shadow: 0 10px 18px rgba(220, 38, 38, 0.20);
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-operation-form {
    display: grid;
    gap: 14px;
}

.detail-operation-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.detail-operation-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    outline: none;
}
.print-page {
    background: #eef2f7;
    color: #0f172a;
}

.print-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.print-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.print-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.print-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.print-header h1 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.print-header p,
.print-meta span,
.print-footer span,
.print-section p {
    margin: 0;
    color: #475569;
}

.print-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
}

.print-section {
    margin-top: 24px;
}

.print-grid {
    display: grid;
    gap: 20px;
}

.print-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.print-label {
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

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

.print-table th,
.print-table td {
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    text-align: left;
}

.print-table th {
    width: 42%;
    color: #64748b;
    font-weight: 600;
}

.print-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-page {
        background: #fff;
    }

    .print-shell {
        max-width: none;
        padding: 0;
    }

    .print-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
}

@media (max-width: 720px) {
    .print-header,
    .print-grid--2,
    .print-grid--3 {
        grid-template-columns: 1fr;
        display: grid;
    }

    .print-meta {
        justify-items: start;
        text-align: left;
    }
}
.custom-filter-select {
    position: relative;
    min-width: 220px;
}

.custom-filter-select__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.custom-filter-select__chevron {
    font-size: 1rem;
    line-height: 1;
    color: var(--muted);
    transform: rotate(45deg);
}

.custom-filter-select__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

.custom-filter-select.is-open .custom-filter-select__menu {
    display: grid;
    gap: 4px;
}

.custom-filter-select__option {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.custom-filter-select__option:hover,
.custom-filter-select__option.is-selected {
    background: rgba(59, 130, 246, 0.10);
    color: #1d4ed8;
}


.status-pill--pending {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.status-pill--confirmed {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.status-pill--checked-in {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.status-pill--checked-out {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.status-pill--cancelled,
.status-pill--no-show {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.section-actions--wrap {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.reservation-summary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.summary-chip strong {
    color: var(--text);
    font-weight: 700;
}

.summary-chip--danger {
    background: rgba(254, 226, 226, 0.8);
    color: #b91c1c;
}

.summary-chip--danger strong {
    color: #991b1b;
}

.reservation-row td {
    vertical-align: middle;
}

.reservation-primary,
.reservation-financials {
    display: grid;
    gap: 4px;
}

.reservation-primary strong,
.reservation-financials strong {
    color: var(--text);
    font-size: 0.95rem;
}

.reservation-primary small,
.reservation-financials small {
    color: var(--muted);
    font-size: 0.82rem;
}

.reservation-form-summary {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.96));
}

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

.reservation-form-summary__item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.reservation-form-summary__item span {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.reservation-form-summary__item strong {
    color: var(--text);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.reservation-form-summary__note {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.reservation-form-summary__note.is-warning {
    color: #b91c1c;
    font-weight: 600;
}

@media (max-width: 980px) {
    .reservation-form-summary__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .reservation-summary-chips {
        width: 100%;
    }

    .reservation-form-summary__grid {
        grid-template-columns: 1fr;
    }
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.theme-switcher__button {
    border: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.theme-switcher__button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.56);
}

.theme-switcher__button.is-active {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.theme-switcher--topbar {
    padding: 5px;
    gap: 4px;
}

.theme-switcher__button--icon {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
}

.theme-switcher__button--icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke-width: 2;
}

body[data-active-theme="dark"] {
    --bg: #07111f;
    --bg-accent: #0f1b2d;
    --surface: rgba(12, 23, 41, 0.84);
    --surface-strong: rgba(15, 23, 42, 0.96);
    --surface-border: rgba(148, 163, 184, 0.18);
    --text: #e5edf8;
    --muted: #93a4bb;
    --shadow: 0 24px 54px rgba(2, 6, 23, 0.52);
    --shadow-soft: 0 14px 32px rgba(2, 6, 23, 0.38);
    --accent: #60a5fa;
    --accent-soft: rgba(96, 165, 250, 0.14);
    --success: #34d399;
    color-scheme: dark;
    background:
        radial-gradient(circle at top left, rgba(30, 41, 59, 0.72), transparent 32%),
        radial-gradient(circle at top right, rgba(30, 64, 175, 0.18), transparent 24%),
        linear-gradient(160deg, var(--bg) 0%, var(--bg-accent) 100%);
}

body[data-active-theme="dark"] .sidebar {
    background: rgba(9, 17, 31, 0.78);
    border-right-color: rgba(148, 163, 184, 0.16);
}

body[data-active-theme="dark"] .sidebar-footer,
body[data-active-theme="dark"] .search-box,
body[data-active-theme="dark"] .demo-credentials,
body[data-active-theme="dark"] .login-card,
body[data-active-theme="dark"] .theme-switcher,
body[data-active-theme="dark"] .empty-state,
body[data-active-theme="dark"] .summary-chip,
body[data-active-theme="dark"] .reservation-form-summary,
body[data-active-theme="dark"] .reservation-form-summary__item,
body[data-active-theme="dark"] .custom-filter-select__trigger,
body[data-active-theme="dark"] .custom-filter-select__menu,
body[data-active-theme="dark"] .secondary-button,
body[data-active-theme="dark"] .searchable-select input[type="text"],
body[data-active-theme="dark"] .file-upload__surface,
body[data-active-theme="dark"] .settings-form input:not([type="checkbox"]):not([type="radio"]),
body[data-active-theme="dark"] .settings-form textarea,
body[data-active-theme="dark"] .settings-form select,
body[data-active-theme="dark"] .inline-search-form input,
body[data-active-theme="dark"] .inline-search-form input[type="search"],
body[data-active-theme="dark"] .login-card input {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.18);
    color: var(--text);
}

body[data-active-theme="dark"] .file-upload__button {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.24);
}

body[data-active-theme="dark"] .file-upload__surface:hover {
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.36);
}

body[data-active-theme="dark"] .file-upload__input:focus + .file-upload__surface,
body[data-active-theme="dark"] .file-upload__input:focus-visible + .file-upload__surface {
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}
body[data-active-theme="dark"] .settings-form input::placeholder,
body[data-active-theme="dark"] .settings-form textarea::placeholder,
body[data-active-theme="dark"] .searchable-select input[type="text"]::placeholder,
body[data-active-theme="dark"] .inline-search-form input::placeholder,
body[data-active-theme="dark"] .login-card input::placeholder,
body[data-active-theme="dark"] .search-box input::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

body[data-active-theme="dark"] .search-box input {
    color: var(--text);
}

body[data-active-theme="dark"] .nav-link {
    color: var(--muted);
}

body[data-active-theme="dark"] .nav-link:hover,
body[data-active-theme="dark"] .nav-link.is-active {
    background: rgba(15, 23, 42, 0.84);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

body[data-active-theme="dark"] .brand-mark,
body[data-active-theme="dark"] .profile-avatar,
body[data-active-theme="dark"] .nav-icon {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.92));
    color: var(--accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-soft);
}

body[data-active-theme="dark"] .menu-toggle {
    background: rgba(15, 23, 42, 0.88);
}

body[data-active-theme="dark"] .menu-toggle span {
    background: #dbe7f5;
}

body[data-active-theme="dark"] .theme-switcher__button:hover {
    background: rgba(30, 41, 59, 0.84);
}

body[data-active-theme="dark"] .theme-switcher__button.is-active {
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    color: #eff6ff;
}

body[data-active-theme="dark"] .clickable-row:hover td,
body[data-active-theme="dark"] .clickable-row:focus td {
    background: rgba(96, 165, 250, 0.10);
}

body[data-active-theme="dark"] .clickable-row.is-selected td {
    background: rgba(59, 130, 246, 0.16);
}

body[data-active-theme="dark"] .data-table td,
body[data-active-theme="dark"] .data-table th {
    border-bottom-color: rgba(148, 163, 184, 0.14);
}
body[data-active-theme="dark"] .timeline-item {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body[data-active-theme="dark"] .timeline-item strong {
    color: var(--text);
}

body[data-active-theme="dark"] .timeline-time {
    color: #93c5fd;
}

body[data-active-theme="dark"] .data-table th,
body[data-active-theme="dark"] .search-box span,
body[data-active-theme="dark"] .eyebrow,
body[data-active-theme="dark"] .page-description,
body[data-active-theme="dark"] .profile-chip span,
body[data-active-theme="dark"] .sidebar-footer span,
body[data-active-theme="dark"] .reservation-primary small,
body[data-active-theme="dark"] .reservation-financials small,
body[data-active-theme="dark"] .detail-list dt,
body[data-active-theme="dark"] .detail-note p,
body[data-active-theme="dark"] .muted-copy,
body[data-active-theme="dark"] .reservation-form-summary__note,
body[data-active-theme="dark"] .summary-chip {
    color: var(--muted);
}

body[data-active-theme="dark"] .summary-chip strong,
body[data-active-theme="dark"] .reservation-primary strong,
body[data-active-theme="dark"] .reservation-financials strong,
body[data-active-theme="dark"] .detail-list dd,
body[data-active-theme="dark"] .detail-note strong,
body[data-active-theme="dark"] .reservation-form-summary__item strong {
    color: var(--text);
}

body[data-active-theme="dark"] .custom-filter-select__option:hover,
body[data-active-theme="dark"] .custom-filter-select__option.is-selected {
    background: rgba(96, 165, 250, 0.14);
    color: #bfdbfe;
}

body[data-active-theme="dark"] .alert-banner--warning {
    background: rgba(120, 53, 15, 0.28);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.24);
}

body[data-active-theme="dark"] .alert-banner--success {
    background: rgba(6, 78, 59, 0.26);
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.22);
}

body[data-active-theme="dark"] .alert-banner--error {
    background: rgba(127, 29, 29, 0.28);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.22);
}

body[data-active-theme="dark"] .summary-chip--danger {
    background: rgba(127, 29, 29, 0.28);
    color: #fca5a5;
}

body[data-active-theme="dark"] .summary-chip--danger strong,
body[data-active-theme="dark"] .reservation-form-summary__note.is-warning,
body[data-active-theme="dark"] .field-warning {
    color: #fca5a5;
}

@media (max-width: 1100px) {
    .topbar-end {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .theme-switcher {
        order: 2;
    }
}

@media (max-width: 640px) {
    .theme-switcher {
        width: 100%;
        justify-content: space-between;
    }

    .theme-switcher__button {
        flex: 1;
        text-align: center;
    }
}



.custom-filter-select--field {
    min-width: 0;
    width: 100%;
}



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

body[data-active-theme="dark"] .data-table tbody tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.64);
}

.data-table tbody .reservation-row:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.94);
}

.data-table tbody .reservation-row:nth-child(even) td {
    background: rgba(244, 247, 251, 0.96);
}

body[data-active-theme="dark"] .data-table tbody .reservation-row:nth-child(odd) td {
    background: rgba(9, 17, 31, 0.84);
}

body[data-active-theme="dark"] .data-table tbody .reservation-row:nth-child(even) td {
    background: rgba(15, 23, 42, 0.94);
}

.data-table tbody .reservation-row:hover td,
.data-table tbody .reservation-row:focus td {
    background: rgba(59, 130, 246, 0.08);
}

.data-table tbody .reservation-row.is-selected td {
    background: rgba(37, 99, 235, 0.12);
}

body[data-active-theme="dark"] .data-table tbody .reservation-row:hover td,
body[data-active-theme="dark"] .data-table tbody .reservation-row:focus td {
    background: rgba(96, 165, 250, 0.12);
}

body[data-active-theme="dark"] .data-table tbody .reservation-row.is-selected td {
    background: rgba(59, 130, 246, 0.18);
}

body[data-active-theme="dark"] .profile-chip {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body[data-active-theme="dark"] .profile-menu__panel {
    background: rgba(7, 17, 31, 0.96);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.48);
}

body[data-active-theme="dark"] .profile-menu__link {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.14);
    color: var(--text);
}

body[data-active-theme="dark"] .profile-menu__link:hover {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(96, 165, 250, 0.26);
}


body[data-active-theme="dark"] .profile-menu__logout-button {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    border-color: rgba(248, 113, 113, 0.28);
    box-shadow: 0 10px 20px rgba(127, 29, 29, 0.28);
}

body[data-active-theme="dark"] .profile-menu__logout-button:hover {
    background: linear-gradient(180deg, #f87171, #dc2626);
}
body[data-active-theme="dark"] .profile-chip strong {
    color: var(--text);
}

.data-table tbody .payment-row:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.94);
}

.data-table tbody .payment-row:nth-child(even) td {
    background: rgba(244, 247, 251, 0.96);
}

body[data-active-theme="dark"] .data-table tbody .payment-row:nth-child(odd) td {
    background: rgba(9, 17, 31, 0.84);
}

body[data-active-theme="dark"] .data-table tbody .payment-row:nth-child(even) td {
    background: rgba(15, 23, 42, 0.94);
}

body[data-active-theme="dark"] .detail-note {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}









@media (max-width: 640px) {
    .theme-switcher--topbar {
        width: auto;
    }

    .theme-switcher--topbar .theme-switcher__button--icon {
        flex: 0 0 42px;
    }
}


.page-hero {
    display: none;
}


.profile-avatar.has-image {
    padding: 0;
    overflow: hidden;
}

.profile-avatar.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-field {
    display: grid;
    gap: 10px;
}

.avatar-editor {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatar-editor__preview {
    width: 88px;
    height: 88px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
}

.avatar-editor__preview.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-editor__controls {
    flex: 1;
    display: grid;
    gap: 12px;
}

@media (max-width: 640px) {
    .avatar-editor {
        flex-direction: column;
        align-items: stretch;
    }
}

body[data-active-theme="dark"] .avatar-editor__preview {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.18);
}

.backup-restore-button {
    background: linear-gradient(180deg, #facc15, #eab308);
    color: #3f2a00;
    border-color: rgba(202, 138, 4, 0.28);
    box-shadow: 0 10px 22px rgba(202, 138, 4, 0.18);
}

.backup-restore-button:hover {
    background: linear-gradient(180deg, #fde047, #facc15);
    color: #3f2a00;
}

body[data-active-theme="dark"] .backup-restore-button {
    background: linear-gradient(180deg, #facc15, #ca8a04);
    color: #2b2000;
    border-color: rgba(250, 204, 21, 0.26);
    box-shadow: 0 12px 24px rgba(133, 77, 14, 0.28);
}

body[data-active-theme="dark"] .backup-restore-button:hover {
    background: linear-gradient(180deg, #fde047, #facc15);
    color: #2b2000;
}

.topbar .profile-menu__logout-button.secondary-button,
.topbar .profile-menu__logout-button {
    background: linear-gradient(180deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    border: 1px solid rgba(220, 38, 38, 0.34) !important;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.18) !important;
}

.topbar .profile-menu__logout-button.secondary-button:hover,
.topbar .profile-menu__logout-button:hover {
    background: linear-gradient(180deg, #f87171, #dc2626) !important;
    color: #ffffff !important;
}

