/* V152.6 — actions CRUD cohérentes, lisibles et adaptées au mobile. */
.crud-stack{display:grid;gap:14px;margin-top:18px}
.crud-item,.crud-item-card{display:grid;gap:12px;border:1px solid rgba(15,84,126,.15);border-radius:16px;padding:16px;background:#fff}
.crud-item{grid-template-columns:minmax(0,1fr) auto;align-items:end}
.crud-grid{align-items:start;margin-top:18px}
.crud-create-panel{margin-bottom:18px}
.crud-create-panel summary{cursor:pointer;color:#075b91;padding:4px 0}
.crud-create-panel[open] summary{margin-bottom:18px}
.crud-item-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.crud-item-heading>div{display:grid;gap:3px}
.compact-form{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(260px,1.3fr) auto;gap:10px;align-items:end}
.compact-form label{margin:0}
.actions-cell{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.actions-cell details{min-width:110px}
.actions-cell details[open]{min-width:min(520px,80vw)}
.mini-form{display:grid;gap:8px;margin-top:10px;padding:12px;background:#f5f9fc;border:1px solid #dce8f0;border-radius:12px}
.message-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f9fb;padding:12px;border-radius:12px}
@media (max-width:760px){
  .crud-item{grid-template-columns:1fr}
  .compact-form{grid-template-columns:1fr}
  .crud-item .btn,.crud-item form:last-child,.crud-item form:last-child .btn{width:100%}
  .crud-item-card{padding:14px}
  .actions-cell{min-width:180px}
  .actions-cell details[open]{min-width:min(78vw,420px)}
}
