.dashboard {
  padding-top: 20px;
}

.hero-row,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.date {
  margin: 0 0 6px;
  color: #00a99d;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-row h2 {
  margin: 0;
  font-size: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 14px;
}

.stat-card {
  position: relative;
  min-height: 122px;
  padding: 18px;
}

.stat-card em {
  position: absolute;
  top: 24px;
  right: 18px;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: 28px;
  line-height: 1;
}

.stat-card p,
.stat-card small {
  margin: 6px 0 0;
  color: #273244;
  font-weight: 800;
}

.stat-card small {
  display: block;
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
  gap: 14px;
}

.chart-card,
.quick-card,
.activity-card {
  padding: 18px;
}

.chart-card {
  min-height: 178px;
}

h3 {
  margin: 0;
  font-size: 16px;
}

.chart-bars {
  height: 118px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: stretch;
  gap: 18px;
  padding: 12px 28px 0;
}

.bar-item {
  display: grid;
  grid-template-rows: 1fr 22px;
  justify-items: center;
  align-items: end;
  min-width: 0;
}

.bar-item span {
  display: block;
  width: 28px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #2563ff 0%, #7aa2ff 100%);
  box-shadow: 0 6px 12px rgba(37, 99, 255, 0.18);
}

.bar-item b {
  color: #a0abc0;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.quick-grid button {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 900;
  text-align: left;
}

.quick-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--blue);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.quick-search,
.activity-search {
  font-size: 22px;
}

.quick-grid button span:not(.quick-icon) {
  color: #111827;
}

.model-card {
  grid-column: 1;
  padding: 18px;
}

.card-head a {
  color: var(--blue);
  font-weight: 900;
}

.model-row {
  display: grid;
  grid-template-columns: 10px 1fr 80px 58px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid #e8edf4;
}

.model-row .status {
  justify-content: center;
  width: 58px;
  white-space: nowrap;
  text-align: center;
}

.model-row b,
.model-row small {
  display: block;
}

.model-row small {
  color: var(--muted);
}

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

.dot.green {
  background: var(--green);
}

.dot.orange {
  background: var(--orange);
}

.model-row i {
  height: 6px;
  border-radius: 999px;
  background: #e3e9f2;
}

.model-row i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.model-row i.orange span {
  background: var(--orange);
}

.activity-card {
  grid-column: 2;
  grid-row: 2;
}

.activity-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.activity-card li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e8edf4;
}

.activity-icon {
  grid-row: span 2;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.activity-card small {
  color: var(--muted);
}

@media (max-width: 1300px) {
  .stat-grid,
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .model-card,
  .activity-card {
    grid-column: auto;
    grid-row: auto;
  }
}
