/* COBAT V2.4.78 — CR Chantier / Rapport de réponse
   Refonte visuelle légère : hiérarchie, respiration et lisibilité écran/PDF.
   Aucune logique métier modifiée. */

body.module-cr-chantier .report-workbench{
  gap:16px;
}
body.module-cr-chantier .report-workbench-head{
  align-items:center;
  padding:18px 20px;
  border-radius:14px;
  border-color:#dce4eb;
  box-shadow:0 7px 22px rgba(23,55,86,.055);
}
body.module-cr-chantier .report-workbench-kicker{
  color:#0B5CAD;
  font-weight:700;
  letter-spacing:1.05px;
}
body.module-cr-chantier .report-workbench-head h2{
  margin:4px 0 4px;
  font-size:23px;
  font-weight:650;
  color:#173955;
}
body.module-cr-chantier .report-workbench-head p{
  font-size:11.5px;
  line-height:1.4;
  color:#6f7f8e;
}
body.module-cr-chantier .report-workbench-actions{
  gap:8px;
  align-items:center;
}
body.module-cr-chantier .report-workbench-actions .btn{
  min-height:38px;
  padding-inline:13px;
}

body.module-cr-chantier .report-builder{
  grid-template-columns:minmax(650px,1fr) 372px;
  gap:18px;
}
body.module-cr-chantier .report-canvas{
  padding:28px;
  background:#edf2f6;
  border-color:#d6e0e8;
  border-radius:16px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
body.module-cr-chantier .report-sheet{
  width:min(920px,100%);
  padding:22px;
  border-radius:8px;
  background:#e6ebf0;
  box-shadow:none;
}

/* Feuille / identité */
body.module-cr-chantier .report-paper .report-brand-v2{
  padding-bottom:13px!important;
  border-bottom:1px solid #cfdbe5!important;
}
body.module-cr-chantier .report-paper .report-company-mark{
  width:42px!important;
  height:42px!important;
  border-radius:9px!important;
  background:#0B5CAD!important;
  font-weight:800!important;
  letter-spacing:.7px!important;
}
body.module-cr-chantier .report-paper .report-company h2{
  color:#073763!important;
  font-size:15px!important;
  font-weight:700!important;
  letter-spacing:.1px!important;
}
body.module-cr-chantier .report-paper .report-company p{
  margin-top:2px!important;
  color:#728394!important;
  font-size:8.5px!important;
}
body.module-cr-chantier .report-paper .report-state{
  padding:5px 9px!important;
  border-radius:999px!important;
  color:#4f6172!important;
  border-color:#d5dee6!important;
  background:#f7f9fb!important;
  font-size:7.5px!important;
  font-weight:700!important;
}
body.module-cr-chantier .report-paper .report-state.ready{
  color:#216342!important;
  border-color:#cfe2d6!important;
  background:#f2f8f4!important;
}
body.module-cr-chantier .report-paper .report-title-block{
  padding:20px 0 14px!important;
}
body.module-cr-chantier .report-paper .report-title-main{
  color:#073763!important;
  font-size:22px!important;
  line-height:1.2!important;
  font-weight:700!important;
  letter-spacing:-.1px!important;
}
body.module-cr-chantier .report-paper .report-title-sub{
  margin-top:6px!important;
  color:#6d7f90!important;
  font-size:9.5px!important;
  line-height:1.35!important;
}

/* Métadonnées : source/date sur la première ligne, destinataire/réf./rédacteur sur la seconde. */
body.module-cr-chantier .report-paper .report-meta-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
  margin:0 0 14px!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
}
body.module-cr-chantier .report-paper .report-meta-cell{
  min-width:0!important;
  padding:8px 9px!important;
  border:1px solid #dce5ed!important;
  border-radius:7px!important;
  background:rgba(248,250,252,.9)!important;
}
body.module-cr-chantier .report-paper .report-meta-cell:first-child{
  grid-column:span 2!important;
}
body.module-cr-chantier .report-paper .report-meta-cell span{
  margin-bottom:4px!important;
  color:#81909e!important;
  font-size:6.6px!important;
  font-weight:700!important;
  line-height:1!important;
  letter-spacing:.55px!important;
}
body.module-cr-chantier .report-paper .report-meta-cell div{
  color:#2f4355!important;
  font-size:8.8px!important;
  font-weight:600!important;
  line-height:1.32!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

body.module-cr-chantier .report-paper .report-intro,
body.module-cr-chantier .report-paper .report-conclusion{
  margin:8px 0!important;
  padding:9px 11px!important;
  border-left:3px solid #D54C56!important;
  border-radius:0 7px 7px 0!important;
  background:#fff8f8!important;
  color:#4f5e6b!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:8.8px!important;
  font-weight:400!important;
  font-style:normal!important;
  line-height:1.5!important;
}
body.module-cr-chantier .report-paper .report-intro:empty,
body.module-cr-chantier .report-paper .report-conclusion:empty{
  display:none!important;
}

/* Synthèse */
body.module-cr-chantier .report-paper .report-summary{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;
  padding:3px 0 14px!important;
}
body.module-cr-chantier .report-paper .report-summary-card{
  min-width:0!important;
  padding:8px 9px!important;
  border:1px solid #dbe5ee!important;
  border-radius:7px!important;
  background:#f8fbfe!important;
}
body.module-cr-chantier .report-paper .report-summary-card .n{
  color:#0B5CAD!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:1!important;
}
body.module-cr-chantier .report-paper .report-summary-card .t{
  margin-top:4px!important;
  color:#6f8191!important;
  font-size:6.8px!important;
  line-height:1.25!important;
}

body.module-cr-chantier .report-paper .report-list-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:2px 0 9px!important;
  padding:7px 0!important;
  border-top:1px solid #cbd8e4!important;
  border-bottom:1px solid #cbd8e4!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
body.module-cr-chantier .report-paper .report-list-head>div:first-child{
  padding:0!important;
  background:transparent!important;
  color:#073763!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.2!important;
  text-decoration:none!important;
}
body.module-cr-chantier .report-paper .report-list-head>div:last-child{
  color:#6c7d8d!important;
  font-size:7px!important;
  font-weight:700!important;
  font-variant:normal!important;
  letter-spacing:.15px!important;
}

/* Une réponse = un bloc clairement identifié. */
body.module-cr-chantier .report-paper .report-response-item{
  position:relative!important;
  padding:12px 13px 13px!important;
  margin:0 0 10px!important;
  border:1px solid #d9e3ec!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.94)!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
}
body.module-cr-chantier .report-paper .report-response-item:last-child{
  margin-bottom:0!important;
}
body.module-cr-chantier .report-paper .report-response-top{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr) auto!important;
  gap:9px!important;
  align-items:start!important;
}
body.module-cr-chantier .report-paper .report-response-num{
  display:grid!important;
  place-items:center!important;
  width:25px!important;
  height:25px!important;
  border:1px solid #c8d9e8!important;
  border-radius:7px!important;
  background:#eef6fd!important;
  color:#0B5CAD!important;
  font-size:7.5px!important;
  font-weight:800!important;
  font-variant:normal!important;
}
body.module-cr-chantier .report-paper .report-response-title{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  padding:0!important;
  background:transparent!important;
  border-radius:0!important;
  color:#173d5e!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:11.2px!important;
  font-weight:700!important;
  line-height:1.3!important;
  text-decoration:none!important;
}
body.module-cr-chantier .report-paper .report-response-source{
  margin-top:4px!important;
  color:#738596!important;
  font-size:6.8px!important;
  font-weight:600!important;
  font-variant:normal!important;
  letter-spacing:.15px!important;
}
body.module-cr-chantier .report-paper .report-topic-dot{
  width:6px!important;
  height:6px!important;
}
body.module-cr-chantier .report-paper .report-item-state{
  align-self:start!important;
  padding:4px 7px!important;
  border:1px solid #cfe0d6!important;
  border-radius:999px!important;
  background:#f3f8f5!important;
  color:#34664b!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:6.4px!important;
  font-weight:700!important;
  font-style:normal!important;
  font-variant:normal!important;
  letter-spacing:.1px!important;
  white-space:nowrap!important;
}
body.module-cr-chantier .report-paper .report-item-state.missing{
  color:#7A1720!important;
  border-color:#eccdd1!important;
  background:#fff6f7!important;
}

