/* Rapport — onglet « Actions avant le prochain rapport ». */

.ax-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.ax-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 10px; }
.ax-side__box { padding: 12px 0 8px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-surface); }
.ax-side__box .rr-side__title { padding: 0 10px 10px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 10px; }
.ax-tree { max-height: calc(100vh - var(--header-h) - 190px); overflow-y: auto; }
.ax-folder { border-top: 1px solid var(--border-subtle); }
.ax-folder:first-child { border-top: 0; }
.ax-folder summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-size: var(--text-xs); color: var(--fg-strong); }
.ax-folder summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-folder summary em { font-style: normal; color: var(--status-nonconform-fg); font-weight: 500; }
.ax-folder summary .chev { width: 14px; height: 14px; flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.ax-folder:not([open]) summary .chev { transform: rotate(-90deg); }
.ax-doc { display: flex; align-items: center; gap: 5px; width: 100%; padding: 5px 14px 5px 34px; border: 0; background: none; text-align: left; font: 400 var(--text-xs)/1.3 var(--font-sans); color: var(--fg-strong); cursor: pointer; }
.ax-doc span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-doc:hover { background: var(--bg-raised); }
.ax-doc.is-on { background: var(--accent-tint); color: var(--accent); font-weight: 500; }
.ax-doc.is-missing span { color: var(--status-nonconform-fg); }
.ax-n { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: var(--text-2xs); color: var(--fg-strong); }
.ax-n::before { content: ''; width: 7px; height: 7px; border-radius: 2px; }
.ax-n--inc::before { background: var(--status-uncertain); }
.ax-n--con::before { background: var(--status-nonconform); }
.ax-miss { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--status-nonconform); flex: none; }
.ax-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: var(--text-2xs); color: var(--fg-strong); }
.ax-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ax-sq { width: 7px; height: 7px; border-radius: 2px; }
.ax-sq--inc { background: var(--status-uncertain); }
.ax-sq--con { background: var(--status-nonconform); }

.ax-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ax-banner { display: flex; gap: 14px; padding: 12px 20px; border: 1px solid var(--accent-border); border-radius: var(--radius); background: var(--accent-tint); }
.ax-banner svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--fg-strong); fill: var(--fg-strong); }
.ax-banner p { margin: 0; font-size: var(--text-sm); line-height: 1.45; color: var(--fg-strong); }
.ax-banner b { font-weight: 500; }
.ax-main { display: flex; flex-direction: column; gap: 22px; scroll-margin-top: calc(var(--header-h) + 16px); }
.ax-filter { display: flex; }

.ax-section { display: flex; flex-direction: column; gap: 10px; }
.ax-section__head { display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.ax-sico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--bg-raised); }
.ax-sico svg { width: 18px; height: 18px; stroke-width: 1.8; color: var(--fg-strong); }
.ax-section__head h3 { margin: 0; font: 500 var(--text-lg)/1.3 var(--font-sans); color: var(--fg-strong); }
.ax-section__head .pj-muted { font-size: var(--text-sm); }

.ax-list { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-surface); }
.ax-row { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 0 20px; border-top: 1px solid var(--border-subtle); }
.ax-row:first-child { border-top: 0; }
.ax-row:hover { background: var(--bg-raised); }
.ax-ico { flex: none; width: 18px; height: 18px; stroke-width: 1.7; }
.ax-ico--nc { color: var(--status-nonconform-fg); }
.ax-ico--inc { color: var(--status-uncertain-fg); }
.ax-row__name { flex: 1; min-width: 0; font-size: var(--text-md); color: var(--fg-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-who { position: relative; }
.ax-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--bg-raised); font: 500 var(--text-xs)/1 var(--font-sans); color: var(--fg-strong); cursor: pointer; }
.ax-chip:hover { border-color: var(--border-default); background: var(--bg-surface); }
.ax-chip svg { width: 12px; height: 12px; stroke-width: 2; }
.ax-who .rf-menu { top: calc(100% + 4px); min-width: 220px; }
.ax-blocked { min-width: 132px; text-align: right; font-size: var(--text-sm); color: var(--fg-muted); cursor: default; }
.ax-blocked b { font: 500 var(--text-md)/1 var(--font-sans); color: var(--fg-strong); }

