/* ============================================================
   Axyss Backoffice — CSS principal v2
   Palette : #384759 #3270A6 #F2911B #BFAC95 #F2E4D8
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bo-blue:       #3270A6;
  --bo-blue-dark:  #284f7a;
  --bo-blue-light: #e8f0f8;
  --bo-navy:       #384759;
  --bo-orange:     #F2911B;
  --bo-beige:      #BFAC95;

  --bo-sidebar-w:     236px;
  --bo-sidebar-w-col:  68px;
  --bo-header-h:       58px;

  --bo-text:       #384759;
  --bo-text-muted: #6b7a8a;
  --bo-text-light: #a0adb8;
  --bo-border:     #e2d8cf;
  --bo-surface:    #ffffff;
  --bo-bg-page:    #f7f3ef;
  --bo-neutral-bg: #f2f4f6;

  --bo-ok:       #2d7a4f;  --bo-ok-bg:    #eaf5ef;
  --bo-warning:  #F2911B;  --bo-warning-bg: #fdf2e1;
  --bo-warn:     #a06010;  --bo-warn-bg:  #fef4e6;
  --bo-error:    #b03030;  --bo-error-bg: #fdeaea;

  --bo-radius:    8px;
  --bo-radius-lg: 12px;
  --bo-shadow-sm: 0 1px 3px rgba(56,71,89,.08);
  --bo-shadow:    0 2px 10px rgba(56,71,89,.10);

  --bo-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bo-transition: .18s ease;
}

html, body { height: 100%; }
body { font-family: var(--bo-font); font-size: 15px; line-height: 1.6; color: var(--bo-text); background: var(--bo-bg-page); }
a { color: var(--bo-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────────── */
.bo-body { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────── */
.bo-sidebar {
  width: var(--bo-sidebar-w);
  min-height: 100vh;
  background: var(--bo-navy);
  display: flex; flex-direction: column; flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: width var(--bo-transition);
  overflow: hidden;
}
.bo-sidebar.is-collapsed { width: var(--bo-sidebar-w-col); overflow: visible; }

.bo-sidebar__brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; height: var(--bo-header-h);
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0; cursor: pointer;
}
.bo-sidebar.is-collapsed .bo-sidebar__brand { justify-content: center; padding: 0; }

.bo-brand-name { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: .04em; white-space: nowrap; transition: opacity var(--bo-transition); }
.bo-sidebar.is-collapsed .bo-brand-name { opacity: 0; pointer-events: none; }

.bo-sidebar__toggle {
  background: transparent; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; padding: 6px; border-radius: 6px;
  display: flex; align-items: center;
  transition: color var(--bo-transition), transform var(--bo-transition), background var(--bo-transition);
  flex-shrink: 0;
}
.bo-sidebar__toggle:hover { color: #fff; background: rgba(255,255,255,.1); }
.bo-sidebar.is-collapsed .bo-sidebar__toggle { transform: rotate(180deg); }

.bo-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }

.bo-nav__item { position: relative; }

.bo-nav__link {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 18px; color: rgba(255,255,255,.72);
  text-decoration: none; white-space: nowrap;
  position: relative; min-height: 50px;
  transition: background var(--bo-transition), color var(--bo-transition);
}
.bo-nav__link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.bo-nav__item--active > .bo-nav__link { background: rgba(50,112,166,.35); color: #fff; }
.bo-nav__item--active > .bo-nav__link::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; background: var(--bo-orange); border-radius: 0 2px 2px 0;
}

