/* Packs de maintenance mis en avant (Réception) + assistant de création de pack. Préfixe pa- */
.pa-wrap { padding: 0 22px 18px; }
.pa-wrap:has(> #pack-box[hidden]) { padding: 0; }
.pa-block { border-radius: 14px; overflow: hidden; color: #fff; border: 1px solid #e11d24;
  background: linear-gradient(135deg, #0b1020, #16203a 60%, #3a0d12); box-shadow: 0 12px 28px rgba(225, 29, 36, .22); }
.pa-hd { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pa-hd b { font-size: 15.5px; letter-spacing: .2px; }
.pa-hd small { display: block; color: #aab4c6; font-size: 12px; margin-top: 1px; }
.pa-ic { width: 36px; height: 36px; border-radius: 9px; background: #e11d24; display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 4px 12px rgba(225, 29, 36, .45); }
.pa-count { margin-left: auto; background: rgba(45, 187, 87, .16); border: 1px solid #2dbb57; color: #7fe0a0; border-radius: 12px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pa-count.none { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); color: #cfd7e4; }
.pa-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 12px 16px; }
.pa-offer { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 11px; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, background .15s; }
.pa-offer:hover { border-color: rgba(255, 255, 255, .35); }
.pa-offer.on { border-color: #2dbb57; background: rgba(45, 187, 87, .12); }
.pa-offer > b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pa-price { font-size: 19px; font-weight: 800; }
.pa-offer small { color: #aab4c6; font-size: 11.5px; }
.pa-offer ul { margin: 2px 0 4px; padding-left: 15px; color: #cfd7e4; font-size: 11.5px; flex: 1; }
.pa-offer li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-offer button, .pa-cta { border: 0; border-radius: 7px; padding: 7px 11px; font: inherit; font-weight: 700; font-size: 12.5px; background: #fff; color: #0b1020; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pa-offer.on button { background: #2dbb57; color: #fff; }
.pa-hd .pa-cta { margin-left: auto; }
.pa-cta.red { background: #e11d24; color: #fff; padding: 9px 14px; }
.pa-cta.red:hover { background: #c3151b; }
.pa-empty { margin: 0; padding: 14px 16px; color: #cfd7e4; font-size: 13px; }
.pa-ft { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(0, 0, 0, .25); flex-wrap: wrap; }
.pa-ft span { color: #aab4c6; font-size: 12px; }

/* assistant (modale) */
.pa-modal { width: min(980px, 100%); }
.pa-modal .modal-head { background: #0b1020; color: #fff; border-radius: 10px 10px 0 0; border-bottom: 3px solid #e11d24; }
.pa-modal .modal-head .h2 { color: #fff; }
.pa-modal .modal-head .icon-btn { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.pa-modal .modal-head .icon-btn svg { stroke: #fff; }
.pa-modal .modal-body { max-height: calc(100vh - 230px); overflow: auto; }
.pa-sub { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: #14223b; font-size: 14px; }
.pa-sub small { font-weight: 500; color: #6b7688; font-size: 12px; }
.pa-steps { display: flex; gap: 6px; margin: 12px 0 8px; flex-wrap: wrap; }
.pa-steps span { padding: 5px 11px; border-radius: 14px; background: #eef1f6; font-size: 11.5px; font-weight: 700; color: #6b7688; }
.pa-steps span.done { background: #e6f6ea; color: #15702c; }
.pa-steps span.on { background: #e11d24; color: #fff; }
.pa-tpls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pa-tpls button { border: 1.5px solid #d5dbe6; border-radius: 9px; padding: 6px 11px; font: inherit; font-weight: 700; font-size: 12.5px; background: #fff; color: #26324a; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pa-tpls button.on { border-color: #e11d24; color: #e11d24; background: #fff5f5; }
.pa-tpls i { font-style: normal; font-size: 10px; font-weight: 700; background: #e6f6ea; color: #15702c; border-radius: 8px; padding: 1px 6px; }
.pa-note { margin: 0 0 8px; font-size: 12px; color: #6b7688; }
.pa-slot { border: 1px solid #e3e8ef; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.pa-sh { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 11px; background: #f6f8fb; font-weight: 700; font-size: 13px; color: #14223b; }
.pa-sh em { font-style: normal; font-weight: 600; font-size: 11px; color: #6b7688; }
.pa-q { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.pa-q input { width: 58px; border: 1px solid #d5dbe6; border-radius: 6px; padding: 3px 6px; font: inherit; text-align: right; }
.pa-sug { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto minmax(90px, 160px); gap: 10px; align-items: center; padding: 7px 11px; border-top: 1px solid #eef1f6; font-size: 12.5px; cursor: pointer; }
.pa-sug:hover { background: #fafbfd; }
.pa-sug input { accent-color: #e11d24; margin: 0; }
.pa-sug > b { text-align: right; white-space: nowrap; }
.pa-none { color: #6b7688; }
.pa-ref { font-size: 11px; color: #6b7688; font-weight: 500; }
.pa-conf { font-size: 10.5px; font-weight: 700; border-radius: 8px; padding: 2px 8px; max-width: 280px; text-align: right; }
.pa-c3 { background: #e6f6ea; color: #15702c; }
.pa-c2 { background: #fff4dc; color: #8a5a00; }
.pa-c1, .pa-c0 { background: #eef1f6; color: #6b7688; }
.pa-warnp { color: #b3141a; text-decoration: underline dotted; }
.pa-find { padding: 6px 11px 8px; border-top: 1px dashed #e3e8ef; position: relative; }
.pa-find input { width: 100%; border: 1px solid #d5dbe6; border-radius: 7px; padding: 6px 9px; font: inherit; font-size: 12.5px; }
.pa-res { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.pa-res:empty { display: none; }
.pa-res button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; text-align: left; border: 0; background: #f6f8fb; border-radius: 6px; padding: 6px 9px; font: inherit; font-size: 12.5px; cursor: pointer; }
.pa-res button:hover { background: #fff1f1; }
.pa-res button .pa-ref { grid-column: 1; }
.pa-res button b { grid-row: 1; grid-column: 2; }
.pa-missing { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 9px 11px; border-radius: 9px; background: #fff1f1; border: 1px dashed #e11d24; font-size: 12.5px; color: #8e0f14; }
.pa-missing a { color: #b3141a; font-weight: 700; }
.pa-name { display: grid; gap: 8px; padding: 10px 11px; border-radius: 10px; background: #f6f8fb; }
.pa-name label { font-size: 12px; font-weight: 700; color: #26324a; display: flex; flex-direction: column; gap: 4px; }
.pa-name label.check { flex-direction: row; align-items: center; font-weight: 600; }
.pa-name input[data-pa-label] { border: 1px solid #d5dbe6; border-radius: 7px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 700; }
.pa-name small { color: #6b7688; font-size: 11.5px; }
.pa-tot { display: flex; align-items: center; gap: 16px; width: 100%; justify-content: space-between; flex-wrap: wrap; }
.pa-sum { font-size: 13px; margin-left: auto; }
.pa-sum b { font-size: 18px; }
.pa-sum small { color: #6b7688; }
@media (max-width: 720px) {
  .pa-sug { grid-template-columns: 18px minmax(0, 1fr) 80px; }
  .pa-sug .pa-conf { grid-column: 2 / 4; justify-self: start; max-width: none; text-align: left; }
  .pa-hd { flex-wrap: wrap; }
}
.pa-ext { border-top: 1px dashed #e3e8ef; background: #fbfcfe; padding: 6px 11px 8px; }
.pa-ext-h { display: flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 700; color: #3b4658; margin-bottom: 4px; }
.pa-ext-h em { font-style: normal; font-weight: 700; font-size: 10.5px; background: #fff4dc; color: #8a5a00; border-radius: 8px; padding: 1px 7px; }
.pa-ext-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; border-top: 1px solid #eef1f6; }
.pa-ext-row:first-of-type { border-top: 0; }
.pa-ext-row small { color: #6b7688; font-size: 11px; }
/* prix repris d'une facture finale (fiche article sans prix) */
.pa-pnote { display: block; font-size: 10.5px; font-weight: 500; color: #5b6b80; line-height: 1.25; white-space: normal; }
/* « Autres articles » utilisés sur ce modèle */
.pa-others > summary { cursor: pointer; list-style: none; }
.pa-others > summary::-webkit-details-marker { display: none; }
.pa-others > summary::after { content: '▾'; margin-left: 8px; color: #6b7688; }
.pa-others[open] > summary::after { content: '▴'; }
.pa-others .pa-note { margin: 8px 12px; }
.pa-others .pa-find { padding: 0 12px 6px; }
.pa-ocount { margin-left: auto; background: #0f1b2f; color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.pa-oq { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 4px; font-size: 11px; font-weight: 600; color: #44526a; }
.pa-oq input { width: 52px; padding: 3px 6px; border: 1px solid #d5dbe5; border-radius: 6px; text-align: right; font: inherit; }
