:root {
  /* Palette Mondial Relay, couleur officielle extraite du logo */
  --mr-primary: #96154A;
  --mr-primary-dark: #740F39;
  --mr-dark: #2b2b2b;
  --mr-grey: #6b6f76;
  --mr-bg: #f6f3f4;
  --mr-card: #ffffff;
  --mr-border: #e6dfe2;
  --mr-danger: #d64545;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--mr-bg);
  color: var(--mr-dark);
}

header.site-header {
  background: var(--mr-card);
  border-bottom: 3px solid var(--mr-primary);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

header.site-header .brand img { height: 44px; width: auto; display: block; }

header.site-header .brand .subtitle {
  font-size: 13px;
  color: var(--mr-grey);
  border-left: 1px solid var(--mr-border);
  padding-left: 12px;
  margin-left: 2px;
}

header.site-header nav a {
  color: var(--mr-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: 18px;
}

header.site-header nav a:hover { color: var(--mr-primary-dark); }

main.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

h1 {
  font-size: 24px;
  margin: 0 0 4px;
}

h1 .accent { color: var(--mr-primary); }

p.lead {
  color: var(--mr-grey);
  margin-top: 0;
  margin-bottom: 24px;
}

.card {
  background: var(--mr-card);
  border: 1px solid var(--mr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--mr-card);
  border: 1px solid var(--mr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  text-decoration: none;
  color: var(--mr-dark);
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.tool-card .icon {
  font-size: 26px;
  margin-bottom: 8px;
  display: block;
}

.tool-card h3 { margin: 0 0 6px; font-size: 16px; }
.tool-card p { margin: 0; font-size: 13px; color: var(--mr-grey); }

.tool-card.disabled {
  opacity: .55;
  pointer-events: none;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--mr-primary);
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
}
.badge.soon { background: #ddd4d8; color: #5c545a; }

table { width: 100%; border-collapse: collapse; }

th, td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--mr-border);
  font-size: 14px;
}

th { color: var(--mr-grey); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }

input[type="text"], input[type="time"], input[type="number"] {
  border: 1px solid var(--mr-border);
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
}

input:focus { outline: 2px solid var(--mr-primary); outline-offset: 1px; }

.btn {
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary { background: var(--mr-primary); color: #fff; }
.btn-primary:hover { background: var(--mr-primary-dark); }

.btn-ghost { background: transparent; color: var(--mr-grey); border: 1px solid var(--mr-border); }
.btn-ghost:hover { background: #f3ecef; }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-danger-icon {
  background: transparent;
  border: none;
  color: var(--mr-danger);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.stat {
  background: #fbf8f9;
  border: 1px solid var(--mr-border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--mr-primary-dark);
}

.stat .label {
  font-size: 12px;
  color: var(--mr-grey);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-inline label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mr-grey);
  white-space: nowrap;
}

.field-inline input { width: 140px; }

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

footer.site-footer {
  text-align: center;
  font-size: 12px;
  color: var(--mr-grey);
  padding: 24px;
}

.note {
  font-size: 12px;
  color: var(--mr-grey);
  margin-top: 8px;
}

.note code {
  background: #f3ecef;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
}

.quick-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #fbf8f9;
  border: 1px dashed var(--mr-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.quick-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--mr-grey);
  margin-right: 4px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-item input {
  width: 90px;
}

.row-excluded {
  opacity: .5;
}

.row-excluded .out-worked {
  text-decoration: line-through;
}

.check-include {
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-include input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.print-only { display: none; }

/*
 * Styles des feuilles imprimables (#printReport).
 * Volontairement hors de @media print : ces regles s'appliquent aussi quand
 * #printReport est affiche temporairement (position hors-ecran) pour generer
 * un PDF (capture par html2canvas, qui ne simule pas le media print).
 * #printReport reste invisible en usage normal grace a .print-only.
 */

@media print {
  body > *:not(#printReport) { display: none !important; }
  #printReport { display: block !important; }

  @page {
    margin: 1.5cm;
  }
}

#printReport {
    width: 100%;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--mr-dark);
  }

  .pr-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 3px solid var(--mr-primary);
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  .pr-logo { height: 40px; }

  .pr-title h1 {
    margin: 0;
    font-size: 20px;
  }

  .pr-title p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--mr-grey);
  }

  .pr-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
  }

  .pr-table th, .pr-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
    font-size: 13px;
  }

  .pr-table th {
    background: #f3ecef !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .03em;
    color: #444;
  }

  .pr-table td.pr-excluded {
    color: #999;
    font-style: italic;
  }

  .pr-summary {
    display: flex;
    gap: 16px;
  }

  .pr-summary > div {
    flex: 1;
    border: 1px solid var(--mr-primary);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
  }

  .pr-summary span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--mr-grey);
    margin-bottom: 4px;
  }

  .pr-summary strong {
    font-size: 20px;
    color: var(--mr-primary);
  }

  .pr-footer {
    margin-top: 24px;
    font-size: 11px;
    color: var(--mr-grey);
  }

  .pr-barcode-wrap {
    text-align: center;
    margin: 40px 0;
  }

  .pr-barcode-wrap svg,
  .pr-barcode-wrap img,
  .pr-barcode-wrap canvas {
    max-width: 100%;
  }

  .sheet-page {
    display: flex;
    flex-direction: column;
    height: 245mm;
    max-height: 245mm;
    overflow: hidden;
  }

  .sheet-statement {
    font-size: 12px;
    line-height: 1.5;
    margin: 10px 0;
  }

  .sheet-legend {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .sheet-legend .legend-label {
    color: #666;
    margin-right: 6px;
  }

  .legend-tag {
    display: inline-block;
    border: 1px solid #999;
    border-radius: 100px;
    padding: 2px 9px;
    margin: 2px 3px 2px 0;
    font-size: 11px;
  }

  .sheet-table {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    margin-top: 4px;
    overflow: hidden;
  }

  .sheet-row {
    display: flex;
    flex: 1;
    min-height: 0;
    border-bottom: 1px solid #999;
  }

  .sheet-row:last-child { border-bottom: none; }

  .sheet-row-head {
    flex: 0 0 9mm;
    background: #f3ecef !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .02em;
    border-bottom: 2px solid #333;
  }

  .sheet-cell {
    padding: 3px 8px;
    font-size: 12px;
    border-right: 1px solid #999;
    display: flex;
    align-items: center;
  }

  .sheet-cell:last-child { border-right: none; }

  .sheet-cell-num { width: 7%; justify-content: center; color: #666; }
  .sheet-cell-name { width: 33%; }
  .sheet-cell-poste { width: 33%; }
  .sheet-cell-sign { width: 27%; }

  .av-cell-num { width: 7%; justify-content: center; color: #666; }
  .av-cell-name { width: 22%; }
  .av-cell-obs { width: 46%; }
  .av-cell-sign { width: 25%; }

  .av2-cell-num { width: 7%; justify-content: center; color: #666; }
  .av2-cell-name { width: 22%; }
  .av2-cell-desc { width: 51%; }
  .av2-cell-fixed { width: 20%; }

  .cb-cell-num { width: 5%; justify-content: center; color: #666; }
  .cb-cell-name { width: 15%; }
  .cb-cell-bras { width: 10%; justify-content: center; }
  .cb-cell-check { width: 12%; justify-content: center; }
  .cb-cell-err { width: 22%; }

  .cb-row-head .sheet-cell {
    font-size: 10px;
    text-align: center;
    justify-content: center;
  }

  .cb-row-head .cb-cell-name { justify-content: center; }
  .cb-row-head .cb-cell-err { justify-content: center; }

  .sheet-controleur-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 12px;
    margin: 8px 0 12px;
  }

  .sheet-controleur-line span:first-child {
    color: #666;
    white-space: nowrap;
  }

  .sheet-controleur-line .blank-line {
    flex: 1;
    border-bottom: 1px solid #999;
    height: 14px;
  }

  .sheet-double-sign {
    flex: 0 0 auto;
    display: flex;
    gap: 24px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #999;
  }

  .sheet-double-sign .sign-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .sheet-double-sign .sign-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
  }

  .sheet-double-sign .sign-name span {
    color: #666;
    white-space: nowrap;
  }

  .sheet-double-sign .sign-box {
    height: 14mm;
    border: 1px solid #999;
    border-radius: 4px;
  }

  .sheet-responsible {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #999;
  }

  .sheet-responsible-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
  }

  .sheet-responsible-name span {
    color: #666;
    white-space: nowrap;
  }

  .sheet-responsible-sign {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 60%;
  }

  .sheet-responsible-sign span {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .sheet-responsible-sign-box {
    flex: 1;
    height: 14mm;
    border: 1px solid #999;
    border-radius: 4px;
  }

  .process-print {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--mr-dark);
  }

  .process-print-objectif {
    font-size: 13px;
    color: #444;
    margin: 6px 0 18px;
    font-style: italic;
  }

  .process-print-h2 {
    font-size: 14px;
    margin: 18px 0 8px;
    color: var(--mr-primary);
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
  }

  .process-print-steps {
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .process-print-steps li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
  }

  .process-print-steps li::before {
    content: counter(step);
    flex: 0 0 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--mr-primary) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .process-print-attention {
    margin-top: 18px;
    background: #fff8ec !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border: 1px solid #f0d9a8;
    border-radius: 8px;
    padding: 12px 16px;
  }

  .process-print-attention h2 {
    margin-top: 0;
    border: none;
    padding: 0;
    color: #92620a;
  }

  .process-print-attention ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
  }

  .process-print-attention li { margin-bottom: 4px; }

.mr-pdf-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--mr-dark);
}

