/* The Rookery — DW6 (2026-10-19). One sheet for the wave, linked
 * after every other stylesheet so its few overrides win without
 * !important. Sections: C invoices · B Carly · A Workflows ·
 * D Dashboard (board fit, chart drag, avatar discs). */

/* ---------------- C · invoices ---------------- */
.dw6i-num .dw4i-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.dw6i-numf { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ds-muted, #6b7280); }
.dw6i-numf input { width: 110px; }
.dw6i-numf input[type="number"] { width: 120px; }
.dw6i-numprev { font-size: 13px; color: var(--ds-muted, #6b7280); padding-bottom: 6px; }
.dw6i-numprev b { color: var(--ds-navy, #0f2233); font-variant-numeric: tabular-nums; }
.dw4i-src .dw6i-src { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
  background: var(--ds-neutral-bg, #eef0f3); color: var(--ds-neutral-ink, #44505e); white-space: nowrap; }
.dw4i-src .dw6i-src-quote_line { background: #e8f0f8; color: #234a6e; }
.dw4i-src .dw6i-src-change_order_line { background: #f5ecdf; color: #7a4f12; }
.dw4i-src .dw6i-src-milestone { background: #ecf3ec; color: #2f5f34; }
.dw4i-src .inv-sub { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- B · Carly ---------------- */
.int-carly h4 { margin: 14px 0 6px; font-size: 13px; color: var(--ds-navy, #0f2233); }
.int-carly ul { margin: 0; padding-left: 18px; }
.int-carly li { margin: 4px 0; line-height: 1.45; }
.int-carly-dlg .fx-dlg-actions { flex-wrap: wrap; gap: 8px; }

/* ---------------- A · Workflows ---------------- */
.wf .wf-gh { margin: 18px 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-muted, #6b7280); }
.wf .wf-carly { margin: 4px 0 0; font-size: 13px; }
.wf-list { display: grid; gap: 10px; }
.wf-card { border: 1px solid var(--ds-line, #e2ded2); border-radius: 10px; padding: 12px 14px; background: var(--ds-card, #fff); }
.wf-card.is-on { border-color: var(--ds-line-strong, #c9c2ae); }
.wf-card-top { display: flex; align-items: center; gap: 12px; }
.wf-card-t { flex: 1; min-width: 0; }
.wf-card h3 { margin: 0 0 4px; font-size: 15px; color: var(--ds-navy, #0f2233); }
.wf-chip { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--ds-neutral-bg, #eef0f3); color: var(--ds-neutral-ink, #44505e); vertical-align: 2px; }
.wf-k { display: inline-block; min-width: 40px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-muted, #6b7280); }
.wf-when { margin: 0; font-size: 14px; }
.wf-then { display: flex; gap: 4px; margin-top: 6px; font-size: 14px; }
.wf-then ul { margin: 0; padding-left: 18px; }
.wf-then li { margin: 2px 0; line-height: 1.45; }
.wf-tpl { margin: 8px 0 0; font-size: 13px; color: var(--ds-muted, #6b7280); }
.wf-stat { margin: 8px 0 0; font-size: 13px; }
.wf-bad { color: var(--ds-bad-ink, #b3261e); }
.wf-acts { display: flex; gap: 8px; margin-top: 8px; }
.wf-acts:empty { display: none; }
.wf-log { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.wf-log li { margin: 3px 0; }
.wf-log li.is-bad { color: var(--ds-bad-ink, #b3261e); }
.wf-log-at { color: var(--ds-muted, #6b7280); font-variant-numeric: tabular-nums; margin-right: 4px; }
.wf-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; flex: none; }
.wf-switch { -webkit-appearance: none; appearance: none; margin: 0; flex: none; cursor: pointer;
  width: 36px; height: 20px; min-width: 36px; padding: 0; border: 0; border-radius: 999px;
  background: #d3d9e1 radial-gradient(circle, #fff 7px, transparent 7.5px) no-repeat 0 0 / 20px 20px;
  transition: background-color .15s, background-position .15s; }
.wf-switch:checked { background-color: var(--ds-navy, #0f2233); background-position: 16px 0; }
.wf-switch:disabled { cursor: not-allowed; opacity: .55; }
.wf-switch:focus-visible { outline: none; box-shadow: var(--ds-focus, 0 0 0 3px rgba(15, 34, 51, .25)); }
.wf-av { background: var(--ds-navy, #0f2233); color: #d8b56a; }

/* ---------------- D1 · the board and Forecast fit the window ----------------
 * DW6 addendum (owner, Oct 19 20:53): responsive, the way the My
 * Projects pipeline adjusts — laptop (~1280), tablet (1180 landscape,
 * 820 portrait) and wide monitors, no sideways PAGE scroll at any of
 * them. Root cause: dashboard.css fixes .dash-lane at flex 0 0 272px
 * (6 × 272 + gaps + sidebar ≈ 1,900px). Lanes now flex to the space
 * and their min-width is only a floor; Board and Forecast both.
 * The view's bleed is sized from its container (100% + the #app
 * gutters it bleeds into) instead of 100vw, which counts the vertical
 * scrollbar and pushed the page sideways on Windows.
 * Height: dashboard.js dashFitBoard sets --dash-board-h from where
 * the board starts to the bottom of the window (minus Forecast's
 * basis note), so lanes are full height and only cards scroll.
 * Board discipline unchanged: headers inside the lane, amounts in
 * the lane total and on every card. Below 600px (phones) lanes keep
 * their own scroll inside the board, as before. */
@media (min-width: 901px) {
  #view-dashboard.dash-boarding { width: calc(100% + 48px); }
}
@media (min-width: 600px) and (max-width: 900px) {
  #view-dashboard.dash-boarding { width: calc(100% + 20px); }
}
@media (min-width: 600px) {
  #view-dashboard .dash-board { height: var(--dash-board-h, calc(100dvh - 150px)); }
  #view-dashboard .dash-board > .dash-lane,
  body.skin-billdr #app #view-dashboard .dash-board > .dash-lane { flex: 1 1 0; min-width: 150px; }
  body.skin-billdr #app #view-dashboard .dash-board { gap: 8px; }
  #view-dashboard .dash-board .dash-card-t,
  #view-dashboard .dash-board .dash-card-s,
  #view-dashboard .dash-board .dash-lane-name { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
  /* Forecast carries 7–8 columns (Overdue, six months, No date) —
     a lower floor so they all show. A deal dated beyond the six
     months adds a column; only then, at the narrowest widths, does
     the board scroll inside itself (never the page). */
  #view-dashboard .dash-board.dash-forecast > .dash-lane,
  body.skin-billdr #app #view-dashboard .dash-board.dash-forecast > .dash-lane { min-width: 120px; }
}
/* tablet / small laptop: tighter chrome so 6 lanes (Board) and 8
   columns (Forecast) fit at 820 */
@media (min-width: 600px) and (max-width: 1200px) {
  body.skin-billdr #app #view-dashboard .dash-board,
  #view-dashboard .dash-board { gap: 5px; padding-left: 6px; padding-right: 6px; }
  #view-dashboard .dash-board > .dash-lane,
  body.skin-billdr #app #view-dashboard .dash-board > .dash-lane { min-width: 112px; }
  #view-dashboard .dash-board.dash-forecast > .dash-lane,
  body.skin-billdr #app #view-dashboard .dash-board.dash-forecast > .dash-lane { min-width: 92px; }
  body.skin-billdr #app #view-dashboard .dash-lane-h,
  #view-dashboard .dash-lane-h { padding: 10px 26px 8px 9px; }
  body.skin-billdr #app #view-dashboard .dash-lane-add { right: 8px; }
  body.skin-billdr #app #view-dashboard .dash-lane-name { font-size: 13px; }
  body.skin-billdr #app #view-dashboard .dash-cards,
  #view-dashboard .dash-cards { padding: 6px 4px; gap: 6px; }
  body.skin-billdr #app #view-dashboard .dash-card,
  #view-dashboard .dash-card { padding: 8px 9px; }
  body.skin-billdr #app #view-dashboard .dash-card-t { font-size: 13px; }
  #view-dashboard .dash-card-amt { white-space: nowrap; }
  #view-dashboard .dash-card-t { padding-right: 14px; }
  #view-dashboard .dash-card-menu { top: 4px; right: 3px; width: 20px; height: 20px; }
}
/* tablet portrait: the Forecast's 8 columns at ~97px — a step smaller */
@media (min-width: 600px) and (max-width: 900px) {
  body.skin-billdr #app #view-dashboard .dash-forecast .dash-card-t { font-size: 12.5px; }
  body.skin-billdr #app #view-dashboard .dash-forecast .dash-card,
  #view-dashboard .dash-forecast .dash-card { padding: 7px 7px; }
  body.skin-billdr #app #view-dashboard .dash-forecast .dash-lane-name { font-size: 12.5px; }
}

/* ---------------- D2 · charts drag by the header (mouse) ---------------- */
.dw4c-head.dw6c-draghead { cursor: grab; user-select: none; }
.dw4c-head.dw6c-draghead :is(select, button, label, a) { cursor: pointer; }
.dw4c-lifted .dw4c-head.dw6c-draghead { cursor: grabbing; }

/* ---------------- D3 · avatar discs (the shared helper) ----------------
 * app.js avatarHtml draws the disc; .dash-av keeps the Dashboard's
 * sizes and the navy/gold initials for the fallback. */
.avatar-chip.dash-av { width: 28px; height: 28px; font-size: 11px; position: relative; overflow: hidden; flex: none; }
.avatar-chip.dash-av.dash-av-sm { width: 20px; height: 20px; font-size: 9px; }
.avatar-chip.dash-av .avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.dash-avwrap { display: inline-flex; flex: none; line-height: 0; }
.avatar-chip.dash-av-contact { width: 32px; height: 32px; flex: none; }
