.att-signin { max-width:560px; padding:28px; }
.att-signin h3 { color:var(--brand-dark); margin:0 0 8px; }
.att-signin p { color:var(--muted); font-size:13px; line-height:1.6; margin:0 0 16px; }
.att-primary { background:var(--brand); color:var(--card); }
.att-corte { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); }
.att-week-nav { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:14px 0; }
.att-week-label { font-size:12px; color:var(--brand-dark); font-weight:600; min-width:190px; text-align:center; }
.att-alert-cards { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:16px 0; }
.att-alert-card { border:0; border-left:4px solid var(--muted); padding:10px 14px; background:var(--card); border-radius:8px; cursor:pointer; text-align:left; width:100%; font:inherit; }
.att-alert-card:hover { outline:2px solid var(--muted); }
.att-alert-card.is-active { outline:2px solid var(--ink); }
.att-alert-card strong { display:block; font-size:23px; color:var(--ink); }
.att-alert-card span { font-size:12px; color:var(--muted); }
.att-alert-card[data-level="Al día"] { border-color:var(--alert-current); }
.att-alert-card[data-level="Atención"] { border-color:var(--alert-yellow); }
.att-alert-card[data-level="Riesgo"] { border-color:var(--alert-orange); }
.att-alert-card[data-level="Crítica"] { border-color:var(--alert-red); }
.att-level { font-size:11px; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.att-level::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--muted); }
.att-level[data-level="Al día"]::before { background:var(--alert-current); }
.att-level[data-level="Atención"]::before { background:var(--alert-yellow); }
.att-level[data-level="Riesgo"]::before { background:var(--alert-orange); }
.att-level[data-level="Crítica"]::before { background:var(--alert-red); }
.att-estado { font-size:11px; padding:3px 8px; border-radius:99px; background:var(--brand-pale); color:var(--brand-dark); white-space:nowrap; }
.att-estado[data-estado="Asistió"] { background:#E4F3EC; color:#1E6B4F; }
.att-estado[data-estado="No asistió"] { background:#FBE9E6; color:#A33B2E; }
.att-estado[data-estado="Justificada"] { background:#FDF3E3; color:#8A5A17; }
.att-estado[data-estado="Sin registro"] { background:#FDF3E3; color:#8A5A17; }
.att-estado[data-estado="Sin día"] { background:#EEF1F0; color:var(--muted); }
.att-actions { display:flex; gap:6px; flex-wrap:wrap; }
.att-btn { border:1px solid var(--line); background:var(--card); color:var(--ink); border-radius:7px; padding:5px 9px; font-size:12px; cursor:pointer; white-space:nowrap; }
.att-btn:hover { border-color:var(--brand); color:var(--brand-dark); }
.att-btn:disabled { opacity:.5; cursor:default; }
.att-btn[data-mark="Asistió"] { color:#1E6B4F; }
.att-btn[data-mark="No asistió"] { color:#A33B2E; }
.att-muted { color:var(--muted); font-size:11px; }
.att-status { font-size:12px; color:var(--brand-dark); margin:10px 0; }
.att-error { font-size:12px; color:var(--alert-red); margin:10px 0; }
.att-table table { min-width:960px; }
.att-note { color:var(--muted); font-size:11px; line-height:1.6; margin:18px 0; }
@media (max-width:700px) {
  .att-alert-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .att-week-label { min-width:0; width:100%; }
}

.att-view-toggle { display:flex; gap:6px; margin:10px 0; }
.att-btn.is-active { background:var(--brand); color:var(--card); border-color:var(--brand); }
.att-cal { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin:10px 0; }
.att-cal-day { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:10px; min-height:160px; display:flex; flex-direction:column; gap:8px; }
.att-cal-day.is-today { border-color:var(--brand); box-shadow:0 0 0 2px var(--brand-pale); }
.att-cal-day header { display:flex; align-items:baseline; gap:6px; border-bottom:1px solid var(--line); padding-bottom:6px; }
.att-cal-day header b { color:var(--brand-dark); font-size:13px; }
.att-cal-day header span { color:var(--muted); font-size:11px; }
.att-cal-day header em { margin-left:auto; font-style:normal; font-size:11px; background:var(--brand-pale); color:var(--brand-dark); border-radius:99px; padding:1px 7px; }
.att-cal-item { border:1px solid var(--line); border-left:3px solid var(--brand); border-radius:8px; padding:7px; display:flex; flex-direction:column; gap:5px; font-size:12px; }
.att-cal-item[data-estado="Asistió"] { border-left-color:var(--alert-current); }
.att-cal-item[data-estado="No asistió"] { border-left-color:var(--alert-red); }
.att-cal-item[data-estado="Sin registro"], .att-cal-item[data-estado="Justificada"] { border-left-color:var(--alert-yellow); }
.att-cal-top { display:flex; justify-content:space-between; gap:6px; }
.att-cal-item .att-estado { align-self:flex-start; }
.att-cal-item .att-btn { padding:3px 6px; font-size:11px; }
@media (max-width:900px) { .att-cal { grid-template-columns:1fr; } }

.att-link { background:none; border:0; padding:0; color:var(--brand-dark); text-decoration:underline; cursor:pointer; font:inherit; }
.att-user-card { padding:16px; margin:10px 0; }
.att-user-card h3 { margin:0; color:var(--brand-dark); }
.att-level-lg { font-size:13px; font-weight:600; }
.att-weeks { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:8px; margin:10px 0; }
.att-week-chip { background:var(--card); border:1px solid var(--line); border-top:3px solid var(--line); border-radius:8px; padding:8px; display:flex; flex-direction:column; gap:4px; font-size:12px; }
.att-week-chip[data-estado="Asistió"] { border-top-color:var(--alert-current); }
.att-week-chip[data-estado="No asistió"], .att-week-chip[data-estado="Sin registro"] { border-top-color:var(--alert-red); }
.att-week-chip[data-estado="Justificada"] { border-top-color:var(--alert-yellow); }
.att-week-chip .att-estado { align-self:flex-start; }

.att-form { padding:16px; margin:10px 0; display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:10px; }
.att-form h3 { grid-column:1/-1; margin:0; color:var(--brand-dark); }
.att-form label { display:flex; flex-direction:column; gap:4px; font-size:12px; }
.att-form-wide { grid-column:1/-1; }
.att-hora { color:var(--brand-dark); }
