.cl-log-wrapper { padding: 16px; }

// ── Summary strip ─────────────────────────────────────────────────────

.cl-summary-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cl-summary-card {
  flex: 1;
  min-width: 100px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;

  &--green { border-top: 3px solid #059669; }
  &--red   { border-top: 3px solid #dc2626; }
  &--amber { border-top: 3px solid #f59e0b; }
  &--grey  { border-top: 3px solid #9ca3af; }
}

.cl-summary-label {
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cl-summary-value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

// ── Filter bar ────────────────────────────────────────────────────────

.cl-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: flex-end;
}

// ── Table ─────────────────────────────────────────────────────────────

.cl-log-table-wrap { overflow-x: auto; }

.cl-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;

  th {
    background: #f8fafc;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
  }

  td {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
  }

  tbody tr:hover { background: #f9fafb; }
}

// ── Badges ────────────────────────────────────────────────────────────

.cl-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;

  &--green { background: #d1fae5; color: #065f46; }
  &--red   { background: #fee2e2; color: #991b1b; }
  &--amber { background: #fef3c7; color: #92400e; }
  &--grey  { background: #f3f4f6; color: #6b7280; }
}

.cl-btn-link {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

// ── Skeleton ──────────────────────────────────────────────────────────

.cl-skeleton-rows { display: flex; flex-direction: column; gap: 6px; }

.cl-skeleton-row {
  height: 36px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e9eaec 50%, #f3f4f6 75%);
  background-size: 400% 100%;
  border-radius: 6px;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

// ── Detail panel ──────────────────────────────────────────────────────

.cl-detail-panel {
  margin-top: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.cl-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cl-detail-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.cl-empty-state {
  padding: 40px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.cl-error-state {
  padding: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #991b1b;
  font-size: 13px;
  margin-bottom: 12px;
}

.cl-result-icon {
  .cl-icon--pass    { color: #059669; font-size: 14px; }
  .cl-icon--fail    { color: #dc2626; font-size: 14px; }
  .cl-icon--pending { color: #9ca3af; }
  .cl-icon--na      { color: #9ca3af; font-size: 11px; }
}

// ── RTL ───────────────────────────────────────────────────────────────

[dir="rtl"] {
  .cl-log-table th,
  .cl-log-table td { text-align: right; }

  .cl-detail-header { flex-direction: row-reverse; }

  .cl-summary-strip,
  .cl-filter-bar { direction: ltr; }
}
