/* panel-dashboard — gri tonlar, metrik şeritleri nötr */

.dashboard-head {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dashboard-head h1 {
  font-size: 1.5rem;
}

.metric-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-tile {
  padding: 1rem 1rem 1rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left-width: 3px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition:
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}

.metric-tile:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.metric-tile:nth-child(1) {
  border-left-color: #71717a;
}
.metric-tile:nth-child(2) {
  border-left-color: #52525b;
}
.metric-tile:nth-child(3) {
  border-left-color: #64748b;
}
.metric-tile:nth-child(4) {
  border-left-color: #57534e;
}
.metric-tile:nth-child(5) {
  border-left-color: #6b7280;
}
.metric-tile:nth-child(6) {
  border-left-color: #78716c;
}
.metric-tile:nth-child(7) {
  border-left-color: #5c5c66;
}
.metric-tile:nth-child(8) {
  border-left-color: #444448;
}

.metric-tile .label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.metric-tile .value {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.metric-tile.invert .value {
  color: var(--text-muted);
}

.tax-block {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-inset);
  box-shadow: var(--shadow);
}

.tax-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.tax-value {
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 3.5rem;
  color: var(--text);
}

.chart-wrap {
  margin-top: 1rem;
  height: 140px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.28);
}

.chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.actions-bar {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.history-list li {
  padding: 0.65rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.history-list li:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.history-list li:last-child {
  margin-bottom: 0;
}

.history-meta {
  color: var(--text-soft);
  font-size: 0.75rem;
}
