/* estilos del sistema: economía (pestaña Tesoro y sección de hacienda) */
.eco-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 6px 0 8px;
}
.eco-kpi div {
  background: #141a1f;
  border: 2px solid #000;
  padding: 5px 4px;
  text-align: center;
  line-height: 1.2;
}
.eco-kpi b {
  display: block;
  font:
    400 11px/1.5 "Press Start 2P",
    monospace;
  color: var(--gold);
}
.eco-kpi small {
  color: var(--dim);
  font-size: 13px;
}
.eco-kpi .eco-mal b {
  color: #e0503f;
}
.eco-sub button {
  min-height: 34px;
  padding: 5px 2px;
  font-size: 9px;
}
.eco-bal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.eco-bal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.35;
}
.eco-bal li {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.eco-bal li.eco-cab {
  color: var(--dim);
  border-bottom: 2px solid var(--edge);
  margin-bottom: 2px;
}
.eco-neto {
  margin: 8px 0 0;
  font-size: 15px;
}
.eco-up {
  color: #6fcf6a;
  font-style: normal;
}
.eco-dn {
  color: #ef6a55;
  font-style: normal;
}
.eco-res {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}
.eco-res div {
  background: #141a1f;
  border: 2px solid #000;
  padding: 3px 2px;
  text-align: center;
  line-height: 1.15;
  font-size: 14px;
}
.eco-res i {
  font-style: normal;
  color: var(--gold);
  margin-right: 3px;
}
.eco-res small {
  display: block;
  color: var(--dim);
  font-size: 12px;
}
.eco-pol button {
  min-height: 40px;
  padding: 5px 4px;
  font-size: 9px;
}
.eco-pol button small {
  font-size: 8px;
}
.eco-pv {
  font-size: 15px;
  margin-bottom: 6px;
}
.eco-mer {
  margin-top: 8px;
}
.eco-fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 66px 42px 42px;
  gap: 4px;
  align-items: center;
  font-size: 15px;
  padding: 2px 0;
  border-bottom: 1px solid #2a343c;
}
.eco-fila > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eco-fila > b,
.eco-fila > span:nth-child(2) {
  text-align: right;
  font-weight: 600;
}
.eco-fila > span:nth-child(3) {
  text-align: center;
}
.eco-fila.eco-hd {
  color: var(--dim);
  font-size: 13px;
  border-bottom: 2px solid var(--edge);
}
.eco-fila i {
  font-style: normal;
  margin-left: 2px;
}
button.eco-mini {
  min-height: 30px;
  padding: 3px 2px;
  font-size: 9px;
}
.eco-ruta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #2a343c;
  font-size: 15px;
  line-height: 1.3;
}
.eco-ruta small {
  color: var(--gold);
  font-size: 13px;
}
.eco-ruta button {
  padding: 3px 6px;
}
.eco-causas {
  margin: 0 0 8px;
  font-size: 14px;
}
.eco-causas summary {
  cursor: pointer;
  color: var(--dim);
}
.eco-causas ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 8px;
  border-left: 2px solid var(--edge);
}
.eco-causas li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.3;
}
.eco-dec button {
  min-height: 40px;
  padding: 5px 4px;
  font-size: 9px;
}
.eco-dec button small {
  font-size: 8px;
}
.eco-peores {
  margin-top: 0;
}
.eco-peores button {
  flex: 1 1 0;
  min-height: 36px;
}
.eco-yac {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
}
.eco-yac li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 92px;
  gap: 6px;
  align-items: center;
  line-height: 1.35;
}
.eco-yac li > span:last-child {
  text-align: right;
  font-size: 13px;
}
.eco-riq {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 11px;
}
.eco-fer {
  color: #9ccc65;
}
.eco-fer.eco-med {
  color: #e8b632;
}
.eco-fer.eco-dn {
  color: #ef6a55;
}
