/* OFFICIM Compact UI 1.0.7. Native Dolibarr table-cell layout; no core modifications. */
#officim-compact-rail-v105{display:none}#officim-v105-flyout[hidden]{display:none!important}
@media(min-width:900px){
 html.officim-v105-ready #id-left{display:table-cell!important;width:64px!important;min-width:64px!important;max-width:64px!important;vertical-align:top!important;padding:0!important;box-sizing:border-box!important;background:var(--officim-v105-nav-bg,#111)!important}
 html.officim-v105-ready #id-right{display:table-cell!important;width:auto!important;min-width:0!important;margin:0!important;vertical-align:top!important;box-sizing:border-box!important}
 html.officim-v105-ready #id-right .fiche{max-width:100%;min-width:0}
 html.officim-v105-ready #id-left > :not(#officim-compact-rail-v105){display:none!important}
 html.officim-v105-ready #officim-compact-rail-v105{display:flex!important;flex-direction:column;align-items:center;gap:3px;width:64px;box-sizing:border-box;padding:5px 3px;background:var(--officim-v105-nav-bg,#111);color:#fff;position:fixed;left:0;top:var(--officim-v107-top,50px);height:calc(100vh - var(--officim-v107-top,50px));max-height:none;overflow-y:auto;overflow-x:hidden;z-index:300;overscroll-behavior:contain}
 html.officim-v105-ready #officim-compact-rail-v105 a,html.officim-v105-ready #officim-compact-rail-v105 button{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:48px;height:40px;padding:3px;box-sizing:border-box;border:0;border-radius:5px;background:transparent;color:#fff;text-decoration:none;cursor:pointer;font-size:20px}
 html.officim-v105-ready #officim-compact-rail-v105 .officim-v105-toggle{width:52px;height:46px;font-size:27px;font-weight:700;border:1px solid rgba(255,255,255,.35);margin-bottom:3px}
 html.officim-v105-ready #officim-compact-rail-v105 a:hover,html.officim-v105-ready #officim-compact-rail-v105 button:hover,html.officim-v105-ready #officim-compact-rail-v105 :focus-visible{background:rgba(255,255,255,.18);outline:2px solid rgba(255,255,255,.6)}
 html.officim-v105-ready #officim-compact-rail-v105 svg,html.officim-v105-ready #officim-compact-rail-v105 img{max-width:23px;max-height:23px}
 html.officim-v105-ready.officim-v105-expanded #id-left{width:260px!important;min-width:260px!important;max-width:260px!important;background:initial!important}
 html.officim-v105-ready.officim-v105-expanded #officim-compact-rail-v105{width:260px;height:auto;max-height:none;position:relative;left:auto;top:auto;align-items:flex-start;padding:6px;overflow:visible}
 html.officim-v105-ready.officim-v105-expanded #officim-compact-rail-v105 .officim-v105-link{display:none!important}
 html.officim-v105-ready.officim-v105-expanded #id-left > :not(#officim-compact-rail-v105){display:block!important}
 html.officim-v105-ready .div-table-responsive,html.officim-v105-ready .div-table-responsive-no-min{max-width:100%;overflow-x:auto}
 html.officim-v105-ready table.liste td,html.officim-v105-ready table.liste th{padding-left:5px!important;padding-right:5px!important}
}
#officim-v105-flyout{position:fixed;z-index:99999;width:250px;max-width:calc(100vw - 85px);max-height:calc(100vh - 16px);overflow-y:auto;box-sizing:border-box;background:var(--officim-v105-nav-bg,#111);color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:7px;box-shadow:0 8px 22px rgba(0,0,0,.28);padding:8px}
#officim-v105-flyout .officim-v105-fly-title{font-weight:700;padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.25);margin-bottom:4px}
#officim-v105-flyout .officim-v105-fly-link{display:block;padding:9px 10px;color:#fff!important;text-decoration:none;border-radius:4px;overflow-wrap:anywhere}
#officim-v105-flyout .officim-v105-fly-link:hover,#officim-v105-flyout .officim-v105-fly-link:focus-visible{background:rgba(255,255,255,.2);outline:1px solid rgba(255,255,255,.5)}

/* v1.0.7: keep the collapsed rail visible while the document scrolls.
   The native #id-left table cell remains the width placeholder. */
@media(min-width:900px){
 html.officim-v105-ready:not(.officim-v105-expanded) #officim-compact-rail-v105{
   position:fixed!important;left:0!important;top:var(--officim-v107-top,50px)!important;
   height:calc(100dvh - var(--officim-v107-top,50px))!important;
   max-height:none!important;min-height:0!important;
   overflow-x:hidden!important;overflow-y:auto!important;
   background:var(--officim-v105-nav-bg,#111)!important;z-index:300!important;
 }
}

/* v1.0.8 typography: scoped to Officim compact mode; preserve icons and monetary alignment. */
html.officim-v105-ready { --officim-ui-font:14px; }
html.officim-v105-ready body,
html.officim-v105-ready #id-right,
html.officim-v105-ready #id-right input,
html.officim-v105-ready #id-right select,
html.officim-v105-ready #id-right textarea,
html.officim-v105-ready #id-right button,
html.officim-v105-ready #id-right table.liste,
html.officim-v105-ready #id-right table.liste td {font-size:var(--officim-ui-font,14px)!important;}
html.officim-v105-ready #id-right table.liste th {font-size:calc(var(--officim-ui-font,14px) - 1px)!important;}
html.officim-v105-ready #id-left .vmenu,
html.officim-v105-ready #id-left .menu_titre {font-size:calc(var(--officim-ui-font,14px) - 1px)!important;}
html.officim-v105-ready #id-right .titre {font-size:calc(var(--officim-ui-font,14px) + 4px)!important;}
/* Avoid shrinking the pictograms in the working navigation rail. */
#officim-font-control-v108 {position:fixed;z-index:99998;right:14px;bottom:14px;display:flex;gap:5px;align-items:center;background:#fff;color:#222;border:1px solid #aaa;border-radius:7px;padding:6px 9px;box-shadow:0 2px 12px #0002;font-size:13px;}
#officim-font-control-v108[hidden]{display:none!important}
#officim-font-control-v108 select{font-size:13px!important;padding:3px;}
#officim-font-control-v108 button{font-size:13px!important;cursor:pointer;}
