﻿/* ==========================================================================
   Life — dashboard
   Component styles for the dashboard surface. These align with the token
   palette above so they stay consistent with the rest of the app.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Stat tiles
   -------------------------------------------------------------------------- */
.dashboard .info-card {
    padding-bottom: 0;
}

    .dashboard .info-card h6 {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--lf-ink);
        margin: 0;
    }

    .dashboard .info-card .stat-label {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--lf-ink-subtle);
        margin-bottom: 0.25rem;
    }

.dashboard .card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: var(--lf-radius-sm);
    font-size: 1.25rem;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard .sales-card .card-icon {
    color: var(--lf-navy-700);
    background: var(--lf-navy-050);
}

.dashboard .revenue-card .card-icon {
    color: var(--lf-emerald-600);
    background: var(--lf-success-bg);
}

.dashboard .customers-card .card-icon {
    color: var(--lf-warning);
    background: var(--lf-warning-bg);
}

.dashboard-compact-list > li + li {
    border-top: 1px solid var(--lf-border);
}

#upcoming-calendar {
    scroll-margin-top: var(--lf-header-h);
}

.dashboard-calendar-nav .btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
    justify-content: center;
}

.dashboard-calendar-grid {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.dashboard-calendar-grid th,
.dashboard-calendar-grid td {
    border: 1px solid var(--lf-border);
    padding: 0.5rem;
}

.dashboard-calendar-grid th {
    color: var(--lf-ink-muted);
    text-align: center;
}

.dashboard-calendar-grid td {
    height: 4.75rem;
    vertical-align: top;
    background: var(--lf-surface);
}

.dashboard-calendar-grid .dashboard-calendar-grid__muted {
    background: var(--lf-surface-alt);
}

.dashboard-calendar-grid .dashboard-calendar-grid__today {
    background: var(--lf-navy-050);
    box-shadow: inset 0 2px var(--lf-navy-600);
}

.dashboard-calendar-entry {
    margin-top: 0.25rem;
}

.dashboard-calendar-entry__link {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.dashboard-calendar-entry__name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-calendar-grid .dashboard-calendar-entry__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-calendar-entry__amount {
    display: block;
    margin-inline-start: 1.375em;
    font-size: 0.8125rem;
}

.dashboard-calendar-agenda + .dashboard-calendar-agenda {
    border-top: 1px solid var(--lf-border);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.dashboard-chart {
    position: relative;
    height: 300px;
    width: 100%;
}

.dashboard-chart--pie {
    margin-bottom: 0.75rem;
}

.dashboard-chart-swatch:not([hidden]) {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    margin-right: 0.25rem;
    border-radius: 50%;
}

.dashboard-disclosure {
    color: var(--lf-navy-600);
    cursor: pointer;
    transition: color 0.15s ease;
}

.dashboard-disclosure:hover,
.dashboard-disclosure:focus {
    color: var(--lf-navy-800);
}

.dashboard-history-table {
    max-height: 18rem;
    overflow: auto;
}
