/* COBAT V2.4.142 — Réponses : écran unique sans scroll interne réponse / justificatifs */
body.module-cr-chantier .cr-analysis-editor{padding-bottom:14px}
body.module-cr-chantier .cr-analysis-section-title{margin:14px 0 8px;padding-top:12px;border-top:1px solid #e4ebf1;color:#123f67;font-size:10px;font-weight:750;letter-spacing:.055em;text-transform:uppercase}
body.module-cr-chantier .cr-analysis-section-title:first-of-type{margin-top:4px;padding-top:0;border-top:0}
body.module-cr-chantier .cr-analysis-next-step{margin-top:12px;padding:10px 11px;border-radius:9px;border:1px solid #cfe0ef;background:#f5faff;color:#315b7d;font-size:10px;line-height:1.45}
body.module-cr-chantier .cr-analysis-list-classification{margin-left:auto;display:flex;align-items:center}
body.module-cr-chantier #crResponseList .cr-response-state,
body.module-cr-chantier #crResponseList .cr-response-quick-close{display:none!important}
body.module-cr-chantier #crResponseList .cr-response-item-top{gap:6px}
body.module-cr-chantier #crResponseList .cr-response-quick-delete{margin-left:3px}

/* Espace Réponses : aucune page verticale sur desktop, seuls les panneaux défilent si nécessaire. */
body.module-cr-chantier #treatmentView{padding:0;background:transparent;min-height:0}
body.module-cr-chantier .cr-response-workspace-v2{
  display:grid;
  grid-template-columns:minmax(270px,320px) minmax(0,1fr);
  gap:12px;
  align-items:stretch;
  height:calc(100dvh - 278px);
  min-height:560px;
  max-height:760px;
}
body.module-cr-chantier .cr-response-queue-panel,
body.module-cr-chantier .cr-response-focus-panel{
  border:1px solid #dbe4ec;
  border-radius:13px;
  background:#fff;
  box-shadow:0 5px 18px rgba(19,55,87,.045);
  overflow:hidden;
  min-height:0;
}

/* Colonne de gauche */
body.module-cr-chantier .cr-response-queue-panel{display:flex;flex-direction:column;height:100%}
body.module-cr-chantier .cr-queue-head{padding:11px 12px 7px;border-bottom:0}
body.module-cr-chantier .cr-queue-head .panel-title{font-size:14px;color:#123f67}
body.module-cr-chantier .cr-queue-sub{margin-top:2px;font-size:9px;color:#74828f;line-height:1.3}
body.module-cr-chantier .cr-response-progress-strip{display:flex;gap:5px;flex-wrap:wrap;padding:0 10px 8px}
body.module-cr-chantier .cr-response-progress-strip .filter-pill{margin:0;padding:5px 8px;font-size:9px}
body.module-cr-chantier .cr-queue-filters{display:grid;grid-template-columns:1fr;gap:6px;padding:8px 10px;border-top:1px solid #edf1f4;border-bottom:1px solid #edf1f4;background:#fafcfd}
body.module-cr-chantier .cr-queue-filters .search,
body.module-cr-chantier .cr-queue-filters .select{width:100%;min-width:0;padding-top:7px;padding-bottom:7px;font-size:10px}
body.module-cr-chantier .cr-hidden-filter{display:none!important}
body.module-cr-chantier .cr-response-queue-panel .subjects{overflow:auto;min-height:0;flex:1;padding:7px}
body.module-cr-chantier .cr-response-queue-panel .subject{margin:0 0 6px;border-radius:9px;border:1px solid #e2e8ee;box-shadow:none;padding:9px;background:#fff}
body.module-cr-chantier .cr-response-queue-panel .subject.active{border-color:#7fb0da;background:#f4f9fe;box-shadow:inset 3px 0 0 #0b5cad}
body.module-cr-chantier .cr-response-queue-panel .subject-state{margin-top:6px}
body.module-cr-chantier .cr-response-queue-panel .subject-title{font-size:10.5px;line-height:1.3}
body.module-cr-chantier .cr-response-queue-panel .state-cell{padding:4px 6px}

/* Colonne de droite : grille verticale compacte, footer toujours visible. */
body.module-cr-chantier .cr-response-focus-panel{
  padding:0;
  height:100%;
  display:grid;
  grid-template-rows:auto minmax(62px,88px) minmax(190px,1fr) auto auto;
}
body.module-cr-chantier .cr-response-focus-panel>.cr-source-reference-card,
body.module-cr-chantier .cr-response-focus-panel>.cr-answer-main-card,
body.module-cr-chantier .cr-response-focus-panel>.cr-evidence-card{min-height:0}
body.module-cr-chantier .cr-response-focus-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:14px;
  padding:12px 15px 10px;border-bottom:1px solid #e8edf1;background:#fff;
}
body.module-cr-chantier .cr-response-focus-head .detail-title{font-size:17px;line-height:1.2;color:#123f67;margin:2px 0 5px}
body.module-cr-chantier .cr-response-focus-head .detail-kicker{font-size:9px}
body.module-cr-chantier .cr-response-focus-head .detail-tags{gap:5px}
body.module-cr-chantier .cr-response-status-box{display:flex;flex-direction:column;gap:4px;min-width:145px}
body.module-cr-chantier .cr-response-status-box>span{font-size:8px;font-weight:700;letter-spacing:.06em;color:#778693;text-transform:uppercase}
body.module-cr-chantier .cr-response-status-box .status-select{width:100%;min-width:0;padding:7px 9px}

body.module-cr-chantier .cr-response-focus-panel::before{display:none}
body.module-cr-chantier .cr-source-reference-card,
body.module-cr-chantier .cr-answer-main-card,
body.module-cr-chantier .cr-evidence-card{margin-left:15px;margin-right:15px}
body.module-cr-chantier .cr-source-reference-card{margin-top:8px;margin-bottom:0;padding:9px 11px;border:1px solid #dfe7ed;border-radius:9px;background:#f9fbfc;overflow:hidden}
body.module-cr-chantier .cr-source-reference-card .source-top{margin-bottom:5px}
body.module-cr-chantier .cr-source-reference-card .source-label{font-size:8px}
body.module-cr-chantier .cr-source-reference-card .source-ref{font-size:9px}
body.module-cr-chantier .cr-source-reference-card .source-text{font-size:10.5px;line-height:1.42;color:#465766}

/* Le bloc central se compacte naturellement pour tenir dans la hauteur. */
body.module-cr-chantier .cr-answer-main-card{margin-top:8px;margin-bottom:0;border:1px solid #bcd5eb;border-radius:10px;background:#f7fbff;padding:10px 12px;box-shadow:inset 3px 0 0 #0b5cad;overflow:hidden}
body.module-cr-chantier .cr-answer-main-head,
body.module-cr-chantier .cr-card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
body.module-cr-chantier .cr-answer-eyebrow{display:block;color:#0b5cad;font-size:8px;letter-spacing:.08em;font-weight:750;margin-bottom:2px}
body.module-cr-chantier .cr-answer-main-head h3,
body.module-cr-chantier .cr-card-title-row h3{margin:0;color:#173f62;font-size:12px;font-weight:650}
body.module-cr-chantier .cr-report-toggle{display:flex;align-items:center;gap:7px;color:#61717f;font-size:9px;white-space:nowrap;cursor:pointer}
body.module-cr-chantier .cr-answer-box{display:block;width:100%;margin-top:8px;min-height:70px;height:clamp(70px,11vh,105px);border:1px solid #cbd9e5!important;border-radius:8px!important;background:#fff!important;padding:10px!important;font-size:11px!important;line-height:1.45!important;resize:none}
body.module-cr-chantier .cr-answer-box:focus{border-color:#6fa5d3!important;box-shadow:0 0 0 3px rgba(11,92,173,.08)!important;outline:none}
body.module-cr-chantier .cr-answer-bottom-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:6px;padding-top:6px;border-top:1px solid #dce9f3}
body.module-cr-chantier .cr-answer-checks{min-width:0;max-height:none;overflow:visible}
body.module-cr-chantier .cr-answer-checks .response-checks-title{font-size:8px;color:#6e7f8e;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
body.module-cr-chantier .cr-answer-checks .coverage-row{font-size:8.5px;line-height:1.25}
body.module-cr-chantier .cr-answer-actions{display:flex;gap:5px}
body.module-cr-chantier .cr-answer-actions .btn{padding:5px 8px;font-size:9px}

body.module-cr-chantier .cr-evidence-card{margin-top:6px;margin-bottom:6px;padding:7px 11px;border:1px solid #dfe7ed;border-radius:9px;background:#fff;overflow:hidden}
body.module-cr-chantier .cr-evidence-card .attachments{margin-top:5px}
body.module-cr-chantier .cr-evidence-card .cr-attachment-toolbar{gap:5px;margin-bottom:4px}
body.module-cr-chantier .cr-evidence-card .cr-attachment-toolbar .btn{padding:5px 8px;font-size:9px}
body.module-cr-chantier .cr-evidence-card .attachment{padding:6px 8px}
body.module-cr-chantier .cr-evidence-card .cr-attachment-empty{padding:6px 8px;font-size:9px}

/* Cache définitivement les anciens blocs de suivi dans cette vue. */
body.module-cr-chantier .cr-response-details,
body.module-cr-chantier .cr-context-details{display:none!important}

body.module-cr-chantier .cr-response-footer{margin:0;padding:9px 15px;border-top:1px solid #e3e9ee;background:#fafcfd;display:flex;align-items:center;justify-content:space-between;gap:8px}
body.module-cr-chantier .cr-response-footer .btn{padding:7px 10px;font-size:10px}
body.module-cr-chantier .cr-response-footer .detail-footer-actions{gap:6px}

/* Sur l'étape Réponses, on compacte également le bandeau d'étapes pour gagner de la hauteur. */
body.module-cr-chantier.cr-step-responses .cr-workflow-head{margin-bottom:10px}
body.module-cr-chantier.cr-step-responses .cr-workflow-intro{display:none}
body.module-cr-chantier.cr-step-responses .cr-workflow-steps{padding:10px 14px}
body.module-cr-chantier.cr-step-responses .cr-workflow-step{padding:7px 9px;min-width:130px}
body.module-cr-chantier.cr-step-responses .cr-workflow-step small{display:none}
body.module-cr-chantier.cr-step-responses #treatmentView>.cr-step-context{padding:9px 12px;margin-bottom:10px}
body.module-cr-chantier.cr-step-responses #treatmentView>.cr-step-context h2{font-size:15px;margin:2px 0}
body.module-cr-chantier.cr-step-responses #treatmentView>.cr-step-context p{display:none}
body.module-cr-chantier.cr-step-responses #treatmentView>.cr-step-context .eyebrow{font-size:8px}

@media(min-width:1450px) and (min-height:900px){
  body.module-cr-chantier .cr-response-workspace-v2{height:calc(100dvh - 245px);max-height:none}
  body.module-cr-chantier .cr-answer-box{height:clamp(82px,12vh,115px)}
  body.module-cr-chantier .cr-evidence-card{max-height:none}
}
@media(max-width:1180px){
  body.module-cr-chantier .cr-response-workspace-v2{grid-template-columns:270px minmax(0,1fr)}
}
@media(max-width:900px){
  body.module-cr-chantier .cr-response-workspace-v2{grid-template-columns:1fr;height:auto;max-height:none;min-height:0}
  body.module-cr-chantier .cr-response-queue-panel{height:auto;max-height:none}
  body.module-cr-chantier .cr-response-queue-panel .subjects{max-height:300px}
  body.module-cr-chantier .cr-response-focus-panel{height:auto;display:block}
  body.module-cr-chantier .cr-evidence-card{max-height:none}
  body.module-cr-chantier .cr-answer-box{height:120px;resize:vertical}
}
@media(max-width:650px){
  body.module-cr-chantier .cr-response-focus-head,
  body.module-cr-chantier .cr-answer-main-head,
  body.module-cr-chantier .cr-card-title-row{flex-direction:column}
  body.module-cr-chantier .cr-response-status-box{width:100%}
  body.module-cr-chantier .cr-answer-bottom-row{grid-template-columns:1fr}
  body.module-cr-chantier .cr-response-footer{flex-direction:column;align-items:stretch}
  body.module-cr-chantier .cr-response-footer .detail-footer-actions{display:grid;grid-template-columns:1fr}
}

/* V2.4.142 — les blocs Réponse et Justificatifs ne défilent jamais intérieurement. */
body.module-cr-chantier .cr-answer-main-card,
body.module-cr-chantier .cr-evidence-card{overflow:hidden!important;max-height:none!important}
body.module-cr-chantier .cr-answer-checks{overflow:visible!important;max-height:none!important}
body.module-cr-chantier .cr-evidence-card .attachments{overflow:visible!important;max-height:none!important}
body.module-cr-chantier .cr-evidence-card .cr-card-title-row{margin-bottom:2px}
