/* The Rookery — deal-surface.css (wave341-dealsurf, 2026-11-02).
 * Walk fixes #2 · #4 · #5: the Labels picker, the pick panel, the
 * quick-add menu, the deeper person form, Import, and the wide
 * Forecast. Reads the design-system tokens with plain fallbacks. */

/* ---- #2: the Labels picker (Add deal + the deal record) ---- */
.dsx-lp { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: 4px 6px; border: 1px solid var(--line, #d6d3cc); border-radius: 8px; background: var(--surface, #fff); }
.dsx-lp-chips { display: contents; }
.dsx-lp-chip { display: inline-flex; align-items: center; gap: 4px; }
.dsx-lp-x { border: 0; background: none; padding: 0 2px; cursor: pointer; font-size: 11px; color: inherit; opacity: .7; }
.dsx-lp-x:hover { opacity: 1; }
.dsx-lp-add { border: 0; background: none; color: var(--accent, #8a6d1f); font: inherit; font-size: 13px; cursor: pointer; padding: 2px 4px; }
.dsx-lp-pop { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; width: min(320px, 100%); padding: 8px; border: 1px solid var(--line, #d6d3cc); border-radius: 10px; background: var(--surface, #fff); box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
.dsx-lp-q { width: 100%; margin-bottom: 6px; }
.dsx-lp-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; }
.dsx-lp-opt { text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 6px; font: inherit; cursor: pointer; color: inherit; }
.dsx-lp-opt:hover, .dsx-lp-opt:focus-visible { background: var(--hover, rgba(0, 0, 0, .05)); }
.dsx-lp-new { color: var(--accent, #8a6d1f); }
.dsx-lp-none { margin: 4px; font-size: 13px; }

/* ---- #2: a multiple-options pick panel (the record's checkbox panel, as a dropdown) ---- */
details.dsx-multi { border: 1px solid var(--line, #d6d3cc); border-radius: 8px; background: var(--surface, #fff); }
.dsx-multi-sum { list-style: none; cursor: pointer; padding: 8px 30px 8px 10px; position: relative; min-height: 20px; }
.dsx-multi-sum::-webkit-details-marker { display: none; }
.dsx-multi-sum::after { content: '▾'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); opacity: .6; }
details.dsx-multi[open] .dsx-multi-sum { border-bottom: 1px solid var(--line, #d6d3cc); }
details.dsx-multi .dash-multi-panel { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 8px; }
.dsx-newlink { border: 0; background: none; padding: 4px 0 0; color: var(--accent, #8a6d1f); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.dsx-newlink:hover { text-decoration: underline; }

/* ---- #4: quick-add ---- */
.dsx-quick-btn { flex: 0 0 auto; width: 34px; height: 34px; margin: 6px 10px; align-self: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: var(--accent, #c9a646); color: #1d1a14; font-size: 22px; line-height: 1; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dsx-quick-btn:hover, .dsx-quick-btn[aria-expanded="true"] { filter: brightness(1.08); box-shadow: 0 0 0 3px rgba(201, 166, 70, .35); }
.dsx-quick-menu { position: fixed; z-index: 1200; min-width: 220px; padding: 6px; border-radius: 12px; border: 1px solid var(--line, #d6d3cc); background: var(--surface, #fff); box-shadow: 0 14px 36px rgba(0, 0, 0, .2); display: flex; flex-direction: column; }
.dsx-quick-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink, #1d1a14); cursor: pointer; text-align: left; }
.dsx-quick-item:hover, .dsx-quick-item:focus-visible { background: var(--hover, rgba(0, 0, 0, .05)); outline: none; }

/* ---- #4: the deeper person form ---- */
/* The dialog itself must widen for this form: .fx-dialog defaults to
 * max-width 480px (files.css) while the slot below lays the form out at
 * up to 760px — without this rule the fields spill past the panel onto
 * the backdrop (Micheal's screenshots, 2026-11-03). 808 = 760 + the
 * dialog's 24px side padding. The slot then tracks the dialog width. */
.fx-dialog.dsx-persondlg { max-width: 808px; }
.dsx-person-dlg { width: 100%; max-height: calc(100vh - 64px); overflow-y: auto; }
.dsx-headrow { display: flex; align-items: center; gap: 12px; }
.dsx-headrow .dsx-import-btn { margin-left: auto; }
.dsx-depth { margin-top: 4px; }
.dsx-grid { margin-top: 10px; }
.dsx-fld select, .dsx-fld input[type="text"] { width: 100%; }
.dsx-multi-rows { display: flex; flex-direction: column; gap: 6px; }
.dsx-mrow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 34px; gap: 6px; align-items: center; }
.dsx-mrow .dsx-mval { min-width: 0; }

/* ---- #4: Import ---- */
/* Same widening as the person dialog: 868 = 820 + 24px side padding. */
.fx-dialog.dsx-impdlg { max-width: 868px; }
.dsx-imp { width: 100%; }
.dsx-imp-pick { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 2px dashed var(--line, #d6d3cc); border-radius: 12px; font-weight: 600; }
.dsx-imp-tablewrap { max-height: 46vh; overflow: auto; border: 1px solid var(--line, #d6d3cc); border-radius: 10px; }
.dsx-imp-map { width: 100%; border-collapse: collapse; font-size: 13px; }
.dsx-imp-map th, .dsx-imp-map td { padding: 8px 10px; border-bottom: 1px solid var(--line, #e6e3dc); text-align: left; vertical-align: middle; }
.dsx-imp-map thead th { position: sticky; top: 0; background: var(--surface-2, #f6f4ef); z-index: 1; }
.dsx-imp-map select { width: 100%; min-width: 180px; }
.dsx-imp-done p { font-size: 15px; }
.dsx-imp-notes { font-size: 13px; max-height: 30vh; overflow-y: auto; }

/* ---- #5: the Forecast — as wide as the board, the date axis scrolls ----
 * The board element itself is the horizontal scroller; month columns
 * never squash to fit. Only .dash-fc-wide is touched — no other
 * Dashboard view changes shape. (wave561: the pinned label column
 * is gone — see the .dash-fc-bar note below.) */
#view-dashboard .dash-board.dash-fc-wide { position: relative; display: flex; flex-wrap: nowrap; align-items: stretch; gap: 12px; width: 100%; max-width: none; margin-left: 0; margin-right: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-left: 12px; overscroll-behavior-x: contain; grid-template-columns: none; }
/* wave561 (Micheal, 2026-11-10): the Forecast shows SIX months
 * across, the same count and size as the Board's six stage lanes —
 * each lane takes a sixth of the board's width (five 12px gaps),
 * never squeezed below readable, and the axis scrolls past six. */
#view-dashboard .dash-board.dash-fc-wide > .dash-lane-fc { flex: 0 0 calc((100% - 60px) / 6); width: calc((100% - 60px) / 6); min-width: 190px; max-width: none; scroll-snap-align: start; }
/* The skin-prefixed twin keeps dw6.css's fit rule (flex:1 1 0,
 * 120px floor) from outranking the lane rule under the billdr
 * skin — it wins on specificity, not load order. */
body.skin-billdr #app #view-dashboard .dash-board.dash-fc-wide > .dash-lane-fc { flex: 0 0 calc((100% - 60px) / 6); width: calc((100% - 60px) / 6); min-width: 190px; max-width: none; }
/* wave561: no pinned label column — Micheal called it "the blank
 * bar" (a tall empty strip with the buttons stranded at its
 * bottom). The label and the jump buttons are a slim bar on top. */
.dash-fc-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.dash-fc-rk { margin: 0; font-weight: 700; font-size: 13px; }
.dash-fc-rs { margin: 0; font-size: 12px; color: var(--muted, #6b665c); }
.dash-fc-nav { display: flex; gap: 4px; margin-left: auto; }
.dash-fc-nav .btn { padding-left: 8px; padding-right: 8px; }
.dash-lane-fc.is-current .dash-lane-h { box-shadow: inset 0 3px 0 var(--accent, #c9a646); }
.dash-fc-now { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--accent, #c9a646); color: #1d1a14; vertical-align: middle; }
.dash-lane-fc.is-past { opacity: .82; }
@media (max-width: 599px) {
  #view-dashboard .dash-board.dash-fc-wide > .dash-lane-fc { flex-basis: 78vw; width: 78vw; min-width: 78vw; max-width: 78vw; }
  #view-dashboard .dash-board.dash-fc-wide { scroll-padding-left: 12px; }
  .dash-fc-bar { flex-wrap: wrap; }
  .dash-fc-nav { margin-left: 0; }
}
