:root {
    --hb-sidebar: #17202a;
    --hb-sidebar-active: #2e7d68;
    --hb-page: #f5f7f9;
}

body {
    background: var(--hb-page);
    color: #24313d;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--hb-sidebar);
    color: #fff;
    position: sticky;
    top: 0;
}

.brand-link {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: var(--hb-sidebar-active);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1010;
}

.metric-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(20, 31, 43, 0.06);
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #eef4f1;
    color: #2e7d68;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #eef4f1, #f8fafc);
}

.auth-card {
    width: min(100%, 440px);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(20, 31, 43, 0.1);
}

.table-actions {
    white-space: nowrap;
}

.timeline {
    position: relative;
    display: grid;
    gap: 1rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0.75rem;
    bottom: 0.75rem;
    left: 17px;
    width: 2px;
    background: #e6eaee;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0.75rem;
}

.timeline-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 1;
}

.timeline-content {
    min-width: 0;
    padding-bottom: 0.25rem;
}

.chart-row + .chart-row {
    margin-top: 1.25rem;
}

.trend-chart {
    min-height: 260px;
    display: grid;
    grid-template-columns: repeat(6, minmax(48px, 1fr));
    gap: 1rem;
    align-items: end;
}

.trend-month {
    min-width: 0;
    text-align: center;
}

.trend-bars {
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 0.35rem;
    border-bottom: 1px solid #e6eaee;
}

.trend-bar {
    width: 18px;
    min-height: 4px;
    border-radius: 6px 6px 0 0;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.35rem;
}

.amount-mask {
    display: inline-block;
    min-width: 72px;
    color: transparent;
    text-shadow: 0 0 9px rgba(36, 49, 61, 0.55);
    user-select: none;
    white-space: nowrap;
}

.amount-mask::before {
    content: "--,--";
    color: #7c8792;
    text-shadow: none;
}

.room-card {
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.room-card-active {
    border-color: #2e7d68 !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 104, 0.12);
}

.room-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.min-w-0 {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .metric-card .card-body {
        padding: 1rem;
    }

    .trend-chart {
        gap: 0.5rem;
    }

    .trend-bar {
        width: 12px;
    }
}
