/* ============================================================
   DANGOFE OS LIQUID V2 — asistencia.css
   Módulo ASISTENCIA / PONCHES (DANGOFE-ASISTENCIA-001 · v1.0.34)
   Estética Liquid Glass: reutiliza el estilo del sistema y añade
   la capa propia del módulo (prefijo as-).
   ============================================================ */

.as-wrap { display: flex; flex-direction: column; gap: 16px; }

/* ---------- encabezado ---------- */
.as-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.as-head__title h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.5rem; }
.as-sub { margin: 4px 0 0; opacity: .75; font-size: .92rem; line-height: 1.45; }

/* ---------- pestañas ---------- */
.as-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.as-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass-bg-input); color: inherit; cursor: pointer;
  font: inherit; font-size: .9rem; backdrop-filter: blur(8px); transition: all .18s ease;
}
.as-tab:hover { background: var(--glass-bg-hover); }
.as-tab--activa { background: rgba(99,132,255,.28); border-color: rgba(99,132,255,.55); font-weight: 600; }

/* ---------- cuerpo / utilidades ---------- */
.as-body { display: flex; flex-direction: column; gap: 14px; }
.as-cargando, .as-vacio { padding: 32px 18px; border-radius: 16px; text-align: center; opacity: .82;
  background: var(--glass-bg); border: 1px solid var(--glass-border); }
.as-vacio { display: flex; align-items: center; justify-content: center; gap: 8px; }
.as-error { color: #ff8f8f; font-size: .9rem; display: flex; align-items: center; gap: 6px; padding: 14px; }
.as-hint { opacity: .68; font-size: .82rem; line-height: 1.45; margin: 6px 0; }
.as-sinv { opacity: .7; font-style: italic; font-size: .85em; }

.as-input {
  padding: 9px 12px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: var(--glass-bg-input); color: inherit; font: inherit; font-size: .9rem;
  outline: none; transition: border-color .15s ease; width: 100%; box-sizing: border-box;
}
.as-input:focus { border-color: rgba(99,132,255,.65); }
.as-area { resize: vertical; min-height: 42px; font-family: inherit; }

/* ---------- tarjetas del panel ---------- */
.as-panel-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.as-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--glass-bg-input); border: 1px solid var(--glass-border); backdrop-filter: blur(8px);
}
.as-card__ic {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(99,132,255,.18); border: 1px solid rgba(99,132,255,.34); flex-shrink: 0;
}
.as-card__txt { display: flex; flex-direction: column; }
.as-card__val { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.as-card__lab { opacity: .72; font-size: .82rem; margin-top: 4px; }

/* ---------- panel en vivo ---------- */
.as-panel-live { padding: 16px; border-radius: 18px; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.as-panel-live__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.as-panel-live__head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; }
.as-vivo {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; opacity: .8;
  padding: 4px 10px; border-radius: 999px; background: rgba(80,200,120,.16); border: 1px solid rgba(80,200,120,.35);
}
.as-live-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.as-live-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.as-live-hora { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 46px; }
.as-live-nombre { flex: 1; }
.as-live-verif { opacity: .65; font-size: .82rem; }

/* ---------- badges de tipo de marca ---------- */
.as-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  white-space: nowrap;
}
.as-badge--ent { background: rgba(80,200,120,.18); border: 1px solid rgba(80,200,120,.4); color: #8be3aa; }
.as-badge--sal { background: rgba(99,132,255,.18); border: 1px solid rgba(99,132,255,.42); color: #a9bcff; }

/* ---------- filtros ---------- */
.as-filtros {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  padding: 14px; border-radius: 16px; background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.as-campo { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; min-width: 150px; }
.as-campo span { opacity: .78; }
.as-campo--ancho { width: 100%; min-width: 0; }
.as-filtros__btns { display: flex; gap: 8px; }

/* ---------- tabla ---------- */
.as-tabla-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--glass-border); }
.as-tabla { width: 100%; border-collapse: collapse; font-size: .88rem; }
.as-tabla thead th {
  text-align: left; padding: 11px 12px; background: var(--glass-bg-input);
  font-weight: 600; white-space: nowrap; position: sticky; top: 0;
}
.as-tabla tbody td { padding: 10px 12px; border-top: 1px solid var(--glass-border); vertical-align: middle; }
.as-tabla tbody tr:hover { background: var(--glass-bg-soft); }
.as-td-foto { text-align: center; }
.as-foto-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px;
  border-radius: 9px; border: 1px solid var(--glass-border); background: var(--glass-bg-input);
  color: inherit; cursor: pointer; transition: all .15s ease;
}
.as-foto-btn:hover { background: rgba(99,132,255,.24); border-color: rgba(99,132,255,.5); }
.as-nofoto { opacity: .4; }

/* ---------- visor de foto ---------- */
.as-foto-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
}
.as-foto-modal { position: relative; max-width: 92vw; max-height: 88vh; }
.as-foto-modal img { max-width: 92vw; max-height: 88vh; border-radius: 14px; display: block; }
.as-foto-cerrar {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: rgba(20,20,30,.9); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- sin vincular / vinculados ---------- */
.as-vinculados { margin-top: 18px; padding: 14px 16px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); }
.as-vinculados h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.as-vinc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.as-vinc-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: var(--glass-bg-soft); }

/* ---------- configuración ---------- */
.as-conf { padding: 16px; border-radius: 18px; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.as-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.as-sec-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.08rem; }
.as-sec-resumen { opacity: .82; font-size: .9rem; margin: 8px 0 0; }
.as-sec-resumen--warn { color: #ffd28a; }
.as-sec-detalle { margin-top: 14px; display: flex; flex-direction: column; gap: 16px; }
.as-conf-bloque { padding: 14px 16px; border-radius: 14px; background: var(--glass-bg-soft); border: 1px solid var(--glass-border); }
.as-conf-bloque h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .98rem; }
.as-conf-acc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.as-url-box { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.as-url { flex: 1; min-width: 220px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; }

/* ---------- responsivo ---------- */
@media (max-width: 560px) {
  .as-campo { min-width: 100%; }
  .as-filtros__btns { width: 100%; }
}
