/* gantt.css — Wave 22 fix pass 2: the reworked Gantt's chrome.
 * The scale model and renderers live in schedule-plan.js /
 * project-modules.js / schedule-edit.js; the base bar, row and
 * overlay rules stay in styles.css. Loaded after styles.css and
 * design-system.css, so its rules win their ties. */

/* The scale toolbar: Fit / Days / Weeks + the Today door. */
.gt-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }

/* The two-row axis: month segments over Monday ticks. */
.gt-axis2 { display: flex; border-bottom: 1px solid var(--line); }
.gt-axis2-track { display: flex; flex-direction: column; height: 38px; }
.gt-months { position: relative; height: 19px; border-bottom: 1px solid var(--line); }
.gt-month {
  position: absolute; top: 0; height: 19px; line-height: 19px;
  padding-left: 6px; border-left: 1px solid var(--line);
  font-size: 11px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden;
}
.gt-weeks { position: relative; height: 19px; }
.gt-week {
  position: absolute; top: 2px; padding-left: 5px;
  font-size: 10.5px; color: var(--muted); white-space: nowrap;
}
.gt-weeks .gt-today-flag { top: 2px; }

/* Gridlines in the shared overlay: hairlines for days, a step
 * stronger for Mondays, strongest at month turns. */
.gt-gline {
  position: absolute; top: 0; bottom: 0; width: 0;
  border-left: 1px solid rgba(27, 43, 68, .055);
  pointer-events: none;
}
.gt-gline.week { border-left-color: rgba(27, 43, 68, .13); }
.gt-gline.month { border-left-color: rgba(27, 43, 68, .22); }
/* The navy frame reads the same lines in light ink. */

/* Completion stated on the bar (Billdr shows it there), and a
 * phase band's rollup % at its right, in sentence case under the
 * band's uppercase. */
