/* The Obligations board (wave336, 2026-11-01; wave339, 2026-11-02: its own
 * top-level view, #view-obligations, per walk item #10 — the Invoices
 * tab strip and mode classes are retired) plus a compact Dashboard card,
 * on the design-system tokens. */

/* the board */
.obl-wrap { max-width: none; padding: 0 0 40px; }
.obl-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.obl-head p { margin: 0; font-size: 13.5px; max-width: 720px; line-height: 1.5; }
.obl-head .btn { margin-left: auto; flex: none; }
.obl-flash { font-size: 13px; color: #2e7d4f; background: #eaf5ee; border: 1px solid #cfe6d7; border-radius: 8px; padding: 7px 10px; margin-bottom: 10px; }
.obl-flash-bad { color: #8a2b20; background: #fbecea; border-color: #f0cdc8; }
.obl-list { display: flex; flex-direction: column; gap: 8px; }
.obl-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--ds-card, #fff); border: 1px solid var(--ds-line, #e3e3e8); border-left: 4px solid var(--ds-line-strong, #c9c9d2); border-radius: 10px; padding: 12px 14px; }
.obl-row.obl-soon { border-left-color: var(--ds-gold-strong, #b8892b); }
.obl-row.obl-overdue { border-left-color: #c0392b; }
.obl-title { font-weight: 600; color: var(--ds-navy, #1d2b4f); font-size: 15px; }
.obl-sub { font-size: 12.5px; color: var(--ds-muted, #666); margin-top: 2px; }
.obl-notes { font-size: 12.5px; color: var(--ds-muted, #666); margin-top: 5px; white-space: pre-line; line-height: 1.45; }
.obl-submit { font-size: 13.5px; color: var(--ds-ink, #222); line-height: 1.4; }
.obl-pill { display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; color: var(--ds-muted, #666); background: var(--ds-tint, #f3f3f6); }
.obl-soon .obl-pill { color: #8a5a00; background: var(--ds-gold-tint, #fbf3df); }
.obl-overdue .obl-pill { color: #fff; background: #c0392b; }
.obl-amt { font-size: 14px; font-weight: 600; color: var(--ds-ink, #222); font-variant-numeric: tabular-nums; }
.obl-amt-none { font-weight: 400; font-size: 12.5px; color: var(--ds-muted, #666); font-style: italic; }
.obl-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.obl-ask { font-size: 12.5px; color: #8a2b20; }
.obl-danger { color: #fff; background: #c0392b; border-color: #c0392b; }
.obl-empty { padding: 18px 0; }
@media (max-width: 900px) {
  .obl-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .obl-acts { justify-content: flex-start; }
  .obl-head { flex-wrap: wrap; }
  .obl-head .btn { margin-left: 0; }
}

/* dialogs (self-contained; no dependency on another file's helper) */
.obl-ov { position: fixed; inset: 0; background: rgba(15, 20, 35, .42); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 1000; overflow-y: auto; }
.obl-dlg { background: var(--ds-card, #fff); color: var(--ds-ink, #222); border-radius: 12px; width: min(560px, 100%); padding: 20px 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); }
.obl-dlg h2 { margin: 0 0 12px; font-size: 19px; color: var(--ds-navy, #1d2b4f); }
.obl-dlg h3 { margin: 12px 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-faint, #888); }
.obl-lede { margin: 0 0 12px; font-size: 13.5px; color: var(--ds-muted, #666); }
.obl-f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ds-muted, #666); margin-bottom: 10px; min-width: 0; }
.obl-f input, .obl-f select, .obl-f textarea { font: inherit; font-size: 14px; font-weight: 400; color: var(--ds-ink, #222); background: var(--ds-fill, #fff); border: 1px solid var(--ds-line-strong, #c9c9d2); border-radius: 8px; padding: 7px 9px; width: 100%; box-sizing: border-box; }
.obl-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .obl-f2 { grid-template-columns: 1fr; gap: 0; } }
.obl-hint { font-size: 12px; font-weight: 400; color: var(--ds-muted, #666); margin: 0 0 8px; line-height: 1.45; }
.obl-hint:empty { display: none; }
.obl-quiet { font-size: 12px; color: var(--ds-faint, #888); margin: 2px 0 8px; }
.obl-hist ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ds-muted, #666); line-height: 1.6; }
.obl-err { font-size: 13px; color: #8a2b20; background: #fbecea; border-radius: 8px; padding: 7px 10px; margin: 6px 0 0; }
.obl-err.hidden { display: none; }
.obl-dlg-acts { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.obl-dlg-acts .grow { flex: 1; }

/* the Dashboard card — silent (empty container) when nothing is due soon */
#dash-obl:empty { display: none; }
.obl-card { background: var(--ds-card, #fff); border: 1px solid var(--ds-gold-line, #ecd9a8); border-left: 4px solid var(--ds-gold-strong, #b8892b); border-radius: 10px;
  padding: 10px 14px; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.obl-card-hot { border-color: #f0cdc8; border-left-color: #c0392b; }
.obl-card-top { display: flex; gap: 10px; align-items: baseline; }
.obl-card-h { font-weight: 600; color: var(--ds-navy, #1d2b4f); }
.obl-card-n { font-size: 12.5px; color: var(--ds-muted, #666); }
.obl-card-next { font-size: 13px; color: var(--ds-ink, #222); flex: 1 1 280px; }

/* ---- wave590-fullwidth (2026-11-11): the wrapper cap comes off
 * in EVERY rail state. Micheal ruled 2026-10-16 that every
 * portal screen fills the whole window; the shell cap came off
 * then, but this page kept its own 1240px wrapper cap. The
 * Nov 10 fix (wave550, in styles.css) lifted the cap only while
 * the rail was collapsed — his 2026-11-11 screenshot shows
 * Obligations with the sidebar EXPANDED, stopped mid-screen
 * ("not full screen when it is not collapsed side menu"), so
 * the collapsed-only lift is superseded: uncapped here, by
 * source order, in all states. The rows inside are fluid grid
 * (fr columns), so the page genuinely widens. ---- */
.obl-wrap { max-width: none; }
