/* dw3-projects.css — DW3 builder B8: the Projects board's pointer
 * drag (C-5), the six-lane board (DW3-ADD-1), the finished-stage
 * pill, the project POs tab depth (C-8). Loaded last (DW3 B8
 * marker), written body.skin-billdr … like the light skin so it
 * wins the same specificity fights. */

/* ---------- the board: pointer drag (board-drag.js) ---------- */
body.skin-billdr #app .kb-card {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-x pan-y;
  transition: box-shadow .12s ease, transform .12s ease, border-color .12s ease;
}
body.skin-billdr #app .kb-card:focus-visible {
  outline: none;
  border-color: var(--ds-navy, #16283f);
  box-shadow: 0 0 0 3px rgba(11, 34, 53, .16);
}
body.skin-billdr #app .kb-card.kb-pressing { transform: scale(.985); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
/* the card's own slot collapses while its copy is in the air — the
 * placeholder stands in for it */
body.skin-billdr #app .kb-card.kb-lifted { display: none; }
.kb-ghost {
  position: fixed !important;
  left: 0; top: 0;
  z-index: 2000;
  margin: 0 !important;
  pointer-events: none;
  cursor: grabbing;
  background: var(--ds-card, #fff);
  border: 1px solid var(--ds-line, #e3e7ee);
  border-radius: 10px;
  padding: 11px 12px;
  box-shadow: 0 18px 38px -12px rgba(16, 24, 40, .38), 0 2px 6px rgba(16, 24, 40, .12);
  opacity: .97;
  will-change: transform;
}
.kb-ghost .kb-card-menu { display: none; }
.kb-ghost .kb-name { font-weight: 700; margin: 0 0 2px; }
.kb-ghost .kb-sub { margin: 0 0 6px; font-size: 12.5px; color: var(--ds-muted, #66738a); }
.kb-ghost .kb-foot { display: flex; align-items: center; gap: 8px; margin: 0; }
.kb-ghost .kb-val { margin-left: auto; font-size: 12.5px; font-weight: 700; }
body.kb-drag-on, body.kb-drag-on * { cursor: grabbing !important; user-select: none !important; }
.kb-placeholder {
  box-sizing: border-box;
  border: 2px dashed #b6c1d1;
  border-radius: 10px;
  background: rgba(255, 255, 255, .55);
  margin: 0 0 8px;
}
body.skin-billdr #app .kb-col.dragover { background: #e1e7ef; border-color: #b6c1d1; }
body.skin-billdr #app .kb-col.dragover .kb-none { display: none; }

/* Six lanes share the width; the Lost · Archive · Delete strip has
 * three targets now (the Completed target is gone). */
body.skin-billdr #app .kb-zones { gap: 12px; }
body.skin-billdr #app .kb-zone { padding: 18px 10px; }

/* Touch screens: a hint that a card lifts on press-and-hold. */
.kb-touch-hint { display: none; }
@media (hover: none) and (pointer: coarse) {
  .kb-touch-hint {
    display: block; margin: 0 0 6px; padding: 0 24px;
    font-size: 12px; color: var(--ds-muted, #66738a);
  }
}

/* ---------- the finished (retired Completed) stage pill ---------- */
body.skin-billdr #app .pill.stage-pill[data-stage="completed"] {
  background: var(--ds-neutral-bg, #edf0f4); color: var(--ds-neutral-ink, #55677c);
}
body.skin-billdr #app .pill.stage-pill[data-stage="completed"]::before { display: none; }

/* ---------- the project POs tab (C-8) ---------- */
body.skin-billdr #app .po-proj-subtabs { margin: 4px 0 14px; }
body.skin-billdr #app .po-proj-subtabs .po-subtab .po-subtab-n {
  display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px;
  border-radius: 9px; background: var(--ds-neutral-bg, #edf0f4);
  font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; color: var(--ds-muted, #55677c);
}
body.skin-billdr #app .po-proj-subtabs .po-subtab.active .po-subtab-n { background: var(--ds-ink, #16283f); color: #fff; }
body.skin-billdr #app .po-filterbar.po-filterbar-proj { margin-bottom: 12px; }
body.skin-billdr #app .po-proj-clear { align-self: flex-end; }
body.skin-billdr #app .po-proj-billnote { margin: 10px 0 0; font-size: 12.5px; }

/* ---------- Summary: Activities filters (DW3-17 audit) ----------
 * The Type select carries .act-kind, a class parity3.css also uses
 * for the river's uppercase kind badge — so the select read
 * "ALL TYPES" in 11px caps. Undo that on the select only, and give
 * the three selects the search box's own padding. */
body.skin-billdr #app .act-filters select.act-kind {
  font-size: var(--ds-fs-sm, 13.5px); font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--ds-ink, #16283f); padding-top: 0; white-space: normal;
}
body.skin-billdr #app .act-filters label > select { padding-left: 12px; }

/* ---------- Summary: team editor type field (C-6) ---------- */
.team-type input[type="text"] { display: block; width: 100%; max-width: 320px; margin-top: 4px; box-sizing: border-box; }
.team-type-hint { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 400; }

/* ---------- PO register table at narrower widths (DW3-17 audit) ----------
 * Before: at ~1024 the PO table pushed the whole page sideways (the
 * wrap never scrolled), on the project tab and the global page alike.
 * The table now scrolls inside its own card (the visually-hidden
 * "Actions" header was absolutely placed against the page, escaping
 * the scroll box — the wrap is now its containing block). */
body.skin-billdr #app .po-table-wrap { position: relative; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.skin-billdr #app #project-tab-content { min-width: 0; }
