* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #121214;
  color: #fff;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1100px;
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.card {
  background-color: #1a1a1e;
  border: 1px solid #28282c;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #9a9a9e;
  margin-bottom: 12px;
}

.btn-report {
  background: #25252a;
  border: 1px solid #333338;
  color: #ccc;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}

.stat-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.stat-val {
  font-size: 28px;
  font-weight: 700;
}

/* Бейджи процентов */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.badge.up { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.badge.down { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

/* Графики */
.chart-box {
  position: relative;
  height: 120px;
  width: 100%;
  margin-top: auto;
}

/* Легенда */
.legend {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 11px;
  color: #777;
  margin-top: 10px;
}
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; }
.dot.gray { background: #666; }
.dot.blue { background: #3b82f6; }
.dot.orange { background: #d97706; }
.dot.dark-orange { background: #78350f; }

/* Списки (Total Sales breakdown, Conversion, Location) */
.sub-list, .funnel-list, .location-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-left { display: flex; align-items: center; gap: 8px; color: #aaa; }
.list-sub { display: block; font-size: 11px; color: #666; }
.list-right { display: flex; align-items: center; gap: 10px; }
.list-val { font-weight: 600; }