/* V137 — En-têtes de modules compacts. Les formulaires et sous-sections gardent leur présentation. */
body .view > .section-header,
body.gmao-shell main > header.stock-header,
body.gmao-shell main > header.di-header {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-direction:row;
  flex-wrap:wrap;
  gap:8px 16px;
  min-height:56px;
  height:auto;
  padding:10px 16px;
  margin:0 0 10px;
  border:1px solid #d6e5f4;
  border-left:3px solid #378ce1;
  border-radius:10px;
  background:linear-gradient(110deg,#edf6ff 0%,#fff 72%);
  box-shadow:0 2px 8px #183c6306;
  color:#173e64;
}
body .view > .section-header > div:has(> h2),
body.gmao-shell main > header.stock-header > div:has(> h1),
body.gmao-shell main > header.di-header > div:has(> h1) {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:3px 12px;
  flex:1 1 280px;
  min-width:0;
}
body .view > .section-header h2,
body.gmao-shell main > header.stock-header h1,
body.gmao-shell main > header.di-header h1 {
  order:-1;
  position:relative;
  min-width:0;
  margin:0;
  padding:0;
  color:#133c65;
  font-size:clamp(19px,1.5vw,23px);
  font-weight:750;
  line-height:1.25;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
  animation:bp-module-title-enter .65s cubic-bezier(.2,.7,.2,1) both;
}
body .view > .section-header .eyebrow,
body.gmao-shell main > header.stock-header > div > span,
body.gmao-shell main > header.di-header > div > span {
  margin:0;
  color:#56718a;
  font-size:10px;
  line-height:1.4;
  font-weight:600;
  letter-spacing:.035em;
  overflow-wrap:anywhere;
}
body .view > .section-header > div > p,
body.gmao-shell main > header.stock-header > div > p,
body.gmao-shell main > header.di-header > div > p {
  flex-basis:100%;
  margin:1px 0 0;
  color:#5b7187;
  font-size:12px;
  line-height:1.4;
}
body.gmao-shell main > header.di-header h1 small {font-size:12px;font-weight:500;letter-spacing:0;color:#56718a}
body.gmao-shell main > header.di-header .di-header-image {width:40px;height:40px;min-height:0;max-height:40px;object-fit:cover;border-radius:8px;flex:none}
body.gmao-shell main > header.di-header .di-actions {display:flex;flex-wrap:wrap;gap:6px;min-width:0}
body .view > .section-header :is(.primary-button,.ghost-button),
body.gmao-shell main > header:is(.stock-header,.di-header) :is(.primary-button,.ghost-button,.stock-primary,.stock-back) {min-height:34px;padding:7px 11px;font-size:12px;line-height:1.4;box-sizing:border-box;white-space:normal}
@keyframes bp-module-title-enter {from{opacity:.35;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:760px){
  body .view > .section-header,body.gmao-shell main > header.stock-header,body.gmao-shell main > header.di-header {padding:9px 11px;gap:8px;min-height:50px}
  body .view > .section-header > div:has(> h2),body.gmao-shell main > header.stock-header > div:has(> h1),body.gmao-shell main > header.di-header > div:has(> h1){flex-basis:100%;gap:3px 8px}
  body .view > .section-header > *,body.gmao-shell main > header:is(.stock-header,.di-header) > * {max-width:100%;min-width:0}
}
@media(prefers-reduced-motion:reduce){body .view > .section-header h2,body.gmao-shell main > header.stock-header h1,body.gmao-shell main > header.di-header h1{animation:none}}
@media print{body .view > .section-header h2,body.gmao-shell main > header.stock-header h1,body.gmao-shell main > header.di-header h1{animation:none}body .view > .section-header,body.gmao-shell main > header.stock-header,body.gmao-shell main > header.di-header{box-shadow:none;background:white}}
/* V139 — Une même zone de titre et une même zone d'actions, comme les demandes. */
body .bp-module-heading.section-header,
body.gmao-shell main > header.bp-module-heading {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 18px;
}
body .bp-module-heading .bp-module-heading-copy {min-width:0;margin:0;justify-self:start}
body .bp-module-heading > .module-heading-actions {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;justify-self:end;gap:8px;min-width:0;max-width:100%;margin:0;padding:0}
body .bp-module-heading > .module-heading-actions > :is(.di-actions,.dashboard-heading-tools,.messaging-header-actions) {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin:0;padding:0}
body .bp-module-heading .module-heading-actions :is(.primary-button,.ghost-button,.stock-primary,.stock-back) {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:36px;margin:0;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:650;line-height:1.4;text-decoration:none;white-space:normal;text-align:center;cursor:pointer}
body .bp-module-heading .module-heading-actions :is(.primary-button,.stock-primary) {border:1px solid #1266f1;background:#1266f1;color:white;box-shadow:0 2px 5px #1266f118}
body .bp-module-heading .module-heading-actions :is(.ghost-button,.stock-back) {border:1px solid #bfd2e7;background:#fff;color:#215a92;box-shadow:none}
body .bp-module-heading .module-heading-actions button:disabled {cursor:not-allowed;opacity:.55}
body .bp-module-heading .module-heading-actions :is(a,button):focus-visible {outline:2px solid #1266f1;outline-offset:3px}
body .bp-module-heading .module-heading-actions [hidden] {display:none!important}
@media(max-width:900px){body .bp-module-heading.section-header,body.gmao-shell main > header.bp-module-heading {grid-template-columns:minmax(0,1fr)}body .bp-module-heading > .module-heading-actions {width:100%;justify-self:stretch;justify-content:flex-end}}
body .bp-module-heading .bp-heading-button-group{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0;margin:0}
body .bp-module-heading .module-heading-actions .need-hero-add-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-height:36px;margin:0;padding:8px 12px;border:1px solid #1266f1;border-radius:8px;background:#1266f1;color:white;box-shadow:0 2px 5px #1266f118}
body .bp-module-heading .module-heading-actions .need-hero-add-button img{width:24px;height:24px;object-fit:cover;border-radius:5px}
body .bp-module-heading .module-heading-actions .need-hero-add-button strong{font-size:12px;line-height:1.4}
body .bp-module-heading .module-heading-actions .need-hero-add-button small{font-size:10px;line-height:1.3;color:#e0efff}
body .bp-module-heading .module-heading-actions :is(.primary-button,.ghost-button,.stock-primary,.stock-back){width:auto;flex:none}
/* V166 — uniform module headings, without increasing form height. */
@media screen {
html body :is(.view>.section-header,main>header.stock-header,main>header.di-header){min-height:52px;padding:10px 16px;gap:8px 14px;border-radius:8px;font-family:Arial,Helvetica,sans-serif}
html body :is(.view>.section-header,main>header.stock-header,main>header.di-header) :is(h1,h2){font-size:20px;line-height:1.3;animation:none}
html body :is(.view>.section-header,main>header.stock-header,main>header.di-header)>div>p{flex-basis:auto;margin:0;font-size:12px}
}

/* V193: shared module title, tenant context and actions. */
@media screen {
html body .bp-module-heading {box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px 16px!important;min-height:76px!important;margin:0 0 12px!important;padding:12px 16px!important;border:1px solid #d6e5f4!important;border-left:3px solid #378ce1!important;border-radius:8px!important;background:#f7fbff!important;box-shadow:none!important;color:#173e64!important;font-family:Arial,Helvetica,sans-serif!important;animation:none!important;transition:none!important}
html body .bp-module-heading .bp-module-heading-copy {display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important}
html body .bp-module-heading :is(h1,h2) {margin:0!important;font-size:20px!important;line-height:1.3!important;color:#133c65!important;animation:none!important;transform:none!important}
html body .bp-module-heading .bp-module-organisation {display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;line-height:1.4;color:#56718a}
html body .bp-module-organisation strong {font-weight:600;color:#173e64}
html body .bp-module-organisation select {box-sizing:border-box;max-width:100%;min-height:30px;padding:4px 8px;border:1px solid #bfd2e7;border-radius:6px;color:#173e64;background:white;font:inherit}
html body .bp-module-heading [hidden] {display:none!important}
html body.gmao-shell :is(main.di-workspace,main.stock-workspace,main.inventory-workspace) {box-sizing:border-box;width:100%;max-width:none;margin:0;padding:16px;background:#edf4fc;font-family:Arial,Helvetica,sans-serif}
html body.gmao-shell #appSidebar {padding:22px 16px;font-family:Arial,Helvetica,sans-serif}
html body :is(#appSidebar,.astral-bar) {transition:none!important;animation:none!important}
}
@media(max-width:900px){html body .bp-module-heading{grid-template-columns:minmax(0,1fr)!important}html body.gmao-shell :is(main.di-workspace,main.stock-workspace,main.inventory-workspace){padding:12px}}
