/* Catalogue actes prestataire — aligné DEMO_STRUCTURES */

.cat-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cat-save-ind {
  font-size: 9px;
  color: #14b87a;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.cat-save-ind.is-visible {
  opacity: 1;
}

.cat-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  margin-bottom: 12px;
}
.cat-card-body {
  padding: 12px 16px;
}
.cat-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  margin-bottom: 10px;
}
.cat-hint {
  margin-top: 8px;
  font-size: 9px;
  color: #9ca3af;
  line-height: 1.45;
}

.cat-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.cat-type-chip:hover {
  border-color: #0a5c8a;
  color: #0a5c8a;
  background: #e8f4fb;
}
.cat-type-chip.is-active {
  border-color: #0a5c8a;
  background: #0a5c8a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(10, 92, 138, 0.18);
}

.cat-pilier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pilier-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 120px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pilier-tab:hover:not(.is-disabled) {
  border-color: #bfdbfe;
  background: #f8fafc;
}
.pilier-tab.is-active {
  border-color: #0a5c8a;
  background: #e8f4fb;
}
.pilier-tab.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pilier-tab-icon {
  font-size: 16px;
  line-height: 1;
}
.pilier-tab-label {
  margin-top: 4px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 10px;
}
.pilier-tab-count {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  color: #0a5c8a;
  background: #e8f4fb;
  padding: 1px 6px;
  border-radius: 20px;
}
.pilier-tab-count.is-na {
  color: #9ca3af;
  background: #f3f4f6;
}

.cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cat-toolbar-pilier {
  font-size: 12px;
  font-weight: 600;
  color: #0a5c8a;
}
.cat-search {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  outline: none;
  min-width: 160px;
  transition: border-color 0.18s;
}
.cat-search:focus {
  border-color: #0a5c8a;
}
.cat-cat-select {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  outline: none;
  color: #0d1b2a;
  background: #fff;
  cursor: pointer;
}
.cat-cat-select:focus {
  border-color: #0a5c8a;
}

.catalogue-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.catalogue-table th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1.5px solid #e5e7eb;
}
.catalogue-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
  vertical-align: middle;
}
.catalogue-table tr:hover td {
  background: #f9fafb;
}
.catalogue-table tr:last-child td {
  border-bottom: none;
}
.cat-acte-name {
  font-weight: 500;
  color: #0d1b2a;
}
.cat-acte-sub {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 1px;
}
.cat-prix-input {
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  width: 90px;
  text-align: right;
  outline: none;
}
.cat-prix-input:focus {
  border-color: #0a5c8a;
}
.cat-delai-select {
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  outline: none;
  background: #fff;
  cursor: pointer;
}
.cat-delai-select:focus {
  border-color: #0a5c8a;
}

.cat-toggle {
  position: relative;
  width: 34px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}
.cat-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cat-toggle-track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 20px;
  transition: 0.2s;
  cursor: pointer;
}
.cat-toggle input:checked + .cat-toggle-track {
  background: #14b87a;
}
.cat-toggle-track::after {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.cat-toggle input:checked + .cat-toggle-track::after {
  transform: translateX(16px);
}

.prep-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  padding: 5px 9px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.prep-btn.ok {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}
.prep-btn.todo {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}
.prep-state {
  font-size: 9.5px;
  color: #9ca3af;
  margin-top: 3px;
}

/* Panneau préparation / rappels RDV */
.prep-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 900;
}
.prep-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.prep-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 480px;
  max-width: 94vw;
  background: #fff;
  box-shadow: -12px 0 40px -12px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 910;
  display: flex;
  flex-direction: column;
}
.prep-panel.open {
  transform: translateX(0);
}
.prep-panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.prep-panel-head .pph-acte {
  font-weight: 700;
  font-size: 16px;
  color: #0d1b2a;
  line-height: 1.3;
}
.prep-panel-head .pph-cat {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 3px;
}
.prep-panel-close {
  background: #f3f4f6;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 15px;
  color: #4b5563;
  cursor: pointer;
  flex-shrink: 0;
}
.prep-panel-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}
.prep-panel-foot {
  padding: 14px 22px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #f9fafb;
}
.prep-suggestion {
  background: rgba(10, 92, 138, 0.05);
  border: 1px dashed rgba(10, 92, 138, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
}
.prep-suggestion.none {
  background: #f9fafb;
  border-color: #d1d5db;
}
.prep-suggestion .ps-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #0a5c8a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.prep-suggestion.none .ps-head {
  color: #4b5563;
}
.prep-suggestion ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.prep-suggestion li {
  display: flex;
  gap: 7px;
  font-size: 12px;
  color: #0d1b2a;
  line-height: 1.45;
}
.prep-suggestion .ps-use {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #0a5c8a;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.prep-suggestion .ps-footer,
.prep-none-desc {
  margin: 10px 0 0;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
}
.prep-message-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.prep-msg-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}
.prep-suggest-btn {
  font-size: 11px;
  font-weight: 700;
  color: #0a5c8a;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.prep-suggest-btn:hover {
  text-decoration: underline;
}
.prep-sep {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 18px 0;
}
.prep-block-title {
  font-weight: 700;
  font-size: 13px;
  color: #0d1b2a;
  margin-bottom: 4px;
}
.prep-block-desc {
  font-size: 11.5px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 12px;
}
.prep-text {
  width: 100%;
  min-height: 96px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #0d1b2a;
  resize: vertical;
  outline: none;
}
.prep-text:focus {
  border-color: #0a5c8a;
}
.wa-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 6px;
}
.wa-frame {
  background: #e5ddd5;
  border-radius: 12px;
  padding: 14px 12px;
}
.wa-bubble {
  background: #fff;
  border-radius: 8px 8px 8px 2px;
  padding: 8px 10px 6px;
  max-width: 92%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.13);
}
.wa-sender {
  font-size: 10.5px;
  font-weight: 700;
  color: #0a5c8a;
  margin-bottom: 3px;
}
.wa-text {
  font-size: 12px;
  color: #111b21;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.wa-time {
  font-size: 9.5px;
  color: #667781;
  text-align: right;
  margin-top: 3px;
}
.wa-check {
  color: #53bdeb;
  font-size: 11px;
}
.prep-diff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
}
.prep-diff-row .pdr-t {
  font-size: 12.5px;
  font-weight: 700;
  color: #0d1b2a;
}
.prep-diff-row .pdr-d {
  font-size: 11px;
  color: #4b5563;
  margin-top: 2px;
  max-width: 300px;
}
.prep-toggle {
  position: relative;
  width: 34px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}
