/* ═══════════════════════════════════════════════════════════════════════
   CLONK UI STANDARD — v260421
   Generic design system shared across all Clonk admin views.
   Namespace: clk-*   |   Do not add feature-specific selectors here.

   PALETTE REFERENCE
   ─────────────────────────────────────────────────────────────────────
   salmon-50 : #FEE6E8   salmon-100: #FCCCD1   salmon-200: #F98E9A
   salmon-600: #F11228   salmon-700: #D20C20   salmon-800: #AB1D2E
   magenta-50: #FCE5FD   magenta-100:#FACAFA   magenta-700:#BF11C2
   teal-50   : #DCF9F5   teal-600:  #1EC2A7   teal-700:  #199F88   teal-800: #116A5B
   yellow-50 : #FFFBE7   yellow-700:#EDC600   yellow-800:#C6A500
   gray-50   : #E8E9EA   gray-100:  #D1D2D5   gray-200:  #A4A6AB   gray-300: #8D9095
   gray-400  : #767980   gray-500:  #4D4F53   gray-600:  #424448   gray-700: #393A3E
   gray-800  : #2F3133   bg:        #FAFAFA   white:     #FFFFFF
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes clk-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes clk-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes clk-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes clk-spin {
  to { transform: rotate(360deg); }
}

/* ── Tabs (underline) ────────────────────────────────────────────────── */
/* Two usage modes:
 *   1. Standalone:  <ul class="clk-tabs"><button class="clk-tab-item is-active">…
 *   2. Semantic UI overlay (uses Semantic JS to switch tabs):
 *      <ul class="ui tabular menu clk-tabs"><li class="item active">… */