body.module-cr-chantier .report-paper .report-request-block{
  margin:9px 0 0 37px!important;
  padding:8px 10px!important;
  border:1px solid #e0e6ec!important;
  border-left:3px solid #9baaba!important;
  border-radius:7px!important;
  background:#f7f9fb!important;
}
body.module-cr-chantier .report-paper .report-request-label{
  margin-bottom:4px!important;
  color:#6f7f8f!important;
  font-size:6.4px!important;
  font-weight:800!important;
  letter-spacing:.45px!important;
}
body.module-cr-chantier .report-paper .report-request-text{
  color:#415364!important;
  font-size:8.3px!important;
  line-height:1.46!important;
}
body.module-cr-chantier .report-paper .report-answer-block{
  margin:8px 0 0 37px!important;
  padding:9px 10px 10px!important;
  border:1px solid #cfe1f2!important;
  border-left:3px solid #0B5CAD!important;
  border-radius:7px!important;
  background:#f6faff!important;
}
body.module-cr-chantier .report-paper .report-answer-label{
  margin-bottom:5px!important;
  color:#0B5CAD!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:6.7px!important;
  font-weight:800!important;
  line-height:1.1!important;
  text-decoration:none!important;
  text-transform:uppercase!important;
  letter-spacing:.5px!important;
}
body.module-cr-chantier .report-paper .report-answer-edit{
  min-height:18px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#20394f!important;
  font-size:9.2px!important;
  line-height:1.55!important;
  box-shadow:none!important;
}
body.module-cr-chantier .report-paper .report-answer-edit.empty:before{
  color:#9c6870!important;
  font-style:italic!important;
}
body.module-cr-chantier .report-paper .report-attachments{
  margin-top:8px!important;
  margin-left:37px!important;
}
body.module-cr-chantier .report-paper .report-attachments-label{
  color:#728292!important;
  font-size:6.4px!important;
  font-weight:700!important;
}
body.module-cr-chantier .report-paper .report-item-actions{
  margin:7px 0 0 37px!important;
  gap:7px!important;
  opacity:1!important;
}
body.module-cr-chantier .report-paper .report-inline-action{
  padding:5px 8px!important;
  border:1px solid #d9e3eb!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#53687b!important;
  font-size:7px!important;
}

