﻿/* Zenith-style dashboard refinements */

/* â”€â”€ Global transitions â”€â”€ */
.dashboard-shell,
.dashboard-sidebar,
.dashboard-main,
.dashboard-topbar,
.zenith-panel,
.kpi-card,
.nav-link,
.btn-primary,
.btn-outline,
.form-input,
.topbar-btn,
.panel-link,
.modal-card,
.modal-backdrop,
.pagination button,
.status-badge,
.role-badge {
    transition-property: background, border-color, box-shadow, color, opacity, transform;
    transition-duration: 200ms;
    transition-timing-function: ease;
}

.page-content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 350ms ease, transform 350ms ease;
}

.page-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* â”€â”€ List pages â”€â”€ */
.page-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dash-hero--row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* â”€â”€ Breadcrumbs â”€â”€ */
.page-breadcrumb {
    margin: 0;
}

.page-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-breadcrumb__item {
    display: inline-flex;
    align-items: center;
}

.page-breadcrumb__sep {
    display: inline-flex;
    align-items: center;
    color: color-mix(in oklab, var(--muted-foreground) 55%, transparent);
}

.page-breadcrumb__sep svg {
    width: 0.875rem;
    height: 0.875rem;
}

.page-breadcrumb__link,
.page-breadcrumb__section,
.page-breadcrumb__current {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.page-breadcrumb__link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 200ms ease;
}

.page-breadcrumb__link:hover {
    color: var(--im-gold, #d4af37);
}

.page-breadcrumb__section {
    color: color-mix(in oklab, var(--muted-foreground) 75%, transparent);
    font-weight: 500;
}

.page-breadcrumb__current {
    color: var(--im-gold, #d4af37);
    font-weight: 600;
}

.auth-shell .page-breadcrumb {
    margin-bottom: 0.75rem;
    text-align: center;
}

.auth-shell .page-breadcrumb__list {
    justify-content: center;
}

/* Inventory secondary nav */
.inventory-subnav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    background: var(--card);
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
}

.inventory-subnav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.375rem 0.625rem 0.875rem;
    margin-bottom: 0.125rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    white-space: nowrap;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.inventory-subnav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inventory-subnav__icon svg {
    width: 1rem;
    height: 1rem;
    opacity: 0.65;
    transition: opacity 200ms ease, color 200ms ease;
}

.inventory-subnav__link:hover .inventory-subnav__icon svg,
.inventory-subnav__link.is-active .inventory-subnav__icon svg {
    opacity: 1;
}

.inventory-subnav__label {
    line-height: 1.2;
    padding-right: 0.25rem;
}

.inventory-subnav__badge {
    position: absolute;
    right: 0.125rem;
    bottom: -0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--im-gold, #d4af37);
    color: #0a0a0a;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--card);
    pointer-events: none;
    z-index: 2;
}

.inventory-subnav__link:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--foreground);
}

.inventory-subnav__link.is-active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--im-gold, #d4af37);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--im-gold, #d4af37) 35%, var(--border));
}

.page-toolbar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.page-toolbar--split {
    justify-content: space-between;
}

.page-toolbar--split .page-toolbar__input {
    flex: 1;
    min-width: 12rem;
    max-width: none;
}

.page-toolbar__input,
.page-toolbar__select {
    max-width: 280px;
    border-radius: 0.5rem;
    background: var(--im-darker, #141414);
    border-color: var(--border);
    color: var(--foreground);
}

.page-toolbar__input:hover,
.page-toolbar__select:hover {
    background: color-mix(in oklab, var(--im-darker) 90%, var(--im-gold) 10%);
}

.page-toolbar__input:focus,
.page-toolbar__select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent);
}

.btn-primary--sm {
    min-height: 2rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
}

.btn-outline--sm {
    min-height: 1.875rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
}