.prep-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.prep-toggle-track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 20px;
  transition: 0.2s;
  cursor: pointer;
}
.prep-toggle input:checked + .prep-toggle-track {
  background: #14b87a;
}
.prep-toggle-track::after {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.prep-toggle input:checked + .prep-toggle-track::after {
  transform: translateX(16px);
}

/* Rappels avant l'examen (panneau préparation) */
.prep-reminders-list {
  margin: 10px 0 12px;
}
.prep-reminders-empty {
  font-size: 11.5px;
  font-style: italic;
  color: #9ca3af;
  margin: 0;
}
.prep-reminders-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prep-reminder-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
}
.prep-rem-del {
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}
.prep-rem-del:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}
.prep-reminders-quick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.prep-rem-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.prep-rem-btn:hover {
  border-color: #0a5c8a;
  color: #0a5c8a;
  background: #f0f9ff;
}
.prep-rem-or {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}
.prep-rem-input {
  width: 72px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}
.prep-rem-input:focus {
  outline: none;
  border-color: #0a5c8a;
  box-shadow: 0 0 0 2px rgba(10, 92, 138, 0.15);
}
.prep-rem-add-btn {
  border: 1px solid #0a5c8a;
  background: #fff;
  color: #0a5c8a;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.prep-rem-add-btn:hover {
  background: #f0f9ff;
}

/* Prestations à domicile */
.domicile-card {
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 2px 16px rgba(10, 92, 138, 0.09);
  margin-bottom: 12px;
  overflow: hidden;
}
.domicile-card-body { padding: 12px 16px; }
.domicile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.domicile-card-title { font-size: 12px; font-weight: 700; color: #0a5c8a; }
.domicile-card-sub { font-size: 10px; color: #9ca3af; margin-top: 2px; }
.domi-toggle { position: relative; width: 34px; height: 18px; display: inline-block; flex-shrink: 0; }
.domi-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.domi-toggle-track { position: absolute; inset: 0; background: #d1d5db; border-radius: 20px; transition: 0.2s; cursor: pointer; }
.domi-toggle input:checked + .domi-toggle-track { background: #14b87a; }
.domi-toggle-track::after { content: ''; position: absolute; height: 14px; width: 14px; left: 2px; bottom: 2px; background: #fff; border-radius: 50%; transition: 0.2s; }
.domi-toggle input:checked + .domi-toggle-track::after { transform: translateX(16px); }
.domicile-details { display: block; }
.domicile-details--hidden { display: none; }
.domicile-params-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; padding-top: 12px; border-top: 1px solid #f3f4f6; }
@media (max-width: 640px) { .domicile-params-grid { grid-template-columns: 1fr; } }
.domi-field-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #4b5563; margin-bottom: 5px; }
.domi-field-label--inline { margin-bottom: 0; }
.domi-cat-select { width: 100%; border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 7px 12px; font-size: 12px; outline: none; color: #0d1b2a; background: #fff; cursor: pointer; }
.domi-search-input { border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 7px 12px; font-size: 12px; outline: none; width: 100%; }
.domicile-zones-block { margin-bottom: 12px; }
.domicile-zones-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.domicile-zones-hint { font-size: 9px; color: #9ca3af; margin-bottom: 8px; }
.domi-btn-outline { background: #fff; color: #0a5c8a; border: 1.5px solid #0a5c8a; border-radius: 8px; font-size: 10px; font-weight: 600; padding: 4px 10px; cursor: pointer; }
.domicile-zones-list { display: flex; flex-direction: column; gap: 8px; }
.zone-prelevement-row { display: grid; grid-template-columns: 1fr 140px 32px; gap: 8px; align-items: center; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; }
@media (max-width: 640px) { .zone-prelevement-row { grid-template-columns: 1fr; } }
.domi-zone-forfait-wrap { position: relative; }
.domi-zone-fcfa { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 9px; color: #9ca3af; pointer-events: none; }
.domi-zone-remove { background: #fee2e2; border: none; border-radius: 6px; width: 32px; height: 32px; cursor: pointer; font-size: 13px; color: #dc2626; display: flex; align-items: center; justify-content: center; }
.domicile-zones-empty { font-size: 11px; color: #9ca3af; text-align: center; padding: 12px; margin: 0; }
.domicile-zones-empty.hidden { display: none; }
.domicile-actes-block { margin-bottom: 12px; padding-top: 12px; border-top: 1px solid #f3f4f6; }
.domicile-actes-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.acte-domi-tag { display: flex; align-items: center; gap: 5px; font-size: 11px; background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 7px; padding: 5px 10px; cursor: pointer; user-select: none; }
.acte-domi-tag input { margin: 0; accent-color: #0a5c8a; }
.acte-domi-tag:has(input:checked) { background: #e8f4fb; border-color: #0a5c8a; color: #0a5c8a; }
.acte-domi-tag--all { border-color: #0a5c8a; }

.cat-row-hidden { display: none; }