.mr-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--mr-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.mr-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Générateur de codes-barres */

.bc-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

@media (max-width: 720px) {
  .bc-layout { grid-template-columns: 1fr; }
}

.field-block { margin-bottom: 18px; }

.field-block label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mr-grey);
  margin-bottom: 6px;
}

.field-block select {
  width: 100%;
  border: 1px solid var(--mr-border);
  border-radius: 6px;
  padding: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.field-hint {
  font-size: 12px;
  color: var(--mr-grey);
  margin: 6px 0 0;
}

.error-text {
  color: var(--mr-danger);
  font-size: 12px;
  margin: 6px 0 0;
  min-height: 16px;
}

.opts-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.opt-item span {
  font-size: 13px;
  color: var(--mr-grey);
}

.opt-item input[type="number"] { width: 90px; }

.opt-checkbox { justify-content: flex-start; }

.opt-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mr-dark);
  cursor: pointer;
}

.bc-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bc-preview-box {
  border: 1px dashed var(--mr-border);
  border-radius: var(--radius);
  background: #fff;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.bc-preview-box svg { max-width: 100%; height: auto; }

.bc-empty {
  color: var(--mr-grey);
  font-size: 13px;
  text-align: center;
}

.bc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 18, 0.65);
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #f3ecef;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--mr-dark);
}

