body.gebat-super-ui {
  background:#d9d9d9;
  /* Réglages rapides de la sidebar */
  --sidebar-width:260px;
  --menu-btn-width:85%;      /* mettez 100%, 95%, 92%... selon votre besoin */
  --menu-btn-bg:#3b7586;     /* couleur normale du bouton principal */
  --menu-btn-bg-active:#215d70;
  --menu-btn-border:#174657;
}

body.gebat-super-ui .layout#mainContent{
  display:flex;
  height:100vh;
  min-height:100vh;
  overflow:hidden;
  background:#d9d9d9;
}

body.gebat-super-ui .sidebar{
  width:var(--sidebar-width);
  min-width:var(--sidebar-width);
  background:#e7e3d4;
  border-right:1px solid #1f1f1f;
  padding:10px 8px 18px;
  box-sizing:border-box;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#9ca3af transparent;
}

body.gebat-super-ui .sidebar::-webkit-scrollbar{
  width:8px;
}
body.gebat-super-ui .sidebar::-webkit-scrollbar-thumb{
  background:#9ca3af;
  border-radius:999px;
}

body.gebat-super-ui .sidebar .brand-logo{
  display:block;
  width:155px;
  max-width:100%;
  margin:6px auto 16px;
  height:auto;
}

body.gebat-super-ui .sidebar .sidebar-caption{
  text-align:center;
  font-size:12px;
  line-height:1.15;
  color:#111;
  margin:0;
}

body.gebat-super-ui .sidebar .sidebar-title{
  text-align:center;
  font-weight:700;
  text-transform:uppercase;
  font-size:16px;
  line-height:1.1;
  margin:0;
}

body.gebat-super-ui .sidebar .sidebar-title + .sidebar-caption{
  margin-top:2px;
}

/* soit supprimer cet ancien bloc, soit le laisser comme ceci */
.sidebar-caption{
  text-align:center;
  margin:6;
}

.sidebar-head-gap{
    height:28px;   /* 24px à 28px selon l'espace voulu */
}






body.gebat-super-ui .sidebar .dropdown{
  width:var(--menu-btn-width);
  margin:0 auto 10px;
}

body.gebat-super-ui .sidebar .dropdown-label{
  min-height:40px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#fff;
  background:var(--menu-btn-bg);
  border:2px solid var(--menu-btn-border);
  border-radius:10px;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
}

body.gebat-super-ui .sidebar .dropdown:not(.has-children) .dropdown-label{
  justify-content:center;
}

body.gebat-super-ui .sidebar .dropdown:not(.has-children) .arrow{
  display:none;
}

body.gebat-super-ui .sidebar .dropdown .label-text{
  flex:1;
  text-align:center;
}

body.gebat-super-ui .sidebar .dropdown .arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  font-size:11px;
  transform-origin:center;
}

body.gebat-super-ui .sidebar .dropdown-content{
  display:none;
  margin:6px 3px 0 !important;
  padding:8px;
  background:rgba(255,255,255,.45);
  border:1px solid #c9c2ad;
  border-radius:10px;
  box-sizing:border-box;
}

body.gebat-super-ui .sidebar .dropdown-content > div{
  cursor:pointer;
  user-select:none;
  margin:0 0 6px !important;
  padding:8px 10px !important;
  border:1px solid #cfd4da;
  border-radius:8px;
  background:#fff;
  font-size:13px;
  font-weight:600;
  line-height:1.25 !important;
  color:#073c52;
  transition:background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

body.gebat-super-ui .sidebar .dropdown-content > div:last-child{
  margin-bottom:0 !important;
}

body.gebat-super-ui .sidebar .dropdown-content > div:hover,
body.gebat-super-ui .sidebar .dropdown-content > div.is-active{
  background:#edf7fb;
  border-color:var(--menu-btn-bg);
  box-shadow:0 0 0 2px rgba(42,111,132,.10);
}

body.gebat-super-ui .sidebar .dropdown.is-active > .dropdown-label,
body.gebat-super-ui .sidebar .dropdown.open > .dropdown-label{
  background:var(--menu-btn-bg-active);
}

body.gebat-super-ui .main{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  background:#d9d9d9;
}

body.gebat-super-ui .header{
  min-height:45px;
  padding:0 14px !important;
  background:#d9a300;
  border-bottom:2px solid #111;
  box-sizing:border-box;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

body.gebat-super-ui #profileBox{
  display:flex;
  align-items:center;
  gap:8px;
}

body.gebat-super-ui #profileBox img{
  width:30px !important;
  height:30px !important;
  border-radius:50%;
  background:#fff;
  border:1px solid rgba(0,0,0,.14);
}

body.gebat-super-ui #profileUserName{
  color:#111;
  font-weight:700;
}

body.gebat-super-ui #profileBox button{
  height:28px;
  background:#fff !important;
  border:1px solid #8a6b09 !important;
  border-radius:3px;
  padding:4px 10px !important;
  font-weight:600;
}

body.gebat-super-ui .page-workspace{
  flex:1;
  min-height:0;
  overflow:hidden;
  background:#d9d9d9;
}

body.gebat-super-ui .page-workspace > .content{
  display:none;
  height:100%;
  overflow:auto;
  box-sizing:border-box;
  padding:18px 20px 26px;
  background:#d9d9d9;
}

