/* =========================================================
   FASE 2 — EMPRESAS
   ========================================================= */
.empresas-cabecera {
  min-height: 54px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.empresas-total-card {
  min-width: 116px;
  height: 52px;
  border: 1px solid var(--borde);
  border-radius: 9px;
  background: #fff;
  padding: 8px 13px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.empresas-total-card strong { font-size: 20px; color: #0b43ff; }
.empresas-total-card span { color: var(--secundario); font-size: 10px; }

.empresas-herramientas {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 180px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.buscador-empresas {
  height: 52px;
  border: 1px solid var(--borde);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.buscador-empresas svg { width: 17px; height: 17px; color: #71809a; flex: 0 0 auto; }
.buscador-empresas input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172854;
  font-size: 11px;
}
.buscador-empresas input::placeholder { color: #8d98aa; }
.empresas-filtro-asociacion,
.empresas-filtro-estatus { width: 100%; }

.empresas-tabla-card {
  height: calc(100vh - 240px);
  min-height: 520px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
}
.empresas-tabla-resumen {
  min-height: 44px;
  border-bottom: 1px solid var(--borde);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.empresas-tabla-resumen strong { font-size: 11px; }
.empresas-tabla-resumen span {
  padding-left: 10px;
  border-left: 1px solid var(--borde);
  color: var(--secundario);
  font-size: 9px;
}
.empresas-tabla-scroll { flex: 1; min-height: 0; overflow: auto; }
.empresas-tabla {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}
.empresas-tabla th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--borde);
  background: #f8faff;
  color: #6a7893;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-size: 8px;
  font-weight: 750;
}
.empresas-tabla td {
  height: 58px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef1f6;
  color: #24345e;
  vertical-align: middle;
  font-size: 9px;
}
.empresas-tabla tbody tr:hover { background: #fbfcff; }
.empresas-tabla th:nth-child(1) { width: 260px; }
.empresas-tabla th:nth-child(2) { width: 125px; }
.empresas-tabla th:nth-child(3) { width: 185px; }
.empresas-tabla th:nth-child(4) { width: 125px; }
.empresas-tabla th:nth-child(5) { width: 130px; }
.empresas-tabla th:nth-child(6) { width: 230px; }
.empresas-tabla th:nth-child(7) { width: 100px; }

.empresa-identidad { min-width: 0; }
.empresa-identidad strong,
.empresa-identidad span { display: block; }
.empresa-identidad strong {
  color: #0a1c50;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
.empresa-identidad span { margin-top: 3px; color: #7a879e; font-size: 8px; }
.empresa-actividad,
.empresa-direccion {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.estatus-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.estatus-favor { color: #0c8648; background: #e9f8f0; }
.estatus-otro { color: #c20d2a; background: #fdecef; }
.estatus-pendiente { color: #68758e; background: #f0f2f6; }
.estatus-operativo { color: #344467; font-size: 8px; white-space: nowrap; }
.empresa-accion { text-align: right; }
.empresa-ver-mapa {
  height: 30px;
  border: 1px solid #dbe4ff;
  border-radius: 7px;
  background: #f4f7ff;
  color: #0b43ff;
  padding: 0 10px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.empresa-ver-mapa:hover { background: #eaf0ff; }
.empresa-sin-ubicacion { color: #9aa4b5; font-size: 8px; white-space: nowrap; }
.empresas-vacio {
  flex: 1;
  display: grid;
  place-items: center;
  color: #7a879e;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .empresas-herramientas { grid-template-columns: minmax(240px, 1fr) 190px 160px; }
}