.gt-pct {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 10px; font-weight: 800; color: #fff;
  text-shadow: 0 1px 2px rgba(11, 34, 53, .55);
  pointer-events: none;
}
.gt-bar.proposed .gt-pct { color: #7a5a12; text-shadow: none; }
.cg-bar .gt-pct { color: #43536b; text-shadow: none; }
.gt-group .gt-gpct {
  float: right;
  color: var(--royal); font-weight: 800;
  letter-spacing: 0; text-transform: none;
}

/* ======================= DW2 P14 · crew chips under time off ======================= */
/* Used by the project Schedule editor and the Calendar's event
 * dialog (schedPeopleChips): "Off" = approved time off on the event's
 * days (can't be newly picked); already on it = a warning chip plus a
 * line under the chips; "requested" = pending, deciders only. */
.ev-people .ev-chip.ev-chip-off { opacity: .8; cursor: not-allowed; border-style: dashed; }
.ev-people .ev-chip-offtag { margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #e2e8f0; color: #334155; }
.ev-people .ev-chip.ev-chip-offwarn { box-shadow: inset 0 0 0 2px #dc2626; }
.ev-people .ev-chip.ev-chip-offwarn .ev-chip-offtag { background: #fee2e2; color: #991b1b; }
.ev-people .ev-chip.ev-chip-req { border-style: dashed; }
.ev-people .ev-chip-reqtag { margin-left: 4px; font-size: 11px; font-style: italic; opacity: .75; }
.ev-people .ev-off-warn { flex-basis: 100%; width: 100%; margin: 6px 0 0; font-size: 12.5px; color: #991b1b; }
body.skin-billdr :is(#app, .fx-overlay) .ev-people .ev-chip.ev-chip-off { background: var(--ds-fill); color: var(--ds-muted); border: 1px dashed var(--ds-line-strong); }
body.skin-billdr :is(#app, .fx-overlay) .ev-people .ev-chip-offtag { background: var(--ds-neutral-bg); color: var(--ds-neutral-ink); }
body.skin-billdr :is(#app, .fx-overlay) .ev-people .ev-chip.ev-chip-offwarn { box-shadow: inset 0 0 0 2px var(--ds-k-red); }
body.skin-billdr :is(#app, .fx-overlay) .ev-people .ev-chip.ev-chip-offwarn .ev-chip-offtag { background: var(--ds-bad-bg); color: var(--ds-bad-ink); }
body.skin-billdr :is(#app, .fx-overlay) .ev-people .ev-chip.ev-chip-req { border-style: dashed; border-color: var(--ds-k-orange); }
body.skin-billdr :is(#app, .fx-overlay) .ev-people .ev-off-warn { color: var(--ds-bad-ink); font-size: var(--ds-fs-xs); }

/* ======================= DW5 B (2026-10-19) · Billdr's schedule ======================= */
/* The Gantt's left table: the List's columns, widths from gantt-view.js
 * (--gv-w-<col>), so the header and the rows always line up. */
body.skin-billdr #app .dw5-gv .gv-left { display: flex; align-items: center; width: var(--gv-left); min-width: var(--gv-left); }
body.skin-billdr #app .dw5-gv .gv-left > span { flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; box-sizing: border-box; }
body.skin-billdr #app .dw5-gv .gv-c-num { width: var(--gv-w-num, 52px); }
body.skin-billdr #app .dw5-gv .gv-c-name { width: var(--gv-w-name, 230px); }
body.skin-billdr #app .dw5-gv .gv-c-date { width: var(--gv-w-start, 86px); font-size: var(--ds-fs-xs); color: var(--ds-muted); }
body.skin-billdr #app .dw5-gv .gv-c-wd { width: var(--gv-w-wd, 54px); text-align: right; font-size: var(--ds-fs-xs); }
body.skin-billdr #app .dw5-gv .gv-c-ppl { width: var(--gv-w-ppl, 84px); display: inline-flex; align-items: center; gap: 0; }
body.skin-billdr #app .dw5-gv .gv-c-ppl .avatar-chip { width: 22px; height: 22px; font-size: 9px; margin-left: -4px; border: 1.5px solid var(--ds-card); }
body.skin-billdr #app .dw5-gv .gv-c-ppl .avatar-chip:first-child { margin-left: 0; }
body.skin-billdr #app .dw5-gv .gv-c-dep { width: var(--gv-w-pred, 62px); font-size: var(--ds-fs-xs); color: var(--ds-muted); }
body.skin-billdr #app .dw5-gv .gv-c-pct { width: var(--gv-w-pct, 54px); text-align: center; }
body.skin-billdr #app .dw5-gv .gv-left-h > span { font-size: var(--ds-fs-xs); font-weight: 700; color: var(--ds-muted); }

/* the blue TODAY column, its day number a blue pill */
body.skin-billdr #app .dw5-gv .gv-todaycol { position: absolute; top: 0; bottom: 0; background: rgba(37, 99, 235, .09); border-left: 1px solid rgba(37, 99, 235, .45); border-right: 1px solid rgba(37, 99, 235, .45); pointer-events: none; }
body.skin-billdr #app .dw5-gv .gv-day .gv-todaypill { display: inline-block; min-width: 20px; padding: 1px 4px; border-radius: var(--ds-r-pill, 999px); background: #2563eb; color: #fff; }

/* task bars: pale phase colour, % pill at the left, label after */
body.skin-billdr #app .dw5-gv .gv-bar { background: var(--gv-bg); border: 1px solid var(--gv-bd); display: flex; align-items: center; }
body.skin-billdr #app .dw5-gv .gv-bar .gv-fill { background: var(--gv-st); opacity: .28; }
body.skin-billdr #app .dw5-gv .gv-pill { position: relative; margin-left: 4px; padding: 0 6px; border-radius: var(--ds-r-pill, 999px); background: var(--ds-card); color: var(--gv-ink, var(--ds-ink)); font-size: 10.5px; font-weight: 800; line-height: 16px; border: 1px solid var(--gv-bd, var(--ds-line)); }
body.skin-billdr #app .dw5-gv .gv-after .gv-pill { margin: 0 4px 0 0; }
body.skin-billdr #app .dw5-gv .gv-after { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; white-space: nowrap; }
body.skin-billdr #app .dw5-gv .gv-after .gv-lab { font-size: var(--ds-fs-xs); color: var(--ds-ink); }
body.skin-billdr #app .dw5-gv .gv-bar.locked { border-style: solid; box-shadow: inset 0 0 0 1px var(--gv-st); cursor: default; }
body.skin-billdr #app .dw5-gv .gv-lock { margin-left: auto; margin-right: 4px; color: var(--gv-ink); opacity: .8; display: inline-flex; }

/* phase bars carry the group name */
body.skin-billdr #app .dw5-gv .gv-gbar.dw5 { height: 18px; display: flex; align-items: center; background: var(--gv-bd); border-radius: 4px; overflow: hidden; position: relative; }
body.skin-billdr #app .dw5-gv .gv-gbar.dw5 .gv-fill { background: rgba(0, 0, 0, .14); }
body.skin-billdr #app .dw5-gv .gv-glab-in { position: relative; padding: 0 8px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); white-space: nowrap; }

/* completion rings (List + Gantt) */
body.skin-billdr #app :is(.gv-ring, .ps-ring) { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; vertical-align: middle; }
body.skin-billdr #app :is(.gv-ring, .ps-ring) svg { width: 100%; height: 100%; }
/* wave49-schedule (Micheal, 2026-10-21 22:03 — item B): only the
 * progress ARC turns (its dash starts at the top of the circle).
 * The blanket rotate above also caught the drawn CHECK inside
 * .ps-chk / .done, so every completion check rendered sideways;
 * an svg holding the ring's circles is the only one that turns. */
body.skin-billdr #app :is(.gv-ring, .ps-ring) svg:has(circle) { transform: rotate(-90deg); }
body.skin-billdr #app :is(.gv-ring-bg, .ps-ring-bg) { fill: none; stroke: var(--ds-line); stroke-width: 2.4; }
body.skin-billdr #app :is(.gv-ring-fg, .ps-ring-fg) { fill: none; stroke: var(--ds-k-green, #16a34a); stroke-width: 2.4; stroke-linecap: round; }
body.skin-billdr #app .gv-ring b { position: absolute; font-size: 7.5px; font-weight: 800; color: var(--ds-muted); }
body.skin-billdr #app :is(.gv-ring, .ps-ring).done { border-radius: 50%; background: var(--ds-k-green, #16a34a); color: #fff; }

/* the List: tick column, inline names, drag handle, bulk bar */
body.skin-billdr #app .ps-table .c-sel { width: 44px; white-space: nowrap; }
body.skin-billdr #app .ps-table .ps-grip { cursor: grab; color: var(--ds-faint, var(--ds-muted)); font-size: 11px; letter-spacing: -2px; margin-right: 4px; user-select: none; touch-action: none; }
body.skin-billdr #app .ps-table tr.ps-dragging { opacity: .45; }
body.skin-billdr #app .ps-table tr.ps-drop-before td { box-shadow: inset 0 2px 0 var(--ds-navy); }
body.skin-billdr #app .ps-table tr.ps-drop-into td { background: var(--ds-tint); }
body.skin-billdr #app .ps-table tr.ps-ticked td { background: var(--ds-tint); }
body.skin-billdr #app .ps-table .ps-in-name { width: calc(100% - 28px); min-width: 120px; border: 1px solid transparent; background: transparent; font: inherit; font-weight: 600; color: var(--ds-ink); padding: 3px 6px; border-radius: var(--ds-r-sm); }
body.skin-billdr #app .ps-table .ps-in-name:hover { border-color: var(--ds-line); }
body.skin-billdr #app .ps-table .ps-in-name:focus { border-color: var(--ds-focus, var(--ds-navy)); background: var(--ds-card); outline: none; }
body.skin-billdr #app .ps-table .ps-open { border: 0; background: none; color: var(--ds-muted); cursor: pointer; padding: 2px; vertical-align: middle; }
body.skin-billdr #app .ps-tag-lock { display: inline-flex; vertical-align: middle; }
body.skin-billdr #app #psched-bulk.ps-bulk-on { position: sticky; bottom: 12px; z-index: 5; margin-top: 10px; }
body.skin-billdr #app .ps-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--ds-r); background: var(--ds-navy); color: #fff; box-shadow: 0 8px 24px rgba(11, 34, 53, .25); }
body.skin-billdr #app .ps-bulk .btn { color: #fff; border-color: rgba(255, 255, 255, .35); }
body.skin-billdr #app .ps-bulk .btn:disabled { opacity: .5; }
body.skin-billdr #app .ps-bulk .linkbtn { color: #fff; }
body.skin-billdr #app .ps-bulk-n { font-weight: 800; margin-right: 6px; }
body.skin-billdr #app .ps-bulk .ps-bulk-note { color: rgba(255, 255, 255, .75); }
body.skin-billdr #app .ps-bulk .grow { flex: 1; }

/* the project Calendar: bars across the working days */
body.skin-billdr #app .sched-chip.dw5-bar { display: block; width: calc(100% + 13px); margin-left: -6px; border-radius: 0; border-left-width: 0; border-right-width: 0; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.skin-billdr #app .sched-chip.dw5-bar.b-first { margin-left: 0; width: calc(100% + 7px); border-left-width: 1px; border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
body.skin-billdr #app .sched-chip.dw5-bar.b-last { width: calc(100% + 0px); border-right-width: 1px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
body.skin-billdr #app .sched-chip.dw5-bar.b-first.b-last { width: 100%; }

/* the activity drawer (right side) — a body child, outside #app */
body.skin-billdr .sched-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 1200; overflow-y: auto; background: var(--ds-card, #fff); border-left: 1px solid var(--ds-line, #e5e7eb); box-shadow: -12px 0 32px rgba(11, 34, 53, .18); padding: 18px 18px 90px; box-sizing: border-box; }
body.skin-billdr .sched-drawer .qm-form { border: 0; box-shadow: none; padding: 0; margin: 0; background: none; }
body.skin-billdr .sched-drawer .qm-form-grid { grid-template-columns: 1fr 1fr; }
body.skin-billdr .sched-drawer .composer-bar { position: sticky; bottom: -90px; background: var(--ds-card, #fff); padding: 12px 0; border-top: 1px solid var(--ds-line, #e5e7eb); flex-wrap: wrap; gap: 8px; }
body.skin-billdr .sched-drawer .ev-dw5 { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid var(--ds-line, #e5e7eb); }
body.skin-billdr .sched-drawer .ev-swatches, body.skin-billdr .sched-drawer .ev-wdays { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
body.skin-billdr .sched-drawer .ev-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ds-card, #fff); background: var(--sw); box-shadow: 0 0 0 1px var(--ds-line, #e5e7eb); cursor: pointer; }
body.skin-billdr .sched-drawer .ev-sw.on { box-shadow: 0 0 0 2px var(--ds-navy, #1b2b44); }
body.skin-billdr .sched-drawer .ev-sw-none { width: auto; border-radius: var(--ds-r-pill, 999px); padding: 0 10px; background: var(--ds-fill, #f3f4f6); font-size: var(--ds-fs-xs, 12px); }
body.skin-billdr .sched-drawer .ev-wd { min-width: 32px; height: 30px; border-radius: var(--ds-r-sm, 6px); border: 1px solid var(--ds-line, #e5e7eb); background: var(--ds-card, #fff); font-weight: 700; cursor: pointer; }
body.skin-billdr .sched-drawer .ev-wd.on { background: var(--ds-navy, #1b2b44); color: #fff; border-color: var(--ds-navy, #1b2b44); }
body.skin-billdr .sched-drawer .ev-wd.inherit.on { opacity: .6; }
body.skin-billdr .sched-drawer :is(.ev-sw, .ev-wd, .ev-locked):disabled { cursor: not-allowed; opacity: .45; }
body.skin-billdr .sched-drawer .ev-lagrow { display: flex; align-items: center; gap: 6px; }
body.skin-billdr .sched-drawer .ev-lagrow .ev-lag { width: 72px; }
body.skin-billdr .sched-drawer .ev-fs { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--ds-fill, #f3f4f6); font-size: 11px; font-weight: 800; }
body.skin-billdr .sched-drawer .ev-succ { display: grid; gap: 6px; }
body.skin-billdr .sched-drawer .ev-dw5-wait { font-size: var(--ds-fs-xs, 12px); }
@media (max-width: 640px) { body.skin-billdr .sched-drawer .qm-form-grid { grid-template-columns: 1fr; } }

/* ======================= FIX-2 §2 (2026-10-20) · the harvest, literally ======================= */
/* Left panel: checkbox · # · Name · Start date · End date · Working days. */
body.skin-billdr #app .dw5-gv .gv-c-sel { width: var(--gv-w-sel, 34px); display: inline-flex; align-items: center; justify-content: center; padding: 0 !important; }
body.skin-billdr #app .dw5-gv .gv-c-date { width: var(--gv-w-start, 92px); }
body.skin-billdr #app .dw5-gv .gv-c-wd { width: var(--gv-w-wd, 96px); text-align: center; }
body.skin-billdr #app .dw5-gv .gv-left-g .gv-c-date, body.skin-billdr #app .dw5-gv .gv-left-g .gv-c-wd { color: var(--ds-faint, var(--ds-muted)); }
/* Bars: a rounded pill in the phase colour, the % INSIDE it. */
body.skin-billdr #app .dw5-gv .gv-bar.fx2 { height: 20px; border-radius: 999px; overflow: hidden; justify-content: flex-start; }
body.skin-billdr #app .dw5-gv .gv-bar.fx2.one { border-radius: 50%/999px; min-width: 18px; }
body.skin-billdr #app .dw5-gv .gv-bar.fx2 .gv-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gv-st); opacity: .55; }
body.skin-billdr #app .dw5-gv .gv-in-pct { position: relative; padding: 0 8px; font-size: 10.5px; font-weight: 800; color: var(--gv-ink, var(--ds-ink)); line-height: 20px; }
body.skin-billdr #app .dw5-gv .gv-after .gv-in-pct { padding: 0 4px 0 0; }
/* After the bar: bold name, italic grey "(N working days)", the avatar cluster, the dashed +. */
body.skin-billdr #app .dw5-gv .gv-after { gap: 4px; margin-left: 6px; }
body.skin-billdr #app .dw5-gv .gv-after .gv-lab { padding: 0 4px 0 0; font-weight: 400; }
body.skin-billdr #app .dw5-gv .gv-lab-n { font-weight: 700; color: var(--ds-ink); }
body.skin-billdr #app .dw5-gv .gv-lab-wd { font-style: italic; color: var(--ds-muted); font-weight: 400; }
body.skin-billdr #app .gv-iavs { display: inline-flex; align-items: center; }
body.skin-billdr #app .gv-iav { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--av, #64748b); color: #fff; font-size: 9.5px; font-weight: 800; border: 1.5px solid var(--ds-card, #fff); margin-left: -6px; box-sizing: border-box; }
body.skin-billdr #app .gv-iav:first-child { margin-left: 0; }
body.skin-billdr #app .gv-iav-more { background: var(--ds-fill, #e5e7eb); color: var(--ds-ink); }
body.skin-billdr #app .gv-av-add.gv-dash { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--ds-line-strong, #9aa4b2); background: transparent; color: var(--ds-muted); font-weight: 700; line-height: 1; padding: 0; margin-left: 2px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
/* Phase groups: a long THIN span bar, the name above-left, a stripe on the timeline's left edge. */
body.skin-billdr #app .dw5-gv .gv-gitem { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
body.skin-billdr #app .dw5-gv .gv-glab-top { font-size: 11px; font-weight: 800; line-height: 13px; white-space: nowrap; }
body.skin-billdr #app .dw5-gv .gv-gbar.fx2 { height: 6px; border-radius: 3px; background: var(--gv-bd); opacity: 1; display: block; }
body.skin-billdr #app .dw5-gv .gv-gbar.fx2 .gv-fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(0, 0, 0, .22); }
body.skin-billdr #app .dw5-gv .gv-gstripe { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gv-st); z-index: 1; }
/* Dependencies: grey curves. */
body.skin-billdr #app .dw5-gv .gv-links path { fill: none; stroke: var(--ds-muted, #8a94a3); stroke-width: 1.4; }
body.skin-billdr #app .dw5-gv .gv-links marker path { fill: var(--ds-muted, #8a94a3); stroke: none; }
body.skin-billdr #app .gv-toolbar .gv-collapse { margin-left: 8px; }

/* ---------- FIX-2 §2 (2026-10-20): List cells + Activity editor to the harvest ---------- */
body.skin-billdr #app .ps-people { display: inline-flex; align-items: center; }
body.skin-billdr #app .ps-iav { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--av, #64748b); color: #fff; font-size: 10px; font-weight: 800; border: 1.5px solid var(--ds-card, #fff); margin-left: -6px; box-sizing: border-box; flex: none; }
body.skin-billdr #app .ps-iav:first-child { margin-left: 0; }
body.skin-billdr #app .ps-av-add.ps-dash { width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed var(--ds-line-strong, #cbd5e1); background: transparent; color: var(--ds-muted); font-weight: 700; line-height: 1; margin-left: 4px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
body.skin-billdr #app .ps-ring.ps-chk { border-radius: 50%; border: 1.5px solid var(--ds-k-green, #16a34a); color: var(--ds-k-green, #16a34a); box-sizing: border-box; }
body.skin-billdr #app .ps-gdate { color: var(--ds-muted); }
body.skin-billdr #app .ps-gpct { color: var(--ds-ink); font-weight: 600; }
body.skin-billdr #app .ps-pub.on { color: var(--ds-k-green, #16a34a); }
body.skin-billdr #app .ps-pub-wait { font-size: var(--ds-fs-xs, 12px); color: var(--ds-muted); border: 1px dashed var(--ds-line); border-radius: var(--ds-r-pill, 999px); padding: 3px 10px; }
body.skin-billdr .ps-pubdlg .ps-pub-opt { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; }
body.skin-billdr #app .sched-filters { display: inline-flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
body.skin-billdr #app .ps-calf { font-size: var(--ds-fs-sm, 13px); padding: 4px 8px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-sm, 6px); background: var(--ds-card); color: var(--ds-ink); }
body.skin-billdr .sched-drawer .fx2-ae { display: flex; flex-direction: column; gap: 14px; }
body.skin-billdr .sched-drawer .fx2-ae .ae-sec { display: flex; flex-direction: column; gap: 6px; }
body.skin-billdr .sched-drawer .fx2-ae .ae-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.skin-billdr .sched-drawer .fx2-ae .ae-dates label { display: flex; flex-direction: column; gap: 4px; }
body.skin-billdr .sched-drawer .fx2-ae .ev-lock { flex-direction: row; align-items: center; gap: 8px; }
body.skin-billdr .sched-drawer .fx2-ae .ev-pct { width: 100%; accent-color: var(--ds-k-green, #16a34a); }
body.skin-billdr .sched-drawer .fx2-ae .ae-pct-n { margin-left: 6px; color: var(--ds-ink); }
body.skin-billdr .sched-drawer .ev-sw-custom { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ds-muted); font-weight: 700; background: var(--sw, conic-gradient(#e11d48, #f59e0b, #16a34a, #2563eb, #7c3aed, #e11d48)); }
body.skin-billdr .sched-drawer .ev-sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
body.skin-billdr .sched-drawer .ae-deps { display: flex; flex-direction: column; gap: 6px; }
body.skin-billdr .sched-drawer :is(.ae-dep-h, .ae-dep) { display: grid; grid-template-columns: minmax(0, 1fr) 72px 64px 28px; gap: 6px; align-items: center; }
body.skin-billdr .sched-drawer .ae-dep-h { font-size: var(--ds-fs-xs, 12px); color: var(--ds-muted); }
body.skin-billdr .sched-drawer .ae-dep-name { overflow-wrap: anywhere; }
body.skin-billdr .sched-drawer .ae-dep select, body.skin-billdr .sched-drawer .ae-dep input { min-width: 0; width: 100%; }
body.skin-billdr .sched-drawer .ae-none, body.skin-billdr .sched-drawer .ae-wait { font-size: var(--ds-fs-xs, 12px); margin: 0; }
body.skin-billdr .sched-drawer .ae-add { align-self: flex-start; }
body.skin-billdr .sched-drawer .ev-notes { width: 100%; resize: vertical; min-height: 84px; font: inherit; }
body.skin-billdr .sched-drawer .ae-more summary { cursor: pointer; color: var(--ds-muted); font-size: var(--ds-fs-sm, 13px); }
body.skin-billdr .sched-drawer .ae-more[open] summary { margin-bottom: 8px; }
body.skin-billdr .sched-drawer .ae-foot .composer-actions { margin-left: auto; }

/* ======================= wave90-ganttpct (2026-10-24) · the List's % field in the Gantt ======================= */
/* dw4-schedule.css sizes the completion field only inside the List's
 * table; the Gantt's % column carries the same field — same values. */
body.skin-billdr #app .gv-c-pct .ps-in-pct { width: 46px; text-align: right; padding: 0 2px 0 6px; }
body.skin-billdr #app .gv-c-pct .ps-pct { display: inline-flex; align-items: center; }
/* wave715-pctalign: the plain percent (group rows, no-edit rows) takes the
 * control's footprint — 46px right-aligned number + the steppers' width —
 * so every row's % sign lands in the same column. */
body.skin-billdr #app .gv-c-pct .ps-pctctl-ro { width: 60px; flex: none; }
body.skin-billdr #app .gv-c-pct .ps-pct-n-num { flex: 0 0 46px; width: 46px; box-sizing: border-box; display: flex; align-items: center; justify-content: flex-end; padding: 0 2px 0 6px; font-variant-numeric: tabular-nums; color: var(--ds-ink); }

/* ======================= wave578-ganttstacked (2026-11-10) · the table over the chart ======================= */
/* The owner: the project Gantt's table doesn't have to sit beside the
 * chart — a "Stacked" button in the toolbar (gantt-view.js) puts the
 * table on top at its natural full width and the timeline under it.
 * One row strip per line in each region (.gv-srow), so the two
 * regions carry the same rows in the same order at the same heights;
 * the chart region's rows are transparent shells — the bar inside
 * keeps its own painted height. Each region scrolls sideways on its
 * own; the PAGE scrolls down (the chart box's bounded height gives
 * way to natural flow, below). The chart layer (weekend shade, the
 * today column, the dependency arrows) anchors at left 0 of the
 * chart region — the arrows' own coordinates never knew about the
 * panel, so they don't change. The month labels stick at the
 * region's own left edge (the side-by-side rule sticks them past
 * the panel width; there is no panel here). */
/* the table region's head: the column head alone, at the row height
 * — .gv-head's own height rules are for the scale head. */
body.skin-billdr #app .gv-stacked .gv-head-t { height: 44px; }
body.skin-billdr #app .gv-stacked .gv-head-c .gv-scale { flex: none; }
/* row strips: the row's height, the row's hairline, hover parity */
/* wave624-stackrows (2026-11-11, the owner: "when you do stacked
 * the connectores mess up"): the strips MUST be GV_ROW tall (48px,
 * gantt-view.js) — they shipped at 44px, so every stacked row sat
 * 4px above where the connector math (yOf) puts its centre and the
 * arrows drifted a full row off by the tenth line. Locked to
 * GV_ROW by harness/wave624-stackrows-pins.mjs. */
body.skin-billdr #app .gv-stacked .gv-srow { display: flex; height: 48px; border-bottom: 1px solid var(--ds-hair); position: relative; }
body.skin-billdr #app .gv-stacked .gv-srow .gv-left { position: static; height: 100%; }
body.skin-billdr #app .gv-stacked .gv-srow .gv-track { height: 48px; }
body.skin-billdr #app .gv-stacked .gv-srow:hover .gv-left { background: var(--ds-tint); }
body.skin-billdr #app .gv-stacked .gv-grow .gv-left { background: var(--ds-tint); }
body.skin-billdr #app .gv-stacked .gv-grow .gv-c-num { color: var(--ds-navy); font-weight: 600; }
/* the divider between the regions: a step stronger than a hairline */
body.skin-billdr #app .gv-stacked .gv-scroll-c { border-top: 2px solid var(--ds-line); }
/* month labels anchor at the chart region's own left edge */
body.skin-billdr #app .gv-stacked .gv-month > span { left: 8px; }
/* the project box gives up its bounded height: in stacked mode the
 * page scrolls, each region scrolls sideways inside itself. (The
 * Calendar's box is untouched — the Calendar never stacks.) */
body.skin-billdr #app #psched-body .gv-stacked .gv-scroll { height: auto; min-height: 0; overflow-x: auto; overflow-y: hidden; }
/* the layout button in the toolbar, beside the switches */
body.skin-billdr #app .gv-toolbar .gv-layout[aria-pressed="true"] { color: var(--ds-navy); box-shadow: inset 0 0 0 1px var(--ds-line-strong, #9aa4b2); }

/* ======================= wave592-ganttstackwidth (2026-11-11) · the stacked table takes the full width ======================= */
/* Micheal, on the main Calendar's Gantt in Stacked mode: "when
 * stacked top one need to be full width". The wave578 table region
 * stopped at its natural column width (the stacked inner was
 * width:${leftW}px in gantt-view.js — ±790px on his 1610px screen)
 * with blank white to the right, and names truncated at the fixed
 * 280px name column ("Demo kitchen (cabinets, flooring, drywal…").
 * Now the stacked inner is width:100% with min-width:${leftW}px
 * (narrow hosts keep the natural columns + their sideways scroll),
 * the row/head strips stretch with it, and the NAME cell absorbs
 * every extra pixel — all other columns keep their fixed widths,
 * so the % column lands on the right edge and the header stays
 * aligned with the rows (both are .gv-left under .gv-scroll-t).
 * Specificity: the base rule body.skin-billdr #app .dw5-gv
 * .gv-left is (1,3,1); the .gv-left rule below is (1,4,1) and
 * wins. The base cell rule .dw5-gv .gv-left > span is (1,3,2)
 * (flex: none) and its .gv-c-name width rule is (1,3,1); the
 * .gv-c-name rule below, at (1,4,2), beats both outright.
 * Side-by-side is untouched: nothing here applies without
 * .gv-stacked, and the chart region keeps its tlW geometry. */
body.skin-billdr #app .gv-stacked .gv-scroll-t .gv-left { width: 100%; min-width: 0; }
body.skin-billdr #app .gv-stacked .gv-left > span.gv-c-name { flex: 1 1 auto; width: auto; }

/* ================= wave597-ganttstar (2026-11-11) =================
 * The cascade preview's staged language, carried into the Gantt's
 * left table. The List (schedule-plan.js) wears ps-staged /
 * ps-staged-moved — classes scoped to .ps-row, so they can never
 * reach this table; the chart bars have worn the gv-staged twins
 * since wave373 (their outline rules live in schedule-cascade.js's
 * injected sheet, keyed on .gv-bar, so they don't reach the table
 * either). These are the table-side twins, painted on the row's
 * .gv-left (shared markup for the side-by-side rows AND the Stacked
 * table region — stacked keeps its own width/flex rules above, this
 * block only colours):
 *   follower (gv-staged)       — the violet wash + a ★ before the name
 *   the moved row (+ -moved)   — the deeper wash + a bold name
 * The was/new date pair is the List's ps-date-was / ps-date-new
 * treatment at table size: old struck through, arrow, new bold.
 * The ★ mirrors the List's ps-staged star (in schedule-cascade.js's
 * sheet): "★ " in the house violet before the staged row's name.
 * wave597 addendum (B) (the owner, 2026-11-11): staged highlights
 * are the house VIOLET, not tan — the same rgba(74,47,184,·) family
 * the cascade's injected sheet now paints (#4a2fb8, the AI crew's
 * violet; #2A095E is the design system's brand violet). */
body.skin-billdr #app .dw5-gv .gv-left.gv-staged { background: rgba(74, 47, 184, .14); }
body.skin-billdr #app .dw5-gv .gv-left.gv-staged-moved { background: rgba(74, 47, 184, .28); }
body.skin-billdr #app .dw5-gv .gv-left.gv-staged .gv-c-name .gv-name::before { content: "★ "; color: var(--violet, #4a2fb8); font-size: 12px; }
body.skin-billdr #app .dw5-gv .gv-left.gv-staged-moved .gv-c-name .gv-name { font-weight: 700; }
body.skin-billdr #app .dw5-gv .gv-date-was { text-decoration: line-through; opacity: .55; margin-right: 2px; }
body.skin-billdr #app .dw5-gv .gv-date-arrow { opacity: .7; margin: 0 3px; }
body.skin-billdr #app .dw5-gv .gv-date-new { font-weight: 600; }
