.clients-shell { max-width: 1400px; }
.clients-kpi-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin: 1rem 0;
}
@media (max-width: 1000px) { .clients-kpi-row { grid-template-columns: repeat(2, 1fr); } }
.clients-kpi {
  background: rgba(13,18,25,0.85); border: 1px solid rgba(148,163,184,0.15);
  border-radius: 12px; padding: 0.85rem 1rem;
}
.clients-kpi span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; }
.clients-kpi strong { font-size: 1.35rem; color: #f1f5f9; }

.clients-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.clients-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(6, 10, 18, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.clients-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  transition: color 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.clients-tab-icon {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.85;
}
.clients-tab:hover {
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.07);
}
.clients-tab.active {
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.1));
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.1);
}
.clients-tab.active .clients-tab-icon { opacity: 1; }
.clients-tab-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 720px) {
  .clients-tabs { flex-direction: column; align-items: stretch; }
  .clients-tab-bar { width: 100%; }
  .clients-tab-actions { margin-left: 0; width: 100%; }
}

.clients-kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; }
@media (max-width: 1100px) { .clients-kanban { grid-template-columns: repeat(5, minmax(180px, 1fr)); } }
.clients-kanban-col {
  background: rgba(13,18,25,0.7); border: 1px solid rgba(148,163,184,0.12);
  border-radius: 12px; padding: 0.65rem; min-height: 320px;
}
.clients-kanban-col h3 {
  margin: 0 0 0.65rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8;
  display: flex; justify-content: space-between; align-items: center;
}
.clients-kanban-col h3 .count { background: rgba(56,189,248,0.15); color: #38bdf8; border-radius: 999px; padding: 0.1rem 0.45rem; font-size: 0.65rem; }
.clients-card {
  background: rgba(0,0,0,0.35); border: 1px solid rgba(148,163,184,0.12); border-radius: 10px;
  padding: 0.7rem; margin-bottom: 0.5rem; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.clients-card:hover { border-color: rgba(56,189,248,0.4); box-shadow: 0 0 16px rgba(56,189,248,0.08); }
.clients-card strong { display: block; color: #f1f5f9; font-size: 0.88rem; margin-bottom: 0.2rem; }
.clients-card-meta { font-size: 0.72rem; color: #94a3b8; line-height: 1.45; }
.clients-card-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.4rem; margin-bottom: 0.45rem; }
.clients-card-stage {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.28rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  cursor: pointer;
}
.clients-card-stage:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15); }
.clients-inline-stage {
  min-width: 7.5rem;
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
}
.clients-inline-stage:focus { outline: none; border-color: #38bdf8; }
.clients-tag { font-size: 0.62rem; padding: 0.12rem 0.4rem; border-radius: 999px; background: rgba(56,189,248,0.12); color: #7dd3fc; }
.clients-tag.mrr { background: rgba(74,222,128,0.12); color: #4ade80; }
.stage-intake { border-left: 3px solid #94a3b8; }
.stage-discovery { border-left: 3px solid #38bdf8; }
.stage-proposal { border-left: 3px solid #f59e0b; }
.stage-active { border-left: 3px solid #22c55e; }
.stage-churned { border-left: 3px solid #64748b; opacity: 0.75; }

.clients-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; align-items: center;
}
.clients-toolbar input, .clients-toolbar select {
  min-width: 160px; background: rgba(0,0,0,0.35); border: 1px solid rgba(148,163,184,0.2);
  color: #e2e8f0; border-radius: 8px; padding: 0.45rem 0.65rem; font-size: 0.82rem;
}

.clients-drawer {
  position: fixed; top: 0; right: 0; width: min(480px, 96vw); height: 100vh;
  background: #0d1219; border-left: 1px solid rgba(148,163,184,0.15);
  z-index: 1200; transform: translateX(105%); transition: transform 0.25s ease;
  overflow-y: auto; padding: 1.25rem;
}
.clients-drawer.open { transform: translateX(0); }
.clients-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.clients-drawer-head h2 { margin: 0; font-size: 1.15rem; color: #f1f5f9; }
.clients-drawer-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(148,163,184,0.1); }
.clients-drawer-section h4 { margin: 0 0 0.5rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; }

.clients-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.clients-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .clients-form-grid { grid-template-columns: 1fr; } }

.store-search-panel {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem;
}
@media (max-width: 900px) { .store-search-panel { grid-template-columns: 1fr; } }

.store-filters-card {
  background: rgba(13, 18, 25, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.store-filters-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (max-width: 1100px) { .store-filters-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .store-filters-grid { grid-template-columns: 1fr 1fr; } }
.store-filter-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.store-filter-field .filter-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}
.store-filter-search { grid-column: span 2; }
@media (max-width: 640px) { .store-filter-search { grid-column: span 2; } }
.store-filters-extra {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.store-filters-extra summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: #7dd3fc;
  user-select: none;
  margin-bottom: 0.45rem;
}
.store-filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}
.store-filter-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.store-filters-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.store-results-meta {
  margin-left: auto;
  font-size: 0.72rem;
  color: #94a3b8;
}
.store-results-col { min-width: 0; }
.store-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}
.store-results-table { font-size: 0.78rem; margin: 0; }
.store-results-table th {
  position: sticky;
  top: 0;
  background: #0d1219;
  z-index: 1;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.store-table-row { cursor: pointer; }
.store-table-row:hover td { background: rgba(56, 189, 248, 0.06); }
.store-table-row.selected td {
  background: rgba(56, 189, 248, 0.12);
  box-shadow: inset 3px 0 0 #38bdf8;
}
.store-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
}

.store-list { max-height: 520px; overflow-y: auto; border: 1px solid rgba(148,163,184,0.12); border-radius: 10px; }
.store-list-item {
  padding: 0.65rem 0.75rem; border-bottom: 1px solid rgba(148,163,184,0.08); cursor: pointer;
}
.store-list-item:hover, .store-list-item.selected { background: rgba(56,189,248,0.08); }
.store-list-item.selected { border-left: 3px solid #38bdf8; }
.store-edit-panel {
  background: rgba(13,18,25,0.7); border: 1px solid rgba(148,163,184,0.12);
  border-radius: 12px; padding: 1rem;
}
.store-edit-panel h3 { margin: 0 0 0.75rem; font-size: 0.95rem; color: #f1f5f9; }
.store-checks { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.5rem 0; }
.store-checks label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; color: #cbd5e1; }

.clients-empty { text-align: center; padding: 2rem; color: #64748b; font-size: 0.85rem; }

/* ── 360° Klant (CRM) ── */
.crm-360-shell {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, rgba(8, 12, 22, 0.98), rgba(12, 18, 32, 0.95));
  overflow: hidden;
  min-height: 560px;
}
.crm-360-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.06), transparent 70%);
}
.crm-360-head h2 { margin: 0; font-size: 1.05rem; color: #f1f5f9; }
.crm-360-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.crm-360-section {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.crm-360-stat {
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
}
.crm-360-stat .n { font-size: 1.2rem; font-weight: 800; color: #f1f5f9; }
.crm-360-stat .l { font-size: 0.6rem; color: #64748b; text-transform: uppercase; }
.a360-toolbar { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(148,163,184,0.08); }
@media (max-width: 800px) { .a360-toolbar { grid-template-columns: 1fr; } }
.a360-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; padding: 1rem; }
.a360-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
@media (max-width: 700px) { .a360-kpis { grid-template-columns: 1fr 1fr; } }
.a360-panel { padding: 0.75rem; border-radius: 12px; border: 1px solid rgba(148,163,184,0.12); background: rgba(0,0,0,0.25); min-height: 120px; }
.a360-links { max-height: 200px; overflow-y: auto; }
.a360-link-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; padding: 0.35rem 0; border-bottom: 1px solid rgba(148,163,184,0.06); color: #cbd5e1; }
.a360-pill { display: inline-block; margin: 0.2rem; padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.68rem; background: rgba(56,189,248,0.12); color: #7dd3fc; }
.a360-trend-row { display: flex; justify-content: space-between; font-size: 0.68rem; padding: 0.25rem 0; color: #94a3b8; }
.a360-word { display: inline-block; margin: 0.15rem; padding: 0.15rem 0.4rem; font-size: 0.65rem; border-radius: 6px; background: rgba(100,116,139,0.2); color: #cbd5e1; }
