.pac-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  -webkit-overflow-scrolling: touch;
}

.pac-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 14px;
}
.pac-table thead th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  color: #495057;
  white-space: nowrap;
}
.pac-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}
.pac-table tbody tr:hover {
  background: #f8f9fa;
}
.pac-table .col-rango {
  font-weight: 500;
  white-space: nowrap;
}
.pac-table .col-numero {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pac-table .col-importe {
  min-width: 140px;
}
.pac-table .importe-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pac-table .importe-valor {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pac-table .bar-container {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}
.pac-table .bar {
  height: 100%;
  background: #48B9E5;
  border-radius: 2px;
}
.pac-table .col-pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pac-table-caption {
  font-size: 12px;
  color: #6c757d;
  margin-top: 8px;
}

.pac-table-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 0.5rem;
  color: #212529;
}

.desglose-chart {
  margin: 1rem 0 1.5rem;
  max-width: 500px;
  width: 100%;
}

.desglose-periodo {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.desglose-bar {
  display: flex;
  height: 28px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.desglose-bar__segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
  position: relative;
  transition: opacity 0.2s ease;
}
.desglose-bar__segment span {
  padding: 0 4px;
}
.desglose-bar__segment:hover {
  opacity: 0.85;
}

.desglose-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 13px;
  margin-top: 0.5rem;
}

.desglose-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desglose-legend__color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.desglose-legend__label {
  color: #495057;
}

.desglose-tooltip {
  position: fixed;
  background: #212529;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.15s ease;
  max-width: 200px;
  line-height: 1.4;
}
.desglose-tooltip.visible {
  opacity: 1;
}
.desglose-tooltip strong {
  display: block;
  margin-bottom: 2px;
}

.bg-renta {
  background-color: #48B9E5;
}

.bg-eco {
  background-color: #7ABD94;
}

.bg-agroamb {
  background-color: #FFE19F;
  color: #333;
}

.bg-frutas {
  background-color: #FF7954;
}

.bg-posei {
  background-color: #5B4A59;
}

.bg-otros {
  background-color: #868B86;
}

.grandes-perceptores-wrapper {
  margin: 2rem 0 2.5rem;
}

.grandes-perceptores-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 0.25rem;
  color: #212529;
  line-height: 1.4;
}

.grandes-perceptores-subtitle {
  font-size: 15px;
  color: #6c757d;
  margin-bottom: 1rem;
}

.grandes-perceptores-chart {
  width: 100%;
  min-height: 340px;
}
@media (max-width: 576px) {
  .grandes-perceptores-chart {
    min-height: 420px;
  }
}

.grandes-perceptores-source {
  font-size: 11px;
  color: #868e96;
  margin-top: 0.75rem;
}

.grandes-perceptores-annotation {
  background: #f8f9fa;
  border-left: 3px solid #48B9E5;
  padding: 12px 16px;
  margin-top: 1.25rem;
  font-size: 13px;
  color: #495057;
  line-height: 1.5;
}
.grandes-perceptores-annotation strong {
  color: #212529;
}

@media (max-width: 768px) {
  .pac-table {
    font-size: 12px;
  }
  .pac-table thead th,
  .pac-table tbody td {
    padding: 8px 6px;
  }
  .grandes-perceptores-title {
    font-size: 14px;
  }
  .grandes-perceptores-annotation {
    padding: 10px 12px;
    font-size: 12px;
  }
}
@media (max-width: 576px) {
  .desglose-bar {
    height: 24px;
  }
  .desglose-bar__segment {
    font-size: 10px;
  }
  .desglose-legend {
    font-size: 12px;
  }
  .desglose-legend__color {
    width: 10px;
    height: 10px;
  }
}
.number-3 {
  font-family: "Rubik", sans-serif !important;
  font-weight: 700;
  font-size: clamp(36px, 20px + 3.2vw, 64px) !important;
  color: #2ab20b;
  line-height: 1.1;
  display: block;
  margin-bottom: 10px;
}

.dato-subtitulo {
  display: block;
  font-weight: bold;
  font-size: clamp(1.1rem, 0.7rem + 1vw, 2rem);
  color: #2ab20b;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.dato-descripcion {
  font-weight: bold;
  font-size: clamp(0.95rem, 0.6rem + 0.7vw, 1.5rem);
  color: #000;
  line-height: 1.2;
  margin-top: 0.5rem;
}