/* Panneau de réglages */
body.module-cr-chantier .report-controls{
  gap:10px;
  padding:0;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#cbd7e1 transparent;
}
body.module-cr-chantier .report-control-tabs{
  position:sticky;
  top:0;
  z-index:4;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:4px;
  padding:5px;
  margin-bottom:2px;
  border:1px solid #dbe4ec;
  border-radius:11px;
  background:rgba(247,250,252,.96);
  backdrop-filter:blur(8px);
}
body.module-cr-chantier .report-control-tab{
  min-width:0;
  min-height:34px;
  padding:7px 5px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#66798b;
  font-size:9px;
  font-weight:700;
}
body.module-cr-chantier .report-control-tab.active{
  background:#fff;
  color:#0B5CAD;
  box-shadow:0 1px 4px rgba(24,60,91,.11);
}
body.module-cr-chantier .report-control-pane{
  gap:10px;
}
body.module-cr-chantier .report-control-card{
  border-color:#dce4eb;
  border-radius:12px;
  box-shadow:0 4px 14px rgba(24,55,82,.035);
}
body.module-cr-chantier .report-control-head{
  padding:11px 13px;
  color:#29445c;
  font-size:11px;
  font-weight:700;
  background:#fbfcfd;
}
body.module-cr-chantier .report-control-head span{
  color:#8291a0;
  font-size:8px;
  font-weight:600;
}
body.module-cr-chantier .report-control-body{
  padding:13px;
}
body.module-cr-chantier .report-field{
  gap:5px;
}
body.module-cr-chantier .report-field>span{
  color:#6f7f8e;
  font-size:8px;
  font-weight:700;
}
body.module-cr-chantier .report-field input,
body.module-cr-chantier .report-side-textarea{
  border-color:#d5e0e9;
  border-radius:8px;
  background:#fff;
}
body.module-cr-chantier .report-field input{
  min-height:38px;
  padding:8px 9px;
}
body.module-cr-chantier .report-side-textarea{
  min-height:88px;
  padding:9px 10px;
  line-height:1.45;
}
body.module-cr-chantier .report-field input:focus,
body.module-cr-chantier .report-side-textarea:focus{
  border-color:#8db8df;
  box-shadow:0 0 0 3px rgba(11,92,173,.08);
  outline:none;
}

/* Le vide est traité comme un vrai état d'écran. */
body.module-cr-chantier .report-empty{
  margin:18px 0;
  padding:28px 20px;
  border:1px dashed #c9d6e1;
  border-radius:10px;
  background:#f9fbfc;
  color:#738392;
  text-align:center;
  line-height:1.5;
}

@media (max-width:1280px){
  body.module-cr-chantier .report-builder{grid-template-columns:minmax(600px,1fr) 340px;gap:14px}
  body.module-cr-chantier .report-canvas{padding:18px}
}
@media (max-width:1080px){
  body.module-cr-chantier .report-builder{grid-template-columns:1fr}
  body.module-cr-chantier .report-controls{position:static;max-height:none;overflow:visible}
  body.module-cr-chantier .report-workbench-head{align-items:flex-start;flex-direction:column}
  body.module-cr-chantier .report-workbench-actions{justify-content:flex-start}
}

/* L'impression native conserve exactement la même hiérarchie visuelle. */
@media print{
  body.module-cr-chantier .report-paper .report-response-item{
    box-shadow:none!important;
  }
  body.module-cr-chantier .report-sheet{
    padding:0!important;
    background:transparent!important;
  }
}
