/* ═══════════════════════════════════════════════════════════════
   TuEstilo — attendance.css
   Panel de Control de Asistencia y Puntualidad
   Estilo coherente con la app: fondos claros, bordes suaves,
   verdes esmeralda, sin barras oscuras.
   ═══════════════════════════════════════════════════════════════ */

/* ── Date picker bar (estilo claro, coherente) ── */
.att-date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 14px;
}
.att-date-arrow {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.att-date-arrow:hover { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.att-date-label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.3px;
}
.att-date-badge {
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
}

/* ── Worker attendance card ── */
.att-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.att-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  border-color: #e2e8f0;
}
.att-card.att-card--absent {
  opacity: 0.5;
  background: #fafafa;
}

/* Toggle check */
.att-toggle {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  font-size: 18px;
  user-select: none;
}
.att-toggle.att-toggle--on {
  background: #ecfdf5;
  border-color: #10b981;
}
.att-toggle.att-toggle--off {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* Worker info */
.att-info {
  flex: 1;
  min-width: 0;
}
.att-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.att-category {
  font-size: 10px;
  color: #94a3b8;
  margin: 2px 0 0;
}

/* Time input */
.att-time-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.att-time-input {
  width: 78px;
  padding: 5px 6px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-align: center;
  outline: none;
  transition: all 0.2s;
}
.att-time-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.att-time-input:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f8fafc;
}

/* Punctuality badge */
.att-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.att-badge--puntual {
  color: #059669;
  background: #ecfdf5;
}
.att-badge--retardo {
  color: #dc2626;
  background: #fef2f2;
}
.att-badge--ausente {
  color: #6b7280;
  background: #f3f4f6;
}

/* Save button (verde esmeralda coherente con la app) */
.att-save-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.att-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.att-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Summary bar */
.att-summary {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}
.att-summary-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}
.att-summary-pill--total {
  background: #f1f5f9;
  color: #475569;
}
.att-summary-pill--puntual {
  background: #ecfdf5;
  color: #059669;
}
.att-summary-pill--retardo {
  background: #fef2f2;
  color: #dc2626;
}

/* Empty state */
.att-empty {
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
  font-size: 13px;
}
.att-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .att-card { padding: 10px; gap: 8px; }
  .att-name { font-size: 12px; }
  .att-time-input { width: 68px; font-size: 12px; }
  .att-toggle { width: 36px; height: 36px; font-size: 16px; }
}