.ax-stack--inc { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-surface); overflow: hidden; }
.ax-card { background: var(--bg-surface); }
.ax-card--inc { padding: 14px 20px; }
.ax-card--inc + .ax-card--inc { border-top: 1px solid var(--border-subtle); }
.ax-card__head { display: flex; align-items: center; gap: 8px; }
.ax-card__head h4 { flex: 1; margin: 0; font: 400 var(--text-md)/1.3 var(--font-sans); color: var(--fg-strong); }
.ax-card__head .link-cta--strong { font-size: var(--text-sm); }
.ax-card__sub { display: block; margin: 6px 0 0; font-size: var(--text-xs); color: var(--fg-strong); }
.ax-card--inc .ax-card__sub { margin-left: 26px; font-size: var(--text-sm); color: var(--fg-muted); }
.ax-card__sub b { font-weight: 500; color: var(--fg-strong); }
.ax-gaps { list-style: none; margin: 12px 0 0 38px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ax-gaps li { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--fg-strong); }
.ax-num { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 7px; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-default); color: var(--status-uncertain-fg); font-size: var(--text-2xs); }

.ax-pair { margin: 4px 0 0; font: 500 var(--text-md)/1.3 var(--font-sans); color: var(--fg-strong); }
.ax-card--con { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.ax-con { padding: 16px 20px 14px; }
.ax-card--con.is-edited .ax-con > :not(.rr-client):not(.rule-comment):not(.rr-form) { opacity: .6; }
.ax-con__text { margin: 0; font-size: var(--text-md); line-height: 1.45; color: var(--fg-strong); }
.ax-claims { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ax-claims li { display: flex; align-items: center; gap: 10px; }
.ax-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--status-nonconform); }
.ax-claims img { flex: none; width: 100px; height: 50px; object-fit: cover; border-radius: var(--radius-xs); border: 1px solid var(--border-subtle); }
.ax-claims span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ax-claims b { font: 500 var(--text-xs)/1.3 var(--font-sans); color: var(--fg-strong); }
.ax-claims small { font-size: var(--text-xs); color: var(--gray-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-con .rr-client { margin: 12px 0 0; }
.ax-con .rule-comment { margin-top: 10px; }
.ax-con .rule-comment p { margin: 0 0 2px; }
.ax-card__foot { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg-raised); }
.ax-rule { flex: 1; display: flex; gap: 10px; min-width: 0; font-size: var(--text-sm); color: var(--fg-strong); }
.ax-rule em { font-style: normal; color: var(--gray-600); flex: none; }

/* En-tête de l'onglet : titre de section (niveau 1) + sous-titre, partage à droite */
.ax-body > .rr-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ax-body > .rr-head .rr-head__title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ax-body > .rr-head h2 { margin: 0; font: 500 var(--text-lg)/1.3 var(--font-sans); color: var(--fg-strong); }
.ax-body > .rr-head p { margin: 0; font-size: var(--text-sm); color: var(--fg-muted); }

/* États de document (≠ statuts de règle) : icônes de fichier, jamais de pastille carrée */
.ax-st { display: inline-flex; align-items: center; gap: 3px; font-size: var(--text-2xs); color: var(--fg-strong); }
.ax-st svg { width: 13px; height: 13px; stroke-width: 1.8; }
.ax-st em { font-style: normal; }
.ax-st--inc svg { color: var(--status-uncertain-fg); }
.ax-st--con svg { color: var(--status-nonconform-fg); }
.ax-st--miss svg { color: var(--fg-muted); }
.ax-legend .ax-st { font-size: var(--text-2xs); }
.ax-layout .rf-search, .dv-left .rf-search { width: auto; align-self: stretch; flex: none; }

/* Documents à compléter : une ligne par évaluation incertaine (règle + constat) */
.ax-gaps li { align-items: flex-start; }
.ax-gaps li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ax-gap__rule { font-weight: 500; color: var(--fg-strong); }
.ax-gap__rule:hover { color: var(--accent); }
.ax-gaps small { font-size: var(--text-xs); line-height: 1.45; color: var(--fg-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ax-gaps .ax-num { margin-top: 2px; }
