/* ═════════════════════════════════════════════════════════════════════════
   OPPORTUNITY INTELLIGENCE - FORECAST

   The weighted backlog by month, drawn by hand in SVG. Only fc- selectors
   live here; the alerts, strip, drawer and chips are the workspace's own
   ws-* and op-* classes, reused and never restyled. Dark first, with a
   light pass for every colour set below.
   ═════════════════════════════════════════════════════════════════════════ */
.fc-strip { margin-bottom: 18px; }
.fc-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 14px; border-radius: 12px; margin-bottom: 18px;
    border: 1px solid var(--border); background: rgba(255,255,255,.035);
    font-size: 12.5px; line-height: 1.5; color: var(--gray-light);
}
.fc-bar > span:first-child { flex: 1; min-width: 220px; }
.fc-bar .up-btn { padding: 7px 14px; font-size: 12px; }
.fc-demo {
    font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 100px; margin-left: 6px;
    background: rgba(56,132,255,.22); color: #6ba6ff; white-space: nowrap;
}

.fc-sec { margin-bottom: 22px; min-width: 0; }
.fc-sec-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.fc-sec-h h2 {
    margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--gray-light);
}
.fc-h3 { margin: 14px 0 6px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-light); }
.fc-legend { margin-left: auto; display: flex; align-items: center; gap: 6px 4px; flex-wrap: wrap; font-size: 10.5px; color: var(--gray-light); }
.fc-lg { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin: 0 2px 0 10px; background: var(--red); }
.fc-lg.is-g { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.fc-lg.is-c { height: 0; border-top: 2px dashed #e0a03b; border-radius: 0; }
.fc-lg.is-t { height: 0; border-top: 2px dotted #6ba6ff; border-radius: 0; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px 22px; }

/* ── The chart ────────────────────────────────────────────────────────── */
.fc-chart {
    padding: 12px 8px 4px; border-radius: 16px; border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.006));
    overflow-x: auto;
}
.fc-svg { display: block; width: 100%; min-width: 560px; height: auto; font-family: inherit; }
.fc-svg .fc-gl { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.fc-svg .fc-ylab { font-size: 10px; fill: var(--gray-light); font-variant-numeric: tabular-nums; }
.fc-svg .fc-qsep { stroke: rgba(255,255,255,.14); stroke-width: 1; stroke-dasharray: 2 3; }
.fc-svg .fc-qlab { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; fill: var(--gray-light); }
.fc-svg .fc-hit { fill: transparent; }
.fc-svg .fc-col { cursor: pointer; }
.fc-svg .fc-col:hover .fc-hit { fill: rgba(255,255,255,.04); }
.fc-svg .fc-ghost { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.22); stroke-width: 1; stroke-dasharray: 3 2; }
.fc-svg .fc-wbar { fill: var(--red); }
.fc-svg .fc-col.is-now .fc-wbar { fill: #ff6b6b; }
.fc-svg .fc-col.is-over .fc-wbar { fill: #e0a03b; }
.fc-svg .fc-none { stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-dasharray: 3 3; }
.fc-svg .fc-vlab { font-size: 10px; font-weight: 700; fill: var(--white); font-variant-numeric: tabular-nums; }
.fc-svg .fc-xlab { font-size: 11px; font-weight: 700; fill: var(--gray-light); }
.fc-svg .fc-col.is-now .fc-xlab { fill: var(--white); }
.fc-svg .fc-col.is-empty .fc-xlab { fill: rgba(255,255,255,.35); }
.fc-svg .fc-xyr { font-size: 9px; fill: var(--gray-light); opacity: .8; }
.fc-svg .fc-xn { font-size: 9px; fill: var(--gray-light); opacity: .8; }
.fc-svg .fc-capline { stroke: #e0a03b; stroke-width: 1.5; stroke-dasharray: 6 4; }
.fc-svg .fc-tgtline { stroke: #6ba6ff; stroke-width: 1.5; stroke-dasharray: 2 3; }
.fc-svg .fc-lline { font-size: 9.5px; font-weight: 700; fill: #e0a03b; }
.fc-svg .fc-lline.is-t { fill: #6ba6ff; }
.fc-extra { margin-top: 10px; }
.fc-extra .op-chip { cursor: pointer; font: inherit; font-size: 10px; font-weight: 600; border: 0; }

/* ── Tables ───────────────────────────────────────────────────────────── */
.fc-tw { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.025); }
.fc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; color: var(--white); }
.fc-table th {
    text-align: left; padding: 9px 12px; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gray-light); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.fc-table td { padding: 9px 12px; border-top: 1px solid var(--border); vertical-align: top; }
.fc-table tbody tr:first-child td { border-top: 0; }
.fc-table tfoot td { border-top: 1px solid rgba(255,255,255,.18); color: var(--gray-light); }
.fc-table tfoot td b { color: var(--white); }
.fc-table .is-n, .fc-table th.is-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-table td.is-bar { min-width: 140px; }
.fc-table td.is-bar em, .fc-b + em { font-style: normal; font-size: 11px; color: var(--gray-light); margin-left: 8px; font-variant-numeric: tabular-nums; }
.fc-sub { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.4; color: var(--gray-light); }
.fc-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--white); cursor: pointer; text-align: left; }
.fc-link:hover { text-decoration: underline; }
.fc-short { color: #ff8f8f; font-weight: 700; }
.fc-ok { color: #2fc07d; font-weight: 700; }
.fc-muted { color: var(--gray-light); }
.fc-note { margin: 10px 2px 0; font-size: 12px; line-height: 1.6; color: var(--gray-light); }
.fc-note b { color: var(--white); }

/* ── Share bars and rows ──────────────────────────────────────────────── */
.fc-b { display: inline-block; vertical-align: middle; width: 90px; height: 6px; border-radius: 100px; background: rgba(255,255,255,.09); overflow: hidden; }
.fc-b i { display: block; height: 100%; border-radius: 100px; background: var(--red); }
.fc-b.is-warn i { background: #e0a03b; }
.fc-b.is-ok i { background: #2fc07d; }
.fc-rows { display: flex; flex-direction: column; gap: 6px; }
.fc-row {
    display: grid; grid-template-columns: auto 1fr auto 90px auto; align-items: center; gap: 10px;
    width: 100%; padding: 9px 12px; border-radius: 12px; font: inherit; text-align: left; color: var(--white);
    border: 1px solid var(--border); background: rgba(255,255,255,.035); cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}
.fc-row:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.fc-row.is-static { cursor: default; grid-template-columns: 1fr auto 90px auto; }
.fc-row.is-static:hover { border-color: var(--border); background: rgba(255,255,255,.035); }
.fc-row .op-mono { font-size: 10.5px; color: var(--gray-light); }
.fc-row-t { min-width: 0; font-size: 12.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.fc-row-n { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--gray-light); text-align: right; }
.fc-row-n b { color: var(--white); }
.fc-row-n i { display: block; font-style: normal; font-size: 10px; }
.fc-row > em { font-style: normal; font-size: 11px; color: var(--gray-light); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.fc-drawer-rows, .fc-drawer-sec { padding: 14px 24px 0; }
.fc-drawer-e { padding: 14px 24px; }
.op-rc .fc-sec-h { margin-top: 4px; }

/* ── Light theme ──────────────────────────────────────────────────────── */
html.light .fc-bar { background: #fff; border-color: rgba(0,0,0,.1); color: var(--gray-mid); }
html.light .fc-demo { background: rgba(43,95,184,.15); color: #2b5fb8; }
html.light .fc-sec-h h2, html.light .fc-h3, html.light .fc-legend, html.light .fc-muted, html.light .fc-note,
html.light .fc-sub, html.light .fc-row .op-mono, html.light .fc-row-n, html.light .fc-row > em,
html.light .fc-table th, html.light .fc-table tfoot td, html.light .fc-table td.is-bar em, html.light .fc-b + em { color: var(--gray-mid); }
html.light .fc-table, html.light .fc-table tfoot td b, html.light .fc-note b, html.light .fc-link, html.light .fc-row, html.light .fc-row-n b { color: var(--black); }
html.light .fc-lg { background: #c41717; }
html.light .fc-lg.is-g { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.25); }
html.light .fc-lg.is-c { border-top-color: #a8690f; background: transparent; }
html.light .fc-lg.is-t { border-top-color: #2b5fb8; background: transparent; }
html.light .fc-chart { background: #fff; border-color: rgba(0,0,0,.1); }
html.light .fc-svg .fc-gl { stroke: rgba(0,0,0,.07); }
html.light .fc-svg .fc-ylab, html.light .fc-svg .fc-qlab, html.light .fc-svg .fc-xlab, html.light .fc-svg .fc-xyr, html.light .fc-svg .fc-xn { fill: var(--gray-mid); }
html.light .fc-svg .fc-qsep { stroke: rgba(0,0,0,.14); }
html.light .fc-svg .fc-col:hover .fc-hit { fill: rgba(0,0,0,.03); }
html.light .fc-svg .fc-ghost { fill: rgba(0,0,0,.05); stroke: rgba(0,0,0,.25); }
html.light .fc-svg .fc-wbar { fill: #c41717; }
html.light .fc-svg .fc-col.is-now .fc-wbar { fill: #e03a3a; }
html.light .fc-svg .fc-col.is-over .fc-wbar { fill: #a8690f; }
html.light .fc-svg .fc-none { stroke: rgba(0,0,0,.3); }
html.light .fc-svg .fc-vlab, html.light .fc-svg .fc-col.is-now .fc-xlab { fill: var(--black); }
html.light .fc-svg .fc-col.is-empty .fc-xlab { fill: rgba(0,0,0,.35); }
html.light .fc-svg .fc-capline, html.light .fc-svg .fc-lline { stroke: #a8690f; fill: #a8690f; }
html.light .fc-svg .fc-capline { fill: none; }
html.light .fc-svg .fc-tgtline { stroke: #2b5fb8; }
html.light .fc-svg .fc-lline.is-t { fill: #2b5fb8; stroke: none; }
html.light .fc-tw { background: #fff; border-color: rgba(0,0,0,.1); }
html.light .fc-table th, html.light .fc-table td { border-color: rgba(0,0,0,.08); }
html.light .fc-table tfoot td { border-top-color: rgba(0,0,0,.18); }
html.light .fc-short { color: #c41717; }
html.light .fc-ok { color: #0f7a4b; }
html.light .fc-b { background: rgba(0,0,0,.08); }
html.light .fc-b i { background: #c41717; }
html.light .fc-b.is-warn i { background: #a8690f; }
html.light .fc-b.is-ok i { background: #0f7a4b; }
html.light .fc-row { background: #fafbfc; border-color: rgba(0,0,0,.09); }
html.light .fc-row:hover { background: #fff; border-color: rgba(0,0,0,.2); }
html.light .fc-row.is-static:hover { background: #fafbfc; border-color: rgba(0,0,0,.09); }

@media (max-width: 720px) {
    .fc-grid { grid-template-columns: 1fr; }
    .fc-row { grid-template-columns: auto 1fr auto; }
    .fc-row .fc-b, .fc-row > em { display: none; }
    .fc-row.is-static { grid-template-columns: 1fr auto; }
    .fc-legend { margin-left: 0; }
}
