.dash-wrap {
  padding-bottom: 24px;
}

.dash-wrap .card {
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: box-shadow .15s ease;
}

.dash-wrap .card:hover {
  box-shadow: 0 4px 14px rgba(16, 24, 40, .07);
}

.dash-wrap .card-body {
  padding: 20px 22px;
}

.dash-wrap h6 {
  font-size: 15px;
  letter-spacing: -.01em;
}

/* KPI — layout orizzontale (icona + testo) */

.dash-kpi {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dash-kpi-ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 auto;
}

.dash-kpi-val {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.dash-kpi-lbl {
  color: var(--bs-secondary-color);
  font-size: 13px;
  margin-top: 2px;
}

.nav-pills-sm {
  gap: 4px;
}

.nav-pills-sm .nav-link {
  padding: 4px 11px;
  font-size: 12.5px;
  border-radius: 8px;
  color: var(--bs-secondary-color);
}

.nav-pills-sm .nav-link.active {
  background: var(--bs-primary);
  color: #fff;
}

.dash-table {
  font-size: 13.5px;
}

.dash-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--bs-secondary-color);
  font-weight: 700;
  border-bottom: 1px solid var(--bs-border-color);
  white-space: nowrap;
}

.dash-table td {
  font-size: 13.5px;
  vertical-align: middle;
}

/* Scroll verticale + header sticky (tante righe) */

.dash-tscroll {
  max-height: 440px;
  overflow-y: auto;
  overflow-x: auto;
}

.dash-tscroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bs-body-bg);
}

.dash-lscroll {
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.dash-tscroll::-webkit-scrollbar, .dash-lscroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dash-tscroll::-webkit-scrollbar-thumb, .dash-lscroll::-webkit-scrollbar-thumb {
  background: var(--bs-border-color);
  border-radius: 8px;
}

.dash-tscroll::-webkit-scrollbar-track, .dash-lscroll::-webkit-scrollbar-track {
  background: transparent;
}

.dash-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}

.dash-top-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dash-top-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bs-primary);
}

.dash-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
}

.dash-chip.voce {
  background: var(--bs-warning-bg-subtle);
  color: #9a6b00;
}

.dash-recip {
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.dash-warn-3 {
  color: #b00020;
  font-weight: 700;
  font-size: 12px;
}

.dash-warn-4 {
  color: #6b7280;
  font-weight: 700;
  font-size: 12px;
}

.dash-empty {
  color: var(--bs-secondary-color);
  font-size: 13px;
  padding: 22px 0;
  text-align: center;
}

.dash-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--bs-border-color);
}

.dash-list-row:first-child {
  border-top: 0;
}

.dash-report-btn {
  border-radius: 8px;
  font-size: 12px;
  padding: 3px 10px;
}

