body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; }
.low-stock { color: #b91c1c; font-weight: 600; }
.card-small { padding: 12px; }

.dashboard-illustration {
  position: relative;
  width: min(100%, 560px);
  padding: 14px;
  border-radius: 24px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
}

.dashboard-window {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #22c55e; }

.dashboard-content {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 400px;
}

.dashboard-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 16px 12px;
}

.sidebar-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 14px;
  font-weight: 700;
}

.sidebar-item {
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 8px;
  font-weight: 600;
}

.sidebar-item.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

.dashboard-main {
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric-box {
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.metric-box small {
  font-size: 0.68rem;
  opacity: 0.7;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-box strong {
  font-size: 0.9rem;
}

.metric-blue { background: #e0f2fe; }
.metric-green { background: #dcfce7; }
.metric-orange { background: #fff7ed; }

.chart-panel, .table-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.chart-header, .table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.pill {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.bars {
  height: 90px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.bars span {
  flex: 1;
  min-height: 18%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.table-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.table-panel th,
.table-panel td {
  padding: 8px 6px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.table-panel tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 991.98px) {
  .dashboard-illustration {
    width: 100%;
  }
}
