/* Lingsaa Hub — sales screens (quotes, quote form, pipeline board, tasks, customer card, dashboard tasks, Settings → Sales). Owned by the sales agent. */

/* Quote status pills */
.pill.qt-draft { background: var(--surface-3); color: var(--text-2); }
.pill.qt-sent { background: var(--warning-tint); color: var(--warning-ink); }
.pill.qt-accepted { background: var(--good-tint); color: var(--good-ink); }
.pill.qt-declined { background: var(--critical-tint); color: var(--critical-ink); }
.pill.qt-expired, .pill.qt-withdrawn { background: var(--surface-3); color: var(--muted); }

/* Lead stage pills */
.pill.lead-new { background: var(--accent-tint); color: var(--accent-ink); }
.pill.lead-contacted, .pill.lead-demo { background: var(--muted-tint); color: var(--text-2); }
.pill.lead-quote_sent { background: var(--warning-tint); color: var(--warning-ink); }
.pill.lead-won { background: var(--good-tint); color: var(--good-ink); }
.pill.lead-lost { background: var(--surface-3); color: var(--muted); }

.sales-intro { margin: 0; padding: 0 4px; }

/* Quote form: the app plan box sits above the description */
.line-cell .q-plan { margin-bottom: 6px; font-size: 13px; }

/* Tasks */
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.task-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--grid); }
.task-item:first-child { border-top: 0; }
.task-item > input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; cursor: pointer; }
.task-item > input[type="checkbox"]:disabled { cursor: default; }
.task-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task-title { font-weight: 600; overflow-wrap: anywhere; }
.task-done .task-title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.task-late .task-title { color: var(--critical-ink); }
.task-notes { margin: 0; }
.task-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
.task-meta .icon { width: 13px; height: 13px; vertical-align: -2px; }
.task-actions { display: flex; gap: 2px; flex: none; }
.task-late-note { margin: 0; padding-bottom: 0; }
.list-card .task-list { padding-top: 6px; padding-bottom: 6px; }
.tasks-dash .task-list { margin-top: -4px; }
.tasks-dash .row h2 { margin: 0; }

/* Customer card */
.sales-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sales-stage-field { display: inline-flex; align-items: center; gap: 8px; }
.sales-stage-field select { min-height: 34px; padding: 4px 8px; }
.sales-part { padding-top: 12px; border-top: 1px solid var(--grid); display: flex; flex-direction: column; gap: 8px; }
.sales-sub { margin: 0; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* Pipeline board: columns side by side, scrolling sideways inside the board on small screens */
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  align-items: start;
}
.board.is-loading { opacity: 0.55; }
.board > .card { grid-column: 1 / -1; }
.board-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.board-head h2 { margin: 0; font-size: 14px; }
.board-head .seg-count { margin-left: 0; }
.board-hint { flex: 1 1 100%; }
.col-won .board-head h2 { color: var(--good-ink); }
.col-lost .board-head h2 { color: var(--muted); }
.col-quote_sent .board-head h2 { color: var(--warning-ink); }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-xs); min-width: 0; }
.board-name { overflow-wrap: anywhere; }
.board-apps { display: flex; flex-wrap: wrap; gap: 4px; }
.board-apps .pill { font-size: 11.5px; }
.board-facts { display: flex; flex-direction: column; gap: 2px; }
.board-facts .icon { width: 13px; height: 13px; vertical-align: -2px; color: var(--muted); }
.board-move { margin-top: 4px; min-height: 32px; padding: 3px 8px; font-size: 13px; width: 100%; }
.board-empty { margin: 4px 0; }

@media (max-width: 760px) {
  .board { grid-auto-columns: minmax(220px, 82%); }
  .task-item { gap: 8px; }
}
