/* ══════════════════════════════════════════════════════════════════
   KANBAN / PIPELINE STYLES
   ══════════════════════════════════════════════════════════════════ */

#v-kanban {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.kanban-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 20px 24px;
  flex: 1;
  align-items: flex-start;
}

/* ──── COLUMNS ──────────────────────────────────────────────────── */

.kanban-col {
  min-width: 220px;
  max-width: 220px;
  background: rgba(15, 8, 32, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}

:root.light-mode .kanban-col {
  background: #f9f9fb;
  border: 1px solid #e0e1e8;
}

.kanban-col.drag-over {
  background: rgba(139, 92, 246, 0.1);
}

:root.light-mode .kanban-col.drag-over {
  background: rgba(124, 58, 237, 0.05);
}

.kanban-col-header {
  padding: 10px 12px;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0, 0, 0, 0.2);
}

:root.light-mode .kanban-col-header {
  background: #f9f9fb;
  border-bottom: 1px solid #e0e1e8;
}

.col-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(196, 164, 255, 0.9);
}

:root.light-mode .col-label {
  color: #7c3aed;
}

.col-meta {
  font-size: 12px;
  font-weight: 600;
  color: rgba(167, 139, 250, 0.9);
  margin-top: 2px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.3px;
}

:root.light-mode .col-meta {
  color: #7c3aed;
}

.kanban-col-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
}

.kanban-empty {
  text-align: center;
  color: rgba(196, 164, 255, 0.4);
  font-size: 12px;
  padding: 16px 0;
}

:root.light-mode .kanban-empty {
  color: #7a7a9e;
}

/* ──── CARDS ────────────────────────────────────────────────────── */

.kanban-card {
  background: rgba(15, 8, 32, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

:root.light-mode .kanban-card {
  background: #ffffff;
  border: 1px solid #ececf3;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

:root.light-mode .kanban-card:hover {
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.15);
}

.kanban-card.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.kanban-card-client {
  font-size: 13px;
  font-weight: 600;
  color: rgba(220, 210, 255, 0.95);
}

:root.light-mode .kanban-card-client {
  color: #000000;
}

.kanban-card-name {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  color: rgba(196, 164, 255, 0.8);
  line-height: 1.3;
}

:root.light-mode .kanban-card-name {
  color: #2d2d4a;
}

.kanban-card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  flex-direction: column;
}

.kanban-card-amount {
  font-weight: 700;
  color: rgba(167, 139, 250, 1);
  font-size: 12px;
  font-family: 'DM Mono', monospace;
}

:root.light-mode .kanban-card-amount {
  color: #7c3aed;
}

.kanban-card-date {
  color: rgba(196, 164, 255, 0.7);
  font-weight: 500;
  font-size: 11px;
}

:root.light-mode .kanban-card-date {
  color: #7a7a9e;
}

.kanban-card-kam {
  font-size: 11px;
  font-weight: 500;
  margin-top: 6px;
  color: rgba(196, 164, 255, 0.7);
}

:root.light-mode .kanban-card-kam {
  color: #7a7a9e;
}

/* ──── STATUS COLORS ────────────────────────────────────────────── */

.kanban-col-header.badge-draft {
  border-top: 3px solid #6b7280;
}

.kanban-col-header.badge-sent {
  border-top: 3px solid #3b82f6;
}

.kanban-col-header.badge-under_review {
  border-top: 3px solid #f59e0b;
}

.kanban-col-header.badge-modified {
  border-top: 3px solid #8b5cf6;
}

.kanban-col-header.badge-accepted {
  border-top: 3px solid #10b981;
}

.kanban-col-header.badge-rejected {
  border-top: 3px solid #ef4444;
}

.kanban-col-header.badge-purchased {
  border-top: 3px solid #06b6d4;
}

.kanban-col-header.badge-closed {
  border-top: 3px solid #374151;
}

/* ──── STATS MONEY ────────────────────────────────────────────────── */

.stat-money {
  font-size: 12px;
  font-weight: 600;
  color: rgba(167, 139, 250, 0.85);
  margin-top: 6px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.3px;
}

:root.light-mode .stat-money {
  color: #7c3aed;
}

/* ──── EXPAND / COLLAPSE BUTTONS ────────────────────────────────── */

.kanban-expand-btn,
.kanban-collapse-btn {
  width: 100%;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px dashed rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  color: rgba(139, 92, 246, 0.8);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Sora', sans-serif;
  margin-top: 4px;
}

:root.light-mode .kanban-expand-btn,
:root.light-mode .kanban-collapse-btn {
  background: rgba(124, 58, 237, 0.08);
  border: 1px dashed rgba(124, 58, 237, 0.3);
  color: #7c3aed;
}

.kanban-expand-btn:hover,
.kanban-collapse-btn:hover {
  background: rgba(139, 92, 246, 0.2);
}

:root.light-mode .kanban-expand-btn:hover,
:root.light-mode .kanban-collapse-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
  color: rgba(139, 92, 246, 1);
}
