.order-card .card-header {
  color: #fff;
  border-bottom: 0;
}

.header-new { background: #0dcaf0; }
.header-inwork { background: #ffc107; color: #1f2937; }
.header-done { background: #198754; }
.header-canceled { background: #dc3545; }

.kpi {
  border-radius: 0.75rem;
  padding: 1.25rem;
  color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
}
.kpi-title { font-weight: 600; opacity: .95; }
.kpi-value { font-size: 2rem; font-weight: 700; line-height: 1.1; margin-top: .25rem; }

.kpi-blue { background: #0d6efd; }
.kpi-green { background: #198754; }
.kpi-yellow { background: #ffc107; color: #1f2937; }
.kpi-red { background: #dc3545; }
.kpi-orange { background: #fd7e14; }
.kpi-dark { background: #212529; }

.analytics-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e9f2ff;
}

@media (max-width: 576px) {
  .kpi { padding: 1rem; }
  .kpi-value { font-size: 1.75rem; }
}

/* Compact stats (master cabinet) */
.stat-mini {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 0.35rem 0.9rem rgba(0,0,0,.06);
  position: relative;
  min-height: 74px;
}
.stat-mini::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 6px;
  border-radius: 6px;
  background: #0d6efd;
}
.stat-mini-label {
  color: #6b7280;
  font-weight: 600;
  margin-left: 18px;
}
.stat-mini-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  margin-left: 18px;
}
.stat-mini-green::before { background: #198754; }
.stat-mini-orange::before { background: #fd7e14; }
.stat-mini-red::before { background: #dc3545; }
.stat-mini-dark::before { background: #212529; }
