/* Suite Intégration — MISE EN PAGE uniquement (disposition, espacements,
   colonnes). Aucune couleur, police, arrondi, ombre ni bordure : l'apparence
   vient exclusivement de theme.css (copie non modifiée de docs/Kit_Style_QVCT).
   Même principe que Demo_CGS/css/styles.css. */

/* ---------------------------------------------------------------- bandeau : outils à droite */
.onb-topbar-spacer { flex: 1; min-width: 0; }
.onb-topbar-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media (max-width: 620px) { .onb-topbar-tools .fb-label { display: none; } }

/* ---------------------------------------------------------------- respiration entre les blocs de page */
#notice-host > * + *, #tour-host > * + * { margin-top: 12px; }
#notice-host:not(:empty), #tour-host:not(:empty), #filter-host:not(:empty) { margin-bottom: 24px; }
#page-mount > * { margin-bottom: 24px; }
#page-mount > *:last-child { margin-bottom: 0; }
#page-mount > .section-head { margin: 36px 0 14px; }
#page-mount > .section-head:first-child { margin-top: 0; }
#page-mount > .kpi-grid { margin-bottom: 28px; }
.card > * + p, .card > * + .list, .card > * + .onb-stack, .card > .table-wrap + p { margin-top: 10px; }
.card .chart-legend { margin-top: 12px; }
.drawer-section + .drawer-section { margin-top: 18px; }
.onb-stack { display: flex; flex-direction: column; gap: 12px; }
.onb-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.onb-inline.is-between { justify-content: space-between; }
.onb-grow { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- frise des étapes d'un dossier */
.onb-frise { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--grid-gap); }
.onb-frise > .card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (max-width: 1200px) { .onb-frise { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .onb-frise { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- tableaux : colonnes lisibles */
.table-wrap { overflow-x: auto; }
table.data-table td { vertical-align: top; }
table.data-table td.num, table.data-table td.onb-nowrap { white-space: nowrap; }
table.data-table .badge { white-space: nowrap; }
.onb-col-title { min-width: 240px; }
.onb-cell-sub { display: block; margin-top: 3px; }

/* ---------------------------------------------------------------- formulaires dans les modales */
.form-grid .field.full, .form-grid > .check.full { grid-column: 1 / -1; }
.onb-form-note { margin-top: 6px; }
.onb-preview { margin-top: 14px; }

/* ---------------------------------------------------------------- accessibilité : texte réservé aux lecteurs d'écran */
.onb-sr { position: absolute; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- impression : zone dédiée, masquée à l'écran */
#print-root { display: none; }

/* ---------------------------------------------------------------- conteneur du contenu des tiroirs et modales */
.onb-panel-body { min-width: 0; }

/* ---------------------------------------------------------------- en-têtes de carte : badges longs sur petit écran */
.card-flag > div:first-child { min-width: 0; }
.card-flag-actions { flex-wrap: wrap; min-width: 0; }
@media (max-width: 620px) { .card-flag-actions .badge, .onb-inline .badge { white-space: normal; } }

/* ---------------------------------------------------------------- surtitre au milieu d'une carte : de l'air au-dessus */
.card > * + .card-label { margin-top: 18px; }
