/* buildout.css — Stage 2 Build-Out module
   Used by both Franchisee Portal and Sales Pipeline CRM.
   Matches True REST sober editorial aesthetic with magenta accents. */

/* ──────────── Shell ──────────── */
.bo-shell{
  padding: 32px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ──────────── Header ──────────── */
.bo-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.bo-header-eyebrow{
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--brand-magenta); font-weight: 600;
  margin-bottom: 6px; text-transform: uppercase;
}
.bo-header-title{
  font-size: 26px; font-weight: 600;
  color: var(--text-strong); margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.bo-header-meta{
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: var(--text-muted);
  margin-top: 4px;
}
.bo-header-meta strong{ color: var(--text-strong); font-weight: 600; }
.bo-sep{ color: var(--border); }

.bo-header-corp{ background: linear-gradient(180deg, rgba(229,3,102,0.025) 0%, transparent 100%); padding: 20px 16px; border-radius: 6px; }

/* ──────────── Days-to-open countdown ──────────── */
.bo-countdown{
  text-align: center;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  min-width: 120px;
}
.bo-countdown-num{
  font-size: 36px; font-weight: 700;
  color: var(--brand-magenta);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bo-countdown-label{
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}
.bo-countdown-target{
  font-size: 11px; color: var(--text-muted);
  margin-top: 4px;
}

/* ──────────── Progress band ──────────── */
.bo-progress-band{
  margin-bottom: 24px;
  padding: 12px 0;
}
.bo-progress-bar{
  height: 6px; background: var(--surface-tint);
  border-radius: 999px; overflow: hidden;
  margin-bottom: 8px;
}
.bo-progress-fill{
  height: 100%;
  background: linear-gradient(90deg, var(--brand-magenta), #ff4585);
  transition: width 400ms ease;
}
.bo-progress-meta{
  font-size: 12px; color: var(--text-muted);
}
.bo-progress-meta strong{ color: var(--text-strong); }

/* ──────────── Stall banner ──────────── */
.bo-stall-banner{
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(185,28,28,0.05);
  border: 1px solid rgba(185,28,28,0.20);
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #7f1d1d;
}
.bo-stall-banner strong{ color: #b91c1c; }

/* ──────────── Blocked banner (milestone detail) ──────────── */
.bo-blocked-banner{
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px;
  background: rgba(185,28,28,0.06);
  border: 1px solid rgba(185,28,28,0.22);
  border-radius: 6px;
  margin: 4px 0 14px;
  color: #7f1d1d;
}
.bo-blocked-title{ font-weight: 700; font-size: 12px; color: #b91c1c; }
.bo-blocked-msg{ font-size: 13px; margin-top: 2px; }

/* ──────────── Block / unblock control ──────────── */
.bo-block-control{ border-top: 1px dashed var(--border, #e5e7eb); padding-top: 12px; }
.bo-block-form{ display: flex; gap: 8px; align-items: center; }
.bo-block-form .form-input{ flex: 1; }

/* ──────────── Deliverable owner badge ──────────── */
.bo-who{
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px; white-space: nowrap;
}
.bo-who-franchisor{ background: rgba(124,58,237,0.10); color: #6d28d9; }
.bo-who-either{ background: rgba(5,150,105,0.10); color: #047857; }

/* ──────────── Editable deliverable rows ──────────── */
.bo-deliv-row{ display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.bo-deliv-label{ flex: 1; min-width: 0; }
.bo-deliv-actions{ display: inline-flex; gap: 2px; flex: none; }
.bo-deliv-btn{
  border: 1px solid var(--border, #e5e7eb); background: #fff; color: var(--text-muted, #6b7280);
  border-radius: 5px; font-size: 11px; line-height: 1; padding: 3px 6px; cursor: pointer;
}
.bo-deliv-btn:hover{ background: #f3f4f6; color: #111; }

/* ──────────── Equipment drawer layout (responsive) ──────────── */
/* Orders & payments spans full width; the gate + milestones reflow below. */
.eq-layout{ display: flex; flex-direction: column; gap: 16px; }
.eq-cols{ display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }

/* ──────────── Equipment orders table ──────────── */
.eq-orders-wrap{ overflow-x: auto; }                 /* horizontal scroll on small screens */
.eq-orders{ width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; min-width: 680px; }
.eq-orders th, .eq-orders td{ padding: 9px 10px; border-bottom: 1px solid var(--border, #e5e7eb); text-align: left; vertical-align: middle; }
.eq-orders th{ font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted, #6b7280); }
.eq-orders .c-ctr{ text-align: center; }
.eq-orders col.c-order{ width: 22%; }
.eq-orders col.c-dep,
.eq-orders col.c-paid{ width: 62px; }
.eq-orders col.c-deliv{ width: 168px; }
.eq-orders col.c-notes{ width: auto; }               /* takes the remaining space */
.eq-orders col.c-rm{ width: 44px; }
.eq-orders .c-order-cell{ font-weight: 600; }
.eq-cell-input{ width: 100%; }
.eq-notes{ width: 100%; resize: vertical; min-height: 38px; line-height: 1.35; }
.eq-rm{ padding: 2px 8px; }

.eq-add-row{ display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.eq-add-input{ flex: 1 1 240px; max-width: 380px; }

/* ──────────── Two-pane grid ──────────── */
.bo-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}
.bo-grid-left{ position: sticky; top: 16px; }
.bo-grid-right{ display: flex; flex-direction: column; gap: 16px; }

/* ──────────── Roadmap ──────────── */
.bo-roadmap{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 0;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.bo-roadmap-phase{ padding: 6px 0; }
.bo-roadmap-phase-name{
  font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--text-muted); font-weight: 700;
  text-transform: uppercase;
  padding: 8px 18px 6px;
  border-top: 1px solid var(--border);
  background: var(--surface-tint);
}
.bo-roadmap-phase:first-child .bo-roadmap-phase-name{ border-top: none; }

.bo-mile{
  width: 100%;
  display: flex; gap: 14px;
  padding: 10px 18px 6px;
  background: transparent; border: none;
  text-align: left; cursor: pointer;
  font: inherit; color: inherit;
  transition: background 120ms ease;
  position: relative;
}
.bo-mile:hover{ background: var(--surface-tint); }
.bo-mile-sel{ background: rgba(229,3,102,0.04) !important; }
.bo-mile-sel::before{
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-magenta);
}

.bo-mile-rail{
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
}
.bo-mile-dot{
  width: 22px; height: 22px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  z-index: 1;
}
.bo-mile-line{
  flex: 1;
  width: 1.5px;
  background: var(--border);
  margin-top: 2px;
  min-height: 14px;
}
.bo-mile:last-child .bo-mile-line{ display: none; }

/* state coloring of the dot */
.bo-mile-complete .bo-mile-dot{
  background: var(--brand-magenta);
  border-color: var(--brand-magenta);
  color: #fff;
}
.bo-mile-complete .bo-mile-line{ background: var(--brand-magenta); opacity: 0.5; }
.bo-mile-in_progress .bo-mile-dot{
  border-color: var(--brand-magenta);
  background: rgba(229,3,102,0.10);
  color: var(--brand-magenta);
}
.bo-mile-in_progress .bo-mile-spin{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--brand-magenta);
  animation: boSpin 1.4s ease-in-out infinite;
}
@keyframes boSpin{ 0%,100%{opacity:0.4; transform:scale(0.8)} 50%{opacity:1; transform:scale(1.05)} }
.bo-mile-pending_approval .bo-mile-dot{
  border-color: #d97706;
  background: rgba(217,119,6,0.10);
  color: #d97706;
}
.bo-mile-blocked .bo-mile-dot{
  border-color: #b91c1c;
  background: rgba(185,28,28,0.10);
  color: #b91c1c;
}
.bo-mile-locked .bo-mile-dot{
  background: var(--surface-tint);
  border-style: dashed;
  color: #94a3b8;
}

.bo-mile-body{ flex: 1; padding-bottom: 8px; min-width: 0; }
.bo-mile-title{
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.bo-mile-n{
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.bo-mile-label{
  font-size: 13px; font-weight: 500;
  color: var(--text-strong);
  flex: 1;
  text-wrap: pretty;
}
.bo-mile-locked .bo-mile-label{ color: var(--text-muted); }
.bo-mile-approval-tag{
  font-size: 10px; color: var(--brand-magenta);
  font-weight: 700;
}

.bo-mile-meta{
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  font-size: 11px; color: var(--text-muted);
}
.bo-mile-date{ font-variant-numeric: tabular-nums; }

/* ──────────── Status pill ──────────── */
.bo-pill{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}
.bo-pill-muted{ background: var(--surface-tint); color: var(--text-muted); }
.bo-pill-progress{ background: rgba(229,3,102,0.08); color: var(--brand-magenta); border-color: rgba(229,3,102,0.20); }
.bo-pill-pending{ background: rgba(217,119,6,0.10); color: #b45309; border-color: rgba(217,119,6,0.25); }
.bo-pill-complete{ background: rgba(16,185,129,0.10); color: #047857; border-color: rgba(16,185,129,0.25); }
.bo-pill-blocked{ background: rgba(185,28,28,0.08); color: #b91c1c; border-color: rgba(185,28,28,0.25); }

/* ──────────── Detail card ──────────── */
.bo-detail{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 24px;
}
.bo-detail-head{ margin-bottom: 14px; }
.bo-detail-eyebrow{
  font-size: 10px; letter-spacing: 0.10em;
  color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; margin-bottom: 6px;
}
.bo-detail-title{
  font-size: 19px; font-weight: 600;
  color: var(--text-strong); margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.bo-detail-status-row{
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.bo-detail-typical{ font-size: 11px; color: var(--text-muted); }
.bo-detail-desc{
  font-size: 13px; color: var(--text-strong);
  line-height: 1.55; margin: 0 0 16px;
  text-wrap: pretty;
}
.bo-detail-notes{
  background: rgba(229,3,102,0.03);
  border-left: 2px solid var(--brand-magenta);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-strong);
  border-radius: 0 4px 4px 0;
}
.bo-detail-notes-label{
  font-size: 9.5px; letter-spacing: 0.10em;
  color: var(--brand-magenta);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.bo-detail-section{ margin-bottom: 16px; }
.bo-detail-section-label{
  font-size: 10px; letter-spacing: 0.10em;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.bo-detail-deliverables{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.bo-detail-deliverables li{
  font-size: 13px; color: var(--text-strong);
  display: flex; align-items: center; gap: 8px;
}
.bo-detail-deliverables li::before{
  content: '·';
  font-size: 18px; line-height: 0;
  color: var(--text-muted);
}
.bo-detail-vendors{
  display: flex; flex-direction: column; gap: 8px;
}
.bo-detail-vendor{
  background: var(--surface-tint);
  border-radius: 4px;
  padding: 10px 12px;
}
.bo-detail-vendor-name{
  font-size: 13px; font-weight: 600;
  color: var(--text-strong);
}
.bo-vendor-pref{
  display: inline-block;
  margin-left: 6px;
  background: rgba(229,3,102,0.10);
  color: var(--brand-magenta);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
}
.bo-detail-vendor-meta{
  font-size: 11px; color: var(--text-muted);
  margin-top: 2px;
}
.bo-detail-vendor-contact{
  font-size: 11px; color: var(--text-muted);
  margin-top: 2px;
  font-family: ui-monospace, monospace;
}
.bo-detail-actions{
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
.bo-detail-await{
  font-size: 12px; color: var(--text-muted);
  font-style: italic;
}

/* ──────────── Card (DM, docs, activity) ──────────── */
.bo-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.bo-card-head{
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-tint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  text-transform: uppercase;
}
.bo-card-body{ padding: 14px 16px; }
.bo-empty{
  padding: 14px;
  font-size: 12px; color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* ──────────── DM ──────────── */
.bo-dm{
  display: flex; flex-direction: column; gap: 10px;
  max-height: 320px; overflow-y: auto;
}
.bo-dm-row{
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.bo-dm-corp{
  background: var(--surface-tint);
  align-self: flex-start;
  max-width: 88%;
}
.bo-dm-them{
  background: rgba(229,3,102,0.05);
  align-self: flex-end;
  max-width: 88%;
  border: 1px solid rgba(229,3,102,0.15);
}
.bo-dm-who{
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.bo-dm-text{ color: var(--text-strong); }
.bo-dm-compose{
  display: flex; gap: 8px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.bo-dm-compose .form-input{ flex: 1; font-size: 13px; }

/* ──────────── Docs ──────────── */
.bo-doc-list{
  display: flex; flex-direction: column;
}
.bo-doc-row{
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.bo-doc-row:last-child{ border-bottom: none; }
.bo-doc-icon{
  width: 28px; height: 32px;
  background: var(--surface-tint);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.bo-doc-info{ flex: 1; min-width: 0; }
.bo-doc-name{
  font-size: 13px; font-weight: 500;
  color: var(--text-strong);
  display: flex; align-items: center; gap: 6px;
}
.bo-doc-current{
  background: rgba(16,185,129,0.10);
  color: #047857;
  font-size: 9px; font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.bo-doc-meta{
  font-size: 11px; color: var(--text-muted);
  margin-top: 2px;
}

/* ──────────── Activity ──────────── */
.bo-activity{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  max-height: 380px; overflow-y: auto;
}
.bo-act{
  display: flex; gap: 10px;
  font-size: 12px;
}
.bo-act-dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--text-muted);
  margin-top: 5px;
  flex-shrink: 0;
}
.bo-act-milestone .bo-act-dot{ background: var(--brand-magenta); }
.bo-act-submitted .bo-act-dot{ background: #d97706; }
.bo-act-returned .bo-act-dot{ background: #b91c1c; }
.bo-act-text{ color: var(--text-strong); line-height: 1.4; }
.bo-act-text strong{ font-weight: 600; }
.bo-act-ts{
  font-size: 10px; color: var(--text-muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* ──────────── KPI band (franchisor cohort) ──────────── */
.bo-kpi-band{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.bo-kpi{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
}
.bo-kpi-num{
  font-size: 30px; font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.bo-kpi-label{
  font-size: 11px; color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.bo-kpi-pending{
  border-color: rgba(217,119,6,0.30);
  background: rgba(217,119,6,0.04);
}
.bo-kpi-pending .bo-kpi-num{ color: #b45309; }
.bo-kpi-blocked{
  border-color: rgba(185,28,28,0.25);
  background: rgba(185,28,28,0.03);
}
.bo-kpi-blocked .bo-kpi-num{ color: #b91c1c; }

/* ──────────── Cohort table ──────────── */
.bo-cohort{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.bo-cohort-head{
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.bo-cohort-head h3{
  margin: 0;
  font-size: 14px; font-weight: 600;
  color: var(--text-strong);
}
.bo-cohort-legend{
  display: flex; gap: 14px;
  font-size: 11px; color: var(--text-muted);
}
.bo-leg{
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  margin-right: 4px;
  vertical-align: middle;
}
.bo-leg-progress{ background: var(--brand-magenta); }
.bo-leg-pending{ background: #d97706; }
.bo-leg-blocked{ background: #b91c1c; }

.bo-cohort-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bo-cohort-table th{
  text-align: left;
  padding: 10px 16px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--surface-tint);
}
.bo-cohort-row{
  cursor: pointer;
  transition: background 120ms ease;
}
.bo-cohort-row:hover{ background: var(--surface-tint); }
.bo-cohort-row td{
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.bo-cohort-row:last-child td{ border-bottom: none; }
.bo-cohort-name{
  font-weight: 600;
  color: var(--text-strong);
}
.bo-cohort-sub{
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.bo-cohort-mile{
  font-size: 12px;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.bo-cohort-mile-status{}

.bo-cohort-prog-cell{ min-width: 140px; }
.bo-cohort-progbar{
  height: 5px;
  background: var(--surface-tint);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}
.bo-cohort-progfill{
  height: 100%;
  background: var(--brand-magenta);
}
.bo-cohort-progfill.is-blocked{ background: #b91c1c; }
.bo-cohort-prog-meta{
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.bo-cohort-days{
  font-weight: 600;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.bo-cohort-days-soon{ color: var(--brand-magenta); }
.bo-cohort-target{
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.bo-flag{
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.bo-flag-blocked{ background: rgba(185,28,28,0.08); color: #b91c1c; }
.bo-flag-pending{ background: rgba(217,119,6,0.10); color: #b45309; }
.bo-flag-ok{ background: rgba(16,185,129,0.08); color: #047857; }

/* ──────────── Sidebar Stage 2 highlight ──────────── */
.portal-sb-stage2{
  position: relative;
  background: rgba(229,3,102,0.06) !important;
  border-left: 3px solid var(--brand-magenta) !important;
  padding-left: 13px !important;
  font-weight: 600 !important;
  color: var(--text-strong) !important;
}
.portal-sb-stage2:hover{
  background: rgba(229,3,102,0.10) !important;
}
.portal-sb-stage2.active{
  background: rgba(229,3,102,0.12) !important;
}
.portal-sb-stage2-tag{
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--brand-magenta);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ──────────── Responsive ──────────── */
@media (max-width: 980px){
  .bo-grid{ grid-template-columns: 1fr; }
  .bo-grid-left{ position: static; }
  .bo-kpi-band{ grid-template-columns: repeat(2, 1fr); }
  .bo-shell{ padding: 20px; }
}

/* ── Transfers page ── */
.tx-phasebar{ display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.tx-timing{ font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; padding:2px 6px; border-radius:999px; background:rgba(107,114,128,0.12); color:#6b7280; white-space:nowrap; }
.tx-note{ display:block; font-size:11px; color:#6b7280; margin-top:2px; }

/* Transfers — left-rail phase tabs */
.tx-phasetabs{ display:flex; gap:6px; margin-bottom:10px; }
.tx-phasetab{ flex:1; padding:7px 8px; border:1px solid var(--border,#e5e7eb); background:#fff; border-radius:6px; font-size:12px; font-weight:600; color:var(--text-muted,#6b7280); cursor:pointer; }
.tx-phasetab:hover{ background:#f3f4f6; }
.tx-phasetab.on{ background:var(--brand-magenta,#e50366); color:#fff; border-color:var(--brand-magenta,#e50366); }

/* ── Document locker ── */
.doc-locker-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; font-weight:700; font-size:13px; }
.doc-upload-btn{ cursor:pointer; }
.doc-upload-btn.is-busy{ opacity:0.6; pointer-events:none; }
.doc-locker-err{ font-size:12px; color:#b91c1c; background:rgba(185,28,28,0.06); border:1px solid rgba(185,28,28,0.2); border-radius:6px; padding:6px 10px; margin-bottom:8px; }
.doc-list{ list-style:none; padding:0; margin:0; }
.doc-row{ display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border,#e5e7eb); }
.doc-info{ flex:1; min-width:0; }
.doc-name{ font-size:13px; font-weight:600; color:var(--brand-magenta,#e50366); text-decoration:none; word-break:break-word; }
.doc-name:hover{ text-decoration:underline; }
.doc-meta{ font-size:11px; color:var(--text-muted,#6b7280); margin-top:2px; }
.doc-actions{ display:flex; gap:6px; flex:none; }

/* ── Document locker: chips + tags ── */
.doc-chips{ display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 10px; }
.doc-chip{ border:1px solid var(--border,#e5e7eb); background:#fff; color:var(--text-muted,#6b7280); border-radius:999px; font-size:11px; font-weight:600; padding:3px 10px; cursor:pointer; }
.doc-chip:hover{ background:#f3f4f6; }
.doc-chip.on{ background:var(--brand-magenta,#e50366); color:#fff; border-color:var(--brand-magenta,#e50366); }
.doc-tag-select{ font-size:11px; padding:3px 6px; max-width:120px; }
.doc-tagpill{ display:inline-block; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:0.03em; background:rgba(124,58,237,0.10); color:#6d28d9; border-radius:999px; padding:1px 6px; margin-right:6px; }

/* ── Inline document attach panel (on doc-bearing deliverables) ── */
.doc-attach-panel{ margin-top:10px; padding:10px 12px; border:1px dashed var(--border,#e5e7eb); border-radius:6px; background:var(--surface-tint,#fafafa); }