.bo-nav__icon { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.bo-nav__icon svg { width: 20px; height: 20px; }
.bo-nav__label { font-size: 15px; font-weight: 500; flex: 1; transition: opacity var(--bo-transition); }
.bo-nav__chevron { color: rgba(255,255,255,.35); transition: transform var(--bo-transition), opacity var(--bo-transition); }
.bo-nav__item--active .bo-nav__chevron { transform: rotate(180deg); }

.bo-sidebar.is-collapsed .bo-nav__label,
.bo-sidebar.is-collapsed .bo-nav__chevron { opacity: 0; width: 0; overflow: hidden; }
.bo-sidebar.is-collapsed .bo-nav__link { justify-content: center; padding: 13px 0; }

/* Tooltips collapsed */
.bo-sidebar.is-collapsed .bo-nav__link::after {
  content: attr(data-tooltip);
  position: absolute; left: calc(var(--bo-sidebar-w-col) + 10px); top: 50%;
  transform: translateY(-50%);
  background: #1a2535; color: #fff; font-size: 13px; font-weight: 500;
  white-space: nowrap; padding: 7px 14px; border-radius: 7px;
  pointer-events: none; opacity: 0; transition: opacity .15s;
  z-index: 300; box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.bo-sidebar.is-collapsed .bo-nav__link:hover::after { opacity: 1; }

/* Sous-menus */
.bo-nav__subs { background: rgba(0,0,0,.15); padding: 4px 0; }
.bo-nav__sub {
  display: block; padding: 9px 18px 9px 52px; font-size: 14px;
  color: rgba(255,255,255,.58); text-decoration: none;
  transition: color var(--bo-transition), background var(--bo-transition); white-space: nowrap;
}
.bo-nav__sub:hover { color: #fff; background: rgba(255,255,255,.05); text-decoration: none; }
.bo-nav__sub--active { color: #fff; font-weight: 500; }
.bo-sidebar.is-collapsed .bo-nav__subs { display: none; }

/* Footer sidebar */
.bo-sidebar__footer { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 18px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bo-user { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; overflow: hidden; }
.bo-user__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--bo-blue); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bo-user__info { display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: opacity var(--bo-transition); }
.bo-sidebar.is-collapsed .bo-user__info { opacity: 0; width: 0; overflow: hidden; }
.bo-user__name { font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-user__role { font-size: 12px; color: rgba(255,255,255,.45); }
.bo-logout { color: rgba(255,255,255,.45); display: flex; align-items: center; transition: color var(--bo-transition); flex-shrink: 0; }
.bo-logout:hover { color: #fff; }

/* ── Main ────────────────────────────────────────────────── */
.bo-main { flex: 1; margin-left: var(--bo-sidebar-w); display: flex; flex-direction: column; min-height: 100vh; transition: margin-left var(--bo-transition); }
.bo-body.sidebar-collapsed .bo-main { margin-left: var(--bo-sidebar-w-col); }

.bo-header {
  height: var(--bo-header-h); background: var(--bo-surface);
  border-bottom: 1px solid var(--bo-border);
  display: flex; align-items: center; padding: 0 28px; gap: 14px;
  position: sticky; top: 0; z-index: 100; box-shadow: var(--bo-shadow-sm);
}
.bo-header__menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--bo-text-muted); padding: 5px; border-radius: 5px; }

.bo-breadcrumb { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 14px; }
.bo-breadcrumb__root { color: var(--bo-text-muted); }
.bo-breadcrumb__sep  { color: var(--bo-text-light); }
.bo-breadcrumb__current { color: var(--bo-text); font-weight: 500; }

.bo-header__actions { display: flex; align-items: center; gap: 10px; }
.bo-header__site-link { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #fff; background: var(--bo-blue); border: 1px solid var(--bo-blue); padding: 6px 13px; border-radius: var(--bo-radius); transition: background var(--bo-transition), border-color var(--bo-transition); }
.bo-header__site-link:hover { color: #fff; background: var(--bo-blue-dark); border-color: var(--bo-blue-dark); text-decoration: none; }

.bo-content { flex: 1; padding: 32px 36px; }

/* ── Page header ─────────────────────────────────────────── */
.bo-page__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.bo-page__title { font-size: 24px; font-weight: 700; color: var(--bo-text); }
.bo-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bo-text-muted); margin: 32px 0 16px; }

/* ── Stat cards ──────────────────────────────────────────── */
.bo-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.bo-stat-card { background: var(--bo-surface); border: 1px solid var(--bo-border); border-radius: var(--bo-radius-lg); padding: 22px 24px; display: flex; align-items: center; gap: 18px; position: relative; overflow: hidden; transition: box-shadow var(--bo-transition); min-height: 100px; }
.bo-stat-card:hover { box-shadow: var(--bo-shadow); }
.bo-stat-card--ok    { border-left: 4px solid var(--bo-ok); }
.bo-stat-card--warn  { border-left: 4px solid var(--bo-orange); }
.bo-stat-card--error { border-left: 4px solid var(--bo-error); }
.bo-stat-card--neutral { border-left: 4px solid var(--bo-beige); }
.bo-stat-card__icon { width: 46px; height: 46px; border-radius: 10px; background: var(--bo-bg-page); display: flex; align-items: center; justify-content: center; color: var(--bo-text-muted); flex-shrink: 0; }
.bo-stat-card--ok    .bo-stat-card__icon { background: var(--bo-ok-bg);    color: var(--bo-ok); }
.bo-stat-card--warn  .bo-stat-card__icon { background: var(--bo-warn-bg);  color: var(--bo-warn); }
.bo-stat-card--error .bo-stat-card__icon { background: var(--bo-error-bg); color: var(--bo-error); }
.bo-stat-card__body { flex: 1; min-width: 0; }
.bo-stat-card__label { display: block; font-size: 13px; color: var(--bo-text-muted); margin-bottom: 4px; }
.bo-stat-card__value { display: block; font-size: 17px; font-weight: 700; color: var(--bo-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-stat-card__link { position: absolute; inset: 0; z-index: 1; }

/* ── Shortcuts ───────────────────────────────────────────── */
.bo-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.bo-shortcut { background: var(--bo-surface); border: 1px solid var(--bo-border); border-radius: var(--bo-radius-lg); padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 13px; text-align: center; text-decoration: none; color: var(--bo-text); font-size: 14.5px; font-weight: 500; transition: box-shadow var(--bo-transition), border-color var(--bo-transition); }
.bo-shortcut:hover { box-shadow: var(--bo-shadow); border-color: var(--bo-blue-light); text-decoration: none; color: var(--bo-text); }
.bo-shortcut__icon { width: 54px; height: 54px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.bo-shortcut__icon--blue   { background: #e8f0f8; color: var(--bo-blue); }
.bo-shortcut__icon--teal   { background: #e2f4ef; color: #1a8060; }
.bo-shortcut__icon--orange { background: #fef2e4; color: var(--bo-orange); }
.bo-shortcut__icon--purple { background: #f0eef9; color: #6152b0; }
.bo-shortcut__icon--gray   { background: #f2f4f6; color: var(--bo-text-muted); }
.bo-shortcut__icon--pink   { background: #fdf0f4; color: #b0447a; }

/* ── Boutons ─────────────────────────────────────────────── */
.bo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: var(--bo-radius); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background var(--bo-transition), border-color var(--bo-transition), color var(--bo-transition); border: 1px solid transparent; text-decoration: none; line-height: 1; font-family: var(--bo-font); }
.bo-btn--primary   { background: var(--bo-blue);    color: #fff;          border-color: var(--bo-blue); }
.bo-btn--primary:hover { background: var(--bo-blue-dark); border-color: var(--bo-blue-dark); color: #fff; text-decoration: none; }
.bo-btn--secondary { background: var(--bo-surface); color: var(--bo-text); border-color: var(--bo-border); }
.bo-btn--secondary:hover { border-color: var(--bo-blue); color: var(--bo-blue); text-decoration: none; }
.bo-btn--danger    { background: var(--bo-surface); color: var(--bo-error); border-color: var(--bo-error); }
.bo-btn--danger:hover { background: var(--bo-error-bg); text-decoration: none; }
.bo-btn--full { width: 100%; }
.bo-btn--sm   { padding: 7px 14px; font-size: 13.5px; }

/* ── Champs ──────────────────────────────────────────────── */
.bo-field { margin-bottom: 20px; }
.bo-field--row { display: flex; align-items: center; gap: 12px; }
.bo-label { display: block; font-size: 14px; font-weight: 600; color: var(--bo-text); margin-bottom: 8px; }
.bo-input { width: 100%; padding: 10px 14px; border: 1px solid var(--bo-border); border-radius: var(--bo-radius); font-size: 15px; color: var(--bo-text); background: var(--bo-surface); transition: border-color var(--bo-transition), box-shadow var(--bo-transition); outline: none; font-family: var(--bo-font); }
.bo-input:focus { border-color: var(--bo-blue); box-shadow: 0 0 0 3px rgba(50,112,166,.12); }
.bo-input-wrap { position: relative; }
.bo-input-wrap .bo-input { padding-right: 44px; }
.bo-input-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--bo-text-muted); padding: 4px; display: flex; align-items: center; }
.bo-input--sm { padding: 8px 12px; font-size: 14px; }
.bo-checkbox-label { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }

/* ── Alertes ─────────────────────────────────────────────── */
.bo-alert { display: flex; align-items: flex-start; gap: 11px; padding: 14px 18px; border-radius: var(--bo-radius); font-size: 14.5px; line-height: 1.55; }
.bo-alert--error { background: var(--bo-error-bg); color: var(--bo-error); border: 1px solid #f5c0c0; }
.bo-alert--warn  { background: var(--bo-warn-bg);  color: var(--bo-warn);  border: 1px solid #f5d9b0; }
.bo-alert--ok    { background: var(--bo-ok-bg);    color: var(--bo-ok);    border: 1px solid #b8dfc9; }
.bo-alert--mt    { margin-top: 22px; }
.bo-alert a      { color: inherit; font-weight: 600; }

/* ── Badges ──────────────────────────────────────────────── */
.bo-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11.5px; font-weight: 700; line-height: 1; }
.bo-badge--warn  { background: var(--bo-orange); color: #fff; }
.bo-badge--error { background: var(--bo-error);  color: #fff; }
.bo-badge--ok    { background: var(--bo-ok);     color: #fff; }

/* ── Login ───────────────────────────────────────────────── */
.bo-body--login { background: var(--bo-bg-page); justify-content: center; align-items: center; }
.bo-login-wrap  { width: 100%; max-width: 420px; padding: 28px 16px; }
.bo-login-card  { background: var(--bo-surface); border: 1px solid var(--bo-border); border-radius: var(--bo-radius-lg); padding: 40px 40px 32px; box-shadow: var(--bo-shadow); }
.bo-login-brand { text-align: center; margin-bottom: 32px; }
.bo-brand-name--lg { display: block; font-size: 32px; font-weight: 800; color: var(--bo-navy); letter-spacing: .04em; margin-bottom: 6px; }
.bo-login-subtitle { font-size: 14px; color: var(--bo-text-muted); }
.bo-login-form     { margin-top: 10px; }
.bo-login-footer   { text-align: center; font-size: 13px; color: var(--bo-text-muted); margin-top: 22px; }

/* ── Overlay ─────────────────────────────────────────────── */
.bo-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 190; }

/* ── Onglets ─────────────────────────────────────────────── */
.bo-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--bo-border); margin-bottom: 28px; }
.bo-tab  { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; font-size: 15px; font-weight: 500; color: var(--bo-text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; text-decoration: none; transition: color var(--bo-transition), border-color var(--bo-transition); border-radius: var(--bo-radius) var(--bo-radius) 0 0; }
.bo-tab:hover    { color: var(--bo-text); text-decoration: none; }
.bo-tab--active  { color: var(--bo-blue); border-bottom-color: var(--bo-blue); }
.bo-tab-content  { padding-top: 4px; }

/* ── Sous-onglets ────────────────────────────────────────── */
.bo-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.bo-subtab  { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--bo-text-muted); background: var(--bo-surface); border: 1px solid var(--bo-border); border-radius: var(--bo-radius); text-decoration: none; transition: background var(--bo-transition), border-color var(--bo-transition), color var(--bo-transition); }
.bo-subtab:hover   { border-color: var(--bo-blue); color: var(--bo-blue); text-decoration: none; }
.bo-subtab--active { background: var(--bo-blue); border-color: var(--bo-blue); color: #fff; }
.bo-subtab--active:hover { color: #fff; }

/* ── Cible Odoo ──────────────────────────────────────────── */
.bo-status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--bo-text-muted); background: var(--bo-neutral-bg); border: 1px solid var(--bo-border); border-radius: 20px; padding: 5px 14px; }

/* ── Sync actions & résultats ────────────────────────────── */
.bo-sync-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; align-items: center; }
.bo-sync-actions form { margin: 0; }
.bo-sync-result { margin-bottom: 24px; }
.bo-sync-result__block { border-radius: var(--bo-radius); padding: 18px 22px; border: 1px solid var(--bo-border); background: var(--bo-surface); font-size: 15px; }
.bo-sync-result__block--ok    { border-color: #b8dfc9; background: var(--bo-ok-bg); }
.bo-sync-result__block--error { border-color: #f5c0c0; background: var(--bo-error-bg); }
.bo-sync-result__block--info  { border-color: #b5d4f4; background: #eaf2fc; }
.bo-sync-result__title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--bo-text); }
.bo-sync-result__block--ok    .bo-sync-result__title { color: var(--bo-ok); }
.bo-sync-result__block--error .bo-sync-result__title { color: var(--bo-error); }
.bo-sync-result__stats { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; margin: 12px 0; }
.bo-sync-result__stats .ok    { color: var(--bo-ok); }
.bo-sync-result__stats .error { color: var(--bo-error); }

/* ── Résumé import ───────────────────────────────────────── */
.bo-summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.bo-summary-card { background: var(--bo-surface); border: 1px solid var(--bo-border); border-radius: var(--bo-radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.bo-summary-card--ok    { border-left: 4px solid var(--bo-ok);    background: var(--bo-ok-bg); }
.bo-summary-card--error { border-left: 4px solid var(--bo-error); background: var(--bo-error-bg); }
.bo-summary-card--warning { border-left: 4px solid var(--bo-warning); background: var(--bo-warning-bg); }
.bo-summary-card__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--bo-text-muted); }
.bo-summary-card__value { font-size: 28px; font-weight: 800; color: var(--bo-text); }
.bo-summary-card--ok    .bo-summary-card__value { color: var(--bo-ok); }
.bo-summary-card--error .bo-summary-card__value { color: var(--bo-error); }
.bo-summary-card--warning .bo-summary-card__value { color: var(--bo-warning); }

/* ── Debug bar ───────────────────────────────────────────── */
.bo-debug-bar { background: var(--bo-neutral-bg); border: 1px solid var(--bo-border); border-radius: var(--bo-radius); padding: 18px 20px; margin-bottom: 24px; }
.bo-debug-bar .bo-label { margin-bottom: 12px; }
.bo-debug-bar__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ── Pills ───────────────────────────────────────────────── */
.bo-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.bo-pill--ok      { background: var(--bo-ok-bg);    color: var(--bo-ok); }
.bo-pill--neutral { background: var(--bo-neutral-bg); color: var(--bo-text-muted); }
.bo-pill--warn    { background: var(--bo-warn-bg);  color: var(--bo-warn); }

/* ── Details / erreurs ───────────────────────────────────── */
.bo-details { margin-top: 18px; border: 1px solid var(--bo-border); border-radius: var(--bo-radius); overflow: hidden; }
.bo-details summary { padding: 12px 18px; cursor: pointer; font-size: 14px; font-weight: 500; background: var(--bo-neutral-bg); list-style: none; display: flex; align-items: center; gap: 9px; }
.bo-details summary::-webkit-details-marker { display: none; }
.bo-details summary::before { content: '▶'; font-size: 10px; color: var(--bo-text-muted); transition: transform .15s; }
.bo-details[open] summary::before { transform: rotate(90deg); }
.bo-error-list { margin: 0; padding: 14px 18px 14px 34px; list-style: disc; font-size: 14px; color: var(--bo-error); background: var(--bo-surface); }
.bo-error-list li + li { margin-top: 5px; }
.bo-warning-list { margin: 0; padding: 14px 18px 14px 34px; list-style: disc; font-size: 14px; color: var(--bo-text); background: var(--bo-surface); }
.bo-warning-list li + li { margin-top: 5px; }
.bo-warning-list .bo-warning-label { color: var(--bo-text-muted); }
.bo-warning-list strong { color: var(--bo-warning); }

/* ── Pre ─────────────────────────────────────────────────── */
.bo-pre { background: #1e2530; color: #c8d3e0; padding: 16px 18px; font-size: 12.5px; line-height: 1.65; overflow-x: auto; white-space: pre; font-family: 'Menlo','Consolas',monospace; max-height: 440px; overflow-y: auto; border-radius: 0 0 var(--bo-radius) var(--bo-radius); }

/* ── Spinner ─────────────────────────────────────────────── */
.bo-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: bo-spin .7s linear infinite; vertical-align: middle; }
.bo-btn--secondary .bo-spinner { border-color: rgba(56,71,89,.2); border-top-color: var(--bo-text-muted); }
@keyframes bo-spin { to { transform: rotate(360deg); } }

/* ── Misc ────────────────────────────────────────────────── */
.bo-empty { color: var(--bo-text-muted); font-style: italic; font-size: 15px; }
.bo-hint  { font-size: 13px; color: var(--bo-text-muted); margin-top: 9px; }

/* ════════════════════════════════════════════════════════════
   CADRE CATALOGUE — neutralisation et restyle des éléments WP
   ════════════════════════════════════════════════════════════ */

.bo-catalogue-frame {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  padding: 28px 32px;
  min-height: 440px;
}

/* Reset wrappers WP */
.bo-catalogue-frame .wrap,
.bo-catalogue-frame .asscw-cat-wrap { margin: 0 !important; padding: 0 !important; max-width: none !important; }

/* Titres */
.bo-catalogue-frame h1,
.bo-catalogue-frame h2,
.bo-catalogue-frame h3 {
  font-family: var(--bo-font) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--bo-text) !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.3 !important;
}
.bo-catalogue-frame hr + h2,
.bo-catalogue-frame h2 + h2 { margin-top: 28px !important; }

/* Descriptions */
.bo-catalogue-frame p.description,
.bo-catalogue-frame .description {
  font-size: 14px !important;
  color: var(--bo-text-muted) !important;
  margin: 0 0 18px !important;
  font-style: normal !important;
}

/* HR */
.bo-catalogue-frame hr { border: none !important; border-top: 1px solid var(--bo-border) !important; margin: 24px 0 !important; }

/* Form-table WP */
.bo-catalogue-frame .form-table,
.bo-catalogue-frame table.form-table { border: none !important; border-spacing: 0 !important; width: 100% !important; background: transparent !important; }

.bo-catalogue-frame .form-table th,
.bo-catalogue-frame table.form-table th {
  width: 210px !important;
  font-family: var(--bo-font) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--bo-text) !important;
  padding: 13px 18px 13px 0 !important;
  vertical-align: middle !important;
  background: transparent !important;
  border: none !important;
  text-align: left !important;
}
.bo-catalogue-frame .form-table td,
.bo-catalogue-frame table.form-table td {
  padding: 11px 0 !important;
  vertical-align: middle !important;
  border: none !important;
  background: transparent !important;
}

/* Inputs / select / textarea */
.bo-catalogue-frame input[type="text"],
.bo-catalogue-frame input[type="number"],
.bo-catalogue-frame input[type="email"],
.bo-catalogue-frame input[type="url"],
.bo-catalogue-frame input[type="password"],
.bo-catalogue-frame select,
.bo-catalogue-frame textarea {
  font-family: var(--bo-font) !important;
  font-size: 14.5px !important;
  color: var(--bo-text) !important;
  background: var(--bo-surface) !important;
  border: 1px solid var(--bo-border) !important;
  border-radius: var(--bo-radius) !important;
  padding: 9px 13px !important;
  box-shadow: none !important;
  outline: none !important;
  line-height: 1.5 !important;
  transition: border-color var(--bo-transition), box-shadow var(--bo-transition) !important;
}
.bo-catalogue-frame input[type="text"]:focus,
.bo-catalogue-frame input[type="number"]:focus,
.bo-catalogue-frame select:focus,
.bo-catalogue-frame textarea:focus {
  border-color: var(--bo-blue) !important;
  box-shadow: 0 0 0 3px rgba(50,112,166,.12) !important;
}
.bo-catalogue-frame input.regular-text { width: 100% !important; max-width: 440px !important; }
.bo-catalogue-frame input.large-text,
.bo-catalogue-frame textarea.large-text { width: 100% !important; max-width: 440px !important; }
.bo-catalogue-frame select { min-width: 200px !important; }

/* Checkbox */
.bo-catalogue-frame input[type="checkbox"] { width: 16px !important; height: 16px !important; cursor: pointer !important; }

/* Boutons WP → style backoffice */
.bo-catalogue-frame .button,
.bo-catalogue-frame .button-secondary,
.bo-catalogue-frame .button-link {
  font-family: var(--bo-font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 9px 18px !important;
  border-radius: var(--bo-radius) !important;
  border: 1px solid var(--bo-border) !important;
  background: var(--bo-surface) !important;
  color: var(--bo-text) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  height: auto !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  transition: border-color var(--bo-transition), color var(--bo-transition), background var(--bo-transition) !important;
}
.bo-catalogue-frame .button:hover,
.bo-catalogue-frame .button-secondary:hover { border-color: var(--bo-blue) !important; color: var(--bo-blue) !important; }

.bo-catalogue-frame .button-primary {
  background: var(--bo-blue) !important;
  border-color: var(--bo-blue) !important;
  color: #fff !important;
}
.bo-catalogue-frame .button-primary:hover {
  background: var(--bo-blue-dark) !important;
  border-color: var(--bo-blue-dark) !important;
  color: #fff !important;
}

/* Boutons de danger / suppression */
.bo-catalogue-frame .button[style*="color:red"],
.bo-catalogue-frame .button-link-delete,
.bo-catalogue-frame [class*="delete"].button,
.bo-catalogue-frame [class*="supprimer"].button {
  color: var(--bo-error) !important;
  border-color: var(--bo-error) !important;
}
.bo-catalogue-frame .button[style*="color:red"]:hover,
.bo-catalogue-frame .button-link-delete:hover { background: var(--bo-error-bg) !important; }

/* Submit row */
.bo-catalogue-frame p.submit { padding: 18px 0 0 !important; margin: 0 !important; display: flex !important; gap: 10px !important; align-items: center !important; }
.bo-catalogue-frame #asscw-cat-feedback,
.bo-catalogue-frame [id*="feedback"] { font-size: 14px !important; color: var(--bo-text-muted) !important; font-style: italic !important; margin: 0 !important; }

/* Tables widefat (runners, marges, etc.) */
.bo-catalogue-frame table.widefat,
.bo-catalogue-frame table:not(.form-table):not([class*="asscw-cat"]) {
  width: 100% !important;
  border: 1px solid var(--bo-border) !important;
  border-radius: var(--bo-radius) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 14.5px !important;
  overflow: hidden !important;
}
.bo-catalogue-frame table.widefat th,
.bo-catalogue-frame table:not(.form-table):not([class*="asscw-cat"]) th {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  color: var(--bo-text-muted) !important;
  background: var(--bo-neutral-bg) !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--bo-border) !important;
  border-right: none !important;
  text-align: left !important;
}
.bo-catalogue-frame table.widefat td,
.bo-catalogue-frame table:not(.form-table):not([class*="asscw-cat"]) td {
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--bo-border) !important;
  border-right: none !important;
  color: var(--bo-text) !important;
  background: var(--bo-surface) !important;
  vertical-align: middle !important;
}
.bo-catalogue-frame table.striped tbody tr:nth-child(even) td,
.bo-catalogue-frame table.widefat.striped tbody tr:nth-child(even) td { background: #fcfaf8 !important; }
.bo-catalogue-frame table tr:last-child td { border-bottom: none !important; }

/* Notices WP inline */
.bo-catalogue-frame .notice,
.bo-catalogue-frame .updated { border-left: 4px solid var(--bo-blue) !important; background: var(--bo-blue-light) !important; color: var(--bo-text) !important; padding: 12px 16px !important; border-radius: 0 var(--bo-radius) var(--bo-radius) 0 !important; box-shadow: none !important; margin: 14px 0 !important; font-size: 14px !important; }
.bo-catalogue-frame .notice-success { border-color: var(--bo-ok) !important; background: var(--bo-ok-bg) !important; color: var(--bo-ok) !important; }
.bo-catalogue-frame .notice-error   { border-color: var(--bo-error) !important; background: var(--bo-error-bg) !important; color: var(--bo-error) !important; }
.bo-catalogue-frame .notice-warning { border-color: var(--bo-orange) !important; background: var(--bo-warn-bg) !important; color: var(--bo-warn) !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .bo-content { padding: 22px 18px; }
  .bo-catalogue-frame { padding: 20px 18px; }
  .bo-catalogue-frame .form-table th,
  .bo-catalogue-frame table.form-table th { width: 150px !important; }
}
@media (max-width: 768px) {
  .bo-sidebar { transform: translateX(-100%); transition: transform var(--bo-transition); }
  .bo-sidebar.is-open { transform: translateX(0); }
  .bo-main { margin-left: 0 !important; }
  .bo-header__menu-btn { display: flex; }
  .bo-overlay.is-visible { display: block; }
  .bo-stat-grid { grid-template-columns: 1fr; }
  .bo-shortcuts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bo-login-card { padding: 26px 22px 22px; }
  .bo-tabs .bo-tab { padding: 10px 14px; font-size: 13.5px; }
  .bo-subtabs .bo-subtab { padding: 7px 13px; font-size: 13px; }
}

/* ════════════════════════════════════════════════════════════
   CSS des classes métier — injecté ici car wp-admin
   n'est pas chargé dans le backoffice
   ════════════════════════════════════════════════════════════ */

/* ── Arbre catégories (ASSCW_Categories_Admin) ───────────── */
.asscw-cat-wrap { margin: 0; padding: 0; }
.asscw-cat-form-card { margin-bottom: 24px; }
.asscw-cat-form-card h2 { margin-top: 0; }
.asscw-cat-form-table th { width: 180px; }

.asscw-cat-level { list-style: none; margin: 0; padding: 0; }

.asscw-cat-level-1 > .asscw-cat-item {
  background: #fff;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  margin-bottom: 6px;
}
.asscw-cat-level-2 { margin: 4px 0 4px 28px; }
.asscw-cat-level-2 > .asscw-cat-item {
  background: #f9f6f3;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  margin-bottom: 4px;
}
.asscw-cat-level-3 { margin: 4px 0 4px 28px; }
.asscw-cat-level-3 > .asscw-cat-item {
  background: #f4f0ec;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  margin-bottom: 3px;
}

.asscw-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.asscw-cat-handle {
  cursor: grab;
  color: var(--bo-text-light);
  flex-shrink: 0;
  font-size: 18px;
}
.asscw-cat-handle:active { cursor: grabbing; }

.asscw-cat-name {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--bo-text);
  /* espace avant le badge niveau */
  margin-right: 4px;
}
.asscw-cat-inactive .asscw-cat-name { color: var(--bo-text-light); }

.asscw-cat-badge-inactive {
  font-size: 11px;
  background: #e2d8cf;
  color: var(--bo-text-muted);
  border-radius: 4px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.asscw-cat-depth-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--bo-blue-light);
  color: var(--bo-blue);
  border-radius: 4px;
  padding: 2px 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.asscw-cat-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

/* Dashicons fallback si non chargés */
.dashicons-move::before { content: '⠿'; font-style: normal; }

/* ════════════════════════════════════════════════════════════
   Lot D — Clients / Demandes d'accès
   ════════════════════════════════════════════════════════════ */

/* ── Filtres statut ──────────────────────────────────────── */
.bo-ar-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.bo-ar-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bo-text-muted);
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  text-decoration: none;
  transition: border-color var(--bo-transition), color var(--bo-transition), background var(--bo-transition);
}
.bo-ar-filter:hover { border-color: var(--bo-blue); color: var(--bo-blue); text-decoration: none; }
.bo-ar-filter--active { background: var(--bo-navy); border-color: var(--bo-navy); color: #fff; }
.bo-ar-filter--active:hover { color: #fff; }

.bo-ar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255,255,255,.2);
  color: inherit;
}
.bo-ar-filter:not(.bo-ar-filter--active) .bo-ar-count {
  background: var(--bo-neutral-bg);
  color: var(--bo-text-muted);
}

/* ── Tableau ─────────────────────────────────────────────── */
.bo-ar-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
}

.bo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.bo-table thead th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bo-text-muted);
  background: var(--bo-neutral-bg);
  border-bottom: 1px solid var(--bo-border);
  text-align: left;
  white-space: nowrap;
}

.bo-table tbody tr { border-bottom: 1px solid var(--bo-border); }
.bo-table tbody tr:last-child { border-bottom: none; }
.bo-table tbody tr.bo-ar-main-row:hover > td { background: #faf7f4; }

.bo-table tbody td {
  padding: 13px 16px;
  color: var(--bo-text);
  background: var(--bo-surface);
  vertical-align: middle;
}

/* Colonnes fixes */
.bo-ar-th-toggle,
.bo-ar-td-toggle  { width: 44px; text-align: center; }
.bo-ar-th-verified,
.bo-ar-td-verified { width: 100px; text-align: center; }
.bo-ar-td-vat     { white-space: nowrap; }
.bo-ar-td-date    { white-space: nowrap; font-size: 13.5px; color: var(--bo-text-muted); }
.bo-ar-td-actions { white-space: nowrap; }
.bo-ar-td-actions .bo-btn + .bo-btn { margin-left: 6px; }

/* ── Chevron toggle ──────────────────────────────────────── */
.bo-ar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bo-text-muted);
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: color var(--bo-transition);
}
.bo-ar-toggle:hover { color: var(--bo-text); }
.bo-ar-chevron { transition: transform .2s; }

/* ── Vérification email ──────────────────────────────────── */
.bo-ar-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.bo-ar-verified--ok { background: var(--bo-ok-bg);    color: var(--bo-ok); }
.bo-ar-verified--no { background: var(--bo-error-bg); color: var(--bo-error); }

/* ── Panneau détail ──────────────────────────────────────── */
.bo-ar-detail-row > td {
  background: #faf7f4 !important;
  padding: 20px 24px !important;
  border-top: 1px solid var(--bo-border);
}

.bo-ar-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px 28px;
}

.bo-ar-detail-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bo-text-muted);
  margin-bottom: 5px;
}

.bo-ar-detail-value {
  font-size: 14px;
  color: var(--bo-text);
  line-height: 1.6;
}
.bo-ar-detail-value a { color: var(--bo-blue); }

/* ── Liens petits ────────────────────────────────────────── */
.bo-ar-link-small { font-size: 12.5px; color: var(--bo-text-muted); }
.bo-ar-link-small:hover { color: var(--bo-blue); }

/* ════════════════════════════════════════════════════════════
   Lot D — Paramètres / options toggles
   ════════════════════════════════════════════════════════════ */

/* ── Section paramètres ──────────────────────────────────── */
.bo-settings-section {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.bo-settings-section--summary {
  background: var(--bo-neutral-bg);
}

.bo-settings-section__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bo-text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.bo-settings-section__desc {
  font-size: 14px;
  color: var(--bo-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.bo-settings-section__desc code {
  background: var(--bo-neutral-bg);
  border: 1px solid var(--bo-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--bo-blue);
}

/* ── Options avec toggle ─────────────────────────────────── */
.bo-settings-options { display: flex; flex-direction: column; gap: 16px; }

.bo-settings-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bo-bg-page);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  cursor: pointer;
  transition: border-color var(--bo-transition), background var(--bo-transition);
}
.bo-settings-option:hover { border-color: var(--bo-blue); }

.bo-settings-option input[type="checkbox"] { display: none; }

/* Wrapper du toggle — flex-shrink:0 pour ne pas être écrasé */
.bo-settings-option__toggle {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

/* Toggle track */
.bo-toggle-track {
  width: 44px;
  height: 24px;
  background: var(--bo-border);
  border-radius: 12px;
  flex-shrink: 0;
  position: relative;
  transition: background var(--bo-transition);
  cursor: pointer;
}
input[type="checkbox"]:checked ~ .bo-toggle-track { background: var(--bo-blue); }

.bo-toggle-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left var(--bo-transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
input[type="checkbox"]:checked ~ .bo-toggle-track .bo-toggle-thumb { left: 23px; }

.bo-settings-option__body { flex: 1; }

.bo-settings-option__label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--bo-text);
  margin-bottom: 5px;
}

.bo-settings-option__desc {
  display: block;
  font-size: 13.5px;
  color: var(--bo-text-muted);
  line-height: 1.6;
}
.bo-settings-option__desc strong { color: var(--bo-text); font-weight: 600; }
.bo-settings-option__desc code {
  background: var(--bo-neutral-bg);
  border: 1px solid var(--bo-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12.5px;
}

/* ── Résumé config active ────────────────────────────────── */
.bo-settings-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bo-settings-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--bo-radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--bo-border);
}
.bo-settings-summary-item.is-active  { background: var(--bo-ok-bg);    color: var(--bo-ok);    border-color: #b8dfc9; }
.bo-settings-summary-item.is-inactive{ background: var(--bo-neutral-bg); color: var(--bo-text-muted); }

/* ─── Livraison : élargir les zones de règles métier ───────────────────
 * Override de la règle .bo-catalogue-frame textarea.large-text (max-width:440px)
 * uniquement pour les textareas de saisie de règles métier des modules
 * Canaux (rules_text) et Calendrier par défaut (asscw_dc_text). On rivalise
 * en spécificité (classe + attribut) et avec !important pour battre le reset
 * global qui a aussi !important.
 */
.bo-catalogue-frame textarea.large-text[name="rules_text"],
.bo-catalogue-frame textarea.large-text[name="asscw_dc_text"] {
	width: 100% !important;
	max-width: 900px !important;
	box-sizing: border-box !important;
	font-family: ui-monospace, Menlo, Consolas, monospace !important;
	font-size: 13px !important;
	line-height: 1.55 !important;
	min-height: 140px !important;
}

/* ─── Livraison : air autour du bouton "Analyser le texte" ─────────────
 * Le <p> qui contient le bouton de parse n'a aucune classe utilitaire ;
 * on l'identifie via :has() en ciblant la valeur du bouton (clé métier
 * stable côté handler). Padding vertical pour aérer le bloc avant le
 * titre suivant ("Calendrier de livraison" / "Aperçu"...).
 */
.bo-catalogue-frame p:has(> button[value="asscw_channel_parse"]),
.bo-catalogue-frame p:has(> button[value="asscw_delivery_calendar_parse"]) {
	margin: 18px 0 28px !important;
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
}
/* ════════════════════════════════════════════════════════════
   Lot F — Paramètres
   ════════════════════════════════════════════════════════════ */

/* ── Section paramètre ───────────────────────────────────── */
.bo-param-section {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.bo-param-section__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bo-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* ── Grille champs ───────────────────────────────────────── */
.bo-param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px 28px;
}
.bo-param-grid--2 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.bo-param-field { display: flex; flex-direction: column; gap: 6px; }
.bo-param-field--full { grid-column: 1 / -1; }

.bo-param-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--bo-text);
}

/* ── Table SKU ───────────────────────────────────────────── */
.bo-param-table {
  width: auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  overflow: hidden;
}
.bo-param-table th {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bo-text-muted);
  background: var(--bo-neutral-bg);
  border-bottom: 1px solid var(--bo-border);
  text-align: left;
}
.bo-param-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--bo-border);
  background: var(--bo-surface);
  vertical-align: middle;
}
.bo-param-table tr:last-child td { border-bottom: none; }

