/* ════════════════════════════════════════════════════════════════
   scheduled.css — Audits planifiés & credentials
   ════════════════════════════════════════════════════════════════ */

.sched-section {}
.sched-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.sched-section-header h3 {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin: 0;
}

.sched-cards {
  display: flex; flex-direction: column; gap: 10px;
}

.sched-empty {
  color: var(--text-muted); font-size: 13px; padding: 24px;
  text-align: center; background: var(--surface); border-radius: 10px;
  border: 1px dashed var(--border);
}

/* ── Card ── */
.sched-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
  transition: border-color .15s;
}
.sched-card:hover { border-color: var(--accent); }

.sched-card-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: 8px; flex-shrink: 0;
}
.sched-card-icon img { width: 28px; height: 28px; object-fit: contain; }

.sched-card-info { flex: 1; min-width: 0; }
.sched-card-title { font-size: 14px; font-weight: 600; color: var(--text); }
.sched-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.sched-card-meta {
  display: flex; gap: 16px; margin-top: 6px; font-size: 11px; color: var(--text-muted);
  flex-wrap: wrap;
}

.sched-card-del {
  opacity: .4; transition: opacity .15s;
}
.sched-card:hover .sched-card-del { opacity: 1; }

.sched-card-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

/* ── Status badge ── */
.sched-status {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
}
.sched-status--active { background: rgba(16,185,129,.15); color: #10b981; }
.sched-status--paused { background: rgba(245,158,11,.15); color: #f59e0b; }

/* ── Toggle switch ── */
.sched-toggle {
  position: relative; display: inline-block; width: 36px; height: 20px;
}
.sched-toggle input { opacity: 0; width: 0; height: 0; }
.sched-toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border); border-radius: 20px; transition: .2s;
}
.sched-toggle-slider::before {
  content: ''; position: absolute; height: 14px; width: 14px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%;
  transition: .2s;
}
.sched-toggle input:checked + .sched-toggle-slider { background: var(--accent); }
.sched-toggle input:checked + .sched-toggle-slider::before { transform: translateX(16px); }

.sched-link {
  color: var(--accent); text-decoration: none; font-weight: 500;
}
.sched-link:hover { text-decoration: underline; }

/* ── Cred fields ── */
.cred-fields .form-group { margin-top: 10px; }
