.l4d-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.l4d-dashboard-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.l4d-dashboard-card span {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.l4d-dashboard-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
  color: var(--l4d-primary, #c1192d);
}

.l4d-dashboard-card small {
  display: block;
  margin-top: 8px;
  color: #6b7280;
}

.l4d-dashboard-bars {
  display: grid;
  gap: 12px;
}

.l4d-dashboard-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
}

.l4d-dashboard-bar-row > span {
  font-size: .85rem;
  color: #6b7280;
}

.l4d-dashboard-bar-row > div {
  position: relative;
  display: grid;
  gap: 4px;
}

.l4d-dashboard-bar-row i,
.l4d-dashboard-bar-row b {
  display: block;
  height: 8px;
  border-radius: 999px;
}

.l4d-dashboard-bar-row i {
  background: #1a80b6;
}

.l4d-dashboard-bar-row b {
  background: #c1192d;
}

@media (max-width: 1400px) {
  .l4d-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .l4d-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.l4d-dashboard-chart {
  position: relative;
  min-height: 320px;
  width: 100%;
}

.l4d-dashboard-chart canvas {
  width: 100% !important;
  height: 320px !important;
}

.l4d-dashboard-alert-list {
  display: grid;
  gap: 8px;
}

.l4d-dashboard-alert {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.l4d-dashboard-alert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0369a1;
}

.l4d-dashboard-alert--warning .l4d-dashboard-alert__icon {
  background: #fef3c7;
  color: #92400e;
}

.l4d-dashboard-alert--success .l4d-dashboard-alert__icon {
  background: #dcfce7;
  color: #166534;
}

.l4d-dashboard-alert--danger .l4d-dashboard-alert__icon {
  background: #fee2e2;
  color: #b91c1c;
}

.l4d-dashboard-alert--primary .l4d-dashboard-alert__icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.l4d-dashboard-alert--secondary .l4d-dashboard-alert__icon {
  background: #f1f5f9;
  color: #475569;
}

.l4d-dashboard-alert__content {
  min-width: 0;
}

.l4d-dashboard-alert__content strong,
.l4d-dashboard-alert__content span {
  display: block;
  overflow-wrap: anywhere;
}

.l4d-dashboard-alert__content strong {
  color: #111827;
  font-size: .9rem;
}

.l4d-dashboard-alert__content span {
  color: #6b7280;
  font-size: .8rem;
}

.l4d-dashboard-alert__count {
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 768px) {
  .l4d-dashboard-alert {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .l4d-dashboard-alert .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }
}
