/* 05-boards.css — Kanban boards: columns, cards, due dates.
   Part of the CRM stylesheet: the files load in number order (components/app_styles.html) and later
   rules win, exactly as when this was one file. */

/* ---------- Kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.column { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 10px; min-height: 380px; transition: background .15s, border-color .15s; }
.column.drag-over { background: var(--accent-soft); border-color: var(--accent-soft-2); }
.column-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.column-head .badge { height: 22px; }
.column-count { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.column-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.column-tally { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.column-tally b, .stage-tally b { color: var(--text); font-weight: 700; }
.stage-tally { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.stage-tally .stat-value { margin-right: 2px; }
.column-body { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kcard { padding: 11px 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); cursor: grab; transition: box-shadow .15s, transform .15s; }
.kcard:hover { box-shadow: var(--shadow); }
.kcard.dragging { opacity: .5; transform: rotate(1.5deg); }
.kcard-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.kcard-meta { font-size: 12.5px; color: var(--muted); }
.kcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.kcard .select { height: 26px; font-size: 12.5px; margin-top: 8px; }
.kcard.is-done { opacity: .78; }
.kcard.is-done .kcard-title { text-decoration: line-through; text-decoration-color: var(--faint); }
.kcard-result { display: flex; gap: 4px; align-items: flex-start; margin-top: 6px; font-size: 12.5px; color: var(--text); background: var(--surface-2); border-radius: 6px; padding: 5px 7px; }
.task-type { font-size: 14px; }
.task-type-icon { width: 56px; flex: 0 0 56px; text-align: center; }
.kcard-links { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.kcard-links .link { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.column-more { height: 32px; border: 1px dashed var(--border); border-radius: 9px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.column-more:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--surface); }
.due { display: inline-flex; align-items: center; height: 24px; white-space: nowrap; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.due.overdue { background: var(--red-bg); color: var(--red); }

