/* css/bom.css — Panneau de nomenclature (apport de l'original réimplémenté).
   Feuille additive : aucune règle existante n'est modifiée. */

.bom-modal { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; }
.bom-modal[hidden] { display: none; }
.bom-backdrop { position: absolute; inset: 0; background: rgba(8, 15, 27, 0.75); backdrop-filter: blur(3px); }
.bom-dialog {
  position: relative; width: min(880px, 94vw); max-height: 84vh;
  display: flex; flex-direction: column;
  background: #111c2c; color: #e8eef7;
  border: 1px solid #2b3d55; border-radius: 12px;
  box-shadow: 0 24px 70px rgba(2, 8, 20, 0.6);
  font: 13px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.bom-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid #2b3d55;
  background: linear-gradient(120deg, #152942, #111c2c);
}
.bom-head h2 { margin: 0; font-size: 16px; }
.bom-head p { margin: 4px 0 0; color: #9aabc1; font-size: 12px; }
.bom-head > div { flex: 1; }
.bom-close {
  border: 1px solid #2b3d55; background: transparent; color: #e8eef7;
  border-radius: 6px; width: 30px; height: 30px; cursor: pointer; font-size: 19px; line-height: 1;
}
.bom-close:hover { border-color: #38bdf8; }
.bom-content { flex: 1; overflow: auto; padding: 16px 20px; }
.bom-summary { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; color: #9aabc1; font-size: 12px; }
.bom-summary b { color: #38bdf8; font-size: 14px; }
.bom-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.bom-table th, .bom-table td { border-bottom: 1px solid #243449; padding: 8px 10px; text-align: left; vertical-align: top; }
.bom-table th { color: #9aabc1; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; }
.bom-table tbody tr:hover { background: #172538; }
.bom-table small { display: block; color: #9aabc1; font-size: 10px; }
.bom-qty { font-weight: 700; color: #fbbf24; }
.bom-refs { font-family: ui-monospace, 'Cascadia Code', monospace; color: #7dd3fc; }
.bom-empty { text-align: center; color: #9aabc1; padding: 34px 10px; }
.bom-error { color: #f87171; }
.bom-warnings { margin-top: 16px; border-left: 3px solid #fbbf24; padding: 8px 12px; background: rgba(251, 191, 36, 0.08); }
.bom-warnings b { color: #fbbf24; }
.bom-warnings ul { margin: 6px 0 0; padding-left: 20px; color: #e8eef7; }
.bom-fallback { width: 100%; min-height: 140px; margin-bottom: 12px; background: #0b1523; color: #e8eef7; border: 1px solid #2b3d55; border-radius: 6px; padding: 10px; font: 12px/1.4 ui-monospace, monospace; }
.bom-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 20px; border-top: 1px solid #2b3d55; background: #0d1727;
}
.bom-foot-note { color: #9aabc1; font-size: 11px; }
.bom-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bom-btn {
  border: 1px solid #2b3d55; border-radius: 6px; background: #1d2c40; color: #e8eef7;
  padding: 7px 11px; cursor: pointer; font: inherit; font-size: 12px;
}
.bom-btn:hover { border-color: #38bdf8; }
.bom-btn.primary { background: #0e6f9e; border-color: #0e8ec4; }
@media (max-width: 620px) {
  .bom-dialog { width: 98vw; max-height: 92vh; }
  .bom-foot { justify-content: center; }
}
