/* Module « Dalles béton armé » : ce que son établi ajoute à la charte (css/charte.css) et au site (css/site.css).
   Le tableau des sollicitations d'une section (X / Y × inf. / sup., puis V), les couches d'armatures d'une nappe
   (deux rangées par couche), les étiquettes « auto » des axes et des centres de gravité, la lecture seule. */

/* ---------------------------------------------------------------- les sections et leurs sollicitations */
.dl-sec .sh2 .dl-st { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-sec .row.full { grid-template-columns: 52px minmax(0, 1fr); }
.dl-mom { display: grid; grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1fr); gap: 5px 6px; align-items: center; }
.dl-mom .dl-h { font-size: 11px; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-mom .dl-d { font-size: 12px; font-weight: 700; color: var(--ink); text-align: center; }
.dl-mom .dl-vh { font-size: 11px; color: var(--ink-3); padding-left: 2px; }
.dl-mom .field, .dl-couche .field { height: 30px; padding: 0 7px; }
.dl-mom .field input, .dl-couche .field input, .dl-couche .field select { font-size: 12.5px; }

/* ---------------------------------------------------------------- les nappes : une rangée de titre, puis les couches */
.rows .grp.dl-face { display: flex; align-items: baseline; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 2px; }
.rows .grp.dl-face:first-of-type { border-top: 0; }
.rows .grp.dl-face span { margin-left: auto; letter-spacing: 0; text-transform: none; font-size: 11.5px; color: var(--ink-2); font-weight: 650;
  font-variant-numeric: tabular-nums; }
.dl-couche { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1.18fr) 52px; gap: 5px 6px; align-items: center; }
.dl-couche + .dl-couche { padding-top: 6px; border-top: 1px dashed var(--line); }
.dl-n { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
  color: var(--ink-2); background: var(--bg-sunken); }
.dl-info { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 2px; }
.dl-tag, .dl-raz { justify-self: start; font-size: 10.5px; font-weight: 650; line-height: 18px; padding: 0 6px; border-radius: 5px; white-space: nowrap; }
.dl-tag { color: var(--ink-3); background: var(--bg-sunken); }
.dl-raz { color: var(--accent-hover); background: var(--accent-soft); cursor: pointer; }
.dl-raz:hover { box-shadow: inset 0 0 0 1px var(--accent-line); }
[data-theme="dark"] .dl-raz { color: var(--accent); }
.dl-couche .moins { justify-self: start; }
/* l'axe de la couche : le champ, nommé « axe » devant lui (l'étiquette « auto » ou « saisi ↺ » le suit) */
.dl-axe { display: flex; align-items: center; gap: 5px; min-width: 0; }
.dl-axe::before { content: "axe"; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.dl-axe .field { flex: 1; min-width: 0; }
.hint .dl-raz { margin-left: 4px; }

/* ---------------------------------------------------------------- une dalle verrouillée : lecture seule */
.dl-ro { justify-self: end; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sechd .tt svg.i { width: 13px; height: 13px; vertical-align: -1px; color: var(--ink-3); }
.ni .t svg.i { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; color: var(--ink-3); }