/* ════════════════════════════════════════════════════════════
   Lot G — Diagnostic + Feedback
   ════════════════════════════════════════════════════════════ */

/* ── Sections diagnostic ─────────────────────────────────── */
.bo-diag-section {
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  padding: 22px 26px;
  margin-bottom: 18px;
}
.bo-diag-section--error { border-left: 4px solid var(--bo-error); background: var(--bo-error-bg); }
.bo-diag-section--ok    { border-left: 4px solid var(--bo-ok);    background: var(--bo-ok-bg); }

.bo-diag-section__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bo-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bo-diag-section__title--error { color: var(--bo-error); }

/* Grille config */
.bo-diag-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.bo-diag-config-item {
  background: var(--bo-bg-page);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bo-diag-config-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bo-text-muted);
}
.bo-diag-config-value {
  font-size: 14px;
  color: var(--bo-text);
  word-break: break-all;
}

/* Actions diagnostic */
.bo-diag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

/* Résultat API */
.bo-diag-result {
  background: var(--bo-bg-page);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  padding: 16px 18px;
}
.bo-diag-result__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bo-text);
  margin-bottom: 10px;
}

/* ── Feedback table ──────────────────────────────────────── */
.bo-fb-row--new > td { background: #fef8ee !important; }

.bo-fb-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 8px;
}

.bo-fb-message-body {
  font-size: 14px;
  color: var(--bo-text);
  line-height: 1.65;
  background: var(--bo-surface);
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius);
  padding: 12px 14px;
  max-width: 640px;
  white-space: pre-wrap;
}

.bo-fb-message-body--reply {
  background: var(--bo-blue-light);
  border-color: #c5d9ed;
}

.bo-fb-reply-form .bo-input {
  display: block;
  max-width: 600px;
}