.btn-primary:hover {
    background: var(--im-gold-dark, #b8922a);
    transform: translateY(-1px);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
    color: var(--foreground);
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: capitalize;
    background: color-mix(in oklab, var(--primary) 12%, transparent);
    color: var(--primary);
}

.role-badge--admin {
    background: color-mix(in oklab, var(--chart-1) 15%, transparent);
    color: var(--chart-1);
}

.role-badge--staff {
    background: color-mix(in oklab, var(--chart-2) 15%, transparent);
    color: var(--chart-2);
}

.role-badge--customer {
    background: color-mix(in oklab, var(--muted-foreground) 12%, transparent);
    color: var(--muted-foreground);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* â”€â”€ Auth / login page â”€â”€ */
.auth-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(160deg, #000000 0%, #141414 45%, rgba(212, 175, 55, 0.06) 100%);
}

.auth-card-wrap {
    width: 100%;
    max-width: 28rem;
    animation: authEnter 450ms ease-out;
}

@keyframes authEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--card);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transition: box-shadow 300ms ease, transform 300ms ease;
}

.auth-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.auth-card__header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.auth-card__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.auth-card__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.auth-card__body {
    padding: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-card__footer {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* â”€â”€ Pagination â”€â”€ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pagination__info {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.pagination__controls {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.pagination__ellipsis {
    min-width: 1.5rem;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    user-select: none;
}

.pagination button,
.pagination__controls button {
    min-width: 2rem;
    min-height: 2rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background: var(--im-darker, #141414);
    color: var(--foreground);
    font-size: 0.8125rem;
    cursor: pointer;
}

.pagination button:hover:not(.active):not(:disabled),
.pagination__controls button:hover:not(.active):not(:disabled) {
    background: rgba(212, 175, 55, 0.08);
    border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
    color: var(--foreground);
}

.pagination button.active,
.pagination__controls button.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.pagination button:disabled,
.pagination__controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Unified fixed header row */
.dashboard-app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: var(--sidebar-width, 260px) minmax(0, 1fr);
    height: var(--app-header-height, 4rem);
    background: var(--background);
    border-top: 3px solid var(--im-gold, #d4af37);
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
    transition: grid-template-columns 280ms ease;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width, 260px);
    padding-top: var(--app-header-height, 4rem);
    transition: margin-left 280ms ease;
}

.dashboard-sidebar-brand,
.dashboard-topbar {
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    position: static;
    min-height: 0;
    max-height: none;
}

.dashboard-topbar {
    gap: 0.75rem;
    padding: 0 1rem;
    overflow: visible;
}

@media (min-width: 640px) {
    .dashboard-topbar { padding: 0 1.5rem; }
}

.dashboard-sidebar-brand {
    justify-content: flex-start;
    padding: 0 1rem;
    border-right: 1px solid var(--border);
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: background 150ms, color 150ms;
}

.sidebar-toggle:hover {
    background: var(--accent, color-mix(in oklab, var(--foreground) 8%, transparent));
    color: var(--foreground);
}

.sidebar-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.topbar-search {
    position: relative;
    flex: 1;
    max-width: 18rem;
}

.topbar-search__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
    pointer-events: none;
}

.topbar-search__input {
    padding-left: 2.5rem;
    background: var(--im-darker, #141414);
    border-color: var(--border);
    border-radius: 0.5rem;
    color: var(--foreground);
}

.topbar-search__input:hover {
    background: color-mix(in oklab, var(--im-darker) 90%, var(--im-gold) 10%);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    overflow: visible;
}

.currency-switch {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid color-mix(in oklab, var(--border) 80%, var(--im-gold) 20%);
    border-radius: 0.375rem;
    overflow: hidden;
    background: color-mix(in oklab, var(--card) 88%, transparent);
}

.currency-switch__btn {
    min-width: 2.75rem;
    padding: 0.35rem 0.65rem;
    border: 0;
    background: transparent;
    color: color-mix(in oklab, var(--foreground) 72%, transparent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.currency-switch__btn + .currency-switch__btn {
    border-left: 1px solid color-mix(in oklab, var(--border) 80%, var(--im-gold) 20%);
}

.currency-switch__btn.is-active {
    background: color-mix(in oklab, var(--im-gold, #d4af37) 88%, #fff);
    color: #111;
}

.currency-switch__btn:hover:not(.is-active) {
    background: color-mix(in oklab, var(--im-gold, #d4af37) 12%, transparent);
    color: var(--foreground);
}

.topbar-btn {
    display: none;
    align-items: center;
    gap: 0.375rem;
    min-height: 2rem;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .topbar-btn { display: inline-flex; }
}

.topbar-btn--primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.topbar-btn--primary:hover {
    background: var(--im-gold-dark, #b8922a);
}

.topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--foreground);
    white-space: nowrap;
    padding: 0.25rem 0.625rem 0.25rem 0.25rem;
    border-radius: 999px;
    background: var(--im-darker, #141414);
    border: 1px solid var(--border);
}

.topbar-user__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--im-black, #000000);
    color: var(--im-gold, #d4af37);
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* User menu dropdown */
.user-menu {
    position: relative;
}

.user-menu__trigger {
    cursor: pointer;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.user-menu__trigger:hover,
.user-menu.is-open .user-menu__trigger {
    border-color: color-mix(in oklab, var(--im-gold, #d4af37) 45%, var(--border));
}

.user-menu.is-open .user-menu__trigger {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.user-menu__name {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu__chevron {
    width: 1rem;
    height: 1rem;
    color: var(--muted-foreground);
    transition: transform 200ms ease, color 200ms ease;
    flex-shrink: 0;
}

.user-menu.is-open .user-menu__chevron {
    transform: rotate(180deg);
    color: var(--im-gold, #d4af37);
}

.user-menu__panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 50;
    min-width: 14rem;
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.user-menu__panel[hidden] {
    display: none;
}

.user-menu__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--im-darker, #141414) 90%, var(--im-gold, #d4af37) 10%);
}

.user-menu__header-chip {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
}

.user-menu__meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.user-menu__meta-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__meta-email,
.user-menu__meta-role {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__meta-role {
    text-transform: capitalize;
}

.user-menu__list {
    list-style: none;
    margin: 0;
    padding: 0.375rem;
}

.user-menu__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--foreground);
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.user-menu__item svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--muted-foreground);
}

.user-menu__item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--im-gold, #d4af37);
}

.user-menu__item:hover svg {
    color: var(--im-gold, #d4af37);
}

.user-menu__item--danger:hover {
    background: rgba(196, 74, 74, 0.12);
    color: #e88a8a;
}

.user-menu__item--danger:hover svg {
    color: #e88a8a;
}

/* Profile page */
.profile-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.profile-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: var(--im-black, #000000);
    color: var(--im-gold, #d4af37);
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-details {
    display: grid;
    gap: 0.875rem;
    flex: 1;
    min-width: min(100%, 20rem);
    margin: 0;
}

.profile-details__row {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
}

.profile-details dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.profile-details dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--foreground);
    text-transform: capitalize;
}

.profile-details__row:nth-child(2) dd,
.profile-details__row:nth-child(4) dd {
    text-transform: none;
}

.zenith-dashboard {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dash-hero__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.dash-hero__subtitle {
    margin: 0.25rem 0 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.kpi-card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: box-shadow 300ms, border-color 300ms;
}

.kpi-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
}

.kpi-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 0;
    gap: 0.75rem;
}

.kpi-card__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.kpi-card__value {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.kpi-card__trend {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.kpi-card__trend svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.kpi-card__trend-pct {
    font-weight: 600;
}

.kpi-card__trend-pct--up { color: var(--success, #b8922a); }
.kpi-card__trend-pct--down { color: var(--destructive, #8b2020); }
.kpi-card__trend-pct--neutral { color: var(--muted-foreground); }

.kpi-card__trend-label {
    color: var(--muted-foreground);
}

.kpi-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
    transition: transform 300ms;
}

.kpi-card:hover .kpi-card__icon {
    transform: scale(1.08);
}

.kpi-card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.kpi-card[data-chart="1"] .kpi-card__icon {
    background: color-mix(in oklab, var(--chart-1) 12%, transparent);
    color: var(--chart-1);
}

.kpi-card[data-chart="2"] .kpi-card__icon {
    background: color-mix(in oklab, var(--chart-2) 12%, transparent);
    color: var(--chart-2);
}

.kpi-card[data-chart="3"] .kpi-card__icon {
    background: color-mix(in oklab, var(--chart-3) 12%, transparent);
    color: var(--chart-3);
}

.kpi-card[data-chart="4"] .kpi-card__icon {
    background: color-mix(in oklab, var(--chart-4) 12%, transparent);
    color: var(--chart-4);
}

.kpi-card__spark {
    height: 3rem;
    margin-top: 0.25rem;
}

.kpi-card__spark svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Panels */
.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1280px) {
    .dash-grid-2 {
        grid-template-columns: 2fr 1fr;
    }

    .dash-grid-2--wide-right {
        grid-template-columns: 2fr 1fr;
    }
}

.zenith-panel {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 200ms;
}

.zenith-panel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.zenith-panel__head {
    padding: 1.5rem 1.5rem 0.5rem;
}

.zenith-panel__head--row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.zenith-panel__head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.zenith-panel__head p {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.zenith-panel__body {
    padding: 1.5rem;
}

.zenith-panel__head + .zenith-panel__body {
    padding-top: 0;
}

.zenith-panel__body--flush {
    padding: 0 1.5rem 1.5rem;
}

.panel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 150ms;
}

.panel-link svg {
    width: 0.875rem;
    height: 0.875rem;
}

.panel-link:hover {
    color: color-mix(in oklab, var(--primary) 80%, transparent);
}

.chart-tabs {
    display: flex;
    gap: 0.125rem;
    padding: 0.125rem;
    border-radius: 0.5rem;
    background: var(--im-darker, #141414);
    border: 1px solid var(--border);
}

.chart-tabs__btn {
    border: none;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 150ms;
}

.chart-tabs__btn:hover {
    color: var(--foreground);
}

.chart-tabs__btn.is-active {
    background: var(--card);
    color: var(--foreground);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.375rem;
    height: 280px;
    padding-top: 0.5rem;
}

.bar-chart__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    height: 100%;
    justify-content: flex-end;
}

.bar-chart__bar {
    width: 100%;
    max-width: 2.5rem;
    border-radius: 0.375rem 0.375rem 0 0;
    background: var(--chart-1);
    min-height: 4px;
    transition: height 300ms ease, opacity 150ms;
    opacity: 0.9;
}

.bar-chart__item:hover .bar-chart__bar {
    opacity: 1;
}

.bar-chart__label {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
}

/* Status donut */
.status-donut-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.status-donut {
    position: relative;
    width: 9rem;
    height: 9rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.status-donut::after {
    content: '';
    position: absolute;
    inset: 22%;
    border-radius: 999px;
    background: var(--card);
}

.status-donut__center {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.status-donut__center strong {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
}

.status-donut__center span {
    font-size: 0.625rem;
    color: var(--muted-foreground);
}

.donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.legend-row__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
}

.legend-row__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.legend-row__pct {
    font-weight: 600;
    font-size: 0.75rem;
}

/* Goals */
.goals-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.goal-item__top {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.goal-item__top span:first-child {
    font-weight: 500;
}

.goal-item__top span:last-child {
    color: var(--muted-foreground);
}

.goal-item__bar {
    height: 0.5rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--primary) 15%, transparent);
    overflow: hidden;
}

.goal-item__fill {
    height: 100%;
    border-radius: inherit;
    transition: width 500ms ease-out;
}

.goal-item__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
}

/* Table */
.zenith-table {
    border-collapse: collapse;
}

.zenith-table thead tr {
    border-bottom: 1px solid var(--border);
}

.zenith-table th {
    padding: 0 0.75rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-bottom: none;
}

.zenith-table th:first-child {
    padding-left: 0.75rem;
}

.zenith-table th:last-child {
    padding-right: 0.75rem;
}

.zenith-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
    vertical-align: middle;
    transition: color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.zenith-table tbody tr:last-child td {
    border-bottom: none;
}

.zenith-table tbody tr:not(.data-row-actions) {
    transition: background 200ms ease;
}

.zenith-table tbody tr:not(.data-row):not(.data-row-actions):hover {
    background: rgba(212, 175, 55, 0.05);
}

.zenith-table tbody tr.data-row {
    cursor: pointer;
}

.zenith-table tbody tr.data-row:hover:not(.is-expanded) {
    background: rgba(212, 175, 55, 0.1);
}

.zenith-table tbody tr.data-row:hover:not(.is-expanded) td {
    border-bottom-color: color-mix(in oklab, var(--im-gold, #d4af37) 30%, var(--border));
}

.zenith-table tbody tr.data-row:hover:not(.is-expanded) td:first-child {
    box-shadow: inset 3px 0 0 var(--im-gold, #d4af37);
}

.zenith-table tbody tr.data-row.is-expanded,
.zenith-table tbody tr.data-row.is-expanded:hover {
    background: transparent;
}

.zenith-table tbody tr.data-row.is-expanded td {
    border-bottom: 2px solid var(--im-gold, #d4af37);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.zenith-table tbody tr.data-row-actions:hover {
    background: transparent;
}

.zenith-table tbody tr.data-row-actions td {
    padding: 0;
    border-bottom: none;
}

.zenith-table tbody tr.data-row-actions.is-open td {
    border-bottom: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
}

.table-thumb {
    width: 3.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    background: var(--im-darker, #141414);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

img.table-thumb:hover {
    border-color: color-mix(in oklab, var(--im-gold, #d4af37) 45%, var(--border));
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.activity-log-time {
    white-space: nowrap;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.activity-log-action {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--im-gold, #d4af37);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.activity-log-action--failed {
    color: #f0a0a0;
    background: rgba(196, 74, 74, 0.12);
    border-color: rgba(196, 74, 74, 0.35);
}

.activity-log-description {
    display: block;
    max-width: 28rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
}

.row-actions-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 280ms ease;
}

.data-row-actions.is-open .row-actions-panel {
    grid-template-rows: 1fr;
}

.row-actions-inner {
    overflow: hidden;
    min-height: 0;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 0.75rem;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 220ms ease,
        transform 280ms ease,
        padding 280ms ease;
}

.data-row-actions.is-open .row-actions {
    margin: 0 0.75rem 0.75rem;
    padding: 0.5rem 0;
    opacity: 1;
    transform: translateY(0);
    background: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .row-actions-panel,
    .row-actions {
        transition: none;
    }

    .data-row-actions:not(.is-open) .row-actions {
        opacity: 0;
        transform: none;
    }

    .data-row-actions.is-open .row-actions {
        opacity: 1;
        transform: none;
    }
}

.row-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.25rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    background: var(--im-darker, #141414);
    color: var(--foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.row-action svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.row-action--edit:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: color-mix(in oklab, var(--primary) 50%, var(--border));
    color: var(--primary);
}

.row-action--download:hover,
.row-action--print:hover,
.row-action--email:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: color-mix(in oklab, var(--primary) 50%, var(--border));
    color: var(--primary);
}

.row-action--delete:hover {
    background: rgba(196, 74, 74, 0.12);
    border-color: rgba(196, 74, 74, 0.45);
    color: #e88a8a;
}

.zenith-table .text-end,
.zenith-table th.text-end {
    text-align: right;
}

.guest-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guest-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.guest-meta strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
}

.guest-meta small {
    display: block;
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

.booking-id {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.amount-cell {
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.status-badge--checked_in {
    background: color-mix(in oklab, var(--chart-2) 35%, transparent);
    color: var(--foreground);
}

.status-badge--checked_out {
    background: color-mix(in oklab, var(--chart-3) 35%, transparent);
    color: var(--foreground);
}

.status-badge--refunded {
    background: color-mix(in oklab, var(--chart-5) 40%, transparent);
    color: var(--im-gold-dark, #b8922a);
}

.booking-list-note {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--muted-foreground);
}

.data-row--cancelled .booking-id {
    opacity: 0.8;
}

.data-row--cancelled .amount-cell {
    text-decoration: line-through;
    opacity: 0.75;
}

.status-badge--completed,
.status-badge--confirmed {
    background: var(--chart-1);
    color: var(--primary-foreground);
}

.status-badge--pending {
    background: color-mix(in oklab, var(--chart-5) 30%, transparent);
    color: var(--im-gold-dark, #b8922a);
}

.status-badge--processing,
.status-badge--partial {
    background: var(--im-dark, #1a1a1a);
    color: var(--im-white, #ffffff);
}

.status-badge--cancelled {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

.status-badge--available {
    background: color-mix(in oklab, var(--chart-1) 25%, transparent);
    color: var(--im-gold, #d4af37);
}

.status-badge--maintenance {
    background: color-mix(in oklab, var(--chart-5) 30%, transparent);
    color: var(--im-gold-dark, #b8922a);
}

.status-badge--inactive {
    background: color-mix(in oklab, var(--muted-foreground) 20%, transparent);
    color: var(--muted-foreground);
}

/* Activity feed */
.activity-feed {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    transition: background 150ms;
}

.activity-item:hover {
    background: rgba(212, 175, 55, 0.06);
}

.activity-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.activity-item__icon svg {
    width: 1rem;
    height: 1rem;
}

.activity-item__icon--1 {
    background: color-mix(in oklab, var(--chart-1) 12%, transparent);
    color: var(--chart-1);
}

.activity-item__icon--2 {
    background: color-mix(in oklab, var(--chart-2) 12%, transparent);
    color: var(--chart-2);
}

.activity-item__icon--3 {
    background: color-mix(in oklab, var(--chart-5) 12%, transparent);
    color: var(--chart-5);
}

.activity-item__title {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.35;
}

.activity-item__text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0.125rem 0 0;
    line-height: 1.35;
}

.activity-item__time {
    font-size: 0.6875rem;
    color: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
    margin-top: 0.125rem;
}

/* Sidebar refinements */
.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    width: var(--sidebar-width, 260px);
    height: 100vh;
    border-right: 1px solid var(--sidebar-border);
    padding: var(--app-header-height, 4rem) 0 0;
    overflow-y: auto;
    background: var(--sidebar);
    transition: width 280ms ease;
}

.sidebar-collapse {
    position: fixed;
    top: calc(var(--app-header-height, 4rem) + 1.25rem);
    left: calc(var(--sidebar-width, 260px) - 0.875rem);
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    color: var(--muted-foreground);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition:
        left 280ms ease,
        background 200ms ease,
        color 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.sidebar-collapse:hover {
    background: var(--im-darker, #141414);
    color: var(--foreground);
    border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.sidebar-collapse svg {
    width: 1rem;
    height: 1rem;
    transition: transform 280ms ease;
}

html.sidebar-collapsed {
    --sidebar-width: var(--sidebar-width-collapsed, 4.5rem);
}

html.sidebar-collapsed .sidebar-collapse svg {
    transform: rotate(180deg);
}

html.sidebar-collapsed .brand-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

html.sidebar-collapsed .dashboard-sidebar-brand {
    justify-content: center;
    padding: 0 0.5rem;
}

html.sidebar-collapsed .brand-link {
    justify-content: center;
    gap: 0;
}

html.sidebar-collapsed .nav-group-label,
html.sidebar-collapsed .nav-link__label,
html.sidebar-collapsed .user-chip,
html.sidebar-collapsed .sidebar-logout-btn__label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

html.sidebar-collapsed .dashboard-nav {
    padding: 1rem 0.5rem;
}

html.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 0.625rem;
    gap: 0;
}

html.sidebar-collapsed .dashboard-sidebar-footer {
    padding: 0.75rem 0.5rem;
}

html.sidebar-collapsed .sidebar-logout-btn {
    justify-content: center;
    padding: 0.5rem;
    gap: 0;
}

.sidebar-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition:
        background 220ms cubic-bezier(0.4, 0, 0.2, 1),
        color 220ms cubic-bezier(0.4, 0, 0.2, 1),
        border-color 220ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logout-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    transition: transform 260ms cubic-bezier(0.34, 1.35, 0.64, 1);
}

.sidebar-logout-btn:hover,
.sidebar-logout-btn:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in oklab, var(--im-gold, #d4af37) 35%, var(--border));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.sidebar-logout-btn:hover svg,
.sidebar-logout-btn:focus-visible svg {
    transform: translateX(2px);
}

.brand-text {
    transition: opacity 200ms ease, width 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-sidebar,
    .dashboard-main,
    .dashboard-app-header,
    .sidebar-collapse,
    .sidebar-collapse svg,
    .nav-link,
    .nav-link::before,
    .nav-link svg,
    .nav-link__label,
    .sidebar-logout-btn,
    .sidebar-logout-btn svg,
    .brand-text {
        transition: none;
    }

    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link:hover svg,
    .nav-link:focus-visible svg,
    .sidebar-logout-btn:hover,
    .sidebar-logout-btn:focus-visible,
    .sidebar-logout-btn:hover svg,
    .sidebar-logout-btn:focus-visible svg {
        transform: none;
    }
}

.dashboard-sidebar::before {
    display: none;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.brand-text__primary {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--im-gold, #d4af37);
}

.brand-text__secondary {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: color-mix(in oklab, var(--im-gold-light, #e8cc6a) 75%, var(--muted-foreground));
    margin-top: 0.125rem;
}

.brand-logo {
    height: 2.25rem;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.dashboard-nav {
    padding: 1rem 0.75rem;
    gap: 0.125rem;
}

.nav-group-label {
    display: block;
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: color-mix(in oklab, var(--sidebar-foreground, var(--foreground)) 30%, transparent);
}

.nav-link {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: color-mix(in oklab, var(--sidebar-foreground, var(--foreground)) 70%, transparent);
    transition:
        background 220ms cubic-bezier(0.4, 0, 0.2, 1),
        color 220ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 60%;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(
        180deg,
        color-mix(in oklab, var(--im-gold, #d4af37) 70%, #fff),
        var(--im-gold, #d4af37)
    );
    opacity: 0;
    transform: translateY(-50%) scaleY(0.35);
    transform-origin: center;
    transition:
        opacity 200ms ease,
        transform 260ms cubic-bezier(0.34, 1.35, 0.64, 1);
    pointer-events: none;
}

.nav-link:hover,
.nav-link:focus-visible {
    transform: translateX(5px);
    background: color-mix(in oklab, var(--im-gold, #d4af37) 11%, var(--sidebar-accent, transparent));
    color: var(--sidebar-primary, var(--im-gold, #d4af37));
    box-shadow:
        inset 0 0 0 1px color-mix(in oklab, var(--im-gold, #d4af37) 22%, transparent),
        0 4px 14px rgba(0, 0, 0, 0.12);
}

.nav-link:hover::before,
.nav-link:focus-visible::before,
.nav-link.active::before {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
}

.nav-link.active {
    background: color-mix(in oklab, var(--im-gold, #d4af37) 14%, var(--sidebar-accent, transparent));
    color: var(--sidebar-primary, var(--im-gold, #d4af37));
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--im-gold, #d4af37) 28%, transparent);
}

.nav-link svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    opacity: 0.55;
    transition:
        transform 260ms cubic-bezier(0.34, 1.35, 0.64, 1),
        opacity 200ms ease,
        color 200ms ease,
        filter 200ms ease;
}

.nav-link:hover svg,
.nav-link:focus-visible svg,
.nav-link.active svg {
    opacity: 1;
    color: inherit;
    transform: scale(1.12);
    filter: drop-shadow(0 0 6px color-mix(in oklab, var(--im-gold, #d4af37) 45%, transparent));
}

.nav-link__label {
    transition:
        transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 200ms ease,
        width 200ms ease;
}

.nav-link__badge {
    margin-left: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--sidebar, #111) 85%, transparent);
}

html.sidebar-collapsed .nav-link__badge {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    margin-left: 0;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    font-size: 0.625rem;
    line-height: 1rem;
}

.nav-link:hover .nav-link__label,
.nav-link:focus-visible .nav-link__label {
    transform: translateX(2px);
}

html.sidebar-collapsed .nav-link:hover,
html.sidebar-collapsed .nav-link:focus-visible {
    transform: none;
}

html.sidebar-collapsed .nav-link:hover svg,
html.sidebar-collapsed .nav-link:focus-visible svg {
    transform: scale(1.15);
}

.dashboard-sidebar-footer {
    padding: 1rem;
    margin-top: auto;
}

@media (max-width: 1024px) {
    html.sidebar-collapsed {
        --sidebar-width: 260px;
    }

    .dashboard-app-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-sidebar-brand {
        display: none;
    }

    .dashboard-main {
        margin-left: 0;
        padding-top: var(--app-header-height, 4rem);
    }

    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 200ms ease;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
    }
    .dashboard-sidebar.is-open { transform: translateX(0); }
    .sidebar-toggle { display: inline-flex; }
    .sidebar-collapse { display: none; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .status-donut-wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .zenith-dashboard { padding: 1rem; }
    .topbar-search { max-width: none; }
}


/* Hotel room timeline calendar */
.booking-calendar-panel .zenith-panel__body--flush {
    padding-bottom: 1rem;
}

.room-timeline__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.room-timeline__toolbar-left,
.room-timeline__toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.room-timeline__select {
    min-width: 7.5rem;
    height: 2.25rem;
    padding: 0 0.7rem;
    font-size: 0.8125rem;
}

.room-timeline__btn,
.room-timeline__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    background: var(--background);
    color: var(--foreground);
    cursor: pointer;
    transition: border-color 160ms, background 160ms;
}

.room-timeline__btn {
    padding: 0 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.room-timeline__nav-btn {
    width: 2.25rem;
    padding: 0;
}

.room-timeline__nav-btn svg {
    width: 1rem;
    height: 1rem;
}

.room-timeline__btn:hover,
.room-timeline__nav-btn:hover {
    border-color: color-mix(in oklab, var(--primary) 40%, var(--border));
    background: color-mix(in oklab, var(--primary) 8%, var(--background));
}

.room-timeline__date-wrap {
    display: inline-flex;
}

.room-timeline__date-input {
    height: 2.25rem;
    padding: 0 0.65rem;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    background: var(--background);
    color: var(--foreground);
    font-size: 0.8125rem;
}

.room-timeline__board {
    min-height: 18rem;
}

.room-timeline__loading,
.room-timeline__empty {
    padding: 2rem 1.25rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.room-timeline__scroll {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    max-height: 34rem;
    overflow: auto;
    border-top: 1px solid var(--border);
}

.room-timeline__sidebar {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--card);
    border-right: 1px solid var(--border);
}

.room-timeline__corner {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    height: 3.5rem;
    padding: 0 0.9rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 92%, var(--background));
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.room-timeline__group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    height: 2.25rem;
    padding: 0 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--primary) 8%, var(--card));
    color: var(--foreground);
    text-align: left;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.room-timeline__group small {
    margin-left: auto;
    color: var(--muted-foreground);
    font-weight: 500;
}

.room-timeline__group-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--primary);
    transition: transform 160ms;
}

.room-timeline__group.is-collapsed .room-timeline__group-arrow {
    transform: rotate(-90deg);
}

.room-timeline__room-label {
    display: flex;
    align-items: center;
    height: 2.75rem;
    padding: 0 0.9rem 0 1.35rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--foreground);
}

.room-timeline__main {
    min-width: 0;
}

.room-timeline__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    height: 3.5rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 92%, var(--background));
}

.room-timeline__day-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    flex: 0 0 auto;
    border-right: 1px solid var(--border);
    box-sizing: border-box;
}

.room-timeline__day-head.is-weekend {
    background: color-mix(in oklab, #5b8def 10%, transparent);
}

.room-timeline__day-head.is-today {
    background: color-mix(in oklab, var(--primary) 14%, transparent);
}

.room-timeline__today-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}

.room-timeline__dow {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted-foreground);
}

.room-timeline__dom {
    font-size: 0.78rem;
    font-weight: 700;
}

.room-timeline__group-row {
    height: 2.25rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--primary) 5%, transparent);
}

.room-timeline__row {
    position: relative;
    height: 2.75rem;
    border-bottom: 1px solid var(--border);
}

.room-timeline__cells {
    display: flex;
    height: 100%;
}

.room-timeline__cell {
    flex: 0 0 auto;
    height: 100%;
    border-right: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
    box-sizing: border-box;
}

.room-timeline__cell.is-weekend {
    background: color-mix(in oklab, #5b8def 8%, transparent);
}

.room-timeline__bars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.room-timeline__bar {
    position: absolute;
    top: 0.4rem;
    height: calc(100% - 0.8rem);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.55rem;
    border: 0;
    border-radius: 0.35rem;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: filter 140ms, transform 140ms;
}

.room-timeline__bar:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.room-timeline__bar-icon {
    display: inline-flex;
    flex-shrink: 0;
}

.room-timeline__bar-icon svg {
    width: 0.85rem;
    height: 0.85rem;
}

.room-timeline__bar-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-timeline__bar--pending {
    background: #d4a017;
}

.room-timeline__bar--confirmed {
    background: #3b82f6;
}

.room-timeline__bar--checked_in {
    background: #22a06b;
}

.room-timeline__bar--checked_out {
    background: #6b7280;
}

.room-timeline__bar--completed {
    background: #0f766e;
}

.room-timeline__bar--cancelled {
    background: #b42318;
}

.room-timeline__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1.25rem 0;
}

.room-timeline__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.room-timeline__swatch {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.2rem;
}

@media (max-width: 900px) {
    .room-timeline__scroll {
        grid-template-columns: 10rem minmax(0, 1fr);
        max-height: 28rem;
    }

    .room-timeline__room-label {
        padding-left: 0.85rem;
        font-size: 0.75rem;
    }
}
