/* =====================================================================
   v781 : BASE COMMUNE DE TOUS LES TABLEAUX — UN SEUL ENDROIT
   Changer une valeur ici la change dans tous les tableaux de l'application (budget, achats, liste des budgets,
   fenêtres, comparatifs, partie tableau du Gantt). Les règles propres à chaque famille ne fixent plus ni la hauteur,
   ni la police, ni la taille, ni la graisse, ni le fond des titres : seulement ce qui leur est vraiment propre
   (largeurs, alignements, couleurs d'état). Placée en tête : les couleurs d'état écrites plus bas restent prioritaires.
   ===================================================================== */
:root {
  --tb-font: Arial, Helvetica, sans-serif;
  /* titres des colonnes */
  --tb-head-h: 22px; --tb-head-fs: 11px; --tb-head-fw: 800; --tb-head-c: #6b7480; --tb-head-bg: #fafbfc; --tb-head-line: #edf0f4; --tb-head-lh: 16px;
  /* lignes */
  --tb-row-h: 21px; --tb-row-fs: 12px; --tb-row-fw: 700; --tb-row-lh: 16px; --tb-line: #d9dee6;
  /* ligne « CRÉER … ICI » : pas en gras, couleur du mode */
  --tb-new-fw: 400; --tb-new-c: var(--inst, var(--svst, #b91c1c)); --tb-new-bg: var(--inst-bg, #fdf0f0);
  /* ligne TOTAL */
  --tb-tot-fw: 800; --tb-tot-c: var(--tb-head-c, #6b7480); --tb-tot-bg: var(--tb-head-bg, #f6f7f9);   /* 08/11 (G1) : TOTAL au format des titres des colonnes par défaut */
  /* cases à cocher, ronds (○ et ›) */
  --tb-cb: 16px; --tb-cb-c: var(--svst, #172033); --tb-rd: 18px;
  /* compteurs */
  --tb-cnt-on: #ea580c; --tb-cnt-off: #e5e9ef; --tb-cnt-nz-bg: #cdd3dc;
}
:is(table.ins-table, table.rec-table, table.dly-table, table.prm-table, table.pv-t, table.cmp-t, table.cond-t, table.novapp-budget-table, table.svi-bdgl, table.ach-table, table.bdg-d-table, table.scn-table, table.mg-table, table.qq-table, table.sd-t, table.imp-table, table.av-stg-t, table.inc-table, table.apr-t, table.dpk-t, table.ins-t, table.ind-table, table.lk-table, table.ver-t, table.rcl-table, table.qq-t, table.cmpm-t, table.av-t, table.rat-t, table.ibd-table, table.cum-t, table.ctr-t, table.ver-table, table.lkw-t, table.ld-t, table.imp-ask-t, table.hb-t, table.gc-t, table.gax-t) { font-family: var(--tb-font); }
:is(table.ins-table, table.rec-table, table.dly-table, table.prm-table, table.pv-t, table.cmp-t, table.cond-t, table.novapp-budget-table, table.svi-bdgl, table.ach-table, table.bdg-d-table, table.scn-table, table.mg-table, table.qq-table, table.sd-t, table.imp-table, table.av-stg-t, table.inc-table, table.apr-t, table.dpk-t, table.ins-t, table.ind-table, table.lk-table, table.ver-t, table.rcl-table, table.qq-t, table.cmpm-t, table.av-t, table.rat-t, table.ibd-table, table.cum-t, table.ctr-t, table.ver-table, table.lkw-t, table.ld-t, table.imp-ask-t, table.hb-t, table.gc-t, table.gax-t) th { height: var(--tb-head-h); font-family: var(--tb-font); font-size: var(--tb-head-fs); font-weight: var(--tb-head-fw); color: var(--tb-head-c);
  background: var(--tb-head-bg); line-height: var(--tb-head-lh); border-bottom: 1px solid var(--tb-head-line); padding-top: 0; padding-bottom: 0; }
:is(table.ins-table, table.rec-table, table.dly-table, table.prm-table, table.pv-t, table.cmp-t, table.cond-t, table.novapp-budget-table, table.svi-bdgl, table.ach-table, table.bdg-d-table, table.scn-table, table.mg-table, table.qq-table, table.sd-t, table.imp-table, table.av-stg-t, table.inc-table, table.apr-t, table.dpk-t, table.ins-t, table.ind-table, table.lk-table, table.ver-t, table.rcl-table, table.qq-t, table.cmpm-t, table.av-t, table.rat-t, table.ibd-table, table.cum-t, table.ctr-t, table.ver-table, table.lkw-t, table.ld-t, table.imp-ask-t, table.hb-t, table.gc-t, table.gax-t) td { height: var(--tb-row-h); font-family: var(--tb-font); font-size: var(--tb-row-fs); font-weight: var(--tb-row-fw); line-height: var(--tb-row-lh); padding-top: 0; padding-bottom: 0; }
:is(table.ins-table, table.rec-table, table.dly-table, table.prm-table, table.pv-t, table.cmp-t, table.cond-t, table.novapp-budget-table, table.svi-bdgl, table.ach-table, table.bdg-d-table, table.scn-table, table.mg-table, table.qq-table, table.sd-t, table.imp-table, table.av-stg-t, table.inc-table, table.apr-t, table.dpk-t, table.ins-t, table.ind-table, table.lk-table, table.ver-t, table.rcl-table, table.qq-t, table.cmpm-t, table.av-t, table.rat-t, table.ibd-table, table.cum-t, table.ctr-t, table.ver-table, table.lkw-t, table.ld-t, table.imp-ask-t, table.hb-t, table.gc-t, table.gax-t) tr:is(.ins-new, .rec-new, .scn-new, .bdg-newrow, .qq-new, .qq-xnew, .dlw-newr, .dly-new, .ach-new) td { font-weight: var(--tb-new-fw); color: var(--tb-new-c); background: var(--tb-new-bg); }
:is(table.ins-table, table.rec-table, table.dly-table, table.prm-table, table.pv-t, table.cmp-t, table.cond-t, table.novapp-budget-table, table.svi-bdgl, table.ach-table, table.bdg-d-table, table.scn-table, table.mg-table, table.qq-table, table.sd-t, table.imp-table, table.av-stg-t, table.inc-table, table.apr-t, table.dpk-t, table.ins-t, table.ind-table, table.lk-table, table.ver-t, table.rcl-table, table.qq-t, table.cmpm-t, table.av-t, table.rat-t, table.ibd-table, table.cum-t, table.ctr-t, table.ver-table, table.lkw-t, table.ld-t, table.imp-ask-t, table.hb-t, table.gc-t, table.gax-t) :is(tfoot td, tr.bdg-d-total-row td, tr.ins-tot td) { font-weight: var(--tb-tot-fw); color: var(--tb-tot-c); background: var(--tb-tot-bg); }
:is(table.ins-table, table.rec-table, table.dly-table, table.prm-table, table.pv-t, table.cmp-t, table.cond-t, table.novapp-budget-table, table.svi-bdgl, table.ach-table, table.bdg-d-table, table.scn-table, table.mg-table, table.qq-table, table.sd-t, table.imp-table, table.av-stg-t, table.inc-table, table.apr-t, table.dpk-t, table.ins-t, table.ind-table, table.lk-table, table.ver-t, table.rcl-table, table.qq-t, table.cmpm-t, table.av-t, table.rat-t, table.ibd-table, table.cum-t, table.ctr-t, table.ver-table, table.lkw-t, table.ld-t, table.imp-ask-t, table.hb-t, table.gc-t, table.gax-t) input:is([type=checkbox], [type=radio]) { width: var(--tb-cb); height: var(--tb-cb); accent-color: var(--tb-cb-c); }
.svi-cnt.cnt-nz { color: var(--tb-cnt-on); }
/* v786 : colonnes masquées (mécanisme commun 09e-colonnes-masquees) et fenêtre MASQUER / AFFICHER */
table .svi-colh, table col.svi-colh { display: none !important; }
#svConf .colh-list {  flex-direction: column; gap: 2px; margin-top: 8px; }
#svConf .colh-r { display: flex; align-items: center; gap: 10px; min-height: var(--svi-hit-h, 32px); padding: 4px 6px; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; }
#svConf .colh-r:active { background: #eef1f6; }
#svConf .colh-r input { width: 18px; height: 18px; accent-color: var(--svst, #172033); }
#svConf .colh-err { margin-top: 8px; color: #b91c1c; font-weight: 700; font-size: 12px; }
/* ===================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #f4f7fb;
  color: #172033;
  font-family: Arial, Helvetica, sans-serif;
}

/* v925 (remarque 6 du 04/11/2026) : police fixe, non réglable — Arial à l'écran (Times 10 pt à l'impression, MISE EN PAGE) */
button,
input,
select,
textarea {
  font: inherit;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

/* champs où la casse compte (liens Google Drive) */
input[data-keepcase] { text-transform: none; }

/* =========================================================
   BARRE SUPERIEURE
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #123a70;
  color: #fff;
  box-shadow: 0 2px 10px #0002;
}

.brand {
  font-size: 20px;
  font-weight: 800;
}

.subtitle {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  gap: 6px;
}

.nav-btn {
  border: 1px solid #ffffff55;
  background: #ffffff12;
  color: #fff;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
}

.nav-btn.active {
  background: #fff;
  color: #123a70;
}

/* =========================================================
   STRUCTURE PRINCIPALE
   ========================================================= */

main {
  padding: 14px;
  max-width: 1600px;
  margin: auto;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 4px 0 12px;
}

.section-head h1 {
  margin: 0;
  font-size: 20px;
}

.section-head p {
  margin: 4px 0 0;
  color: #657086;
  font-size: 11px;
  font-weight: 700;
}

/* =========================================================
   BOUTONS
   ========================================================= */

.primary {
  border: 0;
  background: #1769c2;
  color: white;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
}

.primary {
  padding: 10px 14px;
}


/* =========================================================
   OUTILS / RECHERCHE
   ========================================================= */




.count {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
  color: #657086;
}

/* =========================================================
   TABLEAUX
   ========================================================= */

.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th,
td {
  border-bottom: 1px solid #e7ebf2;
  padding: 9px 10px;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}

th {
  background: #eef4fb;
  color: #23344f;
  font-size: 11px;
  font-weight: 800;
}

tr.data-row {
  cursor: pointer;
}

tr.data-row:hover {
  background: #f7fbff;
}

.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.yellow {
  background: #fff6bf;
}

tfoot td {
  background: #f7f9fc;
  font-weight: 800;
}

.empty {
  text-align: center;
  color: #8a94a5;
  padding: 22px;
}

.hint {
  font-size: 10px;
  color: #7b8597;
  margin: 7px 3px;
}

/* =========================================================
   BDS
   ========================================================= */


.panel {
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  overflow: hidden;
}



.list {
  height: 300px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}









/* =========================================================
   BDG — SELECTEURS
   ========================================================= */







/* =========================================================
   BDG — PRODUITS / CHARGES
   ========================================================= */






#productTable,
#chargeTable {
  min-width: 900px;
}

#productTable th,
#productTable td,
#chargeTable th,
#chargeTable td {
  font-size: 10px;
  padding: 6px 7px;
}

#productTable th,
#chargeTable th {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* =========================================================
   BDG — ANALYSE
   ========================================================= */


.bdg-tabs {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  border-bottom: 1px solid #dce3ee;
  -webkit-overflow-scrolling: touch;
}

.tab {
  border: 0;
  border-right: 1px solid #dce3ee;
  background: #eef4fb;
  color: #4a5364;
  padding: 11px 16px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: #fff;
  color: #1769c2;
  border-bottom: 3px solid #1769c2;
}

#analysisCompact {
  min-height: 70px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#analysisCompact table {
  min-width: 650px;
}

/* =========================================================
   PLACEHOLDER
   ========================================================= */


/* =========================================================
   MODALE
   ========================================================= */


.popup.hidden {
  display: none;
}

.modal-card {
  width: min(620px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 18px 60px #0005;
}




.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 10px;
  font-weight: 800;
  color: #657086;
}

.field input {
  border: 1px solid #d7deea;
  border-radius: 7px;
  padding: 10px;
}


.secondary {
  border: 1px solid #cbd4e2;
  background: white;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
}

/* =========================================================
   MENU CONTEXTUEL
   ========================================================= */

.popup {
  position: fixed;
  z-index: 60;
  min-width: 180px;
  background: white;
  border: 1px solid #d7deea;
  border-radius: 9px;
  box-shadow: 0 10px 30px #0003;
  padding: 5px;
}

.popup button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: white;
  padding: 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.popup button:hover {
  background: #eef4fb;
}

.popup .danger {
  color: #b42318;
}

/* =========================================================
   IPAD / TABLETTE
   ========================================================= */

@media (max-width: 1100px) {
  main {
    max-width: none;
  }


  .list {
    height: 230px;
  }



}

/* =========================================================
   IPAD PORTRAIT / PETIT ECRAN
   ========================================================= */

@media (max-width: 650px) {
  .topbar {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
  }

  .nav-btn {
    flex: 1;
  }


  .list {
    height: 180px;
  }


  .field.full {
    grid-column: 1;
  }

  .section-head h1 {
    font-size: 17px;
  }




  .bdg-tabs {
    width: 100%;
  }

  .tab {
    padding: 9px 10px;
    font-size: 9px;
  }
}


/* =========================================================
   BDG — LISTE NOVAPP (MAQUETTE VALIDÉE)
   ========================================================= */
#bdg { margin: -14px; }
.novapp-list-shell { min-height: calc(100vh - 64px); background:#fff; color:#4b5565; }
.novapp-list-titlebar { height:54px; display:flex; align-items:center; gap:18px; padding:0 10px; border-bottom:1px solid #e1e5eb; background:#fbfcfd; }
.novapp-list-titlebar h1 { margin:0; flex:1; font-size:18px; font-weight:800; color:#252c38; }
.novapp-menu,.novapp-list-actions button { width:36px; height:36px; border:1px solid #dfe4eb; border-radius:10px; background:#fff; color:#3f4856; font-size:18px; display:inline-flex; align-items:center; justify-content:center; padding:0; text-transform:none; }
.novapp-list-actions { display:flex; gap:8px; }
.novapp-budget-table-wrap { margin:30px 28px; overflow:auto; border:1px solid #e1e5eb; border-radius:12px; background:#fff; }
.novapp-budget-table { min-width:1080px; border-collapse:collapse; }
.novapp-budget-table th { padding-left: 10px; padding-right: 10px; border-right:1px solid #e1e5eb; vertical-align:middle; }
.novapp-budget-table td {   border-right:1px solid #e5e8ed; border-bottom:1px solid #e5e8ed;  vertical-align:middle; }
.novapp-budget-table th span { float:right; color:#7b8491; font-size:10px; }
.novapp-budget-table tbody tr:hover { background:#f8fafc; }
.novapp-budget-table .budget-link { color: #46505f; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.novapp-budget-table .empty { height:72px; text-align:center; color:#8a94a5; font-weight:500; }
@media(max-width:650px){ #bdg{margin:-14px;} .novapp-budget-table-wrap{margin:16px 10px;} .novapp-list-titlebar h1{font-size:15px;} }


.topbar { display: none; }
.section-head .open-menu { flex: none; margin-right: 12px; }
.section-head > div { flex: 1; }
#navMenu { min-width: 150px; }
#navMenu .nav-btn { color:#172033; border:0; background:#fff; border-radius:6px; padding:10px; text-align:left; font-size:12px; font-weight:800; }
#navMenu .nav-btn.active { background:#dcecff; color:#0f4f96; }



.novapp-budget-layout { display:flex; align-items:flex-start; gap:14px; margin:30px 28px; }
.novapp-budget-layout .novapp-budget-table-wrap { margin:0; flex:1; min-width:0; }
.novapp-date-panel { width:170px; flex:none; border:1px solid #e1e5eb; border-radius:12px; background:#fff; overflow:hidden; }
.novapp-date-head { padding:8px; background:#f3f4f6; border-bottom:1px solid #e1e5eb; }
.novapp-date-filter { width:100%; height:30px; padding:0 10px; border:1px solid #dfe4eb; border-radius:8px; background:#fff; color:#3f4856; font-size:10px; font-weight:800; text-align:left; text-transform:none; cursor:pointer; }
.novapp-date-list { max-height:calc(100vh - 220px); overflow:auto; }
.novapp-date-item { width:100%; display:flex; justify-content:space-between; align-items:center; padding:8px 12px; border:0; border-bottom:1px solid #e5e8ed; background:#fff; color:#4b5563; font-size:10px; font-weight:700; text-align:left; text-transform:none; cursor:pointer; }
.novapp-date-item:hover { background:#f8fafc; }
.novapp-date-item.selected { background:#dcecff; color:#0f4f96; font-weight:800; }
@media (max-width:650px) { .novapp-budget-layout { flex-direction:column; margin:16px 10px; } .novapp-date-panel { width:100%; } }

/* colonne ARTICLE centrée (CHS, bordereau des prix) */

/* observation importante : « ! » rouge devant la référence du budget */
.obs-bang { color:#c81e1e; font-weight:900; cursor:pointer; display:inline-block; padding:4px 6px; margin:-4px 0 -4px -6px; }
/* liste des budgets : références alignées, « ! » dans une marge fixe à gauche */
.bang-slot { display:inline-block; width:14px; margin-left:-6px; text-align:center; }
.bang-slot .obs-bang { margin:-4px -4px; padding:4px 4px; }

/* compteurs : une seule pastille grise, collée à droite du libellé */
.svi-cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; box-sizing: border-box;
  border-radius: 6px; background: #e5e9ef; color: #4b5563;
  font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle;
}

/* liste des budgets : même présentation que l'écran du budget */
#budgetListTable thead th, .novapp-budget-table th, table.svi-bdgl thead th { padding-left: 8px; padding-right: 8px; }
#budgetListTable thead th.cf-on, table.svi-bdgl thead th.cf-on { background: #dbeafe; color: #1d4ed8; }
.novapp-budget-table td { padding-left: 8px; padding-right: 8px; color: #172033; }
.novapp-budget-table td:first-child { font-weight: 700; color: #12355b; }
.novapp-budget-table .budget-link { font-weight: 700; }
.bdg-head-action svg { display: block; margin: auto; }
.novapp-list-titlebar h1 { display: flex; align-items: center; gap: 8px; }
.novapp-date-filter, .novapp-date-item { font-size: 12px; }
.novapp-date-item .svi-cnt { margin-left: 6px; }

/* ===== budgets EN INSTANCE : rouge (édition), vert (figé) ===== */

#budgetListTable tr.inst-instance td, table.svi-bdgl tr.inst-instance td { color: #b91c1c; }
#budgetListTable tr.inst-fige td, table.svi-bdgl tr.inst-fige td { color: #15803d; }
#budgetListTable tr.inst-instance td:first-child, table.svi-bdgl tr.inst-instance td:first-child { color: #b91c1c; }
#budgetListTable tr.inst-fige td:first-child, table.svi-bdgl tr.inst-fige td:first-child { color: #15803d; }
#budgetListTable tr.inst-instance .budget-link, table.svi-bdgl tr.inst-instance .budget-link { color: #b91c1c; }
#budgetListTable tr.inst-fige .budget-link, table.svi-bdgl tr.inst-fige .budget-link { color: #15803d; }
.bdg-inst-instance { --inst: #b91c1c; --inst-bg: #fef2f2; --inst-hatch: #fde0e0; }
.bdg-inst-fige { --inst: #15803d; --inst-bg: #f0fdf4; --inst-hatch: #dcfce7; }
.bdg-inst-instance .bdg-d-sticky .bdg-d-ref, .bdg-inst-fige .bdg-d-sticky .bdg-d-ref { color: var(--inst); }
.bdg-inst-instance .bdg-d-page .bdg-d-block-title, .bdg-inst-fige .bdg-d-page .bdg-d-block-title { border-left-color: var(--inst); }
.bdg-inst-instance .bdg-d-page .bdg-d-tab.active, .bdg-inst-fige .bdg-d-page .bdg-d-tab.active { color: var(--inst); box-shadow: inset 0 -3px 0 var(--inst); }
.bdg-inst-instance .bdg-d-pill .ico, .bdg-inst-instance .rec-tab .ico, .bdg-inst-instance .bdg-d-tab .ico, .bdg-inst-instance .blk-head .ttl .ico,
.bdg-inst-fige .bdg-d-pill .ico, .bdg-inst-fige .rec-tab .ico, .bdg-inst-fige .bdg-d-tab .ico, .bdg-inst-fige .blk-head .ttl .ico { color: var(--inst); }
.bdg-inst-instance .bdg-d-page .bdg-d-total-row td, .bdg-inst-fige .bdg-d-page .bdg-d-total-row td { background: var(--inst-bg) !important; color: var(--inst); }
/* fenêtre NOUVEAU BUDGET en rouge */
#docPop.pop-new-bdg .nb-save { background: #fff; border-color: #dc2626; color: #b91c1c; }
#docPop.pop-new-bdg .nb-wide { grid-column: 2 / 5; }
.bdg-row-del { color: #b91c1c; }
.novapp-list-actions button.on { background: #e5e7eb; border-color: #cbd2db; }

/* écran d'un budget en instance (façon NovApp) */
.bdg-inst-instance .bdg-d-h1, .bdg-inst-fige .bdg-d-h1 { color: var(--inst); text-decoration: underline; text-underline-offset: 4px; }
.bdg-inst-instance .bdg-d-sticky .bdg-d-badge, .bdg-inst-fige .bdg-d-sticky .bdg-d-badge {
  background: #fff; color: var(--inst); border: 1.5px solid var(--inst); border-radius: 6px;
}
.bdg-inst-instance .bdg-d-block-title .ttl, .bdg-inst-fige .bdg-d-block-title .ttl,
.bdg-inst-instance .rec-tab.active, .bdg-inst-fige .rec-tab.active { color: var(--inst); }
.bdg-d-hright .inst-nav, .bdg-d-hright .inst-act {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #fff; cursor: pointer; padding: 0; 
}
.bdg-d-hright .inst-nav { border: 0; color: #374151; background: transparent; }
.bdg-d-hright .inst-act { border: 1px solid #fca5a5; color: var(--inst, #b91c1c); }
.bdg-inst-fige .bdg-d-hright .inst-act { border-color: #86efac; }
.bdg-d-hright .inst-act:disabled { opacity: .35; cursor: default; }

/* ===== budget en instance / figé : blocs à hauteur fixe (vides ou non) ===== */
/* désignations client : hauteur fixe de 5 lignes (en-tête + 5 lignes + total),
   ajustable par la poignée, même vide ou avec plus de lignes */
.bdg-d-block > .bdg-d-scroll.bdg-d-client-scroll { height: var(--h-client, var(--svi-hdef-t, 148px)); }
.bdg-inst-instance .bdg-d-tabbody .bdg-d-scroll,
.bdg-inst-fige .bdg-d-tabbody .bdg-d-scroll { height: var(--h-detail, var(--svi-hdef-t, 148px)); }
.bdg-inst-instance .bdg-h-col, .bdg-inst-fige .bdg-h-col { height: var(--h-hier, var(--svi-hdef-h, 128px)); }

/* ===== saisie directe ===== */
.ins-table td.ins-td { padding: 0 !important; }
.ins-table :is(input.ins-in, textarea.ins-in, .ins-dv), .ins-hcol :is(input.ins-in, textarea.ins-in, .ins-dv) {
  width: 100%; box-sizing: border-box; border: 0; background: transparent; font: inherit; color: inherit;
  padding: 0 8px; height: 20px; line-height: 20px; margin: 0; outline: none; text-transform: uppercase; border-radius: 0; -webkit-appearance: none;
}
.ins-table :is(input.ins-in, textarea.ins-in, .ins-dv).number { text-align: right; }
.ins-table :is(input.ins-in, textarea.ins-in, .ins-dv).center { text-align: center; }
.ins-table :is(input.ins-in, textarea.ins-in, .ins-dv):focus, .ins-hcol :is(input.ins-in, textarea.ins-in, .ins-dv):focus { box-shadow: inset 0 0 0 2px var(--inst, #b91c1c); background: #fff; }
.ins-table td.ins-lock { background: #f3f4f6; }
.ins-table td.ins-lock input { color: #374151; -webkit-text-fill-color: #374151; opacity: 1; }
.ins-table tr.ins-title td, .ins-table tr.ins-title input { font-weight: 800; }
.ins-table tr.ins-title.lv1 td { background: #eceff3; }
.ins-table tr.ins-title.lv2 td, .ins-table tr.ins-title.lv3 td { background: #f5f6f8; }
.ins-table tr.ins-in1 :is(input, textarea, .ins-dv)[data-f="des"] { padding-left: 28px; }
.ins-table tr.ins-in2 :is(input, textarea, .ins-dv)[data-f="des"] { padding-left: 48px; }
.ins-table tr.ins-in3 :is(input, textarea, .ins-dv)[data-f="des"] { padding-left: 68px; }
.ins-table tr.ins-sub td { font-weight: 800; background: #f8fafc; border-top: 1px solid #d6dbe3; }
.ins-table tr.ins-new td { background: var(--inst-bg, #fef2f2); }
.ins-table tr.ins-new input::placeholder, .ins-hcol .ins-new input::placeholder { color: var(--inst, #b91c1c); opacity: .75; }
.ins-cb { width: 15px; height: 15px; accent-color: var(--inst, #12355b); vertical-align: middle; margin: 0; }
.ins-t { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; font-size: 10px !important;
  border: 1.5px solid #c3c9d3; color: #9aa3af; font: 800 11px Arial, sans-serif; cursor: pointer; user-select: none; }
.ins-t.on { background: var(--inst, #12355b); border-color: var(--inst, #12355b); color: #fff; }
.bdg-inst-fige .ins-t { cursor: default; }
.ins-hcol .ins-li { display: flex; align-items: center; gap: 8px; padding: 0 0 0 10px; }
.ins-hcol .ins-li .ins-cbc { width: 17px; flex: none; }
.ins-hcol .ins-li.ins-new { background: var(--inst-bg, #fef2f2); }
.ins-table td.ins-tc, .ins-table td.ins-cbc { padding: 0 !important; text-overflow: clip !important; overflow: visible !important; }

/* ===== en instance (rouge) / figé (vert) : tout le corps des tableaux dans la couleur de l'état
   (les en-têtes de colonnes restent gris) ===== */
.bdg-inst-instance .bdg-d-page tbody td, .bdg-inst-fige .bdg-d-page tbody td,
.bdg-inst-instance .bdg-d-page tbody td *, .bdg-inst-fige .bdg-d-page tbody td *,
.bdg-inst-instance .bdg-d-page tfoot td, .bdg-inst-fige .bdg-d-page tfoot td,
.bdg-inst-instance .bdg-h-col .ins-li, .bdg-inst-fige .bdg-h-col .ins-li,
.bdg-inst-instance .bdg-h-col .bdg-h-item, .bdg-inst-fige .bdg-h-col .bdg-h-item,
.bdg-inst-instance .bdg-d-page .empty, .bdg-inst-fige .bdg-d-page .empty { color: var(--inst) !important; }
.bdg-inst-instance .ins-table td.ins-lock input, .bdg-inst-fige .ins-table td.ins-lock input,
.bdg-inst-instance .ins-table :is(input.ins-in, textarea.ins-in, .ins-dv), .bdg-inst-fige .ins-table :is(input.ins-in, textarea.ins-in, .ins-dv),
.bdg-inst-instance .ins-hcol :is(input.ins-in, textarea.ins-in, .ins-dv) { color: var(--inst); -webkit-text-fill-color: var(--inst); }
.bdg-inst-instance .ins-t:not(.on), .bdg-inst-fige .ins-t:not(.on) { color: var(--inst) !important; border-color: var(--inst); opacity: .55; }
.bdg-inst-instance .ins-t.on, .bdg-inst-fige .ins-t.on { color: #fff !important; }
.bdg-inst-instance .bdg-d-tabbody .bdg-d-reserved, .bdg-inst-fige .bdg-d-tabbody .bdg-d-reserved,

/* glisser une ligne saisie (appui long) */
.ins-table tr.ro-src td, .ins-hcol .ins-li.ro-src { background: #e7edf5 !important; opacity: .7; }
.ins-table tr.ro-before td, .ins-hcol .ins-li.ro-before { box-shadow: inset 0 3px 0 var(--inst, #12355b); }
.ins-table tr.ro-after td, .ins-hcol .ins-li.ro-after { box-shadow: inset 0 -3px 0 var(--inst, #12355b); }
.ins-table tr[data-iid], .ins-hcol .ins-li[data-iid] { -webkit-touch-callout: none; }
/* désignation cochée : les autres lignes grisées */
/* menu ☰ : DONNÉES SOURCE */
#navMenu .nav-sep { height: 1px; background: #e5e9f0; margin: 4px 2px; }
#navMenu .nav-src { color:#172033; border:0; background:#fff; border-radius:6px; padding:10px; text-align:left; font-size:12px; font-weight:800; cursor:pointer; white-space:nowrap; }
#srcPop { position: fixed; inset: 0; z-index: 10003; background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
#srcPop .src-card { width: 100%; max-width: 760px; background: #fff; border-radius: 10px;
  box-shadow: 0 20px 50px rgba(15,23,42,.3); overflow: hidden; font-family: inherit; }
#srcPop .src-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px solid #e5e9f0; }
#srcPop .src-title { font-size: 15px; font-weight: 800; color: #172033; }
#srcPop .src-x { border: 0; background: none; font-size: 18px; color: #374151; cursor: pointer; padding: 4px 6px; }
#srcPop .src-body { padding: 18px 20px; }
#srcPop .src-foot { display: flex; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid #e5e9f0; background: #f8fafc; }
#srcPop .src-btn { height: 38px; padding: 0 22px; border: 1px solid #d6dbe3; border-radius: 8px; background: #eef4ff;
  font-weight: 800; font-size: 13px; color: #172033; cursor: pointer; }
#srcPop .src-grid { display: grid; grid-template-columns: 190px 1fr; gap: 14px 16px; align-items: start; }
#srcPop .src-lab { font-size: 12px; font-weight: 800; color: #4b5563; padding-top: 2px; }
#srcPop .src-val { font-size: 14px; font-weight: 700; color: #172033; }
#srcPop .src-note { display: block; font-size: 11px; font-weight: 600; color: #6b7280; margin-top: 3px; }
@media (max-width: 600px) { #srcPop .src-grid { grid-template-columns: 1fr; gap: 4px; } }
#srcPop .src-fld { border: 1px solid #d6dbe3; border-radius: 8px; background: #fff; cursor: pointer; }
#srcPop .src-fld .src-in { width: 100%; box-sizing: border-box; border: 0; background: transparent; padding: 9px 12px;
  font: inherit; font-size: 14px; font-weight: 700; color: #1d4ed8; text-decoration: underline; outline: none;
  cursor: pointer; -webkit-user-select: none; user-select: none; text-transform: none; }
#srcPop .src-fld.editing { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
#srcPop .src-fld.editing .src-in { color: #172033; text-decoration: none; cursor: text; -webkit-user-select: text; user-select: text; }
#srcPop .src-msg { margin-top: 12px; font-size: 12px; font-weight: 700; color: #15803d; min-height: 16px; }
#srcPop .src-msg.err { color: #b91c1c; }
#srcPop .src-foot { gap: 10px; }
#srcPop .src-btn[hidden] { display: none; }
#srcPop .src-save { background: #fff; border-color: #1d4ed8; color: #1d4ed8; }
/* ===== chargement en cours (fenêtre centrale, écran bloqué) ===== */
#sviLoad { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center;
  background: rgba(15,23,42,.35); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
#sviLoad.on { display: flex; }
#sviLoad .ld-card { background: #fff; border-radius: 14px; padding: 26px 34px; min-width: 300px;
  box-shadow: 0 20px 50px rgba(15,23,42,.3); display: flex; flex-direction: column; align-items: center; gap: 14px; }
#sviLoad .ld-spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #dbe4f0; border-top-color: #1d4ed8;
  animation: sviSpin .8s linear infinite; }
#sviLoad .ld-t { font-weight: 800; font-size: 15px; color: #172033; letter-spacing: .3px; }
#sviLoad .ld-s { font-size: 12px; font-weight: 600; color: #6b7280; }
#sviLoad .ld-bar { width: 240px; height: 4px; border-radius: 2px; background: #e5e9f0; overflow: hidden; }
#sviLoad .ld-bar i { display: block; width: 40%; height: 100%; background: #1d4ed8; border-radius: 2px; animation: sviBar 1.2s ease-in-out infinite; }
#sviLoad .ld-x { margin-top: 4px; height: 36px; padding: 0 20px; border: 1px solid #d6dbe3; border-radius: 8px; background: #fff;
  font-weight: 800; font-size: 13px; color: #172033; cursor: pointer; }
#sviLoad .ld-x[hidden] { display: none; }
@keyframes sviSpin { to { transform: rotate(360deg); } }
@keyframes sviBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
/* ===== importer depuis un autre budget ===== */
#docPop .imp-card { max-width: 980px; }
#docPop .imp-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
#docPop .imp-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 12px; border: 1px solid #e5e9f0;
  border-radius: 8px; background: #f8fafc; margin-bottom: 12px; font-size: 12px; font-weight: 800; color: #172033; }
#docPop .imp-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
#docPop .imp-opts small { font-weight: 600; color: #6b7280; font-size: 11px; }
#docPop .imp-opts input { accent-color: var(--svst); width: 16px; height: 16px; }
#docPop .imp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
#docPop .imp-tab { border: 1px solid #d6dbe3; border-radius: 999px; padding: 6px 12px; background: #fff; font-size: 12px; font-weight: 800; color: #4b5563; cursor: pointer; }
#docPop .imp-tab.on { background: #b91c1c; border-color: #b91c1c; color: #fff; }
#docPop .imp-tab.on .svi-cnt { background: rgba(255,255,255,.25); color: #fff; }
#docPop .imp-scroll { max-height: 46vh; overflow: auto; border: 1px solid #e5e9f0; border-radius: 8px; }
#docPop .imp-table { width: 100%; }
#docPop .imp-table input { width: 15px; height: 15px; accent-color: var(--svst); }
#docPop .imp-table tr.imp-tt td { font-weight: 800; background: #f6f7f9; }
#docPop .imp-table tr.imp-linked td { color: #b91c1c; font-style: italic; }
#docPop .imp-foot { justify-content: space-between; align-items: center; }
#docPop .imp-n { font-size: 12px; font-weight: 700; color: #6b7280; }
/* importer : données déjà présentes */
#docPop .imp-ask { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.35); }
#docPop .imp-ask-card { width: min(620px, calc(100% - 32px)); background: #fff; border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(15,23,42,.35); display: flex; flex-direction: column; gap: 10px; }
#docPop .imp-ask-t { font-size: 15px; font-weight: 800; color: #172033; }
#docPop .imp-ask-b { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px 14px;
  border: 1px solid #d6dbe3; border-radius: 8px; background: #fff; cursor: pointer; }
#docPop .imp-ask-b b { font-size: 13px; color: #172033; }
#docPop .imp-ask-b span { font-size: 11px; font-weight: 600; color: #6b7280; }
#docPop .imp-ask-b.imp-ask-r b { color: #b91c1c; }
#docPop .imp-ask-b:active { background: #f3f5f8; }
#docPop .imp-ask-f { display: flex; justify-content: flex-end; }
/* importer : liste des budgets source (couleurs de l'état) */
#docPop .imp-src { position: relative; }
#docPop .imp-src-btn { width: 100%; text-align: left; border: 1px solid #d6dbe3; border-radius: 8px; background: #fff;
  padding: 9px 34px 9px 12px; font: inherit; font-size: 14px; font-weight: 800; color: #000; cursor: pointer; position: relative; }
#docPop .imp-src-btn::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #6b7280; }
#docPop .imp-src-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 6; background: #fff; border: 1px solid #d6dbe3;
  border-radius: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.2); max-height: 300px; overflow: auto; padding: 4px; }
#docPop .imp-src-list[hidden] { display: none; }
#docPop .imp-src-it { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 9px 10px; border-radius: 6px;
  font: inherit; font-size: 13px; font-weight: 800; color: #000; cursor: pointer; }
#docPop .imp-src-it.on { background: #eef4ff; }
#docPop .imp-inst { color: #b91c1c !important; }
#docPop .imp-fige { color: #15803d !important; }
/* importer : colonne des cases sans « … » (case entière visible) */
#docPop .imp-table th:first-child, #docPop .imp-table td:first-child { width: 40px; min-width: 40px; padding: 0 8px !important;
  overflow: visible !important; text-overflow: clip !important; }
#docPop .imp-table { table-layout: auto; }
#docPop .imp-table th.center, #docPop .imp-table td.center { text-align: center; }
#docPop .imp-table th.center .cf-wrap { justify-content: center; }
/* importer : TÂCHES en trois blocs */
#docPop .imp-scroll.imp-hier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 0; overflow: visible; max-height: none; }
#docPop .imp-hcol { border: 1px solid #e5e9f0; border-radius: 8px; max-height: 46vh; overflow: auto; }
@media (max-width: 700px) { #docPop .imp-scroll.imp-hier { grid-template-columns: 1fr; } }
#docPop .imp-tab .imp-selcnt { display: inline-block; margin-left: 4px; min-width: 18px; padding: 1px 6px; border-radius: 9px;
  background: #b91c1c; color: #fff; font-size: 11px; font-weight: 800; text-align: center; }
#docPop .imp-tab.on .imp-selcnt { background: #fff; color: #b91c1c; }
#docPop .imp-scroll.imp-hier { overflow-x: auto; }
#docPop .imp-hcol th { position: relative; }
/* liaison coupée : ligne barrée */
#docPop .imp-table tr.imp-cut td:not(:first-child) { text-decoration: line-through; color: #9aa3af; }
#docPop .imp-ask-w { font-size: 13px; font-weight: 700; color: #172033; line-height: 1.5; padding: 4px 0 8px; }
#docPop .imp-ask-f { gap: 10px; }
#docPop .imp-ask-ok { border-color: #b91c1c !important; color: #b91c1c !important; background: #fff; }
/* ===== supprimer : 🗑 en fin de ligne, case et 🗑 en tête ===== */
.ins-x, .ins-xall { border: 0; background: transparent; padding: 2px 4px; cursor: pointer; color: var(--inst, #b91c1c); opacity: .75; line-height: 0; }
.ins-x:active, .ins-xall:active { opacity: 1; }
.ins-table td.ins-delc { padding: 0 !important; text-align: center; }
.ins-cball { width: 15px; height: 15px; accent-color: var(--inst, #b91c1c); vertical-align: middle; margin: 0; }
.ins-hcol .bdg-h-head { display: flex; align-items: center; gap: 8px; }
.ins-hcol .bdg-h-head .cf-wrap { flex: 1; }
/* confirmation au format de l'application */
#svConf { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.4); padding: 16px; }
#svConf .svc-card { width: min(520px, 100%); background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(15,23,42,.35);
  display: flex; flex-direction: column; gap: 10px; font-family: inherit; }
#svConf .svc-t { font-size: 15px; font-weight: 800; color: #172033; }
#svConf .svc-x { font-size: 13px; font-weight: 700; color: #172033; line-height: 1.5; }
#svConf .svc-f { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
#svConf .svc-b { height: 38px; padding: 0 20px; border: 1px solid #d6dbe3; border-radius: 8px; background: #fff; font-weight: 800; font-size: 13px; color: #172033; cursor: pointer; }
#svConf .svc-ok { border-color: #b91c1c; color: #b91c1c; }

/* ===== budget en instance : bascule SAISIE / LIAISONS ===== */
/* lignes non liées : hachurées dans la couleur de l'état (rouge en instance) */
/* lignes non liées : blanches, sans mise en forme (consigne 24) */
.ins-table tr.ins-unl td, .ins-hcol .ins-li.ins-unl { background: #fff !important; }
.lk-q { width: 110px; border: 1px solid #e7a3a3; border-radius: 6px; padding: 3px 6px; text-align: right; font: inherit; color: var(--inst, #b91c1c); }
.lk-chain { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; background: #fff;
  border: 1.5px dashed var(--inst, #b91c1c); border-radius: 10px; font-weight: 800; color: var(--inst, #b91c1c); }
.lk-err { flex-basis: 100%; order: 3; font-size: 12px; color: #b91c1c; background: #fef2f2; border-radius: 6px; padding: 6px 8px; }
.lk-go { background: var(--inst, #b91c1c); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 800; cursor: pointer; }
.lk-go:disabled { background: #e5e7eb; color: #9ca3af; cursor: default; }
.lk-del { border: 0; background: transparent; color: var(--inst, #b91c1c); font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
/* délais : champs sans cadre, comme les autres tableaux de saisie */
.dly-table td.ins-td { padding: 0 !important; }
.dly-table :is(input.ins-in, textarea.ins-in, .ins-dv) { width: 100%; box-sizing: border-box; border: 0; background: transparent; font: inherit; color: inherit;
  padding: 0 8px; height: 20px; line-height: 20px; margin: 0; outline: none; border-radius: 0; -webkit-appearance: none; appearance: none; }
.dly-table :is(input.ins-in, textarea.ins-in, .ins-dv):focus { box-shadow: inset 0 0 0 2px var(--inst, #b91c1c); background: #fff; }
.dly-table :is(input.ins-in, textarea.ins-in, .ins-dv).number { text-align: right; }
.dly-table :is(input.ins-in, textarea.ins-in, .ins-dv).center { text-align: center; }
.bdg-inst-instance .dly-table :is(input.ins-in, textarea.ins-in, .ins-dv), .bdg-inst-fige .dly-table :is(input.ins-in, textarea.ins-in, .ins-dv) { color: var(--inst); -webkit-text-fill-color: var(--inst); }
.lk-table { table-layout: fixed; }
.lk-table th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-table td:first-child, .lk-table th:first-child { overflow: visible; text-overflow: clip; }
.req-star { color: #b91c1c; font-weight: 900; margin-left: 2px; }
#svConf .svc-x { white-space: pre-line; }
#svConf .svc-ok.svc-neutral { border-color: #172033; color: #172033; }
/* consigne 16 : blocs à hauteur fixe de 5 lignes, même vides (tous les modes) */
.bdg-d-page:not(.max-client) .bdg-d-block > .bdg-d-scroll.bdg-d-client-scroll { height: var(--h-client, var(--svi-hdef-t, 148px)) !important; max-height: none !important; }
.bdg-d-page:not(.max-rec) .blk-suivi .rec-scroll { height: var(--h-suivi, var(--svi-hdef-n, 129px)); max-height: none; }
.bdg-d-page:not(.max-detail) .bdg-d-tabbody .bdg-d-scroll { height: var(--h-detail, var(--svi-hdef-t, 148px)); max-height: none; }
/* consigne 5 : en-têtes non tronqués */

/* onglets vides : le compteur 0 suffit (pas de mise en forme spéciale) */
/* DOC / TAF / OBS : validés dès leur saisie (boutons du haut) → noir, même dans un budget en instance ou figé */
.bdg-inst-instance .bdg-d-page .blk-suivi tbody td, .bdg-inst-fige .bdg-d-page .blk-suivi tbody td,
.bdg-inst-instance .bdg-d-page .blk-suivi tbody td *, .bdg-inst-fige .bdg-d-page .blk-suivi tbody td *,
.bdg-inst-instance .bdg-d-page .blk-suivi .empty, .bdg-inst-fige .bdg-d-page .blk-suivi .empty { color: #172033; }
.bdg-inst-instance .bdg-d-page .blk-suivi .rec-open, .bdg-inst-fige .bdg-d-page .blk-suivi .rec-open { color: #1d4ed8 !important; }
.bdg-inst-instance .bdg-d-page .blk-suivi .rec-imp, .bdg-inst-fige .bdg-d-page .blk-suivi .rec-imp { color: #b91c1c !important; }
.bdg-inst-instance .blk-suivi .rec-tab.active, .bdg-inst-fige .blk-suivi .rec-tab.active { color: #12355b; }
.bdg-inst-instance .blk-suivi .rec-tab .ico, .bdg-inst-fige .blk-suivi .rec-tab .ico { color: #12355b; }
.bdg-inst-instance .bdg-d-page .blk-suivi .bdg-d-block-title, .bdg-inst-fige .bdg-d-page .blk-suivi .bdg-d-block-title { border-left-color: #12355b; }
/* cases d'en-tête et de ligne sur la même colonne (lots / activités) */
.ins-hcol .bdg-h-head .ins-cball { margin-left: 2px; }
.ins-tcb:indeterminate { opacity: .5; }
.dlp-err { margin: 6px 8px; display: block; }
/* onglets déplaçables : le défilement vertical reste possible, le glissement horizontal déplace l'onglet */
.bdg-d-tab, .rec-tab, .imp-tab, .hist-f { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.tab-drag { opacity: .6; outline: 2px dashed #94a3b8; outline-offset: -2px; }
/* 🗑 d'une ligne visible seulement quand la ligne est cochée ;
   🗑 d'en-tête visible seulement quand au moins une ligne est cochée */
.ins-table tr[data-iid] .ins-x, .ins-hcol .ins-li[data-iid] .ins-x { visibility: hidden; }
.ins-table tr[data-iid]:has(input.ins-cb:checked) .ins-x, .ins-hcol .ins-li[data-iid]:has(input.ins-cb:checked) .ins-x { visibility: visible; }
.ins-table .ins-xall, .ins-hcol .ins-xall { visibility: hidden; }
.ins-table:has(tbody input.ins-cb:checked) .ins-xall, .ins-hcol:has(.ins-li input.ins-cb:checked) .ins-xall { visibility: visible; }
/* délais : même règle (🗑 seulement sur une période cochée) */
.dly-table tr .dlp-x { visibility: hidden; }
.dly-table tr:has(input.dlp-cb:checked) .dlp-x { visibility: visible; }
.dly-table .dlp-xall { visibility: hidden; }
.dly-table:has(tbody input.dlp-cb:checked) .dlp-xall { visibility: visible; }
.dlp-cb, .dlp-cball { width: 15px; height: 15px; accent-color: var(--inst, #b91c1c); vertical-align: middle; margin: 0; }
/* ===== page unique (saisie + liaisons) ===== */
.lk-rd { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--inst, #b91c1c); border-radius: 50%; box-sizing: border-box; vertical-align: middle; cursor: pointer; flex: none; }
span.ins-rdc { width: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.ins-table td.ins-rdc { padding: 0 !important; overflow: visible; text-overflow: clip; }
.lk-dim .lk-rd { pointer-events: none; opacity: .35; }
.ins-table tr.lk-dim td { opacity: .5; }
.ins-hcol .ins-li.lk-dim { opacity: .55; }
.ins-table tr.lk-sel td, .ins-hcol .ins-li.lk-sel { background: #fde8e8 !important; font-weight: 800; }
.bdg-inst-fige .ins-table tr.lk-sel td, .bdg-inst-fige .ins-hcol .ins-li.lk-sel { background: #dcfce7 !important; }
/* case à droite : elle coche seulement (supprimer / exporter / aperçu : menu ⋯ du bloc) */
.ins-hcol .ins-li .ins-delc { width: 28px; flex: none; display: inline-flex; justify-content: center; }
.ins-hcol .bdg-h-head .ins-hdel { width: 28px; flex: none; display: inline-flex; justify-content: center; }
.ins-hcol .bdg-h-head .ins-rdc { width: 22px; }
.ins-x { color: #fff !important; background: var(--inst, #b91c1c) !important; border-radius: 5px; padding: 3px 4px !important; opacity: 1 !important; }
.ins-xall { color: #fff !important; background: var(--inst, #b91c1c) !important; border-radius: 5px; padding: 3px 4px !important; opacity: 1 !important; }
th.lk-qh { color: var(--inst, #b91c1c) !important; }
.lk-qc input.lk-q { width: 100%; box-sizing: border-box; border: 1px solid #fca5a5; border-radius: 6px; padding: 3px 6px; text-align: right; font: inherit; color: var(--inst, #b91c1c); background: #fff; }
.lk-qc input.lk-q:disabled { border-color: transparent; background: transparent; }
#insChain { margin: 0 0 12px; }
#insChain[hidden] { display: none !important; }
/* rond et case : mêmes colonnes en tête et dans les lignes (lots / activités) */
.ins-hcol .bdg-h-head, .ins-hcol .ins-li { padding-left: 8px; padding-right: 6px; gap: 8px; }
.ins-hcol .ins-li .ins-x { margin-right: 0 !important; }
.ins-hcol .ins-li .ins-delc, .ins-hcol .bdg-h-head .ins-hdel { width: 28px; flex: none; display: inline-flex; justify-content: center; padding: 0 !important; }
.ins-hcol .ins-li .ins-rdc, .ins-hcol .bdg-h-head .ins-rdc { width: 22px; flex: none; padding: 0 !important; }
.ins-hcol .ins-li .ins-in { flex: 1; min-width: 0; }
.ins-table td.ins-rdc { display: table-cell; width: 36px; text-align: center; vertical-align: middle; }
/* chaîne + ✓ VALIDER LA LIAISON en haut à droite, sur la ligne DOC / TAF / OBS */
.bdg-d-pills { align-items: center; }
#insChain.lk-chain-top { margin: 0 0 0 auto; padding: 4px 6px 4px 12px; border: 1.5px dashed var(--inst, #b91c1c); border-radius: 10px; 
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;  min-width: 0; }
#insChain.lk-chain-top .lk-err { position: absolute; right: 16px; top: 100%; margin-top: 4px; max-width: 60%; z-index: 5; flex-basis: auto; order: 0; }
#insChain.lk-chain-top { position: relative; }
#insChain.lk-chain-top .lk-go { flex: none; padding: 7px 12px; font-size: 12px; }
/* lignes déjà liées à la désignation choisie : mise en forme du choix du budget validé, en bleu tirant sur le rouge */
.ins-table tr.lk-link td, .ins-hcol .ins-li.lk-link { background: #dbeafe; color: #1d4ed8 !important; font-weight: 700; }
.ins-table tr.lk-link td :is(input.ins-in, textarea.ins-in, .ins-dv), .ins-hcol .ins-li.lk-link :is(input.ins-in, textarea.ins-in, .ins-dv) { color: #1d4ed8 !important; -webkit-text-fill-color: #1d4ed8; }
/* rond : liée à la désignation choisie = anneau bleu + point ; CHOISIE = rond plein avec coche blanche
   (les deux états se distinguent : toucher le rond se voit toujours) */
.lk-rd.lnk { border-color: #1d4ed8; background: radial-gradient(circle, #1d4ed8 0 3px, #fff 3.5px); }
.lk-rd.on { position: relative; border-color: var(--inst, #b91c1c); background: var(--inst, #b91c1c); }
.lk-rd.lnk.on { border-color: #1d4ed8; background: #1d4ed8; }
.lk-rd.on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* message d'erreur passager */
#svToast { position: fixed; top: 200px; right: 24px; max-width: min(520px, calc(100vw - 16px)); z-index: 100003; background: #fff; color: #b91c1c; border: 1.5px solid #b91c1c;
  border-radius: 10px; padding: 10px 14px; font-weight: 800; font-size: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.2); opacity: 0; transform: translateY(-6px);
  transition: opacity .2s, transform .2s; pointer-events: none; }
#svToast.on { opacity: 1; transform: none; }
#svToast { display: flex; align-items: flex-start; gap: 10px; }
#svToast .svt-m { flex: 1; min-width: 0; }
#svToast .svt-x { flex: none; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; line-height: 1; padding: 0 0 0 4px; margin: -1px -4px 0 0; cursor: pointer; }
#svToast.on .svt-x { pointer-events: auto; }
/* bandeau : icône i + VALIDER ; place toujours réservée */
#insChain.lk-chain-top { max-width: none; }
#insChain.off { visibility: hidden; }
#insChain .lk-info { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--inst, #b91c1c); background: #fff; color: var(--inst, #b91c1c);
  font: italic 900 15px Georgia, serif; cursor: pointer; flex: none; }
/* iPad : pas de loupe ni de sélection sur une case non active (le défilement reste libre) */
.ins-table :is(input.ins-in, textarea.ins-in, .ins-dv):not(:focus), .ins-hcol :is(input.ins-in, textarea.ins-in, .ins-dv):not(:focus), .dly-table :is(input.ins-in, textarea.ins-in, .ins-dv):not(:focus) { -webkit-touch-callout: none; }
.ins-table tr.lk-sel.lk-link td, .ins-hcol .ins-li.lk-sel.lk-link { background: #bfdbfe !important; color: #1e3a8a !important; font-weight: 800; }
/* fenêtre LIAISON (icône i) */
#docPop .lk-info-st { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 800;
  color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
#docPop .lk-info-st.ok { color: #1e3a8a; background: #dbeafe; border-color: #93c5fd; }
#docPop .lk-info-v { font-size: 13px; font-weight: 700; color: #172033; align-self: center; }

/* bouton ✕ DÉLIER (même place que ✓ VALIDER) et fenêtre de confirmation */
#insChain .lk-go:not(:disabled) { background: #15803d; }
#insChain .lk-go.lk-del-go { background: #b91c1c !important; border-color: #b91c1c !important; color: #fff !important; }
#svConf .svc-html { text-align: left; max-height: 50vh; overflow: auto; }
#svConf .svc-sub { font-weight: 800; font-size: 12px; margin: 8px 0 4px; }
#svConf .svc-warn { color: #b91c1c; }
#svConf .svc-list { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.5; }

/* champs non saisissables (calculés ou venus d'ailleurs) : fond gris, partout, même sur une ligne liée ou choisie */
.ins-table td.ins-lock, .ins-table tr.ins-new td.ins-lock,
.ins-table tr.lk-link td.ins-lock, .ins-table tr.lk-sel td.ins-lock, .ins-table tr.lk-sel.lk-link td.ins-lock,
.ins-table tr.ins-unl td.ins-lock { background: #e6e8ec !important; }
.ins-table tr.ins-title td.ins-lock { background: #dfe2e7 !important; }
/* menu ⋯ : SUPPRIMER LES LIGNES COCHÉES (grisé sans ligne cochée et déliée) */
#blkMenu button.blk-del { color: var(--inst, #b91c1c); }
#blkMenu button.blk-del.off { color: #9aa3af; cursor: default; opacity: .6; }
#blkMenu button.blk-del .svi-cnt { margin-left: auto; }
/* ↻ disposition par défaut : toujours affiché, grisé quand il n'y a rien à remettre en place */
#layResetBtn:disabled { opacity: .35; cursor: default; pointer-events: none; }
/* liées exactement à ce qui est choisi (lot, activité, désignation…) : bleu foncé, en haut */
.ins-table tr.lk-hit td, .ins-hcol .ins-li.lk-hit { background: #bfdbfe !important; color: #1e3a8a !important; font-weight: 800; }
.ins-table tr.lk-hit td :is(input.ins-in, textarea.ins-in, .ins-dv), .ins-hcol .ins-li.lk-hit :is(input.ins-in, textarea.ins-in, .ins-dv) { color: #1e3a8a !important; -webkit-text-fill-color: #1e3a8a !important; }
.ins-table tr.lk-hit td.ins-lock { background: #d9dde3 !important; }
/* ligne qu'on ne peut pas choisir : grisée d'avance, rond inactif (appui long = raison) */
.ins-table tr.lk-ban td, .ins-hcol .ins-li.lk-ban { opacity: .45; }
.lk-ban .lk-rd { opacity: .45; pointer-events: none; border-color: #9aa3af !important; background: #f3f4f6 !important; }
.lk-ban .lk-rd::after { display: none; }
.ins-table tr.lk-ban, .ins-hcol .ins-li.lk-ban { -webkit-user-select: none; user-select: none; }
/* fenêtres de confirmation / choix : ✕ en haut à droite (format INF) */
#svConf .svc-card { position: relative; }
#svConf .svc-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; background: transparent; color: #172033;
  font-size: 16px; font-weight: 800; cursor: pointer; border-radius: 8px; line-height: 1; }
#svConf .svc-close:active { background: #eef1f6; }
#svConf .svc-t { padding-right: 34px; }
/* zone du bouton DÉLIER / VALIDER : sans pointillés (place toujours réservée) */
#insChain.lk-chain-top { border-color: transparent; background: transparent; }
/* barre du haut : DUPLIQUER et ↻ sont dans le menu ⋯ (avec EXPORTER / IMPORTER LE BUDGET) */
#instDup[hidden] { display: none; }
.bdg-more-btn { font-weight: 900; line-height: 1; letter-spacing: 1px; }
/* onglets à largeur égale : une seule rangée, défilement horizontal si elle dépasse */
#bdgTabs, .rec-tabs, .imp-tabs { flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
#bdgTabs::-webkit-scrollbar, .rec-tabs::-webkit-scrollbar, .imp-tabs::-webkit-scrollbar { display: none; }
/* onglets : ⋯ toujours visible à droite ; poignée de largeur au bord droit de chaque onglet */
#bdgTabs > .blk-tools { position: sticky; right: 0; margin-left: auto; background: inherit; z-index: 2; flex: none; }
.tab-eq { position: relative; line-height: 1.2; }
.tab-eq::after { content: ""; position: absolute; top: 20%; bottom: 20%; right: 2px; width: 3px; border-radius: 2px; background: #cbd2dc; cursor: col-resize; }
/* titres repliables : › replié, ⌄ déplié */
.ins-fold { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; cursor: pointer;
  font: 900 15px Arial, sans-serif; color: var(--inst, #b91c1c); border: 1.5px solid var(--inst, #b91c1c); background: #fff; user-select: none; -webkit-user-select: none; }
.ins-fold.open { font-size: 12px; opacity: .8; }
/* désignations : retrait selon le niveau (r.d), sans limite */
/* FORMAT 120 : cascade des titres — 20 px par niveau (v748 : plus de sélecteur sur l'attribut style — il faisait recalculer toutes les cases à chaque largeur changée) */
.ins-table[data-ik="des"] tr[data-iid] :is(input, textarea, .ins-dv)[data-f="des"], .bdg-d-table.ins-table tr[data-ik="des"][data-iid] :is(input, textarea, .ins-dv)[data-f="des"] { padding-left: calc(8px + var(--d, 0) * 20px); }
.ins-table tr.ins-sub td.number:first-of-type { padding-left: calc(8px + var(--d, 0) * 20px); }
/* glissement : entre dans le titre (décalé) / superposer = nouveau titre (encadré) */
.ins-table tr.ro-in td { box-shadow: inset 0 -3px 0 var(--inst, #12355b); }
.ins-table tr.ro-in td:nth-child(-n+3) { box-shadow: none; }
.ins-table tr.ro-on td { background: #fde68a !important; box-shadow: inset 0 2px 0 #b45309, inset 0 -2px 0 #b45309; }
/* IMPORT IMPOSSIBLE : raisons, détail technique en petit */
#svConf .imp-fail .imp-fail-v { margin-top: 2px; word-break: break-word; }
#svConf .imp-fail .imp-fail-d { font-size: 10px; font-weight: 600; color: #6b7280; margin-top: 2px; word-break: break-all; }
#svConf .imp-fail .svc-list li { margin-bottom: 4px; }
/* pendant un glissement : aucune sélection de texte ni loupe */
body.svi-dragging, body.svi-dragging * { -webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important; }
/* IMPORT NON CRÉÉ : case fautive encadrée, raison en rouge */
.inc-table td.inc-bad { box-shadow: inset 0 0 0 2px #dc2626 !important; background: #fef2f2 !important; }
.inc-table td.inc-why { color: #b91c1c !important; font-weight: 700; font-size: 11px; white-space: normal; }
/* lignes coupées (en attente du COLLER) : pointillés */
.ins-table tr.ins-cut td, .ins-hcol .ins-li.ins-cut { opacity: .5; outline: 1.5px dashed var(--inst, #b91c1c); outline-offset: -2px; }
#blkMenu button.blk-clip { color: #172033; }
#blkMenu button.blk-clip.off { color: #9aa3af; }
/* bouton grisé dans une fenêtre (ex. FUSIONNER impossible) */
/* rond d'en-tête : choisir toutes les lignes déjà liées ; grisé si une ligne du bloc est déjà choisie */
.lk-rdall.off { opacity: .3; pointer-events: none; }
th.ins-rdc .lk-rdall, .bdg-h-head .lk-rdall { vertical-align: middle; }

/* FORMAT : toutes les cases et ronds prennent la couleur de l'état (jamais le bleu du navigateur) */
:root { --svst: #172033; }
:root[data-svst="instance"] { --svst: #b91c1c; }
:root[data-svst="fige"] { --svst: #15803d; }
input[type=checkbox], input[type=radio] { accent-color: var(--svst); }
.inc-cb, .inc-cball, .unl-cb, .unl-cball { accent-color: var(--inst, var(--svst)); }
#blkMenu button.off, #blkMenu button:disabled { color: #9aa3af; cursor: default; opacity: .6; background: none; }
/* FORMAT 75 : case fautive d'une ligne en saisie */
.ins-table td.ins-bad { box-shadow: inset 0 0 0 2px #dc2626 !important; background: #fef2f2 !important; }
/* PARAMÉTRAGE : onglets CHS / UNITÉS */
.prm-tabs { display: flex; gap: 6px; margin: 4px 0 12px; border-bottom: 1px solid #e5e9f0; }
.prm-tab { border: 0; background: none; padding: 9px 14px; font-weight: 800; font-size: 12px; color: #6b7280; cursor: pointer; }
.prm-tab.on { color: #172033; box-shadow: inset 0 -3px 0 #172033; }
.prm-unit { max-width: 640px; }
.prm-table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; }
.prm-table th { text-align: left; padding-left: 8px; padding-right: 8px; }
.prm-table th.center, .prm-table td.center { text-align: center; }
.prm-table td { padding-left: 6px; padding-right: 6px; border-bottom: 1px solid #f0f2f5; }
.prm-in { width: 100%; border: 0; background: transparent; padding: 7px 4px; font: inherit; text-transform: uppercase; }
.prm-in.center { text-align: center; }
.prm-foot { margin-top: 8px; display: flex; justify-content: flex-end; }
.prm-del { border: 1.5px solid #b91c1c; color: #b91c1c; background: #fff; border-radius: 8px; padding: 7px 12px; font-weight: 800; font-size: 11px; }
.prm-del:disabled { border-color: #d1d5db; color: #9aa3af; }

/* calendrier de l'application */
#svCal { position: fixed; z-index: 100010; width: 280px; background: #fff; border: 1px solid #d6dbe3; border-radius: 12px; padding: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.2); font: 12px Arial, sans-serif; }
#svCal .svcal-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
#svCal .svcal-h b { flex: 1; text-align: center; font-weight: 800; color: #172033; }
#svCal .svcal-h button { border: 0; background: #eef1f6; border-radius: 8px; width: 30px; height: 30px; font-size: 16px; font-weight: 800; color: #172033; }
#svCal .svcal-w, #svCal .svcal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
#svCal .svcal-w span { font-size: 10px; color: #6b7280; font-weight: 800; padding: 2px 0; }
#svCal .svcal-g button { border: 0; background: #fff; border-radius: 8px; height: 32px; font-weight: 700; color: #172033; }
#svCal .svcal-g button.td { box-shadow: inset 0 0 0 1.5px #9aa3af; }
#svCal .svcal-g button.on { background: var(--svst, #172033); color: #fff; }
#svCal .svcal-g button:disabled { color: #c3c9d2; background: #f3f4f6; text-decoration: line-through; }
input.sv-date, input.dlp-in[readonly] { cursor: pointer; }
/* LIGNES NON LIÉES : toucher = aller à la ligne */
tr.unl-go { cursor: pointer; }
.unl-flash, .unl-flash > td { animation: unlFlash 2.2s ease-out; }
@keyframes unlFlash { 0%, 60% { box-shadow: inset 0 0 0 3px var(--svst, #b91c1c); background: #fff7d6; } 100% { box-shadow: none; } }
/* proposition d'unités (format de l'application) */
#svUnitSug { position: fixed; z-index: 10040; min-width: 180px; max-width: 280px; background: #fff; border: 1px solid #d6dbe3; border-radius: 10px; box-shadow: 0 10px 26px rgba(15,23,42,.18); padding: 4px; display: flex; flex-direction: column; }
#svUnitSug button { display: flex; gap: 10px; align-items: baseline; border: 0; background: #fff; text-align: left; padding: 7px 9px; border-radius: 7px; font-size: 12px; color: #172033; }
#svUnitSug button b { min-width: 34px; font-weight: 800; }
#svUnitSug button span { color: #6b7280; font-size: 11px; }
#svUnitSug button:active { background: #eef1f6; }
/* PLANNING / PRÉDÉCESSEURS */
.dly-pred { color: var(--svst, #172033); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; }
tr.dly-task { cursor: pointer; }
#svConf .dpk-card { width: min(760px, 94vw); max-width: none; height: min(620px, 88vh); display: flex; flex-direction: column; position: relative; }
.dpk-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; flex: 1; min-height: 0; margin-top: 6px; }
.dpk-col { border: 1px solid #e5e9f0; border-radius: 8px; overflow: auto; min-height: 0; }
.dpk-t { width: 100% !important; min-width: 0 !important; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.dpk-t th .cf-wrap { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.dpk-t thead th { position: sticky; top: 0; z-index: 1; text-align: left; padding-left: 8px; padding-right: 8px; }
.dpk-t td { padding-left: 8px; padding-right: 8px; border-bottom: 1px solid #f0f2f5; }
.dpk-t td label { display: flex; gap: 8px; align-items: center; }
.dpk-lot { cursor: pointer; font-weight: 700; color: #172033; }
.dpk-lot.cur td { box-shadow: inset 4px 0 0 var(--svst, #172033); background: #f3f5f8; }
.dpk-lot.chosen td, .dpk-sec.chosen td { background: #dbeafe; color: #1e3a8a; }
.dpk-lot.cur.chosen td { background: #c7dcfb; }
.dpk-sec.off td { color: #c3c9d2; }
.dpk-cbh { width: 36px; }
.dpk-rsz { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; cursor: nwse-resize; touch-action: none; }
.dpk-rsz::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 14px; height: 14px; border-right: 3px solid #9aa3af; border-bottom: 3px solid #9aa3af; border-radius: 0 0 4px 0; }
#cfMenu { z-index: 100010 !important; }
/* FIGER impossible : bouton grisé (toucher = raisons) */
.bdg-d-hright .inst-act.off { opacity: .35; }
#svConf .fz-why { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #e5e9f0; background: #fff; border-radius: 8px; padding: 9px 10px; margin: 0 0 6px; font-weight: 700; font-size: 12px; text-align: left; color: #172033; }
#blkMenu .del-split { display: block; font-size: 10px; font-weight: 700; color: #6b7280; margin-top: 2px; }
/* DOUBLON EXISTANT : sélecteur et liste */
#svConf .dupx-card { width: min(680px, 94vw); max-width: none; }
.dupx-head { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.dupx-nav { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.dupx-nav button { border: 1px solid #d6dbe3; background: #fff; border-radius: 8px; min-width: 32px; height: 30px; font-weight: 800; font-size: 13px; color: #172033; }
.dupx-nav button:disabled { opacity: .35; }
.dupx-nav .dupx-num { padding: 0 10px; background: #eef1f6; }
.dupx-list { max-height: 34vh; overflow: auto; border: 1px solid #e5e9f0; border-radius: 8px; margin: 6px 0 8px; }
.dupx-li { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f0f2f5; background: #fff; padding: 6px 10px; font-size: 11px; font-weight: 700; color: #172033; }
.dupx-li b { display: inline-block; min-width: 28px; color: #6b7280; }
.dupx-li.on { background: #dbeafe; }
.dupx-f { flex-wrap: wrap; }

/* FORMAT 109 : DÉSIGNATION client à la ligne */
.ins-table textarea.ins-in { display: block; resize: none; overflow: hidden; white-space: pre-wrap; word-break: break-word;
  height: 20px; min-height: 20px; line-height: 16px; padding: 2px 8px; font-family: inherit; }
.bdg-d-table td.c-wrap { white-space: normal !important; word-break: break-word; }

/* FORMAT 115 : une seule hauteur de ligne (21 px) dans tous les tableaux */

.bdg-d-table tbody td:has(> input[type="checkbox"]), .bdg-d-table tbody td.ins-cbc { padding-top: 0 !important; padding-bottom: 0 !important; }
.bdg-d-table tbody td input[type="checkbox"] { margin-top: 0; margin-bottom: 0; vertical-align: middle; width: 16px; height: 16px; }
.ins-hcol .ins-li { min-height: 21px; }
.ins-hcol .ins-li > span:not(.ins-cbc) { padding: 2px 0; }
/* FORMAT 116 : colonne sélectionnée (toucher sur le titre) */
th.col-sel .cf-lab, .bdg-h-head.col-sel .cf-lab { text-decoration: underline; text-underline-offset: 3px; }

/* FORMAT 122 : désignation — texte en lecture, zone de saisie posée dessus pendant l'édition */
.ins-table td.ins-tdv { position: relative; }
.ins-table .ins-dv { display: block; padding: 2px 8px; height: auto; min-height: 20px; line-height: 16px; white-space: pre-wrap; word-break: break-word;
  text-transform: uppercase; box-sizing: border-box; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: text; }
.ins-table td.ins-tdv textarea.ins-ta { position: absolute; inset: 0; height: 100% !important; min-height: 0; opacity: 0; pointer-events: none; }
.ins-table td.ins-tdv.ins-ed textarea.ins-ta { opacity: 1; pointer-events: auto; background: #fff; }
.ins-table td.ins-tdv.ins-ed .ins-dv { visibility: hidden; }
/* FORMAT 121 : en-tête fixé lors du défilement de la page */
.sv-stuck:not(th) { position: relative; z-index: 6; }
thead th.sv-stuck, .bdg-h-head.sv-stuck { z-index: 7; box-shadow: 0 3px 4px -2px rgba(15, 23, 42, .18); }
.blk-head.sv-stuck, .bdg-d-block-title.sv-stuck, #bdgTabs.sv-stuck { background: #fff; z-index: 8; }

/* FORMAT 124 : ART calculé (case vide) en gris */
.ins-table input.ins-in[data-f="art"]::placeholder { color: #9aa3af !important; -webkit-text-fill-color: #9aa3af !important; opacity: 1; }
.bdg-d-table td.art-auto { color: #9aa3af !important; }

/* FORMAT 128 : fenêtre ACTUALISER DEPUIS LA SOURCE */
#svConf .src-opt { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-weight: 700; font-size: 12px; }
#svConf .src-opt input { width: 18px; height: 18px; flex: none; accent-color: var(--svst, #b91c1c); }
#svConf .svc-b:disabled { opacity: .4; cursor: default; }

/* FORMAT 129 : case d'en-tête à moitié cochée (comme les titres) */
input[type="checkbox"][class$="-cball"]:indeterminate { opacity: .55; }

/* FORMAT 131 : bouton COCHÉES SEULEMENT */
.only-c { margin-left: 8px; height: 22px; padding: 0 8px; border: 1px solid var(--svst, #b91c1c); border-radius: 11px; background: #fff;
  color: var(--svst, #b91c1c); font: 800 10px Arial, sans-serif; cursor: pointer; white-space: nowrap; flex: none; vertical-align: middle; }
.only-c.on { background: var(--svst, #b91c1c); color: #fff; }
#svConf .src-opt.src-all { padding-bottom: 6px; border-bottom: 1px solid #d1d5db; }
/* FORMAT 134 : 9 px entre la dernière colonne et le bord droit du bloc (8 px + trait 1 px), défilement compris */
.bdg-d-block .bdg-d-scroll, .bdg-d-block .rec-scroll, .bdg-d-block .lk-scroll { padding-right: 8px; box-sizing: border-box; }

/* fenêtre PRÉDÉCESSEURS : type et décalage de chaque liaison (15/10/2026) */
.dpk-t .dpk-ty { width: 132px; }
.dpk-t .dpk-of { width: 100px; }
/* FORMAT 6 : en-tête jamais coupé en « … » (passe à la ligne) */
.dpk-t th .cf-lab { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
.dpk-t-in { width: 100%; height: 19px; font-size: 10px; border: 1px solid #d0d5dd; border-radius: 4px; background: #fff; padding: 0 2px; }
.dpk-o-in { width: 100%; height: 19px; font-size: 12px; text-align: right; border: 1px solid #d0d5dd; border-radius: 4px; padding: 0 4px; box-sizing: border-box; }
/* calendrier du budget (PARAMÉTRAGE › CALENDRIER) */
.bcal-card { width: 360px; }
.bcal-h { display: flex; align-items: center; justify-content: space-between; margin: 6px 0; }
.bcal-h b { font-size: 13px; }
.bcal-h button { border: 1px solid #d0d5dd; background: #fff; border-radius: 6px; width: 32px; height: 28px; font-size: 16px; }
.bcal-w, .bcal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.bcal-w span { font-size: 10px; color: #6b7280; }
.bcal-g button { position: relative; height: 34px; border: 1px solid #e4e7ec; background: #fff; border-radius: 6px; font-size: 13px; color: #111; }
.bcal-g button.off { background: #e5e7eb; color: #9ca3af; }
.bcal-g button.exc::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--svst, #b42318); }
.bcal-rec { display: flex; gap: 18px; margin: 10px 0 2px; font-size: 12px; }
.bcal-rec label { display: flex; gap: 6px; align-items: center; }
.bdt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: 12px; }
.bdt-row input { width: 150px; height: 30px; border: 1px solid #d0d5dd; border-radius: 6px; text-align: center; font-size: 13px; }
.prm-tab.off { opacity: .45; }
/* ===== PLANNING + GANTT (v401, FORMAT 90 à 96) ===== */
.dlyg { display: flex; width: 100%; }
.dlyg-l { flex: none; max-width: 58%; overflow-x: auto; overflow-y: hidden; background: #fff; }
.dlyg-l .dly-table thead th { position: relative; z-index: 2; background: #f6f7f9; }
.dlyg-l .dly-table td { white-space: nowrap; }
.dlyg-r { position: relative; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; }
.dlyg-r > .gh, .dlyg-r > .gbody { position: relative; }
.dly-grp td { background: #f6f7f9; font-weight: 700; }
.dly-fold { cursor: pointer; display: inline-block; }
.dly-fold b { display: inline-block; width: 12px; color: #475467; }
.dly-jal { cursor: pointer; color: #c3c9d2; font-size: 13px; }
.dly-jal.on { color: #b45309 !important; }
.dly-table td.dly-calc { background: #f2f4f7; }
.dlyg-r .gh { z-index: 5; background: #f6f7f9; border-bottom: 1px solid #e4e7ec; box-sizing: border-box; overflow: hidden; }
.gh-m { position: absolute; top: 2px; font-size: 9px; font-weight: 800; color: #475467; white-space: nowrap; padding-left: 3px; border-left: 1px solid #d0d5dd; }
.gh-d { position: absolute; bottom: 2px; width: var(--dw, 22px); text-align: center; font-size: 9px; color: #6b7280; }
.gh-d.off { color: #b0b6c0; }
.gbody { position: relative; }
.gbg-off { position: absolute; top: 0; bottom: 0; width: var(--dw, 22px); background: #f2f4f7; }
.gv { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid #b42318; z-index: 1; }
.gv span { position: absolute; top: 2px; left: 3px; font-size: 8px; font-weight: 800; color: #b42318; white-space: nowrap; }
.gv-today { border-left: 1px solid #98a2b3; }
.glinks, .gtmp { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; }
.gl { fill: none; stroke: #475467; stroke-width: 1.2; }
.gl-hit { fill: none; stroke: transparent; stroke-width: 12; pointer-events: stroke; cursor: pointer; }
.gb { position: absolute; height: var(--gbh, 11px); border-radius: 6px; background: var(--c); z-index: 3; touch-action: none; cursor: grab; display: flex; align-items: center; box-sizing: border-box; }
.gb.crit { background: linear-gradient(90deg, #e5484d 0, var(--c) 10%, var(--c) 90%, #e5484d 100%); }
.gb.gb-drag { opacity: .75; cursor: grabbing; }
.gb.gb-link, .gb.gb-tgt { outline: 2px dashed #b42318; outline-offset: 1px; }
.gb-s, .gb-e { position: absolute; top: 0; bottom: 0; width: 8px; }
.gb-s { left: 0; cursor: crosshair; }
.gb-e { right: 0; cursor: ew-resize; }
.gb-n { font-size: 10px; font-weight: 700; color: #fff; padding: 0 5px; white-space: nowrap; pointer-events: none; line-height: 15px; }
.gb-n.gb-out { position: absolute; color: #344054; padding: 0; z-index: 3; font-weight: 600; }
.gb-n .gjal { position: static; }
.gseg { position: absolute; height: var(--gbh, 11px); border-radius: 6px; z-index: 3; }
.gdot { position: absolute; height: 0; border-top: 1.5px dotted #475467; z-index: 2; }
.gsum { position: absolute; height: 6px; z-index: 3; background: color-mix(in srgb, var(--c) 55%, #fff); border-radius: 1px; }
.gsum::before, .gsum::after { content: ""; position: absolute; top: 6px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid color-mix(in srgb, var(--c) 55%, #fff); }
.gsum::before { left: 0; border-left: 0; }
.gsum::after { right: 0; border-right: 0; }
.gjal { position: absolute; font-size: 13px; color: #b45309; z-index: 3; pointer-events: none; }
.lkw-t { height: 30px; border: 1px solid #d0d5dd; border-radius: 6px; font-size: 12px; background: #fff; }
.bdt-row .lkw-o { width: 90px; text-align: right; }
.dlyg-l .dly-table thead th { height: 34px; box-sizing: border-box; }
/* ===== GÉNÉRER LE PLANNING, MAIN D'ŒUVRE, NIVELLEMENT (v403) ===== */
.dlyh-lab { height: var(--dly-hh, 110px); border-top: 1px solid #e4e7ec; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-size: 10px; font-weight: 800; color: #6b7280; text-align: right; box-sizing: border-box; background: #f9fafb; }
.ghist { position: relative; border-top: 1px solid #e4e7ec; box-sizing: border-box; background: #fff; overflow-x: clip; overflow-y: visible; }   /* v559 : rien ne dépasse à droite du trait FIN */
.ghb { position: absolute; bottom: 0;  border-radius: 2px 2px 0 0; }
.ghb.over { background: #d92d20; }
.gplaf { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid #b42318; cursor: ns-resize; touch-action: none; z-index: 4; }
.gplaf::before { content: ""; position: absolute; left: 0; right: 0;   }
.gplaf-v { position: sticky;     font-weight: 800; color: #b42318;   }
.gplaf-w { position: sticky; left: 90px; display: inline-block; margin-top: -16px; margin-left: 8px; font-size: 9px; font-weight: 800; color: #fff; background: #b42318; padding: 1px 5px; border-radius: 3px; }

/* séparation tableau / Gantt avec poignée ‖ (FORMAT 90) */
.dlyg { position: relative; align-items: stretch; }
.dlyg-sp { flex: none; width: 3px; background: #8a5a3c; position: relative; cursor: col-resize; touch-action: none; z-index: 6; }
.dlyg-sp::before { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; right: -16px; touch-action: none; }
.dlyg-hd { top: 45%; display: block;   margin: 40px 0 0 -13.5px; border-radius: 50%;  color: #fff;    text-align: center;  touch-action: none; }
.dlyg-sp.on { background: #b42318; }
.dlyg-sp.on .dlyg-hd { background: #b42318; }

/* PLANNING : noms modifiables, cases à cocher, sans débordement (v405) */
.dlyg-l { min-width: 0; }
.dly-lotc { display: flex; align-items: center; gap: 2px; }
.dly-nm { flex: 1; min-width: 60px; border: 0; background: transparent; font: inherit; color: inherit; padding: 0 2px; height: 19px; -webkit-text-fill-color: currentColor; }
.dly-grp .dly-nm { font-weight: 700; }
.dly-nm:focus { outline: none; box-shadow: inset 0 0 0 2px var(--inst, #b42318); background: #fff; }
.dly-fold { flex: none; }
/* LOTS en arborescence dans le bloc TÂCHES (v406) */
.ins-hcol .lot-in { display: flex; align-items: center; flex: 1; min-width: 0; }
.ins-hcol .lot-in .ins-in, .ins-hcol .lot-in .lot-gname { flex: 1; min-width: 0; }
.lot-fold, .lot-fold-sp { flex: none; display: inline-block; width: 14px; text-align: center; font-weight: 800; color: #475467; cursor: pointer; }
.lot-fold-sp { cursor: default; }
.ins-hcol .ins-li.lot-grp { background: #f6f7f9; }
.lot-gname { border: 0; background: transparent; font: inherit; font-weight: 800; color: inherit; padding: 0 2px; height: 19px; -webkit-text-fill-color: currentColor; }
.lot-gname:focus { outline: none; box-shadow: inset 0 0 0 2px var(--inst, #b42318); background: #fff; }
.ins-hcol .ins-li.ro-on { background: #fde68a !important; box-shadow: inset 0 2px 0 #b45309, inset 0 -2px 0 #b45309; }
.ins-hcol .lot-fold { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; min-width: 0 !important; height: auto !important; }
.dlyg-r .gh { cursor: pointer; }
/* PLANNING : pas de sélection de texte ni de loupe à l'appui long (glissement des lignes) */

/* ‹ PLANNING (retour) et fenêtre plein écran (double toucher sur le titre) */
.svc-card.svc-full { width: calc(100vw - 16px) !important; height: calc(100vh - 16px) !important; max-width: none !important; max-height: none !important; }
.gb-n.gb-grp { font-weight: 800; color: #1f2937; }

/* Gantt : pas de sélection bleue, de poignées ni de loupe de l'iPad à l'appui long */
#dlyGantt, #dlyGantt * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gb.gb-lift { box-shadow: 0 4px 10px rgba(0,0,0,.28); transform: translateY(-2px); }

/* FORMAT 4 / 5 : cases numériques des fenêtres comme les cases des tableaux — à droite, cadre rouge (jamais le bleu de l'iPad) */
:is(input.lkw-o, input.gen-n, input.dpk-o-in) { text-align: right; outline: none; -webkit-appearance: none; color: var(--inst, #b91c1c); -webkit-text-fill-color: var(--inst, #b91c1c); font-weight: 600; }
:is(input.lkw-o, input.gen-n, input.dpk-o-in):focus { outline: none; border-color: transparent; box-shadow: inset 0 0 0 2px var(--inst, #b91c1c); background: #fff; }
.bdt-row .gen-n { width: 90px; }

/* FORMAT 93 : repli d'un lot depuis le Gantt (signe + nom touchables) */
#dlyGantt .gb-n.gb-fold { pointer-events: auto; cursor: pointer; padding: 2px 6px 2px 0; margin-top: -2px; z-index: 4; }
#dlyGantt .gb-n.gb-fsg { width: 14px; text-align: center; padding: 2px 0; font-weight: 800; font-size: 12px; color: var(--inst, #b91c1c); }
/* FORMAT 91 : nom dans la barre */
#dlyGantt .gb .gb-ti { position: absolute; left: 6px; right: 6px; top: 0; bottom: 0; font-size: 9px; line-height: var(--gbh, 11px); font-weight: 700; color: #1f2937; white-space: nowrap; overflow: hidden; pointer-events: none; text-transform: uppercase; }

/* FORMAT 96 : bout visé de la barre d'arrivée (point rouge) */
.gb.gb-ts::before, .gb.gb-te::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #b42318; box-shadow: 0 0 0 2px #fff; z-index: 2; }
.gb.gb-ts::before { left: -5px; }
.gb.gb-te::after { right: -5px; }

/* FORMAT 91 : largeur des jours réglable — en-tête glissable, repère de largeur, poignées réduites sur une barre courte */
#dlyGantt .gh { touch-action: pan-y; cursor: ew-resize; }
#dlyDwLab { position: fixed; z-index: 100004; transform: translateX(-50%); background: #172033; color: #fff; font: 800 11px -apple-system, Helvetica, Arial, sans-serif;
  padding: 4px 10px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.gb.gb-nar .gb-s, .gb.gb-nar .gb-e { width: 5px; }

/* FORMAT 96 : barre d'un lot glissable (temps) et soulevable (rang / titre) */
#dlyGantt .gsum, #dlyGantt .gseg, #dlyGantt .gdot { cursor: grab; touch-action: none; }
/* zone de toucher plus haute (bord transparent), dessin inchangé */
#dlyGantt .gsum { box-sizing: content-box; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-top: -5px; background-clip: padding-box; }
#dlyGantt .gsum.gb-lift, #dlyGantt .gseg.gb-lift { box-shadow: 0 4px 12px rgba(15,23,42,.3); }
.dlyg-l tr.ro-on td { background: #fde68a !important; box-shadow: inset 0 2px 0 #b45309, inset 0 -2px 0 #b45309; }
.gbody .g-ro-band { position: absolute; left: 0; right: 0; background: #fde68a; box-shadow: inset 0 2px 0 #b45309, inset 0 -2px 0 #b45309; pointer-events: none; z-index: 0; }
/* FORMAT 66 : + AJOUTER UNE TÂCHE grisé quand toutes les tâches sont déjà dans le planning */
.dly-pred-new.off { opacity: .45; cursor: default; }

/* FORMAT 66 : fenêtre AJOUTER UNE TÂCHE (mêmes styles que les fenêtres #svConf, juste en dessous d'elles) */
/* confirmation au format de l'application */
#dlyAddW { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.4); padding: 16px; }
#dlyAddW .svc-card { width: min(520px, 100%); background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(15,23,42,.35);
  display: flex; flex-direction: column; gap: 10px; font-family: inherit; }
#dlyAddW .svc-t { font-size: 15px; font-weight: 800; color: #172033; }
#dlyAddW .svc-x { font-size: 13px; font-weight: 700; color: #172033; line-height: 1.5; }
#dlyAddW .svc-f { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
#dlyAddW .svc-b { height: 38px; padding: 0 20px; border: 1px solid #d6dbe3; border-radius: 8px; background: #fff; font-weight: 800; font-size: 13px; color: #172033; cursor: pointer; }
#dlyAddW .svc-ok { border-color: #b91c1c; color: #b91c1c; }
#dlyAddW .svc-x { white-space: pre-line; }
#dlyAddW .svc-ok.svc-neutral { border-color: #172033; color: #172033; }
#dlyAddW .svc-html { text-align: left; max-height: 50vh; overflow: auto; }
#dlyAddW .svc-sub { font-weight: 800; font-size: 12px; margin: 8px 0 4px; }
#dlyAddW .svc-warn { color: #b91c1c; }
#dlyAddW .svc-list { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.5; }
/* fenêtres de confirmation / choix : ✕ en haut à droite (format INF) */
#dlyAddW .svc-card { position: relative; }
#dlyAddW .svc-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; background: transparent; color: #172033;
  font-size: 16px; font-weight: 800; cursor: pointer; border-radius: 8px; line-height: 1; }
#dlyAddW .svc-close:active { background: #eef1f6; }
#dlyAddW .svc-t { padding-right: 34px; }
détail technique en petit */
#dlyAddW .imp-fail .imp-fail-v { margin-top: 2px; word-break: break-word; }
#dlyAddW .imp-fail .imp-fail-d { font-size: 10px; font-weight: 600; color: #6b7280; margin-top: 2px; word-break: break-all; }
#dlyAddW .imp-fail .svc-list li { margin-bottom: 4px; }
/* bouton grisé dans une fenêtre (ex. FUSIONNER impossible) */
#dlyAddW .dpk-card { width: min(760px, 94vw); max-width: none; height: min(620px, 88vh); display: flex; flex-direction: column; position: relative; }
#dlyAddW .fz-why { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #e5e9f0; background: #fff; border-radius: 8px; padding: 9px 10px; margin: 0 0 6px; font-weight: 700; font-size: 12px; text-align: left; color: #172033; }
/* DOUBLON EXISTANT : sélecteur et liste */
#dlyAddW .dupx-card { width: min(680px, 94vw); max-width: none; }
/* FORMAT 128 : fenêtre ACTUALISER DEPUIS LA SOURCE */
#dlyAddW .src-opt { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-weight: 700; font-size: 12px; }
#dlyAddW .src-opt input { width: 18px; height: 18px; flex: none; accent-color: var(--svst, #b91c1c); }
#dlyAddW .svc-b:disabled { opacity: .4; cursor: default; }
#dlyAddW .src-opt.src-all { padding-bottom: 6px; border-bottom: 1px solid #d1d5db; }
#dlyAddW { z-index: 100000; }
#dlyAddW .dlw-r td { cursor: pointer; }
#dlyAddW .dlw-red td { color: #b91c1c; font-weight: 800; }
#dlyAddW .dlw-black td { color: #172033; font-weight: 700; }
#dlyAddW .dlw-none td { color: #b0b6c0; font-weight: 600; }
#dlyAddW .dpk-sec.cur td { box-shadow: inset 4px 0 0 var(--svst, #172033); background: #f3f5f8; }
#dlyAddW .dlw-p { margin-top: 8px; border: 1px solid #e5e9f0; border-radius: 8px; padding: 8px 10px; }
#dlyAddW .dlw-n { font-weight: 800; font-size: 12px; display: flex; justify-content: space-between; gap: 10px; }
#dlyAddW .dlw-n span { font-size: 10px; }
#dlyAddW .dlw-n.dlw-red { color: #b91c1c; } #dlyAddW .dlw-n.dlw-black { color: #172033; } #dlyAddW .dlw-n.dlw-none { color: #6b7280; }
#dlyAddW .dlw-f { display: flex; gap: 10px; margin-top: 6px; }
#dlyAddW .dlw-f label { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 10px; font-weight: 800; color: #6b7280; }
#dlyAddW .dlw-in { height: 30px; border: 1px solid #d0d5dd; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--inst, #b91c1c); -webkit-text-fill-color: var(--inst, #b91c1c); background: #fff; padding: 0 8px; outline: none; -webkit-appearance: none; }
#dlyAddW .dlw-in:focus { border-color: transparent; box-shadow: inset 0 0 0 2px var(--inst, #b91c1c); }

/* SUPERPOSER deux tâches (16/10/2026) */
#svConf .sup-card { width: min(640px, 94vw); max-width: none; }
#svConf .sup-r { border: 1px solid #e5e9f0; border-radius: 8px; padding: 8px 10px; margin: 6px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#svConf .sup-l { grid-column: 1 / -1; font-size: 10px; font-weight: 800; color: #6b7280; }
#svConf .sup-r label { display: flex; flex-direction: column; gap: 3px; font-size: 10px; font-weight: 800; color: #6b7280; }
#svConf .sup-pre { font-weight: 700; color: #9aa3af; min-height: 12px; }
#svConf .sup-in { height: 30px; border: 1px solid #d0d5dd; border-radius: 6px; padding: 0 8px; font-size: 12px; font-weight: 700; color: #172033; text-transform: uppercase; outline: none; -webkit-appearance: none; }
#svConf .sup-in:focus { border-color: transparent; box-shadow: inset 0 0 0 2px var(--inst, #b91c1c); }
#svConf .sup-in.sup-bad { border-color: #b91c1c; color: #b91c1c; }
/* FORMAT 97 : menu ⋯ du détail — commandes du planning et affichage du Gantt */
#blkMenu .blk-sep { flex: none; height: 1px; background: #e5e9ef; margin: 4px 0; }
/* v920 : ligne sans icône dans un menu qui en a — même marge */
#blkMenu .mi-sp { display: inline-block; width: 15px; height: 15px; flex: none; }
/* v927 : fenêtre du FORMAT et écran d'accueil */
#svConf .fmw-card { width: min(860px, calc(100vw - 24px)) !important; max-width: none !important; }
#svConf .fmw-scroll { max-height: min(64vh, 640px); overflow: auto; display: flex; flex-direction: column; gap: 10px; }
#svConf .fmw-card input.fmw-in:not([type=checkbox]):not([type=color]), #svConf .fmw-card input.fmw-blk { width: 56px; text-align: center; }
#home .home-head { display: flex; align-items: center; gap: 12px; }
#home .home-head > div { flex: 1; }
/* v928 (remarque 15) : petite fenêtre MASQUE DE SAISIE (posée au-dessus de la fenêtre ouverte, sans la fermer) */
#svMaskPop { position: fixed; z-index: 100030; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; width: min(420px, calc(100vw - 16px)); background: #fff; border: 1px solid #d0d5dd; border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.28); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
#svMaskPop .mkp-t { font-weight: 800; font-size: 13px; color: #172033; }
#svMaskPop .mkp-f { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 800; color: #475467; }
#svMaskPop .mkp-m { height: 32px; border: 1px solid #d0d5dd; border-radius: 7px; padding: 0 8px; font-size: 14px; }
#svMaskPop .mkp-c, #svMaskPop .mkp-x, #svMaskPop .mkp-n { font-size: 11px; font-weight: 700; color: #475467; }
#svMaskPop .mkp-b { display: flex; justify-content: flex-end; gap: 8px; }
/* v930 (remarque 7) : fenêtres au format INF — nom du champ au-dessus, trois colonnes (deux, puis une sur petit écran) */
#docPop .doc-grid[data-top] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; align-items: start !important; gap: 10px 14px !important; }
#docPop .doc-grid.doc-grid-2[data-top] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
#docPop .doc-grid[data-top] > .doc-span { grid-column: 1 / -1; }
#docPop .doc-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#docPop .doc-cell > .doc-lab { padding-top: 0 !important; margin-left: 0 !important; white-space: normal; }
#docPop .doc-cell .inf-cell { align-items: flex-start !important; justify-content: flex-start !important; text-align: left; }
#docPop .doc-cell > .doc-in, #docPop .doc-cell > .fld-wrap:not(.sized), #docPop .doc-cell > .inf-cell, #docPop .doc-cell > .doc-row { width: 100%; box-sizing: border-box; }
@media (max-width: 900px) { #docPop .doc-grid[data-top] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { #docPop .doc-grid[data-top] { grid-template-columns: 1fr !important; } }
#svConf .svc-fw { position: relative; display: block; min-width: 0; }
#svConf .svc-fw.sized { max-width: none; }
#svConf .svc-fw > input, #svConf .svc-fw > textarea { width: 100%; box-sizing: border-box; }
#svConf .svc-fw .fld-rsz { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; cursor: nwse-resize; touch-action: none; opacity: .5;
  background: linear-gradient(135deg, transparent 50%, #9aa3af 50%, #9aa3af 60%, transparent 60%, transparent 75%, #9aa3af 75%, #9aa3af 85%, transparent 85%); }
/* B6 (série B) : PARAMÉTRAGE GÉNÉRAL — une rangée d'onglets au format du budget, même largeur, glissables */
#chs .pg-tabs { display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto; border-bottom: 0; margin: 4px 0 12px; }
#chs .pg-tabs > .prm-tab { flex: 1 1 0; min-width: 96px; padding: 6px 6px; white-space: normal; text-align: center; line-height: 1.15; box-shadow: none; }
#chs .pg-tabs > .prm-tab.on { color: #172033; background: #fff; box-shadow: inset 0 -2px 0 #172033; }
#chs .pg-tabs > .prm-tab.pg-drag { opacity: .5; } #chs .pg-tabs > .prm-tab.pg-over { outline: 2px dashed #2563eb; outline-offset: -3px; }
#chs .pg-t .pg-ind { display: inline-block; } #chs .pg-t .pg-fold, #chs .pg-t .pg-fold-sp { display: inline-block; width: 22px; border: 0; background: none; font-weight: 800; cursor: pointer; }
#chs .pg-t td:first-child { white-space: nowrap; } #chs .pg-t td:first-child > .prm-in { width: auto; min-width: 160px; }
#chs .pg-tree tr.pg-lv0 td { font-weight: 800; background: var(--tb-ttl-bg, #ece8e1); }
#chs .pg-logo img { max-height: 60px; display: block; margin-bottom: 6px; }
/* série B (B12a, B36) : ACHATS › PARAMÈTRES au format commun — onglets, tableaux alignés, même espacement */
.ach-prm { flex-direction: column; flex-wrap: nowrap; gap: 14px; align-items: stretch; }
.ach-prm > .ach-ptabs { display: flex; width: 100%; }
.ach-prm > .ach-ptabs > .bdg-d-tab { flex: 1 1 0; }
.ach-prm .ach-pgen td, .ach-prm .ach-palr td, .ach-prm .ach-pment td { height: 30px; }
.ach-prm .ach-pgen input.number, .ach-prm .ach-palr input.number { width: 120px; text-align: right; }
/* série B (B27, B29) : clauses pliables, page annexe de la commande */
.ach-pfold > summary.ach-pt { cursor: pointer; list-style: none; }
.ach-pfold > summary.ach-pt::before { content: "▾ "; }
.ach-pfold:not([open]) > summary.ach-pt::before { content: "▸ "; }
.ach-pref input.ins-in, .ach-pcl input.ins-in { width: 100%; box-sizing: border-box; }
[data-tip] { cursor: help; }
.mep-annex .mep-ax-t { font-weight: 700; font-size: 1.15em; margin-bottom: 14px; text-align: center; }
.mep-annex .mep-ax-i { margin: 0 0 8px; line-height: 1.4; }
/* B39 : colonne REÇOIT des contacts */
.frs-rcs { display: flex; gap: 6px; flex-wrap: wrap; }
.frs-rc { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; white-space: nowrap; }
/* B35 : fiche article, onglets INFORMATIONS / FOURNISSEURS */
.art-scroll[data-at="inf"] .art-frs { display: none; }
.art-scroll[data-at="frs"] .frs-g > :not(.art-frs):not(.art-afr) { display: none; }
.art-scroll .art-frs { grid-column: 1 / -1; }
.art-bang { color: #dc2626; font-size: 1.2em; }
/* B11, B17, B28 : fiche du champ */
#svMaskPop textarea.mkp-tip { width: 100%; box-sizing: border-box; }
#svMaskPop .mkp-t2 { margin-top: 10px; font-size: 12px; }
#svMaskPop .mkp-some { display: flex; flex-wrap: wrap; gap: 4px 10px; }
#svMaskPop .mkp-some[hidden] { display: none; }
#svMaskPop .mkp-some .mkp-n { flex: 1 1 100%; }
/* 05/11 : bandeau du centre de la barre du haut = texte simple (plus de pastille), cliquable pour le nom du tiers */
#ach #sviScreenTag, body #sviScreenTag { border-radius: 0; padding: 0 12px; pointer-events: auto; letter-spacing: 0; }
#sviScreenTag .nvp-party { font: inherit; color: inherit; }
.pg-ttl { font-weight: 800; margin: 0 0 8px; }
/* 05/11 : PARAMÉTRAGE — rangée des groupes au-dessus des onglets ; ⋯ des tableaux (lignes cochées) */
#chs .pg-grps { margin-bottom: 6px; }
#chs .pg-grps .prm-grp.on { font-weight: 800; }
.prm-tbar { display: flex; justify-content: flex-end; margin: 0 0 4px; }
.prm-tbar .prm-more { border: 1px solid var(--line, #d5dbe3); background: #fff; border-radius: 6px; width: 32px; height: 26px; cursor: pointer; font-weight: 800; }
.prm-foot[hidden] { display: none !important; }
/* 05/11 : contrat du fournisseur en instance (nouvelle version à valider) */
.frs-st.cla-inst { color: var(--svi-col-instance, #dc2626); }
/* 05/11 : palette de NUIT — fond de page sombre (les éléments réglables viennent de la palette) ; bascule dans les RÉGLAGES COMMUNS */
html.svi-nuit body, html.svi-nuit .content, html.svi-nuit section { background: #0b1220 !important; color: #e5e7eb; }
/* E1 (série E) : traits des tableaux de nuit — réglés dans la palette (élément TRAITS DES TABLEAUX), plus écrits ici */
.fmw-pal { display: inline-flex; align-items: center; gap: 4px; margin-right: auto; font-weight: 800; font-size: 12px; }
.fmw-pal .svc-b.on { outline: 2px solid currentColor; }
/* 05/11 : réglages communs en arbre pliable */
.fmt-cat .fmt-catg td { background: #f1f4f8; }
.fmt-cat .fmt-ind { display: inline-block; width: 22px; }
/* 05/11 : bibliothèque — nuages de points par charge, moyenne pondérée */
.lib-top { margin: 0 0 12px; }
.lib-flt { font-weight: 800; font-size: 12px; margin: 0 0 6px; }
.lib-chs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.lib-ch { border: 1px solid #e5e9f0; border-radius: 8px; padding: 4px 6px; background: #fff; }
.lib-ch-t { font-weight: 800; font-size: 12px; }
.lib-ch .lib-mean { stroke: #b91c1c; stroke-dasharray: 4 3; }
.lib-ch .lib-mt { fill: #b91c1c; font-size: 9px; font-weight: 700; }
.lib-ch .lib-pt { fill: #2563eb; opacity: .75; cursor: pointer; }
.lib-ch .lib-pt.on { fill: #ea580c; opacity: 1; }
.lib-moy .lib-i { cursor: pointer; }
/* B46 : triangle d'alerte des fenêtres, à côté de la croix */
#svConf .svc-alert { position: absolute; top: 10px; right: 46px; height: 30px; min-width: 30px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; }
#svConf .svc-alert b { font-size: 11px; }
#svConf .frs-why[hidden] { display: none !important; }
/* B50 (05/11) : menu de la loupe — MASQUER LA COLONNE, TRIER DE A À Z, TRIER DE Z À A : même largeur (toute la largeur), même police grasse, alignés à gauche ;
   le ✕ a sa propre ligne en haut */
html body #cfMenu { padding-top: 38px !important; }
html body #cfMenu .cf-hide, html body #cfMenu .cf-sort { display: block; width: 100%; margin: 0 !important; box-sizing: border-box; text-align: left; border: 0; background: #f3f5f8; border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 12px; font-weight: 800; color: #172033; cursor: pointer; flex: none; }
html body #cfMenu .cf-sort.on { background: #dbeafe; color: #1d4ed8; }
/* B47 (05/11) : largeur des colonnes — la poignée reste DANS son titre (sinon le titre suivant la recouvre et seule une colonne se règle) */
html body table[data-svcw] thead th .col-rs { right: 0 !important; width: 14px !important; z-index: 8 !important; }
#home .home-note { padding: 14px 16px; color: #475467; font-size: 12px; font-weight: 700; }
#blkMenu .dly-sc.on span { font-weight: 800; }
#blkMenu [data-dly].off { opacity: .45; }
/* FORMAT 91 : en-tête SEMAINE / MOIS */
.gh-d.gh-w { text-align: left; padding-left: 3px; box-sizing: border-box; border-left: 1px solid #e4e7ec; white-space: nowrap; overflow: hidden; }

/* superposition depuis le Gantt : le jaune n'est que sur le Gantt (FORMAT 64) */
.dlyg.dly-src-g .dlyg-l tr.ro-on td { background: inherit !important; box-shadow: none !important; }
/* hauteur des lignes du PLANNING réglable (pincement vertical) */
.dlyg-l .dly-table tbody td { height: var(--dly-rh, 24px); box-sizing: border-box; }
#dlyGantt .gb-n.gb-ren { pointer-events: auto; cursor: text; z-index: 4; }
#dlyGantt input.dly-gin { background: #fff; color: #1f2937; font-size: 11px; font-weight: 700; text-transform: uppercase; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--inst, #b42318), 0 2px 8px rgba(0,0,0,.15); }
.dly-newin { width: 100%; min-width: 80px; border: 0; background: transparent; font: inherit; color: var(--inst, #b42318); text-transform: uppercase; padding: 0 6px; height: 20px; box-sizing: border-box; }
.dly-newin::placeholder { color: var(--inst, #b42318); opacity: .8; }
.dly-newin:focus { outline: none; box-shadow: inset 0 0 0 2px var(--inst, #b42318); background: #fff; }
#dlyAddW input.dlw-new { width: 100%; border: 0; background: transparent; font: inherit; color: var(--inst, #b42318); text-transform: uppercase; padding: 0; height: 18px; outline: none; }
#dlyAddW input.dlw-new::placeholder { color: var(--inst, #b42318); opacity: .8; }
#dlyAddW tr.dlw-newr td { background: var(--inst-bg, #fef2f2); }
#dlyAddW input.dlw-new:focus { box-shadow: inset 0 0 0 2px var(--inst, #b42318); background: #fff; }
#dlyGantt .gb-lv { color: #98a2b3; font-weight: 700; margin-right: 3px; }

/* ===== DÉTAIL QUALITÉ (FORMAT, section U) — v438 ===== */
.qq-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px; flex-wrap: wrap; }
.qq-sub { border: 1px solid #cbd5e1; background: #f8fafc; color: #475569; font: 600 11px/1 inherit; padding: 6px 10px; border-radius: 6px; text-transform: uppercase; }
.qq-sub.on { background: #fff; color: var(--inst, #111); box-shadow: inset 0 -2px 0 var(--inst, #111); }
.qq-scope { margin-left: auto; font-size: 11px; color: #64748b; font-weight: 600; }
.qq-scroll { padding-right: 9px; }
.qq-table th { height: 21px; }
.qq-table th { white-space: normal; }
.qq-table :is(input.qq-in, input.qq-xin, input.qq-pin) { width: 100%; box-sizing: border-box; border: 0; background: transparent; font: inherit; color: inherit; padding: 2px 4px; text-transform: uppercase; }
.qq-table :is(input.qq-in, input.qq-xin, input.qq-pin):focus { box-shadow: inset 0 0 0 2px var(--inst, #b91c1c); background: #fff; outline: 0; }
.qq-table input.number { text-align: right; }
.qq-table td.qq-tree { white-space: nowrap; }
.qq-table tr.qq-t input.qq-lab { font-weight: 700; }
.qq-table tr.qq-p input.qq-lab { font-weight: 700; }
.qq-table tr.qq-empty input.qq-lab { color: #94a3b8; -webkit-text-fill-color: #94a3b8; font-weight: 600; }
.qq-table tr.qq-new input { font-style: italic; }
.qq-fold { display: inline-block; width: 20px; text-align: center; cursor: pointer; font-weight: 700; color: #475569; user-select: none; -webkit-user-select: none; }
.qq-table td.qq-pick, .qq-table td.qq-win, .qq-table td.qq-xt { cursor: pointer; }
.qq-table td.qq-win { background: #fafafa; }
.qq-table td.qq-ro { cursor: default; }
.qq-v { display: block; overflow: hidden; text-overflow: clip; white-space: nowrap; padding: 0 4px; }
.qq-arr { color: #b91c1c; font-weight: 700; }
#qqPick { position: fixed; z-index: 100020; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 4px; min-width: 160px; max-width: 420px; overflow: auto; }
#qqPick button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 10px; font: 600 12px/1.2 inherit; text-transform: uppercase; border-radius: 6px; color: #111; }
#qqPick button.on { background: #eef2ff; }
#qqPick button.qq-clr { color: #b91c1c; border-top: 1px solid #e2e8f0; border-radius: 0; }
.qq-win .qq-wl { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.qq-win .qq-wl label, .qq-win .qq-wr label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.qq-win .qq-wr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; font-size: 13px; }
.qq-win .qq-wi { width: 80px; padding: 4px 6px; border: 1px solid #cbd5e1; border-radius: 6px; text-align: right; font: inherit; }
.qq-win .qq-wcalc { color: #64748b; font-size: 12px; }
.qq-win .qq-dis { color: #94a3b8; }
.qq-desc .qq-dta { width: 100%; min-height: 200px; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px; font: inherit; text-transform: uppercase; }
.qq-x2 { display: flex; gap: 10px; min-height: 180px; }
.qq-x2l, .qq-x2r { flex: 1; display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.qq-x2lot { text-align: left; border: 0; background: transparent; padding: 6px 8px; font: 600 12px/1.2 inherit; border-radius: 6px; color: #111; }
.qq-x2lot.on { color: #1d4ed8; }
.qq-x2lot.cur { box-shadow: inset 3px 0 0 var(--inst, #111); background: #f8fafc; }
.qq-x2r label { display: flex; gap: 8px; align-items: center; font-size: 12px; }
/* DESCRIPTIF : icône i au bout de la désignation (FORMAT 109) */
td.ins-tdv { position: relative; }
.des-i { position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #94a3b8; background: #fff; color: #94a3b8; font: italic 700 10px/14px Georgia, serif; padding: 0; z-index: 2; }
.des-i.on { border-color: #111; color: #111; }
/* point d'arrêt qualité sur le Gantt (FORMAT 107) */
.garr { color: #b91c1c; font-size: 10px; margin-left: 3px; }
.qq-table thead th { white-space: normal; text-overflow: clip; overflow: visible; line-height: 1.15; }
/* v441 : nom du lot d'arrivée surligné pendant un glissement sur le Gantt */
.gb-grp.gb-grp-tgt { background: #fde68a; border-radius: 4px; box-shadow: 0 0 0 2px #fde68a; }
/* v443 : nom d'un lot écrit dans sa barre quand il y tient */
.gb-grp.gb-gin { background: color-mix(in srgb, var(--c) 30%, #fff); border-radius: 4px; padding: 0 5px; z-index: 4; }
.gb-grp.gb-gin.gb-grp-tgt { background: #fde68a; }
/* v450 : nom des parents devant un niveau nommé automatiquement */
.dly-lotc, .lot-in { white-space: nowrap; }
/* le nom des parents se réduit par la gauche quand la colonne est étroite ; le nom du niveau reste entier */
.dly-lotc { min-width: 0; overflow: hidden; }
/* v452 : dates du projet dans INF */
.inf-grid .inf-late { color: #b91c1c !important; font-weight: 700; }
/* v454 : tâche choisie par les ronds, surlignée dans le PLANNING */
.dlyg-l tr.dly-pick > td { background: #bfdbfe !important; }
.dlyg-l td.ins-td input.dlp-in { width: 100%; box-sizing: border-box; border: 0; background: transparent; font: inherit; color: inherit; text-align: center; padding: 0 2px; }
.dlyg-l td.ins-td input.dlp-in.number { text-align: center; }
.dlyg-l td.ins-td input.dlp-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--inst, #b42318); background: #fff; }
/* v455 : poignée — seule la pastille réagit (zone de prise élargie autour d'elle) ; plus de zone sensible le long du trait */
.dlyg-sp::before { display: none; }
.dlyg-hd { position: sticky; }
.dlyg-hd::after { content: ""; position: absolute;  border-radius: 50%; }
/* tableau caché : marge entre la poignée et le Gantt (signes › / ⌄ des lots dégagés) */
.dlyg.tbl-hid .dlyg-sp { margin-right: 24px; }
/* signe › / ⌄ des lots sur le Gantt : zone de toucher agrandie */
#dlyGantt .gb-fsg { padding: 4px 7px; margin: -4px 0 0 -7px; font-size: 14px; }
/* v456 : menu qui défile — flèche ▼ collée en bas tant qu'il reste des entrées plus bas */
#blkMenu.sv-more::after { content: "▼"; position: sticky; bottom: -4px; display: block; flex: none; margin: 0 -4px -4px; padding: 6px 0 4px; text-align: center; font-size: 11px; color: #64748b; background: linear-gradient(rgba(255,255,255,0), #fff 45%); pointer-events: none; }
/* v457 : INF (dates du projet), bouton ⚠ À COMPLÉTER */
.inf-sub { display: block; font-size: 9.5px; font-weight: 700; color: #64748b; letter-spacing: .02em; margin-top: 1px; }
.inf-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inf-cell.inf-dt { flex-direction: row; gap: 6px; }
.inf-cell.inf-dt .inf-cre { flex: 1 1 auto; min-width: 0; }
.inf-cell.inf-dt .inf-cre-h { flex: 0 0 92px; }
.inf-sub.inf-late { color: #b91c1c; }
.inst-act.inst-todo { position: relative; color: #b45309; }
.inst-act.inst-todo.ok { color: #15803d; }
.inst-act.inst-todo b { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #dc2626; color: #fff; font-size: 10px; line-height: 16px; font-weight: 800; text-align: center; }
.inst-act.inst-todo b:empty { display: none; }
#svConf .fz-why.fz-opt { border-style: dashed; color: #475569; }
#svConf .fz-why small { font-size: 9.5px; color: #64748b; font-weight: 700; }
#svConf .fz-none { padding: 12px 4px; font-weight: 800; font-size: 12px; color: #15803d; text-align: center; }
.inf-cell.inf-dt { width: 100%; }
.inf-cell.inf-dt > .inf-cre, .inf-cell.inf-dt > input:first-child { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; }
.inf-cell.inf-dt > .inf-cre-h { flex: 0 0 96px !important; width: 96px !important; min-width: 96px !important; }
.inf-cell.inf-dt > .fld-wrap { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; }
.inf-cell.inf-dt > .fld-wrap:last-child { flex: 0 0 104px !important; width: 104px !important; }
.inf-cell.inf-dt > .fld-wrap > input { width: 100% !important; }
/* v459 : menu ⋯ trop long pour la hauteur de l'écran : deux colonnes, vu en entier */
#blkMenu.sv-2col { display: block; column-count: 2; column-gap: 6px; column-rule: 1px solid #eef1f5; }
#blkMenu.sv-2col > * { break-inside: avoid; -webkit-column-break-inside: avoid; }
#blkMenu.sv-2col > button { display: flex; width: 100%; box-sizing: border-box; }
#blkMenu.sv-2col .blk-sep { height: 1px; }
/* v461 : numéro d'ordre des lots et niveaux ; ISOLER */
.lvl-no { flex: none; font-weight: 800; color: #475467; margin-right: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#dlyGantt .gb-grp .lvl-no { margin-right: 4px; color: inherit; opacity: .8; }
.dly-lotc .lvl-no { align-self: center; }
.dly-iso { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 6px; padding: 7px 10px; border: 1px solid #f2c94c; background: #fff8e1; border-radius: 8px; font-size: 12px; font-weight: 700; color: #172033; }
.dly-iso small { font-size: 10px; color: #6b7280; font-weight: 700; flex: 1 1 auto; }
.dly-iso .dly-iso-x { border: 1px solid #12355b; background: #12355b; color: #fff; border-radius: 6px; padding: 5px 10px; font-weight: 800; font-size: 11px; cursor: pointer; }
.dlyg-l tr.dly-ext td { color: #9aa3af; background: #f7f8fa; }
.dlyg-l tr.dly-ext .dly-extn { font-weight: 600; }
#dlyGantt .gb.gb-ext { opacity: .35; filter: grayscale(1); cursor: default; }
#dlyGantt .gb-extn { color: #9aa3af; }
/* v464 : tâches des liaisons choisies (ronds) surlignées, les autres grisées */
.dlyg.dly-picking .dlyg-l tr.dly-dim > td { opacity: .38; }
.dlyg.dly-picking #dlyGantt .gb-dim { opacity: .22; filter: grayscale(1); }
.dlyg.dly-picking #dlyGantt .gb.gb-pick { box-shadow: 0 0 0 2px #1d4ed8; }
.dlyg.dly-picking #dlyGantt .gb-n.gb-pick { font-weight: 800; color: #1e3a8a; }
/* v469 : une seule case encadrée à la fois — pendant la saisie dans une ligne, seul le cadre de la case en cours se voit ;
   la case fautive de cette ligne reprend son cadre dès qu'on quitte la ligne */
.ins-table tr:focus-within td.ins-bad { box-shadow: none !important; background: transparent !important; }
/* v472 : unité des activités (bloc TÂCHES) */
.ins-hcol .act-uh { flex: none; text-align: center; font-size: 11px; font-weight: 800; color: #475467; margin-left: auto; }
.ins-hcol .ins-li .act-u { flex: none; padding: 0 !important; display: inline-flex; }
.ins-hcol .ins-li .act-u .act-uin { width: 100%; text-align: center; flex: 1; }
.ins-hcol .ins-li .act-uro { justify-content: center;   font-size: 12px;   min-height: 18px; align-items: center; }
.ins-hcol .ins-li .act-u.act-umiss { box-shadow: inset 0 0 0 2px #dc2626; border-radius: 3px; background: #fef2f2; }
/* v474 : ✓ VALIDER grisé quand la validation serait refusée (toucher = la raison) */
.lk-go.lk-off { background: #e5e7eb !important; color: #9ca3af !important; cursor: help; }
/* v476 : fenêtre i — cause du refus, lignes cliquables */
.lk-info-why { margin: 6px 0 4px; padding: 6px 10px; border-radius: 6px; background: #fef2f2; color: #b91c1c; font-weight: 800; font-size: 12px; }
#docPop .lk-go-row { cursor: pointer; }
#docPop tr.lk-go-row:hover td, #docPop span.lk-go-row:hover { background: #eef3fb; }
.lk-flash, .lk-flash > td { animation: lkFlash 1.6s ease; }
@keyframes lkFlash { 0%, 60% { background: #fde68a; } 100% { background: inherit; } }
/* v476 : SAISIE DIRECTE (tableau d'import dans l'application) */
#sdW { position: fixed; inset: 0; z-index: 10040; background: rgba(15,23,42,.35); display: flex; align-items: center; justify-content: center; }
#sdW .sd-card { background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(15,23,42,.3); display: flex; flex-direction: column; width: 82vw; height: 78vh; overflow: hidden; }
#sdW .sd-card.big { width: 100vw; height: 100vh; border-radius: 0; }
#sdW .sd-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #e5e9f0; }
#sdW .sd-title { font-weight: 900; font-size: 14px; color: #172033; }
#sdW .sd-size { border: 1px solid #d6dbe3; background: #fff; border-radius: 6px; padding: 5px 10px; font-weight: 800; font-size: 11px; cursor: pointer; }
#sdW .sd-x { position: static; }
#sdW .sd-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
#sdW .sd-t { font-size: 12px; }
#sdW .sd-t thead th { text-align: left; white-space: nowrap; }
#sdW .sd-t td { border-bottom: 1px solid #eef0f4; border-right: 1px solid #f3f4f6; padding-left: 0; padding-right: 0; }
#sdW .sd-in { width: 100%; box-sizing: border-box; border: 0; background: transparent; font-weight: 600; color: #172033; text-transform: uppercase; }
#sdW .sd-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--inst, #b91c1c); background: #fff; }
#sdW td.number .sd-in { text-align: right; }
#sdW td.sd-ro { background: #f3f4f6; }
#sdW td.sd-ro .sd-in { color: #6b7280; }
#sdW tr.sd-new { background: #fffaf5; }
#sdW .sd-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid #e5e9f0; }
#sdW .sd-foot small { font-size: 10px; font-weight: 700; color: #6b7280; }
#sdW .svc-b { border: 1px solid #d6dbe3; background: #fff; border-radius: 8px; padding: 8px 16px; font-weight: 800; font-size: 12px; cursor: pointer; color: #172033; }
#sdW .svc-b.sd-ok { background: #12355b; border-color: #12355b; color: #fff; }
#sdW tr.sd-lk td:nth-child(-n+5) { background: #f3f4f6; }
#sdW tr.sd-lk td:nth-child(-n+5) .sd-in { color: #6b7280; }
/* v477 (remarque 6) : SAISIE DIRECTE au FORMAT des tableaux */
#sdW .sd-t { border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 0; }
#sdW .sd-t thead th { top: 0; z-index: 3; padding-left: 6px; padding-right: 6px; box-shadow: inset 0 -1px 0 #e4e7ec; }
#sdW .sd-t thead th .cf-wrap { display: flex; align-items: center; gap: 4px; }
#sdW .sd-t thead th .col-rs { position: absolute; right: 0; top: 0; bottom: 0; cursor: col-resize; touch-action: none; }
#sdW .sd-t thead th { position: sticky; }

#sdW .sd-in { height: 20px; padding: 0 6px; line-height: 20px; font-size: 12px; }
#sdW .sd-in:not(:focus) { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#sdW .sd-t th.sd-sel, #sdW .sd-t td.sd-sel { background: #e8f0fe !important; }
#sdW .sd-t th.sd-sel .cf-lab { text-decoration: underline; color: #1d4ed8; }
#sdW .sd-colbar { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: #1d4ed8; margin-left: 12px; }
#sdW .sd-colbar button { border: 1px solid #c7d2fe; background: #fff; border-radius: 6px; padding: 3px 8px; font-weight: 800; font-size: 11px; color: #1d4ed8; cursor: pointer; }
#sdW .sd-card { position: relative; }
#sdW .sd-rsz { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; cursor: nwse-resize; touch-action: none; background: linear-gradient(135deg, transparent 50%, #c3cad5 50%, #c3cad5 58%, transparent 58%, transparent 70%, #c3cad5 70%, #c3cad5 78%, transparent 78%); }
#sdW .sd-sug { position: fixed; z-index: 10070; background: #fff; border: 1px solid #d6dbe3; border-radius: 8px; box-shadow: 0 8px 22px rgba(15,23,42,.18); padding: 3px; display: flex; flex-direction: column; max-width: 360px; }
#sdW .sd-sug button { text-align: left; border: 0; background: none; padding: 5px 9px; font-size: 12px; font-weight: 700; color: #172033; border-radius: 5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sdW .sd-sug button:hover { background: #eef3fb; }
/* v479 : SAISIE DIRECTE — cases à cocher, menu ⋯, lignes à supprimer */
#sdW .sd-cbc { text-align: center; width: 40px; }
#sdW tr.sd-del td { background: #fee2e2 !important; }
#sdW tr.sd-del .sd-in { text-decoration: line-through; color: #b91c1c; }
#sdW .sd-more { margin-left: auto; width: 32px; height: 28px; border: 1px solid #d6dbe3; background: #fff; border-radius: 6px; font-size: 16px; font-weight: 900; cursor: pointer; }
#sdW .sd-more + .sd-size { margin-left: 0; }
#blkMenu[data-for="sd"] { z-index: 10090 !important; }
/* v481 : SAISIE DIRECTE — unité de l'activité obligatoire ; fenêtre réduite en étiquette */
#sdW td.sd-need { box-shadow: inset 0 0 0 2px #dc2626; background: #fef2f2; }
#sdW.sd-min { inset: auto 16px 16px auto; background: none; display: block; }
#sdW.sd-min .sd-card { display: none; }
#sdW .sd-tag { display: none; }
#sdW.sd-min .sd-tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: #12355b; color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 8px 22px rgba(15,23,42,.3); cursor: pointer; border: 0; }
#sdW .sd-mini { border: 1px solid #d6dbe3; background: #fff; border-radius: 6px; padding: 5px 10px; font-weight: 800; font-size: 11px; cursor: pointer; }
#sdW .sd-size { margin-left: 0; }

/* v488 — FORMAT 111 : case AGRÉMENT EXIGÉ (DÉTAIL CHARGES) ; contrôles ajoutés d'office (DÉTAIL QUALITÉ) sur fond gris */
.ins-chk { width: 18px; height: 18px; margin: 0; vertical-align: middle; accent-color: #12355b; }
.qq-table tr.qq-auto td { background: #eceff3; }
.qq-table tr.qq-auto input:disabled { color: #4b5563; -webkit-text-fill-color: #4b5563; opacity: 1; }
.paq-dem { width: 100%; min-height: 180px; text-transform: uppercase; }
.qq-table tr.qq-auto input:disabled { pointer-events: none; }   /* le toucher atteint la case : raison affichée */

/* v490 — remarque 3 : listes des fenêtres jusqu'à la moitié de l'écran, puis défilement ; remarque 1 : combinaisons sous chaque ligne */
#svConf .svc-list.svc-scroll, #dlyAddW .svc-list.svc-scroll { max-height: 50vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 6px; }
#svConf .dup-ul li { margin-bottom: 6px; }
#svConf .dup-ch { font-weight: 600; color: #4b5563; font-size: 11.5px; line-height: 1.4; white-space: normal; }

/* v491 — remarque 5 : proposition en surbrillance (flèches) dans les listes de choix */
#svUnitSug button.on, .sd-sug button.on { background: #12355b; color: #fff; }
#svUnitSug button.on span { color: #dbe4ee; }
/* v491 — remarque 2 : zone de toucher des ronds agrandie (taille visible inchangée) */
.lk-rd { position: relative; }
.lk-rd::before { content: ""; position: absolute; inset: -7px -11px; }
/* v491 — remarque 6 : cases sélectionnées et poignée ronde (doigt) */
td.svi-cs input, td.svi-cs textarea { background: transparent !important; }
#sviSelHandle { position: absolute; display: none; border-radius: 50%; z-index: 10095; touch-action: none; }
#sviSelHandle::before { content: ""; position: absolute; }
/* v492 — remarque 10 : charges regroupées (tableau filtré) */
tr.ins-grp td { background: #eef3fa; color: #1f3b63; font-weight: 700; }
.ins-grpn { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #1d4ed8; color: #fff; font-size: 10px; font-weight: 800; }
/* v492 — remarque 12 : pied de la saisie directe sans texte, boutons remontés ; remarque 13 : filtre du tableau d'origine */
#sdW .sd-srcf { border: 1px solid #1d4ed8; background: #e8f0fe; color: #1d4ed8; border-radius: 12px; padding: 2px 10px; font-size: 11px; font-weight: 800; cursor: pointer; }
/* v493 — remarque 14 : poignée de sélection plus petite, sans anneau, grande zone de toucher */
#sviSelHandle { width: 9px; height: 9px; border: 0; box-shadow: none; background: #1d4ed8; }
#sviSelHandle::before { inset: -16px; }
/* v493 — remarque 15 : trait de largeur des colonnes plus facile à attraper (saisie directe) */
#sdW .sd-t thead th .col-rs { width: 16px; }
/* v493 — remarque 17 : unités centrées (saisie directe) */
#sdW td.center .sd-in { text-align: center; }
/* v493 — remarque 16 : en-tête abrégé « … » quand la colonne est très étroite */
#sdW .sd-t thead th { overflow: hidden; }
#sdW .sd-t thead th .cf-lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* v494 — remarque 22 : la loupe (tri / filtre) passe devant le trait de largeur et garde une bonne zone de toucher */
.cf-wrap .cf-btn {  position: relative; z-index: 5; }
.cf-btn::before { content: ""; position: absolute; inset: -7px -5px; }
/* v494 — remarque 18 : boutons ANNULER / VALIDER de la saisie directe remontés de 6 px */
#sdW .sd-foot { padding: 6px 14px 14px; }
/* v496 — remarque 25 : onglets du bloc détail tous visibles dans la largeur (plus de défilement), onglet EXPLOITATION */
#bdgTabs { overflow-x: visible; }
#bdgTabs > .bdg-d-tab { flex: 1 1 0; min-width: 0; padding: 6px 6px; white-space: normal; text-align: center; line-height: 1.15; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
#bdgTabs > .bdg-d-tab .ico { flex: none; }

/* v497 (remarques 33 et 35) : case sélectionnée comme dans Google Sheets — cadre, pas de curseur ; cases grisées sélectionnables */
:is(table.ins-table, table.sd-t, table.dly-table, table.inc-table, table.prm-table, table.qq-table) :is(input, textarea).svi-nav { caret-color: transparent !important; }
:is(table.ins-table, table.sd-t, table.dly-table, table.inc-table, table.prm-table, table.qq-table) :is(input, textarea).svi-nav::selection { background: transparent; }
:is(table.ins-table, table.sd-t, table.dly-table, table.inc-table, table.prm-table, table.qq-table) td.svi-tdf { outline-offset: -2px; }
:is(table.ins-table, table.sd-t, table.dly-table, table.inc-table, table.prm-table, table.qq-table) tbody td :is(input, textarea):disabled { pointer-events: none; }

/* v497 (remarque 34) : rangée d'onglets serrée — tous les intitulés entiers */
.tab-eq.tab-tight { font-size: 10.5px !important; padding-left: 4px !important; padding-right: 6px !important; gap: 2px !important; }
.tab-eq.tab-tight > svg, .tab-eq.tab-tight > .ico { display: none !important; }

/* v498 (remarques 37 et 39) : onglet MARGE — regroupement par les en-têtes, lignes regroupées pliables */
.mg-table .mg-f { display: inline-block; width: 18px; margin-right: 4px; text-align: center; font-weight: 900; cursor: pointer; position: relative; }
.mg-table .mg-f::before { content: ""; position: absolute; inset: -8px -6px; }
.mg-table td.xpl-pct { font-weight: 700; }
.mg-table td.xpl-b { font-weight: 900; }

/* v499 (remarques 40 et 41) : onglet filtré et colonne des cases cochées en bleu */
.bdg-d-tab.tab-filt, .rec-tab.tab-filt, .imp-tab.tab-filt { color: #1d4ed8 !important; background: #e8efff !important; box-shadow: inset 0 -3px 0 #1d4ed8; }
.bdg-d-tab.tab-filt svg, .rec-tab.tab-filt svg, .imp-tab.tab-filt svg { color: #1d4ed8; }

/* v499 (remarque 44) : case grisée sélectionnée — cadre dessiné dans la case, par-dessus la zone grise (Safari) */
:is(table.ins-table, table.sd-t, table.dly-table, table.inc-table, table.prm-table, table.qq-table) td.svi-tdf { outline: none !important; box-shadow: inset 0 0 0 2px var(--inst, #b91c1c) !important; position: relative; }
/* v499 (remarque 45) : titre de charges regroupées */
tr.ins-gtitle td { background: #e4e9f1 !important; color: #1f2937; font-weight: 800; }
tr.ins-gtitle .ins-gfold { margin-right: 6px; }

/* v500 (remarque 47) : MARGE aux couleurs des autres tableaux — liaisons comme les lignes liées (fond bleu clair, texte bleu),
   lignes regroupées comme les titres (gras, fond gris) ; v500 (remarque 48) : en-têtes classables d'un toucher */
.bdg-d-page .mg-table tr.mg-leaf td:not(.xpl-pct) { color: #1d4ed8 !important; -webkit-text-fill-color: #1d4ed8 !important; font-weight: 700; }
.bdg-d-page .mg-table tr.mg-grp td:not(.xpl-pct) { color: #1e3a8a !important; -webkit-text-fill-color: #1e3a8a; font-weight: 800; }
.bdg-d-page .mg-table tr.mg-grp:not(.mg-l0) td:not(.xpl-pct) { background: #f5f6f8 !important; }
.mg-table th.mg-s .cf-lab { cursor: pointer; }

/* v501 (remarque 50) : MARGE — nuance de gris alternée par groupe de 1er niveau (lui et tout ce qui est déplié dessous) */
.bdg-d-page .mg-table tr.mg-grp:not(.mg-l0).mg-b1 td:not(.xpl-pct) { background: #eaedf1 !important; }
.mg-table tr.mg-grp td[data-k] { cursor: pointer; }

/* v503 (remarque 50 revue) : MARGE — à chaque niveau, nuances alternées entre voisins ; trait au début de chaque groupe */
.bdg-d-page .mg-table tr.mg-grp.mg-l0 td:not(.xpl-pct) { background: #e6eaf0; border-top: 2px solid #8b95a5; }
.bdg-d-page .mg-table tr.mg-grp.mg-l0.mg-b1 td:not(.xpl-pct) { background: #dce1e9 !important; }
.bdg-d-page .mg-table tr.mg-grp.mg-l1 td:not(.xpl-pct) { background: #f0f2f6 !important; border-top: 1px solid #aab3c0; }
.bdg-d-page .mg-table tr.mg-grp.mg-l1.mg-b1 td:not(.xpl-pct) { background: #e7eaf0 !important; }
.bdg-d-page .mg-table tr.mg-grp.mg-l2 td:not(.xpl-pct) { background: #f7f8fa !important; border-top: 1px solid #c9d0da; }
.bdg-d-page .mg-table tr.mg-grp.mg-l2.mg-b1 td:not(.xpl-pct) { background: #eff1f5 !important; }
.bdg-d-page .mg-table tr.mg-leaf td:not(.xpl-pct) { background: #dbeafe !important; }
.bdg-d-page .mg-table tr.mg-leaf.mg-b1 td:not(.xpl-pct) { background: #cfe0fa !important; }
/* v503 (remarque 54) : ligne pliée qui cache une ligne cochée = bleue */
.bdg-d-page .mg-table tr.mg-grp.mg-ck td:not(.xpl-pct), .bdg-d-page .ins-table tr.ins-hasck td { background: #c7d7fe !important; color: #1d4ed8 !important; -webkit-text-fill-color: #1d4ed8 !important; }
.bdg-d-page .ins-table tr.ins-hasck td :is(input, textarea, .ins-dv) { color: #1d4ed8 !important; -webkit-text-fill-color: #1d4ed8 !important; }

/* v505 (remarque 55) : sélection à la couleur du tableau (rouge en instance, vert figé, noir validé) */
td.svi-cs { background: var(--inst-bg, #eef0f3) !important;  }
/* v505 (remarque 56) : cases modifiables du titre de charges regroupées */
.ins-table tr.ins-gtitle input.ins-gin { width: 100%; box-sizing: border-box; border: 0; background: transparent; font: inherit; font-weight: 800; padding: 0 8px; height: 20px; line-height: 20px; margin: 0; outline: none; border-radius: 0; -webkit-appearance: none; color: var(--inst, #1f2937); -webkit-text-fill-color: var(--inst, #1f2937); text-transform: uppercase; }
.ins-table tr.ins-gtitle input.ins-gin.number { text-align: right; }
.ins-table tr.ins-gtitle input.ins-gin.center { text-align: center; }
.ins-table tr.ins-gtitle input.ins-gin:focus { box-shadow: inset 0 0 0 2px var(--inst, #b91c1c); background: #fff; }
.ins-table tr.ins-gtitle td.ins-td { display: table-cell; }

/* v506 (remarque 58) : titres de charges regroupées en bleu foncé (le rouge est réservé aux lignes non liées) */
.bdg-d-page .ins-table tr.ins-gtitle td, .bdg-d-page .ins-table tr.ins-gtitle td * { color: #1e3a8a !important; -webkit-text-fill-color: #1e3a8a !important; }
.bdg-d-page .ins-table tr.ins-gtitle input.ins-gin { color: #1e3a8a !important; -webkit-text-fill-color: #1e3a8a !important; }
.bdg-d-page .ins-table tr.ins-gtitle .ins-grpn { color: #fff !important; -webkit-text-fill-color: #fff !important; background: #1e3a8a; }

/* v507 (remarque 61) : signes › / ⌄ — zone de toucher élargie (sans changer leur taille) */
:is(.ins-fold, .dly-fold, .qq-fold, .mg-f) { position: relative; }
:is(.ins-fold, .dly-fold, .qq-fold, .mg-f)::after { content: ""; position: absolute; inset: -6px -14px; }
/* v507 (remarque 62) : ▲ / ▼ de MARGE sans élargir la colonne */
.mg-table th .cf-lab { position: relative; overflow: visible; }
.mg-table th .mg-dir { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 10px; }
/* v507 (remarque 63) : pastille-rond du titre de charges regroupées */
.bdg-d-page .ins-table tr.ins-gtitle .ins-grpn.ins-grd { --gc: var(--inst, #b91c1c); cursor: pointer; position: relative; background: #fff !important; color: var(--gc) !important; -webkit-text-fill-color: var(--gc) !important; box-shadow: inset 0 0 0 2px var(--gc); }
.bdg-d-page .ins-table tr.ins-gtitle .ins-grpn.ins-grd.blu { --gc: #1d4ed8; }
.bdg-d-page .ins-table tr.ins-gtitle .ins-grpn.ins-grd::after { content: ""; position: absolute; inset: -8px -10px; }
.bdg-d-page .ins-table tr.ins-gtitle .ins-grpn.ins-grd.on { background: var(--gc) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; box-shadow: none; }
.bdg-d-page .ins-table tr.ins-gtitle .ins-grpn.ins-grd.part { background: linear-gradient(90deg, var(--gc) 50%, #fff 50%) !important; }

/* v510 (remarque 69) : ▲ / ▼ de MARGE dans l'en-tête, hors intitulé */
.mg-table th { position: relative; }
.mg-table th > .mg-dir { position: absolute; left: 2px; top: 1px; font-style: normal; font-size: 9px; line-height: 1; pointer-events: none; }
/* v510 (remarque 67) : pastille violette (mélange de choisies et de liées) */
.bdg-d-page .ins-table tr.ins-gtitle .ins-grpn.ins-grd.vio { --gc: #7c3aed; }
/* v510 (remarque 71) : zones de toucher uniformes pour toutes les petites icônes (pliage, pastilles, loupes, i, ronds) —
   la zone s'étend autour de l'icône sans changer sa taille ni la mise en page */
:is(.ins-fold, .ins-gfold, .lot-fold, .qq-fold, .dly-fold, .mg-f) { position: relative; z-index: 3; }
:is(.ins-fold, .ins-gfold, .lot-fold, .qq-fold, .dly-fold, .mg-f)::after { content: ""; position: absolute; left: 50%; top: 50%; width: var(--svi-hit-w, 44px); height: var(--svi-hit-h, 32px); transform: translate(-50%, -50%); }
:is(.cf-btn, .des-i, .ins-grd) { z-index: 3; }

/* v510 (remarque 68) : signe de pliage d'un titre / niveau aux couleurs des ronds de sa branche */
.ins-fold.fs-red { border-color: var(--inst, #b91c1c) !important; background: var(--inst, #b91c1c) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.ins-fold.fs-blu { border-color: #1d4ed8 !important; background: #1d4ed8 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.ins-fold.fs-vio { border-color: #7c3aed !important; background: #7c3aed !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.ins-hcol .ins-li.ins-hasck { background: #c7d7fe !important; }
.ins-hcol .ins-li.ins-hasck :is(input, span) { color: #1d4ed8 !important; -webkit-text-fill-color: #1d4ed8 !important; }

/* v510 (remarque 70) : CONDITION dans le menu de la loupe (nombres, dates) */
#cfMenu .cf-cond { padding: 6px 8px; border-top: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; display: flex; flex-direction: column; gap: 5px; }
#cfMenu .cf-op { height: 28px; border: 1px solid #d0d5dd; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 700; background: #fff; }
#cfMenu .cf-cv { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#cfMenu .cf-cv.off, #cfMenu .cf-et.off, #cfMenu .cf-bw.off { display: none; }
#cfMenu .cf-ca { height: 28px; width: 100px; border: 1px solid #d0d5dd; border-radius: 6px; padding: 0 6px; font: inherit; font-size: 12px; text-align: right; }
#cfMenu .cf-et { font-size: 11px; font-weight: 800; color: #475467; }

/* v511 (remarque 75) : SAISIE DIRECTE sur place, dans le bloc détail */
#sdW.sd-inplace { position: relative; inset: auto; z-index: 4; background: none; display: block; margin: 0; }
#sdW.sd-inplace .sd-card { width: 100% !important; border-radius: 0 0 10px 10px; box-shadow: none; border: 1px solid #e5e9f0; }
#sdW.sd-inplace .sd-tag, #sdW.sd-inplace .sd-rsz { display: none !important; }
.bdg-d-page.sd-on #bdgTabBody, .bdg-d-page.sd-on #bdgDetailRsz { display: none !important; }

/* v511 (remarque 72) : zone réservée au signe › / ⌄ des titres de charges regroupées */
.ins-table tr.ins-gtitle td.ins-gtd { position: relative; padding-left: 40px !important; }
.ins-table tr.ins-gtitle .ins-gfz { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; display: flex; align-items: center;  z-index: 4; cursor: pointer; }
.ins-table tr.ins-gtitle .ins-gfz .ins-gfold::after { display: none; }
/* v511 (remarque 74) : le cadre de la case sélectionnée ou en saisie couvre toute la cellule, dans tous les tableaux */
:is(table.ins-table, table.sd-t, table.dly-table, table.inc-table, table.prm-table, table.qq-table) td.svi-tdon { box-shadow: inset 0 0 0 2px var(--inst, #b91c1c) !important; }
:is(table.ins-table, table.sd-t, table.dly-table, table.inc-table, table.prm-table, table.qq-table) td.svi-tdon :is(input, textarea):focus { box-shadow: none !important; }

/* v512 (remarques 74, 80, 81) : CADRE de la cellule active posé par-dessus (toute la cellule, jamais masqué) ;
   les anciens cadres intérieurs (case, cellule) ne servent plus */
#sviSelFrame { position: absolute; display: none; box-sizing: border-box; border: 2px solid #b91c1c; pointer-events: none; z-index: 45;  }
:is(table.ins-table, table.sd-t, table.dly-table, table.inc-table, table.prm-table, table.qq-table) td:is(.svi-tdon, .svi-tdf) { box-shadow: none !important; outline: none !important; }
:is(table.ins-table, table.sd-t, table.dly-table, table.inc-table, table.prm-table, table.qq-table) tbody :is(input, textarea):focus,
.ins-hcol .ins-li :is(input.ins-in, input.lot-gname):focus, #sdW .sd-in:focus { box-shadow: none !important; outline: none !important; }
/* v512 (remarque 81) : un fin trait gris visible autour de chaque cellule, quel que soit son fond */
:is(table.ins-table, table.dly-table, table.inc-table, table.prm-table, table.qq-table) tbody td { border-right: 1px solid #d9dee6; border-bottom: 1px solid #d9dee6 !important; }
.ins-hcol .ins-li { border-bottom: 1px solid #d9dee6; }
.ins-hcol .ins-li .act-u { border-left: 1px solid #d9dee6; }

/* v512 (remarque 78) : SAISIE DIRECTE sur place à la hauteur de l'écran (sous le bandeau et les onglets) */
#sdW.sd-inplace .sd-card { height: var(--sdh, calc(100vh - 130px)) !important; min-height: 300px; }

/* v513 : case seulement SÉLECTIONNÉE (1er toucher) — ni curseur ni texte surligné, dans les tableaux ET les listes LOT / ACTIVITÉS */
:is(input, textarea).svi-nav { caret-color: transparent !important; }
:is(input, textarea).svi-nav::selection { background: transparent; }
/* v513 : plage sélectionnée dans une liste LOT / ACTIVITÉ PRIMAIRE / ACTIVITÉ SECONDAIRE */
.ins-hcol .act-u.svi-ls input { background: transparent !important; }
/* v514 : barre COPIER · COLLER · EFFACER au-dessus des cases sélectionnées */
#sviSelBar { position: fixed; display: none; z-index: 10098;      touch-action: manipulation; }
#sviSelBar button { border: 0; background: transparent;   letter-spacing: .02em;   cursor: pointer; -webkit-user-select: none; user-select: none; }
/* v515 : plus de rectangle bleu sur la case à cocher d'en-tête quand des lignes sont cochées (le badge COCHÉES suffit) */
th.cb-filt, .ins-hdel.cb-filt { background: transparent !important; box-shadow: none !important; }
/* v517 : bouts de barre du Gantt plus faciles à attraper au doigt (appui long = liaison) */
.gb-s::before, .gb-e::before { content: ""; position: absolute; top: -10px; bottom: -10px; width: 32px; }
/* 23/10/2026 (FORMAT 96) : zone de toucher des bouts agrandie, environ 16 px de chaque côté du bout */
.gb-s::before { left: -16px; }
.gb-e::before { right: -16px; }
/* v523 (remarque 1) : la ligne TOTAL fixée passe toujours devant les lignes qui défilent (pastilles, signes ›, cadres compris) */
.bdg-d-table tfoot td { z-index: 9 !important; }

/* v523 (remarque 6) : TOUS LES BOUTONS-ICÔNES À LA MÊME TAILLE, un peu plus petits —
   barre du haut (‹ › annuler, rétablir, alerte, figer, poubelle, ✕, ⋯) et boutons des blocs / tableaux (⋯, réduire) */
:root { --svi-ib: 36px; --svi-ii: 18px; }
.bdg-d-hright .inst-nav, .bdg-d-hright .inst-act,
.blk-more, #sdW .sd-more, .blk-tools .blk-btn.blk-max-btn {
  width: var(--svi-ib) !important; height: var(--svi-ib) !important; min-width: 0; min-height: 0;
  padding: 0; border-radius: 9px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1 !important;
}
.bdg-d-hright .inst-nav svg, .bdg-d-hright .inst-act svg, .blk-tools .blk-btn.blk-max-btn svg { width: var(--svi-ii); height: var(--svi-ii); }
.bdg-d-hright .inst-nav, .bdg-d-hright .inst-act { margin-left: 5px; }
.bdg-more-btn { font-size: 17px; }
.blk-more, #sdW .sd-more { color: #374151; }
.bdg-d-hright .inst-nav[hidden], .bdg-d-hright .inst-act[hidden], .blk-more[hidden], #sdW .sd-more[hidden] { display: none !important; }
/* v524 (remarque 2) : bloc vidé par les cases cochées / filtres des autres blocs */
.svi-empty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px; padding: 8px 10px; border: 1px dashed #1d4ed8; border-radius: 8px; background: #eef4ff; color: #1e3a8a; font-size: 11px; font-weight: 800; }
.svi-empty-b { border: 1px solid #1d4ed8; background: #1d4ed8; color: #fff; border-radius: 7px; padding: 6px 10px; font-size: 11px; font-weight: 800; cursor: pointer; }
/* v524 (remarques 3 à 5) : rendement calculé du titre de charges regroupées — italique, couleur de la ligne */
.ins-table tr.ins-gtitle td.ins-rdbc { font-style: italic; white-space: nowrap; }
.ins-table tr.ins-gtitle td.ins-rdbc input.ins-rdbin { font-style: italic; width: 52% !important; display: inline-block; text-align: right; background: transparent; }
.ins-table tr.ins-gtitle td.ins-rdbc .ins-rdbu { font-size: 10px; font-weight: 700; padding: 0 4px 0 2px; }
/* v525 (remarque 4) : loupe de la colonne U des activités */
.ins-hcol .act-uh { width: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.ins-hcol .act-uh .cf-btn { margin: 0; }
.ins-hcol .act-uh.cf-on { color: #1d4ed8; }
.ins-hcol .ins-li .act-u { width: 54px; }
/* v525 (remarque 1) : rendement modifiable sur une ligne de charge */
.ins-table td.ins-rdbc { white-space: nowrap; }
.ins-table td.ins-rdbc input.ins-rdbl { width: 52%; display: inline-block; text-align: right; }
.ins-table td.ins-rdbc .ins-rdbu { font-size: 10px; font-weight: 700; padding: 0 4px 0 2px; }
/* v527 (remarque 4) : unité du rendement dans la couleur de la ligne (plus de rouge) */
.ins-table td.ins-rdbc .ins-rdbu { color: inherit !important; -webkit-text-fill-color: currentColor; }
.svi-empty .svi-empty-k { background: #fff; color: #1d4ed8; }
/* v528 (remarque 2) : la zone de toucher de la loupe U reste dans la colonne U (elle couvrait la case d'en-tête) */
.ins-hcol .act-uh { position: relative; }
.ins-hcol .act-uh .cf-btn { position: relative; }
.ins-hcol .bdg-h-head .ins-hdel { position: relative; z-index: 6; }
/* v528 : rond d'un titre dont un sous-groupe est choisi (à moitié) */
.lk-rd.lk-rdgrp.part { background: radial-gradient(circle, var(--inst, #b91c1c) 0 35%, transparent 38%); }

/* v529 (remarque 2) : TOUS les titres (groupes de lots, titres des désignations, groupes du planning, points de contrôle
   de la qualité, lots qui ont des sous-lots) = style des titres du DÉTAIL CHARGES : texte bleu foncé, ligne légèrement grisée.
   Les états (choisi, lié, coché replié) gardent leurs couleurs. */
:root { --ttl-c: #1e3a8a; --ttl-bg: #e4e9f1; }
.ins-hcol .ins-li:is(.lot-grp, .lot-par):not(.ins-hasck):not(.lk-sel):not(.lk-link):not(.lk-hit):not(.ro-on) { background: var(--ttl-bg) !important; }
.ins-hcol .ins-li:is(.lot-grp, .lot-par):not(.ins-hasck):not(.lk-sel):not(.lk-link):not(.lk-hit):not(.ro-on) :is(input.lot-gname, input.ins-in, .lot-in > span:not(.ins-fold):not(.lot-fold-sp), .lvl-no) {
  color: var(--ttl-c) !important; -webkit-text-fill-color: var(--ttl-c) !important; font-weight: 800; }
.ins-table tr.ins-title:not(.ins-hasck):not(.lk-sel):not(.lk-link):not(.lk-hit):not(.ro-on) td { background: var(--ttl-bg) !important; color: var(--ttl-c) !important; font-weight: 800; }
.ins-table tr.ins-title:not(.ins-hasck):not(.lk-sel):not(.lk-link):not(.lk-hit):not(.ro-on) td :is(input.ins-in, textarea.ins-in, .ins-dv, .ins-art, span:not(.lk-rd):not(.ins-fold)) { color: var(--ttl-c) !important; -webkit-text-fill-color: var(--ttl-c); }
.dly-grp:not(.ins-hasck):not(.ro-on) td { background: var(--ttl-bg) !important; color: var(--ttl-c) !important; font-weight: 800; }
.dly-grp:not(.ins-hasck) td :is(input.dly-nm, .lvl-no, span:not(.lk-rd):not(.ins-fold):not(.dly-fold)) { color: var(--ttl-c); -webkit-text-fill-color: var(--ttl-c); font-weight: 800; }
.qq-table tr.qq-t td { background: var(--ttl-bg) !important; color: var(--ttl-c) !important; }
.qq-table tr.qq-t td :is(input.qq-lab, input.qq-in) { color: var(--ttl-c) !important; -webkit-text-fill-color: var(--ttl-c); font-weight: 800; }

/* v530 (remarque 1) : rond d'un titre = pastille chiffrée (nombre de lignes) dans les 4 tableaux ;
   à moitié remplie : chiffre blanc sur la moitié colorée, coloré sur la moitié blanche */
.lk-rd.lk-pst { --gc: var(--inst, #b91c1c); width: auto; min-width: 22px; height: 20px; padding: 0; border: 0; border-radius: 9px; display: inline-flex; align-items: center;
  background: #fff; box-shadow: inset 0 0 0 2px var(--gc); color: var(--gc); font-size: 11px; font-weight: 800; line-height: 20px; }
.lk-rd.lk-pst::after { display: none !important; }
.lk-rd.lk-pst.on { background: var(--gc) !important; color: #fff; box-shadow: none; }
.lk-rd.lk-pst.part { background: linear-gradient(90deg, var(--gc) 50%, #fff 50%) !important; }
.lk-rd.lk-pst.off { opacity: .45; }
.pst-n { display: block; width: 100%; box-sizing: border-box; padding: 0 5px; text-align: center; font: inherit; color: inherit; -webkit-text-fill-color: currentColor; }
.lk-rd.lk-pst .pst-n { color: inherit; -webkit-text-fill-color: currentColor; }
.lk-rd.lk-pst.on .pst-n { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.ins-grpn .pst-n { padding: 0 4px; }
.ins-grpn.ins-grd { padding: 0 !important; }
.lk-rd.lk-pst.part .pst-n, .bdg-d-page .ins-table tr.ins-gtitle .ins-grpn.ins-grd.part .pst-n {
  background: linear-gradient(90deg, #fff 50%, var(--gc) 50%); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent !important; }
/* v530 : titres des DÉSIGNATIONS CLIENT — la pastille prend la colonne des ronds, le signe › / ⌄ passe devant le titre */
.ins-table tr.ins-title td.ins-tdv { position: relative; }
.ins-table tr.ins-title .ins-tfz { position: absolute; top: 0; bottom: 0; left: calc(4px + var(--d, 0) * 20px); display: flex; align-items: center; z-index: 4; }
.ins-table[data-ik="des"] tr.ins-title :is(textarea, .ins-dv)[data-f="des"] { padding-left: calc(32px + var(--d, 0) * 20px); }
/* v530 : CONDITIONNEMENT — bouton dans la DÉSIGNATION d'une charge, fenêtre commune (barres, palettes, camions) */
.ins-table td.ins-pkc { position: relative; padding-right: 22px !important; }
.chg-pk { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; border: 1px solid #94a3b8; background: #fff; color: #94a3b8; padding: 0; display: inline-flex; align-items: center; justify-content: center; z-index: 3; cursor: pointer; }
.chg-pk::after { content: ""; position: absolute; inset: -8px; }
.chg-pk.on { border-color: #1e3a8a; color: #1e3a8a; }
#svConf .cond-card { max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; }
.cond-mode { display: flex; gap: 6px; margin: 8px 0; }
.cond-mode button { flex: 1; border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 8px; font: inherit; font-weight: 800; font-size: 12px; color: #475467; }
.cond-mode button.on { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.cond-h { font-weight: 800; font-size: 11px; color: #1e3a8a; margin: 10px 0 4px; }
.cond-t { min-width: 0 !important; width: 100%; max-width: 100%; table-layout: fixed; box-sizing: border-box; border-collapse: collapse; font-size: 12px; }
.cond-pcs tr > :last-child { width: 34px; }
#svConf .cond-card { box-sizing: border-box; }
.cond-t th { border: 1px solid #e5e7eb; padding-left: 6px; padding-right: 6px; text-align: center; }
.cond-t td { border: 1px solid #e5e7eb; padding-left: 6px; padding-right: 6px; text-align: center; }

.cond-t td.l { text-align: left; }
.cond-pcs input { width: 100%; box-sizing: border-box; border: 0; text-align: center; font: inherit; background: transparent; }
.cond-add, .cond-del { border: 0; background: none; color: #1e3a8a; font: inherit; font-weight: 800; cursor: pointer; }
/* v537 : rond d'une tâche du PLANNING (à quoi elle est liée) */
.dly-lotc .dly-rd { margin-right: 6px; align-self: center; }
/* v538 : ronds / pastilles des lots du PLANNING (mêmes règles que le bloc TÂCHES) */
.dly-lotc .dly-grd { margin-right: 6px; align-self: center; flex: none; }

/* v540 : PLANNING — mêmes couleurs que les autres tableaux (plus de jaune pour un choix) :
   tâche choisie par son rond = rose (comme une ligne choisie), tâches liées au choix = bleu, texte bleu foncé */
.dlyg-l tr.dly-pick > td, .dlyg-l tr.dly-pick > td :is(input, span:not(.lk-rd), b) { color: #1e3a8a !important; -webkit-text-fill-color: #1e3a8a !important; font-weight: 700; }
.dlyg-l tr.dly-pick.dly-sel > td { background: #fde8e8 !important; }
.dlyg-l tr.dly-pick.dly-sel > td :is(input, span:not(.lk-rd), b) { color: var(--inst, #b91c1c) !important; -webkit-text-fill-color: var(--inst, #b91c1c) !important; font-weight: 800; }
/* v541 : PLANNING — une tâche liée (désignation, lot, activités) en bleu comme les lignes liées des autres tableaux ;
   une tâche sans liaison reste en rouge */
.dlyg-l tr.dly-task.dly-lnk:not(.dly-pick) > td { background: #dbeafe !important; }
.dlyg-l tr.dly-task.dly-lnk:not(.dly-pick) > td :is(input, span:not(.lk-rd):not(.dly-pred), b) { color: #1d4ed8; -webkit-text-fill-color: #1d4ed8; font-weight: 700; }

/* ===== v542 : remarques du planning 1 à 16 (23/10/2026) ===== */
/* R16 / FORMAT 119 : tâche placée plus bas que des tâches d'un autre lot — pastille de la couleur de son lot */
.dly-ldot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #98a2b3); margin-right: 5px; align-self: center; }
/* R3 / FORMAT 158 : tâche incompressible */
.dly-inc { flex: none; margin-right: 4px; color: #344054; font-weight: 800; cursor: pointer; align-self: center; }
.gb-inc { font-weight: 800; }
/* R15 / FORMAT 157 : tâches hors sélection en gris pâle, à leur place, avec leurs liaisons */
.dlyg-l tr.dly-off > td { opacity: .38; }
#dlyGantt .gb.gb-off { --c: #d0d5dd !important; background: #e4e7ec !important; }
#dlyGantt .gb-offn { opacity: .45; }
#dlyGantt .gl.gl-off { opacity: .3; }
/* R15 / FORMAT 158 : tâche sans dates complètes = 0 jour */
.dlyg-l tr.dly-nod > td { color: #98a2b3; }
#dlyGantt .gb.gb0 { width: 2px; min-width: 2px; background: #98a2b3; border-radius: 1px; box-shadow: none; }
#dlyGantt .gb.gb0 .gb-e { right: -1px; width: 4px; }
#dlyGantt .gb0n { color: #98a2b3; }
/* R14 / FORMAT 157 : rien de coché */
.ghist-empty { display: flex; align-items: center; }
.ghist-msg { position: sticky; left: 0; width: min(100%, 60vw); text-align: center; font-size: 11px; font-weight: 800; color: #98a2b3; }
/* R11 : plusieurs charges — barres empilées, une couleur par charge, légende */
.ghist-leg { position: sticky;  top: 2px; z-index: 3; display: inline-flex; flex-wrap: wrap; gap: 4px 10px; padding: 1px 6px; font-size: 9px; font-weight: 800; color: #475467; background: rgba(255,255,255,.85); border-radius: 3px; }
.ghist-leg b { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 3px; vertical-align: -1px; }
.ghb.ghb-st { background: transparent; display: flex; flex-direction: column-reverse; overflow: hidden; }
.ghb.ghb-st i { display: block; width: 100%; flex: none; }
.ghb.over-inc { background: #7a5af8; }
.ghb.ghb-st.over { box-shadow: inset 0 0 0 2px #d92d20; }
.ghb.ghb-st.over-inc { box-shadow: inset 0 0 0 2px #7a5af8; }
.ghb.ghc { background: #0e9384; }
.ghb[data-d] { cursor: pointer; }
/* R12 / R13 : poignée « = » entre le Gantt et l'histogramme ; histogramme plein écran */
.dlyg-hh { position: absolute; left: 0; right: 0; height: 14px;  pointer-events: none; }
.dlyg-hh::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 3px; background: #8a5a3c; }
.dlyhh-pill { pointer-events: auto; position: absolute; left: 50%;     border-radius: 50%;  color: #fff;    text-align: center;  touch-action: none; cursor: row-resize; }
.dlyhh-pill::after { content: ""; position: absolute;  border-radius: 50%; }
.dlyg.dly-hfull #dlyGantt .gbody { display: none; }   /* v579 (partie 11, remarque 9) : le tableau du planning reste affiché */
/* R8 / FORMAT 160 : bulle d'un jour de l'histogramme */
#dlyHb { position: fixed; z-index: 10070; min-width: 200px;  background: #fff; border: 1px solid #d0d5dd; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.18); padding: 6px 26px 6px 8px; font-size: 11px; color: #101828; }
#dlyHb > div { display: flex; justify-content: space-between; gap: 10px; padding: 1px 0; }
#dlyHb .hb-t { font-weight: 800; }
#dlyHb .hb-tot { border-top: 1px solid #e4e7ec; margin-top: 3px; padding-top: 3px; font-weight: 800; }
#dlyHb .svt-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 13px; cursor: pointer; }
/* R2 / FORMAT 99 : « / » et bulle COUPER ICI qui suivent le doigt */
#dlyCutTip .ct-sl { position: fixed; z-index: 10070; font-size: 20px; font-weight: 800; color: #b42318; pointer-events: none; }
#dlyCutTip .ct-b { position: fixed; z-index: 10070; width: 100px; text-align: center; background: #b42318; color: #fff; font-size: 10px; font-weight: 800; border-radius: 4px; padding: 3px; pointer-events: none; }
/* FORMAT 159 : fenêtre COMMANDES */

/* ===== v543 : décisions R17 à R29 (23/10/2026) ===== */
/* R21 / FORMAT 167 : CAPACITÉ — 0 = pénurie (noir épais), ILLIMITÉ (gris en pointillés, sous le zéro) */
.ghist-inf { position: absolute; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(90deg, #f2f4f7 0 6px, #fff 6px 12px); border-top: 1px solid #d0d5dd; }
.gplaf.gcap-zero { border-top: 4px solid #101828; }
.gplaf.gcap-zero .gplaf-v { color: #101828; }
.gplaf.gcap-inf { border-top: 2px dotted #98a2b3; }
.gplaf.gcap-inf .gplaf-v { color: #667085; }
.gcut { position: absolute; z-index: 6;  font-weight: 800; color: #b42318;   cursor: pointer; }
.gcut::after { content: ""; position: absolute; inset: -8px; }
/* R19 / FORMAT 165 : traits DÉBUT et FIN */
.grng { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid #12355b; z-index: 5; cursor: ew-resize; touch-action: none; }
.grng::before { content: ""; position: absolute;   left: -22px; width: 44px; }   /* v560 : zone de toucher élargie */
.grng > span {  top: 2px; left: -1px; transform: translateX(-50%); white-space: nowrap; font-size: 9px; font-weight: 800; color: #fff; background: #12355b; border-radius: 3px; padding: 4px 6px; pointer-events: auto; touch-action: none; }   /* v560 : l'étiquette se tire aussi */
.grng.grng-off { border-left-color: transparent; }
.grng.grng-off > span { opacity: .45; }
.grng[data-r="a"].grng-off > span { transform: none; }
.grng[data-r="b"].grng-off > span { transform: translateX(-100%); }
.grng[data-r="b"].grng-off::before { left: -42px; }   /* v559 : zone de toucher dans le Gantt (pas de défilement en plus) */
.grng-tot { position: absolute; top: 18px; transform: translateX(-50%); z-index: 5; font-size: 10px; font-weight: 800; color: #12355b; background: rgba(255,255,255,.9); padding: 0 4px; border-radius: 3px; pointer-events: none; white-space: nowrap; }
/* R20 / FORMAT 166 : lignes MIN et MAX */
.gval { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed #12355b; z-index: 5; cursor: ns-resize; touch-action: none; }
.gval::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 20px; }
.gval > span { position: sticky; left: 4px; display: inline-block; margin-top: -9px; font-size: 9px; font-weight: 800; color: #12355b; background: #fff; border: 1px solid #12355b; border-radius: 3px; padding: 0 3px; pointer-events: none; }
.gval.gval-off { border-top-color: transparent; }
.gval.gval-off > span { opacity: .45; }
@keyframes gvalBlink { 0%, 100% { opacity: 1; } 50% { opacity: .1; } }
.gval.gval-blink { animation: gvalBlink .35s ease 1; }
/* hors plage / hors filtre : gris */
.ghb.gh-off, .ghb.gh-off i { background: #e4e7ec !important; box-shadow: none !important; }
.ghb.ghb-hit { background: transparent !important; }
.ghist-svg { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }
/* R24 / FORMAT 168 : tâche freinée par une autre ressource */
.gb-lim { margin-left: 4px; color: #344054; font-weight: 800; cursor: pointer; pointer-events: auto; }
/* R28 / FORMAT 162 : zone active — liseré */
#blkMenu .blk-sub { font-size: 9px; font-weight: 800; color: #98a2b3; padding: 4px 12px 0; }
/* R29 / FORMAT 169 : vue PAR DÉBUT */
.dly-vno { margin-right: 3px; align-self: center; }
.dly-vsep { margin-right: 4px; color: #98a2b3; align-self: center; }
/* R17 / FORMAT 163 : fenêtre APPROVISIONNEMENT PRÉVISIONNEL */
.apr-t {  border-collapse: collapse; font-size: 11px; margin: 4px 0 8px; }
.apr-t th { text-align: left; padding-left: 4px; padding-right: 4px; }
.apr-t td { border-bottom: 1px solid #f2f4f7; padding-left: 4px; padding-right: 4px; }
.apr-t input { width: 90px; text-align: right; }
.apr-nj { width: 54px; margin-left: 6px; }

/* ===== v545 ===== */
/* remarque 3 : poignée verticale « ‖ » = la poignée « = » tournée d'un quart de tour (même taille, même dessin) */
.dlyg-hd i { display: inline-block; font-style: normal; transform: rotate(90deg); }
/* remarque 2 : histogramme gardé en bas de la zone visible, au-dessus des tâches qui défilent */
/* remarque 5 : échelle des valeurs à gauche de l'histogramme */
.ghist-ax { position: sticky; left: 0; top: 0; width: 0; height: 0; z-index: 5; pointer-events: none; float: left; }
.ghist-ax .gax-t { position: absolute; left: 0; transform: translateY(-50%); padding: 0 3px 0 2px; font-size: 8px; font-weight: 800; line-height: 10px; color: #667085; background: rgba(255,255,255,.85); border-right: 4px solid #98a2b3; white-space: nowrap; }
.ghist-ax .gax-0 { transform: translateY(-100%); }
/* remarque 5 : barre CAPACITÉ bien visible, avec sa poignée */
.gplaf { border-top-width: 3px; }
.gplaf-v {   font-size: 10px;    display: inline-flex; align-items: center; gap: 4px; }
.gplaf-v::before {   width: 16px; height: 16px; border-radius: 50%; background: #b42318; color: #fff; font-size: 11px; line-height: 16px; text-align: center; transform: rotate(0deg); }
.gplaf.gcap-zero .gplaf-v::before { background: #101828; }
.gplaf.gcap-inf .gplaf-v::before { background: #98a2b3; }
.gplaf.gcap-inf .gplaf-v { margin-top: -10px; }

/* ===== v546 (remarques 14 à 35) ===== */
/* R25 : poignée « = » tout en bas = histogramme entièrement caché */
.dlyg.dly-hnone #dlyGantt .ghist { display: none; }
/* R29 : ⚙ réglages de l'histogramme, en haut à droite de l'histogramme */
.dlyhh-cfg { pointer-events: auto; position: absolute;   width: 24px; height: 24px; border-radius: 7px; background: #fff; border: 1px solid #d0d5dd; color: #344054; font-size: 14px; line-height: 22px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.15); cursor: pointer; }
.dlyhh-cfg::after { content: ""; position: absolute; inset: -8px; }
/* R16 : étiquette d'un lot replié = couleur de sa barre */
#dlyGantt .gb-grp.gb-gfd { background: var(--c); color: #101828; border-radius: 6px;  }
/* R19 : « / » traversé par la barre ; trait vertical en pointillés entre deux morceaux */
.gcut { font-size: 20px; line-height: 20px; padding: 0 3px; text-align: center; }
.gcut-v { position: absolute; width: 0; border-left: 2px dashed #b42318; z-index: 4; pointer-events: none; }
/* R20 : valeur au-dessus de chaque morceau de la capacité */
.gseg-v { position: absolute; transform: translate(-50%, -100%); line-height: 13px; z-index: 5; font-size: 10px; font-weight: 800; color: #344054; background: rgba(255,255,255,.9); padding: 0 4px; border-radius: 3px; white-space: nowrap; pointer-events: none; }
/* R24 : légende à droite de l'échelle ; unité en tête de l'échelle */
.ghist-ax .gax-u { position: absolute; left: 0;  font-size: 8px; font-weight: 800; color: #475467; background: rgba(255,255,255,.9); padding: 0 3px; white-space: nowrap; }
.gplaf-v { left: 44px; }
/* R29 : barres côte à côte (CHARGES, PRODUITS, MARGE) */
.ghb.ghb-m { border-radius: 1px; }
/* R15 : bulle — une ligne par tâche, largeur de la plus longue */
#dlyHb { width: max-content; max-width: calc(100vw - 24px); overflow-x: auto; }
#dlyHb > div { white-space: nowrap; }
/* R17 : AFFICHAGE DU GANTT dans CALENDRIER DU BUDGET */
.bcal-sc { display: flex; align-items: center; gap: 6px; margin: 6px 0 8px; font-size: 11px; font-weight: 800; color: #475467; }
.bcal-sc > span { margin-right: auto; }
.bcal-sc button { border: 1px solid #d0d5dd; background: #fff; border-radius: 6px; padding: 4px 10px; font-weight: 800; font-size: 11px; color: #344054; }
.bcal-sc button.on { background: var(--svst, #b42318); border-color: var(--svst, #b42318); color: #fff; }
/* R27 : SUCCESSEURS (lecture seule) */
.dly-succ { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #475467; cursor: pointer; }
/* R33 : bouton ↻ AJUSTER À LA CAPACITÉ, seulement sur DÉTAIL DÉLAIS */
.blk-tools .blk-btn.blk-adj-btn { display: none; }
.blk-tools .blk-btn.blk-adj-btn.dly-on { display: inline-flex !important; align-items: center; justify-content: center; width: var(--svi-ib, 36px); height: var(--svi-ib, 36px); border-radius: 9px; background: #fff; color: #12355b; border: 1px solid #d6dbe3; margin-right: 6px; padding: 0; }
.blk-tools .blk-btn.blk-adj-btn.dly-on svg { width: var(--svi-ii, 18px); height: var(--svi-ii, 18px); }
.blk-tools .blk-btn.blk-adj-btn.dly-on.off { opacity: .4; }
/* RÉGLAGES DE L'HISTOGRAMME */
/* v565 (remarque 7) : RÉGLAGES DU GRAPHIQUE au format des autres fenêtres — libellé à gauche, interrupteur en deux parties à droite */
.hcf-card { max-width: 640px !important; width: min(640px, calc(100vw - 32px)) !important; }
.hcf-g { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px 14px; margin: 6px 0 10px; }
.hcf-k { font-size: 11px; font-weight: 800; color: #475467; }
.hcf-sw { display: inline-flex; justify-self: start; border: 1.5px solid var(--svst, #12355b); border-radius: 8px; overflow: hidden; }
.hcf-seg { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 30px; padding: 0 12px; white-space: nowrap; font-size: 11px; font-weight: 800; color: var(--svst, #12355b); background: #fff; cursor: pointer; user-select: none; -webkit-user-select: none; }
.hcf-seg + .hcf-seg { border-left: 1.5px solid var(--svst, #12355b); }
.hcf-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.hcf-seg.on { background: var(--svst, #12355b); color: #fff; }
.hcf-seg.off { color: #b4bcc8; cursor: default; }
.hcf-cbs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hcf-cbs label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: #344054; cursor: pointer; }
.hcf-cbs input { width: 16px !important; height: 16px !important; margin: 0; accent-color: var(--svst, #12355b); }
.hcf-pl { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: #344054; }
.hcf-pct { width: 56px !important; height: 28px; text-align: center; border: 1px solid #d0d5dd; border-radius: 6px; font-weight: 800; }
.hcf-note { font-size: 10px; font-weight: 700; color: #667085; margin: 0 0 10px; }
/* ===== v547 (R22) : tâche en morceaux ===== */
#dlyGantt .gpc { position: absolute; height: 0; border-top: 1px dashed var(--c, #667085); z-index: 1; pointer-events: none; }
#dlyGantt .gpc-n { font-size: 9px; font-weight: 800; color: #667085; background: #f2f4f7; border-radius: 8px; padding: 0 5px; }
.dlp-multi { display: inline-flex; align-items: center; gap: 4px; justify-content: center; width: 100%; cursor: pointer; text-decoration: underline dotted; }
.dlp-pcn { display: inline-block; min-width: 14px; height: 14px; line-height: 14px; border-radius: 7px; background: #e4e7ec; color: #344054; font-size: 9px; text-align: center; }
.pcs-tot td { font-weight: 800; border-top: 1px solid #e4e7ec; }
.pcs-x { border: 0; background: none; color: #b42318; font-size: 13px; cursor: pointer; }
.pcs-x:disabled { opacity: .3; }
.pcs-acts { display: flex; gap: 8px; margin: 4px 0 6px; }
/* v547 : unité sous l'étiquette MAX ; étiquettes de la CAPACITÉ toujours sur une ligne (R23) */
.gplaf-v, .gplaf-w { white-space: nowrap; }
.pcs-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px 28px; gap: 4px 6px; align-items: center; margin: 6px 0; font-size: 12px; }
.pcs-g > b { font-size: 10px; color: #667085; }
.pcs-g > i { font-style: normal; }
.pcs-g .pcs-tot { font-weight: 800; border-top: 1px solid #e4e7ec; padding-top: 3px; }
.pcs-g span { min-width: 0; overflow: hidden; }
.pcs-g input, .pcs-g .sv-date { width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
/* ===== v549 ===== */
/* étiquettes du haut du graphique séparées : DÉBUT (ligne 1), MAX (ligne 2), unité (ligne 3) ; ⚙ sous FIN */
.ghist-ax .gax-u { top: 34px; }
.ghist-leg { left: 60px; }
/* lot replié : étiquette à la hauteur de la barre */
#dlyGantt .gb-grp.gb-gfd { padding: 0 6px; display: inline-flex; align-items: center; box-sizing: border-box; }
.dlyhh-cfg { top: 9px; right: 58px; }
/* ===== v553 (partie 11, remarque 4) : ⚙ RÉGLAGES DU GRAPHIQUE en haut, à gauche de ↻ ===== */
.blk-tools .blk-btn.blk-cfg-btn { display: none; }
.blk-tools .blk-btn.blk-cfg-btn.dly-on { display: inline-flex !important; align-items: center; justify-content: center; width: var(--svi-ib, 36px); height: var(--svi-ib, 36px); border-radius: 9px; background: #fff; color: #12355b; border: 1px solid #d6dbe3; margin-right: 6px; padding: 0; font-size: 17px; line-height: 1; }
/* ===== v553 (partie 11, remarque 5) : case de date active (calendrier ouvert) sans contour rouge ===== */
input.sv-date:focus, input.dlp-in[data-f=deb]:focus, input.dlp-in[data-f=fin]:focus,
.dlyg-l td.ins-td input.dlp-in:is([data-f=deb], [data-f=fin]):focus { outline: none !important; box-shadow: none !important; }
td:has(> input.sv-date:focus, > input.dlp-in[data-f=deb]:focus, > input.dlp-in[data-f=fin]:focus),
td:has(input.dlp-in[data-f=deb]:focus, input.dlp-in[data-f=fin]:focus, input.sv-date:focus) { outline: none !important; box-shadow: none !important; }

/* v561 : PLANNING — le rouge est réservé aux tâches non liées ; titres (lots) à la couleur des titres, dates calculées sur fond gris */
.bdg-d-page .dlyg-l tr.dly-grp:not(.ins-hasck):not(.ro-on) td, .bdg-d-page .dlyg-l tr.dly-grp:not(.ins-hasck):not(.ro-on) td *:not(.lk-rd):not(.lk-rd *):not(.dly-grd *) { color: var(--ttl-c) !important; -webkit-text-fill-color: var(--ttl-c) !important; }
.bdg-d-page .dlyg-l tr.dly-grp:not(.ins-hasck):not(.ro-on) td.dly-calc { background: #dfe2e7 !important; }
.bdg-d-page .dlyg-l tr.dly-task.dly-lnk:not(.dly-pick) > td, .bdg-d-page .dlyg-l tr.dly-task.dly-lnk:not(.dly-pick) > td *:not(.lk-rd):not(.lk-rd *) { color: #1d4ed8 !important; -webkit-text-fill-color: #1d4ed8 !important; }

/* v564 (remarque 5) : plage DÉBUT – FIN — MARGE et QUALITÉ hors de la plage en gris pâle */
.bdg-d-page tr.mg-rgoff > td, .bdg-d-page tr.mg-rgoff > td * { color: #b4bcc8 !important; -webkit-text-fill-color: #b4bcc8 !important; }
.qq-scroll.qq-rgoff { opacity: .45; }
/* v564 (remarque 6) : appui long sur une courbe cumulée — repères en pointillés vers l'axe des montants et vers les dates */
.dlyx-v, .dlyx-h { position: fixed; z-index: 9000; pointer-events: none; }
.dlyx-v { width: 0; border-left: 1.5px dashed #12355b; }
.dlyx-h { height: 0; border-top: 1.5px dashed #12355b; }
.dlyx-pt { position: fixed; z-index: 9001; width: 9px; height: 9px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2px solid #12355b; pointer-events: none; }
.dlyx-l { position: fixed; z-index: 9001; pointer-events: none; white-space: nowrap; font-size: 10px; font-weight: 800; color: #fff; background: #12355b; border-radius: 3px; padding: 2px 5px; }
.apr-card .hcf-pl { flex-wrap: wrap; }
.apr-card .apr-dep { width: 150px; height: 28px; border: 1px solid #d0d5dd; border-radius: 6px; font-weight: 800; padding: 0 8px; }
.apr-card .apr-nj:disabled { opacity: .4; }

/* v567 (remarque 10) : RENDEMENT — valeurs maximales, raison si impossible, bulle avec CHARGES / PRODUITS / DÉLAIS */
.grd-mx { position: absolute; transform: translateX(-50%); z-index: 4; font-size: 9px; font-weight: 800; color: #fff; background: var(--c); border-radius: 3px; padding: 1px 4px; pointer-events: none; white-space: nowrap; }
.grd-why { font-size: 9px; font-weight: 800; color: #b42318; }
#dlyHb .hb-rd { color: #5b3fd6; }
#dlyHb .hb-gos { border-top: 1px solid #e4e7ec; margin-top: 4px; padding-top: 4px; display: grid; gap: 4px; }
#dlyHb .hb-go { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#dlyHb .hb-go > span { flex: 1 1 100%; font-size: 10px; font-weight: 800; }
#dlyHb .hb-gob { border: 1px solid #12355b; background: #fff; color: #12355b; border-radius: 5px; font-size: 9px; font-weight: 800; padding: 3px 7px; cursor: pointer; }
.hcf-cbs label.off { color: #b4bcc8; }

/* v568 (remarque 12) : RÈGLE horizontale (valeur seule) ; zone de l'axe des montants qui l'affiche / la cache */
.ghist-ax .gax-hit { position: absolute; left: 0; top: 0; width: 46px; pointer-events: auto; cursor: pointer; }
.ghist-ax .gax-hit.on { background: linear-gradient(90deg, rgba(18,53,91,.06), transparent); }
.gval.grule { border-top: 1.5px dashed #12355b; }
/* v568 (remarque 11) : bandeau TÂCHES SANS CHARGE au-dessus du DÉTAIL PRODUITS */
.dly-iso.prd-nc { background: #fefce8; border-color: #f2c94c; }
.grd-miss { font-size: 9px; font-weight: 800; color: #98a2b3; }

/* v570 (remarque longue 1) : fenêtre GÉNÉRER / COMPRESSER */
.gc-t td:last-child { width: 120px; }
.gc-cut { font-size: 9px; font-weight: 800; color: #98a2b3; }

/* v571 (remarque 15) : interrupteurs de même largeur, deux parties égales, alignés en colonne */
.hcf-card:not(.apr-card) .hcf-sw { width: 380px; }
.hcf-card:not(.apr-card) .hcf-sw .hcf-seg { flex: 1 1 0; min-width: 0; padding: 0 6px; }

/* v572 (remarque 17) : réglages des COMMANDES dans RÉGLAGES DU GRAPHIQUE */
.hcf-g [hidden] { display: none !important; }
.hcf-card:not(.apr-card) .hcf-sw.hcf-sw3 { width: 300px; }
.hcf-k2 { margin-left: 14px; }
.hcf-card .apr-dep { width: 140px; height: 28px; border: 1px solid #d0d5dd; border-radius: 6px; font-weight: 800; padding: 0 8px; }
.hcf-card .apr-nj:disabled { opacity: .4; }

/* v574 (partie 11, remarque 7) : en-tête du calendrier du Gantt fixe (copie hors de la zone qui défile) */
#bdgTabBody { position: relative; }
#bdgTabBody > .gh-fix { position: absolute; z-index: 7; overflow: hidden; pointer-events: none; background: #f6f7f9; }
#bdgTabBody > .gh-fix > .gh-fix-in { position: relative; height: 100%; will-change: transform; overflow: visible; flex: none; min-width: 0; }
#bdgTabBody > .gh-fix .gh { position: relative; transform: none; }
#dlyGantt > .gh.gh-under { opacity: 0; }

/* v575 (remarque 3) : Gantt estompé hors de la plage DÉBUT – FIN */
.g-rgsh { position: absolute; top: 0; z-index: 4; background: rgba(255,255,255,.6); pointer-events: none; }

/* v577 : graphique à l'échelle agrandie (rien ne déborde sur le Gantt) ; règle posée sur une valeur ronde */
.ghist.ghist-zoom { overflow: clip; }
.gval.grule.grule-snap { border-top-style: solid; }
.gval.grule.grule-snap > span { background: #12355b; color: #fff; }

/* v578 (partie 11, remarque 11) : fenêtre LIAISON — PRÉDÉCESSEUR / SUCCESSEUR sur deux lignes */
.lkw-ps { display: grid; gap: 4px; }
.lkw-ps b { color: #475467; }

/* v579 (partie 11, remarque 13) : tâche choisie au clavier (Tab, Entrée, flèches) */
.dlyg-l tr.dly-kb > td { box-shadow: inset 0 2px 0 #12355b, inset 0 -2px 0 #12355b; }
.dlyg-l tr.dly-kb > td:first-child { box-shadow: inset 3px 0 0 #12355b, inset 0 2px 0 #12355b, inset 0 -2px 0 #12355b; }
#dlyGantt .gb.gb-kb { outline: 2.5px solid #12355b; outline-offset: 2px; }

/* v580 (partie 11, remarques 8 et 12) : graphique, libellé et poignée « = » déplacés par la carte graphique (pas de saut) */
#dlyGantt .ghist, .dlyh-lab, .dlyg-hh { will-change: transform; backface-visibility: hidden; }
/* v581 (remarque 8) : fenêtre ⚠ — FILTRES ACTIFS, point bleu, ligne en erreur repérée */
#svConf .fz-ft { margin-top: 14px; }
#svConf .fz-blk { font-size: 11px; font-weight: 700; color: #2e90fa; margin: 8px 0 3px; letter-spacing: .03em; }
#svConf .fz-why.fz-flt { border-color: #b2ddff; background: #f5faff; }
.inst-todo { position: relative; }
.inst-todo.flt::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: #2e90fa; box-shadow: 0 0 0 2px #fff; }
tr.fz-flash > td { background: #fef0c7 !important; transition: background .3s; }
/* v583 : poignée « = » plus grande, plus lisible, zone de toucher élargie */
.dlyhh-pill {         box-sizing: border-box;   }
.dlyg-hh { z-index: 9; }
/* v583 : poignée verticale « ‖ » à la même taille que la poignée « = » */
.dlyg-hd {        box-sizing: border-box;   }
/* v584 : onglet GRAPHIQUE — seul le graphique, sur tout le bloc */
/* v586 : l'axe des valeurs passe au-dessus du trait DÉBUT (toucher l'axe = règle) ; l'étiquette DÉBUT, en haut, reste à tirer */
#dlyGantt .ghist-ax { z-index: 6; }
/* v587 : barres des CHARGES toujours en orange ; étiquettes DÉBUT / FIN sous l'en-tête quand on défile */
.ghb { background: #f79009; }
.grng > span { top: var(--rng-top, 2px); }
.grng-tot { top: calc(var(--rng-top, 2px) + 16px); }
/* v589 : commandes prévisionnelles — couleur de la charge commandée, barre fine hachurée */
.ghb.ghc.ghb-st { background: transparent; box-shadow: inset 0 0 0 1px rgba(16,24,40,.25); }
.ghb.ghc i { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.6) 0 2px, transparent 2px 5px); }
/* v590 : poignées « = » et « ‖ » revenues à leur taille d'avant (30), zone de toucher gardée large (≈ 62) */
.dlyhh-pill { width: 30px; height: 30px; margin-left: -15px; top: -8px; line-height: 30px; font-size: 13px; font-weight: 800; border: 0; background: #475467; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.dlyhh-pill::after { inset: -16px; }
.dlyg-hd { width: 30px; height: 30px; margin-left: -13.5px; line-height: 30px; font-size: 13px; font-weight: 800; border: 0; background: #475467; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.dlyg-hd::after { inset: -16px; }
/* v592 : dépassement de la CAPACITÉ — la barre reste à la couleur de la charge, la partie au-dessus de la ligne est hachurée */
.ghb.over, .ghb.over-inc { background: #f79009; }
.ghb.ghb-st.over, .ghb.ghb-st.over-inc { background: transparent; box-shadow: none; }
.ghb-ovr { position: absolute; pointer-events: none; z-index: 2; border-radius: 2px 2px 0 0; background: repeating-linear-gradient(45deg, #d92d20 0 3px, rgba(217,45,32,.25) 3px 6px); box-shadow: inset 0 0 0 1px #d92d20; }
.ghb-ovr.ghb-ovr-inc { background: repeating-linear-gradient(45deg, #7a5af8 0 3px, rgba(122,90,248,.25) 3px 6px); box-shadow: inset 0 0 0 1px #7a5af8; }
/* v594 (remarque longue 2) : planning stable — la zone des tâches défile seule ; graphique et poignée « = » dans un pied fixe en bas ;
   en-têtes du tableau et du calendrier fixes, sur une seule bande ; la page ne glisse plus */
#bdgTabBody > .dly-scroll, .dlyg-l, #dlyGantt, .dlyf-sc { overscroll-behavior: contain; }
#bdgTabBody > .dlyg-foot {  flex: none; background: #fff; border-top: 1px solid #e4e7ec; box-sizing: border-box; overflow: visible; z-index: 6; }
#bdgTabBody > .dlyg-foot.dlyf-empty { border-top: 0; }
#bdgTabBody > .dlyg-foot > .dlyf-sc { position: absolute; top: 0; bottom: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#bdgTabBody > .dlyg-foot > .dlyf-sc::-webkit-scrollbar { display: none; }
#bdgTabBody > .dlyg-foot > .dlyf-sc > .dlyf-in { position: relative; height: 100%; }
#bdgTabBody > .dlyg-foot .ghist { transform: none; border-top: 0; }
#bdgTabBody > .dlyg-foot > .dlyg-hh { position: absolute; z-index: 9; }
#bdgTabBody > .th-fix { position: absolute; z-index: 7; overflow: hidden; pointer-events: none; background: #f6f7f9; }
#bdgTabBody > .th-fix > table { table-layout: fixed; will-change: transform; margin: 0; }
#bdgTabBody > .th-fix thead { position: static; transform: none; }
.dlyg-l thead.th-under { opacity: 0; }
html.dly-lock, html.dly-lock body { overscroll-behavior: none; }
/* v597 : nom sur le Gantt — sélection puis saisie au contour de la barre */
#dlyGSelF { z-index: 10040; pointer-events: none; box-sizing: border-box; border: 1.5px solid #344054; }
input.dly-gin { box-sizing: border-box; border: 2px solid var(--inst, #b42318) !important; outline: none; padding: 0 8px; font-size: 11px; font-weight: 800; background: #fff; color: #101828; -webkit-user-select: text; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
/* v597 : pied du graphique posé sur le bas du Gantt seulement */
#bdgTabBody > .dlyg-foot { position: absolute; left: 0; width: 0; }
#bdgTabBody > .dlyg-foot > .dlyf-sc { left: 0; right: 0; width: auto; }
/* v598 : pied du graphique — jamais de sélection de texte ni de loupe de l'iPad ; un glissement vertical ne fait pas défiler la page */
#bdgTabBody > .dlyg-foot, #bdgTabBody > .dlyg-foot * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#bdgTabBody > .dlyg-foot > .dlyf-sc { touch-action: pan-x; overscroll-behavior: contain; }
#bdgTabBody > .th-fix, #bdgTabBody > .gh-fix { -webkit-user-select: none; user-select: none; }
/* v603 : traits DÉBUT / FIN pris seulement près de leur étiquette (en haut) ; l'axe des valeurs est laissé à la RÈGLE */
.grng::before { top: 0 !important; bottom: auto !important; height: 34px !important; }
.grng > span::after { content: ""; position: absolute; inset: -10px -8px; }
.grng > span { position: absolute; }
/* v604 (remarque longue 4) : barre RENDEMENT, bornes MIN / MAX, heures sup */
.grdb { position: absolute; height: 0; border-top: 3px solid var(--c, #7a5af8); cursor: ns-resize; touch-action: none; z-index: 4; }
.grdb::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 24px; }
.grdb-v { position: sticky; left: 44px; display: inline-flex; align-items: center; gap: 4px; margin-top: -21px; font-size: 10px; font-weight: 800; color: var(--c, #7a5af8); background: #fff; border: 1px solid currentColor; border-radius: 10px; padding: 1px 6px 1px 2px; white-space: nowrap; }
.grdb-v::before { content: "="; display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--c, #7a5af8); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.grdc { position: absolute; z-index: 5; width: 14px; height: 20px; font-size: 14px; font-weight: 900; color: var(--c, #7a5af8); text-align: center; cursor: pointer; }
.grdc::after { content: ""; position: absolute; inset: -12px; }
.grdm { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed #98a2b3; pointer-events: none; z-index: 3; }
.grdm > span { position: sticky; left: 44px; display: inline-block; margin-top: -13px; font-size: 8px; font-weight: 800; color: #667085; background: rgba(255,255,255,.85); padding: 0 3px; }
.ghb-hs { position: absolute; pointer-events: none; z-index: 2; background: repeating-linear-gradient(45deg, #7a5af8 0 3px, rgba(122,90,248,.25) 3px 6px); box-shadow: inset 0 0 0 1px #7a5af8; }
#dlyHb .hb-hs { color: #7a5af8; font-weight: 800; }
#dlyHb .hb-neg b { color: #d92d20; }

/* v608 (remarque 83) : coupe du RENDEMENT — trait vertical en pointillés à la couleur de la droite */
.grdj { position: absolute; width: 0; border-left: 2px dashed var(--c, #7a5af8); z-index: 3; pointer-events: none; }
/* v609 : trait fin du zéro du graphique */
.gzero { position: absolute; left: 0; height: 0; border-top: 1px solid #98a2b3; pointer-events: none; z-index: 1; }
/* v611 (point 4) : hors filtre, barres retirées (plus estompées) */
.ghist .gh-off { display: none; }
/* v612 (point 12) : traits DÉBUT / FIN sur le Gantt — trait fin, étiquette en haut, zone de toucher étroite sur toute la hauteur */
#dlyGantt .grng-g { top: 0; bottom: auto; z-index: 6; border-left: 2px dashed #12355b; }
#dlyGantt .grng-g::before { top: 0 !important; bottom: 0 !important; height: auto !important; left: -9px; width: 18px; }
#dlyGantt .grng-g > span { top: 2px; }
/* v613 (point 9) : tout replier / tout déplier — signe dans l'en-tête de la colonne de désignation */
.fold-all { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px;    border-radius: 5px; font-weight: 900; font-size: 13px; line-height: 1; cursor: pointer; vertical-align: middle; position: relative; }
.fold-all::after { content: ""; position: absolute; inset: -8px -6px; }
/* v614 (point 10) : numéro d'ordre du filtre d'un bloc (1 = coché en premier) */
.ck-ord { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; margin: 0 4px; padding: 0 3px; border-radius: 8px; background: #1570ef; color: #fff; font-style: normal; font-size: 10px; font-weight: 800; line-height: 1; vertical-align: middle; }
/* v619 (remarque 90) : fenêtre LIAISON EN COURS — ligne d'ajout, délais, bouton de liaison en bas */
#docPop .lki-add { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
#docPop .lki-add input { flex: 1 1 90px; min-width: 70px; height: 32px; border: 1px solid #d0d5dd; border-radius: 6px; padding: 0 8px; font-size: 13px; text-transform: uppercase; }
#docPop .lki-add .lki-d { flex: 3 1 220px; }
#docPop .lki-dly { display: grid; grid-template-columns: max-content 160px max-content 160px max-content auto; gap: 8px; align-items: center; margin-top: 6px; }
#docPop .lki-dly input { height: 32px; }
#docPop .lki-go .lk-go { margin: 0; }
/* v621 : CHARGES QUI FONT n % — lignes en fond jaune pâle ; case dans le menu de la colonne % */
#cfMenu .cf-par { display: flex; align-items: center; gap: 6px; padding: 6px 4px; font-size: 12px; font-weight: 800; }
#cfMenu .cf-par-in { width: 52px; height: 28px; text-align: center; border: 1px solid #d0d5dd; border-radius: 6px; font-weight: 800; }
/* v622 : liste CONDITION de l'application (menu de tri / filtre) */
#cfMenu .cf-opw { position: relative; }
#cfMenu .cf-opb { width: 100%; display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 10px; border: 1px solid #84adff; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 800; color: #172033; }
#cfMenu .cf-opl { margin-top: 4px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; overflow: hidden; }
#cfMenu .cf-opi { display: flex; align-items: center; width: 100%; min-height: 32px; padding: 0 10px; border: 0; border-bottom: 1px solid #f2f4f7; background: #fff; font-size: 12px; font-weight: 700; color: #172033; text-align: left; }
#cfMenu .cf-opi b { display: inline-block; width: 18px; color: #b42318; }
#cfMenu .cf-opi.on { background: #eff4ff; }
/* v627 : AUJOURD'HUI et BUTOIR aussi sur le graphique */
.ghist .gv { pointer-events: none; }
/* v628 : barre choisie (appui long, HISTOGRAMME) ; barre aplatie à zéro (tâche en cours sans charge) */
.dlyg-foot .ghb.ghb-sel { outline: 2px solid #12355b; outline-offset: 1px; z-index: 3; }
.dlyg-foot .ghb.ghb-z { height: 3px !important; border-radius: 1px; }
/* v631 : pas de sélection de texte (bulle Copier de l'iPad) dans le planning et le graphique */
.dlyg, .dlyg *, .dlyg-foot, .dlyg-foot * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.dlyg input, .dlyg textarea { -webkit-user-select: text; user-select: text; }
/* v638 : case de date choisie (DÉBUT / FIN) — un seul cadre, celui de la case */
td.svi-tdf > :is(input.dlp-in, input.sv-date) { box-shadow: none !important; }

/* v649 : boutons des fenêtres sur une ligne chacun ; trop nombreux = ligne suivante (jamais de texte qui déborde) */
#svConf .svc-f, #dlyAddW .svc-f { flex-wrap: wrap; }
#svConf .svc-b, #dlyAddW .svc-b { white-space: nowrap; }
/* v651 (FORMAT 245) : total de la capacité coupée, centré sous la poignée « = » */
.dlyhh-tot { position: absolute; left: 50%; top: 27px; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: #344054; background: rgba(255,255,255,.9); padding: 0 5px; border-radius: 3px; white-space: nowrap; pointer-events: none; line-height: 14px; }
.dlyhh-tot[hidden] { display: none; }
/* v656 : en-tête des listes (LOT, ACTIVITÉ PRIMAIRE / SECONDAIRE…) toujours sur une ligne : l'intitulé se raccourcit (…),
   pastilles, compteur et COCHÉES (n) restent entiers */
.ins-hcol .bdg-h-head { flex-wrap: nowrap; white-space: nowrap; }
.ins-hcol .bdg-h-head .cf-wrap { display: flex; align-items: center; min-width: 0; flex-wrap: nowrap; }
.ins-hcol .bdg-h-head .cf-lab { display: flex; align-items: center;  flex: 0 1 auto; white-space: nowrap; overflow: visible; min-width: 0; max-width: none; }
.ins-hcol .bdg-h-head .cf-lab > .cf-tt { min-width: 14px; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-hcol .bdg-h-head .cf-lab > :not(.cf-tt) { flex: none; }
.ins-hcol .bdg-h-head .only-c, .ins-hcol .bdg-h-head .cf-btn { flex: none; white-space: nowrap; }
/* v657 (FORMAT 248) : CAPACITÉ = simple texte, 2 px au-dessus du trait, au début du morceau (plus d'étiquette arrondie ni de pastille « = ») ;
   le trait reste attrapable sur toute sa longueur */
.gplaf-v { margin-top: 0 !important; border: 0 !important; border-radius: 0 !important; padding: 0 2px !important; background: transparent !important; line-height: 12px; transform: translateY(calc(-100% - 5px)); }
.gplaf-v::before { content: none !important; display: none !important; }
.gplaf.gcap-zero .gplaf-v { transform: translateY(calc(-100% - 6px)); }
/* v658 (FORMAT 249) : en-têtes des listes resserrés (plus de place pour l'intitulé) */
.ins-hcol .bdg-h-head .cf-wrap { gap: 2px; }
.ins-hcol .bdg-h-head .cf-lab { gap: 3px; }
.ins-hcol .bdg-h-head .cf-lab > .ck-ord, .ins-hcol .bdg-h-head .cf-lab > .svi-cnt { margin-left: 0; }
.ins-hcol .bdg-h-head .only-c { margin-left: 2px !important; padding: 0 5px !important; }
.ins-hcol .bdg-h-head .cf-wrap > .cf-btn { margin-right: 2px !important; }
.ins-hcol .bdg-h-head .cf-lab > .ck-ord { margin-right: 0 !important; }
.ins-hcol .bdg-h-head .cf-lab > .svi-cnt { padding: 0 4px; }
/* v659 (FORMAT 251) : Gantt et graphique affichés ensemble = étiquettes DÉBUT / FIN seulement sur le graphique
   (le Gantt garde ses traits en tirets) ; graphique caché = étiquettes sur le Gantt */
.dlyg:not(.dly-hnone) #dlyGantt .grng-g > span { display: none; }

/* v663 (axe 2) : fenêtre PRIX DE VENTE PAR LA MARGE */
#svConf .pv-card { width: min(640px, 100%); max-height: calc(100vh - 32px); }
#svConf .pv-sub { font-size: 11px; font-weight: 700; color: #6b7280; }
#svConf .pv-scroll { overflow: auto; max-height: calc(100vh - 220px); padding-right: 2px; }
#svConf .pv-scroll .fz-blk { margin: 10px 0 6px; }
#svConf .pv-r { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid #f0f2f6; font-size: 12px; font-weight: 700; color: #172033; }
#svConf .pv-r span { flex: 1; min-width: 0; }
#svConf .pv-r i { font-style: normal; color: #6b7280; width: 14px; }
#svConf .pv-in { width: 84px; height: 32px; border: 1px solid #d6dbe3; border-radius: 8px; padding: 0 8px; text-align: right; font: inherit; font-size: 13px; font-weight: 800; color: #172033; }
#svConf .pv-in::placeholder { color: #9aa3b2; font-style: italic; font-weight: 600; }
#svConf .pv-tot { margin-top: 6px; font-size: 12px; font-weight: 700; color: #172033; }
#svConf .pv-t { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
#svConf .pv-t th.number, #svConf .pv-t td.number { width: 104px; }
#svConf .pv-t td:first-child { overflow-wrap: anywhere; }
#svConf .pv-t th { text-align: left; padding-left: 6px; padding-right: 6px; }
#svConf .pv-t td { padding-left: 6px; padding-right: 6px; border-bottom: 1px solid #f0f2f6; }
#svConf .pv-t .number { text-align: right; white-space: nowrap; }
#svConf .pv-t tr.pv-ch td:last-child { color: #1d4ed8; }
#svConf .pv-n { margin-top: 6px; font-size: 12px; font-weight: 800; }
#svConf .pv-warn { margin-bottom: 6px; font-size: 11px; font-weight: 800; color: #b45309; }

/* v663 (axe 12) : INF — CLIENT PUBLIC / PRIVÉ, SUR CONSULTATION ; fenêtre NUMÉRO D'APPEL D'OFFRES MANQUANT */
.inf-grid .inf-ao { display: flex; justify-content: flex-start; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-weight: 700; font-size: 13px; }
.inf-grid .inf-ao label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
#svConf .ao-nw { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #475467; cursor: pointer; }

/* v664 (axe 9) : titres des activités (primaires et secondaires) */
.ins-hcol .ins-li.act-grp { background: var(--ttl-bg) !important; display: flex; align-items: center; gap: 6px; }
.ins-hcol .ins-li.act-grp .act-gname, .ins-hcol .ins-li.act-grp .act-gtx { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--ttl-c); -webkit-text-fill-color: var(--ttl-c); padding: 0 2px; height: 19px; }
.ins-hcol .ins-li.act-in > .ins-in, .ins-hcol .ins-li.act-in > span:not(.ins-rdc):not(.act-u):not(.ins-delc) { margin-left: 16px; }

/* v664 (axe 13) : COÛT D'UNE JOURNÉE — liste des charges */
#svConf .pv-r .mo-cb { width: 18px; height: 18px; flex: none; }
#svConf .pv-r .mo-p { min-width: 90px; text-align: right; font-weight: 800; }
#svConf .pv-r small { color: #6b7280; font-weight: 700; }

/* v665 (axe 5) : COMPARATIF DES PRIX */
#svConf .cmp-card { display: flex; flex-direction: column; }
#svConf .cmp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
#svConf .cmp-leg { font-size: 11px; font-weight: 700; color: #475467; }
#svConf .cmp-leg i { font-style: normal; margin-left: 8px; }
#svConf .cmp-scroll { flex: 1; min-height: 160px; overflow: auto; border: 1px solid #e5e9f0; border-radius: 8px; }
#svConf .cmp-t { border-collapse: collapse; font-size: 12px; white-space: nowrap; min-width: 100%; }
#svConf .cmp-t th { position: sticky; top: 0; padding-left: 6px; padding-right: 6px; border: 1px solid #e5e9f0; z-index: 1; }
#svConf .cmp-t thead tr:nth-child(2) th { top: 30px; }
#svConf .cmp-t td { padding-left: 6px; padding-right: 6px; border: 1px solid #f0f2f6; }
#svConf .cmp-t td:nth-child(2) { white-space: normal; min-width: 220px; }
#svConf .cmp-t .r { text-align: right; } #svConf .cmp-t .c { text-align: center; }
#svConf .cmp-t .cmp-me { background: #f8fafc; }
#svConf .cmp-ok { color: #15803d !important; } #svConf .cmp-ko { color: #b91c1c !important; }
#svConf .cmp-in { width: 96px; height: 28px; border: 1px solid #d6dbe3; border-radius: 6px; text-align: right; font: inherit; font-weight: 800; padding: 0 6px; }
#svConf .cmp-nm { width: 170px; height: 26px; border: 1px solid #d6dbe3; border-radius: 6px; font: inherit; font-weight: 800; font-size: 11px; padding: 0 6px; text-transform: uppercase; }
#svConf .cmp-del { border: 0; background: transparent; color: #b91c1c; font-weight: 800; cursor: pointer; margin-left: 4px; }
#svConf .cmp-tot td { background: #eef2f7; font-weight: 800; }
#svConf .cmp-res { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12px; font-weight: 700; }
#svConf .cmp-res label { display: inline-flex; align-items: center; gap: 5px; }
#svConf .cmp-rate { font-size: 12px; font-weight: 700; color: #172033; }

/* v666 (axe 8) : quasi-critiques en orange ; bandeau CHEMIN CRITIQUE ; PARAMÉTRAGE DU PLANNING */
.gb.qcrit { background: linear-gradient(90deg, #f59e0b 0, var(--c) 10%, var(--c) 90%, #f59e0b 100%); }
.dly-table tr.dly-qcrit .dly-calc { color: #b45309 !important; font-weight: 800; }
.dly-table tr.dly-crit .dly-calc { color: #b91c1c; font-weight: 800; }
#svConf .pp-bt { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
#svConf .pp-bt label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
#svConf .pp-bt small { color: #6b7280; font-weight: 700; }

/* v667 (axe 8) : verrous DÉBUT / FIN ; options MS PROJECT */
.dly-table td.dly-lkd { position: relative; box-shadow: inset 3px 0 0 #1e3a8a; }
.dly-table td.dly-lkd::after { content: "🔒"; position: absolute; top: 1px; right: 2px; font-size: 9px; line-height: 1; pointer-events: none; }
.dly-table td.dly-lkx { box-shadow: inset 3px 0 0 #b91c1c; background: #fef2f2 !important; }
#svConf .lk8-r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 0; border-bottom: 1px solid #f0f2f6; font-size: 12px; font-weight: 700; }
#svConf .lk8-n { flex: 1 1 200px; display: flex; flex-direction: column; } #svConf .lk8-n small { color: #6b7280; }
#svConf .lk8-r label { display: inline-flex; align-items: center; gap: 6px; }
#svConf .lk8-d { width: 140px; text-align: left; }
#docPop .msp-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 700; }
#docPop .msp-opts label { display: inline-flex; align-items: center; gap: 8px; }

/* v668 (axe 7) : TABLEAU DE BORD DES RATIOS ; vue multi-projets ; signatures */
#svConf .rat-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12px; font-weight: 700; }
#svConf .rat-top label { display: inline-flex; align-items: center; gap: 6px; }
#svConf .rat-lots { max-height: 30vh; overflow: auto; border: 1px solid #e5e9f0; border-radius: 8px; padding: 4px 10px; }
#svConf .rat-chip { background: #eef2f7; border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 800; }
#svConf .rat-chip i { font-style: normal; color: #6b7280; } #svConf .rat-chip b { color: #b91c1c; margin-left: 4px; cursor: pointer; }
#svConf .rat-add { height: 26px; border: 1px solid #d6dbe3; border-radius: 6px; font: inherit; font-size: 11px; font-weight: 700; max-width: 220px; }
#svConf .rat-over b { color: #b91c1c; } #svConf .rat-err b { color: #b45309; }
#svConf .rat-g { overflow: auto; border: 1px solid #e5e9f0; border-radius: 8px; }
#svConf .rat-svg { width: 100%; height: 100%; font-size: 11px; font-weight: 700; fill: #344054; }
#svConf .rat-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; font-weight: 800; }
#svConf .rat-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
#svConf .sg-r { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; border-bottom: 1px solid #f0f2f6; font-size: 12px; font-weight: 700; }
#svConf .sg-r label { display: inline-flex; align-items: center; gap: 8px; }
#svConf .sg-qui { width: 100%; text-align: left; }

/* v669 (axe 3) : CONTRAT (CPS) */
#svConf .ctr-t td { vertical-align: top; white-space: normal; }
#svConf .ctr-t tr.ctr-tt td { background: var(--ttl-bg, #e4e9f1); color: var(--ttl-c, #1e3a8a); }
#svConf .ctr-in { height: 28px; border: 1px solid #d6dbe3; border-radius: 6px; font: inherit; font-size: 11px; font-weight: 700; padding: 0 6px; width: 100%; min-width: 80px; box-sizing: border-box; }
#svConf .ctr-no { width: 64px; min-width: 0; text-align: center; } #svConf .ctr-v { width: 90px; text-align: right; }
#svConf .ctr-tx { min-width: 260px; max-width: 520px; font-size: 11px; color: #475467; cursor: pointer; white-space: pre-line !important; }
#svConf .ctr-ta { height: 160px; padding: 6px; white-space: pre-wrap; }
#svConf .ctr-det { height: 28px; padding: 0 8px; }
#svConf .ctr-paste { width: 100%; height: 50vh; font-size: 12px; }
#svConf .ctp-r { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px solid #f0f2f6; }
#svConf .ctp-r .pv-in { width: auto; min-width: 70px; text-align: left; }
#svConf .ctp-r .pv-in[data-f="lab"] { flex: 1 1 160px; }

/* v670 (axes 1 et 4) : VERSIONS ET SCÉNARIOS */
#svConf .ver-t th small { font-weight: 700; color: #6b7280; }
#svConf .ver-t .ver-act { background: #eff6ff; }
#svConf .ver-t th.ver-arch { color: #9aa3b2; }
#svConf .ver-acts { white-space: nowrap; }
#svConf .ver-acts .svc-b { height: 30px; padding: 0 10px; font-size: 11px; margin: 2px; }

/* v671 (axe 6) : PLANS ET MÉTRÉ */
#svConf .pl-card { gap: 6px; }
#svConf .pl-bar { gap: 6px 8px; }
#svConf .pl-bar .svc-b { height: 32px; padding: 0 12px; font-size: 11px; }
#svConf .pl-bar .svc-b.on { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }
#svConf .pl-name { font-size: 11px; font-weight: 800; color: #475467; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#svConf .pl-opl { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
#svConf .pl-main { flex: 1; min-height: 0; display: flex; gap: 8px; }
#svConf .pl-scroll { flex: 1; overflow: auto; border: 1px solid #e5e9f0; border-radius: 8px; background: #f8fafc; -webkit-overflow-scrolling: touch; }
#svConf .pl-stage { position: relative; }
#svConf .pl-stage canvas, #svConf .pl-layer, #svConf .pl-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#svConf .pl-ov { opacity: .5; mix-blend-mode: multiply; }
#svConf .pl-ax { stroke: #b42318; stroke-dasharray: 10 6; stroke-width: 2; }
#svConf .pl-axt { fill: #b42318; font-weight: 800; }
#svConf .pl-svg polyline, #svConf .pl-svg polygon { fill: none; }
#svConf .pl-svg polygon { fill-opacity: .18; }
#svConf .pl-m0 { stroke: #2e90fa; fill: #2e90fa; } #svConf .pl-m1 { stroke: #12b76a; fill: #12b76a; } #svConf .pl-m2 { stroke: #f79009; fill: #f79009; }
#svConf .pl-m3 { stroke: #7a5af8; fill: #7a5af8; } #svConf .pl-m4 { stroke: #ee46bc; fill: #ee46bc; } #svConf .pl-m5 { stroke: #06aed4; fill: #06aed4; }
#svConf .pl-svg polyline.pl-m0, #svConf .pl-svg polyline.pl-m1, #svConf .pl-svg polyline.pl-m2, #svConf .pl-svg polyline.pl-m3, #svConf .pl-svg polyline.pl-m4, #svConf .pl-svg polyline.pl-m5 { fill: none; }
#svConf .pl-cur { stroke: #b42318; fill: none; stroke-dasharray: 6 4; } #svConf .pl-curp { fill: #b42318; }
#svConf .pl-side { width: 300px; overflow: auto; }
@media (max-width: 760px) { #svConf .pl-main { flex-direction: column; } #svConf .pl-side { width: auto; max-height: 30vh; } }
#svConf .pl-mr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 6px 0; border-bottom: 1px solid #f0f2f6; font-size: 11px; }
#svConf .pl-mr .pv-in { width: auto; max-width: 150px; height: 28px; font-size: 11px; text-align: left; }
#svConf .pl-mr .svc-b { height: 28px; padding: 0 8px; font-size: 11px; }
#svConf .pl-mr i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
#svConf .pl-sw0 { background: #2e90fa; } #svConf .pl-sw1 { background: #12b76a; } #svConf .pl-sw2 { background: #f79009; } #svConf .pl-sw3 { background: #7a5af8; } #svConf .pl-sw4 { background: #ee46bc; } #svConf .pl-sw5 { background: #06aed4; }
#svConf .pl-axl { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
#svConf .pl-pick { position: absolute; inset: 0; background: rgba(15,23,42,.35); display: flex; align-items: center; justify-content: center; z-index: 5; border-radius: 12px; }
#svConf .pl-pk { background: #fff; border-radius: 12px; padding: 16px; width: min(480px, 92%); max-height: 80%; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
#svConf .pl-ask { width: 100%; text-align: left; }

/* v672 (bloc 2) : repère BASE V3 (sous le bandeau VERSION TEST) */
#sviSync { position: fixed; left: 50%; top: 28px; transform: translateX(-50%); z-index: 20000; border: 0; border-radius: 10px; padding: 3px 10px; font: 800 10px Arial, sans-serif; letter-spacing: .4px; cursor: pointer; }
#sviSync.sync-ok { background: #dcfce7; color: #166534; }
#sviSync.sync-wait, #sviSync.sync-busy { background: #fef3c7; color: #92400e; }
#sviSync.sync-off { background: #fee2e2; color: #991b1b; }

/* v676 : VERROU PAR ZONE — zone où un autre utilisateur travaille : grisée, lecture seule */
[data-hz~="client"] .blk-client .bdg-d-scroll,
[data-hz~="lot"] .ins-hcol[data-ik="lot"],
[data-hz~="prim"] .ins-hcol[data-ik="prim"],
[data-hz~="sec"] .ins-hcol[data-ik="sec"],
[data-hz~="tab"] #bdgTabBody { opacity: .55; filter: grayscale(.5); cursor: not-allowed; }

/* v679 : LISTE DES INDICATEURS — tableau, fenêtre de calcul (formule), ligne « + » */
.ind-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ind-bar .pv-sub { flex: 1; margin: 0; }
.ind-scroll { overflow: auto; }
.ind-table { table-layout: fixed; }
.ind-table td { white-space: normal; word-break: break-word; }
.ind-table tr.ind-row { cursor: pointer; }
.ind-table tr.ind-plus td { text-align: left; padding: 8px; }
.indf-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 46px; padding: 8px; border: 1px solid #d6dbe3; border-radius: 10px; background: #fff; }
.indf-tk { padding: 5px 9px; border-radius: 7px; font-size: 12px; font-weight: 800; cursor: pointer; border: 1px solid transparent; }
.indf-e { background: #eef4ff; color: #1d4ed8; }
.indf-n { background: #f2f4f7; color: #344054; }
.indf-o { background: #fff7ed; color: #9a3412; min-width: 22px; text-align: center; }
.indf-tk.on { border-color: #172033; }
.indf-cur { font-size: 11px; color: #98a2b3; font-weight: 700; padding: 4px; min-width: 6px; border-left: 2px solid transparent; }
.indf-cur.on { border-left-color: #172033; }
.indf-keys { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.indf-keys .indf-k { min-width: 44px; font-size: 16px; }
.indf-st { font-size: 12px; font-weight: 800; padding: 6px 0; }
.indf-ok { color: #067647; }
.indf-opts { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ver-plus td { text-align: left !important; }
.ver-ip { min-width: 44px; font-size: 18px; }
.ind-card { width: min(760px, 96vw); }
.ind-card .ind-lab { display: block; font-size: 11px; font-weight: 800; color: #475467; margin: 0 0 4px; }
.ind-card .ind-nom { width: 100% !important; max-width: none !important; text-align: left !important; box-sizing: border-box; }
.ind-card .indf-opts .pv-r { display: flex; align-items: center; gap: 8px; }
.ind-card .indf-opts select.pv-in { width: auto; min-width: 140px; }
.ind-card .indf-opts .ind-dec { min-width: 70px; }
.ind-card .indf-opts .ind-u { width: 130px !important; text-align: left !important; }
.ind-card .indf-el { min-width: 240px; }

/* v680 : TABLEAU DE BORD — tableau des indicateurs, graphiques paramétrables */
.rat-card .cmp-scroll.rat-iscroll { max-height: none !important; height: auto !important; flex: none !important; overflow-x: auto; overflow-y: visible; }
.rat-graphs { display: flex; flex-direction: column; gap: 14px; }
.rat-card .rat-ch { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rat-card .rat-ch b { font-size: 13px; }
.rat-card .rat-ch small { flex: 1; font-size: 11px; font-weight: 700; color: #667085; }
.rat-gx { overflow-x: auto; }
.rat-svg text.rat-ax, .rat-ax { font-size: 10px; fill: #667085; font-weight: 700; }
.rat-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.rat-leg span { display: inline-flex; align-items: center; gap: 5px; }
.rat-leg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.rg-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 6px; }
.rg-row select.pv-in { width: auto !important; min-width: 170px; text-align: left !important; text-align-last: left; }
.rg-y { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.rg-prev { margin-top: 8px; border-top: 1px solid #eaecf0; padding-top: 8px; }
.ind-table .rat-over { color: #b42318; font-weight: 800; }
.ind-table .ind-sv { width: 90px !important; text-align: right; }

/* v681 : avenants — liste intermédiaire, prix moyen pondéré dans GLOBAL */
td.ins-pmp input { font-style: italic; text-decoration: underline dotted; }
td.ins-pmp::after { content: "PMP"; position: absolute; right: 2px; top: 1px; font-size: 8px; font-weight: 800; color: #7a5af8; }
td.ins-pmp { position: relative; }

/* v684 : libellés « BUDGETS : » / « AVENANTS : », barre du consolidé, liste des étapes */
.novapp-list-actions { align-items: center; }
.novapp-list-actions .list-lab { font-size: 13px; font-weight: 700; color: #3f4856; letter-spacing: .02em; white-space: nowrap; }
.novapp-list-actions button:disabled { opacity: .35; cursor: not-allowed; }
.av-list-ov { position: fixed; inset: 0; z-index: 10000; background: #fff; overflow: auto; }
.av-list-ov .novapp-list-shell { min-height: 100%; }
.av-stg-t tbody tr[data-r] { cursor: pointer; }
.av-stg-t tr.inst-instance td { color: #b91c1c; }
.av-stg-t tr.inst-fige td { color: #15803d; }

/* v685 : bouton SCN et bloc SCÉNARIOS (FORMAT des autres blocs) */
.bdg-d-pill.pill-off { opacity: .45; }
.bdg-d-block[hidden] { display: none !important; }
.blk-scn .rec-scroll { height: auto; max-height: var(--h-scn, 214px); }
.scn-table th small.scn-st { display: block; font-size: 9px; font-weight: 700; color: #6b7480; }
.scn-table .ver-act { background: #eff6ff; }
.scn-table th.ver-arch, .scn-table th.ver-arch small { color: #9aa3b2; }
.scn-table .cmp-del { border: 0; background: transparent; color: #b91c1c; font-weight: 800; cursor: pointer; margin-left: 4px; }
.scn-table .rat-err { color: #b45309; }
.scn-table .ver-acts { white-space: nowrap; }
.scn-table .ver-acts .svc-b, .scn-table .ver-ip { height: 19px; min-width: 0; padding: 0 8px; font-size: 10px; line-height: 17px; margin: 0 2px; border-radius: 5px; }
.scn-table .cmp-nm { width: 100%; height: 19px; box-sizing: border-box; font: inherit; font-weight: 700; border: 1px solid #d6dbe3; border-radius: 4px; padding: 0 4px; }
.scn-table input[type=checkbox] { margin: 0; }
.bdg-d-page.max-rec .blk-rec-on.blk-scn .rec-scroll { height: calc(var(--avail) - 50px); max-height: none; }
.scn-table .svc-b { border: 1px solid #cbd2db; background: #fff; color: #172033; font-weight: 800; cursor: pointer; font-family: inherit; }
.scn-table .svc-b.svc-ok { background: #172033; border-color: #172033; color: #fff !important; }
.scn-table td.ver-acts { overflow: visible; text-overflow: clip; }
/* v686 : bloc SCÉNARIOS en deux vues */
.scn-table tr.scn-row { cursor: pointer; }
.scn-table tr.scn-arch td { color: #9aa3b2; }
.scn-table .scn-nm { font-weight: 800; }
.scn-table .scn-nm.scn-go { text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.scn-table .scn-nm-in { height: 19px; }
.scn-table .scn-del { border: 0; background: transparent; cursor: pointer; font-size: 13px; line-height: 17px; padding: 0 4px; }
.scn-table tr.scn-new td { background: var(--inst-bg, #fef2f2); color: var(--inst, #b91c1c); opacity: .85; cursor: pointer; }
.scn-table tr.scn-new.off td { color: #9aa3b2; cursor: not-allowed; }
.scn-table .scn-hide { cursor: pointer; color: #9aa3b2; font-weight: 900; padding: 0 3px; font-size: 11px; }
.scn-table .scn-hide:hover { color: #b91c1c; }
.scn-table .scn-plus { width: 26px; height: 19px; border: 1px solid #cbd2db; border-radius: 5px; background: #fff; font-weight: 900; cursor: pointer; padding: 0; line-height: 17px; }
.scn-table th.scn-plus-th { text-align: center; }
/* v687 : liste des étapes (bouton CONSOLIDÉ), composition du consolidé */
.av-comp-card { width: min(620px, 96vw); }
.av-tree { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; max-height: 60vh; overflow-y: auto; }
.av-tree .av-tn { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: 13px; cursor: pointer; }
.av-tree .av-tn small { color: #6b7480; font-weight: 600; }
.av-tree .av-sub { padding-left: 30px; font-weight: 600; }
.av-tree .av-st-instance b { color: #b91c1c; } .av-tree .av-st-fige b { color: #15803d; }
.av-tree input { width: 18px; height: 18px; margin: 0; }
/* v688 : référence dans la barre du haut, puis i (INF) et H (historique) ; plus de rangée DOC / TAF / OBS / INF */
.novapp-list-titlebar .bdg-d-h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.novapp-list-titlebar .bdg-d-badge { flex: none; cursor: pointer; margin-left: 2px; }
.novapp-list-titlebar .bdg-d-inf { font-style: italic; font-family: Georgia, serif; font-size: 14px; }
.bdg-d-head.bdg-d-head-min { padding: 0 28px; }
.bdg-d-head-min .lk-chain-top:not([hidden]) { margin: 8px 0; }
/* lignes SAISIR ICI des DOCUMENTS / TAF / OBSERVATIONS */
.rec-table tr.rec-new td { background: var(--inst-bg, #f8fafc); color: var(--inst, #6b7480); opacity: .85; cursor: pointer; }
.novapp-list-titlebar #insChain.lk-chain-top { margin: 0 6px 0 auto; flex: 0 1 auto; min-width: 0; max-width: 46%; }
.bdg-d-head.bdg-d-head-min:not(:has(.av-top)) { display: none; }

/* v689 : nuance budget / avenant — même couleur d'état, le budget (marché initial) un peu plus foncé, l'avenant un peu plus clair */
.bdg-inst-instance { --inst: #991b1b; --inst-bg: #fdf0f0; }
.bdg-inst-fige { --inst: #166534; --inst-bg: #eefbf2; }
.bdg-inst-instance.bdg-av { --inst: #dc2626; --inst-bg: #fff6f6; }
.bdg-inst-fige.bdg-av { --inst: #22a052; --inst-bg: #f4fdf7; }
.bdg-av:not(.bdg-inst-instance):not(.bdg-inst-fige) .novapp-list-titlebar .bdg-d-h1 { color: #3b6ea5; }
.bdg-av:not(.bdg-inst-instance):not(.bdg-inst-fige) .bdg-d-block-title .ttl { color: #3b6ea5; }
#budgetListTable tr.inst-instance td, #budgetListTable tr.inst-instance .budget-link, table.svi-bdgl tr.inst-instance td, table.svi-bdgl tr.inst-instance .budget-link { color: #991b1b; }
#budgetListTable tr.inst-fige td, #budgetListTable tr.inst-fige .budget-link, table.svi-bdgl tr.inst-fige td, table.svi-bdgl tr.inst-fige .budget-link { color: #166534; }
.av-stg-t tr.inst-instance.row-bdg td { color: #991b1b; } .av-stg-t tr.inst-instance.row-av td { color: #dc2626; }
.av-stg-t tr.inst-fige.row-bdg td { color: #166534; } .av-stg-t tr.inst-fige.row-av td { color: #22a052; }
.av-stg-t tr.inst-valide.row-bdg td, .av-stg-t tr:not([class*="inst-"]).row-bdg td { color: #12355b; }
.av-stg-t tr.inst-valide.row-av td { color: #3b6ea5; }
.av-tree .av-st-instance.row-bdg b { color: #991b1b; } .av-tree .av-st-instance.row-av b { color: #dc2626; }
.av-tree .av-st-fige.row-bdg b { color: #166534; } .av-tree .av-st-fige.row-av b { color: #22a052; }
.av-tree .av-st-valide.row-av b { color: #3b6ea5; }

/* v690 : H dans un carré, i dans un cercle non rempli ; unité en couleur de la ligne ; TÂCHES à 21 px ; icône de composition */
.novapp-list-titlebar #histBtn { border-radius: 4px; background: transparent; border: 1.6px solid currentColor; color: #3f4856; width: 24px; height: 24px; }
.novapp-list-titlebar .bdg-d-inf { border-radius: 50%; background: transparent; border: 1.6px solid currentColor; color: #3f4856; width: 24px; height: 24px; }
.bdg-inst-instance .novapp-list-titlebar :is(#histBtn, .bdg-d-inf), .bdg-inst-fige .novapp-list-titlebar :is(#histBtn, .bdg-d-inf) { color: var(--inst); }
.ins-hcol .ins-li .act-uro { background: transparent; color: inherit; font-weight: inherit; border-radius: 0; }
.blk-hier .ins-hcol .ins-li, .blk-hier .bdg-h-head, .blk-hier .bdg-h-item { height: 21px; min-height: 21px !important; max-height: 21px; box-sizing: border-box; }
.av-comp-ic.on { color: #1d4ed8 !important; border-color: #1d4ed8 !important; background: #eff6ff !important; }

.av-stg-t th[data-sk] { cursor: pointer; }
.novapp-list-titlebar .bdg-d-badge.bdg-d-inf, .novapp-list-titlebar #histBtn.bdg-d-badge { background: transparent; color: #3f4856 !important; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.bdg-inst-instance .novapp-list-titlebar .bdg-d-badge, .bdg-inst-fige .novapp-list-titlebar .bdg-d-badge { color: var(--inst) !important; }
/* v690 : bloc VERSIONS, repère Ⓐ (créé automatiquement) */
.blk-ver .rec-scroll { height: auto; max-height: var(--h-ver, 150px); }
.bdg-d-page.max-rec .blk-rec-on.blk-ver .rec-scroll { height: calc(var(--avail) - 50px); max-height: none; }
.ver-table tr.ver-row { cursor: pointer; }
.auto-a { color: #9aa3b2; font-size: 12px; font-weight: 700; margin-left: 3px; }
/* v691 : import — source en arborescence, blocs à cocher */
#docPop .imp-src-head { padding: 8px 10px 4px; font-weight: 900; font-size: 12px; color: #3f4856; }
#docPop .imp-src-head small { color: #9aa3b2; font-weight: 700; }
#docPop .imp-blks .imp-all { font-weight: 900; }
#docPop .imp-blks .imp-lk-note { flex-basis: 100%; }
#docPop .imp-card .imp-table .imp-cb, #docPop .imp-card .imp-table .imp-cball { visibility: hidden; }
/* v691 : liste mère en arborescence */
#budgetListTable tr.bdg-fam, table.svi-bdgl tr.bdg-fam { cursor: pointer; }
#budgetListTable .bdg-fold, table.svi-bdgl .bdg-fold { display: inline-block; width: 14px; font-weight: 900; color: #3f4856; margin-right: 4px; }
/* 08/11 (remarque) : la colonne PROJET reste alignée pour les budgets d'un consolidé (le retrait reste dans RÉFÉRENCE) */
#budgetListTable tr.bdg-kid small, table.svi-bdgl tr.bdg-kid small { color: #9aa3b2; font-weight: 600; }
#budgetListTable tr.bdg-kid.inst-instance.row-av td, table.svi-bdgl tr.bdg-kid.inst-instance.row-av td { color: #dc2626; }
#budgetListTable tr.bdg-kid.inst-fige.row-av td, table.svi-bdgl tr.bdg-kid.inst-fige.row-av td { color: #22a052; }
#budgetListTable tr.bdg-kid.inst-valide.row-av td, table.svi-bdgl tr.bdg-kid.inst-valide.row-av td { color: #3b6ea5; }
/* v692 : onglet INDICATEURS — carreaux */
.ibd-board { display: flex; gap: 10px; overflow-x: auto; padding: 8px 8px 10px; -webkit-overflow-scrolling: touch; }
.ibd-tile { flex: 0 0 280px; border: 1px solid #d6dbe3; border-radius: 10px; background: #fff; cursor: pointer; display: flex; flex-direction: column; max-height: 170px; }
.ibd-th { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-bottom: 1px solid #eef1f6; font-size: 12px; }
.ibd-tools { display: inline-flex; gap: 4px; }
.ibd-b { border: 1px solid #dfe4eb; background: #fff; border-radius: 6px; width: 24px; height: 22px; cursor: pointer; padding: 0; font-size: 12px; }
.ibd-list { overflow-y: auto; }
.ibd-it { display: flex; justify-content: space-between; gap: 8px; padding: 0 8px; height: 21px; align-items: center; font-size: 12px; border-top: 1px solid #f3f4f6; }
.ibd-it b { white-space: nowrap; }
.ibd-soft { color: #9aa3b2 !important; font-weight: 600; font-size: 10px; }
.ibd-empty { padding: 10px; font-size: 11px; color: #9aa3b2; }
.ibd-add { flex: 0 0 56px; border: 1.5px dashed #cbd2db; border-radius: 10px; background: #f8fafc; font-size: 24px; font-weight: 900; color: #6b7480; cursor: pointer; }
.ibd-bar, .ibd-seuils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ibd-seg { display: inline-flex; gap: 2px; }
.ibd-card .svc-b.on { background: #172033; color: #fff; }
.ibd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ibd-chip { border: 1px solid #d6dbe3; border-radius: 14px; background: #fff; padding: 3px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.ibd-chip.on { background: #eff6ff; border-color: #1d4ed8; color: #1d4ed8; }
.ibd-chip.off { opacity: .4; }
.ibd-chip.focus { box-shadow: 0 0 0 2px #f79009; }
.ibd-chip small { color: #9aa3b2; font-weight: 600; }
.ibd-chip.ibd-new { border-style: dashed; }
.ibd-s { font-size: 12px; font-weight: 700; color: #3f4856; }
.ibd-tscroll { max-height: 60vh; overflow: auto; }

#svConf .ibd-card .svc-b.on { background: #172033; color: #fff; border-color: #172033; }
#svConf .ibd-card .ibd-nom { width: 200px; font-weight: 800; }
/* v693 : bloc RECALAGES, comparaison des sources */
.blk-rcl .rec-scroll { height: auto; max-height: var(--h-rcl, 150px); }
.bdg-d-page.max-rec .blk-rec-on.blk-rcl .rec-scroll { height: calc(var(--avail) - 50px); max-height: none; }
.rcl-table tr.rcl-row { cursor: pointer; }
.rcl-table tr.rcl-cours td { color: #b91c1c; font-weight: 700; }
.ibd-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.ibd-src .pv-in { width: auto; }
/* v694 : en-tête commun, rappel de navigation, rebond, notes dans le i */
.bdg-d-hright .hdr-off { opacity: .35; cursor: not-allowed; }
#sviNavPill { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 100004; background: #172033; color: #fff; font-weight: 800; font-size: 13px; padding: 7px 16px; border-radius: 18px; box-shadow: 0 4px 14px rgba(15,23,42,.25); pointer-events: none; }
@keyframes navBump { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-10px); } 60% { transform: translateX(6px); } }
.bdg-d-sticky.nav-bump { animation: navBump .32s ease; }
#docPop .inf-note { margin-bottom: 10px; padding: 8px 10px; border-radius: 8px; background: #f3f4f6; color: #3f4856; font-size: 12px; font-weight: 700; }
.inst-todo.todo-on { color: #b45309; }
/* v697 : lecture seule au format complet — pas de lignes SAISIR ICI ni de ✕ de suppression */
.svi-ro .bdg-d-page tr.ins-new, .svi-ro .bdg-d-page .ins-li.ins-new { display: none !important; }
.svi-ro .bdg-d-page :is(.ins-x, .ins-xall) { visibility: hidden !important; }   /* 09/11 : cases à cocher visibles en lecture seule */
.svi-ro .bdg-d-page .blk-adj-btn, .svi-ro .bdg-d-page .blk-cfg-btn { opacity: .35; }
/* v698 : écran ouvert en haut au centre (à la place de VERSION TEST / BASE À JOUR) ; lignes SAISIR ICI de la liste mère */
#sviScreenTag { position: fixed; left: 50%; top: 9px; transform: translateX(-50%); z-index: 20001; background: #172033; color: #fff; font: 800 13px Arial, sans-serif; letter-spacing: .5px; padding: 6px 16px; border-radius: 14px; pointer-events: none; white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
body.bdg-screen #sviTestTag, body.bdg-screen #sviSync.sync-ok { display: none; }
body.bdg-screen #sviSync { top: 40px; }
body:not(.bdg-screen) #sviScreenTag { display: none; }
#budgetListTable tr.bdg-newrow td, table.svi-bdgl tr.bdg-newrow td { color: #6b7480; background: #f8fafc; cursor: pointer; font-weight: 700; }
#budgetListTable tr.bdg-newrow.bdg-kid td, table.svi-bdgl tr.bdg-newrow.bdg-kid td { padding-left: 36px; color: #3b6ea5; }
#budgetListTable tr.bdg-newrow.off td, table.svi-bdgl tr.bdg-newrow.off td { color: #9aa3b2; cursor: not-allowed; }
#budgetListTable tr.bdg-newrow small, table.svi-bdgl tr.bdg-newrow small { color: #9aa3b2; font-weight: 600; }
/* v699 : lignes SAISIR ICI en rouge ; BUDGET CONSOLIDÉ plus foncé, sans italique ; avenant validé : nuance sombre (plus de bleu) */
#budgetListTable tr.bdg-newrow td, #budgetListTable tr.bdg-newrow.bdg-kid td, table.svi-bdgl tr.bdg-newrow td, table.svi-bdgl tr.bdg-newrow.bdg-kid td { color: #b91c1c; background: #fef2f2; }
#budgetListTable tr.bdg-newrow.off td, table.svi-bdgl tr.bdg-newrow.off td { color: #e3a3a3 !important; }
#budgetListTable tr.bdg-kid[data-kid="glob"] td, table.svi-bdgl tr.bdg-kid[data-kid="glob"] td { font-style: normal; color: #0b1a2c !important; font-weight: 900; }
#budgetListTable tr.bdg-kid.inst-valide.row-av td, .av-stg-t tr.inst-valide.row-av td, .av-tree .av-st-valide.row-av b, table.svi-bdgl tr.bdg-kid.inst-valide.row-av td { color: #3a4a5e !important; }
.bdg-av:not(.bdg-inst-instance):not(.bdg-inst-fige) .novapp-list-titlebar .bdg-d-h1, .bdg-av:not(.bdg-inst-instance):not(.bdg-inst-fige) .bdg-d-block-title .ttl { color: #3a4a5e; }

/* v701 : ⚙ RÉGLAGES DU GANTT */
.gcf-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.gcf-acts .svc-b.off { opacity: .4; }
.gcf-more { margin-top: 12px; }

/* v701 : panneau des dates aux hauteurs de BDG (en-tête et lignes de la liste) */
#bdgDatePanel .novapp-date-head, .svi-bdgp .novapp-date-head { box-sizing: border-box; height: var(--bdg-head-h, auto); padding: 0 8px; display: flex; align-items: center; }
#bdgDatePanel .novapp-date-filter, .svi-bdgp .novapp-date-filter { height: calc(var(--bdg-head-h, 38px) - 10px); max-height: 30px; }
#bdgDatePanel .novapp-date-item, .svi-bdgp .novapp-date-item { box-sizing: border-box; height: var(--bdg-row-h, auto); padding-top: 0; padding-bottom: 0; }

/* v702 : ligne CRÉER UN RECALAGE ICI… */
.rec-table tr.scn-new td { background: var(--inst-bg, #fef2f2); color: var(--inst, #b91c1c); opacity: .85; cursor: pointer; }
.rec-table tr.scn-new.off td { color: #9aa3b2; cursor: not-allowed; }

/* v704 : ⚙ du GRAPHIQUE (à gauche de ⚙ du GANTT) */
.blk-tools .blk-btn.blk-hcfg-btn { display: none; }
.blk-tools .blk-btn.blk-hcfg-btn.dly-on { display: inline-flex !important; align-items: center; justify-content: center; width: var(--svi-ib, 36px); height: var(--svi-ib, 36px); border-radius: 9px; background: #fff; color: #12355b; border: 1px solid #d6dbe3; margin-right: 6px; padding: 0; font-size: 17px; line-height: 1; }
.svi-ro .bdg-d-page .blk-hcfg-btn { opacity: .35; }

/* v711 : barre CAPACITÉ plus facile à prendre au doigt */
.gplaf::before { top: -20px; height: 40px; }

/* v712 : DÉTAIL DÉLAIS — un seul cadre fin sur la case touchée (FORMAT 122) ; SUCCESSEURS encadrés au toucher ; raison dans le calendrier */
.dly-table td:focus-within { outline: none !important; box-shadow: none !important; }
.dly-table :is(input.ins-in, textarea.ins-in, .ins-dv, input.dlp-in, .dly-nm):focus { outline: none !important; box-shadow: inset 0 0 0 1px var(--inst, #b91c1c) !important; }
#svCal .svcal-why { margin-top: 8px; padding: 6px 8px; border-radius: 6px; background: #fef2f2; color: #b42318; font-size: 10px; font-weight: 800; max-width: 240px; }

/* v713 : fenêtre AVANT L'IMPORT (en-têtes attendus) */
.imph-card { max-width: 720px; }
.imph-tb { margin: 10px 0; border: 1px solid #e4e7ec; border-radius: 8px; padding: 8px 10px; }
.imph-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.imph-cols { display: flex; flex-wrap: wrap; gap: 4px; }
.imph-c { padding: 2px 6px; border-radius: 5px; background: #f2f4f7; font-size: 10px; font-weight: 800; color: #344054; }
.imph-req { color: #d92d20; font-style: normal; margin-left: 2px; }

/* v714 : onglet APPROVISIONNEMENT PRÉVISIONNEL */
.apr-wrap { padding: 8px 10px 16px; }
.apr-bar-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; margin-bottom: 8px; }
.apr-seg { display: inline-flex; gap: 4px; }
.apr-seg .svc-b { height: 26px; padding: 0 10px; font-size: 10px; font-weight: 800; border: 1px solid #d6dbe3; border-radius: 6px; background: #fff; color: #344054; cursor: pointer; }
.apr-seg .svc-b.on { background: var(--inst, #b91c1c); color: #fff; border-color: transparent; }
.apr-seg .svc-b.off { opacity: .4; }
.apr-badge { display: inline-block; padding: 1px 6px; border-radius: 5px; background: #fef3f2; color: #b42318; font-size: 9px; font-weight: 900; }
.apr-graph { overflow-x: auto; border: 1px solid #e4e7ec; border-radius: 8px; padding: 6px; margin-bottom: 10px; }
.apr-svg .apr-bar { fill: #f79009; }
.apr-svg .apr-gx { font-size: 9px; fill: #667085; font-weight: 700; }
.apr-svg .apr-gv { font-size: 9px; fill: #344054; font-weight: 800; }
.apr-t { width: 100%; margin-bottom: 12px; }
.apr-t tr.apr-row { cursor: pointer; font-weight: 800; }
.apr-t tr.apr-kid td { color: #475467; font-size: 11px; }
.apr-t tr.apr-todo td { background: #fffaf5; }
.apr-sub { font-size: 11px; font-weight: 900; color: #344054; margin: 6px 0; }
.apr-in { height: 24px; font-size: 11px; font-weight: 700; border: 1px solid #d0d5dd; border-radius: 5px; background: #fff; }
.apr-n { width: 52px; text-align: right; padding: 0 4px; }

/* v715 : alerte DATE OBJECTIF près de la barre CAPACITÉ (sans blocage) */
.gplaf-w.gplaf-wo { background: #b54708; }

/* v715 : approvisionnement — regroupement */
.apr-t tr.apr-grp td { background: #f2f4f7; }
.apr-t tr.apr-drag { opacity: .5; }
.apr-t tr.apr-tgt td { background: #fffbe6 !important; box-shadow: inset 0 0 0 1px #b54708; }
.apr-gd { height: 24px; font-size: 11px; font-weight: 800; border: 1px solid #d0d5dd; border-radius: 5px; }
.apr-ungrp { border: 0; background: none; color: #b42318; font-weight: 900; cursor: pointer; }

/* v716 : compteur d'onglet filtré (retenues/total) en bleu, touchable */
#bdgTabs .bdg-d-tab .svi-cnt.cnt-filt { background: #1d4ed8 !important; color: #fff !important; cursor: pointer; }

/* v717 : consolidé — article déplié par origine */
.av-ofold { border: 0; background: none; font-weight: 900; color: #12355b; cursor: pointer; padding: 0 2px; margin-right: 2px; }
tr.av-orow td { background: #f8fafc; font-size: 11px; color: #344054; cursor: pointer; padding: 3px 8px; }
tr.av-orow .av-olab { display: inline-block; min-width: 140px; font-weight: 800; color: #12355b; }

/* v720 : compteur DOCUMENTS / TAF / OBSERVATIONS filtré (bleu, touchable) */
.blk-rec .svi-cnt.cnt-filt { background: #1d4ed8 !important; color: #fff !important; cursor: pointer; }

/* v721 : contrôle de l'envoi par les totaux */
.sy-ctl { color: #b42318 !important; font-weight: 800; }

/* v723 : indicateur grisé quand le budget n'a pas les données */
.ind-table tr.ind-row.ind-off td { color: #98a2b3 !important; }

/* v724 : onglet INDICATEURS en quatre parties (FORMAT 256, 257) */
.i1-wrap { display: grid; grid-template-columns: var(--i1-cw, 45%) 10px 1fr; grid-template-rows: var(--i1-rh, 240px) 10px minmax(220px, 1fr); height: 100%; min-height: 520px; gap: 0; }
.i1-p { overflow: auto; border: 1px solid #e4e7ec; border-radius: 6px; background: #fff; min-width: 0; min-height: 0; }
.i1-tl { grid-column: 1; grid-row: 1; } .i1-tr { grid-column: 3; grid-row: 1; } .i1-bl { grid-column: 1; grid-row: 3; } .i1-br { grid-column: 3; grid-row: 3; }
.i1-vh { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; cursor: col-resize; color: #fff; font-weight: 900; touch-action: none; }
.i1-vh::before { content: ""; position: absolute; } .i1-vh { background: linear-gradient(#7f5539, #7f5539) center / 3px 100% no-repeat; }
.i1-vh2 { grid-row: 3; }
.i1-hh { grid-column: 1 / 4; grid-row: 2; display: flex; align-items: center; justify-content: center; cursor: row-resize; color: #fff; font-weight: 900; touch-action: none; background: linear-gradient(#7f5539, #7f5539) center / 100% 3px no-repeat; }
.i1-vh, .i1-hh { font-size: 0; } .i1-vh::after, .i1-hh::after { content: "="; font-size: 12px; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: #344054; }
.i1-vh::after { content: "‖"; }
.i1-plan, .i1-vals { width: 100%; }
.i1-gantt { padding: 8px; } .i1-gr { position: relative; height: 22px; border-bottom: 1px solid #f2f4f7; }
.i1-gb { position: absolute; top: 6px; height: 10px; border-radius: 5px; background: #2e90fa; }
.i1-gx { display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; color: #667085; margin-top: 4px; }
.i1-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #eaecf0; font-size: 11px; position: sticky; top: 0; background: #fff; z-index: 1; }
.i1-bar .i1-cfg { margin-left: auto; }
.i1-why { color: #98a2b3; font-size: 10px; font-weight: 800; }
.i1-chart { padding: 6px; overflow: auto; }
/* v724 : TABLEAU DE BORD — miniatures (FORMAT 259) */
.ibd-board { flex-wrap: wrap; overflow: auto; }
.ibd-tile { position: relative; overflow: hidden; resize: none; min-width: 200px; }
.ibd-mini { overflow: hidden; } .ibd-mini .rat-svg { width: 100%; height: auto; } .ibd-mini .rat-gx { overflow: hidden; } .ibd-mini .rat-leg { font-size: 9px; }
.ibd-rsz { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none; background: linear-gradient(135deg, transparent 50%, #98a2b3 50%); }
.ibd-tile:not([style*="height"]) { height: 280px; }
.ibd-tile:not([style*="width"]) { width: 340px; }
.ibd-board .ibd-add { font-size: 13px; font-weight: 900; }

/* v725 : ESSAI depuis les indicateurs */
.i1-try { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; margin-bottom: 6px; border-radius: 6px; background: #fffaeb; color: #b54708; font-size: 11px; }
.ins-modind { color: #b54708; font-weight: 900; font-size: 11px; margin-right: 2px; cursor: help; }
/* v729 (bloc 10) : COMPARATIF */
.cmp-card { display: flex; flex-direction: column; }
.cmp-card .cmp-wrap { flex: 1; min-height: 520px; }
.cmp-sub { font-size: 11px; color: #667085; margin: 0 0 6px; }
.cmp-gr { height: 24px; }
.cmp-g1 { position: absolute; top: 12px; height: 9px; border-radius: 5px; background: #d0d5dd; }
.cmp-g2 { top: 3px !important; height: 9px !important; background: #1d3a8a !important; }
.cmp-neg { color: #b42318; font-weight: 700; } .cmp-pos { color: #067647; font-weight: 700; }
.cmp-leg .cmp-dash { background-image: repeating-linear-gradient(90deg, transparent 0 4px, #fff 4px 7px) !important; }
.cmp-pick .svc-b.off { opacity: .45; }
/* v733 : PLANNING — un seul cadre (celui de la sélection, posé par-dessus) : plus de petit cadre ni de fond blanc dans la case */
.dly-table :is(input.ins-in, textarea.ins-in, .ins-dv, .dly-nm):focus { box-shadow: none !important; background: transparent !important; }
/* v733 : barre COPIER / COLLER / EFFACER au format des menus ⋯ de l'application (plus la bulle noire) */
#sviSelBar { background: #fff !important; border: 1px solid #d0d5dd;  box-shadow: 0 8px 24px rgba(16,24,40,.16) !important;  gap: 0 !important; }
#sviSelBar button { color: #172033 !important;    }
#sviSelBar button + button { border-left: 1px solid #eaecf0; border-radius: 0; }
#sviSelBar button:active { background: #f2f4f7 !important; }
/* v739 : BIBLIOTHÈQUE DE PRIX (FORMAT 267, 268) */
.prm-lib .lib-wrap { display: grid; grid-template-columns: minmax(220px, 32%) 1fr; gap: 14px; align-items: start; }
.prm-lib .lib-a { cursor: pointer; } .prm-lib .lib-a.on td { background: #eef2ff; font-weight: 800; }
.prm-lib .lib-rec { border: 1px solid #e5e9f0; border-radius: 10px; padding: 8px; margin-bottom: 10px; background: #fff; }
.prm-lib .lib-rh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; font-size: 12px; }
.prm-lib .lib-rh .lib-in[data-f=nom] { width: 180px; } .prm-lib .lib-rh small { color: #667085; margin-left: auto; }
.prm-lib .lib-del { border: 0; background: none; color: #b42318; font-weight: 800; cursor: pointer; }
.lib-chk { color: #b54708; background: #fffaeb; border: 1px solid #fedf89; border-radius: 6px; padding: 1px 6px; font-size: 10px; font-weight: 800; }
.lib-pick .lib-r { display: block; border: 1px solid #e5e9f0; border-radius: 8px; padding: 8px; margin: 0 0 8px; cursor: pointer; }
.lib-pick .lib-r.lib-used { border-color: #2e90fa; background: #f5faff; }
.lib-pick .lib-h { display: inline-flex; gap: 8px; align-items: center; margin-left: 6px; } .lib-pick .lib-h small { color: #667085; }
.lib-tag { color: #175cd3; background: #eff8ff; border-radius: 6px; padding: 1px 6px; font-size: 10px; font-weight: 800; }
.lk-chain .lk-lib { border: 1px solid #2e90fa; background: #eff8ff; color: #175cd3; border-radius: 8px; padding: 4px 10px; font-weight: 800; font-size: 11px; margin-right: 6px; cursor: pointer; }
/* v740 : CUMUL (FORMAT 265, 266) */
.cum-band { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: #f2f4f7; border: 1px solid #d0d5dd; border-radius: 8px; padding: 6px 10px; margin: 6px 0; font-size: 11px; font-weight: 800; color: #344054; }
.cum-band b { color: #1d3a8a; } .cum-band .cum-st { font-weight: 700; } .cum-band .cum-valide { color: #111827; } .cum-band .cum-fige { color: #067647; } .cum-band .cum-instance { color: #b42318; }

/* ===== v749 : ACHATS (étape 1 : articles et paramètres) — mêmes tableaux que le budget ===== */
#ach .ach-body { padding: 0 0 24px; }
#ach .ach-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
#ach .ach-b { border: 1px solid #d5dbe3; background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 800; color: #172033; cursor: pointer; }
#ach .ach-b:disabled { opacity: .45; cursor: default; }
#ach .ach-scroll { overflow: auto; max-height: calc(100vh - 230px); -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; }
#ach table.ach-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; }
#ach table.ach-table thead th { position: sticky; top: 0; z-index: 3; text-align: left; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
#ach table.ach-table th.center, #ach table.ach-table td.center { text-align: center; }
#ach table.ach-table th.number, #ach table.ach-table td.number { text-align: right; }
#ach table.ach-table td { padding-left: 4px; padding-right: 4px; border-bottom: 1px solid #e2e4eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ca3a31; }
#ach table.ach-table td input.ins-in { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; padding: 0 2px; height: 20px; }
#ach table.ach-table td input.number { text-align: right; }
#ach table.ach-table td input.center { text-align: center; }
#ach table.ach-table tr.ach-new td { background: #fdf2f2; }
#ach table.ach-table tr.ach-new input::placeholder { color: #ca3a31; opacity: .75; }
#ach table.ach-table tr.ach-off td { color: #9aa3af; }
#ach table.ach-table tr.ach-deleted td { color: #9aa3af; text-decoration: line-through; }
#ach table.ach-table tr.ach-bad td:first-child { box-shadow: inset 3px 0 0 #ca3a31; }
#ach .ach-code { color: #8a909c; font-weight: 700; }
#ach .ach-h { border: 1px solid #c6ccd6; background: #fff; border-radius: 3px; font-size: 9px; font-weight: 800; width: 16px; height: 16px; line-height: 14px; padding: 0; cursor: pointer; color: #495467; }
#ach .ach-warn { margin-left: 3px; cursor: pointer; font-size: 11px; }
#ach .ach-bdg { border: 0; background: #e8eefc; color: #3661e3; border-radius: 9px; min-width: 22px; height: 18px; font-weight: 800; font-size: 11px; cursor: pointer; }
#ach .ach-0 { color: #b8bec8; }
#ach .ach-x { border: 0; background: none; color: #9aa3af; cursor: pointer; font-size: 12px; }
.ach-prm { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
#ach .ach-pbox { display: flex; flex-direction: column; gap: 6px; }
#ach .ach-pt { font-size: 11px; font-weight: 800; color: #172033; }
#ach .ach-note { font-size: 10px; color: #8a909c; max-width: 520px; }
.ach-pick { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; font-size: 12px; }
#ach .ach-tvaw { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* ===== v750 : LISTE DES BUDGETS (corrections du 01/11/2026) ===== */
/* point 3 : une seule icône de bascule EN INSTANCE ⇄ VALIDÉS, à côté du titre */
.novapp-list-titlebar h1 .bdg-mode-sw { width: 34px; height: 34px; border: 1px solid #dfe4eb; border-radius: 10px; background: #fff; color: #3f4856; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; flex: none; }
.novapp-list-titlebar h1 .bdg-mode-sw:hover { background: #f1f4f8; }
.novapp-list-titlebar h1 .bdg-mode-sw.off { color: #b8c0cc; cursor: not-allowed; }
/* point 5 : PROJET = lien souligné, sans fond, même police / taille / couleur / graisse que les autres cases, à gauche */
#budgetListTable .budget-link, table.svi-bdgl .budget-link { background: none !important; border: 0 !important; border-radius: 0; padding: 0; margin: 0; box-shadow: none; font: inherit; font-weight: inherit !important; color: inherit !important; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-transform: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline; }
#budgetListTable tbody tr:not(.bdg-newrow) td, #budgetListTable tbody tr:not(.bdg-newrow) td *, table.svi-bdgl tbody tr:not(.bdg-newrow) td, table.svi-bdgl tbody tr:not(.bdg-newrow) td * { font-weight: 700; font-style: normal; }   /* v752 : toute la liste en gras, même graisse partout */
#budgetListTable tbody tr:not(.bdg-newrow) td, table.svi-bdgl tbody tr:not(.bdg-newrow) td { color: #172033; }
#budgetListTable td, table.svi-bdgl td { text-align: left; }
#budgetListTable td.number, table.svi-bdgl td.number { text-align: right; }
/* point 9 : marge de pliage à gauche sur toutes les lignes — références alignées, pliées ou dépliées */
/* v754 : la flèche de pliage est dans RÉFÉRENCE, devant la référence du parent (plus de colonne à gauche) ;
   lignes de titre alignées (place de la flèche gardée), lignes du dessous décalées vers la droite */
#budgetListTable td.bdg-ref-c, table.svi-bdgl td.bdg-ref-c { padding-left: 22px; position: relative; }
#budgetListTable td.bdg-ref-c .bdg-fold, table.svi-bdgl td.bdg-ref-c .bdg-fold { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 16px; margin: 0; text-align: center; font-size: 15px; font-weight: 900 !important; color: #3f4856 !important; cursor: pointer; padding: 6px 0; }
#budgetListTable tr.bdg-kid td.bdg-ref-c, #budgetListTable tr.bdg-newrow.bdg-kid td, table.svi-bdgl tr.bdg-kid td.bdg-ref-c, table.svi-bdgl tr.bdg-newrow.bdg-kid td { padding-left: 44px; }
#budgetListTable thead th .cf-wrap, table.svi-bdgl thead th .cf-wrap { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; }
#budgetListTable thead th .cf-lab, table.svi-bdgl thead th .cf-lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#budgetListTable thead th.number .cf-wrap, table.svi-bdgl thead th.number .cf-wrap { justify-content: flex-end; }
#budgetListTable thead th .cf-wrap .cf-btn, table.svi-bdgl thead th .cf-wrap .cf-btn { margin-right: 4px; flex: none; color: #687281; cursor: pointer; display: inline-flex; }
#budgetListTable thead th .col-rs, table.svi-bdgl thead th .col-rs { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; z-index: 40; cursor: col-resize; touch-action: none; }
#budgetListTable thead th .col-rs.active, #budgetListTable thead th .col-rs:hover, table.svi-bdgl thead th .col-rs.active, table.svi-bdgl thead th .col-rs:hover { background: rgba(23,105,194,.18); }
/* point 7 : seule action d'une ligne — la corbeille standard */
/* v752 : la corbeille prend la couleur de sa ligne (rouge en instance, vert figé, noir validé) */
#budgetListTable .bdg-row-del, table.svi-bdgl .bdg-row-del { color: inherit; display: inline-flex; align-items: center; justify-content: center; }
#budgetListTable .bdg-row-del:hover, table.svi-bdgl .bdg-row-del:hover { background: #f1f4f8; }
/* états — v754 : une seule couleur par état, paramétrable (PARAMÉTRAGE › COULEURS : variables --st-…) */
#budgetListTable tbody tr:not(.bdg-newrow) td, table.svi-bdgl tbody tr:not(.bdg-newrow) td { color: var(--st-valide, #172033); }
#budgetListTable tr.inst-instance td, #budgetListTable tr.inst-instance .budget-link, table.svi-bdgl tr.inst-instance td, table.svi-bdgl tr.inst-instance .budget-link { color: var(--st-instance, #b91c1c) !important; }
#budgetListTable tr.inst-fige td, #budgetListTable tr.inst-fige .budget-link, table.svi-bdgl tr.inst-fige td, table.svi-bdgl tr.inst-fige .budget-link { color: var(--st-fige, #15803d) !important; }
#budgetListTable tr.bdg-kid.inst-valide td, #budgetListTable tr.bdg-kid.inst-valide.row-av td, #budgetListTable tr.bdg-kid.inst-valide .budget-link, table.svi-bdgl tr.bdg-kid.inst-valide td, table.svi-bdgl tr.bdg-kid.inst-valide.row-av td, table.svi-bdgl tr.bdg-kid.inst-valide .budget-link { color: var(--st-valide, #172033) !important; }
#budgetListTable tr.bdg-kid.inst-instance.row-av td, #budgetListTable tr.bdg-kid.inst-instance.row-av .budget-link, table.svi-bdgl tr.bdg-kid.inst-instance.row-av td, table.svi-bdgl tr.bdg-kid.inst-instance.row-av .budget-link { color: var(--st-instance, #b91c1c) !important; }
#budgetListTable tr.bdg-kid.inst-fige.row-av td, #budgetListTable tr.bdg-kid.inst-fige.row-av .budget-link, table.svi-bdgl tr.bdg-kid.inst-fige.row-av td, table.svi-bdgl tr.bdg-kid.inst-fige.row-av .budget-link { color: var(--st-fige, #15803d) !important; }
/* point 4 : fenêtre CUMUL (menu ⋯ du budget) */
.cum-card .cum-wrap { max-height: 58vh; overflow: auto; margin-top: 8px; }
.cum-card .cum-t tbody tr { cursor: pointer; }
.cum-card .cum-t td.center { text-align: center; width: 34px; }

/* ===== v750 : menu ☰ — ACHAT dépliable (comme NovApp), BESOIN à part ; même style que les entrées actuelles ===== */
#navMenu .nav-grp, #navMenu .nav-off { display: flex; align-items: center;  width: 100%; color:#172033; border:0; background:#fff; border-radius:6px; padding:10px; text-align:left; font-size:12px; font-weight:800; cursor:pointer; white-space:nowrap; text-transform: uppercase; }
#navMenu .nav-grp i { font-style: normal; font-size: 14px; color: #6b7480; transition: transform .15s;  }
#navMenu .nav-grp[aria-expanded="true"] i { transform: rotate(90deg); }
#navMenu .nav-grp:hover, #navMenu .nav-off:hover { background: #f3f6fa; }
#navMenu .nav-sub { display: flex; flex-direction: column; padding-left: 14px; }
#navMenu .nav-sub[hidden] { display: none; }
#navMenu .nav-sub .nav-btn, #navMenu .nav-sub .nav-off { padding: 8px 10px; }
#navMenu .nav-off { color: #9aa3b2; cursor: not-allowed; }

/* v752 : icône devant chaque entrée du menu ☰ */
#navMenu .nav-btn, #navMenu .nav-src { display: flex; align-items: center; width: 100%; }
#navMenu .nav-btn, #navMenu .nav-grp, #navMenu .nav-off, #navMenu .nav-src { gap: 9px; }
#navMenu .nav-grp, #navMenu .nav-off { justify-content: flex-start; }
#navMenu .nav-grp i { margin-left: auto; }
#navMenu .nav-ic { flex: none; display: block; }

/* v754 : couleurs des états paramétrables — écran d'un budget et lignes CRÉER… */
.bdg-inst-instance { --inst: var(--st-instance, #b91c1c); }
.bdg-inst-fige { --inst: var(--st-fige, #15803d); }
#budgetListTable tr.bdg-newrow td, #budgetListTable tr.bdg-newrow.bdg-kid td, table.svi-bdgl tr.bdg-newrow td, table.svi-bdgl tr.bdg-newrow.bdg-kid td { color: var(--st-instance, #b91c1c); }
#budgetListTable tr.bdg-newrow.off td, table.svi-bdgl tr.bdg-newrow.off td { color: color-mix(in srgb, var(--st-instance, #b91c1c) 40%, #fff) !important; }
/* v754 : « ! » devant VALIDÉ LE (validé plus de 24 h après la saisie) */
#budgetListTable .val-bang, table.svi-bdgl .val-bang { margin: -4px 0 -4px -4px; padding: 4px 3px; }
/* v754 : total à côté de TOUT */
.novapp-date-filter { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
/* v754 : PARAMÉTRAGE › COULEURS */
.prm-col .prm-table td { vertical-align: middle; }
.prm-col input[type="color"] { width: 54px; height: 30px; padding: 0; border: 1px solid #d6dbe3; border-radius: 6px; background: #fff; cursor: pointer; }
.prm-col .col-prev { font-weight: 800; }
.prm-col .col-rst { border: 1px solid #dfe4eb; background: #fff; border-radius: 8px; padding: 5px 10px; font-weight: 800; font-size: 11px; cursor: pointer; }
/* v755 : états des budgets (couleurs paramétrables) */
#budgetListTable tr.etat-expire td, #budgetListTable tr.etat-expire .budget-link, table.svi-bdgl tr.etat-expire td, table.svi-bdgl tr.etat-expire .budget-link { color: var(--st-expire, #b45309) !important; }
#budgetListTable tr.etat-bloque td, #budgetListTable tr.etat-bloque .budget-link, table.svi-bdgl tr.etat-bloque td, table.svi-bdgl tr.etat-bloque .budget-link { color: var(--st-bloque, #6b7280) !important; }
#budgetListTable tr.etat-archive td, #budgetListTable tr.etat-archive .budget-link, table.svi-bdgl tr.etat-archive td, table.svi-bdgl tr.etat-archive .budget-link { color: var(--st-archive, #6d28d9) !important; }
/* v755 : liste des états (ACTIF ▾…) commune à toutes les listes */
#sviEtatMenu { position: fixed; z-index: 10060; min-width: 190px; background: #fff; border: 1px solid #d6dbe3; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
#sviEtatMenu button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: #fff; border-radius: 8px; padding: 9px 10px; font-size: 12px; font-weight: 800; color: #172033; text-align: left; cursor: pointer; }
#sviEtatMenu button:hover { background: #f3f6fa; }
#sviEtatMenu button.on { background: #dcecff; color: #0f4f96; }
#sviEtatMenu button b { width: 12px; flex: none; }
#sviEtatMenu button span:not(.svi-cnt) { flex: 1; }
.ach-tools .ach-etat { display: inline-flex; align-items: center; gap: 6px; }

/* ===== v756 : bloc à onglets AVENANTS / SCÉNARIOS / VERSIONS / RECALAGES ===== */
.blk-etp .etp-pane { display: none; }
.blk-etp .etp-pane.on { display: block; }
.blk-etp .etp-pane[hidden] .rec-scroll { display: none; }
.blk-etp .etp-pane .etp-empty { display: none; padding: 14px 12px; color: #6b7480; font-size: 12px; font-weight: 700; }
.blk-etp .etp-pane[hidden] .etp-empty { display: block; }
.blk-etp .etp-tabs .rec-tab.off { color: #b8c0cc; cursor: not-allowed; }
.blk-etp .av-row { cursor: pointer; }
.blk-etp .av-row.st-instance td { color: var(--st-instance, #b91c1c); }
.blk-etp .av-row.st-fige td { color: var(--st-fige, #15803d); }
.blk-etp .av-row.st-valide td { color: var(--st-valide, #172033); }
.blk-etp .av-row.st-expire td { color: var(--st-expire, #b45309); }
/* v757 : COMPARER — choix libre des éléments, puis côte à côte */
.cmpm-pick .cmpm-list { max-height: 56vh; overflow: auto; margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.cmpm-pick .cmpm-g { margin-top: 8px; font-size: 11px; font-weight: 900; color: #6b7480; letter-spacing: .03em; }
.cmpm-pick .cmpm-it { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 12px; font-weight: 700; cursor: pointer; }
.cmpm-card .cmpm-scroll { max-height: 64vh; overflow: auto; margin-top: 8px; }
.cmpm-card .cmpm-t th { position: sticky; top: 0; white-space: nowrap; }
.cmpm-card .cmpm-t td.cmpm-ind { font-weight: 800; white-space: nowrap; }
.cmpm-card .cmpm-ec { display: block; font-size: 10px; font-weight: 800; color: #6b7480; }
.cmpm-card .cmpm-ec.cmp-neg { color: #b91c1c; } .cmpm-card .cmpm-ec.cmp-pos { color: #15803d; }
/* v759 : barre de la comparaison des scénarios — FERMER LA COMPARAISON bien visible */
.blk-etp .scn-cmp-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #eef4fb; border-bottom: 1px solid #d6e2f0; font-size: 12px; font-weight: 900; color: #12355b; }
.blk-etp .scn-cmp-bar .svc-b { font-size: 12px; padding: 7px 14px; }
.blk-etp .etp-pane[hidden] .scn-cmp-bar { display: none; }

/* ===== v759 : ACHATS — FOURNISSEURS ===== */
#ach .ach-link, #svConf .ach-link, #sviScreenTag .ach-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* B51 (05/11) : nom lié = couleur de son propre état (palette), souligné */
/* 05/11 (document unique 2.10) : un nom lié garde la couleur de SON état, prise dans la palette (--stg-*) — ni la couleur de la ligne,
   ni le format d'une interface, ni la couleur des lignes du tableau ne la remplacent */
html body .ach-link[data-nvgo].lk-instance { color: var(--stg-instance, #b91c1c) !important; -webkit-text-fill-color: currentColor !important; }
html body .ach-link[data-nvgo].lk-partiel { color: var(--stg-partiel, #1d4ed8) !important; -webkit-text-fill-color: currentColor !important; }
html body .ach-link[data-nvgo].lk-remis { color: var(--stg-remis, #ea580c) !important; -webkit-text-fill-color: currentColor !important; }
html body .ach-link[data-nvgo].lk-valide { color: var(--stg-valide, #172033) !important; -webkit-text-fill-color: currentColor !important; }
html body .ach-link[data-nvgo].lk-bloque { color: var(--stg-bloque, #6b7280) !important; -webkit-text-fill-color: currentColor !important; }
html body .ach-link[data-nvgo].lk-annule { color: #94a3b8 !important; -webkit-text-fill-color: currentColor !important; text-decoration: line-through underline; }
/* 05/11 (2.10) : la couleur de l'état d'une ligne prime sur la couleur des lignes réglée dans le format */
html body table tbody tr[class*="inst-"] td, html body table tbody tr[class*="nvr-"] td, html body table tbody tr.etat-bloque td { -webkit-text-fill-color: currentColor !important; }
.svc-card.frs-card { width: min(980px, 96vw) !important; max-width: 96vw; }
.frs-card .frs-scroll { max-height: 64vh; overflow: auto; padding-right: 4px; }
.frs-card .frs-why { margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; background: #fff7ed; color: #9a3412; font-size: 12px; font-weight: 800; }
.frs-card .frs-why .ach-b { margin-left: 8px; }
.frs-card .frs-sec { margin: 10px 0 14px; }
.frs-card .frs-st { font-size: 12px; font-weight: 900; color: #12355b; letter-spacing: .03em; border-bottom: 1px solid #e1e5eb; padding-bottom: 4px; margin-bottom: 8px; }
.frs-card .frs-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.frs-card .frs-f { display: flex; flex-direction: column; gap: 3px; font-size: 10px; font-weight: 800; color: #6b7480; min-width: 0; }
.frs-card .frs-f.frs-w { grid-column: span 2; }
.frs-card .frs-f b { color: #b91c1c; }
.frs-card .frs-f input { height: 30px; border: 1px solid #d6dbe3; border-radius: 6px; padding: 0 8px; font-size: 12px; font-weight: 700; color: #172033; background: #fff; }
.frs-card .frs-cs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.frs-card .frs-c { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #172033; cursor: pointer; }
.frs-card .frs-fam { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.frs-card .frs-sub { width: 100%; margin-bottom: 6px; }
.frs-card .frs-sub td input, .frs-card .frs-sub td select { width: 100%; height: 28px; border: 1px solid #d6dbe3; border-radius: 6px; padding: 0 6px; font-size: 12px; font-weight: 700; background: #fff; }
.frs-card .frs-evl { font-size: 12px; font-weight: 700; padding: 4px 0; }
.frs-card .frs-add { margin-top: 2px; }
@media (max-width: 700px) { .frs-card .frs-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ===== v760 : BESOINS ===== */
.bsn-card .bsn-ctl { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 10px; padding: 8px 10px; border-radius: 8px; background: #eef4fb; font-size: 12px; font-weight: 700; color: #12355b; }
.bsn-card .bsn-ctl.near { background: #fff7ed; color: #9a3412; }
.bsn-card .bsn-ctl.over { background: #fef2f2; color: #b91c1c; }
.bsn-card .bsn-note { font-size: 11px; font-weight: 700; color: #6b7480; margin: 6px 0; }
.bsn-card .bsn-deb { font-size: 12px; font-weight: 800; color: #166534; }
.bsn-card select.ins-in, .bsn-card .frs-f input { height: 30px; border: 1px solid #d6dbe3; border-radius: 6px; padding: 0 8px; font-size: 12px; font-weight: 700; background: #fff; }
/* ===== v761 : CONSULTATIONS et DEVIS ===== */
.caf-card .caf-cmp td, .caf-card .caf-cmp th { white-space: nowrap; }
.caf-card .caf-tot td, .dvf-card .caf-tot td { background: #f3f6fa; }
.caf-card .frs-sub select, .dvf-card .frs-sub select { width: 100%; height: 28px; border: 1px solid #d6dbe3; border-radius: 6px; font-size: 12px; font-weight: 700; background: #fff; }
/* ===== v762 : COMMANDES, RÉCEPTIONS, RETOURS ===== */
.cmf-card .cmf-src { font-size: 10px; color: #6b7480; white-space: nowrap; }
.cmf-card .frs-sub td input, .rcp-card .frs-sub td input, .rcp-card .frs-sub td select { min-width: 60px; }
.ach-tabs { flex-wrap: wrap; }
/* v763 : factures — quantité ou écart hors tolérance */
.fa-over { color: var(--danger, #c62828) !important; font-weight: 700; }
/* v764 : listes et pages des achats au format du budget (articles, fournisseurs) */
#ach.ach-page .section-head h1 { font-size: 22px; }
#ach .nvp-rec, #ach .nvp-blk { margin-bottom: 14px; }
/* v764 : blocs de la page (mêmes formes que la page du budget, sans dépendre de son style) */
#ach .nvp .bdg-d-block { margin-bottom: 14px; border: 1px solid #e1e5eb; border-radius: 12px; background: #fff; overflow: hidden; }
#ach .nvp .rec-table th.number, #ach .nvp .rec-table td.number { text-align: right; }
#ach .nvp .rec-table th.center, #ach .nvp .rec-table td.center { text-align: center; }

/* v766 : listes des achats = liste des budgets (mêmes classes ; règles #budgetListTable / #bdgDatePanel doublées pour table.svi-bdgl / .svi-bdgp) */
#ach.ach-bdgl { margin: -14px; }
#ach.ach-bdgl > .section-head, #ach.ach-bdgl > .ach-tabs { display: none !important; }
table.svi-bdgl tbody tr[data-nvo] { cursor: pointer; }
table.svi-bdgl thead th .cf-wrap { float: none; width: 100%; }
#ach .nvp .nv-strike td { text-decoration: line-through; color: #94a3b8; }
/* B3 (série B) : ligne entière à la couleur de l'état de la pièce liée */
#ach .nvp .nvp-blk tr.nvr-instance td, #ach .nvp .nvp-blk tr.nvr-instance td .ach-link:not([data-nvgo]) { color: var(--st-instance, #b91c1c) !important; }
#ach .nvp .nvp-blk tr.nvr-fige td, #ach .nvp .nvp-blk tr.nvr-fige td .ach-link:not([data-nvgo]) { color: var(--st-fige, #15803d) !important; }
#ach .nvp .nvp-blk tr.nvr-partiel td, #ach .nvp .nvp-blk tr.nvr-partiel td .ach-link:not([data-nvgo]) { color: var(--st-partiel, #1d4ed8) !important; }
#ach .nvp .nvp-blk tr.nvr-remis td, #ach .nvp .nvp-blk tr.nvr-remis td .ach-link:not([data-nvgo]) { color: var(--st-remis, #ea580c) !important; }
#ach .nvp .nvp-blk tr.nvr-valide td, #ach .nvp .nvp-blk tr.nvr-valide td .ach-link:not([data-nvgo]) { color: var(--st-valide, #172033) !important; }
/* v771 : bloc AVENANTS / SCÉNARIOS / VERSIONS / RECALAGES comme les autres blocs — 5 lignes par défaut, défilement au-delà, poignée libre */
.blk-etp .etp-pane .rec-scroll { height: auto; max-height: var(--h-etp, var(--svi-hdef-n, 129px)); overflow: auto; }
.bdg-d-page.max-etp .blk-etp .etp-pane .rec-scroll { max-height: none !important; }
/* fenêtre de SÉLECTION : FERMER bien visible, colonne CUMUL */
.cmpm-close { font-weight: 900 !important; border: 2px solid #12355b !important; color: #12355b !important; background: #fff !important; }
.cmpm-t .cum-col { background: #eef4fb; font-weight: 900; }
#ach .nvp .rec-scroll { max-height: 200px; }
#ach .nvp .bdg-d-block { position: relative; }
#ach .nvp .nvp-rsz { height: 10px; cursor: ns-resize; touch-action: none; position: relative; }
#ach .nvp .nvp-rsz::after { content: ""; position: absolute; left: 50%; top: 3px; width: 40px; height: 4px; margin-left: -20px; border-radius: 3px; background: #cbd5e1; }
#ach .nvp .nvp-rsz.on::after, #ach .nvp .nvp-rsz:hover::after { background: #1d4ed8; }
/* v772 : ORGANISATION DES BLOCS DU BUDGET — en-tête (nom, AGRANDIR, ⋯), rangée d'onglets, tableau */
#bdgTabs > .bdg-d-tab.tab-menu { display: none; }
#bdgDetailHead { display: flex; align-items: center; justify-content: space-between; border: 1px solid #e1e5eb; border-bottom: 0; border-radius: 12px 12px 0 0; margin-bottom: 0; }
#bdgDetailHead + #bdgTabs { border-radius: 0; margin-top: 0; }
#bdgDetailHead .dhead-sub { margin-left: 6px; color: #3b6ea5; }
#bdgDetailHead > .blk-tools { margin-left: auto; }
.blk-tabrow { display: flex; align-items: center; padding: 3px 8px; background: #fafbfc; border-bottom: 1px solid #e1e5eb; overflow-x: auto; scrollbar-width: none; }
.blk-tabrow::-webkit-scrollbar { display: none; }
.blk-etp > .blk-head, .blk-suivi > .blk-head { display: flex; align-items: center; justify-content: space-between; }
.blk-etp > .blk-head .blk-tools, .blk-suivi > .blk-head .blk-tools { margin-left: auto; }
/* v774 : plus de ligne de saisie collée par-dessus le tableau (elle recouvrait une ligne de données) — voir layMinOf (19) */
/* v773 : ÉVOLUTIONS — avenant EXPIRÉ barré (hors consolidé) ; version / recalage ARCHIVÉ grisé ; cases à cocher */
.blk-etp .av-row.st-expire td { text-decoration: line-through; }
.blk-etp tr.etp-arch td { color: #9aa3b2 !important; font-style: italic; }
.blk-etp .etp-cbc, .blk-etp .etp-cbh { width: 36px; text-align: center; }

/* v774 (point 10) : barre du haut réduite — ANNULER, RÉTABLIR, PRÉCÉDENT, SUIVANT, ALERTES, FERMER, ⋯ ;
   FIGER / VALIDER, SUPPRIMER et la composition du consolidé passent dans le ⋯ (boutons gardés cachés : mêmes actions) */
.bdg-d-hright #instLock, .bdg-d-hright #instValid, .bdg-d-hright #instDel, .bdg-d-hright #avCompBtn, .bdg-d-hright #layResetBtn { display: none !important; }
.bdg-d-hright { display: flex; align-items: center; flex-wrap: nowrap; }
.bdg-d-hright #instClose { order: 8; }
.bdg-d-hright #bdgMore { order: 9; }
/* v774 (point 5) : une seule roue dentée dans DÉTAIL DÉLAIS */
.blk-tools .blk-hcfg-btn { display: none; }
/* v774 (point 11) : EN-TÊTES DE BLOCS — même gris, un peu plus soutenu que les onglets et les tableaux, partout */
:root { --blk-head-bg: #e4e8ee; }
.bdg-d-page .bdg-d-block-title.blk-head, #bdgDetailHead, #ach .nvp .bdg-d-block-title { background: var(--blk-head-bg) !important; }
/* v774 (point 12) : MODE RÉDUIT — les titres des colonnes (collés en haut) passent au-dessus des petites icônes des lignes (› de dépliage, loupes, pastilles) :
   une ligne qui défile sous les titres ne s'y superpose plus */
.bdg-d-page table thead th, .bdg-d-page table thead td, .nvp table thead th { z-index: 6; }
/* v774 (point 7) : cadre de sélection fin, partout le même */
#sviSelFrame { border-width: 1.5px; border-radius: 3px; }
/* v774 (point 7) : plus de second cadre intérieur (case DÉBUT / FIN du planning…) : seul le petit cadre commun reste */
:is(table.ins-table, table.sd-t, table.dly-table, table.inc-table, table.prm-table, table.qq-table) td.svi-tdf > :is(input, textarea, .ins-dv) { box-shadow: none !important; }
/* v776 : PAGES DES ACHATS au format de l'écran d'un budget */
#ach.ach-page { margin: -14px; }
#ach.ach-page > .section-head, #ach.ach-page > .ach-tabs { display: none !important; }
#ach .nvp.bdg-d-page { padding: 0 14px 14px; }
#ach .nvp .bdg-d-sticky { margin: 0 -14px 12px; }
#ach .nvp .nvp-blk { margin-bottom: 14px; }
#ach .nvp .nvp-blk .blk-head { display: flex; align-items: center; justify-content: space-between; }
#ach .nvp .nvp-blk .blk-tools { margin-left: auto; display: inline-flex; gap: 8px; }
#ach .nvp .nvp-blk.nvp-max .rec-scroll { max-height: none !important; }
#ach .nvp.nvp-valide .bdg-d-h1 { color: #12355b; }
#ach.ach-page { background: #fff; }
#ach .nvp .bdg-d-sticky { border-bottom-color: #4b5565; }
#ach .nvp tr.rec-new { cursor: pointer; }
#ach .nvp .novapp-list-titlebar .bdg-d-badge.ach-h { border-radius: 4px; background: transparent; border: 1.6px solid currentColor; color: #3f4856; width: 24px; height: 24px; padding: 0; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
#ach .nvp.bdg-inst-instance .novapp-list-titlebar .bdg-d-badge.ach-h { color: var(--inst, #b91c1c) !important; }
#ach .nvp.bdg-inst-instance > .bdg-d-block:not(.blk-suivi) > .bdg-d-block-title { border-left-color: var(--inst, #b91c1c); }
#ach .nvp.bdg-d-page { background: #fff; }
#ach .nvp .rec-table tr.rec-new td { color: #172033; }
#ach .nvp .rec-table thead th { position: sticky; top: 0; }

/* v780 (remarque 4) : COMPTEURS — différent de zéro = ORANGE, quel que soit le mode ; zéro = gris */
.svi-cnt.cnt-nz { color: var(--tb-cnt-on); }   /* v785 : la pastille garde sa couleur, seul le CHIFFRE passe en orange (forcé : passe devant la couleur propre des onglets) */
/* v780 (remarque 3) : CASES À COCHER — cochée = couleur du mode en cours, partout */
input[type=checkbox], input[type=radio] { accent-color: var(--tb-cb-c) !important; }   /* forcé : passe devant les accent-color propres (--inst) */
/* v780 (remarques 2 et 5) : lignes des budgets, avenants, scénarios, versions, recalages — même police, taille et graisse que les autres lignes,
   ni gras, ni italique, ni barré propres ; seule la couleur dit l'état, celle de LEUR état (pas celle de l'écran ouvert) */
#budgetListTable tbody td, table.svi-bdgl tbody td { font-style: normal; text-decoration-line: none; }
#budgetListTable tbody td *, table.svi-bdgl tbody td *, .blk-etp tbody td, .blk-etp tbody td span, .blk-etp tbody td b { font-style: normal; text-decoration-line: none; }
#budgetListTable tbody td span, #budgetListTable tbody td b:not(.obs-bang), table.svi-bdgl tbody td span, table.svi-bdgl tbody td b:not(.obs-bang), .blk-etp tbody td span, .blk-etp tbody td b { font-weight: inherit !important; }
#budgetListTable tr.bdg-kid[data-kid="glob"] td, table.svi-bdgl tr.bdg-kid[data-kid="glob"] td, .rcl-table tr.rcl-cours td { font-weight: var(--row-fw, 400) !important; }
.blk-etp .scn-table .scn-nm.scn-go { text-decoration-line: underline !important; }
#budgetListTable tbody td .budget-link, table.svi-bdgl tbody td .budget-link { text-decoration-line: underline !important; }
.blk-etp tr.st-instance td, .blk-etp tr.st-actif td { color: var(--st-instance, #b91c1c); }
.blk-etp tr.st-fige td { color: var(--st-fige, #15803d) !important; }
.blk-etp tr.st-valide td, .blk-etp tr.st-reserve td { color: var(--st-valide, #172033) !important; }
.blk-etp tr.st-expire td { color: var(--st-expire, #b45309) !important; }
/* v923 (remarque 1) : états REMIS et NON LETTRÉ (couleurs de la palette) */
table tr.etat-remis td, table tr.inst-remis td, .st-remis { color: var(--st-remis, #ea580c); }
table tr.etat-nonlettre td, table tr.inst-nonlettre td, .st-nonlettre { color: var(--st-nonlettre, #a21caf); }
.fmt-t td.fmt-na { color: #9aa3af; }
.blk-etp tr.st-archive td, .blk-etp tr.etp-arch td { color: var(--st-archive, #6d28d9) !important; }
/* v780 (remarque 11) : corbeille des scénarios = la corbeille rouge de la liste des budgets */
.scn-table .scn-del.bdg-row-del { color: var(--st-instance, #b91c1c); display: inline-flex; align-items: center; justify-content: center; }

/* =====================================================================
   v783 : APERÇU UNIQUE — MISE EN PAGE par blocs (09e-mise-en-page.js)
   ===================================================================== */
#sviMep { position: fixed; inset: 0; z-index: 10090; display: grid; grid-template-columns: 330px minmax(0, 1fr); background: #eef0f4; font-family: var(--tb-font, Arial, sans-serif); }
body.mep-open { overflow: hidden; }
:is(#sviMep, #sviMepOff) .mep-side { overflow-y: auto; background: #fff; border-right: 1px solid #e1e5eb; padding: 14px 16px 30px; display: flex; flex-direction: column; gap: 8px; }
:is(#sviMep, #sviMepOff) .mep-h { display: flex; justify-content: space-between; align-items: center; } :is(#sviMep, #sviMepOff) .mep-h b { font-size: 15px; color: #172033; }
:is(#sviMep, #sviMepOff) .mep-ib { width: 36px; height: 36px; border: 1px solid #d6dbe3; border-radius: 9px; background: #fff; font-size: 16px; cursor: pointer; }
:is(#sviMep, #sviMepOff) .mep-s { font-size: 11.5px; color: #4b5563; line-height: 1.35; }
:is(#sviMep, #sviMepOff) .mep-l { font-size: 10.5px; font-weight: 800; color: #6b7480; margin-top: 4px; letter-spacing: .3px; }
:is(#sviMep, #sviMepOff) .mep-c { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #172033; }
:is(#sviMep, #sviMepOff) .mep-c input { width: 18px; height: 18px; margin: 0; }
:is(#sviMep, #sviMepOff) .mep-sub { display: flex; flex-direction: column; gap: 6px; padding-left: 26px; }
#sviMep select, :is(#sviMep, #sviMepOff) .mep-tx { width: 100%; height: 34px; border: 1px solid #d6dbe3; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12px; background: #fff; }
:is(#sviMep, #sviMepOff) .mep-tx { height: auto; padding: 6px 8px; }
:is(#sviMep, #sviMepOff) .mep-al { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
:is(#sviMep, #sviMepOff) .mep-btn { min-height: 34px; padding: 0 10px; border: 1px solid #d6dbe3; border-radius: 8px; background: #fff; font: inherit; font-size: 11.5px; font-weight: 800; color: #172033; cursor: pointer; }
:is(#sviMep, #sviMepOff) .mep-al .mep-btn { flex: 1; }
:is(#sviMep, #sviMepOff) .mep-btn.on { border-color: #2050d8; color: #2050d8; background: #eef3ff; }
:is(#sviMep, #sviMepOff) .mep-btn:disabled { opacity: .4; cursor: default; }
:is(#sviMep, #sviMepOff) .mep-mp { margin-top: 14px; height: 40px; }
:is(#sviMep, #sviMepOff) .mep-g { height: 44px; background: #2050d8; border-color: #2050d8; color: #fff; }
:is(#sviMep, #sviMepOff) .mep-x { color: var(--st-instance, #b91c1c); border-color: #f1c4c4; }
:is(#sviMep, #sviMepOff) .mep-msg { font-size: 12px; font-weight: 700; color: #2050d8; }
:is(#sviMep, #sviMepOff) .mep-blk, :is(#sviMep, #sviMepOff) .mep-fs { font-size: 12.5px; font-weight: 700; color: #172033; }
:is(#sviMep, #sviMepOff) .mep-sw { width: 24px; height: 24px; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px #d6dbe3; cursor: pointer; flex: none; }
:is(#sviMep, #sviMepOff) .mep-sw.on { box-shadow: 0 0 0 2px #2050d8; }
:is(#sviMep, #sviMepOff) .mep-cw { display: flex; flex-direction: column; gap: 4px; }
:is(#sviMep, #sviMepOff) .mep-cwr { display: grid; grid-template-columns: 20px 1fr 28px 28px 20px 28px 26px 28px; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; }
:is(#sviMep, #sviMepOff) .mep-cwr .mep-btn { min-height: 24px; padding: 0; }
:is(#sviMep, #sviMepOff) .mep-cwr.off span { color: #9aa3b2; } :is(#sviMep, #sviMepOff) .mep-cwr i { grid-column: span 3; font-size: 10px; color: #2050d8; }
:is(#sviMep, #sviMepOff) .mep-area { overflow: auto; padding: 20px; }
:is(#sviMep, #sviMepOff) .mep-pages { display: flex; flex-direction: column; align-items: center; gap: 16px; }
:is(#sviMep, #sviMepOff) .mep-pw { position: relative; }
:is(#sviMep, #sviMepOff) .mep-pg { position: absolute; left: 0; top: 0; background: #fff; color: #000; box-shadow: 0 2px 12px rgba(0,0,0,.12); transform-origin: 0 0; overflow: hidden; font: 10pt/1.35 "Times New Roman", Times, serif; text-transform: none; }
:is(#sviMep, #sviMepOff) .mep-pg * { font-family: "Times New Roman", Times, serif !important; }   /* v925 (remarque 6) : impression en Times, police non réglable */
:is(#sviMep, #sviMepOff) .mep-b { position: absolute; box-sizing: border-box; overflow: visible; }
:is(#sviMep, #sviMepOff) .mep-b img { max-width: 100%; max-height: 100%; display: block; margin: 0 auto; }
:is(#sviMep, #sviMepOff) .mep-entete img { width: 100%; height: 100%; object-fit: contain; }
:is(#sviMep, #sviMepOff) .mep-stamp { transform: rotate(-6deg); }
:is(#sviMep, #sviMepOff) .mep-ft { border-top: 1px solid #999; padding-top: 6px; text-align: center; }
:is(#sviMep, #sviMepOff) .mep-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
:is(#sviMep, #sviMepOff) .mep-t th, :is(#sviMep, #sviMepOff) .mep-t td { border: 1px solid #222; padding: var(--rp, 4px) 6px; font-size: inherit; line-height: 1.25; word-wrap: break-word; }
:is(#sviMep, #sviMepOff) .mep-t th { background: var(--hbg, #f2f2f2); font-weight: 700; text-align: center; }
:is(#sviMep, #sviMepOff) .mep-t td.nm { text-align: right; white-space: nowrap; } :is(#sviMep, #sviMepOff) .mep-t td.c { text-align: center; }
:is(#sviMep, #sviMepOff) .mep-tot { width: 100%; border-collapse: collapse; }
:is(#sviMep, #sviMepOff) .mep-tot th, :is(#sviMep, #sviMepOff) .mep-tot td { border: 1px solid #222; padding: 5px 8px; font-size: inherit; }
:is(#sviMep, #sviMepOff) .mep-tot th { text-align: left; background: #f2f2f2; } :is(#sviMep, #sviMepOff) .mep-tot td { text-align: right; }
:is(#sviMep, #sviMepOff) .mep-wm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 0; font: 900 70px Arial, sans-serif; color: rgba(185,28,28,.10); transform: rotate(-35deg); white-space: nowrap; }
:is(#sviMep, #sviMepOff) .mep-no { position: absolute; right: 24px; bottom: 10px; font-size: 11px; font-weight: 700; }
:is(#sviMep, #sviMepOff) .mep-pg.lay .mep-b.ed { outline: 1.5px dashed #7aa5f0; background: rgba(54,97,227,.04); cursor: move; touch-action: none; }
:is(#sviMep, #sviMepOff) .mep-pg.lay .mep-b.ed.sel { outline: 2px solid #2050d8; background: rgba(54,97,227,.08); }
:is(#sviMep, #sviMepOff) .mep-pg.lay .mep-corps { overflow: hidden; }
:is(#sviMep, #sviMepOff) .mep-lb { position: absolute; left: 0; top: -17px; font: 700 10px Arial, sans-serif; color: #2050d8; background: #fff; padding: 0 4px; white-space: nowrap; }
:is(#sviMep, #sviMepOff) .mep-rz { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: #2050d8; border: 2px solid #fff; cursor: nwse-resize; touch-action: none; }
@media print {
  body, body * { font-family: "Times New Roman", Times, serif !important; }
  body.mep-printing > *:not(#sviMep) { display: none !important; }
  body.mep-printing #sviMep { position: static; display: block; background: #fff; }
  body.mep-printing :is(#sviMep, #sviMepOff) .mep-side { display: none; }
  body.mep-printing :is(#sviMep, #sviMepOff) .mep-area { padding: 0; overflow: visible; }
  body.mep-printing :is(#sviMep, #sviMepOff) .mep-pages { gap: 0; display: block; }
  body.mep-printing :is(#sviMep, #sviMepOff) .mep-pw { width: auto !important; height: auto !important; page-break-after: always; break-after: page; }
  body.mep-printing :is(#sviMep, #sviMepOff) .mep-pg { position: relative; box-shadow: none; transform: none !important; }
}
@media (max-width: 760px) { #sviMep { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } :is(#sviMep, #sviMepOff) .mep-side { max-height: 45vh; } }
:is(#sviMep, #sviMepOff) .mep-tot { table-layout: fixed; }
body.mep-open #sviScreenTag, body.mep-open #sviSync, body.mep-open #sviTestTag, body.mep-open #sviNavPill { display: none !important; }
:is(#sviMep, #sviMepOff) table { min-width: 0; }
/* v784 : tableaux tout faits du budget dans l'aperçu unique (mêmes règles que l'ancien aperçu) */
:is(#sviMep, #sviMepOff) .mep-raw td.c { text-align: center; } :is(#sviMep, #sviMepOff) .mep-raw td.r { text-align: right; }
:is(#sviMep, #sviMepOff) .mep-raw th { background: var(--hbg, #d9dee6); } :is(#sviMep, #sviMepOff) .mep-raw th.sub { padding: 2px 1px; }
:is(#sviMep, #sviMepOff) .mep-raw td.pk { font-weight: bold; } :is(#sviMep, #sviMepOff) .mep-raw td.rep { color: #555; font-style: italic; }
:is(#sviMep, #sviMepOff) .mep-raw tr.gfirst td, :is(#sviMep, #sviMepOff) .mep-raw tr.mdes td { border-top: 1.6px solid #000; } :is(#sviMep, #sviMepOff) .mep-raw tr.mdes td { font-weight: bold; }
:is(#sviMep, #sviMepOff) .mep-raw tr.msub td:nth-child(2) { font-style: italic; text-decoration: underline; }
:is(#sviMep, #sviMepOff) .mep-raw tr.stot td { background: #eef1f6; font-weight: bold; }
:is(#sviMep, #sviMepOff) .mep-raw table.paq tr.paq-s td, :is(#sviMep, #sviMepOff) .mep-raw tr.paq-s td { background: #d9dee6; } :is(#sviMep, #sviMepOff) .mep-raw tr.paq-h td { background: #eef1f6; }
:is(#sviMep, #sviMepOff) .mep-totaux .tot { display: flex; flex-direction: column; align-items: flex-end; }
:is(#sviMep, #sviMepOff) .mep-totaux .tot div { display: flex; } :is(#sviMep, #sviMepOff) .mep-totaux .tot span { padding: 3px 6px; text-align: right; }
:is(#sviMep, #sviMepOff) .mep-totaux .tot b { width: 120px; border: 1px solid #000; border-top: 0; padding: 3px 6px; text-align: right; font-weight: normal; }
:is(#sviMep, #sviMepOff) .mep-totaux .tot div:first-child b { border-top: 1px solid #000; }
:is(#sviMep, #sviMepOff) .mep-totaux .arr { margin-top: 14px; font-weight: bold; line-height: 1.7; text-align: left; }
/* v784 : ⋯ du titre des listes, à droite */
/* v785 : AGRANDIR / RÉDUIRE dans le ⋯ des blocs — plus d'icône dans l'en-tête (le bouton reste, caché, pour le double toucher et le ⋯) */
html body .blk-tools .blk-btn.blk-max-btn, #ach .nvp .blk-tools [data-nvmax] { display: none !important; }

/* v785 : la ligne « CRÉER … ICI » reste toujours visible, collée en bas du bloc (réduit ou agrandi) ; à l'ouverture on voit le haut du tableau */
:is(table.ins-table, table.rec-table, table.dly-table, table.prm-table, table.pv-t, table.cmp-t, table.cond-t, table.novapp-budget-table, table.svi-bdgl, table.ach-table, table.bdg-d-table, table.scn-table, table.mg-table, table.qq-table, table.sd-t, table.imp-table, table.av-stg-t, table.inc-table, table.apr-t, table.dpk-t, table.ins-t, table.ind-table, table.lk-table, table.ver-t, table.rcl-table, table.qq-t, table.cmpm-t, table.av-t, table.rat-t, table.ibd-table, table.cum-t, table.ctr-t, table.ver-table, table.lkw-t, table.ld-t, table.imp-ask-t, table.hb-t, table.gc-t, table.gax-t) tbody tr:is(.ins-new, .rec-new, .scn-new, .qq-new, .dlw-newr) td { position: sticky; bottom: 0; z-index: 5; }
.ins-hcol .bdg-h-col .ins-li.ins-new, .bdg-h-col .ins-li.ins-new { position: sticky; bottom: 0; z-index: 5; background: var(--tb-new-bg); }
/* v785 : barre commune dans le titre des listes, à droite */
.novapp-list-titlebar .svi-listbar, .novapp-list-titlebar > .svi-hdr { margin-left: auto; display: flex; }
.novapp-list-titlebar .svi-listbar .svi-hdr { margin-left: 0; }
/* ===== v787 (Ahmed, 01/11) ===== */
/* titres : signe › / ⌄ sans carré, dans une place réservée devant le nom ; noms des titres et des lignes du même rang alignés */
:is(.ins-table tr.ins-title, .ins-table tr.ins-gtitle, .ins-hcol) .ins-fold { border: 0; background: none; box-shadow: none; width: 14px; height: 18px; border-radius: 0; color: var(--ttl-c, #334155) !important; -webkit-text-fill-color: var(--ttl-c, #334155); font-size: 15px; opacity: 1; }
:is(.ins-table tr.ins-title, .ins-table tr.ins-gtitle, .ins-hcol) .ins-fold.fs-red { color: var(--inst, #b91c1c) !important; -webkit-text-fill-color: var(--inst, #b91c1c) !important; }
:is(.ins-table tr.ins-title, .ins-table tr.ins-gtitle, .ins-hcol) .ins-fold.fs-blu { color: #1d4ed8 !important; -webkit-text-fill-color: #1d4ed8 !important; }
:is(.ins-table tr.ins-title, .ins-table tr.ins-gtitle, .ins-hcol) .ins-fold.fs-vio { color: #7c3aed !important; -webkit-text-fill-color: #7c3aed !important; }
.ins-table tr.ins-title .ins-tfz { left: calc(6px + var(--d, 0) * 20px); }
.bdg-d-table.ins-table tr[data-ik="des"]:is([data-iid], .ins-new, .ins-title) :is(input, textarea, .ins-dv)[data-f="des"], .bdg-d-table.ins-table[data-ik="des"] tr:is([data-iid], .ins-new, .ins-title) :is(input, textarea, .ins-dv)[data-f="des"] { padding-left: calc(24px + var(--d, 0) * 20px) !important; }
/* LOTS : numéro dans sa colonne, puis le signe (ou sa place vide), puis le nom */
.ins-hcol .lot-in .lvl-no { min-width: 2.4em; margin-right: 2px; text-align: left; }
.ins-hcol .lot-in .lot-fold, .ins-hcol .lot-in .lot-fold-sp { width: 14px; margin-right: 4px; }
/* compteurs : chiffre orange sur une pastille d'un gris plus foncé, partout */
.svi-cnt.cnt-nz { background: var(--tb-cnt-nz-bg, #cdd3dc) !important; }
/* barre de titre des blocs un peu moins haute ; ⋯ du bloc plus petit */
.bdg-d-page .bdg-d-block-title, #ach .nvp .bdg-d-block-title { padding-top: 2px !important; padding-bottom: 2px !important; min-height: 0 !important; }
.bdg-d-block-title .blk-tools .blk-more, #ach .nvp .blk-tools [data-nvmore] { width: 28px !important; height: 24px !important; border-radius: 7px !important; font-size: 15px !important; }
/* v919 (remarque 6 du 04/11/2026) : ↻ GÉNÉRER / COMPRESSER, ⚙ et RÉGLAGES DU GANTT du bloc DÉTAIL à la taille du ⋯ — la barre de titre garde la hauteur des autres blocs */
.bdg-d-block-title .blk-tools .blk-btn:is(.blk-adj-btn, .blk-cfg-btn, .blk-hcfg-btn).dly-on { width: 28px !important; height: 24px !important; border-radius: 7px !important; font-size: 15px !important; margin-right: 4px; }
.bdg-d-block-title .blk-tools .blk-btn:is(.blk-adj-btn, .blk-cfg-btn, .blk-hcfg-btn).dly-on svg { width: 15px !important; height: 15px !important; }
.ins-hcol .lot-in :is(input.ins-in, input.lot-gname) { padding-left: 5px; text-indent: 0; }
/* v789 : nom d'un lot / d'une activité décollé de la case d'avant ; la ligne CRÉER commence au même alignement */
.ins-hcol .ins-li:not(.ins-new) > input.ins-in { padding-left: 5px; }
/* ===== v788 (Ahmed, 01/11) — base commune ===== */
:root {
  /* trois gris de structure, du plus foncé au plus clair : barre du bloc, onglets, titres des colonnes */
  --blk-head-bg: #dde2e9; --tb-tab-bg: #eceff3; --tb-head-bg: #f6f7f9;
  /* titres dans les tableaux (pliage) : gris chaud — jamais le bleu des filtres */
  --ttl-bg: #ece8e1; --ttl-c: #2f2a24;
  /* lignes CRÉER … ICI : toujours rouge (rien n'est encore validé), partout */
  --tb-new-c: #b91c1c; --tb-new-bg: #fdf0f0; --tb-new-fw: 400;
  /* pliage : un pas de retrait par niveau, place réservée au signe */
  --fold-step: 20px; --fold-w: 16px;
}
.bdg-d-tabs, #bdgTabs, .rec-tabs { background: var(--tb-tab-bg); }
.bdg-d-tab:not(.active):not(.tab-filt), .rec-tab:not(.on):not(.tab-filt) { background: var(--tb-tab-bg); }
:is(table) thead th, .bdg-h-head { background: var(--tb-head-bg); }
tr.ins-gtitle:not(.ins-hasck):not(.lk-sel):not(.lk-link):not(.lk-hit):not(.ro-on) td, .dly-grp:not(.ins-hasck):not(.lk-sel):not(.lk-link):not(.lk-hit):not(.ro-on) td,
.ins-hcol .ins-li.lot-grp:not(.ins-hasck):not(.lk-sel):not(.lk-link):not(.lk-hit):not(.ro-on) { background: var(--ttl-bg) !important; }
/* lignes CRÉER */
:is(table) tbody tr:is(.ins-new, .rec-new, .scn-new, .bdg-newrow, .qq-new, .qq-xnew, .dlw-newr, .dly-new, .ach-new) td,
.ins-hcol .ins-li.ins-new { background: var(--tb-new-bg) !important; color: var(--tb-new-c) !important; -webkit-text-fill-color: var(--tb-new-c); font-weight: var(--tb-new-fw) !important; opacity: 1 !important; }
:is(table) tbody tr:is(.ins-new, .rec-new, .scn-new, .qq-new, .dlw-newr, .dly-new, .ach-new) :is(input, textarea)::placeholder, .ins-hcol .ins-new input::placeholder { color: var(--tb-new-c) !important; -webkit-text-fill-color: var(--tb-new-c) !important; opacity: 1 !important; font-weight: var(--tb-new-fw) !important; }
#ach .nvp .rec-table tr.rec-new td { color: var(--tb-new-c); }
/* en-têtes LOT / ACTIVITÉS = en-têtes de tableau (plus de petits cadres arrondis) */
.bdg-h-col { border-radius: 0 !important; border: 1px solid var(--tb-line, #d9dee6) !important; }
.ins-hcol .bdg-h-head { min-height: var(--tb-head-h); font-size: var(--tb-head-fs); font-weight: var(--tb-head-fw); color: var(--tb-head-c); border-bottom: 1px solid var(--tb-head-line); }
/* aucun carré autour d'un signe de pliage, même dans l'en-tête */
.fold-all { border: 0; background: none; min-width: var(--fold-w); padding: 0; margin-right: 2px; }
/* loupe (tri / filtre) éloignée du bord : le bord reste à la poignée de largeur ; poignée plus facile à attraper */
.cf-wrap .cf-btn { margin-right: 10px !important; }
thead th .col-rs { width: 18px !important; right: -9px !important; z-index: 6 !important; }
thead th:last-child .col-rs { right: 0 !important; width: 9px !important; }
/* colonnes : jamais plus étroites que leur nom */
/* (v788) largeur minimale : 64 px pour une largeur réglée à la main (cwGet) */
/* v788 (remarque 3) : sélection de plusieurs cases — fond continu, un seul cadre autour (#sviSelBox), un seul trait entre les lignes */
td.svi-cs { box-shadow: none !important; }
.ins-hcol input.svi-ls, .ins-hcol .act-u.svi-ls { box-shadow: none !important; background: transparent !important; }
.ins-hcol .ins-li:has(.svi-ls) { background: var(--inst-bg, #eef0f3) !important; }
#sviSelBox { position: absolute; display: none; box-sizing: border-box; border: 2px solid var(--inst, #b91c1c); pointer-events: none; border-radius: 1px; }
/* v788 (remarque 4) : COPIER / COLLER / EFFACER = petit menu de l'application (forme du ⋯), en colonne */
#sviSelBar { flex-direction: column !important;   border-radius: 10px !important; }
#sviSelBar button { text-align: left !important;  border-left: 0 !important; border-radius: 6px !important; font: 700 12px/1.2 Arial, sans-serif !important; }
#sviSelBar .blk-sep { height: 1px; background: #e5e9ef;  }
#sviSelBar .sb-del { color: #b91c1c !important; }
/* jamais la bulle de l'iPad sur une case de tableau */
:is(table) td, .ins-hcol .ins-li { -webkit-touch-callout: none; }
body.svi-multi #sviSelBox, body.svi-multi td.svi-cs { outline-color: #1d4ed8; }
/* v788 (remarque 8) : DÉTAIL DÉLAIS — hors plein écran, seulement le tableau du planning ; Gantt et graphique en plein écran seulement */
html:not([data-dly-all]) .bdg-d-page:not(.max-detail) #bdgTabBody :is(.dlyg > :not(.dlyg-l), .dlyg-foot, .dlyg-hh, .gh-fix, .dlyhh-pill) { display: none; }
html:not([data-dly-all]) .bdg-d-page:not(.max-detail) #bdgTabBody .dlyg-l { max-width: 100% !important; width: auto; flex: 1 1 auto; }
#svConf .colh-list { display: block; }
#svConf .colh-t tr.colh-r { cursor: pointer; }
#svConf .colh-t input { width: var(--tb-cb, 16px); height: var(--tb-cb, 16px); accent-color: var(--svst, #172033); }
/* v788 (remarque 15) : RÈGLE COMMUNE DU PLIAGE — DÉTAIL CHARGES / PRODUITS : le nom d'un titre et celui d'une ligne seule commencent au même endroit ;
   le signe › / ⌄ se loge dans la place réservée juste avant le nom (dans la même colonne) ; les lignes d'un titre rentrent d'un pas */
.ins-table:is([data-ik="chg"], [data-ik="prd"]) tbody tr:not(.ins-gtitle):not(.ins-gkid) td > :is(input, textarea)[data-f="des"] { padding-left: calc(6px + var(--fold-w)); }
.ins-table:is([data-ik="chg"], [data-ik="prd"]) tbody tr.ins-gkid td > :is(input, textarea)[data-f="des"] { padding-left: calc(6px + var(--fold-w) + var(--fold-step)) !important; }
.ins-table tr.ins-gtitle td.ins-gtd { padding-left: calc(6px + var(--fold-w)) !important; }
.ins-table tr.ins-gtitle td.ins-gtd > input.ins-gin[data-f="des"] { padding-left: 0 !important; }
.ins-table tr.ins-gtitle .ins-gfz { width: calc(6px + var(--fold-w)) !important; justify-content: flex-end !important; padding-right: 1px; box-sizing: border-box; }
/* v789 : menu tri / filtre dans l'ordre de Google Sheets — TRIER, puis FILTRER PAR CONDITION, puis FILTRER PAR VALEURS (recherche juste au-dessus des cases) */
#cfMenu .cf-sep { height: 1px; background: #e5e9ef; margin: 6px 0; }
#cfMenu .cf-h { font-size: 10.5px; font-weight: 800; color: #6b7480; letter-spacing: .03em; margin: 6px 2px 4px; }
#cfMenu .cf-cond:empty { display: none; }
#cfMenu .cf-h:has(+ .cf-cond:empty) { display: none; }
/* v789 : petit menu des cases compact (trois mots courts) */
#sviSelBar { min-width: 0 !important; width: max-content; padding: 3px !important; }
#sviSelBar button { padding: 6px 12px !important; font-size: 11.5px !important; }
#sviSelBar .blk-sep { margin: 2px 4px; }
td.svi-cs.svi-cs1, .ins-hcol .ins-li.svi-cs1 { box-shadow: inset 0 0 0 1.5px var(--inst, #111827) !important; }
/* v789 (remarque I) : DÉLAIS hors plein écran = tableau ordinaire : mêmes titres de colonnes que les autres onglets (hauteur, taille) */
html:not([data-dly-all]) .bdg-d-page:not(.max-detail) #bdgTabBody .dlyg-l .dly-table thead th { height: var(--tb-head-h); }
html:not([data-dly-all]) .bdg-d-page:not(.max-detail) #bdgTabBody .dlyg-l .dly-table thead th { padding-top: 0 !important; padding-bottom: 0 !important; line-height: var(--tb-head-lh); min-height: 0; }
html:not([data-dly-all]) .bdg-d-page:not(.max-detail) #bdgTabBody .dlyg-l .dly-table tbody td { height: var(--tb-row-h); }
/* v789 : CRÉER UN LOT ICI… commence au même alignement que les noms des lots (après la place du numéro et du signe) */
.ins-hcol[data-ik="lot"] .ins-li.ins-new input.ins-in { padding-left: calc(2.4em + 2px + 14px + 4px + 5px); }
/* v790 : PARAMÉTRAGE à deux niveaux (rubriques, onglets) ; FORMAT › ÉLÉMENTS */
.prm-tabs { flex-wrap: wrap; }
.prm-rubs { display: flex; gap: 4px; width: 100%; padding-bottom: 6px; border-bottom: 1px solid #e5e9f0; margin-bottom: 2px; }
.prm-rub { border: 1px solid #d6dbe3; background: #fff; border-radius: 8px; padding: 6px 14px; font: 800 12px Arial, sans-serif; color: #6b7280; cursor: pointer; }
.prm-rub.on { background: #172033; color: #fff; border-color: #172033; }
.prm-tab[hidden] { display: none; }
.fmt-t .fmt-fs { width: 52px; }
.fmt-t input[type=color] { width: 44px; height: 24px; border: 1px solid #d6dbe3; border-radius: 4px; padding: 0; background: none; }
.fmt-t .fmt-lab { font-size: 12px; }
/* v790 (DOCUMENT UNIQUE §10.2) : fenêtres — bandeau de titre en haut, aux couleurs de la palette */
#svConf .svc-card > .svc-t { background: var(--blk-head-bg, #dde2e9); margin: -18px -20px 12px; padding: 12px 54px 12px 20px; border-radius: 12px 12px 0 0; }
#svConf .svc-card > .svc-close { top: 7px; }
/* ===== v790 (DOCUMENT UNIQUE) ===== */
/* §2.3 : trait de gauche de TOUS les blocs (DÉTAIL et SUIVI compris) dans la couleur de l'état de l'écran (palette) */
.bdg-inst-instance .bdg-d-page .bdg-d-block-title, .bdg-inst-fige .bdg-d-page .bdg-d-block-title,
.bdg-inst-instance .bdg-d-page #bdgDetailHead, .bdg-inst-fige .bdg-d-page #bdgDetailHead,
.bdg-inst-instance .bdg-d-page .blk-suivi .bdg-d-block-title, .bdg-inst-fige .bdg-d-page .blk-suivi .bdg-d-block-title { border-left: 4px solid var(--inst); }
.bdg-d-page #bdgDetailHead, .bdg-d-page .blk-suivi .bdg-d-block-title, #ach .nvp .blk-suivi .bdg-d-block-title { border-left: 4px solid var(--inst, var(--st-valide, #172033)) !important; }
/* §2.5 : colonne sélectionnée (toucher son titre) = teinte grise, jamais un second bleu par-dessus le bleu des lignes liées */
th.col-sel, td.col-sel, .bdg-h-head.col-sel, .ins-hcol.col-sel .ins-li, .bdg-h-col.col-sel .bdg-h-item { background-image: linear-gradient(rgba(15, 23, 42, .07), rgba(15, 23, 42, .07)) !important; }
/* §10.2 : fenêtre MASQUER / AFFICHER — titres alignés sur leur contenu */
#svConf .colh-t { table-layout: fixed; width: 100%; }
#svConf .colh-t th, #svConf .colh-t td { padding: 0 10px !important; height: var(--tb-row-h); text-align: left; }
#svConf .colh-t .colh-c { width: 110px; text-align: center !important; }
/* §5.2 : l'onglet actif s'arrête au-dessus des titres des colonnes */
#bdgTabs { margin-bottom: 0; border-bottom: 1px solid var(--tb-line, #d9dee6); }
#bdgTabs > .bdg-d-tab.active { box-shadow: inset 0 -2px 0 var(--inst, #172033); }
/* §6.6 : pages des achats — pas de ligne vide ; cases à droite */
#ach .nvp .rec-table .nvp-cbh, #ach .nvp .rec-table td:last-child { width: 44px; }
#svConf tr.colh-r { display: table-row !important; min-height: 0 !important; padding: 0 !important; border-radius: 0 !important; font-size: var(--tb-row-fs) !important; }
#svConf tr.colh-r td { white-space: nowrap; }
/* v791 (point 18) : DÉLAIS hors plein écran = mêmes hauteurs que les autres onglets (en-tête 22, lignes 21) */
html:not([data-dly-all]) .bdg-d-page:not(.max-detail) #bdgTabBody .dly-table tbody td { padding-top: 0 !important; padding-bottom: 0 !important; line-height: var(--tb-row-lh); }
html:not([data-dly-all]) .bdg-d-page:not(.max-detail) #bdgTabBody .dly-table tbody td :is(input, .dly-lotc) { height: calc(var(--tb-row-h) - 2px); min-height: 0; padding-top: 0; padding-bottom: 0; line-height: var(--tb-row-lh); box-sizing: border-box; }
html:not([data-dly-all]) .bdg-d-page:not(.max-detail) #bdgTabBody .dly-table thead th :is(.fold-all, .cf-wrap, .cf-lab) { height: var(--tb-head-lh); max-height: var(--tb-head-lh); }
html:not([data-dly-all]) .bdg-d-page:not(.max-detail) #bdgTabBody .dly-table :is(thead th, tbody td) input[type=checkbox] { margin-top: 0 !important; margin-bottom: 0 !important; vertical-align: middle; }
/* v792 (DOCUMENT UNIQUE §6.3) : le signe « tout plier » ne grandit plus l'en-tête (22 px partout, titres de charges compris) */
table thead th .fold-all, table thead th .cf-wrap, table thead th .cf-lab { height: var(--tb-head-lh); max-height: var(--tb-head-lh); line-height: var(--tb-head-lh); }
table thead th input[type=checkbox] { margin-top: 0 !important; margin-bottom: 0 !important; vertical-align: middle; }
/* ===== v793 (DOCUMENT UNIQUE : moteur commun branché sur la liste des budgets, PARAMÉTRAGE et les fiches d'achat) ===== */
/* §6.6 : ligne « AUCUN … » masquée (le compteur 0 suffit) */
tbody tr.svi-empty-x { display: none; }
/* §6.3 : lignes de 21 px dans les listes — la corbeille ne grandit plus la ligne */
:is(#budgetListTable, table.svi-bdgl) .bdg-action-cell .bdg-row-action { width: 24px; height: 19px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
:is(#budgetListTable, table.svi-bdgl) .bdg-action-cell .bdg-row-action svg { width: 14px; height: 14px; }
/* §6.4 : cases à cocher à droite des listes */
:is(#budgetListTable, table.svi-bdgl) :is(th.nvl-cbh, td.nvl-cbc) { padding: 0; text-align: center; cursor: pointer; }
:is(#budgetListTable, table.svi-bdgl) :is(th.nvl-cbh, td.nvl-cbc) input { margin: 0; vertical-align: middle; }
/* PARAMÉTRAGE (et paramétrage des achats) : lignes de 21 px, saisies et boutons à la hauteur de la ligne */
:is(#chs, #ach) .prm-table tbody td { height: var(--tb-row-h); padding-top: 0 !important; padding-bottom: 0 !important; line-height: var(--tb-row-lh); box-sizing: border-box; }
:is(#chs, #ach) .prm-table tbody td :is(input:not([type=checkbox]):not([type=color]), button, select) { height: calc(var(--tb-row-h) - 2px) !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 17px !important; box-sizing: border-box; font-size: var(--tb-row-fs, 12px); }
:is(#chs, #ach) .prm-table tbody td input[type=color] { height: 17px !important; padding: 0 !important; vertical-align: middle; }
:is(#chs, #ach) .prm-table :is(tbody td, thead th) input[type=checkbox] { margin-top: 0 !important; margin-bottom: 0 !important; vertical-align: middle; }
/* §6.5 : ligne « CRÉER … ICI » de PARAMÉTRAGE au format commun (rouge) */
#chs .prm-table tr.prm-new td { background: var(--tb-new-bg, #fdf0f0) !important; }
#chs .prm-table tr.prm-new input { background: transparent; color: var(--tb-new-c, #b91c1c); }
#chs .prm-table tr.prm-new input::placeholder { color: var(--tb-new-c, #b91c1c); opacity: 1; font-weight: 400; }
table[data-svcw] thead th { position: relative; }
#budgetListTable thead th { background: var(--tb-head-bg) !important; }
/* v793 : le trait de la poignée de largeur est posé SUR le bord de la colonne (il était 9 px à droite dans les tableaux non coupés) */
thead th:not(:last-child) .col-rs::after { right: 50% !important; }
/* v793 (DOCUMENT UNIQUE §2.2) : SUIVI (DOCUMENTS / TAF / OBSERVATIONS) toujours au noir du VALIDÉ (palette), titre et onglet actif compris,
   dans tous les états de l'écran (budget, fiches d'achat) ; seule la ligne « CRÉER … ICI » reste rouge (§6.5 : rien n'est encore créé) */
.bdg-d-page .blk-suivi > .bdg-d-block-title, .bdg-d-page .blk-suivi > .bdg-d-block-title :is(.ttl, .ttl *, svg) { color: var(--st-valide, #172033); }
.bdg-d-page .blk-suivi .rec-tab.active, .bdg-d-page .blk-suivi .rec-tab.active .ico { color: var(--st-valide, #172033); }
/* v922 (remarque 9 du 04/11/2026) : onglet actif du SUIVI comme ceux de RÉVISIONS — plus de trait noir dessous */
.bdg-d-page .blk-suivi .rec-tab.active { box-shadow: none; }
.bdg-d-page .blk-suivi tbody tr:not(.rec-new) td, .bdg-d-page .blk-suivi tbody tr:not(.rec-new) td *:not(.rec-open):not(.rec-imp):not(.ach-link) { color: var(--st-valide, #172033) !important; }
.bdg-d-page .blk-suivi tbody tr.rec-new td { color: var(--tb-new-c, #b91c1c); background: var(--tb-new-bg, #fdf0f0); }
/* v794 — document unique 3.5 : tableau des dates des listes — ligne du haut sans cadre blanc, flèche ▾ seule un peu à droite du mot, pastille alignée sur celles des dates */
.novapp-date-head, #bdgDatePanel .novapp-date-head, .svi-bdgp .novapp-date-head { padding: 0; }
.novapp-date-filter, #bdgDatePanel .novapp-date-filter, .svi-bdgp .novapp-date-filter { width: 100%; height: 100%; max-height: none; min-height: 30px; padding: 0 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.novapp-date-filter .dt-arr { font-style: normal; margin-left: 4px; }
.novapp-date-filter .svi-cnt { margin-left: 6px; }
/* v795 — document unique 2.7 : pastilles de même taille partout (menus d'état compris), ajustées au chiffre, jamais étirées */
.svi-cnt { flex: 0 0 auto; }
/* v798 — moteur commun des fenêtres et des achats (document unique 6.4, 6.5, 8.6, 10.2) : listes et fichiers au format de l'application, ligne CRÉER … ICI, cases à droite */
.sv-natsel, .sv-natfile, .sv-hidebtn { display: none; }
.sv-sel { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 1px solid #d6dbe3; border-radius: 8px; background: #fff; color: #172033; font: inherit; font-size: 12px; font-weight: 700; text-align: left; text-transform: uppercase; cursor: pointer; }
.sv-sel .sv-sel-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-sel .sv-sel-a { font-style: normal; color: #64748b; }
.sv-sel:disabled { background: #f1f3f6; color: #64748b; cursor: default; }
.sv-file { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; }
.sv-file-b { height: 32px; padding: 0 14px; border: 1px solid #d6dbe3; border-radius: 8px; background: #fff; color: #172033; font-weight: 800; font-size: 12px; text-transform: uppercase; cursor: pointer; }
.sv-file-b:disabled { color: #94a3b8; cursor: default; }
.sv-file-n { font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; }
tr.sv-addrow td { color: var(--tb-new-c, #b91c1c); background: var(--tb-new-bg, #fdf0f0) !important; cursor: pointer; font-weight: 700; }
.sv-rmbar { display: flex; justify-content: flex-end; margin: 6px 0 2px; }
.sv-rmall:disabled { opacity: .5; cursor: default; }
input.sv-rmcb { width: 18px; height: 18px; cursor: pointer; }
/* v800 — document unique 3.6 – 3.7 : nom du fournisseur dans la barre du haut d'une pièce, touché = sa page */
#ach .nvp .novapp-list-titlebar .nvp-party { margin-left: 12px; font-size: 15px; font-weight: 800; text-transform: uppercase; text-decoration: underline; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; white-space: nowrap; }

/* v801 : onglets de la fenêtre i du fournisseur */
.frs-card .frs-tabs { display: flex; margin: 0 0 8px; }
.frs-card .frs-sec[hidden] { display: none; }
.frs-card .frs-logo img { height: 48px; max-width: 96px; object-fit: contain; vertical-align: middle; margin-right: 8px; border: 1px solid #d6dbe3; border-radius: 6px; background: #fff; }
.frs-card .frs-f select { height: 30px; }
/* v804 : PARAMÉTRAGE › FORMAT › MASQUES DE SAISIE */
.prm-mask .mask-in { width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, monospace; letter-spacing: 1px; }
.prm-mask .mask-exm { font-family: ui-monospace, Menlo, monospace; letter-spacing: 1px; color: #6b7480; }
.prm-mask .mask-note { margin-top: 8px; font-size: 11px; font-weight: 800; color: #6b7480; }
/* v808 : bloc ENCOURS ET SOLDE au-delà du plafond */
#ach .nvp-blk tr.nv-alert td { color: #b91c1c; font-weight: 900; }
/* v819 : texte sous les totaux des pièces d'achat (montant en lettres, mention à reporter, ICE / IF) */
:is(#sviMep, #sviMepOff) .mep-note { margin-top: 6px; font-size: 11px; font-weight: 700; line-height: 1.35; text-align: left; }

/* v903 (principe du 03/11/2026) : ENREGISTRER grisé tant qu'il manque une case obligatoire ; le toucher dit lesquelles */
.doc-btn.off { opacity: .45; }
/* v910 (checklist C1.38) : logo du fournisseur devant son nom, dans la liste */
.nv-logo { height: 16px; max-width: 40px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
/* v911 (principe du 03/11/2026) : case devenue obligatoire et encore vide, signalée tout de suite */
.ins-in.ins-need { box-shadow: inset 0 0 0 2px #dc2626; background: #fef2f2; }

/* 05/11 : panneau des dates d'une liste des achats — juste la largeur de son contenu, le chiffre vient près de la date */
.novapp-date-panel.svi-bdgp:not(#bdgDatePanel) { width: max-content; min-width: 120px; max-width: 220px; }
.svi-bdgp:not(#bdgDatePanel) .novapp-date-item, .svi-bdgp:not(#bdgDatePanel) .novapp-date-filter { gap: 10px; }

/* C2 (série C, document unique 10.4) : champ non AJUSTABLE = pas de poignée ; un champ agrandi pousse ses voisins (la colonne
   s'élargit pour lui, les lignes descendent), jamais ne les recouvre ; chaque colonne reste alignée à gauche */
.fld-wrap.fld-fix > .fld-rsz { display: none !important; }
.frs-card .frs-g { grid-template-columns: repeat(4, minmax(min-content, 1fr)); }
@media (max-width: 700px) { .frs-card .frs-g { grid-template-columns: repeat(2, minmax(min-content, 1fr)); } }
#docPop .doc-grid[data-top] { grid-template-columns: repeat(3, minmax(min-content, 1fr)) !important; }
#docPop .doc-grid.doc-grid-2[data-top] { grid-template-columns: repeat(2, minmax(min-content, 1fr)) !important; }
@media (max-width: 900px) { #docPop .doc-grid[data-top] { grid-template-columns: repeat(2, minmax(min-content, 1fr)) !important; } }
@media (max-width: 560px) { #docPop .doc-grid[data-top] { grid-template-columns: minmax(min-content, 1fr) !important; } }
#svConf .frs-f > .fld-wrap.sized, #docPop .doc-cell > .fld-wrap.sized { justify-self: start; max-width: none; }

/* C3 (série C, document unique 10.6) : même hauteur pour tous les champs des fenêtres ; même largeur par famille (data-fam) */
:root { --fh: 34px; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(input, select, textarea, .sv-sel, .doc-in)[data-fam]:not(textarea), :is(#svConf, #docPop, #chs .pg-soc-card) .fld-wrap[data-fam] > :is(input, .dt-show) { min-height: var(--fh); }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(input, .sv-sel, select)[data-fam]:not(.fld-wrap *) , :is(#svConf, #docPop, #chs .pg-soc-card) .fld-wrap[data-fam]:not(.sized) > input { height: var(--fh); box-sizing: border-box; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(.fld-wrap:not(.sized), input:not(.fld-wrap *), select:not(.fld-wrap *), .sv-sel, textarea:not(.fld-wrap *))[data-fam="date"] { width: min(132px, 100%) !important; max-width: 100%; flex: none; justify-self: start; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(.fld-wrap:not(.sized), input:not(.fld-wrap *), select:not(.fld-wrap *), .sv-sel, textarea:not(.fld-wrap *))[data-fam="dt"] { width: min(196px, 100%) !important; max-width: 100%; flex: none; justify-self: start; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(.fld-wrap:not(.sized), input:not(.fld-wrap *), select:not(.fld-wrap *), .sv-sel, textarea:not(.fld-wrap *))[data-fam="mt"] { width: min(150px, 100%) !important; max-width: 100%; flex: none; justify-self: start; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(.fld-wrap:not(.sized), input:not(.fld-wrap *), select:not(.fld-wrap *), .sv-sel, textarea:not(.fld-wrap *))[data-fam="pct"] { width: min(96px, 100%) !important; max-width: 100%; flex: none; justify-self: start; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(.fld-wrap:not(.sized), input:not(.fld-wrap *), select:not(.fld-wrap *), .sv-sel, textarea:not(.fld-wrap *))[data-fam="nb"] { width: min(96px, 100%) !important; max-width: 100%; flex: none; justify-self: start; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(.fld-wrap:not(.sized), input:not(.fld-wrap *), select:not(.fld-wrap *), .sv-sel, textarea:not(.fld-wrap *))[data-fam="code"] { width: min(196px, 100%) !important; max-width: 100%; flex: none; justify-self: start; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(.fld-wrap:not(.sized), input:not(.fld-wrap *), select:not(.fld-wrap *), .sv-sel, textarea:not(.fld-wrap *))[data-fam="rib"] { width: min(290px, 100%) !important; max-width: 100%; flex: none; justify-self: start; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(.fld-wrap:not(.sized), input:not(.fld-wrap *), select:not(.fld-wrap *), .sv-sel, textarea:not(.fld-wrap *))[data-fam="tel"] { width: min(164px, 100%) !important; max-width: 100%; flex: none; justify-self: start; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(.fld-wrap:not(.sized), input:not(.fld-wrap *), select:not(.fld-wrap *), .sv-sel, textarea:not(.fld-wrap *))[data-fam="mail"] { width: min(270px, 100%) !important; max-width: 100%; flex: none; justify-self: start; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(.fld-wrap:not(.sized), input:not(.fld-wrap *), select:not(.fld-wrap *), .sv-sel, textarea:not(.fld-wrap *))[data-fam="court"] { width: min(220px, 100%) !important; max-width: 100%; flex: none; justify-self: start; }
:is(#svConf, #docPop, #chs .pg-soc-card) :is(.fld-wrap:not(.sized), input:not(.fld-wrap *), select:not(.fld-wrap *), .sv-sel, textarea:not(.fld-wrap *))[data-fam="long"] { width: 100% !important; max-width: 100%; flex: none; justify-self: start; }

/* C7 : barre du haut commune à droite du titre du PARAMÉTRAGE */
#chs > .section-head > .svi-hdr { flex: none; margin-left: auto; }

/* C8 : SOCIÉTÉ au format des fiches (sans être une .frs-card) */
.pg-soc-card .frs-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.pg-soc-card .frs-f { display: flex; flex-direction: column; gap: 3px; font-size: 10px; font-weight: 800; color: #6b7480; min-width: 0; }
.pg-soc-card .frs-f.frs-w { grid-column: span 2; }
.pg-soc-card .frs-f b { color: #b91c1c; }
.pg-soc-card .frs-f input { height: 30px; border: 1px solid #d6dbe3; border-radius: 6px; padding: 0 8px; font-size: 12px; font-weight: 700; color: #172033; background: #fff; }
.pg-soc-card .frs-cs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pg-soc-card .frs-c { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #172033; cursor: pointer; }
.pg-soc-card .frs-fam { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pg-soc-card .frs-sub { width: 100%; margin-bottom: 6px; }
.pg-soc-card .frs-sub td input, .pg-soc-card .frs-sub td select { width: 100%; height: 28px; border: 1px solid #d6dbe3; border-radius: 6px; padding: 0 6px; font-size: 12px; font-weight: 700; background: #fff; }
.pg-soc-card .frs-evl { font-size: 12px; font-weight: 700; padding: 4px 0; }
.pg-soc-card .frs-add { margin-top: 2px; }
.pg-soc-card .frs-g { grid-template-columns: repeat(4, minmax(min-content, 1fr)); }

/* C9 (série C, document unique 5.4) : deux rangées d'onglets du PARAMÉTRAGE — modules en onglets de classeur sur une bande gris-vert
   (l'actif clair, raccordé à la rangée du dessous) ; sous-onglets légers, l'actif marqué d'un simple trait dessous */
#chs .pg-grps.bdg-d-tabs { background: #b9c7be; padding: 6px 8px 0; margin: 4px 0 0; border-radius: 10px 10px 0 0; gap: 4px; display: flex; align-items: flex-end; border-bottom: 0; }
#chs .pg-grps .prm-grp { background: #cfd9d2; color: #3f4d44; border: 1px solid #a9b8ae; border-bottom: 0; border-radius: 8px 8px 0 0; padding: 7px 18px; box-shadow: none; flex: none; }
#chs .pg-grps .prm-grp.on { background: #f7f9f8 !important; color: #172033 !important; -webkit-text-fill-color: #172033 !important; border-color: #a9b8ae; position: relative; top: 1px; box-shadow: none !important; }
#chs .pg-tabs.bdg-d-tabs { background: #f7f9f8; margin: 0 0 12px; padding: 0 6px; border: 1px solid #a9b8ae; border-top: 0; border-radius: 0 0 10px 10px; }
#chs .pg-tabs > .prm-tab { background: transparent; border: 0; box-shadow: none; }
#chs .pg-tabs > .prm-tab.on { background: transparent !important; box-shadow: inset 0 -2px 0 currentColor !important; color: #172033; }
html.svi-nuit #chs .pg-grps.bdg-d-tabs { background: #18221c; } html.svi-nuit #chs .pg-grps .prm-grp { border-color: #33443a; }
html.svi-nuit #chs .pg-grps .prm-grp.on, html.svi-nuit #chs .pg-tabs.bdg-d-tabs { background: #111827 !important; color: #f1f5f9 !important; -webkit-text-fill-color: #f1f5f9 !important; border-color: #33443a; }

#chs .pg-grps .prm-grp::after, #chs .pg-grps .prm-grp::before { display: none !important; }
.fmw-card > .svc-t { display: flex; align-items: center; gap: 12px; padding-right: 56px; }
.fmw-card > .svc-t .fmw-pal { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.fmw-card .svc-t .fmw-ttl { flex: 1 1 auto; min-width: 0; }
.fmw-card .svc-t .fmw-pal .svc-b { height: 30px; min-height: 0; padding: 0 12px; font-size: 11px; }

/* D5 (série D, document unique 10.2) : la ✕ des fenêtres reste bien visible dans les deux palettes */
html.svi-nuit :is(#svConf, #dlyAddW, #docPop, #svMaskPop) :is(.svc-close, .doc-x) { color: #f8fafc !important; -webkit-text-fill-color: #f8fafc !important; background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.4) !important; border-radius: 8px; opacity: 1 !important; }
:is(#svConf, #dlyAddW) .svc-close { opacity: 1; font-weight: 800; }

/* D6 : heures de la palette AUTOMATIQUE dans le bandeau */
.fmw-card .svc-t .fmw-pal { flex-wrap: wrap; justify-content: flex-end; }
.fmw-card .svc-t .fmw-palt-l { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; }
.fmw-card .svc-t .fmw-palt { width: 62px; height: 30px; text-align: center; border: 1px solid #c8d0da; border-radius: 6px; font-weight: 800; font-size: 12px; }

/* ===== 06/11/2026 (décisions) : UNE SEULE LISTE par type de pièce, cases à cocher des états à gauche ; fiche et fenêtre colorées selon l'état ===== */
.svi-stf { border-bottom: 2px solid #d9dee6; }
.novapp-date-panel .svi-stf-r, .novapp-date-panel .svi-stf-all { cursor: pointer; }
.novapp-date-panel .svi-stf-r > span, .novapp-date-panel .svi-stf-all > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.novapp-date-panel .svi-stf-r input, .novapp-date-panel .svi-stf-all input { width: 15px; height: 15px; margin: 0; flex: none; pointer-events: none; accent-color: var(--svst, #172033); }
.novapp-date-panel .svi-stf-all > span { font-weight: 800; }
.svi-stf-r.stf-instance { color: var(--st-instance, #b91c1c); } .svi-stf-r.stf-fige { color: var(--st-fige, #15803d); }
.svi-stf-r.stf-remis { color: var(--st-remis, #ea580c); } .svi-stf-r.stf-encours { color: var(--st-encours, #0e7490); }
.svi-stf-r.stf-partiel { color: var(--st-partiel, #1d4ed8); } .svi-stf-r.stf-valide { color: var(--st-valide, #172033); }
.svi-stf-r.stf-expire { color: var(--st-expire, #b45309); } .svi-stf-r.stf-bloque { color: var(--st-bloque, #6b7280); }
.svi-stf-r.stf-archive { color: var(--st-archive, #6d28d9); } .svi-stf-r.stf-annule { color: var(--st-annule, #9ca3af); } .svi-stf-r.stf-alerte { color: #c2410c; }
html.svi-nuit .svi-stf-r.stf-valide { color: #e5e7eb; }
/* lignes de la liste unique : chaque ligne dans la couleur de son état (palette) */
table.svi-bdgl tr.st-remis td { color: var(--st-remis, #ea580c) !important; } table.svi-bdgl tr.st-encours td { color: var(--st-encours, #0e7490) !important; }
table.svi-bdgl tr.st-partiel td { color: var(--st-partiel, #1d4ed8) !important; } table.svi-bdgl tr.st-expire td { color: var(--st-expire, #b45309) !important; }
table.svi-bdgl tr.st-bloque td { color: var(--st-bloque, #6b7280) !important; } table.svi-bdgl tr.st-archive td { color: var(--st-archive, #6d28d9) !important; }
table.svi-bdgl tr.st-annule td { color: var(--st-annule, #9ca3af) !important; text-decoration: line-through; }
#ach .nvp .nvp-blk tr.nvr-encours td { color: var(--st-encours, #0e7490) !important; } #ach .nvp .nvp-blk tr.nvr-expire td { color: var(--st-expire, #b45309) !important; }
#ach .nvp .nvp-blk tr.nvr-bloque td { color: var(--st-bloque, #6b7280) !important; } #ach .nvp .nvp-blk tr.nvr-archive td { color: var(--st-archive, #6d28d9) !important; }
html body .ach-link[data-nvgo].lk-encours { color: var(--stg-encours, #0e7490) !important; -webkit-text-fill-color: currentColor !important; }
html body .ach-link[data-nvgo].lk-expire { color: var(--stg-expire, #b45309) !important; -webkit-text-fill-color: currentColor !important; }
html body .ach-link[data-nvgo].lk-archive { color: var(--stg-archive, #6d28d9) !important; -webkit-text-fill-color: currentColor !important; }
/* fenêtre : couleur de l'état de la pièce (celle de la ligne touchée ou de la fiche ouverte) — trait de gauche et titre */
:root[data-svst="remis"] { --svst: var(--st-remis); } :root[data-svst="encours"] { --svst: var(--st-encours); } :root[data-svst="partiel"] { --svst: var(--st-partiel); }
:root[data-svst="expire"] { --svst: var(--st-expire); } :root[data-svst="bloque"] { --svst: var(--st-bloque); } :root[data-svst="archive"] { --svst: var(--st-archive); }
:root[data-svst="annule"] { --svst: var(--st-annule); } :root[data-svst="valide"] { --svst: var(--st-valide); }
:root[data-svst="instance"] { --svst: var(--st-instance, #b91c1c); } :root[data-svst="fige"] { --svst: var(--st-fige, #15803d); }
:root[data-svst] #svConf .svc-card:not(.fmw-card), :root[data-svst] #docPop .doc-card { border-left: 4px solid var(--svst) !important; }
:root[data-svst] #svConf .svc-card:not(.fmw-card) > .svc-t, :root[data-svst] #docPop .doc-head .doc-title { color: var(--svst); -webkit-text-fill-color: var(--svst); }
.novapp-date-panel .svi-stf-r > span, .novapp-date-panel .svi-stf-all > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; }
.novapp-date-panel .svi-stf-r { gap: 6px; }
/* 06/11 (soir) : menu ▾ des états et entonnoir des dates en haut du panneau ; FILTRER PAR COULEUR dans la loupe */
.novapp-date-head { position: relative; }
.novapp-date-head .svi-stf-head { padding-right: 34px !important; }
.novapp-date-head .svi-stf-cf { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: #6b7480; cursor: pointer; }
.svi-stf-menu { min-width: 230px; }
.svi-stf-menu .svi-stf-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 7px 12px; border: 0; border-bottom: 1px solid #eef1f5; background: #fff; font: 800 11px Arial, sans-serif; text-align: left; cursor: pointer; }
.svi-stf-menu .svi-stf-r > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.svi-stf-menu .svi-stf-r input { width: 15px; height: 15px; margin: 0; pointer-events: none; accent-color: var(--svst, #172033); }
#cfMenu .cf-col { display: flex; flex-direction: column; gap: 2px; padding: 2px 10px 6px; }
#cfMenu .cf-coli { display: flex; align-items: center; gap: 8px; font: 700 11px Arial, sans-serif; cursor: pointer; }
#cfMenu .cf-coli i { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.colset-card .cs-al { display: flex; gap: 8px; } .colset-card .cs-al .svc-b.on { outline: 2px solid var(--svst, #172033); }
/* 06/11 (soir) : fenêtre de la CONSULTATION FOURNISSEURS — ARTICLES à gauche, FOURNISSEURS à droite, puis DOCUMENTS et DISPOSITIONS PARTICULIÈRES ;
   un toucher choisit la ligne (fond), un second toucher sur le nom souligné l'ouvre */
.caf-card .cafw-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .caf-card .cafw-top { grid-template-columns: 1fr; } }
.caf-card .cafw-top > .frs-sec { min-width: 0; overflow-x: auto; }
.caf-card tr.cafw-r.sel td { background: #eef2ff !important; }
.caf-card .caf-bsn { max-width: 210px; } .caf-card .caf-des { max-width: 240px; }
/* F6 (série F) : logo de la société — accueil en grand ; petit, décoratif, avant le ≡ dans la barre du haut des autres interfaces */
html.svi-logo .novapp-list-titlebar::before, html.svi-logo :is(#chs, #ach, #bdg) > .section-head::before { content: ""; flex: none; width: 36px; height: 36px; background: var(--svi-logo) center / contain no-repeat; pointer-events: none; order: -1; }
html.svi-logo #home .home-body::before { content: ""; display: block; width: 100%; height: min(60vh, 520px); margin: 12px 0 18px; background: var(--svi-logo) center / contain no-repeat; pointer-events: none; }
.mep-b .mep-hd { font-size: 10px; line-height: 1.3; } #src .head .hdtxt { font-size: 10px; }
/* F16 : poignée de largeur — zone de toucher large (iPad), posée sur le trait entre deux colonnes */
html body table[data-svcw] thead th .col-rs { position: absolute; top: 0; bottom: 0; right: -9px !important; width: 18px !important; cursor: col-resize; touch-action: none; z-index: 9 !important; }
html body table[data-svcw] thead th:last-child .col-rs { right: 0 !important; width: 12px !important; }
table.prm-table:not(.bdg-d-table) thead th, table.frs-sub thead th { position: relative; }
/* F7, F14, F17 (série F) : référence soulignée (ouvre la pièce), case modifiable choisie puis saisie dans la liste, noms des fournisseurs */
table.svi-bdgl .nv-reflink { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
table.svi-bdgl td.nv-ed { cursor: text; } table.svi-bdgl td.nv-ed.nv-sel { box-shadow: inset 0 0 0 2px var(--svst, #172033); }
table.svi-bdgl td.nv-ed input.nv-edin { width: 100%; height: 100%; min-height: 19px; box-sizing: border-box; border: 0; padding: 0 4px; font: inherit; background: #fff; }
table.svi-bdgl td.nv-lk { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* F3 (série F) : ronds de liaison des blocs de la consultation (règle 2.5) — blanc = non lié, bleu clair = lié à ce qui est choisi, plein = choisi */
.nvp-blk td.nvp-rdc, .nvp-blk th.nvp-rdh { width: 26px; text-align: center; padding: 0 !important; }
.nvp-rd { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #94a3b8; background: #fff; padding: 0; cursor: pointer; vertical-align: middle; }
.nvp-rd.rd-lie { background: #bfdbfe; border-color: #3b82f6; } .nvp-rd.rd-choisi { background: #1d4ed8; border-color: #1d4ed8; }
.nvp-blk td select.ins-in, .nvp-blk td input.ins-in { width: 100%; min-width: 60px; height: 19px; padding: 0 4px; border: 0; background: transparent; font: inherit; color: inherit; -webkit-text-fill-color: currentColor; box-sizing: border-box; }
.nvp-blk td .ach-b { height: 18px; padding: 0 6px; font-size: 10px; }
.nvp-blk tr.nvp-gt td { font-weight: 800; }
.nvp-blk td .sv-sel { height: 19px !important; min-height: 0 !important; padding: 0 4px !important; border: 0 !important; background: transparent !important; font: inherit !important; color: inherit !important; width: 100%; box-shadow: none !important; }
.nvp-blk td .sv-sel .sv-sel-t { font: inherit; }
/* 07/11 : détail importé, à vérifier */
tr.cafp-imp > td, tr.cafp-imp > td input, tr.cafp-imp > td select { color: #dc2626 !important; }
tr.cafp-imp > td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
/* 07/11 : glisser une ligne du DÉTAIL CONSULTATION */
html.cafp-dragging, html.cafp-dragging * { user-select: none !important; -webkit-user-select: none !important; }
#ach tr.cafp-dg > td { opacity: .45; }
#ach tr.cafp-db > td { box-shadow: inset 0 3px 0 #2563eb; }
#ach tr.cafp-da > td { box-shadow: inset 0 -3px 0 #2563eb; }
#ach tr.cafp-do > td { background: rgba(37, 99, 235, .15) !important; }
/* 07/11 (document unique 6.3, vérification) : les champs posés dans les cases des pages d'achat ne grandissent pas la ligne — lignes de 21 px */
#ach .nvp table tbody td :is(input.ins-in:not([type=checkbox]), select.ins-in, .sv-sel, button.ach-b) { height: 19px !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 17px !important; box-sizing: border-box !important; margin-top: 0 !important; margin-bottom: 0 !important; vertical-align: middle; }
#ach .nvp table tbody td:has(> :is(input.ins-in, select.ins-in, .sv-sel, button.ach-b)) { padding-top: 0 !important; padding-bottom: 0 !important; }
/* 08/11 (document unique 6.11, remarques d'Ahmed) : listes des achats — chaque colonne prend exactement la largeur réglée, même plus étroite
   que son texte ; le texte trop long est coupé au bord (texte entier dans la bulle, appui long) ; la ligne garde sa hauteur */
table.nv-one { table-layout: fixed; }
table.nv-one tbody td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 08/11 : ligne TOTAL des listes fixée en bas du tableau (toujours visible) ; le mot TOTAL dans la 1re colonne */
table.nv-one tfoot td, #budgetListTable tfoot td { position: sticky; bottom: 0; z-index: 4; }
/* 08/11 (document unique 6.5, remarque d'Ahmed) : la ligne CRÉER … ICI des listes reste fixée en bas, juste au-dessus du TOTAL — on crée sans défiler */
table.nv-one tbody tr[data-nvnew] td, #budgetListTable tbody tr[data-newbdg] td { position: sticky; bottom: var(--svi-tot-h, 22px); z-index: 4; background: var(--tb-new-bg, #fdf0f0); }
table.nv-one:not(:has(tfoot tr)) tbody tr[data-nvnew] td, #budgetListTable:not(:has(tfoot tr)) tbody tr[data-newbdg] td { bottom: 0; }
/* 08/11 (remarque d'Ahmed) : titres des colonnes des listes fixés en haut du tableau quand on fait défiler */
table.nv-one thead th, #budgetListTable thead th { position: sticky; top: 0; z-index: 6; }

/* 08/11 (série G, G1) : la ligne TOTAL prend par défaut le format des titres des colonnes (fond, couleur, taille) ; réglable à part (LIGNE TOTAL) */
:is(table) :is(tfoot td, tr.bdg-d-total-row td) { color: var(--tb-tot-c) !important; -webkit-text-fill-color: var(--tb-tot-c); background: var(--tb-tot-bg) !important; font-size: var(--tb-head-fs, 11px); }
/* G2 : arbre des dates */
.novapp-date-item.dt-l2 { padding-left: 20px !important; } .novapp-date-item.dt-l3 { padding-left: 36px !important; }
.novapp-date-item .dt-f { display: inline-block; width: 18px; flex: none; text-align: center; color: #6b7480; margin-right: 4px; padding: 4px 0; margin-top: -4px; margin-bottom: -4px; font-weight: 800; }
.novapp-date-head .dt-fa { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 1; width: 28px; height: 100%; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #6b7480; font-weight: 800; }
.novapp-date-head:has(.dt-fa) .svi-stf-head { padding-left: 30px !important; }
/* G3 : place réservée du signe d'alerte (!) — le texte commence toujours au même endroit */
.nv-bslot { display: inline-block; width: 12px; flex: none; text-align: center; margin-right: 2px; vertical-align: baseline; }
.nv-bslot > .nv-bang { margin: 0 !important; }
/* correction G-7 : la référence se coupe à la fin (… après le début) au lieu d'être remplacée en entier par « … » */
table.nv-one tbody td > :is(.nv-reflink, button):not(.nv-bang) { max-width: calc(100% - 14px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* G4 : case coupée agrandie au toucher (seule sa ligne grandit) ; pas de sélection de texte de Safari dans les tableaux */
table tbody td { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
table tbody td :is(input, textarea) { -webkit-user-select: text; user-select: text; }
table tbody tr.row-x > td { vertical-align: top; }
table tbody td.cell-x { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; word-break: break-word; height: auto !important; }
table tbody td.cell-x *:not(input, textarea, button, svg, svg *) { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; max-height: none !important; height: auto !important; word-break: break-word; }
/* G5 : menu de la loupe — renommer, mise en forme */
#cfMenu .cf-ren { width: 100%; box-sizing: border-box; margin: 2px 0 4px; font-weight: 800; text-transform: uppercase; }
#cfMenu .cf-fmt-h { font-weight: 800; text-align: left; }
#cfMenu .cf-fmt { display: flex; flex-direction: column; gap: 4px; padding: 2px 0 4px; }
#cfMenu .cf-fr { display: flex; gap: 4px; align-items: center; }
#cfMenu .cf-fr button { flex: 1; min-height: 30px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; font-weight: 800; }
#cfMenu .cf-fr button.on { background: #e8edf5; border-color: #172033; }
#cfMenu .cf-fsv { min-width: 34px; text-align: center; font-weight: 800; }

/* correction G-3 : appui long sur un titre de colonne = déplacement seulement (pas de sélection Safari, pas de menu du système) */
table thead th, table thead th * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
table thead th :is(input, textarea) { -webkit-user-select: text; user-select: text; }

/* série H (H1) : état À RENVOYER d'une consultation par fournisseur — jaune ambre foncé */
:root { --st-renvoyer: #CA8A04; }
#ach .nvp .nvp-blk tr.nvr-renvoyer td, #ach .nvp .nvp-blk tr.nvr-renvoyer td .ach-link:not([data-nvgo]), tr.nvr-renvoyer td { color: var(--st-renvoyer, #CA8A04) !important; }
#ach .nvp .nvp-blk tr.nvr-annule td, tr.nvr-annule td { color: var(--st-annule, #6b7280) !important; }
.dvf-nofil { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; font-weight: 700; color: var(--st-instance, #b91c1c); min-height: var(--fh, 30px); }

/* série I (I4) : épingle de la barre du haut — vide = non épinglée, pleine = épinglée */
.novapp-list-titlebar .bdg-d-badge.svi-pin { background: transparent; color: #3f4856 !important; display: inline-flex; align-items: center; justify-content: center; }
.svi-pin svg path { fill: none; } .svi-pin.on svg path { fill: currentColor; }

/* série I (I2) : MISE EN FORME de la loupe vraiment pliée (la règle display: flex passait devant l'attribut hidden) */
#cfMenu .cf-fmt[hidden] { display: none !important; }

/* 08/11 (remarque, document unique 6.11) : déplacer une colonne — trait bleu à la hauteur du titre, sur le bord où la colonne va se placer */
:is(table thead th, .bdg-h-head).co-before { box-shadow: inset 3px 0 0 #2563eb !important; }
:is(table thead th, .bdg-h-head).co-after { box-shadow: inset -3px 0 0 #2563eb !important; }

/* série J (J4) : ligne grisée d'un menu ⋯ (ex. SUPPRIMER LES … COCHÉS sans case cochée) */
#blkMenu button.blk-off { opacity: .45; }
#blkMenu button .svi-cnt { margin-left: auto; }

/* série J (J5, document unique 6.1) : TITRES DES COLONNES TOUJOURS À GAUCHE, dans tous les tableaux, quel que soit l'alignement du contenu
   (nombres à droite, unités au centre : seulement dans les cases) ; la loupe suit le titre ; la case « tout cocher » reste centrée */
table thead th:has(.cf-wrap), table.prm-table thead th:not(:has(input[type=checkbox])), table.frs-sub thead th:not(:has(input[type=checkbox])), table.ins-table thead th:not(:has(input[type=checkbox])) { text-align: left !important; }
table thead th .cf-wrap { justify-content: flex-start !important; }

/* 09/11 (remarque) : le NOM de la colonne (v1001, élément à part) n'est plus poussé à droite par l'ancienne règle des petits textes de titre (float à droite) —
   il commence à gauche et se coupe à la fin (« MOINS-DISA… ») */
.novapp-budget-table th :is(.cf-wrap, .cf-lab, .cf-lt, .cf-tt), table thead th :is(.cf-lab, .cf-lt) { float: none !important; }
.novapp-budget-table th :is(.cf-lab, .cf-lt) { color: inherit; font-size: inherit; }
/* 09/11 (remarque) : le signe « ! » et la référence ne grandissent plus la ligne — même hauteur pour toutes les lignes, le pincement agit aussi sur les rouges */
table.nv-one tbody td.bdg-ref-c > :is(.nv-bslot, .nv-reflink) { vertical-align: middle; line-height: 1; }
table.nv-one tbody td.bdg-ref-c .nv-bang { line-height: 1; vertical-align: middle; }

/* 09/11 (remarque) : MÊME PRÉSENTATION pour toutes les listes des confirmations — un élément par ligne, précédé d'un tiret (plus de puces) */
:is(#svConf, #dlyAddW) .svc-list { list-style: none; padding-left: 0; }
:is(#svConf, #dlyAddW) .svc-list > li::before { content: "- "; }

/* 09/11 (remarque) : H À GAUCHE PARTOUT — le titre d'une liste ne prend plus que sa place ; H juste après lui, le reste de la barre à droite */
.novapp-list-titlebar h1 { flex: 0 1 auto !important; }
.novapp-list-titlebar > .nvl-h { margin-right: auto; }
/* H dans le bandeau des fenêtres i, juste après la référence */
.svi-win-h { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 10px; border: 1px solid currentColor; border-radius: 6px; font-size: 12px; font-weight: 900; cursor: pointer; vertical-align: middle; background: transparent; }

/* 09/11 (remarque) : texte entier d'une ligne du bloc TÂCHES ou d'un champ coupé */
:is(.bdg-h-col .bdg-h-item, .ins-hcol .ins-li).cell-x { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; height: auto !important; max-height: none !important; word-break: break-word; }
#sviFullTip { position: fixed; z-index: 40000; box-sizing: border-box; padding-top: 2px; padding-bottom: 3px; background: #fff; border: 0; border-radius: 2px; box-shadow: 0 3px 8px rgba(16,24,40,.18); line-height: 1.35 !important; white-space: normal; word-break: break-word; overflow-wrap: anywhere; pointer-events: none; }
html.svi-nuit #sviFullTip { background: #1f2937; color: #f8fafc; border-color: #334155; }

/* 09/11 : épingle après la référence d'une fiche épinglée (listes) */
.svi-pinmk { display: inline-flex; vertical-align: -2px; margin-left: 5px; color: #1d4ed8; pointer-events: none; } .svi-pinmk svg path { fill: currentColor; }
html.svi-nuit .svi-pinmk { color: #93c5fd; }
/* 09/11 : NUIT — lignes liées en bleu clair (le bleu foncé ne se lit pas sur fond sombre) */
html.svi-nuit .ins-table tr.lk-link td, html.svi-nuit .ins-hcol .ins-li.lk-link,
html.svi-nuit .ins-table tr.lk-link td :is(input.ins-in, textarea.ins-in, .ins-dv), html.svi-nuit .ins-hcol .ins-li.lk-link :is(input.ins-in, textarea.ins-in, .ins-dv),
html.svi-nuit .dlyg-l tr.dly-task.dly-lnk:not(.dly-pick) > td :is(input, span:not(.lk-rd):not(.dly-pred), b),
html.svi-nuit .bdg-d-page .dlyg-l tr.dly-task.dly-lnk:not(.dly-pick) > td, html.svi-nuit .bdg-d-page .dlyg-l tr.dly-task.dly-lnk:not(.dly-pick) > td *:not(.lk-rd):not(.lk-rd *) { color: #93c5fd !important; -webkit-text-fill-color: #93c5fd !important; }
/* 09/11 : cadre et poignée de sélection d'une case = rouge, comme la case choisie (plus de noir) */
body:not(.svi-multi) #sviSelBox { border-color: var(--inst, #b91c1c) !important; }
body:not(.svi-multi) #sviSelHandle { background: var(--inst, #b91c1c) !important; }
/* 09/11 (règles 2.10 et 8.2) : référence soulignée dans la liste des budgets ; 2e toucher = tout le contenu de la case sélectionné */
#budgetListTable .bdg-reflink, table.svi-bdgl .bdg-reflink { text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cell-all, td.cell-all, input.cell-all { background-color: #bfdbfe !important; }
html.svi-nuit .cell-all { background-color: #1e3a8a !important; }
/* 09/11 (règle 2.10) : référence d'une liste toujours soulignée (elle ouvre la pièce), quel que soit le format */
html body table.svi-bdgl .nv-reflink, html body #budgetListTable .bdg-reflink, html body table.svi-bdgl .bdg-reflink { text-decoration: underline !important; -webkit-text-decoration-line: underline !important; text-underline-offset: 3px; }
/* 09/11 (Ahmed) : menu de l'appui long = forme du menu des cases ; lignes à la hauteur d'une ligne du tableau, largeur selon le contenu */
#sviLpBar { position: fixed; display: none; z-index: 10099; flex-direction: column; width: max-content; padding: 3px; background: #fff; border: 1px solid #d0d5dd; border-radius: 10px; box-shadow: 0 8px 24px rgba(16,24,40,.16); touch-action: manipulation; }
#sviLpBar button, #sviSelBar button { height: var(--lph, 24px) !important; min-height: 0 !important; padding: 0 12px !important; line-height: var(--lph, 24px) !important; }
#sviLpBar button { border: 0; background: transparent; text-align: left; border-radius: 6px; font: 700 11.5px/1.2 Arial, sans-serif; color: #172033; cursor: pointer; -webkit-user-select: none; user-select: none; }
#sviLpBar button:active { background: #f2f4f7; }
#sviLpBar .blk-sep { height: 1px; background: #e5e9ef; margin: 2px 4px; }
#sviLpBar .sb-del { color: #b91c1c; }
html.svi-nuit #sviLpBar { background: #1f2937; border-color: #334155; } html.svi-nuit #sviLpBar button { color: #e5e7eb; }
/* jamais de cadre noir (anneau de Safari) sur un champ des listes ; jamais la bulle de Safari sur les cases */
table.novapp-budget-table input:focus, table.bdg-d-table input:focus, table.novapp-budget-table td:focus, table.bdg-d-table td:focus { outline: none !important; }
table.novapp-budget-table tbody td, table.bdg-d-table tbody td { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
table tbody td input, table tbody td textarea { -webkit-user-select: text; user-select: text; }
/* 09/11 (retour agent) : listes et tableaux des fiches — pas de filet noir autour du cadre rouge (anneau du focus, ombre de la case) */
:is(table.novapp-budget-table, table.bdg-d-table) td:is(.svi-tdon, .svi-tdf, .cell-x, :focus, :focus-visible) { box-shadow: none !important; outline: none !important; }
/* 09/11 : INTITULÉ modifié dans la liste — même place, même couleur que le texte de la ligne */
td.bdg-ied input.nv-edin { width: 100%; height: 100%; box-sizing: border-box; border: 0 !important; background: transparent !important; padding: 0 !important; margin: 0 !important; font: inherit !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; box-shadow: none !important; outline: none !important; text-transform: uppercase; }
/* 09/11 (Ahmed) : filtre des états sur une seule ligne — nom coupé avec « … », ▾ et nombre toujours visibles ; 1er toucher = nom entier */
.svi-stf-head { display: flex !important; align-items: center; flex-wrap: nowrap !important; white-space: nowrap !important; min-width: 0; }
.svi-stf-head .stf-lab { display: inline-flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.svi-stf-head .stf-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svi-stf-head .dt-arr, .svi-stf-head .svi-cnt { flex: none; }
#sviStfTip { position: fixed; z-index: 40000; box-sizing: border-box; display: flex; align-items: center; padding: 4px 10px; background: #fff; border: 1px solid #c9d1dc; border-radius: 8px; box-shadow: 0 6px 14px rgba(16,24,40,.16); font: 700 12px/1.3 Arial, sans-serif; color: #172033; white-space: nowrap; pointer-events: none; }
html.svi-nuit #sviStfTip { background: #1f2937; color: #f8fafc; border-color: #334155; }
/* 09/11 : curseur visible même à la fin du texte (petite marge à droite du champ) */
td.bdg-ied input.nv-edin { padding-right: 4px !important; }
/* 09/11 : mot TOTAL collé à droite, juste avant le montant */
td.svi-totlab { text-align: right !important; white-space: nowrap; }
/* 09/11 : SEULEMENT LES COCHÉES — les lignes non cochées se cachent (tant qu'au moins une est cochée) */
table.nvl-only:has(tbody .nvl-cb:checked) tbody tr:has(.nvl-cb):not(.nvl-on) { display: none !important; }
th.nvl-cbh .nvl-cff { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
/* 09/11 : appui long sur un titre = la colonne est prise (prête à glisser) */
th.co-arm, .bdg-h-head.co-arm { background-image: linear-gradient(rgba(15, 23, 42, .10), rgba(15, 23, 42, .10)) !important; }   /* 09/11 : jamais de carré rouge sur un titre */
/* 09/11 : cases choisies une à une = cadre ROUGE (plus de bleu nuit) */
td.svi-cs.svi-cs1, .ins-hcol .ins-li.svi-cs1 { box-shadow: inset 0 0 0 1.5px #b91c1c !important; }
/* 09/11 : titres de colonnes — l'iPad laisse l'application gérer l'appui long (pas de loupe ni de sélection de texte) */
thead th { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* 09/11 : règle 8.2 aussi dans les fenêtres (conditionnement, comparatifs, versions, approvisionnement) */
:is(table.cond-t, table.cmp-t, table.ver-t, table.apr-t, table.gc-t) tbody td { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:is(table.cond-t, table.cmp-t, table.ver-t, table.apr-t, table.gc-t) td:is(.svi-tdon, .svi-tdf, :focus) { box-shadow: none !important; outline: none !important; }
/* 09/11 : barre de la plage et menu de l'appui long au-dessus des fenêtres */
#sviSelBar, #sviLpBar { z-index: 100010 !important; }
#sviSelHandle { z-index: 100006; }
/* 09/11 : fenêtre INF en palette NUIT — champs sombres comme la fenêtre */
html.svi-nuit #docPop :is(input:not([type=checkbox]):not([type=radio]), textarea, select, .sv-sel), html.svi-nuit #svConf :is(input:not([type=checkbox]):not([type=radio]), textarea, .sv-sel) { background: #111827 !important; color: #f8fafc !important; -webkit-text-fill-color: #f8fafc !important; border-color: #334155 !important; }
/* 09/11 : poignées de sélection du texte (taille de celles de Safari) — zone de prise large ; menu de la sélection */
.svi-th { position: fixed; display: none; width: 2px; margin-left: -1px; background: #b91c1c; z-index: 100012; touch-action: none; }
.svi-th::before { content: ""; position: absolute; left: -18px; right: -18px; top: -18px; bottom: -18px; }
.svi-th i { position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #b91c1c; }
.svi-th-a i { top: -9px; } .svi-th-b i { bottom: -9px; }
#sviTxtBar { position: fixed; display: none; z-index: 100013; flex-direction: row; width: max-content; padding: 3px; background: #fff; border: 1px solid #d0d5dd; border-radius: 10px; box-shadow: 0 8px 24px rgba(16,24,40,.16); }
#sviTxtBar button { height: var(--lph, 24px); padding: 0 12px; border: 0; background: transparent; border-radius: 6px; font: 700 11.5px/1 Arial, sans-serif; color: #172033; cursor: pointer; -webkit-user-select: none; user-select: none; }
#sviTxtBar button + button { border-left: 1px solid #eaecf0; border-radius: 0; }
#sviTxtBar .sb-del { color: #b91c1c; }
html.svi-nuit #sviTxtBar { background: #1f2937; border-color: #334155; } html.svi-nuit #sviTxtBar button { color: #e5e7eb; }
/* jamais la loupe ni les poignées de Safari dans une case en saisie */
table tbody td input, table tbody td textarea { -webkit-touch-callout: none; }
#sviTxtHi { position: fixed; display: none; z-index: 100011; pointer-events: none; background: rgba(185,28,28,.18); border-radius: 2px; }
/* 10/11 : référence des listes des achats — soulignement visible (la boîte du lien ne le coupe plus) */
html body table.nv-one tbody td.bdg-ref-c > .nv-reflink { line-height: 1.5; padding-bottom: 1px; text-underline-offset: 2px; }
/* 10/11 (Ahmed) : fenêtre MODIFIER LE FORMAT — ni cadre ni point rouge sur les cases */
html body table.fmt-t td:is(.svi-tdf, .svi-tdon, .svi-cs) { box-shadow: none !important; outline: none !important; }
/* 10/11 (J1) : boutons et pastilles de la barre du haut — gardent leur propre couleur (la couleur du texte de la barre ne vaut que pour le titre) */
html body :is(.novapp-list-titlebar, #chs > .section-head, .bdg-d-block-title, .svc-t, .doc-head) :is(button, [role=button], .bdg-d-badge, .svc-close, .doc-x) { -webkit-text-fill-color: currentColor !important; }
html.svi-ptm .svi-th { pointer-events: none; }
/* 10/11 : repère jaune de la destination (regroupement de titres, déplacement) toujours devant la couleur des lignes de la palette */
html body .ins-hcol .ins-li.ro-on:not(#svi-z1):not(#svi-z2):not(#svi-z3), html body .ins-table tr.ro-on td:not(#svi-z1):not(#svi-z2):not(#svi-z3), html body .dlyg-l tr.ro-on td:not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: #fde68a !important; }
/* 10/11 (série K) : sections pliables des fenêtres i (projet) — titre › / ⌄ et pastille */
.cp-card .cp-st { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 6px 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.cp-card .cp-ar { display: inline-block; width: 14px; text-align: center; }
.cp-card .frs-sst { font-size: 11px; font-weight: 800; margin: 10px 0 4px; color: #475467; }
.cp-card .cp-wide { grid-column: 1 / -1; } .cp-card textarea.cp-x { min-height: 60px; resize: vertical; }
.cp-card input.cp-col { width: 60px; height: 30px; padding: 0; border: 1px solid #d0d5dd; border-radius: 6px; }
.cp-card input.cp-calc { background: #eef1f5 !important; color: #475467 !important; -webkit-text-fill-color: #475467 !important; }
/* 2.8 : champs calculés ou repris d'une autre liste en gris (fenêtres i des clients et projets) */
html body #svConf .cp-card input.ins-in[readonly]:not(#svi-z1):not(#svi-z2) { background: #eef1f5 !important; color: #475467 !important; -webkit-text-fill-color: #475467 !important; resize: none; }
/* série K (K2) : en-tête du budget en sections pliables */
.k2-card .cp-fsec { margin: 4px 0 8px; } .k2-card .k2-wide { grid-column: 1 / -1; } .k2-card .k2-prj { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.k2-card .inf-calc { background: #eef1f5 !important; color: #475467 !important; -webkit-text-fill-color: #475467 !important; }
.k2-card .k2-go { text-decoration: underline; text-underline-offset: 2px; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
/* 10/11 (Ahmed) : TABLEAUX DES BLOCS LISIBLES — lignes blanches, une sur deux très légèrement grisée ; ligne choisie ou liée en bleu pâle
   (plus de fonds rosés / verts selon l'état : l'état ne se voit que par la couleur du texte et le trait à gauche du bloc) */
:root { --svi-row-alt: #F7F9FC; --svi-row-sel: #DBEAFE; --svi-row-link: #EAF2FE; --svi-row-selc: #0B2545; }
html.svi-nuit { --svi-row-alt: #1B222C; --svi-row-sel: #1E3A5F; --svi-row-link: #172A45; --svi-row-selc: #E5E9F0; }
html body :is(table.ins-table, table.rec-table, table.dly-table, table.bdg-d-table, table.prm-table, table.novapp-budget-table, table.sd-t, table.cmp-t, table.cond-t, table.ver-t) > tbody > tr:nth-child(even):not(.ins-title):not(.ins-gtitle):not(.dly-grp):not(.ins-new):not(.rec-new):not(.scn-new):not(.dly-new):not(.bdg-newrow):not(.lk-sel):not(.lk-link):not(.lk-hit):not(.ro-on) > td:not(.svi-cs):not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: var(--svi-row-alt) !important; }
html body .ins-hcol .ins-li:nth-child(even):not(.lot-grp):not(.lot-par):not(.ins-new):not(.lk-sel):not(.lk-link):not(.lk-hit):not(.ro-on):not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: var(--svi-row-alt) !important; }
html body .ins-table tr:is(.lk-sel, .lk-hit) td:not(#svi-z1):not(#svi-z2):not(#svi-z3), html body .ins-hcol .ins-li:is(.lk-sel, .lk-hit):not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: var(--svi-row-sel) !important; }
html body .ins-table tr.lk-link:not(.lk-sel):not(.lk-hit) td:not(#svi-z1):not(#svi-z2):not(#svi-z3), html body .ins-hcol .ins-li.lk-link:not(.lk-sel):not(.lk-hit):not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: var(--svi-row-link) !important; }
html body td.svi-cs:not(#svi-z1):not(#svi-z2):not(#svi-z3), html body .ins-hcol .ins-li:has(.svi-ls):not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: var(--svi-row-sel) !important; }
html body .bdg-inst-fige .ins-table tr.lk-sel td:not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: var(--svi-row-sel) !important; }
/* NUIT : le fond des blocs et des colonnes du bloc TÂCHES suit la palette (plus de grandes zones blanches sous les lignes) */
html.svi-nuit body :is(.bdg-d-block, .bdg-d-scroll, .bdg-d-client-scroll, .ins-hcol, .bdg-h-col, .rec-scroll, .nvp-blk):not(#svi-z1):not(#svi-z2) { background-color: #161C24 !important; }
/* NUIT : rouge de l'état EN INSTANCE éclairci pour rester lisible sur fond sombre */
html.svi-nuit .bdg-inst-instance { --inst: #F87171 !important; }

/* v1091 (document unique 2.10 complément) : nom souligné coupé — au 1er toucher, le nom s'affiche en entier sur plusieurs lignes dans sa case */
table tbody td.cell-x :is(.ach-link, .nv-reflink, .bdg-reflink, .cafw-go, [data-nvgo], [data-gofrs], [data-goart], .budget-link, [data-open-project]) { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; max-width: none !important; height: auto !important; max-height: none !important; word-break: break-word; text-align: left; display: inline; }

/* v1095 (2.10) : nom lié posé sur la barre sombre du haut — même couleur d'état, éclaircie pour rester lisible (VALIDÉ = blanc), souligné */
html body #sviScreenTag .ach-link[data-nvgo] { text-decoration: underline !important; text-underline-offset: 3px; }
html body #sviScreenTag .ach-link[data-nvgo].lk-instance { color: color-mix(in srgb, var(--stg-instance, #b91c1c) 45%, #fff) !important; }
html body #sviScreenTag .ach-link[data-nvgo].lk-fige { color: color-mix(in srgb, var(--stg-fige, #15803d) 45%, #fff) !important; }
html body #sviScreenTag .ach-link[data-nvgo].lk-partiel { color: color-mix(in srgb, var(--stg-partiel, #1d4ed8) 45%, #fff) !important; }
html body #sviScreenTag .ach-link[data-nvgo].lk-remis { color: color-mix(in srgb, var(--stg-remis, #ea580c) 45%, #fff) !important; }
html body #sviScreenTag .ach-link[data-nvgo]:is(.lk-valide, :not([data-lk]), [data-lk=""]) { color: #fff !important; }
html body #sviScreenTag .ach-link[data-nvgo].lk-encours { color: color-mix(in srgb, var(--stg-encours, #0e7490) 45%, #fff) !important; }
html body #sviScreenTag .ach-link[data-nvgo].lk-expire { color: color-mix(in srgb, var(--stg-expire, #b45309) 45%, #fff) !important; }
html body #sviScreenTag .ach-link[data-nvgo].lk-bloque { color: color-mix(in srgb, var(--stg-bloque, #6b7280) 45%, #fff) !important; }
html body #sviScreenTag .ach-link[data-nvgo].lk-archive { color: color-mix(in srgb, var(--stg-archive, #6d28d9) 45%, #fff) !important; }
html body #sviScreenTag .ach-link[data-nvgo].lk-annule { color: color-mix(in srgb, var(--stg-annule, #9ca3af) 45%, #fff) !important; }

/* v1099 (3.1) : ✕ de l'ACCUEIL, à gauche du ⋯, même forme que les ✕ des autres écrans */
#home .home-head .home-close { margin-left: auto; margin-right: 8px; }
#home .home-head .home-close + .home-more, #home .home-head .svi-srch + .home-more { margin-left: 0; }
#home .home-head .svi-srch { margin-right: 8px; }   /* LOT 5 (D5.1) : loupe de la RECHERCHE GÉNÉRALE */
#home .home-head .home-close.hdr-off { opacity: .45; }
#home .home-head :is(.home-close, .home-more, .svi-srch) { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: #fff; border: 1px solid #d5dbe3; border-radius: 10px; color: #172033; font-size: 20px; cursor: pointer; }
html.svi-nuit #home .home-head :is(.home-close, .home-more, .svi-srch) { background: #16213a; border-color: #2c3a57; color: #e5e9f0; }
/* v1101 (6.3) : texte agrandi — sélection dessinée sur toutes ses lignes, saisie dans le texte agrandi */
#sviTaHi { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 100011; pointer-events: none; display: none; }
#sviTaHi span { position: fixed; background: rgba(185,28,28,.18); border-radius: 2px; }
#sviFullTip.svi-ta-ed { outline: 2px solid #b91c1c; outline-offset: 0; cursor: text; -webkit-user-select: text; user-select: text; caret-color: #b91c1c; }
#sviFullTip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#sviFullTip { pointer-events: auto; }

.view:not(.active-view) #sviScreenTag { display: none !important; }   /* v1102 : bandeau d'un ecran cache jamais visible sur un autre */
/* v1107 : titre du centre de la barre — placé par sviTagPlace (gauche, largeur, haut), centré à mi-hauteur, stable ; agrandi au toucher s'il est coupé */
html body #sviScreenTag { transform: none !important; max-width: none !important; box-sizing: border-box; display: block; text-align: center; padding: 0 10px !important; border-radius: 0 !important; box-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
html body #sviScreenTag.svi-tag-open { white-space: normal; overflow: visible; text-overflow: clip; padding: 10px 12px 10px !important; line-height: 1.25 !important; border-radius: 0 0 10px 10px !important; box-shadow: 0 6px 14px rgba(16,24,40,.25); z-index: 20002; }
/* v1111 (10.2) : fenêtre i de la consultation — quatre blocs */
.cai-card .cai-sec { margin-top: 12px; }
.cai-card .cai-t { width: 100%; table-layout: auto; margin: 4px 0; }
.cai-card .cai-t td { padding: 2px 4px; vertical-align: middle; }
.cai-card .cai-t td .ins-in { width: 100%; box-sizing: border-box; }
.cai-card .cai-t th:last-child, .cai-card .cai-t td:last-child { width: 28px; text-align: center; }
.cai-card .cai-t tr.cai-imp td { color: #b91c1c; }
.cai-card .cai-empty { color: #9aa3af; text-align: center; }
.cai-card .cai-new { color: #b45309; font-style: normal; font-size: .85em; }
.cai-card .cai-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 2px; }
.cai-card .cai-tools .cai-fin { flex: 1 1 220px; min-width: 180px; }
.cai-card .cai-tools .svc-b { min-height: 30px; padding: 4px 12px; font-size: 12px; }
.cai-card .cai-tools .svc-b.cai-rm { color: #b91c1c; }
.cai-card .cai-t td .ins-in { border: 1px solid #d5dbe3; border-radius: 6px; min-height: 28px; }
/* v1112 (10.2) : fenêtre de la consultation au format du bloc TÂCHES — quatre listes côte à côte */
.cai-card { width: min(1240px, 96vw) !important; max-width: 96vw !important; }
.cai-card .cai-blk { margin-top: 12px; }
.cai-card .cai-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; padding: 8px; align-items: start; }
@media (max-width: 900px) { .cai-card .cai-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cai-card .cai-ls { border: 1px solid #e1e5eb; border-radius: 8px; overflow: auto; max-height: 46vh; }
.cai-card .cai-t { table-layout: fixed; margin: 0; }
.cai-card .cai-t td { padding: 1px 4px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cai-card .cai-t td .ins-in { width: 100%; box-sizing: border-box; border: 0; background: transparent; min-height: 22px; padding: 0 2px; font: inherit; }
.cai-card .cai-t tr.cai-imp td, .cai-card .cai-t tr.cai-imp td .ins-in { color: #b91c1c; }
.cai-card .cai-new { color: #b45309; font-style: normal; font-size: .85em; }
.cai-card .cai-t th .cf-lt { white-space: nowrap; }
#svConf .frs-card.cai-card, .cai-card { width: min(1280px, 97vw) !important; max-width: 97vw !important; }
.cai-card .cai-t tr.rec-new td { text-align: left !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cai-card .cai-t td select.ins-in { border: 0 !important; background: transparent; padding: 0 14px 0 2px; min-height: 22px; }
.cai-card .cai-t col[data-k="_rd"], .cai-card .cai-t col[data-k="_cb"] { width: 26px; }
.cai-card .cai-grid { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); }
.cai-card .cai-t th { padding-left: 4px; padding-right: 2px; }
/* v1113 : fenêtre DÉTAIL CONSULTATION — cases au format des listes, menu de suggestions */
.cai-card .cai-t td.nv-ed { cursor: default; }
.cai-card .cai-t td.nvl-cbc, .cai-card .cai-t th.nvl-cbh { padding: 0 !important; text-align: center; }
.cai-card .cai-t td .nvp-rd { flex: none; }
#caiSug.cai-sug { position: fixed; z-index: 100020; max-height: 280px; overflow: auto; display: flex; flex-direction: column; padding: 4px 0; }
#caiSug.cai-sug button { display: flex; justify-content: space-between; gap: 12px; text-align: left; padding: 6px 12px; border: 0; background: none; font: 600 12px Arial, sans-serif; color: #172033; cursor: pointer; white-space: nowrap; }
#caiSug.cai-sug button span { color: #6b7280; font-weight: 500; }
#caiSug.cai-sug button:hover { background: #eef2ff; }
.cai-card .cai-t td:first-child, .cai-card .cai-t th:first-child { padding: 0 !important; text-overflow: clip !important; text-align: center; }
/* v1115 : menu des suggestions de la fenêtre DÉTAIL CONSULTATION — fond blanc, bord, ombre, 8 lignes au plus avec défilement */
#caiSug.cai-sug { background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); max-height: 252px; overflow-y: auto; }
#caiSug.cai-sug button { min-height: 30px; flex: 0 0 auto; }
/* v1119 (L1) : fenêtre DÉTAIL CONSULTATION — DATE DE CRÉATION et OBJET toujours sur la même ligne (petits écrans compris) */
.frs-card .frs-g.cafi-g, .frs-g.cafi-g { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.frs-g.cafi-g > .frs-f.frs-w { grid-column: auto; }
/* v1119 (L4) : bloc CONSULTATION de la fenêtre — AGRANDI = toute la fenêtre (le bouton reste caché : ⋯ ou double toucher sur le titre) */
.cai-card .cai-max { display: none !important; }
.cai-card .cai-blk.cai-blk-max { position: fixed; inset: 6px; z-index: 100006; margin: 0; overflow: auto; background: var(--svi-card, #fff); box-shadow: 0 10px 40px rgba(15, 23, 42, .35); }
/* v1119 (L14) : titres de groupes du TABLEAU COMPARATIF (nom du fournisseur au-dessus de ses deux colonnes) */
.nvp-blk thead tr.nvp-grp th { position: static; background: var(--hdr-bg, #eef2f7); font-weight: 800; border-bottom: 1px solid #d6dbe3; text-align: center; }
.nvp-blk thead tr.nvp-grp th:not(:empty) { border-left: 1px solid #d6dbe3; border-right: 1px solid #d6dbe3; }
/* v1119 (L19) : icône d'aperçu avant la case à cocher */
.nv-apc { padding: 0 !important; }
.nv-ap { border: 0; background: none; color: #64748b; padding: 2px 4px; cursor: pointer; line-height: 0; }
.nv-ap:hover, .nv-ap:active { color: #1d4ed8; }
/* v1121 (L20) : consultation annulée = noire (close), dans la liste et les blocs */
table[data-ach="caf"] tr.st-annule td { color: var(--st-valide, #111827) !important; }
/* v1121 (L2, série L) : une seule fenêtre par pièce — le bandeau prend la couleur de l'état (palette 1.2) ; texte blanc */
html body #svConf .svc-card[data-st="instance"] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3) { background: var(--st-instance, #dc2626) !important; }
html body #svConf .svc-card[data-st="fige"] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3), html body #svConf .svc-card[data-st="encours"] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3) { background: var(--st-fige, #15803d) !important; }
html body #svConf .svc-card[data-st="remis"] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3) { background: var(--st-remis, #ea580c) !important; }
html body #svConf .svc-card[data-st="partiel"] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3) { background: var(--st-partiel, #1d4ed8) !important; }
html body #svConf .svc-card[data-st="valide"] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3) { background: var(--st-valide-fond, var(--st-valide, #111827)) !important; }
html body #svConf .svc-card[data-st="annule"] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3), html body #svConf .svc-card[data-st="bloque"] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3), html body #svConf .svc-card[data-st="expire"] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3), html body #svConf .svc-card[data-st="archive"] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3) { background: var(--st-annule, #6b7280) !important; }
html body #svConf .svc-card[data-st] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3), html body #svConf .svc-card[data-st] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3) * { color: var(--svc-tc, #fff) !important; -webkit-text-fill-color: var(--svc-tc, #fff) !important; }
/* v1161 : couleur du titre selon la couleur de fond (contraste) */
#svConf .svc-card[data-st="instance"] { --svc-tc: var(--stt-instance, #fff); }
#svConf .svc-card:is([data-st="fige"], [data-st="encours"]) { --svc-tc: var(--stt-fige, #fff); }
#svConf .svc-card[data-st="remis"] { --svc-tc: var(--stt-remis, #fff); }
#svConf .svc-card[data-st="partiel"] { --svc-tc: var(--stt-partiel, #fff); }
#svConf .svc-card[data-st="valide"] { --svc-tc: var(--stt-valide, #fff); }
#svConf .svc-card:is([data-st="annule"], [data-st="bloque"], [data-st="expire"], [data-st="archive"]) { --svc-tc: var(--stt-annule, #fff); }
html body #svConf .svc-card[data-st] > .svc-close:not(#svi-st1):not(#svi-st2):not(#svi-st3) { color: var(--svc-tc, #fff) !important; -webkit-text-fill-color: var(--svc-tc, #fff) !important; z-index: 2; }   /* v1122 : ✕ blanc sur le bandeau coloré */
/* v1126 (série L, L6 – L8) : liaisons de la consultation au format du budget (document unique 2.5) — moteur commun sviLk (09g) */
.nvp-rd { position: relative; width: 16px; height: 16px; border: 2px solid var(--inst, #b91c1c); border-radius: 50%; box-sizing: border-box; background: #fff; }
.nvp-rd::before { content: ""; position: absolute; inset: -7px -11px; }
.nvp-rd.rd-lie { background: #fff; border-color: var(--inst, #b91c1c); }
.nvp-rd.rd-exact { border-color: #1d4ed8; background: radial-gradient(circle, #1d4ed8 0 3px, #fff 3.5px); }
.nvp-rd.rd-choisi { border-color: var(--inst, #b91c1c); background: var(--inst, #b91c1c); }
.nvp-rd.rd-choisi::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* v1127 (agent de test) : plus fortes que la règle des cases blanches (html body table tbody td:not(#svi-z1):not(#svi-z2)), JOUR et NUIT */
html body :is(.nvp-blk, .cai-t) tr.lk-link > td:not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: #dbeafe !important; color: #1d4ed8 !important; font-weight: 700; }
html body :is(.nvp-blk, .cai-t) tr.lk-hit > td:not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: #bfdbfe !important; color: #1e3a8a !important; font-weight: 800; }
html body :is(.nvp-blk, .cai-t) tr.lk-sel > td:not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: #fde8e8 !important; font-weight: 800; }
html body :is(.nvp-blk, .cai-t) tr:is(.lk-link, .lk-hit) > td:not(#svi-z1):not(#svi-z2):not(#svi-z3) :is(input, select) { color: inherit !important; -webkit-text-fill-color: currentColor !important; background: transparent !important; }
html.svi-nuit body :is(.nvp-blk, .cai-t) tr.lk-link > td:not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: #1e3a5f !important; color: #bfdbfe !important; }
html.svi-nuit body :is(.nvp-blk, .cai-t) tr.lk-hit > td:not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: #1d4ed8 !important; color: #fff !important; }
html.svi-nuit body :is(.nvp-blk, .cai-t) tr.lk-sel > td:not(#svi-z1):not(#svi-z2):not(#svi-z3) { background: #4c1d1d !important; color: #fde8e8 !important; }
.nvp-lkbar { display: flex; justify-content: flex-end; padding: 4px 12px 6px; }
.svlk-win { margin-left: auto; margin-right: 8px; display: inline-flex; align-items: center; }
.svlk-go { border: 0; border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 800; cursor: pointer; background: #15803d; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.svlk-go.svlk-del { background: #b91c1c; }
.svlk-go:disabled { background: #e5e7eb; color: #9ca3af; cursor: help; }
/* v1129 : boutons à fond propre (ach-b, svc-b, svlk-go) exclus de la couleur héritée */
/* v1128 (agent de test) : palette NUIT — lisibilité des liens, du SUIVI et des lignes de liaison */
html.svi-nuit body .ach-link[data-nvgo].lk-valide:not(#svi-z1), html.svi-nuit body :is(#ach, #svConf) .ach-link:not([data-nvgo]):not(#svi-z1),
html.svi-nuit body :is(#ach, #svConf) .ach-link[data-nvgo]:not([class*="lk-"]):not(#svi-z1) { color: #e2e8f0 !important; -webkit-text-fill-color: currentColor !important; }
html.svi-nuit body .nvp-rec .rec-table tbody tr:not(.rec-new) > td:not(#svi-z1):not(#svi-z2):not(#svi-z3),
html.svi-nuit body .nvp-rec .rec-table tbody tr:not(.rec-new) > td:not(#svi-z1):not(#svi-z2):not(#svi-z3) * { color: #e2e8f0 !important; -webkit-text-fill-color: currentColor !important; }
html.svi-nuit body :is(.nvp-blk, .cai-t) tr:is(.lk-hit, .lk-sel) > td:not(#svi-z1):not(#svi-z2):not(#svi-z3) *:not(.nvp-rd):not(:is(.ach-b, .svc-b, .svlk-go, .ach-b *, .svc-b *, .svlk-go *)) { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
html.svi-nuit body :is(.nvp-blk, .cai-t) tr:is(.lk-hit, .lk-sel) > td:not(#svi-z1):not(#svi-z2):not(#svi-z3) :is(input, textarea)::placeholder { color: inherit !important; -webkit-text-fill-color: currentColor !important; opacity: .85; }
html.svi-nuit body .cai-card .cai-new:not(#svi-z1) { color: #fcd34d !important; -webkit-text-fill-color: currentColor !important; }
/* v1130 (L6 – L8) : ligne cachée par le filtre des cases cochées (blocs liés de la consultation) */
html body tr.svlk-hid:not(#svi-z1):not(#svi-z2):not(#svi-z3) { display: none !important; }
/* v1132 (L6 – L8) : rond d'en-tête (tout choisir) — grisé quand une ligne est choisie à la main */
.nvp-rd.nvp-rdall.rd-off { opacity: .35; }
/* v1133 (agent de test) : la ligne CRÉER … ICI d'une liste vidée par le filtre reste dans sa liste (fenêtre DÉTAIL CONSULTATION) */
.cai-card .cai-ls { position: relative; contain: paint; min-width: 0; }
.cai-card .cai-t tr.rec-new > td:not(#svi-z1) { width: auto !important; max-width: 0; position: static !important; overflow: hidden; }
/* v1134 (L24) : prix estimé bloqué (budget actif ou prix standard) — gris, non modifiable */
.nvp-blk td .cafp-lock { color: #6b7280; font-style: italic; }
html.svi-nuit body .nvp-blk td .cafp-lock { color: #9ca3af; }
/* v1137 (L26, document unique 10.9) : fenêtre IMPORTER commune — aperçu, choix des colonnes, lignes à vérifier en rouge */
.simp-card .simp-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.simp-card .simp-ex { display: block; font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.simp-card .simp-prev { max-height: 46vh; overflow: auto; }
.simp-card tr.simp-red td { color: #b91c1c !important; -webkit-text-fill-color: #b91c1c !important; }
.simp-card .simp-list { max-height: 48vh; overflow: auto; }
#sviImpMsg { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 10095; background: #172033; color: #fff; padding: 14px 20px; border-radius: 10px; font-weight: 800; font-size: 13px; }
/* v1144 (L26) : charge importée liée par le nom, à vérifier (CONFIRMER LES CHARGES COCHÉES) */
html body .ins-table tr.ins-vrf > td:not(#svi-z1):not(#svi-z2), html body .ins-table tr.ins-vrf > td :is(input, textarea, .ins-dv) { color: #b91c1c !important; -webkit-text-fill-color: #b91c1c !important; }
/* v1147 (série L, L3 ; document unique 4.1, 4.3, 9.3) : blocs libres — glissés par leur barre de titre, réglés par leur coin, sans chevauchement */
.svf-host.svf-on > .svf-b { box-sizing: border-box; margin: 0 !important; transition: top .15s ease, left .15s ease; }
.svf-host.svf-on > .svf-b.svf-drag { transition: none; z-index: 30; box-shadow: 0 10px 28px rgba(15, 23, 42, .25); opacity: .95; }
.svf-host > * > .blk-head { cursor: grab; touch-action: none; }   /* v1148 : le doigt glisse le bloc (le défilement reste possible ailleurs) */
body.svf-moving, body.svf-moving * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.svf-host > .svf-b.svf-h { display: flex; flex-direction: column; overflow: hidden; }
.svf-host > .svf-b.svf-h > .rec-scroll { flex: 1 1 auto; min-height: 0; max-height: none !important; height: auto !important; }
.svf-host > .svf-b.svf-h > .nvp-rsz, .svf-host.svf-on > .svf-b > .nvp-rsz { display: none; }
.svf-rz { position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; cursor: nwse-resize; z-index: 60; touch-action: none;   /* v1148 : au-dessus des cases et des en-têtes collants */
  background: linear-gradient(135deg, transparent 0 55%, #94a3b8 55% 62%, transparent 62% 72%, #94a3b8 72% 79%, transparent 79%); }
.svf-host > [data-svfk]:not(.svf-b) { position: relative; }

/* v1148 : la zone qui défile laisse la place au coin (rien ne passe dessus) */
.svf-host > [data-svfk] > .rec-scroll { margin-bottom: 4px; }
/* v1149 (L3, 10.2) : fenêtres libres — bandeau = déplacer (double toucher = place par défaut), coin = taille */
#svConf > .svc-card > .svc-t { cursor: grab; touch-action: none; }
#svConf > .svc-card.svw-move, #svConf > .svc-card.svw-move * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
#svConf > .svc-card.svw-h { max-height: none !important; overflow: auto; }
#svConf > .svc-card > .svw-rz { position: absolute; right: 2px; bottom: 2px; width: 22px; height: 22px; cursor: nwse-resize; z-index: 60; touch-action: none;
  background: linear-gradient(135deg, transparent 0 55%, #94a3b8 55% 62%, transparent 62% 72%, #94a3b8 72% 79%, transparent 79%); }
/* v1153 : fenêtres au format INF déplaçables par le bandeau */
#docPop > .doc-card > .doc-head { touch-action: none; cursor: grab; }
#docPop > .doc-card.svw-move, #docPop > .doc-card.svw-move * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
/* v1155 (L3) : blocs libres de la page budget — deux blocs côte à côte, largeur au coin ; DÉTAIL toujours sur toute la largeur */
.bdg-d-page.lay-free { flex-flow: row wrap; column-gap: 14px; align-items: flex-start; align-content: flex-start; }
.bdg-d-page.lay-free > * { flex: 0 0 100%; }
.bdg-d-page > .blk-client, .bdg-d-page > .blk-hier, .bdg-d-page > .blk-etp, .bdg-d-page > .blk-suivi { position: relative; }
.bdg-d-page .lay-wrz { position: absolute; right: 1px; bottom: 1px; width: 20px; height: 20px; cursor: nwse-resize; touch-action: none; z-index: 6;
  background: linear-gradient(135deg, transparent 50%, #c3cad5 50%, #c3cad5 58%, transparent 58%, transparent 70%, #c3cad5 70%, #c3cad5 78%, transparent 78%); border-bottom-right-radius: 10px; }
.bdg-d-page .lay-wrz.on, .bdg-d-page .lay-wrz:hover { background: linear-gradient(135deg, transparent 50%, #1d4ed8 50%, #1d4ed8 58%, transparent 58%, transparent 70%, #1d4ed8 70%, #1d4ed8 78%, transparent 78%); }
.bdg-d-page[class*="max-"] .lay-wrz { display: none !important; }
/* v1156 : mode nuit — la barre du bas des blocs n'est plus blanche */
html.svi-nuit .bdg-d-page .blk-rsz { background: #161C24 !important; border-top-color: #2A3340 !important; }
html.svi-nuit .bdg-d-page .blk-rsz::after { background: #4B5563; }
html.svi-nuit .bdg-d-page .blk-rsz.on::after, html.svi-nuit .bdg-d-page .blk-rsz:hover::after { background: #60A5FA; }
html.svi-nuit #bdgDetailRsz { border-color: #2A3340 !important; }
/* v1157 : mode nuit — fond de la rangée d'onglets de RÉVISIONS et de SUIVI (hors palette) foncé, contour des blocs foncé ; les onglets suivent la palette */
html.svi-nuit .bdg-d-page .blk-tabrow { background: #161C24 !important; border-color: #2A3340 !important; }
html.svi-nuit .bdg-d-page > :is(.blk-client, .blk-hier, .blk-etp, .blk-suivi, .bdg-d-block), html.svi-nuit #bdgTabBody, html.svi-nuit #bdgTabs { border-color: #2A3340 !important; }
/* v1158 : mode nuit — cadre foncé des onglets (actif compris) dans RÉVISIONS, SUIVI et DÉTAIL ; icônes et onglet actif de SUIVI en teinte claire */
html.svi-nuit .bdg-d-page :is(.rec-tab, .bdg-d-tab), html.svi-nuit .bdg-d-page :is(.rec-tab, .bdg-d-tab).active { border-color: #2A3340 !important; }
html.svi-nuit .bdg-d-page .blk-suivi .rec-tab .ico { color: #7FB2FF !important; }
html.svi-nuit :is(.bdg-inst-instance, .bdg-inst-fige) .blk-suivi .rec-tab .ico { color: var(--inst, #F87171) !important; }
html.svi-nuit .bdg-d-page .blk-suivi .rec-tab.active { color: #7FB2FF !important; }
/* v1159 : mode nuit — icônes des onglets de RÉVISIONS et de DÉTAIL en teinte claire (budget validé) ; en instance / figé, couleur de l'état */
html.svi-nuit .bdg-d-page :is(.rec-tab, .bdg-d-tab) .ico { color: #7FB2FF !important; }
html.svi-nuit :is(.bdg-inst-instance, .bdg-inst-fige) :is(.rec-tab, .bdg-d-tab) .ico { color: var(--inst, #F87171) !important; }
/* v1162 : bouton de liaison commun — gris « un toucher dit pourquoi » */
.svlk-go.svlk-off { background: #e5e7eb !important; color: #9ca3af !important; cursor: help; }
html.svi-nuit .svlk-go.svlk-off, html.svi-nuit .lk-go.lk-off, html.svi-nuit .svlk-go:disabled { background: #2A3340 !important; color: #94A3B8 !important; -webkit-text-fill-color: #94A3B8 !important; }
/* v1170 : mode nuit — libellés des cases des fiches (STOCKABLE, PÉRISSABLE, ACTIF…) lisibles */
html.svi-nuit :is(.frs-card, .pg-soc-card) .frs-c { color: #CBD5E1 !important; -webkit-text-fill-color: #CBD5E1 !important; }
/* v1173 : mode nuit — boutons grisés des fiches (▲ ▼…) visibles */
html.svi-nuit #ach .ach-b:disabled, html.svi-nuit .frs-card .ach-b:disabled { opacity: 1 !important; color: #64748B !important; -webkit-text-fill-color: #64748B !important; border-color: #334155 !important; background: #1B222C !important; }
/* v1175 : blocs en tableau de la fiche article sur toute la largeur */
.frs-card .frs-g > .art-pstd, .frs-card .frs-g > .art-eqv, .frs-card .frs-g > .art-frh, .frs-card .frs-g > .art-conso, .frs-card .frs-g > .art-comp { grid-column: 1 / -1; }
.frs-card .art-pstdt, .frs-card .art-eqvt { width: 100%; max-width: 760px; }
/* v1176 : case de PARAMÉTRAGE à compléter — cadre rouge (jour et nuit) */
input.prm-in.ins-bad { box-shadow: inset 0 0 0 2px #dc2626 !important; }
input.prm-in.ins-bad::placeholder { color: #dc2626; opacity: 1; }
html.svi-nuit input.prm-in.ins-bad { box-shadow: inset 0 0 0 2px #f87171 !important; }
html.svi-nuit input.prm-in.ins-bad::placeholder { color: #f87171; }
/* v1178 (C2.11) : historique des prix */
.nv-apc .nv-pxh + .nv-ap { margin-left: 2px; }
.art-pxcard .art-pxg { display: block; max-width: 680px; color: #475569; margin: 8px 0 2px; }
.art-pxcard .art-pxl { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.art-pxcard .art-pxl i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
html.svi-nuit .art-pxcard .art-pxg { color: #CBD5E1; }
/* v1179 : deux icônes (courbe + aperçu) côte à côte, entières */
td.nv-apc:has(.nv-pxh) { white-space: nowrap; padding-left: 2px !important; padding-right: 2px !important; }
td.nv-apc .nv-pxh + .nv-ap { margin-left: 4px; }
/* v1181 : mode nuit — boutons actifs des fiches (▲ ▼…) foncés à flèche claire ; les grisés restent plus pâles */
html.svi-nuit .frs-card .ach-b:not(:disabled):is([data-equp], [data-eqdn], [data-frup], [data-frdn]) { background: #243042 !important; color: #E5E9F0 !important; -webkit-text-fill-color: #E5E9F0 !important; border-color: #4B5D75 !important; }
html.svi-nuit .frs-card .ach-b:disabled:is([data-equp], [data-eqdn], [data-frup], [data-frdn]) { background: transparent !important; color: #475569 !important; -webkit-text-fill-color: #475569 !important; border-color: #2A3340 !important; }
/* v1182 : consommation moyenne — le cadre d'agrandissement prend toute la largeur */
.frs-card .art-conso .fld-wrap, .frs-card .art-conso .svc-fw { width: 100% !important; max-width: none !important; }
.frs-card .art-conso input { width: 100% !important; max-width: none !important; }
/* v1184 (C2.5) : ligne du prix de l'article composé */
.frs-card .art-compt tr.art-comptot td { background: #EEF3F9 !important; color: #13447A !important; -webkit-text-fill-color: #13447A !important; font-weight: 800; }
html.svi-nuit .frs-card .art-compt tr.art-comptot td { background: #15243A !important; color: #7FB2FF !important; -webkit-text-fill-color: #7FB2FF !important; }
/* v1187 (C2.5) : charge = article composé (bouton C à gauche du conditionnement) */
.chg-cmp { position: absolute; right: 23px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 4px; border: 1px solid #1d4ed8; background: #e8efff; color: #1d4ed8; font-size: 10px; font-weight: 800; line-height: 14px; padding: 0; cursor: pointer; }
html.svi-nuit .chg-cmp { background: #15243A; color: #7FB2FF; border-color: #7FB2FF; }
/* v1188 : lettre du bouton C toujours bleue, quelle que soit la couleur de la ligne */
html body td .chg-cmp:not(#svi-z1):not(#svi-z2):not(#svi-z3) { color: #1D4ED8 !important; -webkit-text-fill-color: #1D4ED8 !important; }
html.svi-nuit body td .chg-cmp:not(#svi-z1):not(#svi-z2):not(#svi-z3) { color: #7FB2FF !important; -webkit-text-fill-color: #7FB2FF !important; }
/* v1201 : zones de texte à plusieurs lignes (message aux non-retenus) — tout le texte visible */
textarea.svi-ml { height: auto !important; min-height: 9.5em !important; max-height: none !important; white-space: pre-wrap !important; line-height: 1.35 !important; overflow: auto; resize: vertical; }
/* v1205 : nuit — liens de pièce (état) éclaircis pour rester lisibles sur les lignes colorées */
html.svi-nuit body .ach-link[data-nvgo].lk-instance { color: color-mix(in srgb, var(--stg-instance, #b91c1c) 45%, #fff) !important; }
html.svi-nuit body .ach-link[data-nvgo].lk-partiel { color: color-mix(in srgb, var(--stg-partiel, #1d4ed8) 45%, #fff) !important; }
html.svi-nuit body .ach-link[data-nvgo].lk-remis { color: color-mix(in srgb, var(--stg-remis, #ea580c) 45%, #fff) !important; }
html.svi-nuit body .ach-link[data-nvgo].lk-bloque { color: color-mix(in srgb, var(--stg-bloque, #6b7280) 45%, #fff) !important; }
html.svi-nuit body .ach-link[data-nvgo].lk-encours { color: color-mix(in srgb, var(--stg-encours, #0e7490) 45%, #fff) !important; }
html.svi-nuit body .ach-link[data-nvgo].lk-expire { color: color-mix(in srgb, var(--stg-expire, #b45309) 45%, #fff) !important; }
html.svi-nuit body .ach-link[data-nvgo].lk-archive { color: color-mix(in srgb, var(--stg-archive, #6d28d9) 45%, #fff) !important; }
/* v1205 : fenêtre NOUVELLE ÉVALUATION — le tableau tient dans la largeur (téléphone) */
#svConf table.frs-ecrit { width: 100% !important; min-width: 0 !important; table-layout: fixed !important; }
#svConf table.frs-ecrit th:last-child, #svConf table.frs-ecrit td:last-child { width: 92px !important; }
#svConf table.frs-ecrit :is(th, td) { min-width: 0 !important; max-width: none !important; }
#svConf table.frs-ecrit td input.ins-in { width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; }
/* v1206 : nuit — « i », « H » et épingle de l'en-tête lisibles */
html.svi-nuit body .novapp-list-titlebar .bdg-d-badge, html.svi-nuit body #ach .nvp .novapp-list-titlebar .bdg-d-badge.ach-h, html.svi-nuit body .svc-t .bdg-d-badge { color: #d6dde8 !important; }
html.svi-nuit body :is(.bdg-inst-instance, .bdg-inst-fige) .novapp-list-titlebar .bdg-d-badge, html.svi-nuit body #ach .nvp.bdg-inst-instance .novapp-list-titlebar .bdg-d-badge.ach-h { color: color-mix(in srgb, var(--inst, #b91c1c) 45%, #fff) !important; }
/* v1207 : « H » des fenêtres de pièce — rond transparent, lettre et contour de la couleur du titre (lisible sur bandeau rouge, foncé ou clair) */
html body .svc-t .svi-win-h.bdg-d-badge { background: transparent !important; border: 1.5px solid currentColor !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; }
/* v1207 : nuit — « H » de l'en-tête du budget (#histBtn) lisible */
html.svi-nuit body .novapp-list-titlebar #histBtn.bdg-d-badge, html.svi-nuit body .novapp-list-titlebar .bdg-d-badge.bdg-d-inf { color: #d6dde8 !important; }
html.svi-nuit body :is(.bdg-inst-instance, .bdg-inst-fige) .novapp-list-titlebar #histBtn.bdg-d-badge { color: color-mix(in srgb, var(--inst, #b91c1c) 45%, #fff) !important; }
/* v1208, v1209 : jour seulement — « H », « i » et épingle de l'en-tête lisibles sur le bandeau foncé : couleur du titre ; pièce en instance / figée : teinte claire */
html:not(.svi-nuit) body .novapp-list-titlebar :is(#histBtn, .svi-pin, .bdg-d-inf).bdg-d-badge, html:not(.svi-nuit) body #ach .nvp .novapp-list-titlebar .bdg-d-badge.ach-h { color: inherit !important; }
html:not(.svi-nuit) body :is(.bdg-inst-instance, .bdg-inst-fige) .novapp-list-titlebar :is(#histBtn, .svi-pin, .bdg-d-inf).bdg-d-badge, html:not(.svi-nuit) body #ach .nvp:is(.bdg-inst-instance, .bdg-inst-fige) .novapp-list-titlebar .bdg-d-badge.ach-h { color: color-mix(in srgb, var(--inst, #b91c1c) 45%, #fff) !important; }
/* v1210 : nuit — lignes en instance des blocs de pages d'achat éclaircies (lisibles sur fond sombre) */
html.svi-nuit body #ach .nvp .nvp-blk tr.nvr-instance td, html.svi-nuit body #ach .nvp .nvp-blk tr.nvr-instance td .ach-link:not([data-nvgo]) { color: color-mix(in srgb, var(--st-instance, #b91c1c) 45%, #fff) !important; -webkit-text-fill-color: currentColor; }
/* v1212 : fenêtre DÉTAIL CONSULTATION — tableaux l'un sous l'autre sur téléphone, deux par ligne sur tablette étroite */
@media (max-width: 900px) { #svConf .cai-card .cai-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; } }
@media (max-width: 699px) { #svConf .cai-card .cai-grid { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 699px) { #svConf .cai-card .cai-grid > * { min-width: 0; max-width: 100%; overflow-x: auto; }
  /* v1213 : articles et conditions plus larges que le cadre = défilement de côté, en-têtes et intitulés entiers */
  #svConf .cai-card .cai-ls[data-g="L"] .cai-t[data-svcw] { min-width: 520px !important; }
  #svConf .cai-card .cai-ls[data-g="K"] .cai-t[data-svcw] { min-width: 440px !important; } }
/* v1214 : « CRÉER … ICI » reste visible au début du cadre quand le tableau défile de côté */
#svConf .cai-card .cai-newl { position: sticky; left: 8px; display: inline-block; }
#svConf .cai-card tr[data-cai-new] td { overflow: visible !important; }
@media (max-width: 699px) { #svConf .cai-card .cai-ls[data-g="K"] .cai-t[data-svcw] col:nth-child(2) { width: 240px !important; } #svConf .cai-card .cai-ls[data-g="K"] .cai-t[data-svcw] col:nth-child(3) { width: 130px !important; } }
/* v1214 (D5.53) : bouton du nom de l'utilisateur (en-tête) et son menu */
.bdg-d-hright .svi-usr { width: auto !important; min-width: 0; max-width: 140px; padding: 0 10px !important; font: 800 12px -apple-system, Helvetica, Arial, sans-serif; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sviUsrMenu { position: fixed; z-index: 100010; background: #fff; border: 1px solid #d6dbe3; border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.2); padding: 6px 0; min-width: 200px; display: flex; flex-direction: column; }
#sviUsrMenu .sum-n { padding: 6px 14px 8px; font: 800 12px -apple-system, Helvetica, Arial, sans-serif; color: #5f6875; border-bottom: 1px solid #eef1f5; margin-bottom: 4px; }
#sviUsrMenu button { border: 0; background: none; text-align: left; padding: 9px 14px; font: 800 13px -apple-system, Helvetica, Arial, sans-serif; color: #172033; cursor: pointer; }
#sviUsrMenu button:hover { background: #f1f4f8; }
#sviUsrMenu .sum-i { padding: 6px 14px 4px; font: 700 10px -apple-system, Helvetica, Arial, sans-serif; color: #8a93a0; border-top: 1px solid #eef1f5; margin-top: 4px; }
html.svi-nuit #sviUsrMenu { background: #1c232d; border-color: #334155; }
html.svi-nuit #sviUsrMenu button { color: #e2e8f0; } html.svi-nuit #sviUsrMenu button:hover { background: #263140; }
html.svi-nuit #sviUsrMenu .sum-n, html.svi-nuit #sviUsrMenu .sum-i { color: #94a3b8; border-color: #334155; }
/* v1215 : téléphone — l'en-tête tient dans l'écran : titre réduit (…), PRÉCÉDENT / SUIVANT cachés, boutons plus serrés, nom réduit aux initiales */
.svi-usr .su-i { display: none; }
@media (max-width: 700px) {
  .novapp-list-titlebar { gap: 6px !important; }
  .novapp-list-titlebar h1 { min-width: 0 !important; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bdg-d-hright { gap: 3px !important; flex: none !important; }
  .bdg-d-hright > * { margin-left: 0 !important; }
  .bdg-d-hright > .inst-nav { display: none !important; }
  .bdg-d-hright > :is(.inst-act, .bdg-more-btn):not(.svi-usr) { width: 32px !important; min-width: 32px !important; height: 32px !important; }
  .bdg-d-hright .svi-usr, #sviUsrFloat { width: 34px !important; min-width: 34px !important; padding: 0 !important; text-align: center; }
  .svi-usr .su-f { display: none; } .svi-usr .su-i { display: inline; }
}
/* v1215 : bouton du nom au-dessus du voile d'une fenêtre ouverte */
#sviUsrFloat { position: fixed; z-index: 100004; margin: 0 !important; }
/* v1215 : bouton du nom juste avant ⋯ (l'en-tête du budget range FERMER et ⋯ par « order ») */
.bdg-d-hright > .svi-usr { order: 8; }
.bdg-d-hright.svi-hdr > .svi-usr { order: 0; }
#sviOutAsk { position: fixed; inset: 0; z-index: 100012; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.45); padding: 16px; }
#sviOutAsk .soa-c { background: #fff; color: #172033; border-radius: 14px; padding: 18px 20px; max-width: min(460px, 94vw); font: 700 13px -apple-system, Helvetica, Arial, sans-serif; box-shadow: 0 20px 50px rgba(15,23,42,.3); }
#sviOutAsk .soa-t { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
#sviOutAsk .soa-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
html.svi-nuit #sviOutAsk .soa-c { background: #1c232d; color: #e2e8f0; }
/* v1217 : téléphone — en-tête du paramétrage dans l'écran ; titre jamais réduit à rien ; étiquette d'écran cachée (le titre la donne) */
@media (max-width: 700px) {
  .section-head:has(> .svi-hdr) { gap: 6px !important; flex-wrap: nowrap !important; }
  .section-head:has(> .svi-hdr) > div { min-width: 84px !important; overflow: hidden; }
  .section-head:has(> .svi-hdr) .bdg-d-hright > :is(.inst-act, .bdg-more-btn):not(.svi-usr) { width: 28px !important; min-width: 28px !important; }
  .section-head:has(> .svi-hdr) .bdg-d-hright { gap: 2px !important; }
  .section-head:has(> .svi-hdr) h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px !important; }
  .section-head:has(> .svi-hdr) p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .novapp-list-titlebar h1 { min-width: 84px !important; }
  .novapp-list-titlebar h1 > *, .section-head:has(> .svi-hdr) h1 > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .novapp-list-titlebar h1 > .svi-h1t { flex: 1 1 auto; min-width: 0; }
  .novapp-list-titlebar h1 > :is(.bdgl-cnt, .svi-cnt, .bdg-d-badge) { flex: none !important; overflow: visible !important; max-width: none !important; }
  .novapp-list-titlebar .svi-pin { display: none !important; }
  .novapp-list-titlebar .bdg-d-hright > :is(.inst-act, .bdg-more-btn):not(.svi-usr) { width: 28px !important; min-width: 28px !important; height: 30px !important; }
  .novapp-list-titlebar .bdg-d-hright .svi-usr { width: 30px !important; min-width: 30px !important; }
  .novapp-list-titlebar .bdg-d-hright { gap: 2px !important; }
  .novapp-list-titlebar { gap: 4px !important; }
  .novapp-list-titlebar .lk-chain-top.off { display: none !important; }
  #sviScreenTag:not(.svi-tag-ph) { display: none !important; }
  /* v1272 (compte rendu v1271, 1 — validé) : au téléphone, toucher la référence d'une page montre le titre entier sous la barre */
  html body #sviScreenTag.svi-tag-ph { display: block !important; left: 0 !important; width: 100vw !important; height: auto !important; line-height: 1.3 !important; white-space: normal !important; padding: 10px 12px !important; text-align: center; }
}
/* v1222 (compte rendu v1221, 4) : bouton RÉPARTIR du CONTRÔLE DE REPRISE au format des boutons de fenêtre ; 44 px au doigt */
#svConf .frs-evl .ach-nsplit { display: inline-flex; align-items: center; height: auto; min-height: 38px; margin: 6px 0 2px 8px; padding: 4px 14px; font-size: 12px; text-align: left; white-space: normal; }
@media (pointer: coarse) { #svConf .frs-evl .ach-nsplit { min-height: 44px; } }
/* v1223 (compte rendu v1221, 7) : téléphone — en colonne, le tableau d'une liste prend la largeur de l'écran et défile dans son cadre
   (avec align-items:flex-start, le cadre prenait la largeur du tableau et élargissait toute la page) ; fenêtres centrées dans l'écran */
@media (max-width:650px) { .novapp-budget-layout { align-items:stretch; max-width:calc(100vw - 20px); } .novapp-budget-layout > * { max-width:100%; min-width:0; } .novapp-budget-layout .novapp-budget-table-wrap { width:auto; } }
/* v1223 (compte rendu v1221, 8) : nuit — texte des fenêtres de confirmation à la couleur claire de la palette de nuit */
html.svi-nuit body :is(#svConf, #dlyAddW) .svc-x:not(#svi-z1) { color:#e2e8f0; -webkit-text-fill-color:#e2e8f0; }
/* v1223 (compte rendu v1222, 1) : nuit — bouton RÉPARTIR (corps de la fenêtre) aux couleurs de nuit des boutons de fenêtre (format « wincan », SVI_FMT_NUITW) */
html.svi-nuit body #svConf .frs-evl .ach-nsplit:not(#svi-z1) { background:#1f2937; color:#f8fafc; -webkit-text-fill-color:#f8fafc; border-color:#475569; }
/* v1224 (série N) : boutons COCHER LE MARCHÉ de la fenêtre CUMUL */
#svConf .cum-marrow { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 10px; }
#svConf .cum-marrow .cum-mar { height:auto; min-height:34px; padding:4px 12px; font-size:12px; }
@media (pointer: coarse) { #svConf .cum-marrow .cum-mar { min-height:44px; } }
html.svi-nuit body #svConf .cum-marrow .cum-mar:not(#svi-z1) { background:#1f2937; color:#f8fafc; -webkit-text-fill-color:#f8fafc; border-color:#475569; }
/* v1226 (point à décider n° 3) : fenêtre agrandie par un double toucher sur son bandeau (un second la remet comme avant) */
#svConf > .svc-card.svw-max, #docPop > .doc-card.svw-max { width: calc(100vw - 16px) !important; height: calc(100vh - 16px) !important; max-width: none !important; max-height: none !important; translate: none !important; }
#docPop > .doc-card.svw-max { position: fixed !important; left: 8px !important; top: 8px !important; }
/* v1226 (point à décider n° 4, validé par Ahmed le 16/11/2026) : fenêtres au format INF (#docPop) de nuit — titres des sections pliables et pied
   aux couleurs de la palette de nuit (ils restaient sombres sur fond sombre, pied blanc) */
html.svi-nuit body #docPop .doc-card :is(.cp-st, .frs-st, .cp-st *, .frs-st *):not(.svi-cnt):not(.svi-cnt *):not(#svi-z1) { color:#e2e8f0 !important; -webkit-text-fill-color:#e2e8f0 !important; }
html.svi-nuit body #docPop .doc-card .doc-foot:not(#svi-z1) { background:#111827 !important; border-top-color:#334155 !important; }
html.svi-nuit body #docPop .doc-card :is(.cp-st, .frs-st) .svi-cnt:not(#svi-z1) { -webkit-text-fill-color: currentColor !important; }
html.svi-nuit body #docPop .ach-link.k2-go:not(#svi-z1) { color:#e2e8f0 !important; -webkit-text-fill-color: currentColor !important; }
html.svi-nuit body #docPop .ach-link.k2-go.lk-instance:not(#svi-z1) { color: color-mix(in srgb, var(--stg-instance, #b91c1c) 45%, #fff) !important; }
/* v1227 (compte rendu v1226, 4) : nuit — charges « à vérifier » (liées par le nom à l'import) en rouge clair, distinct des autres lignes */
html.svi-nuit body .ins-table tr.ins-vrf > td:not(#svi-z1):not(#svi-z2):not(#svi-z3), html.svi-nuit body .ins-table tr.ins-vrf > td:not(#svi-z1) :is(input, textarea, .ins-dv) { color: #fca5a5 !important; -webkit-text-fill-color: #fca5a5 !important; }
/* v1236 (compte rendu v1235, 1) : fenêtre RAPPROCHER — une ligne par champ, les deux choix l'un sous l'autre (téléphone compris), ronds de 44 px au doigt */
#svConf .tiers-rap .trap-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
#svConf .tiers-rap .trap-row { border: 1px solid #d6dbe3; border-radius: 8px; padding: 6px 10px; }
#svConf .tiers-rap .trap-k { font-size: 11px; font-weight: 800; margin-bottom: 2px; }
#svConf .tiers-rap .trap-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 13px; font-weight: 600; word-break: break-word; cursor: pointer; }
#svConf .tiers-rap .trap-opt input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; }
@media (pointer: coarse) { #svConf .tiers-rap .trap-opt { min-height: 44px; } }
html.svi-nuit body #svConf .tiers-rap .trap-row:not(#svi-z1) { border-color: #475569; }
/* v1236 (compte rendu v1235, 3) : croix du titre des fenêtres sans état claire sur le bandeau sombre, de jour aussi */
html body #svConf .svc-card:not([data-st]) > .svc-close:not(#svi-z1):not(#svi-z2) { color: #f8fafc !important; -webkit-text-fill-color: #f8fafc !important; }
/* v1237 (compte rendu v1236, 2) : ronds de RAPPROCHER dessinés par l'application — point plein = choisi, rond vide = non choisi, de jour et de nuit */
#svConf .tiers-rap .trap-opt input[type=radio] { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border: 2px solid #12355b; border-radius: 50%; background: #fff; display: inline-grid; place-content: center; }
#svConf .tiers-rap .trap-opt input[type=radio]:checked::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #12355b; }
html.svi-nuit body #svConf .tiers-rap .trap-opt input[type=radio]:not(#svi-z1) { border-color: #e2e8f0; background: transparent; }
html.svi-nuit body #svConf .tiers-rap .trap-opt input[type=radio]:checked:not(#svi-z1)::before { background: #e2e8f0; }
/* v1237 (compte rendu v1236, 3) : titre de la question des tiers sur deux lignes au besoin, bandeau agrandi */
#svConf .svc-card.tiers-ask > .svc-t { height: auto !important; min-height: 44px; white-space: normal !important; line-height: 1.3 !important; padding-top: 10px !important; padding-bottom: 10px !important; padding-right: 48px !important; overflow: visible !important; }
/* v1238 (compte rendu v1237) : le bandeau de la question des tiers ne rétrécit pas (carte en flex colonne) — deux lignes entières, de jour comme de nuit */
html body #svConf .svc-card.tiers-ask > .svc-t:not(#svi-z1):not(#svi-z2):not(#svi-z3) { flex: 0 0 auto !important; min-height: 44px !important; height: auto !important; }
/* v1239 (C3.1) : l'article chez chaque fournisseur — pleine largeur, défilement horizontal si l'écran est étroit */
html body .art-scroll .frs-g > .art-frs:not(#svi-z1):not(#svi-z2):not(#svi-z3) { grid-column: 1 / -1 !important; min-width: 0 !important; max-width: 100% !important; }
.art-afr-box { overflow-x: auto; max-width: 100%; }
.art-afrt td .ins-in { min-width: 120px; }
.art-afrt td.number .ins-in { min-width: 70px; }
/* v1240 : bloc « l'article chez chaque fournisseur » — classe propre (art-afr), visible seulement dans l'onglet FOURNISSEURS, limité à la fenêtre */
.art-scroll[data-at="inf"] .art-afr { display: none; }
.art-scroll { container-type: inline-size; }
html body .art-scroll .frs-g > .art-afr:not(#svi-z1):not(#svi-z2):not(#svi-z3) { grid-column: 1 / -1 !important; min-width: 0 !important; max-width: calc(100cqw - 4px) !important; width: auto !important; }
html body .art-scroll .frs-g > .art-afr > .art-afr-box { overflow-x: auto; min-width: 0; max-width: 100%; -webkit-overflow-scrolling: touch; }
/* v1240 : la colonne d'un aperçu passe à la ligne dans sa case, sans chevaucher les voisines */
html body :is(#sviMep, #sviMepOff) .mep-t:not(.mep-raw) :is(td:not(.nm), th) { white-space: normal !important; overflow-wrap: break-word; word-break: normal; overflow: hidden; }
/* v1241 : intitulés coupés entre les mots seulement */
/* v1242 : un intitulé passe à la ligne entre les mots ; coupé seulement s'il ne tient pas du tout ; jamais caché */
html body :is(#sviMep, #sviMepOff) .mep-t:not(.mep-raw) th { overflow-wrap: normal !important; word-wrap: normal !important; hyphens: none; overflow: visible !important; padding-left: 4px !important; padding-right: 4px !important; }
.art-afr-sug { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
/* v1240 : ENVOYER LA CONSULTATION — le tableau des fournisseurs défile de côté au téléphone */
.caf-snd-w { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
/* v1244 (C4.3) : autres articles d'une demande — défilement de côté dans son cadre au téléphone */
.bsn-xw { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
.bsn-xt td .ins-in { min-width: 90px; }
.bsn-xt td:first-child .ins-in, .bsn-xt td:first-child .sv-sel { min-width: 200px; }
.bsn-xadd { margin-top: 8px; max-width: 520px; }
/* v1253 : échéancier des livraisons — DATE et QUANTITÉ tiennent ensemble dans un téléphone */
html body table.bsn-lvt:not(#svi-z1):not(#svi-z2):not(#svi-z3) { width: auto !important; min-width: 0 !important; table-layout: auto !important; }
html body table.bsn-lvt td .ins-in[type="date"] { width: 150px !important; min-width: 0 !important; max-width: 150px !important; }
html body table.bsn-lvt td.number .ins-in { width: 100px !important; min-width: 0 !important; max-width: 100px !important; }
html body .bsn-lvw { min-width: 0; max-width: 100%; }
/* v1254 : ✕ des petits tableaux des fenêtres (échéancier, autres articles d'une demande…) aux couleurs de l'app, jour et nuit, assez grand au doigt */
html body #svConf :is(.bsn-lvt, .bsn-xt) button.ach-x:not(#svi-z1):not(#svi-z2) { min-width: 36px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line, #d0d7e2) !important; border-radius: 8px; background: var(--card, #fff) !important; color: #b91c1c !important; -webkit-text-fill-color: #b91c1c !important; font-size: 14px; font-weight: 700; cursor: pointer; }
html.svi-nuit body #svConf :is(.bsn-lvt, .bsn-xt) button.ach-x:not(#svi-z1):not(#svi-z2) { background: #1f2937 !important; border-color: #4b5563 !important; color: #fca5a5 !important; -webkit-text-fill-color: #fca5a5 !important; }
@media (pointer: coarse) { html body #svConf :is(.bsn-lvt, .bsn-xt) button.ach-x:not(#svi-z1):not(#svi-z2) { min-width: 44px; min-height: 44px; } }
/* v1255 : boutons d'action dans la fiche besoin (AJOUTER UNE DATE, AJOUTER UN ARTICLE, DEMANDER LA CRÉATION, LEVER LE BLOCAGE) aux couleurs de la fenêtre, jour et nuit */
html body #svConf .bsn-card button.ach-b:not(#svi-z1):not(#svi-z2) { min-height: 36px; padding: 0 14px; border: 1px solid var(--line, #d0d7e2) !important; border-radius: 8px; background: var(--card, #fff) !important; color: #172033 !important; -webkit-text-fill-color: #172033 !important; font-size: 12px; font-weight: 700; cursor: pointer; }
html.svi-nuit body #svConf .bsn-card button.ach-b:not(#svi-z1):not(#svi-z2) { background: #1f2937 !important; border-color: #4b5563 !important; color: #e5e7eb !important; -webkit-text-fill-color: #e5e7eb !important; }
@media (pointer: coarse) { html body #svConf .bsn-card button.ach-b:not(#svi-z1):not(#svi-z2) { min-height: 44px; } }
/* LOT 5 (18/11, INF EN NUIT) : la fenêtre INF du budget suit la règle 10.2, de jour comme de nuit — bandeau à la couleur de l'état du budget, titre et ✕ blancs */
:root[data-svst] body #docPop .doc-card[data-svwk="inf"] > .doc-head:not(#svi-inf1):not(#svi-inf2):not(#svi-inf3):not(#svi-inf4) { background: var(--svst) !important; }
:root[data-svst] body #docPop .doc-card[data-svwk="inf"] > .doc-head .doc-title:not(#svi-inf1) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
:root[data-svst] body #docPop .doc-card[data-svwk="inf"] > .doc-head :is(.doc-x, button):not(#svi-inf1):not(#svi-inf2):not(#svi-inf3):not(#svi-inf4) { color: #fff !important; -webkit-text-fill-color: #fff !important; background: transparent !important; border-color: rgba(255,255,255,.7) !important; }

/* compte rendu v1269 (3) : état INTERDIT (fournisseurs) — mêmes endroits que BLOQUÉ, couleur propre (palette : --st-interdit) */
.svi-stf-r.stf-interdit { color: var(--st-interdit, #7f1d1d); }
table.svi-bdgl tr.st-interdit td { color: var(--st-interdit, #7f1d1d) !important; }
#ach .nvp .nvp-blk tr.nvr-interdit td { color: var(--st-interdit, #7f1d1d) !important; }
:root[data-svst="interdit"] { --svst: var(--st-interdit, #7f1d1d); }
html body #svConf .svc-card[data-st="interdit"] > .svc-t:not(#svi-st1):not(#svi-st2):not(#svi-st3) { background: var(--st-interdit, #7f1d1d) !important; }
html body .ach-link[data-nvgo].lk-interdit { color: var(--st-interdit, #7f1d1d) !important; -webkit-text-fill-color: currentColor !important; }
html body #svConf input.bsn-cam { display: none !important; }   /* compte rendu v1269 (4) */
/* compte rendu v1269 (6) : parties restées hors de la palette de nuit */
html.svi-nuit body #chs :is(.ach-prm, .pg-t, .prm-table) :is(input.ins-in, input.prm-in, select, textarea):not([type=checkbox]):not([type=radio]):not(#svi-z1):not(#svi-z2) { background: #111827 !important; color: #e5e7eb !important; -webkit-text-fill-color: #e5e7eb !important; border-color: #4b5563 !important; }
html.svi-nuit body #chs .sv-sel:not(#svi-z1):not(#svi-z2), html.svi-nuit body #chs button.sv-natsel:not(#svi-z1):not(#svi-z2) { background: #111827 !important; color: #e5e7eb !important; -webkit-text-fill-color: #e5e7eb !important; border-color: #4b5563 !important; }
#chs .ach-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
html.svi-nuit body #chs .ach-link:not(#svi-z1) { color: #e5e7eb !important; -webkit-text-fill-color: #e5e7eb !important; }
html.svi-nuit body :is(#svConf, #docPop, #dlyAddW) :is(.frs-st, .svc-t, .cp-st, h3, h4) .svi-cnt:not(#svi-z1):not(#svi-z2), html.svi-nuit body #svConf .bsn-docn .svi-cnt:not(#svi-z1) { background: #374151 !important; color: #e5e7eb !important; -webkit-text-fill-color: #e5e7eb !important; border-color: #4b5563 !important; }
html.svi-nuit body :is(#svConf, #docPop) .sv-file-b:not(#svi-z1):not(#svi-z2) { background: #1f2937 !important; color: #e5e7eb !important; -webkit-text-fill-color: #e5e7eb !important; border-color: #4b5563 !important; }
html.svi-nuit body #svConf .bsn-ctl:not(#svi-z1) { background: #1f2937 !important; border-color: #4b5563 !important; color: #e5e7eb !important; }
html.svi-nuit body #svConf .bsn-ctl.near:not(#svi-z1) { background: #3b2a12 !important; border-color: #b45309 !important; }
html.svi-nuit body #svConf .bsn-ctl.over:not(#svi-z1) { background: #3f1d1d !important; border-color: #b91c1c !important; }
html.svi-nuit body #svConf .bsn-ctl:not(#svi-z1) * { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
html.svi-nuit body :is(#svConf, #docPop) .svc-alert:not(#svi-z1):not(#svi-z2) { background: #1f2937 !important; border-color: #4b5563 !important; color: #fbbf24 !important; -webkit-text-fill-color: #fbbf24 !important; }
html.svi-nuit body #ach .blk-more:not(#svi-z1):not(#svi-z2), html.svi-nuit body #ach .nvp .bdg-more-btn:not(#svi-z1):not(#svi-z2) { background: #1f2937 !important; color: #e5e7eb !important; -webkit-text-fill-color: #e5e7eb !important; border-color: #4b5563 !important; }
html.svi-nuit body #svConf .svc-card .svc-b:not(.svc-ok):not(#svi-z1):not(#svi-z2) { background: #1f2937 !important; color: #e5e7eb !important; -webkit-text-fill-color: #e5e7eb !important; border-color: #4b5563 !important; }
/* compte rendu v1270 (1) : bandeau d'état sous la barre du haut d'une page (fournisseur INTERDIT : motif) — lisible sur téléphone et PC */
#ach .nvp .nvp-ban { background: var(--ban, #7f1d1d); color: #fff; -webkit-text-fill-color: #fff; font-weight: 800; font-size: 13px; line-height: 1.35; padding: 6px 14px; white-space: normal; overflow-wrap: anywhere; }
/* compte rendu v1270 (2) : restes clairs la nuit — ⋯ des volets du PARAMÉTRAGE, ☰ et pastilles i / H de l'en-tête PARAMÉTRAGE, compteurs des titres de bloc des pages */
html.svi-nuit body #chs .prm-more:not(#svi-z1):not(#svi-z2), html.svi-nuit body #chs .section-head :is(.novapp-menu, .bdg-d-badge, .nvl-inf, .nvl-h):not(#svi-z1):not(#svi-z2) { background: #1f2937 !important; color: #e5e7eb !important; -webkit-text-fill-color: #e5e7eb !important; border-color: #4b5563 !important; }
html.svi-nuit body #ach .nvp :is(.nvp-blk, .bdg-d-block) .svi-cnt:not(#svi-z1):not(#svi-z2) { background: #374151 !important; color: #f3f4f6 !important; -webkit-text-fill-color: #f3f4f6 !important; border-color: #6b7280 !important; }
/* v1272 (compte rendu v1271, remarque — choix B validé) : compteur à zéro des titres de bloc lisible de jour (gris foncé, moins marqué que les compteurs non nuls) */
html:not(.svi-nuit) body :is(.nvp-blk, .bdg-d-block, .bdg-d-block-title, .frs-st) .svi-cnt:not(.cnt-nz):not(#svi-z1) { color: #4b5563 !important; -webkit-text-fill-color: #4b5563 !important; background: #e5e7eb !important; }
/* v1273 (compte rendu v1272, 1) : de jour, compteur NON NUL des titres de bloc et de section franchement orange et lisible (blanc sur #c2410c, contraste 5,2) ; à zéro : gris foncé (v1272) ; nuit inchangée */
html:not(.svi-nuit) body :is(.nvp-blk, .bdg-d-block, .bdg-d-block-title, .frs-st) .svi-cnt.cnt-nz:not(#svi-z1):not(#svi-z2) { background: #c2410c !important; border-color: #c2410c !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
/* v1274 (remarque du compte rendu v1273, validé) : compteurs des pages de LISTE (titre de la barre, filtre ▾ des états, arbre des dates, menu des états) — même logique que les blocs :
   non nul = blanc sur #c2410c (contraste 5,2), jour et nuit ; à zéro = gris foncé sur gris clair le jour (6,1), gris clair sur gris foncé la nuit (9,4) */
html body :is(.novapp-list-titlebar, .novapp-date-panel, .svi-stf-head, .svi-stf-r, .novapp-date-item) .svi-cnt.cnt-nz:not(#svi-z1):not(#svi-z2) { background: #c2410c !important; border-color: #c2410c !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
html:not(.svi-nuit) body :is(.novapp-list-titlebar, .novapp-date-panel, .svi-stf-head, .svi-stf-r, .novapp-date-item) .svi-cnt:not(.cnt-nz):not(#svi-z1):not(#svi-z2) { background: #e5e7eb !important; border-color: #d1d5db !important; color: #4b5563 !important; -webkit-text-fill-color: #4b5563 !important; }
html.svi-nuit body :is(.novapp-list-titlebar, .novapp-date-panel, .svi-stf-head, .svi-stf-r, .novapp-date-item) .svi-cnt:not(.cnt-nz):not(#svi-z1):not(#svi-z2) { background: #374151 !important; border-color: #6b7280 !important; color: #f3f4f6 !important; -webkit-text-fill-color: #f3f4f6 !important; }
/* LOT 1 (18/11) : bouton réservé à l'administrateur (grisé), bloc EN ATTENTE DE VALIDATION, import de démarrage */
html body .ach-b.ach-boff:not(#svi-z1) { opacity: .45; cursor: not-allowed; }
.frs-why.frs-pend { border-color: #b45309; background: #fff7ed; color: #7c2d12; }
html.svi-nuit body .frs-why.frs-pend:not(#svi-z1) { background: #3b2410; color: #fed7aa; border-color: #c2410c; }
.frs-pend .ach-b { margin-left: 6px; }
.pg-imp { margin: 10px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* compte rendu v1275 (2) : VALIDER / REFUSER du bloc EN ATTENTE DE VALIDATION = boutons ordinaires, jour et nuit */
html body .frs-why.frs-pend .ach-b:not(#svi-z1):not(#svi-z2) { border: 1px solid #d5dbe3 !important; background: #fff !important; border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 800; color: #172033 !important; -webkit-text-fill-color: #172033 !important; cursor: pointer; }
html.svi-nuit body .frs-why.frs-pend .ach-b:not(#svi-z1):not(#svi-z2) { background: #1f2937 !important; border-color: #4b5563 !important; color: #e5e7eb !important; -webkit-text-fill-color: #e5e7eb !important; }
/* compte rendu v1276 (1) : CLÔTURER — RETENU PAR ARTICLE au téléphone (une carte par article) ; titre entier */
.caf-rtw .svc-t, .caf-rtw .svc-title, .caf-rtw h3 { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.25; }
.cafr-cards { display: flex; flex-direction: column; gap: 10px; }
.cafr-card { border: 1px solid #d5dbe3; border-radius: 10px; padding: 8px 10px; background: #fff; }
.cafr-h { font-weight: 800; font-size: 12px; margin-bottom: 6px; }
.cafr-r { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 3px 0; border-bottom: 1px dashed #e2e8f0; }
.cafr-rt { border-bottom: 0; font-weight: 800; padding-top: 6px; }
.cafr-f { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 11px; font-weight: 700; }
.cafr-f .ins-in { width: 100% !important; max-width: none !important; box-sizing: border-box; }
html.svi-nuit body .cafr-card:not(#svi-z1) { background: #111827; border-color: #374151; color: #e5e7eb; }
html.svi-nuit body .cafr-r:not(#svi-z1) { border-bottom-color: #374151; }
/* compte rendu v1278 (1) : CLÔTURER — RETENU PAR ARTICLE tient dans l'écran ; titre en haut, cartes ou tableau dans une zone qui défile, pied toujours visible */
#svConf .svc-card.caf-rtw { display: flex !important; flex-direction: column; max-height: calc(100dvh - 24px) !important; overflow: hidden !important; }
#svConf .caf-rtw > .svc-t, #svConf .caf-rtw > .svc-f, #svConf .caf-rtw > .svc-close { flex: 0 0 auto; }
#svConf .caf-rtw .caf-rts { flex: 1 1 auto; min-height: 0; max-height: none !important; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* compte rendu v1279 (1) : titre de CLÔTURER à hauteur automatique, jour et nuit (comme tiers-ask) */
#svConf .svc-card.caf-rtw > .svc-t { height: auto !important; min-height: 44px; white-space: normal !important; line-height: 1.3 !important; padding-top: 10px !important; padding-bottom: 10px !important; padding-right: 48px !important; overflow: visible !important; flex: 0 0 auto; }
/* compte rendu v1279 (2) : au téléphone, la fenêtre commence sous la barre du haut (croix atteignable, pas sous le bouton utilisateur) */
html body #svConf .svc-card.caf-rtw > .svc-t:not(#svi-z1):not(#svi-z2):not(#svi-z3) { flex: 0 0 auto !important; min-height: 44px !important; height: auto !important; max-height: none !important; }
@media (max-width: 700px) { html body #svConf .svc-card.caf-rtw:not(#svi-z1) { margin-top: 44px !important; max-height: calc(100dvh - 32px - 44px) !important; align-self: flex-start; } }
