/* ================================
   PROVEEDORES · BLOQUE
   Hereda tipografía global (igual que Punto de Equilibrio)
   ================================ */

#bloque-proveedores,
#bloque-proveedores *{
  font-family: inherit;
}

/* Separación del bloque */
#bloque-proveedores{
  margin-top: 24px;
}

/* Selector de vista */
#bloque-proveedores .selector{
  display: flex;
  align-items: center;
  gap: 8px;
}

/* KPIs */
#bloque-proveedores .kpi-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

/* Tabla */
#tablaProveedores{
  width: 100%;
  border-collapse: collapse;
}

#tablaProveedores thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f4f6;
  text-align: left;
  font-weight: 600;
}

#tablaProveedores th,
#tablaProveedores td{
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

/* Textos largos */
#tablaProveedores td{
  max-width: 1px; /* habilita ellipsis en tablas */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hover */
#tablaProveedores tbody tr:hover{
  background: #fafafa;
}

.proveedores-group-row td{
  background: #f8f6fc;
  font-weight: 700;
  border-top: 1px solid #ddd6f3;
}

.proveedores-group-row td:first-child{
  color: #2f2b3a;
}

.proveedores-group-meta{
  color: #6b6478;
  font-weight: 600;
}

.proveedores-detail-row td{
  background: #ffffff;
}

.proveedores-detail-row td:first-child{
  width: 28px;
  padding: 0;
  border-bottom-color: #f0f1f4;
}

.proveedores-principal-empty::before{
  content: "";
  display: block;
  width: 12px;
  margin-left: auto;
}

.proveedores-detail-label{
  padding-left: 22px !important;
  color: #4b5563;
}

.proveedores-detail-label::before{
  content: "↳";
  margin-right: 8px;
  color: #8e5ad7;
}

/* Signos */
#tablaProveedores .neg{ color: #d62728; }
#tablaProveedores .pos{ color: #1f77b4; }

/* ================================
   PROVEEDORES · TIPOGRAFÍA UNIFICADA
   Igual que tablas de Rentabilidad
   ================================ */

#tablaProveedores th,
#tablaProveedores td{
  font-size: 12px;
}
