/* FACILITY MANAGEMENT: the workspace. ws-* carries the shell; fc- is the rest.
   The rail is <nav class="ws-rail fc-rail">, which user.css already pins away
   from the site header rule, so nothing here touches position. */
.fc { display: flex; flex-direction: column; gap: 14px; }
.fc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.fc-h h2 { margin: 0 0 4px; font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.fc-hint { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--gray-light, #aeaeb2); max-width: 76ch; }
.fc-h-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fc-h-acts .up-btn, .fc-h-acts .sr-act { display: inline-flex; align-items: center; gap: 6px; }
.fc-h-acts .ws-i { width: 14px; height: 14px; }
.fc-alerts { margin-bottom: 14px; }
.fc-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; align-items: start; }

/* the job picker, in the header next to the buttons */
.fc-pick { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-light, #aeaeb2); }
.fc-pick select {
    font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
    padding: 7px 30px 7px 11px; border-radius: 10px; max-width: 300px;
    background: rgba(255,255,255,.05); border: 1px solid var(--border, rgba(255,255,255,.12)); color: var(--white, #fff);
    /* One chevron, drawn here. The native arrow plus a background arrow is
       the double-arrow the dialogs had. */
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeaeb2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 9px center; background-size: 13px;
}

.fc-card {
    border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 16px 18px;
    background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.fc-card.is-warn { border-color: rgba(230,167,0,.4); background: rgba(230,167,0,.06); }
.fc-card h3 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.fc-card h3 .ws-i { width: 15px; height: 15px; color: var(--red, #c41717); }
.fc-n { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 100px; background: rgba(255,255,255,.09); color: var(--gray-light, #aeaeb2); }
.fc-quiet { font-size: 12.5px; line-height: 1.5; color: var(--gray-light, #aeaeb2); }
.fc-ok { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #37c27a; }
.fc-ok .ws-i { width: 14px; height: 14px; }
.fc-blank { border: 1px dashed rgba(255,255,255,.18); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fc-blank h3 { margin: 0; font-size: 17px; font-weight: 800; }
.fc-blank p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--gray-light, #aeaeb2); max-width: 70ch; }
.fc-blank .fc-picklist { width: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.fc-search {
    font: inherit; font-size: 12px; padding: 6px 10px; border-radius: 9px; width: 220px;
    background: rgba(255,255,255,.05); border: 1px solid var(--border, rgba(255,255,255,.12)); color: var(--white, #fff);
}
.fc-job { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; padding: 1px 6px; margin-left: 6px; border-radius: 5px; background: rgba(255,255,255,.08); color: var(--gray-light, #aeaeb2); }
.fc-tag { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; padding: 1px 7px; border-radius: 5px; background: rgba(255,255,255,.09); color: var(--white, #fff); }
.fc-sn { display: block; font-style: normal; font-size: 10.5px; color: var(--gray-light, #aeaeb2); margin-top: 2px; }
.fc-sn.is-none { opacity: .6; font-style: italic; }
.fc-gapline { display: block; font-size: 10.5px; color: #e6a700; margin-top: 2px; }

/* pills, one vocabulary for every register */
.fc-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 100px; white-space: nowrap; }
.fc-pill .ws-i { width: 12px; height: 12px; }
.fc-pill.is-ok { color: #37c27a; background: rgba(55,194,122,.14); }
.fc-pill.is-warn { color: #e6a700; background: rgba(230,167,0,.14); }
.fc-pill.is-bad { color: #ff5c5c; background: rgba(255,92,92,.14); }
.fc-pill.is-mute { color: var(--gray-light, #aeaeb2); background: rgba(255,255,255,.08); }

/* tables */
.fc-tablewrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.fc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fc-table thead th { text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-light, #aeaeb2); padding: 9px 11px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.fc-table td { padding: 9px 11px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.fc-table tr:last-child td { border-bottom: 0; }
.fc-table tr.is-bad td { background: rgba(255,92,92,.06); }
.fc-table tr.is-done td { opacity: .6; }
.fc-acts { text-align: right; white-space: nowrap; }
.fc-acts .sr-act { margin-right: 4px; }
.fc-ib { position: relative; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--gray-light, #aeaeb2); cursor: pointer; font: inherit; }
.fc-ib .ws-i { width: 13px; height: 13px; }
.fc-ib:hover { border-color: rgba(255,255,255,.2); color: var(--white, #fff); }
.fc-ib.is-danger:hover { border-color: rgba(196,23,23,.5); color: #ff8f8f; }
.fc-ib.has-docs { color: var(--white, #fff); }
.fc-ib b { position: absolute; top: -1px; right: -2px; font-size: 9px; font-weight: 800; line-height: 1; padding: 2px 4px; border-radius: 100px; background: var(--red, #c41717); color: #fff; }
.fc-sel {
    font: inherit; font-size: 11.5px; padding: 4px 24px 4px 8px; border-radius: 8px;
    background: rgba(255,255,255,.05); border: 1px solid var(--border, rgba(255,255,255,.12)); color: var(--white, #fff);
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeaeb2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 7px center; background-size: 11px;
}

/* rows: one line, one fact, one action */
.fc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; text-align: left; width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); color: var(--white, #fff); font: inherit; font-size: 12.5px; }
button.fc-row { cursor: pointer; }
button.fc-row:hover { border-color: rgba(196,23,23,.45); }
.fc-row.is-bad { border-color: rgba(255,92,92,.35); }
.fc-row.is-warn { border-color: rgba(230,167,0,.35); }
.fc-row-n { font-weight: 650; }
.fc-row-m { color: var(--gray-light, #aeaeb2); }
.fc-row > .fc-pill, .fc-row > .up-btn, .fc-row > .sr-act { margin-left: auto; }

/* ── THE HANDOVER GATE ───────────────────────────────────────────────────
   The same shape as accepting each division before a bid can be submitted:
   one bar, one sentence, and the blockers counted underneath. */
.fc-gate {
    border: 1px solid rgba(230,167,0,.45); border-radius: 18px; padding: 18px 20px;
    display: flex; flex-direction: column; gap: 12px;
    background: linear-gradient(135deg, rgba(230,167,0,.12), rgba(255,255,255,.02));
}
.fc-gate.is-ok { border-color: rgba(55,194,122,.45); background: linear-gradient(135deg, rgba(55,194,122,.14), rgba(255,255,255,.02)); }
.fc-gate.is-bad { border-color: rgba(255,92,92,.45); background: linear-gradient(135deg, rgba(255,92,92,.12), rgba(255,255,255,.02)); }
.fc-gate.is-empty { border-style: dashed; background: rgba(255,255,255,.02); }
.fc-gate-h { display: flex; align-items: center; gap: 10px; }
.fc-gate-h h3 { margin: 0; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.fc-gate-h .ws-i { width: 16px; height: 16px; }
.fc-gate-p { margin-left: auto; font-size: 28px; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fc-gate-b { height: 12px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.fc-gate-b i { display: block; height: 100%; border-radius: 6px; background: #e6a700; }
.fc-gate.is-ok .fc-gate-b i { background: #37c27a; }
.fc-gate.is-bad .fc-gate-b i { background: #ff5c5c; }
.fc-gate p { margin: 0; font-size: 13px; line-height: 1.6; max-width: 88ch; }
.fc-gate-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.fc-gate-i { display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border-radius: 10px; background: rgba(255,255,255,.04); }
.fc-gate-i span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-light, #aeaeb2); }
.fc-gate-i b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fc-gate-i.is-ok b { color: #37c27a; }
.fc-gate-i.is-warn b { color: #e6a700; }
.fc-gate-i.is-bad b { color: #ff5c5c; }
.fc-gate-a { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* the coverage hero, shared by warranties and maintenance */
.fc-hero { border: 1px solid rgba(196,23,23,.4); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(135deg, rgba(196,23,23,.18), rgba(255,255,255,.02)); }
.fc-hero-n { display: flex; flex-direction: column; gap: 2px; }
.fc-hero-n span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-light, #aeaeb2); }
.fc-hero-n b { font-size: 34px; font-weight: 850; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fc-hero-n em { font-style: normal; font-size: 12.5px; color: var(--gray-light, #aeaeb2); }
.fc-hero-b { height: 12px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.fc-hero-b i { display: block; height: 100%; border-radius: 6px; background: var(--red, #c41717); }
.fc-hero-m { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 12px; color: var(--gray-light, #aeaeb2); }
.fc-hero-m b { color: var(--white, #fff); font-weight: 700; }

.fc-cap-b { height: 10px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; }
.fc-cap-b i { display: block; height: 100%; background: var(--red, #c41717); border-radius: 5px; }
.fc-cap-l { font-size: 12.5px; color: var(--gray-light, #aeaeb2); }
.fc-cap-l b { font-size: 18px; font-weight: 850; color: var(--white, #fff); font-variant-numeric: tabular-nums; }

/* what runs out next */
.fc-tl { display: flex; flex-direction: column; gap: 5px; }
.fc-tl-r { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); color: var(--white, #fff); font: inherit; font-size: 12.5px; cursor: pointer; }
.fc-tl-r:hover { border-color: rgba(196,23,23,.45); }
.fc-tl-d { font-family: var(--font-mono); font-size: 11.5px; font-weight: 800; text-align: center; padding: 2px 0; border-radius: 6px; background: rgba(255,255,255,.08); }
.fc-tl-r.is-bad .fc-tl-d { background: rgba(255,92,92,.2); color: #ff8f8f; }
.fc-tl-r.is-warn .fc-tl-d { background: rgba(230,167,0,.2); color: #e6a700; }
.fc-tl-t { display: flex; flex-direction: column; min-width: 0; }
.fc-tl-t b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-tl-t em { font-style: normal; font-size: 11.5px; color: var(--gray-light, #aeaeb2); }
.fc-tl-w { font-size: 11.5px; color: var(--gray-light, #aeaeb2); white-space: nowrap; }

/* closeout items */
.fc-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 10px; }
.fc-item { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fc-item.is-bad { border-color: rgba(255,92,92,.35); background: rgba(255,92,92,.04); }
.fc-item.is-warn { border-color: rgba(230,167,0,.3); }
.fc-item.is-ok { border-color: rgba(55,194,122,.3); }
.fc-item-h { display: flex; align-items: flex-start; gap: 10px; }
.fc-item-h b { font-size: 13px; font-weight: 750; line-height: 1.35; }
.fc-item-h .fc-pill { margin-left: auto; flex: 0 0 auto; }
.fc-item-m { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--gray-light, #aeaeb2); }
.fc-item-m .is-bad { color: #ff8f8f; font-weight: 650; }
.fc-steps { display: flex; gap: 4px; flex-wrap: wrap; }
.fc-step { font-size: 10.5px; padding: 2px 8px; border-radius: 100px; background: rgba(255,255,255,.06); color: var(--gray-light, #aeaeb2); }
.fc-step.is-on { background: rgba(55,194,122,.16); color: #37c27a; font-weight: 700; }
.fc-step.is-waived { background: rgba(255,255,255,.1); color: var(--white, #fff); font-weight: 700; }
.fc-item-f { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fc-item-f .fc-ib:first-of-type { margin-left: auto; }
.fc-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.fc-kind { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,.07); font-size: 12px; }
.fc-kind span { color: var(--gray-light, #aeaeb2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-kind b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 800; }
.fc-kind.is-ok b { color: #37c27a; }
.fc-kind.is-warn b { color: #e6a700; }
.fc-kind.is-bad { border-color: rgba(255,92,92,.35); } .fc-kind.is-bad b { color: #ff5c5c; }
.fc-warnbox { font-size: 12.5px; line-height: 1.7; padding: 10px 12px; border-radius: 10px; background: rgba(230,167,0,.08); border: 1px solid rgba(230,167,0,.3); }

/* An attachment panel opened under a row or inside a card. */
.fc-docs { padding: 10px 2px 4px; }
.fc-docs-tr td { background: rgba(255,255,255,.02); }

/* ── light ─────────────────────────────────────────────────────────────── */
html.light .fc-card, html.light .fc-row, html.light .fc-item, html.light .fc-kind, html.light .fc-tl-r, html.light .fc-tablewrap { background: #fff; border-color: rgba(0,0,0,.09); color: #111; }
html.light .fc-card.is-warn { background: rgba(230,167,0,.05); border-color: rgba(154,106,0,.3); }
html.light .fc-hint, html.light .fc-quiet, html.light .fc-row-m, html.light .fc-tl-t em, html.light .fc-tl-w,
html.light .fc-hero-m, html.light .fc-cap-l, html.light .fc-item-m, html.light .fc-table thead th, html.light .fc-blank p,
html.light .fc-step, html.light .fc-job, html.light .fc-n, html.light .fc-sn, html.light .fc-kind span,
html.light .fc-gate-i span, html.light .fc-pick { color: #5f5f66; }
html.light .fc-card h3, html.light .fc-row-n, html.light .fc-item-h b, html.light .fc-tl-t b, html.light .fc-hero-n b,
html.light .fc-hero-m b, html.light .fc-cap-l b, html.light .fc-blank h3, html.light .fc-tag,
html.light .fc-gate-h h3, html.light .fc-gate p, html.light .fc-gate-p, html.light .fc-kind b { color: #111; }
html.light .fc-hero { background: linear-gradient(135deg, rgba(196,23,23,.1), #fff 70%); border-color: rgba(196,23,23,.3); }
html.light .fc-gate { background: linear-gradient(135deg, rgba(154,106,0,.1), #fff 70%); border-color: rgba(154,106,0,.35); }
html.light .fc-gate.is-ok { background: linear-gradient(135deg, rgba(23,138,79,.1), #fff 70%); border-color: rgba(23,138,79,.35); }
html.light .fc-gate.is-bad { background: linear-gradient(135deg, rgba(196,23,23,.1), #fff 70%); border-color: rgba(196,23,23,.35); }
html.light .fc-gate.is-empty { background: #fff; }
html.light .fc-gate-i { background: rgba(0,0,0,.04); }
html.light .fc-gate-b, html.light .fc-hero-b, html.light .fc-cap-b { background: rgba(0,0,0,.08); }
html.light .fc-gate-b i { background: #9a6a00; }
html.light .fc-gate.is-ok .fc-gate-b i { background: #178a4f; }
html.light .fc-gate.is-bad .fc-gate-b i { background: #c41717; }
html.light .fc-gate-i.is-ok b { color: #178a4f; }
html.light .fc-gate-i.is-warn b { color: #9a6a00; }
html.light .fc-gate-i.is-bad b { color: #c41717; }
html.light .fc-n, html.light .fc-tag, html.light .fc-job, html.light .fc-tl-d, html.light .fc-step, html.light .fc-pill.is-mute { background: rgba(0,0,0,.06); }
html.light .fc-table td { border-bottom-color: rgba(0,0,0,.06); }
html.light .fc-table thead th { border-bottom-color: rgba(0,0,0,.08); }
html.light .fc-pill.is-ok { color: #178a4f; background: rgba(23,138,79,.12); }
html.light .fc-pill.is-warn { color: #9a6a00; background: rgba(154,106,0,.12); }
html.light .fc-pill.is-bad { color: #c41717; background: rgba(196,23,23,.1); }
html.light .fc-ok { color: #178a4f; }
html.light .fc-step.is-on { background: rgba(23,138,79,.14); color: #178a4f; }
html.light .fc-step.is-waived { background: rgba(0,0,0,.1); color: #111; }
html.light .fc-kind.is-ok b { color: #178a4f; } html.light .fc-kind.is-warn b { color: #9a6a00; } html.light .fc-kind.is-bad b { color: #c41717; }
html.light .fc-search, html.light .fc-sel, html.light .fc-pick select { background: #fff; border-color: rgba(0,0,0,.14); color: #111; }
html.light .fc-blank { border-color: rgba(0,0,0,.18); }
html.light .fc-warnbox { background: rgba(154,106,0,.06); border-color: rgba(154,106,0,.28); }
html.light .fc-gapline { color: #9a6a00; }
html.light .fc-table tr.is-bad td { background: rgba(196,23,23,.05); }
html.light .fc-item.is-bad { background: rgba(196,23,23,.04); border-color: rgba(196,23,23,.3); }
html.light .fc-item.is-warn { border-color: rgba(154,106,0,.28); }
html.light .fc-item.is-ok { border-color: rgba(23,138,79,.28); }
html.light .fc-ib:hover { border-color: rgba(0,0,0,.2); color: #111; }
html.light .fc-docs-tr td { background: #fafafb; }
html.light .fc-item-m .is-bad { color: #c41717; }

@media (max-width: 900px) {
    .fc-grid2, .fc-items { grid-template-columns: 1fr; }
    .fc-search { width: 100%; margin: 6px 0 0; }
    .fc-pick { width: 100%; } .fc-pick select { flex: 1 1 auto; max-width: none; }
    .fc-card h3 { flex-wrap: wrap; }
}
