.app-main--dashboard {
  padding-bottom: 1.5rem;
}

.dash-empresa {
  margin: 0 0 0.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.dash-welcome {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.app-main--dashboard .dashboard-toolbar {
  margin-bottom: 0.75rem;
}

.stat-grid--dash {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.stat-card--compact {
  padding: 0.7rem 0.85rem;
}

.stat-card--compact .stat-card__label {
  margin-bottom: 0.15rem;
  font-size: 0.7rem;
}

.stat-card--compact .stat-card__value {
  font-size: 1.25rem;
  line-height: 1.15;
}

.stat-card--compact .stat-card__hint {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  line-height: 1.25;
}

.dash-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 0.85rem;
  align-items: stretch;
}

.dash-panel {
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  min-width: 0;
  height: 100%;
}

.dash-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.dash-panel__head h2 {
  margin: 0;
  font-size: 0.95rem;
}

.dash-panel__meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.dash-table {
  margin: 0;
}

.dash-table th,
.dash-table td {
  padding: 0.45rem 0.55rem !important;
}

.dash-table th.num,
.dash-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 4.2rem;
}

.dash-table th.share,
.dash-table td.share {
  width: 44%;
}

.dash-share {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.dash-share__bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.75;
}

.dash-share__pct {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 2.6rem;
  text-align: right;
}

.dash-empty-row td {
  text-align: center;
  color: var(--text-tertiary);
  font-weight: 600;
  padding: 1rem 0.75rem !important;
}

.dash-empty,
.dash-empty-item {
  margin: 0.5rem 0;
  color: var(--text-tertiary);
  font-size: 0.84rem;
  font-weight: 600;
}

.dash-imp {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dash-imp__chart {
  min-width: 0;
}

.dash-line__summary {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.dash-line__summary strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.dash-line__summary span {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.dash-line__svg {
  display: block;
  width: 100%;
  height: 7.5rem;
}

.dash-line__svg text {
  fill: var(--text-tertiary);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-body);
}

.dash-line__grid {
  stroke: var(--border);
  stroke-width: 1;
  fill: none;
}

.dash-line__area {
  fill: var(--accent-soft);
}

.dash-line__path {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-line__svg circle {
  fill: var(--accent);
}

.dash-side-title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.dash-rank li {
  display: grid;
  grid-template-columns: 1.2rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.32rem 0;
  border-bottom: 1px solid var(--border);
}

.dash-rank li:last-child {
  border-bottom: 0;
}

.dash-rank__n {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.dash-rank__name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-rank__val {
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

@media (max-width: 1100px) {
  .stat-grid--dash {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stat-grid--dash {
    grid-template-columns: 1fr;
  }
}
