/* ── Portail Cas Clinique — côté enseignant ─────────────────────────────────── */

/* Variables héritées de shared.css */

/* ── Header ── */
.cc-header {
  background: linear-gradient(145deg,
    var(--branding-primary, #1e3a8a) 0%,
    var(--branding-primary-mid, #1a3a80) 55%,
    var(--branding-primary-end, #1e5090) 100%);
  color: #fff;
  padding: 24px 40px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 20px rgba(30,58,138,.35);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
}
.cc-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), rgba(147,197,253,.5), rgba(255,255,255,.15), transparent);
}
.cc-header-left {
  display: flex; align-items: flex-end; gap: 1.25rem;
  position: relative; z-index: 1;
}
.cc-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  line-height: 1.1; letter-spacing: -.01em;
}
.cc-brand-sub { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 4px; letter-spacing: .01em; }
.cc-back {
  color: #fff; text-decoration: none; font-size: .8rem; font-weight: 700;
  padding: .35rem .85rem; border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 20px; transition: all .15s;
  background: rgba(255,255,255,.18);
  position: relative; z-index: 1;
}
.cc-back:hover { background: rgba(255,255,255,.32); border-color: #fff; }
.cc-header-right {
  display: flex; align-items: center; gap: .65rem;
  position: relative; z-index: 1;
}
.cc-user-badge {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; opacity: .9;
  background: rgba(255,255,255,.12);
  border-radius: 20px; padding: .3rem .75rem;
  border: 1px solid rgba(255,255,255,.2);
}
.cc-logout-btn {
  font-size: .78rem; font-weight: 700;
  padding: .35rem .85rem;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 20px;
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  transition: all .15s;
}
.cc-logout-btn:hover { background: rgba(255,255,255,.25); border-color: #fff; }

/* ── Body ── */
.cc-body {
  max-width: clamp(800px, 94vw, 1900px);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

/* ── Tabs ── */
.cc-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0;
  flex-wrap: wrap;
}
.cc-tab {
  padding: .55rem 1.1rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: all .15s;
}
.cc-tab:hover { color: #1e3a8a; background: #f1f5f9; }
.cc-tab.active { color: #1e3a8a; border-bottom-color: #1e3a8a; }
.cc-tab[data-admin] { /* visible coord/admin uniquement, géré par JS */ }

/* ── Pane ── */
.cc-pane { display: none; }
.cc-pane.active { display: block; }

/* ── Section card ── */
.cc-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.cc-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Campagne card ── */
.campagne-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all .15s;
}
.campagne-card:hover { border-color: #1e3a8a; box-shadow: 0 2px 8px rgba(30,58,138,.1); }
.campagne-card-info { flex: 1; min-width: 0; }
.campagne-card-titre {
  font-size: .92rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.campagne-card-meta { font-size: .78rem; color: #64748b; margin-top: .2rem; }

/* ── Badge statut ── */
.statut-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.statut-brouillon { background: #f1f5f9; color: #64748b; }
.statut-ouverte   { background: #dcfce7; color: #16a34a; }
.statut-fermee    { background: #fef9c3; color: #d97706; }
.statut-archivee  { background: #f1f5f9; color: #94a3b8; }
.statut-assigne   { background: #ede9fe; color: #7c3aed; }
.statut-questions_validees { background: #fef3c7; color: #d97706; }
.statut-evalue    { background: #d1fae5; color: #0f766e; }
.statut-valide    { background: #dcfce7; color: #16a34a; }
.statut-depose    { background: #e0f2fe; color: #0891b2; }
.statut-ouvert    { background: #f1f5f9; color: #64748b; }

/* ── Table soumissions / assignations ── */
.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.cc-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .6rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}
.cc-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.cc-table tr:last-child td { border-bottom: none; }
.cc-table tr:hover td { background: #f8fafc; }

/* ── Assignation detail ── */
.assignation-detail {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.assignation-detail-hdr {
  background: linear-gradient(135deg, #1e3a8a, #1a3a80);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.assignation-detail-body { padding: 1.25rem 1.5rem; }

/* ── PDF viewer ── */
.pdf-viewer-wrap {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #f8fafc;
}
.pdf-viewer-toolbar {
  background: #1e293b;
  color: #fff;
  padding: .5rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
}
.pdf-viewer-frame {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* ── Questions editor ── */
.questions-section { margin-bottom: 1.5rem; }
.questions-section-title {
  font-size: .9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.question-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .65rem;
}
.question-num {
  background: #1e3a8a;
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: .35rem;
}
.question-input {
  flex: 1;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: .55rem .85rem;
  font-size: .88rem;
  resize: vertical;
  min-height: 52px;
  font-family: inherit;
  transition: border-color .15s;
}
.question-input:focus { outline: none; border-color: #1e3a8a; }
.question-input:read-only { background: #f8fafc; color: #64748b; cursor: default; }
.questions-locked {
  background: #fef9c3;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .82rem;
  color: #92400e;
  margin-bottom: 1rem;
}

/* ── Formulaires ── */
.form-row { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: .35rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .55rem .85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s;
  box-sizing: border-box;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #1e3a8a;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Buttons — charte identique au portail Rapports de Stage ── */
.btn-cc {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1.2rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
}
.btn-cc:disabled { opacity: .4; cursor: not-allowed; }
/* Primary → teal gradient (= btn-teal rapports) */
.btn-cc-primary {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15,118,110,.25);
}
.btn-cc-primary:not(:disabled):hover {
  background: linear-gradient(135deg, #0b5e58, #0f766e);
  box-shadow: 0 4px 16px rgba(15,118,110,.35);
  transform: translateY(-1px);
}
/* Ghost / outline → blanc + bordure slate, teal au hover (= btn-outline rapports) */
.btn-cc-ghost, .btn-cc-outline {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
}
.btn-cc-ghost:not(:disabled):hover,
.btn-cc-outline:not(:disabled):hover {
  border-color: #0f766e;
  color: #0f766e;
  background: #f0fdfa;
}
.btn-cc-outline.active { background: #0f766e; color: #fff; border-color: #0f766e; }
/* Danger → rouge gradient (= btn-danger rapports) */
.btn-cc-danger {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  box-shadow: 0 2px 8px rgba(185,28,28,.2);
  border: none;
}
.btn-cc-danger:not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); }
/* Success → vert doux */
.btn-cc-success { background: #dcfce7; color: #15803d; border: 1.5px solid #86efac; }
.btn-cc-success:not(:disabled):hover { background: #bbf7d0; }
/* Small */
.btn-cc-sm { padding: .3rem .75rem; font-size: .78rem; border-radius: 6px; }
.btn-row { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }

/* ── Empty state ── */
.cc-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}
.cc-empty-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.cc-empty-title { font-size: 1rem; font-weight: 700; color: #64748b; margin-bottom: .4rem; }

/* ── Modal overlay ── */
.cc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.cc-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 560px; width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  overflow: hidden;
  max-height: 90vh;
  display: flex; flex-direction: column;
}
.cc-modal-hdr {
  background: linear-gradient(135deg, #1e3a8a, #1a3a80);
  color: #fff;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cc-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.cc-modal-footer {
  padding: .85rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  flex-shrink: 0;
}

/* ── Assignation enseignants list ── */
.ens-pick-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .1s;
}
.ens-pick-row:hover { background: #f1f5f9; }
.ens-pick-row input[type=checkbox] { cursor: pointer; }

/* ── Toast ── */
#cc-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: opacity .3s;
  pointer-events: none;
  opacity: 0;
  max-width: 90vw;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cc-body { padding: 1rem .75rem 2rem; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .pdf-viewer-frame { height: 400px; }
  .cc-table th:nth-child(3), .cc-table td:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  .cc-tabs { gap: .25rem; }
  .cc-tab { padding: .45rem .7rem; font-size: .8rem; }
}

/* ── Réglages — bannière info ── */
.regl-info-banner {
  font-size: .83rem;
  color: #1e3a8a;
  background: #f0f4ff;
  border: 1.5px solid #c7d2fe;
  border-radius: 10px;
  padding: .75rem 1.1rem;
  margin-bottom: 1.25rem;
}
.regl-info-banner a { color: #1e3a8a; font-weight: 700; }

/* ── Réglages — grille de tuiles de navigation ── */
.cc-regl-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}
.cc-regl-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 10px 18px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--r, 10px);
  cursor: pointer;
  transition: all .14s;
  text-align: center;
}
.cc-regl-tile:hover {
  background: #f0fdfa;
  border-color: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,148,136,.12);
}
.cc-regl-tile-icon  { font-size: 32px; line-height: 1; }
.cc-regl-tile-label { font-size: 12px; font-weight: 600; color: #475569; line-height: 1.3; }
.cc-regl-tile:hover .cc-regl-tile-label { color: #0f766e; }

/* ── Sous-panes réglages ── */
.cc-subpane { display: none; }
.cc-subpane.active { display: block; }
.cc-subpane-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  margin-bottom: 1.25rem;
  background: none;
  border: none;
  padding: 0;
}
.cc-subpane-back:hover { color: #0f766e; }

/* ── Sélecteur multi-étudiants (modal campagne) ── */
.camp-etu-picker {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.camp-etu-search-wrap {
  padding: .6rem .75rem;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
}
.camp-etu-search {
  margin: 0 !important;
}
.camp-etu-list {
  max-height: 220px;
  overflow-y: auto;
  padding: .3rem 0;
}
.camp-etu-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .85rem;
  cursor: pointer;
  transition: background .1s;
  font-size: .85rem;
}
.camp-etu-item:hover { background: #f1f5f9; }
.camp-etu-item input[type="checkbox"] { flex-shrink: 0; accent-color: #1e3a8a; width:15px;height:15px; }
.camp-etu-item .etu-nom { font-weight: 600; color: #1e293b; }
.camp-etu-item .etu-bloc {
  font-size: .7rem;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 4px;
  padding: .1rem .35rem;
  margin-left: auto;
  white-space: nowrap;
}
.camp-etu-item.already {
  background: #f0fdf4;
}
.camp-etu-item.already .etu-nom { color: #16a34a; }
.camp-etu-item[data-hidden="true"] { display: none; }

/* ── Filtre enseignants (Assignation) ──────────────────────────────────────── */
.cc-ens-filter-btn {
  font-size: .7rem;
  padding: .2rem .55rem;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.cc-ens-filter-btn:hover { background: #f1f5f9; }
.cc-ens-filter-btn.active {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
}

/* ── Tableau suivi rétractable (admin) ────────────────────────────────────── */
.suivi-collapsed { display: none !important; }

/* ── Détail campagne — classes identiques à rapports-admin ──────────────── */

/* Variables (si pas déjà dans shared.css) */
.pane-detail-cc {
  --ra-teal-900: #0f766e;
  --ra-teal-800: #0d9488;
  --ra-teal-50:  #f0fdfa;
  --ra-slate-900: #0f172a;
  --ra-slate-700: #334155;
  --ra-slate-500: #64748b;
  --ra-slate-200: #e2e8f0;
  --ra-slate-100: #f1f5f9;
  --ra-slate-50:  #f8fafc;
  --ra-shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --ra-shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --ra-radius-xl: 16px;
  --ra-radius-md: 8px;
}

/* Card identique à .ra-card */
.pane-detail-cc .d-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.pane-detail-cc .d-card-title {
  font-size: .95rem; font-weight: 700; color: #0f172a;
  margin: 0 0 1.1rem; display: flex; align-items: center; gap: .5rem;
}

/* KPI bar identique à rapports-admin */
/* KPIs grande vue (suivi/assignation) */
.pane-detail-cc .kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem;
  margin: .85rem 0 0;
}
.pane-detail-cc .kpi-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.25rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #e2e8f0;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.pane-detail-cc .kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0f766e, #0d9488);
}
.pane-detail-cc .kpi-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.pane-detail-cc .kpi-val {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1;
}
.pane-detail-cc .kpi-lbl {
  font-size: .68rem; color: #64748b;
  text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; font-weight: 600;
}

/* KPIs compacts inline (header détail campagne — même style que rapports-admin) */
.pane-detail-cc .kpi-bar--inline,
.kpi-bar--inline {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap !important;
  gap: .5rem !important; margin: .75rem 0 0 !important;
  grid-template-columns: none !important;
}
.pane-detail-cc .kpi-bar--inline .kpi-card,
.kpi-bar--inline .kpi-card {
  display: flex !important; flex-direction: row !important; align-items: center !important;
  gap: .5rem !important; padding: .5rem .9rem !important; min-width: 0 !important;
  background: #fff !important; border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
  border: 1px solid #e2e8f0 !important; text-align: left !important;
  transform: none !important;
}
.pane-detail-cc .kpi-bar--inline .kpi-card::before,
.kpi-bar--inline .kpi-card::before { display: none !important; }
.pane-detail-cc .kpi-bar--inline .kpi-card:hover,
.kpi-bar--inline .kpi-card:hover { transform: none !important; box-shadow: 0 2px 8px rgba(0,0,0,.1) !important; }
.pane-detail-cc .kpi-bar--inline .kpi-val,
.kpi-bar--inline .kpi-val {
  font-size: 1.4rem !important; font-weight: 900 !important;
  background: none !important; -webkit-text-fill-color: unset !important;
  color: #1a2340 !important; line-height: 1 !important;
}
.pane-detail-cc .kpi-bar--inline .kpi-lbl,
.kpi-bar--inline .kpi-lbl {
  font-size: .72rem !important; color: #64748b !important;
  text-transform: uppercase !important; letter-spacing: .06em !important;
  margin: 0 !important; font-weight: 600 !important;
}

/* Table identique à .ra-table */
.pane-detail-cc .d-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pane-detail-cc .d-table thead { background: #f8fafc; }
.pane-detail-cc .d-table th {
  text-align: left; padding: .85rem 1rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #64748b;
  border-bottom: 2px solid #e2e8f0;
}
.pane-detail-cc .d-table td {
  padding: 1rem; border-bottom: 1px solid #f1f5f9;
  color: #334155; vertical-align: middle;
}
.pane-detail-cc .d-table tr:last-child td { border-bottom: none; }
.pane-detail-cc .d-table tbody tr { transition: background .12s; }
.pane-detail-cc .d-table tbody tr:hover td { background: linear-gradient(90deg, #f0fdfa, #fff); }

/* Boutons identiques à rapports-admin */
.pane-detail-cc .d-btn {
  padding: .55rem 1.2rem; border-radius: 8px;
  font-size: .875rem; font-weight: 600; cursor: pointer; border: none;
  transition: all .15s; display: inline-flex; align-items: center; gap: .35rem;
}
.pane-detail-cc .d-btn-teal {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #fff; box-shadow: 0 2px 8px rgba(15,118,110,.25);
}
.pane-detail-cc .d-btn-teal:hover { background: linear-gradient(135deg,#0b5e58,#0f766e); transform:translateY(-1px); }
.pane-detail-cc .d-btn-outline {
  background: #fff; border: 1.5px solid #e2e8f0; color: #64748b;
}
.pane-detail-cc .d-btn-outline:hover { border-color: #0f766e; color: #0f766e; background: #f0fdfa; }
.pane-detail-cc .d-btn-sm { padding: .3rem .75rem; font-size: .78rem; border-radius: 6px; }

/* Badges identiques à rapports-admin */
.pane-detail-cc .d-badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 20px; font-size: .7rem; font-weight: 700; letter-spacing: .02em;
}
.pane-detail-cc .d-badge-gray   { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.pane-detail-cc .d-badge-yellow { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.pane-detail-cc .d-badge-blue   { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.pane-detail-cc .d-badge-green  { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.pane-detail-cc .d-badge-red    { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.pane-detail-cc .d-badge-purple { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }

/* Select dans le tableau de détail */
.pane-detail-cc .d-form-select {
  border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 3px 8px;
  font-size: .82rem; color: #374151; background: #fff;
  transition: border-color .15s;
}
.pane-detail-cc .d-form-select:focus { outline: none; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }

/* ── Barre de recherche (suivi) ─────────────────────────────────────────────── */
.cc-search-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: .35rem .85rem;
  transition: border-color .15s, box-shadow .15s;
}
.cc-search-bar:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15,118,110,.1);
  background: #fff;
}
.cc-search-icon { font-size: .9rem; flex-shrink: 0; }
.cc-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: .85rem;
  color: #374151;
  width: 100%;
  min-width: 160px;
}
.cc-search-input::placeholder { color: #94a3b8; }

/* ── Filtres statut vue d'ensemble ── */
.suivi-filtre-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .8rem;
  font-size: .78rem; font-weight: 600; font-family: inherit;
  border: 1.5px solid #e2e8f0; border-radius: 20px;
  background: #fff; color: #475569;
  cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.suivi-filtre-btn:hover { border-color: #0f766e; color: #0f766e; background: #f0fdfa; }
.suivi-filtre-btn.suivi-filtre-active {
  background: #0f766e; border-color: #0f766e; color: #fff;
}

/* ── Toggle switches (envoi par mail) — identiques à rapports-admin ── */
.cc-card .toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0; border-bottom: 1px solid #f1f5f9;
}
.cc-card .toggle-row:last-child { border-bottom: none; }
.cc-card .toggle-label { font-size: .88rem; font-weight: 600; color: #334155; }
.cc-card .toggle-desc  { font-size: .77rem; color: #64748b; margin-top: .15rem; max-width: 420px; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-left: 1rem; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #cbd5e1; border-radius: 24px; transition: background .2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: #0f766e; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
