/* ===================== Control de asistencia (Día / Presentismo / Horarios) ===================== */
.as-top { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.as-datenav { display:flex; align-items:center; gap:6px; }
.as-datenav button { background:white; border:1px solid var(--vw-grey-2); color:var(--vw-blue); width:36px; height:36px; border-radius:8px; font-size:16px; font-weight:700; }
.as-datenav button.hoy { width:auto; padding:0 12px; font-size:13px; }
.as-datenav input[type=date] { height:36px; border:1px solid var(--vw-grey-2); border-radius:8px; padding:0 10px; font-family:var(--font); font-size:14px; color:var(--vw-blue); font-weight:600; }
.as-datelbl { font-size:15px; font-weight:700; color:var(--vw-blue); margin-left:6px; text-transform:capitalize; }
.as-sync { font-size:12px; padding:6px 10px; border-radius:100px; background:var(--green-soft); color:#065F46; font-weight:600; }
.as-sync.warn { background:var(--red-soft); color:#991B1B; }

.as-kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(130px,1fr)); gap:10px; margin-bottom:22px; }
.as-kpi { background:white; border-radius:var(--radius); box-shadow:var(--shadow); padding:14px 16px; border-top:4px solid var(--vw-grey-2); cursor:default; }
.as-kpi[data-go] { cursor:pointer; }
.as-kpi .n { font-size:28px; font-weight:700; color:var(--vw-blue); line-height:1; }
.as-kpi .l { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; color:var(--vw-grey-4); margin-top:6px; }
.as-kpi.ok { border-top-color:var(--green); }
.as-kpi.bad { border-top-color:var(--red); }
.as-kpi.bad .n { color:var(--red); }
.as-kpi.mid { border-top-color:var(--orange); }
.as-kpi.mid .n { color:#B45309; }

.as-sec { background:white; border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:16px; overflow:hidden; }
.as-sec-h { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 18px; border-bottom:1px solid var(--vw-grey-2); }
.as-sec-h h3 { font-size:15px; font-weight:700; color:var(--vw-blue); display:flex; align-items:center; gap:8px; }
.as-sec-h .cnt { background:var(--vw-grey-1); color:var(--vw-grey-4); font-size:12px; font-weight:700; border-radius:100px; padding:2px 9px; }
.as-sec-h .hint { font-size:12px; color:var(--vw-grey-3); }
.as-sec.collapsed .as-list { display:none; }
.as-sec-h.toggle { cursor:pointer; }
.as-empty { padding:16px 18px; font-size:13px; color:var(--vw-grey-3); }

.as-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px 18px; border-bottom:1px solid var(--vw-grey-1); flex-wrap:wrap; }
.as-row:last-child { border-bottom:none; }
.as-who { min-width:200px; flex:1; }
.as-who .nm { font-weight:700; font-size:14px; color:var(--vw-black); }
.as-who .gr { font-size:12px; color:var(--vw-grey-3); margin-top:2px; }
.as-who .det { font-size:13px; color:var(--vw-grey-4); margin-top:4px; }
.as-who .det b { color:var(--vw-black); }
.as-right { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }

.as-chip { display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:700; padding:4px 10px; border-radius:100px; background:var(--vw-grey-1); color:var(--vw-grey-4); white-space:nowrap; }
.as-chip.red { background:var(--red-soft); color:#991B1B; }
.as-chip.green { background:var(--green-soft); color:#065F46; }
.as-chip.orange { background:var(--orange-soft); color:#92400E; }
.as-chip.blue { background:#DBEAFE; color:#1E3A8A; }
.as-chip.grey { background:var(--vw-grey-1); color:var(--vw-grey-4); }
.as-min { font-weight:700; font-size:14px; min-width:64px; text-align:right; }
.as-min.red { color:var(--red); }

.as-btn { background:white; color:var(--vw-blue); border:1px solid var(--vw-grey-2); border-radius:8px; padding:7px 12px; font-size:13px; font-weight:600; }
.as-btn:hover { border-color:var(--vw-blue); }
.as-btn.pri { background:var(--vw-blue); color:white; border-color:var(--vw-blue); }
.as-btn.pri:hover { background:var(--vw-blue-light); }
.as-btn.sm { padding:5px 10px; font-size:12px; }
.as-btn.danger { color:var(--red); }
.as-seg { display:inline-flex; border:1px solid var(--vw-grey-2); border-radius:8px; overflow:hidden; }
.as-seg button { background:white; padding:6px 10px; font-size:12px; font-weight:600; color:var(--vw-grey-4); border-right:1px solid var(--vw-grey-2); }
.as-seg button:last-child { border-right:none; }
.as-seg button.on-red { background:var(--red); color:white; }
.as-seg button.on-green { background:var(--green); color:white; }

.as-form { width:100%; background:var(--vw-grey-1); border-radius:10px; padding:12px; margin-top:8px; display:flex; flex-direction:column; gap:10px; }
.as-form .lbl { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--vw-grey-4); }
.as-motivos { display:flex; flex-wrap:wrap; gap:6px; }
.as-motivos button { background:white; border:1px solid var(--vw-grey-2); border-radius:100px; padding:6px 12px; font-size:13px; font-weight:600; color:var(--vw-grey-4); }
.as-motivos button.sel { background:var(--vw-blue); color:white; border-color:var(--vw-blue); }
.as-motivos button.nuevo { border-style:dashed; color:var(--vw-blue); }
.as-form-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.as-form input, .as-form select { border:1px solid var(--vw-grey-2); border-radius:8px; padding:8px 10px; font-family:var(--font); font-size:13px; background:white; }
.as-form input.grow { flex:1; min-width:180px; }

/* Presentismo */
.as-table { width:100%; border-collapse:collapse; font-size:13px; }
.as-table th { text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--vw-grey-4); padding:10px 12px; border-bottom:2px solid var(--vw-grey-2); background:var(--vw-grey-1); white-space:nowrap; }
.as-table td { padding:10px 12px; border-bottom:1px solid var(--vw-grey-1); vertical-align:top; }
.as-table td.num, .as-table th.num { text-align:right; font-variant-numeric:tabular-nums; }
.as-table tr.pers { cursor:pointer; }
.as-table tr.pers:hover td { background:#F8FAFC; }
.as-table tr.det td { background:#FAFBFC; font-size:12px; color:var(--vw-grey-4); }
.as-table .money { font-weight:700; color:var(--vw-blue); }
.as-table .money.zero { color:var(--red); }
.as-ev { display:flex; gap:8px; padding:3px 0; align-items:center; }
.as-ev a { color:var(--vw-blue); text-decoration:underline; cursor:pointer; }
.as-scroll { overflow-x:auto; }
.as-note { font-size:12px; color:var(--vw-grey-4); padding:10px 18px; background:#FFFBEB; border-bottom:1px solid var(--vw-grey-2); }

@media (max-width: 640px) {
  .as-row { padding:12px 14px; }
  .as-right { justify-content:flex-start; }
  .as-min { text-align:left; }
}