.clk-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #E8E9EA;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clk-tab-item {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #767980;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: inherit;
}
.clk-tab-item:hover { color: #424448; }
.clk-tab-item.is-active {
  color: #F11228;
  border-bottom-color: #F11228;
}
.clk-tabs.ui.tabular.menu {
  border: none;
  border-bottom: 1px solid #E8E9EA;
}
.clk-tabs.ui.tabular.menu .item {
  border: none !important;
  background: transparent !important;
  padding: 12px 18px;
  margin-bottom: -1px;
  color: #767980;
  border-bottom: 2px solid transparent !important;
}
.clk-tabs.ui.tabular.menu .item:hover { color: #424448; }
.clk-tabs.ui.tabular.menu .item.active {
  background: transparent !important;
  color: #F11228 !important;
  border-bottom-color: #F11228 !important;
}
.clk-tabs.ui.tabular.menu .item label { cursor: pointer; }
.clk-tabs.ui.tabular.menu .item.active label { color: #F11228 !important; }

/* ── Narrow centered column (guided flows, confirmation screens) ─────── */
.clk-narrow-column {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 0 14px;
  text-align: left;
}

/* ── Hero block (centered icon + title + copy; for confirmations) ────── */
.clk-hero {
  text-align: center;
  margin-bottom: 22px;
}
.clk-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.clk-hero-icon--welcome { background: #DCF9F5; color: #1EC2A7; }
.clk-hero-icon--pending { background: #FFFBE7; color: #EDC600; }
.clk-hero-icon--success { background: #DCF9F5; color: #199F88; }
.clk-hero-icon--warning { background: #FEE6E8; color: #F11228; }
.clk-hero-icon--info    { background: #FCE5FD; color: #BF11C2; }
.clk-hero-title {
  font-size: 16px;
  font-weight: 700;
  color: #2F3133;
  margin-bottom: 6px;
}
.clk-hero-copy {
  font-size: 12.5px;
  color: #767980;
  line-height: 1.6;
  margin: 0;
}

/* ── Section card (numbered/labeled step in wizards or forms) ────────── */
.clk-section {
  background: #FFFFFF;
  border: 1px solid #E8E9EA;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 16px;
  text-align: left;
}
.clk-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.clk-section-head .clk-section-hint { margin-bottom: 8px; }
.clk-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #2F3133;
  margin: 0 0 4px;
  text-align: left;
}
.clk-section-hint {
  font-size: 12px;
  color: #767980;
  margin: 0 0 14px;
  line-height: 1.5;
  text-align: left;
}

/* ── Footnote (small, muted, centered) ───────────────────────────────── */
.clk-footnote {
  font-size: 10.5px;
  color: #8D9095;
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── Selectable card (radio-style cards in a list) ───────────────────── */
.clk-select-list { display: flex; flex-direction: column; gap: 8px; }
.clk-select-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.12s;
  border: 1px solid #D1D2D5;
  background: #FFFFFF;
}
.clk-select-card:hover { border-color: #A4A6AB; }
.clk-select-card.is-selected {
  border-color: #F54359;
  background: #FEE6E8;
}
.clk-select-card-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #A4A6AB;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clk-select-card.is-selected .clk-select-card-radio { border-color: #F11228; }
.clk-select-card-radio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F11228;
}
.clk-select-card-body { flex: 1; }
.clk-select-card-title { font-size: 13px; font-weight: 700; color: #2F3133; }
.clk-select-card.is-selected .clk-select-card-title { color: #AB1D2E; }
.clk-select-card-desc { font-size: 11.5px; color: #767980; line-height: 1.4; margin-top: 2px; }
.clk-select-card-aside { text-align: right; flex-shrink: 0; }
.clk-select-card-aside-primary { font-size: 13px; font-weight: 700; color: #393A3E; }
.clk-select-card.is-selected .clk-select-card-aside-primary { color: #AB1D2E; }
.clk-select-card-aside-secondary { font-size: 10px; color: #8D9095; }

/* ── Segmented control (two/three button toggle) ─────────────────────── */
.clk-segmented {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid #D1D2D5;
  border-radius: 4px;
  overflow: hidden;
  background: #FFFFFF;
}
.clk-segmented-btn {
  border: none;
  background: #FFFFFF;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #767980;
  cursor: pointer;
  font-family: inherit;
}
.clk-segmented-btn:hover { color: #424448; }
.clk-segmented-btn.is-active {
  background: #F11228;
  color: #FFFFFF;
}

/* ── Inline control + helper text row (e.g. stepper + count message) ── */
.clk-control-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 2px;
}
.clk-control-row-hint {
  font-size: 11.5px;
  color: #767980;
  line-height: 1.45;
}

/* ── Callout (highlighted estimate / total / KPI inline box) ─────────── */
.clk-callout {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.clk-callout--magenta { background: #FCE5FD; border: 1px solid #FACAFA; color: #BF11C2; }
.clk-callout-label { font-size: 11.5px; line-height: 1.4; }
.clk-callout-sublabel { color: #767980; font-size: 11px; }
.clk-callout-amount { font-size: 17px; font-weight: 700; }

/* ── Feature panel (themed card with a primary CTA, e.g. payment block)  */
.clk-feature-panel {
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 16px;
  text-align: left;
}
.clk-feature-panel--teal { background: #DCF9F5; border: 1px solid #1EC2A7; color: #116A5B; }
.clk-feature-title { font-size: 13px; font-weight: 700; margin: 0 0 4px; text-align: left; }
.clk-feature-copy { font-size: 12px; opacity: 0.85; margin: 0 0 14px; line-height: 1.5; text-align: left; }

/* ── Chip list (informational tags, e.g. "available payment methods") ── */
.clk-chip-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.clk-chip-list-label {
  font-size: 10.5px;
  color: inherit;
  opacity: 0.8;
}
.clk-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #424448;
  background: #FFFFFF;
  border: 1px solid #D1D2D5;
  border-radius: 4px;
  padding: 4px 9px;
}
.clk-chip--teal { color: #116A5B; border-color: #1EC2A7; }

/* ── Share link (<details> with copy button) ─────────────────────────── */
.clk-share-link { margin-top: 14px; }
.clk-share-link > summary {
  font-size: 11px;
  cursor: pointer;
  opacity: 0.85;
  list-style: none;
  user-select: none;
  color: inherit;
}
.clk-share-link > summary::-webkit-details-marker { display: none; }
.clk-share-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: #FFFFFF;
  border: 1px solid #D1D2D5;
  border-radius: 4px;
  padding: 8px 10px;
}
.clk-share-link-text {
  font-size: 11.5px;
  color: #424448;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
}
.clk-share-link-copy {
  border: 1px solid #D1D2D5;
  background: #FFFFFF;
  color: #424448;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}

/* ── Feature teaser (placeholder for an upcoming feature) ────────────── */
.clk-feature-teaser { display: flex; align-items: center; gap: 10px; }
.clk-feature-teaser--nested {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed currentColor;
}
.clk-feature-teaser--standalone {
  padding: 16px 20px;
  border: 1px dashed #D1D2D5;
  border-radius: 4px;
  background: #FFFFFF;
  margin-bottom: 16px;
}
.clk-feature-teaser-icon {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid #D1D2D5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #767980;
  opacity: 0.85;
}
.clk-feature-teaser-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #424448;
  display: flex;
  align-items: center;
  gap: 6px;
}
.clk-feature-teaser-badge {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4D4F53;
  background: #E8E9EA;
  border-radius: 3px;
  padding: 1px 5px;
}
.clk-feature-teaser-copy { font-size: 10.5px; color: #767980; }

/* Teal-themed overrides (when inside a teal feature panel) */
.clk-feature-panel--teal .clk-feature-teaser-icon { border-color: #1EC2A7; color: #1EC2A7; }
.clk-feature-panel--teal .clk-feature-teaser-title { color: #116A5B; }
.clk-feature-panel--teal .clk-feature-teaser-badge {
  color: #116A5B; background: #FFFFFF; border: 1px solid #1EC2A7;
}
.clk-feature-panel--teal .clk-feature-teaser-copy { color: #116A5B; opacity: 0.7; }
.clk-feature-panel--teal .clk-share-link-row { border-color: #1EC2A7; }
.clk-feature-panel--teal .clk-share-link-copy { border-color: #1EC2A7; color: #116A5B; }

/* ── Form fields ─────────────────────────────────────────────────────── */
.clk-field-label {
  font-size: 11px;
  font-weight: 600;
  color: #767980;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}
.clk-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  color: #2F3133;
  border: 1px solid #D1D2D5;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  background: #FFFFFF;
  font-family: inherit;
}
.clk-input:focus { border-color: #A4A6AB; }
.clk-input.is-error { border-color: #F54359; }
.clk-field-error {
  font-size: 11px;
  color: #D20C20;
  margin-top: 6px;
  line-height: 1.4;
}
.clk-field-help {
  font-size: 10px;
  color: #8D9095;
  margin-top: 6px;
}
/* Input group: wraps an icon on the left and a .clk-input. Works on its own
 * or layered on Semantic UI's .ui.left.icon.input. */
.clk-input-group { position: relative; width: 100%; margin-bottom: 4px; }
.clk-input-group.ui.input { width: 100%; }
.clk-input-group .clk-input { padding-left: 32px; }

.clk-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4D4F53;
  cursor: pointer;
  margin: 12px 0;
}
.clk-checkbox input[type="checkbox"] {
  accent-color: #F11228;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ── Summary (key/value review block) ────────────────────────────────── */
.clk-summary {
  background: #FAFAFA;
  border: 1px solid #E8E9EA;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.clk-summary-label {
  font-size: 11px;
  font-weight: 600;
  color: #767980;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.clk-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #E8E9EA;
}
.clk-summary-row > span:first-child {
  font-size: 12px;
  color: #767980;
}
.clk-summary-row > span:last-child {
  font-size: 12.5px;
  font-weight: 600;
  color: #2F3133;
  text-align: right;
}
.clk-summary-row:last-child,
.clk-summary-row--last { border-bottom: none; }

/* ── Page header ─────────────────────────────────────────────────────── */
.clk-page-header {
  background: #FAFAFA;
  padding: 24px 20px 20px;
  text-align: center;
}
.clk-page-icon {
  font-size: 36px;
  margin-bottom: 8px;
  color: #424448;
}
.clk-page-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2F3133;
  margin: 0 0 8px;
}
.clk-page-desc {
  font-size: 13px;
  color: #767980;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Layout wrappers ─────────────────────────────────────────────────── */
.clk-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}
.clk-wrapper--wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

/* ── Card ────────────────────────────────────────────────────────────── */
.clk-card {
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ── Two-column sidebar layout ───────────────────────────────────────── */
.clk-layout-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.clk-sidebar {
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.clk-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid #E8E9EA;
  background: #393A3E;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.clk-sidebar-body {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}
.clk-sidebar-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: #FFFFFF;
  border: none;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #E8E9EA;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.clk-sidebar-item:hover {
  background: #E8E9EA;
}
.clk-sidebar-item.is-selected {
  background: #FEE6E8;
  border-left-color: #F11228;
}
.clk-sidebar-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #2F3133;
  margin-bottom: 4px;
  line-height: 1.3;
}
.clk-sidebar-item.is-selected .clk-sidebar-item-title {
  color: #AB1D2E;
  font-weight: 700;
}
.clk-sidebar-item-id {
  font-size: 10px;
  color: #8D9095;
  font-family: 'Courier New', monospace;
  margin-bottom: 6px;
}
.clk-sidebar-item-meta {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: #767980;
}
.clk-sidebar-item-meta .clk-teal {
  color: #199F88;
  font-weight: 600;
}

/* ── KPI card ────────────────────────────────────────────────────────── */
.clk-kpi-card {
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.clk-kpi-card-label {
  font-size: 11px;
  font-weight: 700;
  color: #767980;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clk-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.clk-kpi {
  padding: 12px 14px;
  border-radius: 4px;
  background: #FAFAFA;
  border: 1px solid #E8E9EA;
}
.clk-kpi-icon-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #767980;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.clk-kpi-icon-label .clk-kpi-emoji {
  font-size: 12px;
}
.clk-kpi-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.clk-kpi-value--gray   { color: #393A3E; }
.clk-kpi-value--teal   { color: #199F88; }
.clk-kpi-value--teal2  { color: #1EC2A7; }
.clk-kpi-value--salmon { color: #F11228; }

/* ── Toolbar ─────────────────────────────────────────────────────────── */
.clk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #E8E9EA;
  flex-wrap: wrap;
  gap: 10px;
}
.clk-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.clk-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: #767980;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.clk-filter-select {
  padding: 7px 32px 7px 10px;
  font-size: 13px;
  color: #424448;
  border: 1px solid #D1D2D5;
  border-radius: 4px;
  background: #FFFFFF;
  font-family: inherit;
  cursor: pointer;
  min-width: 170px;
  min-height: 0 !important;
}
/* Semantic UI dropdown overrides */
.clk-filter-select.ui.dropdown {
  padding: 9px 18px !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
  font-size: 13px !important;
}
.clk-filter-select.ui.dropdown .text,
.clk-filter-select.ui.dropdown .menu .item {
  font-size: 13px !important;
}
.clk-filter-select.ui.dropdown:focus,
.clk-filter-select.ui.dropdown.active,
.clk-filter-select.ui.dropdown.visible {
  border-color: #D1D2D5 !important;
  box-shadow: none !important;
}
.clk-filter-select.ui.dropdown .menu {
  border-color: #D1D2D5 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
/* Search input */
.clk-search-wrapper {
  position: relative;
}
.clk-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #8D9095;
  pointer-events: none;
}
.clk-search-input {
  padding: 7px 10px 7px 30px;
  font-size: 13px;
  color: #393A3E;
  border: 1px solid #D1D2D5;
  border-radius: 4px;
  background: #FFFFFF;
  font-family: inherit;
  outline: none;
  min-width: 220px;
}
.clk-search-input:focus {
  border-color: #D1D2D5;
  box-shadow: none;
}
.clk-search-wrapper--grow {
  flex: 1;
}
.clk-search-input--full {
  width: 100%;
  min-width: 0;
}
.clk-filter-count {
  font-size: 12px;
  color: #8D9095;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.clk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.clk-btn .clk-btn-icon {
  font-size: 14px;
}
/* Magenta light — non-destructive primary action */
.clk-btn--magenta {
  color: #BF11C2;
  background: #FCE5FD;
  border-color: #FACAFA;
}
.clk-btn--magenta:hover {
  background: #FACAFA;
}
/* Teal — positive action (enroll, save) */
.clk-btn--teal {
  color: #FFFFFF;
  background: #199F88;
  border-color: #199F88;
}
.clk-btn--teal:hover {
  background: #116A5B;
  border-color: #116A5B;
}
/* Danger/salmon — destructive (revoke, cancel enrollment) */
.clk-btn--danger {
  color: #FFFFFF;
  background: #F11228;
  border-color: #F11228;
}
.clk-btn--danger:hover {
  background: #D20C20;
  border-color: #D20C20;
}
/* Secondary — cancel, close */
.clk-btn--secondary {
  color: #4D4F53;
  background: #FFFFFF;
  border-color: #D1D2D5;
  font-weight: 400;
}
.clk-btn--secondary:hover {
  background: #E8E9EA;
}
/* Primary — non-destructive brand CTA (save, retry) */
.clk-btn--primary {
  color: #FFFFFF;
  background: #F11228;
  border-color: #F11228;
}
.clk-btn--primary:hover {
  background: #D20C20;
  border-color: #D20C20;
}
/* Link — borderless text-style button */
.clk-btn--link {
  background: none;
  border-color: transparent;
  color: #767980;
  font-weight: 500;
  font-size: 12px;
  padding: 4px 0;
  gap: 4px;
}
.clk-btn--link:hover {
  color: #424448;
}
/* Size: small */
.clk-btn--sm {
  padding: 6px 14px;
  font-size: 12px;
}
/* Size: large (block CTAs) */
.clk-btn--lg {
  padding: 13px 20px;
  font-size: 13.5px;
}
/* Block — full width with centered content */
.clk-btn--block {
  width: 100%;
  justify-content: center;
}
.clk-btn[disabled],
.clk-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
/* State: checking/loading — used on retry buttons */
.clk-btn--checking {
  color: #767980 !important;
  background: #E8E9EA !important;
  border-color: #D1D2D5 !important;
  cursor: default !important;
}

/* ── Data grid ───────────────────────────────────────────────────────── */
/* Set grid-template-columns as an inline style or per-view class */
.clk-grid-header,
.clk-grid-row {
  display: grid;
}
.clk-grid-header {
  background: #393A3E;
  padding: 10px 20px;
  position: inherit;
  top: 20px;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.clk-grid-header span,
.clk-grid-header div {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.clk-grid-row {
  padding: 14px 20px;
  border-bottom: 1px solid #E8E9EA;
  align-items: center;
  position: relative;
  z-index: 1;
  transition: background 0.15s;
}
.clk-grid-row:hover {
  background: #f8f8f9;
}
.clk-grid-row.row-pending {
  background: rgba(252,229,253,0.27);
}
.clk-grid-row.row-pending:hover {
  background: rgba(252,229,253,0.40);
}
.clk-grid-row.has-menu-open {
  z-index: 100;
}

/* ── Cell helpers ────────────────────────────────────────────────────── */
.clk-cell-primary {
  font-size: 13px;
  font-weight: 600;
  color: #2F3133;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clk-cell-email {
  font-size: 11px;
  color: #8D9095;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clk-cell-secondary {
  font-size: 12px;
  color: #424448;
  line-height: 1.4;
}
.clk-cell-mono {
  font-size: 10px;
  color: #8D9095;
  font-family: 'Courier New', monospace;
  margin-top: 2px;
}
.clk-cell-muted {
  font-size: 10px;
  color: #8D9095;
  margin-top: 2px;
}
.clk-cell-pending {
  font-style: italic;
  color: #BF11C2;
  font-weight: 500;
  font-size: 12px;
}
.clk-text--stale {
  color: #C6A500 !important;
  font-weight: 600;
}
.clk-text--em {
  font-size: 12px;
  color: #8D9095;
  font-style: italic;
}
.clk-text--bold {
  font-weight: 600;
}

/* ── Status badges ───────────────────────────────────────────────────── */
.clk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.clk-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
/* Kiosk device states — returned by vm.getStatusClass() */
.clk-badge.status-active              { background: #DCF9F5; color: #116A5B; }
.clk-badge.status-active .clk-badge-dot   { background: #1EC2A7; animation: clk-pulse 2s infinite; }
.clk-badge.status-inactive            { background: #FFFBE7; color: #C6A500; }
.clk-badge.status-inactive .clk-badge-dot { background: #EDC600; }
.clk-badge.status-no-sites            { background: #FCE5FD; color: #BF11C2; }
.clk-badge.status-no-sites .clk-badge-dot { background: #BF11C2; animation: clk-pulse 2s infinite; }
/* Training enrollment states — from row.enrollmentStatus */
.clk-badge.status-completed           { background: #DCF9F5; color: #116A5B; }
.clk-badge.status-completed .clk-badge-dot   { background: #1EC2A7; }
.clk-badge.status-in-progress         { background: #FFFBE7; color: #C6A500; }
.clk-badge.status-in-progress .clk-badge-dot { background: #EDC600; animation: clk-pulse 2s infinite; }
.clk-badge.status-not_enrolled        { background: #E8E9EA; color: #4D4F53; }
.clk-badge.status-not_enrolled .clk-badge-dot { background: #8D9095; }

/* ── Progress bar ────────────────────────────────────────────────────── */
.clk-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 180px;
}
.clk-progress-track {
  flex: 1;
  height: 6px;
  background: #E8E9EA;
  border-radius: 3px;
  overflow: hidden;
}
.clk-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.clk-progress-fill--teal   { background: #1EC2A7; }
.clk-progress-fill--yellow { background: #EDC600; }
.clk-progress-pct {
  font-size: 11px;
  font-weight: 600;
  color: #4D4F53;
  min-width: 32px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Context menu (⋮) ────────────────────────────────────────────────── */
.clk-ctx-wrapper {
  position: relative;
  justify-self: center;
}
.clk-ctx-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #4D4F53;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.clk-ctx-btn.is-open {
  background: #E8E9EA;
}
.clk-ctx-menu {
  position: absolute;
  top: 32px;
  right: 0;
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: 1px solid #E8E9EA;
  min-width: 210px;
  z-index: 9999;
  overflow: hidden;
  animation: clk-fade-in 0.15s ease-out;
}
.clk-ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 12px;
  color: #393A3E;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
}
.clk-ctx-item:hover {
  background: #E8E9EA;
}
.clk-ctx-item--action {
  color: #199F88;
  font-weight: 600;
}
.clk-ctx-item--danger {
  color: #F11228;
  font-weight: 600;
}
.clk-ctx-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  opacity: 0.7;
  flex-shrink: 0;
}
.clk-ctx-divider {
  height: 1px;
  background: #E8E9EA;
}

/* ── Empty state ─────────────────────────────────────────────────────── */
.clk-grid-empty {
  text-align: center;
  padding: 60px 20px;
  color: #8D9095;
  font-size: 13px;
}
.clk-grid-empty-icon {
  font-size: 28px;
  margin-bottom: 10px;
  opacity: 0.5;
  display: block;
}

/* ── Pagination ──────────────────────────────────────────────────────── */
.clk-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid #E8E9EA;
  background: #FFFFFF;
  flex-wrap: wrap;
  gap: 10px;
}
.clk-pagination-info {
  font-size: 12px;
  color: #767980;
}
.clk-pagination-info strong {
  color: #393A3E;
}
.clk-pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.clk-page-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #424448;
  background: #FFFFFF;
  border: 1px solid #D1D2D5;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.clk-page-btn:hover:not([disabled]) {
  color: #F11228;
  border-color: #F98E9A;
}
.clk-page-btn[disabled] {
  color: #A4A6AB;
  border-color: #E8E9EA;
  cursor: not-allowed;
}
.clk-page-pill {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #424448;
  background: #E8E9EA;
  border-radius: 4px;
  min-width: 80px;
  text-align: center;
}

/* ── Info / notification banner ──────────────────────────────────────── */
.clk-banner {
  margin-top: 14px;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}
.clk-banner--magenta {
  background: #FCE5FD;
  border: 1px solid #FACAFA;
  color: #BF11C2;
}
.clk-banner--teal {
  background: #DCF9F5;
  border: 1px solid #DCF9F5;
  color: #116A5B;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
}
.clk-banner--yellow {
  background: #FFFBE7;
  border: 1px solid #FFFBE7;
  color: #C6A500;
  font-weight: 600;
  font-size: 11px;
  padding: 8px 14px;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: left;
  line-height: 1.4;
}
.clk-banner--salmon {
  background: #FEE6E8;
  border: 1px solid #F54359;
  color: #AB1D2E;
  text-align: left;
  font-size: 12px;
  padding: 9px 12px;
}
.clk-banner-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Toast notifications ─────────────────────────────────────────────── */
.clk-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 3000;
  max-width: 380px;
  line-height: 1.45;
  animation: clk-fade-in 0.3s ease-out;
}
.clk-toast--success { background: #199F88; color: #FFFFFF; }
.clk-toast--error   { background: #F11228; color: #FFFFFF; }

/* ── Spinner ─────────────────────────────────────────────────────────── */
.clk-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #A4A6AB;
  border-top-color: #767980;
  border-radius: 50%;
  animation: clk-spin 0.8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
.clk-spinner--lg {
  width: 38px;
  height: 38px;
  border-width: 3px;
}
.clk-spinner--salmon {
  border-color: #FEE6E8;
  border-top-color: #F11228;
}

/* ── Stepper (numeric +/- control) ───────────────────────────────────── */
.clk-stepper {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  background: #E8E9EA;
  border-radius: 5px;
  padding: 2px;
  flex-shrink: 0;
}
.clk-stepper-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #4D4F53;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.clk-stepper-btn:hover {
  background: #D1D2D5;
  color: #2F3133;
}
.clk-stepper-value {
  font-size: 12px;
  font-weight: 600;
  color: #2F3133;
  min-width: 28px;
  text-align: center;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
}
/* Large variant: input-sized stepper for forms (e.g. employee count) */
.clk-stepper--lg {
  border: 1px solid #D1D2D5;
  border-radius: 4px;
  overflow: hidden;
  background: #FFFFFF;
  padding: 0;
  gap: 0;
}
.clk-stepper--lg .clk-stepper-btn {
  width: 38px;
  height: 40px;
  border-radius: 0;
  font-size: 18px;
  color: #424448;
  background: #FFFFFF;
}
.clk-stepper--lg .clk-stepper-btn:hover:not(:disabled) {
  background: #E8E9EA;
  color: #2F3133;
}
.clk-stepper--lg .clk-stepper-btn:disabled {
  color: #A4A6AB;
  cursor: default;
  background: #FFFFFF;
}
.clk-stepper--lg .clk-stepper-value {
  width: 56px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #2F3133;
  border-left: 1px solid #E8E9EA;
  border-right: 1px solid #E8E9EA;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}

/* Compact: tighter, bordered, for use inside dense data grids */
.clk-stepper--compact {
  gap: 0;
  border-radius: 4px;
  border: 1px solid #D1D2D5;
  padding: 0;
}
.clk-stepper--compact .clk-stepper-btn {
  width: auto;
  height: auto;
  padding: 2px 5px;
  font-size: 13px;
  font-weight: 600;
  color: #767980;
}
.clk-stepper--compact .clk-stepper-value {
  font-size: 13px;
  min-width: 18px;
  padding: 2px 0;
}

/* ── Toggle switch ───────────────────────────────────────────────────── */
.clk-toggle {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  background: #D1D2D5;
  position: relative;
  transition: background 0.2s ease;
}
.clk-toggle.is-on {
  background: #1EC2A7;
}
.clk-toggle.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.clk-toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
  transform: translateX(0);
}
.clk-toggle.is-on .clk-toggle-knob {
  transform: translateX(16px);
}

/* ── Source badge (legal / empresa / sucursal) ───────────────────────── */
.clk-source-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.clk-source-badge--legal    { background: #FEE6E8; color: #D20C20; }
.clk-source-badge--empresa  { background: #FEE6E8; color: #AB1D2E; }
.clk-source-badge--sucursal { background: #FCE5FD; color: #BF11C2; }

/* ── Insight row (icon + text) ───────────────────────────────────────── */
.clk-insight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #FAFAFA;
}
.clk-insight--teal { background: #DCF9F5; }
.clk-insight-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.clk-insight-text {
  font-size: 12px;
  color: #424448;
  line-height: 1.45;
}
.clk-insight--teal .clk-insight-text {
  color: #116A5B;
}

/* ── Modal ───────────────────────────────────────────────────────────── */
.clk-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28,29,31,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 2000;
}
.clk-modal-panel {
  background: #FFFFFF;
  border-radius: 6px;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: clk-fade-in 0.2s ease-out;
}
.clk-modal-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.clk-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.clk-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: #E8E9EA;
  color: #4D4F53;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.15s;
}
.clk-modal-close:hover {
  background: #D1D2D5;
}
.clk-modal-icon--warning { background: #FFFBE7; font-size: 18px; }
.clk-modal-icon--magenta { background: #FCE5FD; }
.clk-modal-icon--teal    { background: #DCF9F5; }
.clk-modal-icon--salmon  { background: #FEE6E8; }
.clk-modal-content { flex: 1; }
.clk-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #2F3133;
  margin-bottom: 8px;
}
.clk-modal-text {
  font-size: 13px;
  color: #4D4F53;
  line-height: 1.5;
}
.clk-modal-label {
  font-size: 11px;
  font-weight: 600;
  color: #767980;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}
.clk-modal-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px !important;
  color: #2F3133;
  border: 1px solid #D1D2D5 !important;
  border-radius: 4px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.clk-modal-input:focus {
  border-color: #D1D2D5 !important;
  box-shadow: none !important;
  outline: none !important;
}
.clk-modal-hint {
  font-size: 10px;
  color: #8D9095;
  margin-top: 6px;
}
.clk-modal-desc {
  font-size: 12px;
  color: #767980;
  margin-bottom: 14px;
  line-height: 1.5;
}
.clk-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Site checkbox list (used in edit-sites modals) ──────────────────── */
.clk-site-list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #E8E9EA;
  border-radius: 4px;
  margin-top: 10px;
}
.clk-site-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #E8E9EA;
  transition: background 0.1s;
}
.clk-site-item.is-selected {
  background: #DCF9F5;
}
.clk-site-item input[type="checkbox"] {
  accent-color: #1EC2A7;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.clk-site-label {
  font-size: 13px;
  color: #393A3E;
  font-weight: 400;
}
.clk-site-item.is-selected .clk-site-label {
  color: #116A5B;
  font-weight: 600;
}
.clk-site-counter {
  font-size: 11px;
  color: #8D9095;
  margin-top: 8px;
}

/* ── Revoked / deactivated screen ────────────────────────────────────── */
.clk-revoked-upper {
  padding: 60px 20px 40px;
  text-align: center;
  border-bottom: 1px solid #E8E9EA;
  background: #FFFFFF;
}
.clk-revoked-logo   { margin-bottom: 40px; }
.clk-revoked-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FEE6E8;
  border: 2px solid #FCCCD1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}
.clk-revoked-title {
  font-size: 18px;
  font-weight: 700;
  color: #2F3133;
  margin: 0 0 12px;
}
.clk-revoked-desc {
  font-size: 14px;
  color: #767980;
  max-width: 400px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.clk-revoked-hint {
  font-size: 13px;
  color: #8D9095;
  max-width: 360px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.clk-revoked-lower  { flex: 1; background: #FAFAFA; }
