/* ═══════════════════════════════════════════════════════════════════════
   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); }
}

/* ── 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;
}
.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: 0;
  margin-bottom: 10px;
  text-align: left;
  line-height: 1.4;
}
.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;
}
/* 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; }
