/* =========================================================
   PATCH 021 — BITÁCORA DE SEGUIMIENTOS POR EMPRESA
   ========================================================= */
.seguimiento-layout {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(210px, .8fr) minmax(220px, 1.2fr);
  gap: 12px;
}
.seguimiento-captura-card,
.seguimiento-historial-card {
  min-height: 0;
}
.seguimiento-captura-card {
  display: flex;
  flex-direction: column;
}
.seguimiento-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.seguimiento-cabecera > span {
  color: var(--secundario);
  font-size: 9px;
}
.seguimiento-label {
  margin: 2px 0 7px;
  color: #10214f;
  font-size: 10px;
  font-weight: 700;
}
.seguimiento-textarea {
  width: 100%;
  flex: 1 1 auto;
  min-height: 105px;
  resize: none;
  border: 1px solid #d8dfeb;
  border-radius: 8px;
  padding: 11px 12px;
  color: #17306d;
  background: #fff;
  font: inherit;
  font-size: 10px;
  line-height: 1.5;
  outline: none;
}
.seguimiento-textarea:focus {
  border-color: #0b43ff;
  box-shadow: 0 0 0 2px rgba(11, 67, 255, .08);
}
.seguimiento-acciones {
  margin-top: 10px;
  min-height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.seguimiento-guardar {
  width: auto;
  min-width: 150px;
  height: 34px;
  padding: 0 14px;
  flex: 0 0 auto;
}
.seguimiento-mensaje {
  margin-right: auto;
  color: #60708f;
  font-size: 9px;
}
.seguimiento-mensaje.error { color: var(--rojo); }
.seguimiento-mensaje.exito { color: var(--verde); }
.seguimiento-historial-card {
  display: flex;
  flex-direction: column;
}
.seguimiento-tabla-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid #edf0f5;
  border-radius: 8px;
}
.seguimiento-tabla {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.seguimiento-tabla th,
.seguimiento-tabla td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  vertical-align: top;
  color: #17306d;
  font-size: 9px;
  line-height: 1.45;
}
.seguimiento-tabla th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8faff;
  color: #526487;
  font-weight: 750;
}
.seguimiento-tabla th:first-child,
.seguimiento-tabla td:first-child {
  width: 175px;
  white-space: nowrap;
}
.seguimiento-vacio {
  min-height: 90px;
  display: grid;
  place-items: center;
  color: #8490a5;
  font-size: 10px;
}
.seguimiento-vacio.oculto { display: none; }

@media (min-width: 761px) and (max-height: 800px) {
  .seguimiento-layout {
    grid-template-rows: minmax(175px, .75fr) minmax(180px, 1.25fr);
    gap: 9px;
  }
  .seguimiento-textarea { min-height: 78px; }
  .seguimiento-tabla th,
  .seguimiento-tabla td { padding: 7px 10px; }
}

/* =========================================================
   PATCH 023 — seguimiento dentro del bloque + retorno mapa
   ========================================================= */
.seguimiento-layout {
  grid-template-rows: minmax(250px, .9fr) minmax(220px, 1.1fr);
}
.seguimiento-captura-card {
  overflow: hidden;
}
.seguimiento-textarea {
  min-height: 90px;
}
.seguimiento-acciones {
  position: static;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  min-height: 34px;
  flex: 0 0 34px;
}
.seguimiento-guardar {
  position: static;
  align-self: center;
  margin: 0;
}

.boton-volver-empresa-mapa {
  position: absolute;
  z-index: 720;
  right: 14px;
  top: 56px;
  height: 34px;
  border: 1px solid #cfd9ed;
  border-radius: 7px;
  background: rgba(255,255,255,.98);
  color: #0b43ff;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 750;
  box-shadow: 0 4px 14px rgba(16,38,80,.12);
}
.boton-volver-empresa-mapa:hover { background: #f5f8ff; }


