:root {
  --ivqa-bg: #f7f8fb;
  --ivqa-radius: 12px;
  --ivqa-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  --ivqa-border: 1px solid #e6eaf0;
  --ivqa-text: #0f172a;
  --ivqa-muted: rgba(15, 23, 42, 0.62);
  --ivqa-muted-2: rgba(15, 23, 42, 0.46);
  --ivqa-icon-bg: rgba(79, 70, 229, 0.10);
  --ivqa-icon-fg: #4f46e5;
}

.card {
  border-radius: var(--ivqa-radius);
}

.ivqa-dashboard {
  background: var(--ivqa-bg);
}

.ivqa-hero {
  padding: 18px 18px;
  border-radius: var(--ivqa-radius);
  background: #fff;
  border: var(--ivqa-border);
  box-shadow: var(--ivqa-shadow);
}

.ivqa-hero-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ivqa-text);
  line-height: 1.15;
}

.ivqa-hero-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ivqa-muted);
}

.ivqa-badges {
  margin-top: 10px;
}

.ivqa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid #e6eaf0;
  background: #fff;
  color: var(--ivqa-text);
  white-space: nowrap;
}

.ivqa-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: #94a3b8;
}

.ivqa-badge-success .ivqa-badge-dot {
  background: #22c55e;
}

.ivqa-badge-warning .ivqa-badge-dot {
  background: #f59e0b;
}

.ivqa-badge-danger .ivqa-badge-dot {
  background: #ef4444;
}

.ivqa-dash-stats .card {
  border-radius: var(--ivqa-radius);
  border: var(--ivqa-border);
  box-shadow: var(--ivqa-shadow);
}

.ivqa-dash-stats .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ivqa-dash-stats .ivqa-stat-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivqa-muted-2);
}

.ivqa-dash-stats .ivqa-stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ivqa-text);
}

.ivqa-dash-stats .ivqa-stat-sub {
  font-size: 12px;
  color: var(--ivqa-muted);
}

.ivqa-dash-stats .ivqa-stat-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--ivqa-muted);
}

.ivqa-progress {
  height: 8px;
  background: #eef2ff;
  border-radius: 999px;
  overflow: hidden;
}

.ivqa-progress .progress-bar {
  background: var(--ivqa-icon-fg);
}

.ivqa-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ivqa-text);
}

.ivqa-section-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ivqa-muted);
}

.ivqa-table thead th {
  background: #f7f8fb;
  color: rgba(15, 23, 42, 0.70);
  font-weight: 700;
  border-bottom-color: #e6eaf0;
}

.ivqa-table td,
.ivqa-table th {
  vertical-align: middle;
}

.ivqa-status-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12px;
}

.ivqa-status-pill.ivqa-ok {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.ivqa-status-pill.ivqa-bad {
  background: rgba(239, 68, 68, 0.14);
  color: #991b1b;
}

.ivqa-dash-stats .ivqa-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ivqa-icon-bg);
  color: var(--ivqa-icon-fg);
  flex: 0 0 auto;
}

.ivqa-dash-stats .ivqa-stat-icon i {
  font-size: 18px;
  line-height: 1;
  opacity: 0.95;
}

@media (max-width: 575.98px) {
  .ivqa-hero-title {
    font-size: 20px;
  }
}

.table img {
  border: 1px solid #eee;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}
