/* ===========================================================================
   Analytics > Forecast (Revenue Outlook, Obligations Calendar)

   Rides on the Month In Review banner, the shared .stat-card / .overview-section
   styling from the Quoting and Dashboard stylesheets, and the .dashboard-panel /
   .data-table styling from the Inspections dashboard. Only what is new to these
   two pages lives here: the filter strip in the banner, the stacked chart card,
   the month-by-layer table, and the layer legend.
   =========================================================================== */

.fc-banner-range {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

/* Filters sit in the banner's right-hand slot, where Month In Review keeps its
   progress bar: same place, same weight. */
.fc-banner-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.fc-banner-filters .filter-group {
    min-width: 170px;
}

/* ========================================
   Chart card
   ======================================== */

.fc-chart-card {
    background: #fff;
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    padding: 18px 20px 14px;
    margin-bottom: 24px;
}

.fc-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.fc-chart-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.fc-chart-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Sized to hold the plot AND the x-axis band, like .smr-chart-wrap. */
.fc-chart-wrap {
    position: relative;
    height: 320px;
}

.fc-chart-wrap canvas table {
    display: none;
}

.is-drillable-chart .fc-chart-wrap {
    cursor: pointer;
}

/* Legend: one swatch per layer, in the stacking order. The swatch carries the
   accent; the label stays in ink so colour is never the only thing saying what a
   layer is. */
.fc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 12px;
    color: #475569;
    margin-top: 4px;
}

.fc-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fc-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
    border: 1px solid transparent;
}

.fc-legend-item .stat-info {
    margin-left: 2px;
}

/* Accent colours per layer. The same five names the Six Month Review uses plus
   "slate" for the unqualified band; values live in the JS Accents map too. */
.fc-accent-green { background: #059669; }
.fc-accent-blue { background: #2563eb; }
.fc-accent-amber { background: #d97706; }
.fc-accent-slate { background: #94a3b8; }
.fc-accent-red {
    background: repeating-linear-gradient(45deg, #ef4444 0 2px, #fff 2px 5px);
    border-color: #ef4444;
}

/* ========================================
   Month-by-layer table
   ======================================== */

.fc-table-wrap {
    overflow-x: auto;
    margin-top: 14px;
}

.fc-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

.fc-table th,
.fc-table td {
    padding: 7px 10px;
    text-align: right;
    white-space: nowrap;
    border-bottom: 1px solid #f1f5f9;
}

.fc-table th {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 11px;
}

.fc-table th:first-child,
.fc-table td:first-child {
    text-align: left;
    color: #0f172a;
    font-weight: 600;
}

.fc-table td {
    color: #1e293b;
}

.fc-table tr.is-total td {
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
}

.fc-table td.is-muted,
.fc-table .is-muted {
    color: #cbd5e1;
}

/* A stat card that has become a warning: the uncovered-occurrences card when the
   count is above zero. */
.stat-card.stat-card-warning {
    border-color: #fca5a5;
    background: #fff5f5;
}

.fc-table tr.is-current td:first-child::after {
    content: " · now";
    color: #94a3b8;
    font-weight: 500;
}

/* ========================================
   Actuals strip (the year so far)
   ======================================== */

.fc-actuals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fc-actual {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 92px;
}

.fc-actual-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

.fc-actual-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   Notes
   ======================================== */

.fc-notes {
    margin: 0 0 24px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12.5px;
    color: #92400e;
}

.fc-notes ul {
    margin: 0;
    padding-left: 18px;
}

.fc-notes li + li {
    margin-top: 4px;
}

/* ========================================
   Obligations: the month grid and detail pills
   ======================================== */

.fc-uncovered {
    color: #b91c1c;
    font-weight: 700;
}

.fc-renewal-manual {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #fee2e2;
    color: #b91c1c;
}

.fc-renewal-auto {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
}

.fc-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    padding: 18px 0;
}

@media (max-width: 720px) {
    .fc-chart-wrap {
        height: 260px;
    }
}
