/* FbOperations.css - F&B Operations (check-in coverage) tab.
   Tokens only; gap-based spacing; no external margins. */

/* The module wrapper this file used to style is retired: the top bar and the panel are
   siblings on the page now, so the stack owns the gap and the platform one-panel rule
   (Panel.css) gives the panel the tab height. */

.fb-ops-topbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}

.fb-ops-titles {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.fb-ops-title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.fb-ops-sub {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.fb-ops-refreshed {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.fb-ops-muted {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* One-line action hint + colour key */
.fb-ops-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-muted);
}
.fb-ops-hint-text { color: var(--text-body, #57534e); }
.fb-ops-legend {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    white-space: nowrap;
}
.fb-ops-legend .fb-ops-day { vertical-align: middle; margin-left: var(--space-2); }

/* Section-mode headline */
.fb-ops-summary {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}
.fb-ops-summary-detail { color: var(--text-muted); font-size: var(--text-sm); }
.fb-ops-note {
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: var(--space-6) var(--space-3);
    text-align: center;
}

/* Section-mode coverage trend chart */
.fb-ops-chart {
    position: relative;
    height: 220px;
    width: 100%;
    margin-bottom: var(--space-3);
}
.fb-ops-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Per-day coverage strip (oldest -> latest) */
.fb-ops-daystrip {
    display: inline-flex;
    gap: var(--space-1);
    align-items: center;
}

.fb-ops-day {
    width: var(--space-3);
    height: var(--space-3);
    border-radius: var(--radius-sm, 3px);
    background: var(--border-default, #e8e7e5);
    border: var(--border-width-thin, 1px) solid var(--border-subtle);
    display: inline-block;
}

.fb-ops-day.is-full    { background: var(--color-success); border-color: var(--color-success); }
.fb-ops-day.is-partial { background: var(--color-warning); border-color: var(--color-warning); }
.fb-ops-day.is-zero    { background: var(--color-error);   border-color: var(--color-error); }
.fb-ops-day.is-empty   { background: var(--color-success-light); border-color: var(--border-subtle); }