.modal-content svg,
.modal-content img,
.modal-content canvas {
  max-width: 80vw;
  max-height: 65vh;
  height: auto;
}

.modal-caption {
  font-size: 13px;
  color: var(--mr-grey);
  word-break: break-all;
  text-align: center;
  max-width: 60vw;
}

/* Fiche de responsabilisation */

.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.mode-tab {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--mr-border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--mr-grey);
  cursor: pointer;
  font-family: inherit;
}

.mode-tab.active {
  background: var(--mr-primary);
  color: #fff;
  border-color: var(--mr-primary);
}

td select {
  width: 100%;
  border: 1px solid var(--mr-border);
  border-radius: 6px;
  padding: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.postes-manager {
  margin: -6px 0 18px;
}

.postes-manager summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--mr-primary);
  outline: none;
}

.postes-manager-body {
  margin-top: 12px;
  padding: 12px;
  background: #fbf8f9;
  border: 1px solid var(--mr-border);
  border-radius: var(--radius);
}

.postes-add {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.postes-add input { flex: 1; }

.postes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.postes-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--mr-border);
  border-radius: 6px;
  padding: 6px 10px;
}

.postes-list .postes-empty {
  font-size: 12px;
  color: var(--mr-grey);
  background: transparent;
  border: none;
  padding: 2px 0;
}