body.gebat-super-ui .page-workspace > .content.active{
  display:block;
}

body.gebat-super-ui .page-workspace > .content::-webkit-scrollbar{
  width:10px;
  height:10px;
}

body.gebat-super-ui .page-workspace > .content::-webkit-scrollbar-thumb{
  background:#a5acb8;
  border-radius:999px;
}

body.gebat-super-ui .page-workspace > .content .title{
  margin:0 0 16px;
  padding:12px 16px;
  background:#fff;
  border:1px solid #cfd4da;
  border-radius:14px;
  box-shadow:0 3px 10px rgba(0,0,0,.05);
}

body.gebat-super-ui .page-workspace > .content > form,
body.gebat-super-ui .page-workspace > .content > table,
body.gebat-super-ui .page-workspace > .content > .kpi-page-wrap,
body.gebat-super-ui .page-workspace > .content > div[id^="tableContainer"],
body.gebat-super-ui .page-workspace > .content > div[id^="tableWrap"],
body.gebat-super-ui .page-workspace > .content > div[id^="range"],
body.gebat-super-ui .page-workspace > .content > .zone-filtres{
  background:#fff;
  border:1px solid #cfd4da;
  border-radius:14px;
  box-shadow:0 3px 10px rgba(0,0,0,.05);
}

body.gebat-super-ui .page-workspace > .content > form,
body.gebat-super-ui .page-workspace > .content > .kpi-page-wrap{
  padding:14px;
}

body.gebat-super-ui .page-workspace > .content table{
  background:#fff;
}

body.gebat-super-ui .table-scroll-zone{
  overflow:auto !important;
  max-width:100%;
  max-height:calc(100vh - 260px);
  border:1px solid #b8bec7;
  border-radius:14px;
  background:#fff;
  box-shadow:0 3px 10px rgba(0,0,0,.05);
}

body.gebat-super-ui .table-scroll-zone table{
  width:max-content;
  min-width:100%;
  margin-top:0 !important;
}

body.gebat-super-ui .table-scroll-zone thead th,
body.gebat-super-ui .table-scroll-zone tfoot td{
  white-space:nowrap;
}

body.gebat-super-ui .table-scroll-zone td,
body.gebat-super-ui .table-scroll-zone th{
  vertical-align:middle;
}

body.gebat-super-ui .super-sticky-header{
  background:#e6e6e6 !important;
  box-shadow:inset 0 -1px 0 #000;
}

body.gebat-super-ui #tableWrapCaisse,
body.gebat-super-ui #tableContainerVente,
body.gebat-super-ui #tableContainerAchat,
body.gebat-super-ui #tableContainerepluchageown,
body.gebat-super-ui #tableContainerCuisson,
body.gebat-super-ui #tableContainerDeshydrate,
body.gebat-super-ui #tableContainerEmballagevide,
body.gebat-super-ui #tableContainerEmballageproduitfini,
body.gebat-super-ui #tableContainerStockusine,
body.gebat-super-ui #tableContainerStockbureau,
body.gebat-super-ui #tableContainerDestockage,
body.gebat-super-ui #tableContainerInventaire,
body.gebat-super-ui #tableContainerStockBureauVente,
body.gebat-super-ui #tableContainerVenteVersement,
body.gebat-super-ui #tableContainerEmballageStockUsine,
body.gebat-super-ui #tableContainerTableauBordProduction,
body.gebat-super-ui #tableContainerTableauBordCommercial,
body.gebat-super-ui #tableContainerTableauBordRentabilite{
  margin-top:14px;
}

body.gebat-super-ui .caisse-toolbar,
body.gebat-super-ui .zone-filtres,
body.gebat-super-ui .kpi-toolbar{
  background:#fff;
}

body.gebat-super-ui .page-workspace input,
body.gebat-super-ui .page-workspace select,
body.gebat-super-ui .page-workspace textarea{
  box-sizing:border-box;
}

body.gebat-super-ui .page-workspace > .content > table,
body.gebat-super-ui .page-workspace > .content > form table{
  width:100%;
}

body.gebat-super-ui .sidebar-footer-note{
  text-align:center;
  font-size:11px;
  color:#4b5563;
  margin-top:14px;
}

@media (max-width: 1100px){
  body.gebat-super-ui .sidebar{
    width:calc(var(--sidebar-width) - 15px);
    min-width:calc(var(--sidebar-width) - 15px);
  }

  body.gebat-super-ui .sidebar .dropdown-label{
    font-size:14px;
  }
}















/* =========================
   TRESORERIE / PARAMETRES
========================= */
body.gebat-super-ui .sidebar .dropdown-content > div.section-label,
body.gebat-super-ui .sidebar .dropdown-content > div.menu-tresorerie-parametres{
  cursor:default;
  background:#eef3f7;
  border-color:#cfd8e3;
  color:#0f3f53;
  font-weight:800;
  box-shadow:none;
}

body.gebat-super-ui .sidebar .dropdown-content > div.section-label:hover,
body.gebat-super-ui .sidebar .dropdown-content > div.menu-tresorerie-parametres:hover{
  background:#eef3f7;
  border-color:#cfd8e3;
  color:#0f3f53;
  box-shadow:none;
  transform:none;
}
