/* =========================================================
   Control de Acceso — estilos propios (portería, historial).
   La estructura y la marca vienen de /marca/marca.css y /marca/plataforma.css
   (las mismas del Portal GPS). --conjunto = color del conjunto.
   ========================================================= */

/* Logo o color del conjunto en la cabecera */
.acc-ico-conjunto { background: color-mix(in srgb, var(--conjunto) 14%, #fff); color: var(--conjunto); }

/* Ingreso por la dirección del conjunto */
.acc-login-conjunto { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 12px; border: 1px solid var(--ss-line);
  border-left: 4px solid var(--conjunto); border-radius: 12px; background: #F8FAFC; }
.acc-login-conjunto img { max-height: 40px; max-width: 110px; object-fit: contain; }
.acc-login-conjunto > span { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--conjunto) 14%, #fff); color: var(--conjunto); }
.acc-login-conjunto small { display: block; color: var(--ss-muted); font-size: .72rem; }
.acc-login-conjunto strong { color: var(--ss-navy); font-family: 'Space Grotesk', sans-serif; }

/* Lector de cédula */
.panel-lector { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: #EEF4FF; border: 1px solid #CFE0FF; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.panel-lector label { font-weight: 700; color: var(--ss-navy); font-size: .85rem; margin: 0; }
.panel-lector label i { color: var(--ss-blue); }
.panel-lector input { max-width: 420px; flex: 1 1 260px; }
.lector-estado { font-size: .8rem; color: #047857; font-weight: 600; }
.doc-estado { display: block; font-size: .76rem; margin-top: 4px; font-weight: 600; color: #94A3B8; }
.doc-estado.encontrado { color: #047857; }

/* Cámara del visitante */
.camara-caja { width: 100%; aspect-ratio: 1 / 1; max-width: 240px; background: #0A2540; border-radius: 14px; overflow: hidden; display: grid; place-items: center; position: relative; margin: 0 auto; }
.camara-caja video, .camara-caja img { width: 100%; height: 100%; object-fit: cover; }
.camara-caja .camara-vacia { color: #7F95B3; text-align: center; font-size: .8rem; }
.camara-caja .camara-vacia i { display: block; font-size: 2.2rem; margin-bottom: 6px; color: #29B6F6; }
.camara-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }

.foto-mini { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: #E2E8F0; color: #94A3B8; }

/* Historial */
.hist-fila { display: grid; grid-template-columns: 90px 56px minmax(140px, 1fr) 110px minmax(160px, 1.3fr) minmax(150px, 1fr) 100px; gap: 14px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--ss-line); }
.hist-fila:last-child { border-bottom: 0; }
.hist-id { font-size: .78rem; color: #94A3B8; font-weight: 700; }
.hist-id small { display: block; font-weight: 500; line-height: 1.4; margin-top: 2px; }
.hist-foto img, .hist-foto span { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: #EEF1F5; color: #94A3B8; font-size: 1.2rem; }
.hist-nombre { font-weight: 600; text-transform: capitalize; }
.hist-doc { font-size: .8rem; color: var(--ss-muted); }
.hist-unidad { font-weight: 700; color: var(--ss-blue); }
.hist-nota { font-size: .8rem; line-height: 1.6; }
.hist-mov { font-size: .8rem; }
.hist-mov div + div { margin-top: 6px; }
.hist-mov i { width: 16px; }
.hist-mov .ent { color: #059669; }
.hist-mov .sal { color: #BE123C; }
@media (max-width: 991.98px) {
  .hist-fila { grid-template-columns: 56px 1fr auto; }
  .hist-id, .hist-nota { grid-column: 2 / -1; }
  .hist-id { order: 5; }
  .hist-unidad { order: 2; }
  .hist-mov { grid-column: 1 / -1; display: flex; gap: 16px; }
  .hist-mov div + div { margin-top: 0; }
}

/* Estados */
.badge-dentro { background: #DDFBF2; color: #047857; }
.badge-fuera { background: #F1F5F9; color: #64748B; }
.badge-pend { background: #FEF3C7; color: #92400E; }
.badge-dentro, .badge-fuera, .badge-pend { font-weight: 600; }

.color-punto { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; border: 1px solid rgba(0,0,0,.1); }
code.url-acceso { font-size: .78rem; background: #F1F5F9; color: var(--ss-navy); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.acciones { white-space: nowrap; text-align: right; }
.acciones form { display: inline; }