.postes-remove {
  background: none;
  border: none;
  color: var(--mr-danger);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
}

.statement-edit {
  width: 100%;
  border: 1px solid var(--mr-border);
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}

.sheet-legend-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 18px;
}

.legend-tag-preview {
  display: inline-block;
  background: #fbf8f9;
  border: 1px solid var(--mr-border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--mr-dark);
}

.sheet-preview-table {
  border: 1px solid var(--mr-border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 640px;
}

.sheet-preview-row {
  display: flex;
  border-bottom: 1px solid var(--mr-border);
}

.sheet-preview-row:last-child { border-bottom: none; }

.sheet-preview-row.head {
  background: #fbf8f9;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mr-grey);
  letter-spacing: .03em;
}

.sheet-preview-cell {
  padding: 8px 10px;
  font-size: 13px;
  border-right: 1px solid var(--mr-border);
  min-height: 34px;
  display: flex;
  align-items: center;
}

.sheet-preview-cell:last-child { border-right: none; }

.sheet-preview-cell.num { width: 7%; justify-content: center; color: var(--mr-grey); }
.sheet-preview-cell.name { width: 33%; }
.sheet-preview-cell.poste { width: 33%; }

.archives-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fbf8f9;
  border: 1px solid var(--mr-border);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.archive-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archive-info strong {
  font-size: 14px;
  color: var(--mr-dark);
}

.archive-info span {
  font-size: 12px;
  color: var(--mr-grey);
}

.archive-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sheet-preview-cell.sign { width: 27%; }

/* Fiches de process */

.steps-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--mr-border);
  border-radius: 6px;
  padding: 6px 10px;
}

.step-num {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mr-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text-input {
  flex: 1;
  border: none;
  font-size: 14px;
  font-family: inherit;
  padding: 4px 0;
}

.step-text-input:focus { outline: none; }

.step-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.step-actions .step-move {
  background: transparent;
  border: 1px solid var(--mr-border);
  border-radius: 4px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  color: var(--mr-grey);
  font-size: 13px;
}

.step-actions .step-move:hover { background: #f3ecef; }

.attention-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.attention-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8ec;
  border: 1px solid #f0d9a8;
  border-radius: 6px;
  padding: 6px 10px;
}

.attention-text-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  padding: 4px 0;
}

.attention-text-input:focus { outline: none; }

.process-preview {
  max-width: 640px;
}

.process-preview-title {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--mr-primary);
}

.process-preview-objectif {
  font-size: 14px;
  color: var(--mr-grey);
  margin: 0 0 14px;
}

.process-preview-steps {
  margin: 0 0 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.process-preview-attention {
  background: #fff8ec;
  border: 1px solid #f0d9a8;
  border-radius: var(--radius);
  padding: 12px 16px;
}

.process-preview-attention strong {
  display: block;
  margin-bottom: 6px;
  color: #92620a;
  font-size: 13px;
}

.process-preview-attention ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--mr-dark);
}

/* Contrôle de bras */

.cb-preview-table .cb-pv-num { width: 5%; justify-content: center; }
.cb-preview-table .cb-pv-name { width: 15%; }
.cb-preview-table .cb-pv-bras { width: 10%; justify-content: center; }
.cb-preview-table .cb-pv-check { width: 12%; justify-content: center; }
.cb-preview-table .cb-pv-err { width: 22%; }

.cb-preview-table .sheet-preview-row.head .sheet-preview-cell {
  font-size: 11px;
  text-align: center;
  justify-content: center;
}
