/* IT Op Slate 0.2.0 — restrained graphite visual layer for Dolibarr / ITOPS.
   No change to flow, interactivity, or CSS positioning of Dolibarr's menus.
   Intended for Eldy on Dolibarr 24. Test other themes before use.
   Keep existing semantic warning, error and success colors. */
:root {
  --itos-bg:#eff0f1;
  --itos-paper:#ffffff;
  --itos-ink:#272c31;
  --itos-muted:#657078;
  --itos-line:#d9dde0;
  --itos-line-strong:#bcc3c8;
  --itos-chrome:#30363b;
  --itos-chrome2:#454b50;
  --itos-warm:#ad9567;
  --itos-warm-light:#f5f1e9;
  --itos-shadow:0 2px 10px rgba(26,31,36,.055);
  --itos-radius:9px;
}

/* Core Dolibarr: restrained neutral surfaces, preserve native layout algorithms. */
body:not(.bodyforlogin) { background:var(--itos-bg); color:var(--itos-ink); }
#id-right { background:var(--itos-bg); }
#id-top {
  background:linear-gradient(100deg,#292f34,#393f44) !important;
  border-bottom:1px solid #51575b;
  box-shadow:0 2px 8px rgba(25,29,33,.09);
}
#id-top a, #id-top a:visited { color:#eff1f2; }
#id-top a:hover, #id-top a:focus-visible { color:#fff; }
#id-top .tmenu, #id-top ul.tmenu { background:transparent; }
#id-top li.tmenusel, #id-top li.tmenusel .tmenucenter,
#id-top li.tmenu:hover, #id-top li.tmenu:hover .tmenucenter {
  background:rgba(255,255,255,.075) !important;
}
#id-top li.tmenusel { box-shadow:inset 0 -2px 0 var(--itos-warm); }
#id-left, .side-nav { background:var(--itos-chrome2); }
#id-left a, .side-nav a { color:#f1f2f3; }
#id-left a:hover, .side-nav a:hover { color:#fff; }
#id-left .vmenu, #id-left .vmenusel,
#id-left .menu_contenu, #id-left .menu_titre {
  border-color:rgba(255,255,255,.12);
}
#id-left .vmenusel, #id-left .menu_contenu:hover {
  background:rgba(255,255,255,.07);
  border-left-color:var(--itos-warm);
}

/* Avoid overriding global status colors, datepicker, popovers, and diagrams. */
.fiche:not(.fichecenter), .fichecenter, .fichehalfright, .fichehalfleft { color:var(--itos-ink); }
div.liste_titre, tr.liste_titre, .liste_titre, .liste_titre_sel {
  background:#e8eaeb; color:#3b4247;
}
table.liste, table.noborder, .div-table-responsive table {
  border-color:var(--itos-line);
}
table.liste td, table.noborder td { border-bottom-color:#e2e5e7; }
table.liste tr:nth-child(even) td, table.noborder tr:nth-child(even) td { background:#f9f9f9; }
.tabs .tab, .tabs a.tab, .tabBar, .tabs {
  border-color:var(--itos-line);
}
.tabs a.tabactive, .tabs .tabactive {
  border-bottom-color:var(--itos-warm);
}
fieldset, .border, .boxstats, .box, div.div-table-responsive {
  border-color:var(--itos-line);
}
input[type="text"], input[type="search"], input[type="email"], input[type="number"],
input[type="password"], input[type="date"], input[type="datetime-local"],
select, textarea, .select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-color:var(--itos-line-strong);
  border-radius:7px;
  color:var(--itos-ink);
  background-color:#fff;
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, .select2-container--focus .select2-selection {
  outline:2px solid var(--itos-warm);
  outline-offset:2px;
}
button, input[type="submit"], .button, .butAction, .butActionRefused {
  border-radius:7px;
}
.butAction:not(.butActionDelete), input[type="submit"].button, button.button {
  background:var(--itos-chrome2);
  color:#fff;
  border-color:#3c444a;
  box-shadow:none;
}
.butAction:not(.butActionDelete):hover, input[type="submit"].button:hover, button.button:hover {
  background:#31383d;
  color:#fff;
}
.badge, .tag { box-shadow:none; }

/* IT Operations Hub, which has its own UI stylesheet. Higher specificity
   keeps Slate consistent regardless of whether module CSS loads first or last. */
html body .itops {
  --io-ink:var(--itos-ink);
  --io-muted:var(--itos-muted);
  --io-border:var(--itos-line);
  --io-panel:var(--itos-paper);
  --io-raise:#f4f5f5;
  --io-accent:#857148;
  --io-navy:var(--itos-chrome);
  color:var(--itos-ink);
  font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;
  max-width:1570px;
}
html body .itops .hero {
  color:#fff;
  background:
    linear-gradient(90deg,rgba(42,47,51,.99) 0%,rgba(44,49,53,.98) 60%,rgba(43,48,52,.82) 100%),
    url('../img/datacenter-reference.png') right center / 240px auto no-repeat;
  border:1px solid #555a5f;
  border-radius:12px;
  box-shadow:var(--itos-shadow);
  padding:19px 24px;
}
html body .itops .hero-brand h1,
html body .itops .hero h1 { color:#fff; letter-spacing:-.025em; }
html body .itops .brand-mark {
  color:#f8f8f7;
  background:#53595d;
  border:1px solid #707476;
  box-shadow:none;
  border-radius:8px;
}
html body .itops .overline { color:#d5c4a3; }
html body .itops .hero-indicator {
  background:#a6c0ae;
  box-shadow:none;
}
html body .itops .hero-right { color:#e2e4e5; }
html body .itops .nav {
  background:#fdfdfd;
  border:1px solid var(--itos-line);
  border-radius:10px;
  box-shadow:none;
  padding:5px;
}
html body .itops .nav a { color:#586167; border-radius:6px; }
html body .itops .nav a:hover { background:#f1f2f2; color:#30363b; }
html body .itops .nav a.sel {
  background:var(--itos-warm-light);
  box-shadow:inset 0 0 0 1px #e0d5c1;
  color:#675733;
}
html body .itops h1,html body .itops h2,html body .itops h3,html body .itops h4,
html body .itops .pagehead h2,html body .itops .card h2,
html body .itops .card h3 { color:var(--itos-ink); }
html body .itops .overline, html body .itops .eyebrow { color:#917c57; }
html body .itops a { color:#5f625e; }
html body .itops a:hover { color:#272c31; }
html body .itops .card,html body .itops .kpi,
html body .itops .portfolio-card,html body .itops .phase-card {
  background:var(--itos-paper);
  border:1px solid var(--itos-line);
  box-shadow:var(--itos-shadow);
  border-radius:10px;
}
html body .itops .kpi:before { background:#aeb4b7; height:2px; }
html body .itops .kpi-teal:before { background:#859693; }
html body .itops .kpi-violet:before { background:#8e9398; }
html body .itops .kpi-amber:before { background:var(--itos-warm); }
html body .itops .kpi strong,html body .itops .metric,
html body .itops .stat strong { color:#343b40; }
html body .itops .portfolio-card h4 a,
html body .itops .portfolio-card h4,
html body .itops .portfolio-stats strong { color:#30383d; }
html body .itops .portfolio-card:hover,html body .itops .phase-card:hover {
  border-color:#b8b8b3;
  box-shadow:0 5px 18px rgba(37,41,45,.09);
}
html body .itops .portfolio-tag,html body .itops .badge {
  background:#f3f0e8;
  color:#73613b;
  border:1px solid #e2d9c7;
}
html body .itops .btn:not(.subtle),html body .itops .button-primary {
  background:#42494e;
  border:1px solid #3a4248;
  box-shadow:none;
  color:#fff;
}
html body .itops .btn:not(.subtle):hover,
html body .itops .button-primary:hover { background:#31383e; color:#fff; }
html body .itops .button-secondary,html body .itops .btn.subtle {
  background:#f4f4f3; color:#40474b; border:1px solid #d8dcde; box-shadow:none;
}
html body .itops .chart-fill,html body .itops .progress-track>span {
  background:linear-gradient(90deg,#777f83,#b3a281);
}
html body .itops .chart-fill.secondary { background:#9da5aa; }
html body .itops .chart-track,html body .itops .progress-track { background:#e8e9e8; }
html body .itops .donut { background:conic-gradient(#a48d63 calc(var(--value)*1%),#e5e6e6 0); }
html body .itops .donut strong { color:var(--itos-ink); }
html body .itops .focus-panel,html body .itops .setup-footer,
html body .itops .setup-card,html body .itops .empty-state { background:#f8f8f7; }
html body .itops .step-number { background:#f5f1e9; border-color:#ded2bc; color:#78633d; }
html body .itops .focus-dot { background:var(--itos-warm); }
html body .itops .focus-dot.is-late { background:#b96554; }
html body .itops .fb-highlight,html body .itops .fb-portal-entry,
html body .itops .compliance-strip,html body .itops .una-pilot-status {
  background:#f8f8f7;
  border-color:#d8dddf;
}
html body .itops input:focus-visible,html body .itops textarea:focus-visible,
html body .itops select:focus-visible { outline:2px solid var(--itos-warm); outline-offset:2px; }
html body .itops table th { background:#f1f2f2; color:#4e585d; }
html body .itops table td { color:#343b40; }
html body .itops .tablewrap:focus-visible { outline-color:var(--itos-warm); }
html body .itops .chart-note { color:#98693f; }

/* Touch targets without altering Dolibarr's tab layout. */
@media (max-width:760px) {
  html body .itops .hero { padding:15px 16px; }
  html body .itops .nav a { min-height:40px; display:inline-flex; align-items:center; }
  html body .itops .button-primary,html body .itops .button-secondary,
  html body .itops .btn { min-height:44px; }
  html body .itops .card { padding:16px; }
}
@media (prefers-reduced-motion:reduce) {
  html body .itops *,html body .itops *::before,html body .itops *::after {
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
  }
}
@media print {
  #id-top,#id-left,.side-nav { box-shadow:none !important; }
  html body .itops .hero { background:#fff !important; color:#000 !important; border-color:#bbb; }
  html body .itops .hero h1 { color:#000 !important; }
  html body .itops .card { box-shadow:none; }
}

/* --- IT Op Slate 0.2.0 / enterprise refinement --------------------------- */
:root {
 --itos-bg:#ECEEF0; --itos-paper:#FDFDFD; --itos-ink:#252A2F;
 --itos-chrome:#31363B; --itos-chrome2:#4A5055;
 --itos-line:#D7DADC; --itos-warm:#B19B6E;
 --itos-shadow:0 2px 12px rgba(23,27,30,.055);
}
/* A conservative layer: do not restyle native functional controls or alerts. */
body:not(.bodyforlogin) { background:#ECEEF0; }
#id-top { background:linear-gradient(120deg,#2D3237,#41474C) !important; }
#id-top li.tmenusel { box-shadow:inset 0 -3px 0 #B19B6E; }
#id-left { background:#474D52; }
#id-left a:focus-visible,#id-top a:focus-visible {outline:2px solid #D1B885;outline-offset:1px}
.fichecenter .fichehalfright,.fichecenter .fichehalfleft {box-shadow:none}
.tabs .tabactive,.tabs a.tabactive {color:#20262B;font-weight:650}
body:not(.bodyforlogin) table.liste tr:hover td { background:#F1F2F3; }
body:not(.bodyforlogin) table.liste a {text-underline-offset:2px}
body:not(.bodyforlogin) .butAction:focus-visible {outline:2px solid #B19B6E;outline-offset:2px}
html body .itops .hero {
 background:linear-gradient(90deg,rgba(46,51,55,.99) 0%,rgba(45,50,54,.97) 63%,rgba(45,50,54,.76) 100%),url('../img/datacenter-slate.webp') right center / auto 100% no-repeat;
 border:1px solid #656A6D;border-radius:12px;box-shadow:0 3px 12px rgba(29,32,35,.06);
}
html body .itops .brand-mark {
 background:#33383C url('../img/itop-symbol.svg') center / cover no-repeat;
 color:transparent !important;font-size:0 !important;
 width:46px;height:46px;min-width:46px;min-height:46px;display:inline-flex;
}
html body .itops .hero .overline {color:#D9CCB7}
html body .itops .card,html body .itops .portfolio-card,html body .itops .kpi {box-shadow:0 2px 8px rgba(28,32,36,.045)}
html body .itops .nav a.sel {background:#F2EEE4;color:#5C4D2F;border:1px solid #E3DAC8}

/* Real data, permission-scoped IT Op dashboard. */
.itop-home {font:400 14px/1.45 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#252A2F;max-width:1600px;margin:0 auto;padding:14px 18px 30px;box-sizing:border-box;}
.itop-home *{box-sizing:border-box}
.itop-home a{color:inherit;text-decoration:none}
.itop-home a:hover{text-decoration:none}
.itop-home .itos-hero {position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:136px;border-radius:12px;padding:22px 30px;background:linear-gradient(90deg,rgba(39,44,48,1) 0%,rgba(48,53,57,.985) 54%,rgba(45,50,54,.75) 100%),url('../img/datacenter-slate.webp') right center / auto 100% no-repeat;color:#F4F5F5;border:1px solid #4B5155;}
.itop-home .itos-hero:after{content:"";position:absolute;bottom:0;left:0;width:130px;height:2px;background:#B7A174}
.itop-home .itos-hero-top {display:flex;align-items:center;gap:22px;min-width:0;position:relative;z-index:1}
.itop-home .itos-logo{width:147px;height:58px;object-fit:contain;object-position:left center;flex-shrink:0}
.itop-home .itos-hero-divider{height:51px;width:1px;background:rgba(255,255,255,.28);flex-shrink:0}
.itop-home .itos-header-title{display:flex;flex-direction:column;gap:3px}
.itop-home .itos-header-title small{font-size:10px;letter-spacing:.19em;color:#D9CBAE;font-weight:700}
.itop-home .itos-header-title strong{font-size:clamp(18px,2.1vw,26px);font-weight:650;line-height:1.18;color:#fff;letter-spacing:-.03em}
.itop-home .itos-hero-meta{font-size:12px;color:#DEE1E2;text-align:right;position:relative;z-index:1}
.itop-home .itos-welcome{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:24px 4px 21px}
.itop-home .itos-overline{font-size:10px;color:#8A7957;font-weight:800;letter-spacing:.13em}
.itop-home h1{font-size:clamp(24px,2.5vw,31px);line-height:1.2;letter-spacing:-.035em;color:#23282D;margin:3px 0 6px;font-weight:700}
.itop-home p{color:#647079;margin:0}
.itop-home .itos-date{border:1px solid #D5D9DC;background:#FDFDFD;border-radius:8px;padding:9px 12px;color:#586168;white-space:nowrap;font-weight:600}
.itop-home .itos-statgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:15px}
.itop-home .itos-stat{display:flex;align-items:flex-start;gap:14px;background:#fff;border:1px solid #D6DADC;border-radius:11px;padding:20px;box-shadow:0 2px 9px rgba(27,30,33,.04);min-width:0}
.itop-home .itos-stat-icon{flex:0 0 42px;height:42px;border:1px solid #E0E3E5;border-radius:9px;background:#F4F5F5;display:grid;place-items:center;font-size:23px;color:#897754}
.itop-home .itos-stat-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.itop-home .itos-stat-label{font-size:12px;font-weight:600;color:#4B555B}
.itop-home .itos-stat strong{font-size:clamp(25px,2.7vw,32px);font-weight:730;letter-spacing:-.045em;color:#222A30;line-height:1.2;font-variant-numeric:tabular-nums}
.itop-home .itos-stat small{font-size:11px;color:#747E85;overflow-wrap:anywhere}
.itop-home .itos-panels{display:grid;grid-template-columns:1.45fr .95fr;grid-auto-rows:minmax(200px,auto);gap:14px}
.itop-home .itos-panel{min-width:0;border:1px solid #D6DADC;background:#FDFDFD;border-radius:11px;padding:20px 21px;box-shadow:0 2px 9px rgba(24,28,31,.045)}
.itop-home .itos-panelhead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:15px;border-bottom:1px solid #E9EBEC;margin-bottom:9px}
.itop-home .itos-panelhead h2{font-size:17px;line-height:1.3;color:#283036;letter-spacing:-.025em;font-weight:700;margin:3px 0 0}
.itop-home .itos-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:20px;font-size:10px;background:#F5F2EC;color:#816E4A;border:1px solid #E6DECE;font-weight:650;white-space:nowrap}
.itop-home .itos-activity-list{display:flex;flex-direction:column}
.itop-home .itos-activity{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:13px;align-items:center;padding:11px 4px;border-bottom:1px solid #EBEDEE;min-width:0}
.itop-home .itos-activity:last-child{border-bottom:0}
.itop-home .itos-activity:hover{background:#F8F8F7;border-radius:5px}
.itop-home .itos-activity-dot{width:8px;height:8px;border-radius:50%;background:#B2A077}
.itop-home .itos-activity strong{display:block;font-size:12px;color:#384047;overflow-wrap:anywhere}
.itop-home .itos-activity small{display:block;color:#7B858A;margin-top:2px}
.itop-home .itos-activity time{color:#6F777B;font-size:11px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.itop-home .itos-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.itop-home .itos-action{border:1px solid #D8DCDD;border-radius:9px;padding:14px;display:flex;align-items:center;gap:10px;min-height:60px;background:#F8F9F9;transition:background-color .15s,border-color .15s}
.itop-home .itos-action:hover,.itop-home .itos-action:focus-visible{background:#F2EFE8;border-color:#B7A67D}
.itop-home .itos-action>span:first-child{color:#9C865C;font-size:23px;width:27px;text-align:center}
.itop-home .itos-action strong{font-size:12px;font-weight:650;flex:1;color:#333B41}
.itop-home .itos-action-arrow{font-size:22px;color:#A0A6AA}
.itop-home .itos-empty{padding:27px 12px;text-align:center;color:#667178;font-size:13px;line-height:1.6}
.itop-home .itos-bar-chart{height:180px;display:flex;justify-content:space-around;gap:14px;margin:12px 0 0;padding:8px 5px 0;border-bottom:1px solid #C9CFD2}
.itop-home .itos-bar-col{display:flex;flex:1;flex-direction:column;align-items:center;gap:4px;max-width:95px;min-width:0}
.itop-home .itos-bar-area{width:100%;height:147px;display:flex;align-items:flex-end;justify-content:center}
.itop-home .itos-bar{background:linear-gradient(180deg,#7E868C,#BAC0C2);width:min(70%,50px);min-height:0;border-radius:5px 5px 0 0;border:1px solid #AEB4B8;border-bottom:none}
.itop-home .itos-bar-col>span{font-size:10px;color:#717C83;white-space:nowrap}
.itop-home .itos-footnote{font-size:11px;color:#7E878B;padding-top:12px;line-height:1.55}
.itop-home .itos-status-list>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 1px;border-bottom:1px solid #EBEDEE;font-size:13px}
.itop-home .itos-status-list span{color:#525B61}
.itop-home .itos-status-list strong{color:#4F6858;font-weight:650;text-align:right}
.itop-home .itos-home-footer{padding:20px 6px 0;font-size:11px;color:#7C8489;text-align:right}
.itop-home :focus-visible{outline:2px solid #9D8456;outline-offset:2px}
@media(max-width:1100px){
 .itop-home .itos-statgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .itop-home .itos-panels{grid-template-columns:1fr 1fr}
}
@media(max-width:800px){
 .itop-home{padding:11px 10px 25px}
 .itop-home .itos-panels{grid-template-columns:1fr}
 .itop-home .itos-hero{padding:20px;min-height:115px}
 .itop-home .itos-hero-meta{display:none}
}
@media(max-width:540px){
 .itop-home .itos-hero{padding:16px;min-height:100px;background:linear-gradient(90deg,rgba(43,48,53,.99),rgba(44,49,53,.90)),url('../img/datacenter-slate.webp') right center / auto 100% no-repeat}
 .itop-home .itos-logo{width:91px;height:45px}
 .itop-home .itos-hero-divider{height:38px}
 .itop-home .itos-hero-top{gap:11px}
 .itop-home .itos-header-title small{font-size:8px;letter-spacing:.10em}
 .itop-home .itos-header-title strong{font-size:16px}
 .itop-home .itos-welcome{align-items:flex-start;flex-direction:column;padding:20px 2px 17px}
 .itop-home .itos-date{font-size:11px;padding:5px 9px}
 .itop-home .itos-statgrid{gap:8px}
 .itop-home .itos-stat{padding:13px 11px;gap:8px}
 .itop-home .itos-stat-icon{display:none}
 .itop-home .itos-stat strong{font-size:24px}
 .itop-home .itos-stat-label{font-size:11px}
 .itop-home .itos-panel{padding:16px 13px}
 .itop-home .itos-panelhead h2{font-size:16px}
 .itop-home .itos-action-grid{gap:8px}
 .itop-home .itos-action{min-height:56px;padding:10px 8px;gap:7px}
 .itop-home .itos-action>span:first-child{font-size:19px;width:20px}
 .itop-home .itos-activity{grid-template-columns:8px minmax(0,1fr);gap:8px}
 .itop-home .itos-activity time{grid-column:2;text-align:left}
}
@media(prefers-reduced-motion:reduce){.itop-home *, .itop-home *:before,.itop-home *:after{transition:none!important}}
@media(print){.itop-home .itos-hero{background:#333!important;color:#fff!important;print-color-adjust:exact}.itop-home .itos-panel,.itop-home .itos-stat{box-shadow:none!important}}


/* IT Op Slate 0.2.1: visible brand and functional, ACL-filtered ERP overview. */
.itop-home .itos-hero {
  isolation:isolate; position:relative; display:flex!important;
  align-items:center!important; justify-content:space-between!important;
  min-height:104px!important; padding:18px 26px!important; gap:18px!important;
  background:linear-gradient(90deg,rgba(45,49,52,.99) 0%,rgba(45,49,52,.97) 58%,rgba(45,49,52,.82) 100%),url('../img/datacenter-slate.webp') right center / auto 100% no-repeat!important;
  color:#fff!important; border:1px solid #4A5055; border-radius:10px;
}
.itop-home .itos-hero-top {display:flex!important; visibility:visible!important; opacity:1!important; align-items:center!important; gap:18px; position:relative;z-index:2; flex:1;min-width:0;}
.itop-home .itos-logo-text {display:inline-flex!important;visibility:visible!important;opacity:1!important;align-items:center;flex:0 0 auto;font-size:26px;line-height:1;letter-spacing:-.075em;font-weight:780;color:#F5F6F6!important;white-space:nowrap;}
.itop-home .itos-logo-text span {color:#C6AF7D!important; padding-left:3px;}
.itop-home .itos-header-title {display:flex!important; visibility:visible!important; opacity:1!important; flex-direction:column;gap:3px;min-width:0;}
.itop-home .itos-header-title strong{display:block!important;visibility:visible!important;opacity:1!important;color:#fff!important;font-size:clamp(18px,2vw,25px)!important;line-height:1.15;font-weight:720;white-space:normal;}
.itop-home .itos-header-title small {display:block!important;color:#D4C6A9!important;font-size:9px!important;letter-spacing:.14em;line-height:1.2;font-weight:730;}
.itop-home .itos-header-title em {display:block!important;font-style:normal;font-size:11px;color:#DCE0E1;line-height:1.2;}
.itop-home .itos-hero-meta {color:#E3E4E4!important;position:relative;z-index:2;font-size:11px;line-height:1.5;flex:0 0 auto;max-width:30%;text-align:right;}
.itop-home .itos-modules {background:#FDFDFD;border:1px solid #D6DADC;border-radius:11px;padding:19px 21px;margin-bottom:15px;box-shadow:0 2px 9px rgba(24,28,31,.045);}
.itop-home .itos-modules-head {display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:15px;}
.itop-home .itos-modules-head h2{margin:3px 0 6px;font-size:19px;line-height:1.3;color:#283036;font-weight:720;letter-spacing:-.025em;}
.itop-home .itos-modules-head p{font-size:12px;}
.itop-home .itos-module-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;background:#343B40;color:#fff!important;border:1px solid #343B40;border-radius:7px;padding:10px 12px;font-size:12px;font-weight:700;min-height:44px;}
.itop-home .itos-module-open:hover{background:#4D555B;color:#fff!important;}
.itop-home .itos-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.itop-home .itos-module-tile{display:flex;align-items:center;gap:12px;padding:14px;min-width:0;min-height:77px;border:1px solid #DCE0E2;background:#F7F8F8;border-radius:9px;transition:background .14s ease,border-color .14s ease;}
.itop-home .itos-module-tile:hover,.itop-home .itos-module-tile:focus-visible{background:#F2F0EB;border-color:#B9AC90;color:#24292D;}
.itop-home .itos-module-symbol {display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:8px;border:1px solid #DEE1E3;background:#fff;color:#816F4F;font-size:21px;}
.itop-home .itos-module-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px;}
.itop-home .itos-module-copy strong{color:#2C343A;font-size:13px;line-height:1.2;font-weight:720;}
.itop-home .itos-module-copy small{color:#69757D;font-size:11px;line-height:1.35;}
.itop-home .itos-module-arrow{font-size:23px;color:#7D878C;flex-shrink:0;}
.itop-home .itos-module-hint{margin-top:13px;color:#766449;font-size:12px;}
@media (max-width:1080px){.itop-home .itos-module-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:800px){.itop-home .itos-modules-head{align-items:flex-start;flex-direction:column;}.itop-home .itos-hero-meta{display:none!important;}}
@media (max-width:560px){.itop-home .itos-hero{padding:14px 15px!important;min-height:86px!important;}.itop-home .itos-logo-text{font-size:20px;}.itop-home .itos-hero-top{gap:12px;}.itop-home .itos-hero-divider{height:40px;}.itop-home .itos-header-title strong{font-size:17px!important;}.itop-home .itos-header-title em{font-size:10px;}.itop-home .itos-modules{padding:14px 12px;}.itop-home .itos-module-grid{grid-template-columns:1fr;}.itop-home .itos-module-tile{min-height:68px;padding:11px;}}
@media (prefers-reduced-motion:reduce){.itop-home .itos-module-tile{transition:none;}}


/* IT Op Slate 0.2.3 — non-admin workspace-only navigation.
 * Controlled by a logged-in, no-store JS response. Admin DOM is never touched.
 * Hiding native menus does NOT grant or revoke native Dolibarr permissions. */
html.itos-workspace-only #id-left,
html.itos-workspace-only .side-nav {display:none !important;}
html.itos-workspace-only #id-top .tmenu,
html.itos-workspace-only #id-top ul.tmenu,
html.itos-workspace-only #id-top #tmenu_tooltip,
html.itos-workspace-only #id-top .tmenucenter {display:none !important;}
html.itos-workspace-only #id-right {margin-left:0 !important;max-width:100%;}
html.itos-workspace-only .itos-workspace-menu {box-sizing:border-box;background:#f8f8f7;border-bottom:1px solid #d7d9da;padding:9px clamp(12px,2vw,32px);display:flex;align-items:center;justify-content:space-between;gap:18px;color:#30373d;position:relative;z-index:15;}
html.itos-workspace-only .itos-workspace-brand {font-weight:700;letter-spacing:.01em;white-space:nowrap;text-decoration:none;color:#30373d !important;}
html.itos-workspace-only .itos-workspace-details {flex:1;min-width:0;}
html.itos-workspace-only .itos-workspace-details summary {display:none;}
html.itos-workspace-only .itos-workspace-links {display:flex;align-items:center;flex-wrap:wrap;gap:4px;}
html.itos-workspace-only .itos-workspace-links a {color:#485158!important;text-decoration:none!important;font-weight:600;font-size:12px;padding:9px 11px;border-radius:7px;min-height:40px;box-sizing:border-box;display:inline-flex;align-items:center;}
html.itos-workspace-only .itos-workspace-links a:hover,html.itos-workspace-only .itos-workspace-links a:focus-visible {background:#eceeed;color:#222!important;}
html.itos-workspace-only .itos-workspace-links a[aria-current="page"] {background:#e8e4db;color:#655338!important;}
@media(max-width:900px){
 html.itos-workspace-only .itos-workspace-menu {flex-wrap:wrap;gap:8px;}
 html.itos-workspace-only .itos-workspace-details {flex-basis:100%;}
 html.itos-workspace-only .itos-workspace-details summary {display:block;cursor:pointer;padding:10px 12px;background:#eff0f0;border:1px solid #d7d9da;border-radius:8px;min-height:44px;box-sizing:border-box;}
 html.itos-workspace-only .itos-workspace-details:not([open]) .itos-workspace-links {display:none;}
 html.itos-workspace-only .itos-workspace-details[open] .itos-workspace-links {display:flex;flex-direction:column;align-items:stretch;padding:8px 0;}
 html.itos-workspace-only .itos-workspace-links a {font-size:14px;}
}
@media print {html.itos-workspace-only .itos-workspace-menu {display:none!important;}}


/* IT Op Slate 0.2.4 — SIDEBAR LEGIBILITY HOTFIX (Dolibarr Eldy 24.x)
 * Dolibarr sets child menu block backgrounds/text using theme variables. Setting
 * #id-left alone left those child blocks WHITE while this theme made links white.
 * Keep all native menu positions and permissions untouched; only the sidebar
 * backgrounds, typography, state colors and search controls are affected.
 */
html body #id-left,
html body .side-nav {
  background-color:#30363B !important;
  color:#F5F6F7 !important;
}
/* Cover both Eldy variants: outer blocks, inner blocks and row wrappers.
 * Set the same opaque surface on every menu layer, not transparent/light layers.
 */
html body #id-left .vmenu,
html body #id-left div.blockvmenu,
html body #id-left div.blockvmenupair,
html body #id-left div.blockvmenuimpair,
html body #id-left div.blockvmenuend,
html body #id-left div.blockvmenubookmarks,
html body #id-left .menu_titre,
html body #id-left .menu_contenu,
html body #id-left .menu_end,
html body .side-nav .vmenu,
html body .side-nav .blockvmenu,
html body .side-nav .menu_titre,
html body .side-nav .menu_contenu {
  background-color:#30363B !important;
  background-image:none !important;
  color:#F5F6F7 !important;
  opacity:1 !important;
}
html body #id-left div.blockvmenupair,
html body #id-left div.blockvmenuimpair,
html body #id-left div.blockvmenuend,
html body #id-left .menu_end {
  border-color:#596168 !important;
}
/* Links, nested labels, icon fonts and non-clickable menu captions. */
html body #id-left .vmenu a,
html body #id-left .vmenu a:link,
html body #id-left .vmenu a:visited,
html body #id-left .vmenu a span,
html body #id-left .vmenu .vsmenu,
html body #id-left .vmenu .menu_titre,
html body #id-left .vmenu .menu_titre span,
html body #id-left .vmenu .menu_contenu a,
html body #id-left .vmenu .menu_contenu a span,
html body #id-left .vmenu a .fa,
html body #id-left .vmenu a .fas,
html body #id-left .vmenu a .far,
html body .side-nav a,
html body .side-nav a:visited {
  color:#F5F6F7 !important;
  -webkit-text-fill-color:currentColor;
  text-shadow:none !important;
  opacity:1 !important;
}
/* Disabled native Dolibarr entries remain disabled: readable but muted. */
html body #id-left .vmenu .vsmenudisabled,
html body #id-left .vmenu .vmenudisabled,
html body #id-left .vmenu .menu_contenu .vsmenudisabled,
html body .side-nav .vsmenudisabled {
  color:#CAD1D5 !important;
  -webkit-text-fill-color:#CAD1D5 !important;
  text-shadow:none !important;
  opacity:1 !important;
  cursor:not-allowed;
}
/* Keep submenus visually separate; no intrusive glow or width changes. */
html body #id-left .vmenu .menu_contenu,
html body #id-left .vmenu .menu_titre {
  border-color:rgba(245,246,247,.17) !important;
}
html body #id-left .vmenu .menu_contenu:hover,
html body #id-left .vmenu .menu_titre:hover,
html body #id-left .vmenu a:hover,
html body #id-left .vmenu a:focus-visible,
html body .side-nav a:hover,
html body .side-nav a:focus-visible {
  background-color:#454D54 !important;
  color:#FFFFFF !important;
}
html body #id-left .vmenu .vmenusel,
html body #id-left .vmenu .menu_titre_sel,
html body #id-left .vmenu .menu_contenu_sel,
html body #id-left .vmenu .menu_contenu_selected,
html body #id-left .vmenu a.active,
html body #id-left .vmenu a[aria-current="page"],
html body .side-nav a.active,
html body .side-nav a[aria-current="page"] {
  color:#FFFFFF !important;
  background-color:#505961 !important;
  border-left:3px solid #C9B17D !important;
}
html body #id-left a:focus-visible,
html body .side-nav a:focus-visible {
  outline:2px solid #E3C991 !important;
  outline-offset:1px;
}
/* A white search box is intentional, with DARK text and a readable placeholder. */
html body #id-left input.vmenusearchselectcombo,
html body #id-left input[type="search"],
html body #id-left input[type="text"],
html body #id-left .select2-container--default .select2-selection--single,
html body #id-left .select2-container--default .select2-selection--multiple,
html body #id-left .select2-selection {
  background-color:#F8F9FA !important;
  color:#1F2930 !important;
  -webkit-text-fill-color:#1F2930 !important;
  border-color:#AAB2B8 !important;
  opacity:1 !important;
}
html body #id-left input::placeholder,
html body #id-left .select2-selection__rendered,
html body #id-left .select2-selection__placeholder {
  color:#53606A !important;
  -webkit-text-fill-color:#53606A !important;
  opacity:1 !important;
}
/* Retain responsive left-nav behavior chosen by Dolibarr; do not force display. */
@media (max-width:760px) {
  html body #id-left .vmenu a,
  html body .side-nav a { min-height:40px; }
}
@media print {
  html body #id-left,html body .side-nav {background:#fff !important;color:#000 !important;}
}


/* IT Op Slate 0.2.4 — GLOBAL UI POLISH / NO CORE OVERRIDES
 * Fix foreground/background pairs across sidebar, secondary tabs, cards,
 * search widgets and mobile controls without touching actual permission rules.
 */
html body #id-left div.vmenu,
html body #id-left td.vmenu,
html body #id-left .blockvmenu,
html body #id-left .blockvmenupair,
html body #id-left .blockvmenuimpair,
html body #id-left .blockvmenubookmarks,
html body #id-left .blockvmenulogo,
html body #id-left .blockvmenuend,
html body #id-left .vmenu .menu_contenu,
html body #id-left .vmenu .menu_titre,
html body #id-left .vmenu .blockvmenu {
  background:#30363B!important;
  background-image:none!important;
  color:#F5F6F7!important;
}
html body #id-left .vmenu a,
html body #id-left .vmenu .vsmenupair,
html body #id-left .vmenu .vsmenuimpair,
html body #id-left .vmenu a.vsmenu,
html body #id-left .vmenu a:visited,
html body #id-left .vmenu a *,
html body #id-left .vmenu .menu_contenu > span:not(.vsmenudisabled) {
  color:#F5F6F7!important;
  -webkit-text-fill-color:#F5F6F7!important;
  opacity:1!important;
}
html body #id-left .vmenu .opacitymedium,
html body #id-left .vmenu .vsmenudisabled,
html body #id-left .vmenu .vmenudisabled {
  color:#D3D9DC!important;
  -webkit-text-fill-color:#D3D9DC!important;
  opacity:1!important;
}
html body #id-left .menu_contenu,
html body #id-left .menu_titre,
html body #id-left .blockvmenuimpair,
html body #id-left .blockvmenupair {border-bottom:1px solid #4A535A!important;}
html body #id-left .menu_contenu:hover,
html body #id-left .menu_titre:hover,
html body #id-left .vmenu a:hover,
html body #id-left .vmenu a:focus-visible {background:#48525A!important;}
html body #id-left .menu_contenu_sel,
html body #id-left .menu_titre_sel,
html body #id-left .vmenusel,
html body #id-left a[aria-current="page"] {background:#4A5158!important;border-left:3px solid #C5AB7E!important;}
html body #id-left :is(input[type="text"],input[type="search"],.select2-selection,.select2-search__field){
  background:#FCFCFD!important;color:#25313A!important;-webkit-text-fill-color:#25313A!important;border:1px solid #B8C0C6!important;
}
html body #id-left :is(input[type="text"],input[type="search"])::placeholder{color:#52616B!important;opacity:1!important;}
/* Avoid clipping select dropdown labels or action buttons at native widths. */
html body #id-left {scrollbar-color:#89949B #30363B;}
html body #id-left .select2-container{max-width:100%;}
html body #id-right .fichecenter,
html body #id-right .tabBar {background:transparent;}
html body #id-right .tabs a.tab,
html body #id-right .tabs a.tab:visited {color:#33404B!important;}
html body #id-right .tabs a.tabactive{color:#222B32!important;font-weight:700;}
html body #id-right .select2-container--default .select2-selection__rendered{color:#273039!important;}
html body #id-right .fieldrequired {color:#79481D;}
html body #id-right .fiche .liste_titre th,
html body #id-right .fiche .liste_titre td {color:#313A40!important;}
/* Skip global alert colors: red/warning and green/success semantics are preserved. */
/* Admin native sidebar: collapses completely rather than keeping unusable truncated labels. */
.itos-side-toggle {position:fixed;left:9px;top:55px;z-index:120;display:inline-flex;align-items:center;justify-content:center;gap:0;width:36px;height:36px;min-height:36px;padding:0;border-radius:8px;border:1px solid #7B858D;background:#40484F;color:#FFFFFF;font:600 12px/1.2 system-ui,Arial,sans-serif;box-shadow:0 2px 8px #0003;cursor:pointer;}
.itos-side-toggle:hover,.itos-side-toggle:focus-visible {background:#55616A;color:#fff;outline:2px solid #D2B98C;outline-offset:1px;}
.itos-side-toggle-icon{font-size:22px;line-height:1;}.itos-side-toggle-label{display:none;}
/* Preserve the native menu layout; floating toggle sits at the sidebar edge. */
html.itos-side-collapsed body #id-left,
html.itos-side-collapsed body .side-nav {display:none!important;}
html.itos-side-collapsed body #id-right {margin-left:0!important;width:100%!important;max-width:100%!important;}
html.itos-side-collapsed body #id-container {width:100%!important;}
@media(max-width:959px){
  .itos-side-toggle{display:none!important;}

  html.itos-side-collapsed body #id-left,html.itos-side-collapsed body .side-nav{display:revert!important;}
  html.itos-side-collapsed body #id-right{margin-left:revert!important;width:revert!important;}
}
@media print {.itos-side-toggle{display:none!important;}}


/* ------------------------------------------------------------
 IT Op Slate 0.2.5 | Dolibarr 24 native Eldy sidebar FINAL LAYER
 Versioned asset fixes stale browser/proxy cache after replacing 0.2.4.
 Cover both legacy #id-left and current .side-nav menu markup.
 Contrast target: 4.5:1 or better for menu labels.
 ------------------------------------------------------------ */
body:not(.bodyforlogin) #id-left,
body:not(.bodyforlogin) .side-nav {
  --colorbackvmenu1:#30363B;
  --colortextbackvmenu:#F5F6F7;
  --itos-menu-bg:#30363B;
  --itos-menu-text:#F5F6F7;
  --itos-menu-muted:#CBD3D9;
  background-color:#30363B !important;
  background-image:none !important;
  color:#F5F6F7 !important;
}
/* Native block wrappers, not just the outer column. */
body:not(.bodyforlogin) :is(#id-left,.side-nav) :is(
  .vmenu,.blockvmenu,.blockvmenupair,.blockvmenuimpair,
  .blockvmenubookmarks,.blockvmenuend,.blockvmenulogo,
  .menu_titre,.menu_contenu,.menu_end
) {
  background-color:#30363B !important;
  background-image:none !important;
  background:none #30363B !important;
  color:#F5F6F7 !important;
  opacity:1 !important;
  filter:none !important;
  box-shadow:none;
}
/* Text and icons, including disabled items; disabled items stay non-clickable. */
body:not(.bodyforlogin) :is(#id-left,.side-nav) :is(
  a.vmenu,a.vsmenu,span.vmenu,span.vsmenu,
  .menu_titre a,.menu_titre span,.menu_contenu a,.menu_contenu span,
  .menu_contenu .fas,.menu_contenu .far,.menu_contenu .fa,
  .menu_titre .fas,.menu_titre .far,.menu_titre .fa
) {
  color:#F5F6F7 !important;
  -webkit-text-fill-color:#F5F6F7 !important;
  opacity:1 !important;
  text-shadow:none !important;
}
body:not(.bodyforlogin) :is(#id-left,.side-nav) :is(
  .vsmenudisabled,.vmenudisabled
) {
  color:#CBD3D9 !important;
  -webkit-text-fill-color:#CBD3D9 !important;
  opacity:1 !important;
  cursor:default;
}
/* Selected/hover must be distinct but stay inside neutral palette. */
body:not(.bodyforlogin) :is(#id-left,.side-nav) :is(
  .menu_contenu:hover,.menu_titre:hover,a.vsmenu:hover,a.vmenu:hover,
  a.vsmenu:focus-visible,a.vmenu:focus-visible
) {
  background:#485159 !important;
  color:#FFFFFF !important;
}
body:not(.bodyforlogin) :is(#id-left,.side-nav) :is(
  .vmenusel,.menu_contenu_sel,.menu_titre_sel,
  a[aria-current="page"],a.active
) {
  background-color:#4A535B !important;
  border-left:3px solid #C9AF80 !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
}
body:not(.bodyforlogin) :is(#id-left,.side-nav) :is(
  .menu_contenu,.menu_titre,.blockvmenupair,.blockvmenuimpair
) { border-bottom-color:#4F585F !important; }
/* Preserve the native search/select UI as a LIGHT control with DARK text. */
body:not(.bodyforlogin) :is(#id-left,.side-nav) :is(
  input.vmenusearchselectcombo,input[type="text"],input[type="search"],
  .select2-selection,.select2-selection__rendered,.select2-search__field
) {
  background:#FFFFFF !important;
  color:#26313A !important;
  -webkit-text-fill-color:#26313A !important;
  border-color:#BEC5CA !important;
  opacity:1 !important;
}
body:not(.bodyforlogin) :is(#id-left,.side-nav) input::placeholder {
  color:#535E66 !important; opacity:1 !important;
}
/* Color override must not leak into print, login or menus outside sidebar. */
@media print {
 body:not(.bodyforlogin) :is(#id-left,.side-nav) :is(.vmenu,.blockvmenu,.menu_contenu,.menu_titre){
  background:#FFFFFF!important;color:#111111!important;
 }
 body:not(.bodyforlogin) :is(#id-left,.side-nav) :is(a.vmenu,a.vsmenu,span.vsmenu){
  color:#111111!important;-webkit-text-fill-color:#111111!important;
 }
}


/* ============================================================
 * IT Op Slate 0.2.6 – Native Dolibarr action button dropdowns.
 * Correct .dropdown-holder > .dropdown-content and its action
 * labels. Dolibarr renders this markup on project, invoice,
 * proposal and other standard pages.
 * Light, opaque flyout with dark text; never inherit the
 * dark-grey action button styling into the flyout.
 * Do not affect #id-left/.side-nav, login or unrelated menus.
 * ============================================================ */
html body:not(.bodyforlogin) .dropdown-holder > .dropdown-content {
  background-color: #FCFCFC !important;
  background-image: none !important;
  color: #252D33 !important;
  -webkit-text-fill-color: #252D33 !important;
  border: 1px solid #C7CDD1 !important;
  border-radius: 7px !important;
  box-shadow: 0 8px 22px rgba(28,33,38,.17) !important;
  opacity: 1 !important;
  filter: none !important;
  max-width: calc(100vw - 24px);
}
html body:not(.bodyforlogin) .dropdown-holder > .dropdown-content::before {
  border-bottom-color: #FCFCFC !important;
}
/* Native action labels are .butAction, .butActionDelete and
   .butActionRefused; Dolibarr uses a dark text color on light
   flyouts, while Slate's buttons are otherwise dark. */
html body:not(.bodyforlogin) .dropdown-holder > .dropdown-content :is(
  a.butAction, span.butAction, button.butAction,
  a.butActionRefused, span.butActionRefused, button.butActionRefused,
  a.butActionDelete, span.butActionDelete, button.butActionDelete
) {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 12px;
  margin: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #252D33 !important;
  -webkit-text-fill-color: #252D33 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}
html body:not(.bodyforlogin) .dropdown-holder > .dropdown-content :is(
  a.butAction, span.butAction, button.butAction,
  a.butActionDelete, span.butActionDelete, button.butActionDelete
):is(:hover, :focus-visible) {
  background-color: #F0ECE3 !important;
  color: #242A2F !important;
  -webkit-text-fill-color: #242A2F !important;
}
html body:not(.bodyforlogin) .dropdown-holder > .dropdown-content :is(
  a.butActionDelete, span.butActionDelete, button.butActionDelete
) {
  color: #922F31 !important;
  -webkit-text-fill-color: #922F31 !important;
}
html body:not(.bodyforlogin) .dropdown-holder > .dropdown-content :is(
  a.butActionDelete, span.butActionDelete, button.butActionDelete
):is(:hover, :focus-visible) {
  background-color: #F8ECEC !important;
  color: #7D2023 !important;
  -webkit-text-fill-color: #7D2023 !important;
}
/* Keep disabled/forbidden actions distinguishable, not promoted to links. */
html body:not(.bodyforlogin) .dropdown-holder > .dropdown-content :is(
  a.butActionRefused, span.butActionRefused, button.butActionRefused
) {
  background-color: #F3F4F4 !important;
  color: #697178 !important;
  -webkit-text-fill-color: #697178 !important;
  cursor: not-allowed;
}
html body:not(.bodyforlogin) .dropdown-holder > .dropdown-content :is(a,button):focus-visible {
  outline: 2px solid #917846 !important;
  outline-offset: -2px;
}
@media (max-width: 600px) {
  html body:not(.bodyforlogin) .dropdown-holder > .dropdown-content {
    width: min(300px, calc(100vw - 24px));
  }
  html body:not(.bodyforlogin) .dropdown-holder > .dropdown-content :is(
    a.butAction, span.butAction, button.butAction,
    a.butActionDelete, span.butActionDelete, button.butActionDelete,
    a.butActionRefused, span.butActionRefused, button.butActionRefused
  ) { min-height: 44px; }
}


/* ===========================================================
   IT Op Slate 0.2.7 – Form/overlay readability and nested menus
   Complement the 0.2.6 Dolibarr native action-dropdown fix.
   Separate form overlay rules from normal page cards, login,
   alerts and warning/success semantics. No JS behavior changes.
   =========================================================== */
/* Other native action flyouts (some menus have plain links instead of .butAction). */
body:not(.bodyforlogin) .dropdown-holder > .dropdown-content :is(a:not(.butAction):not(.butActionDelete):not(.butActionRefused), button:not(.butAction):not(.butActionDelete):not(.butActionRefused)) {
  color:#273039!important;
  -webkit-text-fill-color:#273039!important;
  text-shadow:none!important;
  background-color:transparent!important;
  background-image:none!important;
  opacity:1!important;
}
body:not(.bodyforlogin) .dropdown-holder > .dropdown-content :is(a:not(.butAction):not(.butActionDelete):not(.butActionRefused), button:not(.butAction):not(.butActionDelete):not(.butActionRefused)):is(:hover,:focus-visible) {
  background-color:#F0ECE3!important;
  color:#273039!important;
  -webkit-text-fill-color:#273039!important;
}
/* Select2 renders its result popup outside of the original select and often
   appends it to <body>. The sidebar palette must never leak into it. */
body:not(.bodyforlogin) .select2-container--open .select2-dropdown,
body:not(.bodyforlogin) .select2-container--open .select2-results,
body:not(.bodyforlogin) .select2-container--open .select2-results__options,
body:not(.bodyforlogin) .select2-container--open .select2-search,
body:not(.bodyforlogin) .select2-container--open .select2-search__field {
  background-color:#FFFFFF!important;
  color:#273039!important;
  -webkit-text-fill-color:#273039!important;
  border-color:#BFC6CA!important;
  opacity:1!important;
  filter:none!important;
}
body:not(.bodyforlogin) .select2-container--open .select2-results__option,
body:not(.bodyforlogin) .select2-container--open .select2-results__option :is(span,div) {
  color:#273039!important;
  -webkit-text-fill-color:#273039!important;
  background-color:#FFFFFF!important;
  text-shadow:none!important;
  opacity:1!important;
}
body:not(.bodyforlogin) .select2-container--open .select2-results__option[aria-selected="true"],
body:not(.bodyforlogin) .select2-container--open .select2-results__option--selected {
  background:#F1ECE2!important;
  color:#273039!important;
  -webkit-text-fill-color:#273039!important;
}
body:not(.bodyforlogin) .select2-container--open .select2-results__option--highlighted,
body:not(.bodyforlogin) .select2-container--open .select2-results__option--highlighted[aria-selected] {
  background:#E5EAEC!important;
  color:#20292F!important;
  -webkit-text-fill-color:#20292F!important;
}
body:not(.bodyforlogin) .select2-container--open .select2-results__option[aria-disabled="true"] {
  color:#67717A!important;
  -webkit-text-fill-color:#67717A!important;
  cursor:not-allowed;
}
/* Bootstrap-style dropdowns and jQuery UI autocomplete (if used by a module). */
body:not(.bodyforlogin) .dropdown-menu,
body:not(.bodyforlogin) ul.ui-autocomplete {
  background:#FEFEFE!important;
  color:#273039!important;
  border:1px solid #C7CDD1!important;
  box-shadow:0 8px 22px rgba(28,33,38,.17)!important;
}
body:not(.bodyforlogin) .dropdown-menu :is(a,button,.dropdown-item),
body:not(.bodyforlogin) ul.ui-autocomplete :is(.ui-menu-item,.ui-menu-item-wrapper) {
  color:#273039!important;
  -webkit-text-fill-color:#273039!important;
  background-color:transparent;
  opacity:1!important;
}
body:not(.bodyforlogin) .dropdown-menu :is(a,button,.dropdown-item):is(:hover,:focus-visible),
body:not(.bodyforlogin) ul.ui-autocomplete :is(.ui-state-active,.ui-state-focus) {
  color:#20292F!important;
  -webkit-text-fill-color:#20292F!important;
  background:#E5EAEC!important;
}
/* Native option menu: system rendering varies, but defined colors avoid
   contrast reversal where the browser honors option styles. */
body:not(.bodyforlogin) select option,
body:not(.bodyforlogin) select optgroup {
  background-color:#FFFFFF;
  color:#273039;
}
@media(max-width:767px) {
  body:not(.bodyforlogin) .dropdown-menu,
  body:not(.bodyforlogin) .select2-container--open .select2-dropdown {
    max-width:calc(100vw - 20px)!important;
  }
}

/* Signature V6: shared brand colors, with light working surfaces in the ERP. */
@media screen {
  :root {
    --itop-signature-black: #07090b;
    --itop-signature-surface: #111418;
    --itop-signature-line: #2a2d31;
    --itop-signature-gold: #d1ad7d;
    --itop-signature-gold-light: #ebd1aa;
    --itop-signature-text: #f5f4f1;
    --itop-signature-muted: #b0b0ad;
    --itop-signature-ink: #24221f;
    --itop-signature-workspace: #f4f3ef;
    --itop-signature-workspace-line: #dedad2;
    --itop-signature-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  }

  body:not(.bodylogin):not(.bodyforlogin), #id-right {
    background: var(--itop-signature-workspace);
  }
  :is(#id-top, .itop-home, .itops, body.bodylogin, body.bodyforlogin) {
    font-family: var(--itop-signature-font);
  }

  #id-top {
    background: var(--itop-signature-black) !important;
    border-bottom: 1px solid rgb(209 173 125 / .38);
  }
  #id-top li.tmenusel { box-shadow: inset 0 -2px 0 var(--itop-signature-gold); }

  body:not(.bodyforlogin) :is(#id-left, .side-nav),
  body:not(.bodyforlogin) :is(#id-left, .side-nav) :is(
    .vmenu, .blockvmenu, .blockvmenupair, .blockvmenuimpair,
    .blockvmenubookmarks, .blockvmenuend, .blockvmenulogo,
    .menu_titre, .menu_contenu, .menu_end
  ) { background: var(--itop-signature-surface) !important; }
  body:not(.bodyforlogin) :is(#id-left, .side-nav) :is(
    .vmenusel, .menu_contenu_sel, .menu_titre_sel,
    .menu_contenu:hover, .menu_titre:hover, a[aria-current="page"], a.active,
    a.vsmenu:hover, a.vmenu:hover, a.vsmenu:focus-visible, a.vmenu:focus-visible
  ) { background: #2e2720 !important; }

  .itop-home .itos-hero,
  main.itops .hero,
  main.itops .com-hero {
    background: radial-gradient(ellipse at 80% 30%, #2b2319, transparent 65%),
                var(--itop-signature-black) !important;
    color: var(--itop-signature-text) !important;
    border: 1px solid #4c3e2e;
    border-radius: 12px;
  }
  .itop-home .itos-logo-text {
    color: var(--itop-signature-text) !important;
    letter-spacing: .082em;
    white-space: nowrap;
  }
  .itop-home .itos-logo-text span {
    color: var(--itop-signature-gold) !important;
    padding-left: 0;
  }
  main.itops .hero :is(h1, .hero-right),
  main.itops .com-hero h2 { color: var(--itop-signature-text) !important; }
  main.itops .hero :is(.muted, .overline),
  main.itops .com-hero :is(p, .com-kicker) { color: var(--itop-signature-gold-light) !important; }
  main.itops .hero .brand-mark,
  main.itops .com-hero .com-tag {
    color: var(--itop-signature-gold-light) !important;
    background: #282119 !important;
    border-color: #786047 !important;
  }

  .itop-home :is(.itos-panel, .itos-stat, .itos-modules),
  main.itops :is(.card, .kpi, .itops-mobile-menu) { border-color: var(--itop-signature-workspace-line); }
  .itop-home :is(.itos-module-tile, .itos-action) {
    background: #fbfaf7;
    border-color: var(--itop-signature-workspace-line);
  }
  .itop-home :is(.itos-module-tile, .itos-action):is(:hover, :focus-visible) {
    background: #f6eddf;
    border-color: #a88355;
  }
  main.itops .nav a {
    background: #fff;
    border-color: var(--itop-signature-workspace-line);
    color: var(--itop-signature-ink);
  }
  main.itops .nav a:is(.sel, [aria-current="page"]) {
    background: var(--itop-signature-surface);
    border-color: #786047;
    color: var(--itop-signature-gold-light);
  }
  .itop-home a.itos-module-open,
  main.itops .btn:not(.subtle, .danger, .delete, :disabled, [aria-disabled="true"]) {
    background: linear-gradient(115deg, #e2c69e, #bc9766);
    border: 1px solid #ad885e;
    color: #20170f !important;
  }
  .itop-home a.itos-module-open:hover,
  main.itops .btn:not(.subtle, .danger, .delete, :disabled, [aria-disabled="true"]):hover {
    background: var(--itop-signature-gold-light);
    color: #20170f !important;
  }
  :is(.itop-home, main.itops) :focus-visible {
    outline: 2px solid #85643f;
    outline-offset: 3px;
  }
}

/* Signature sidebar: override the earlier Slate menu surfaces at equal or higher specificity. */
@media screen {
  html body:not(.bodylogin):not(.bodyforlogin) :is(#id-left, .side-nav) {
    --itop-sidebar-text: #e5e0d8;
    --itop-sidebar-active: #ebd1aa;
    background: #111418 !important;
    color: var(--itop-sidebar-text) !important;
    scrollbar-color: #695742 #111418;
  }

  html body:not(.bodylogin):not(.bodyforlogin) :is(#id-left, .side-nav) :is(
    div.vmenu, td.vmenu, .vmenu .blockvmenu, .blockvmenu, .blockvmenupair,
    .blockvmenuimpair, .blockvmenubookmarks, .blockvmenulogo, .blockvmenuend,
    .vmenu .menu_contenu, .vmenu .menu_titre, .menu_contenu, .menu_titre, .menu_end
  ) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body:not(.bodylogin):not(.bodyforlogin) :is(#id-left, .side-nav) :is(
    .menu_contenu, .menu_titre, .menu_contenu_sel, .menu_titre_sel
  ) {
    margin-block: 2px;
    padding-block: 0;
  }

  html body:not(.bodylogin):not(.bodyforlogin) :is(#id-left, .side-nav) :is(
    .vmenu a.vsmenu, .vmenu a.vmenu, .menu_titre > a, .menu_contenu > a,
    .menu_titre_sel > a, .menu_contenu_sel > a
  ) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 0 !important;
    border-inline-start: 2px solid transparent !important;
    border-radius: 4px;
    background: transparent !important;
    color: var(--itop-sidebar-text) !important;
    -webkit-text-fill-color: var(--itop-sidebar-text) !important;
    font: 500 13px/1.38 var(--itop-signature-font);
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    text-shadow: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-overflow: clip !important;
  }

  html body:not(.bodylogin):not(.bodyforlogin) :is(#id-left, .side-nav) :is(
    .vmenu a.vsmenu, .vmenu a.vmenu, .menu_titre > a, .menu_contenu > a,
    .menu_titre_sel > a, .menu_contenu_sel > a
  ) :is(span, strong, b) {
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    font-weight: inherit;
    text-shadow: none !important;
    white-space: inherit !important;
    text-overflow: clip !important;
  }

  html body:not(.bodylogin):not(.bodyforlogin) :is(#id-left, .side-nav) :is(
    .vmenu a.vsmenu, .vmenu a.vmenu, .menu_titre > a, .menu_contenu > a
  ):is(:hover, :focus-visible) { background: #1c2025 !important; }

  html body:not(.bodylogin):not(.bodyforlogin) :is(#id-left, .side-nav) :is(
    a[aria-current="page"], a.active, a.vmenusel, a.vsmenusel,
    .vmenusel > a, .menu_titre_sel > a, .menu_contenu_sel > a,
    .vmenu .menu_titre_sel a, .vmenu .menu_contenu_sel a
  ) {
    background: #29231c !important;
    border-inline-start-color: #d1ad7d !important;
    color: var(--itop-sidebar-active) !important;
    -webkit-text-fill-color: var(--itop-sidebar-active) !important;
    font-weight: 650;
  }

  html body:not(.bodylogin):not(.bodyforlogin) :is(#id-left, .side-nav)
  :is(a.vsmenu, a.vmenu, .menu_titre > a, .menu_contenu > a):focus-visible {
    outline: 2px solid #d1ad7d;
    outline-offset: -2px;
  }

  @media (max-width: 760px) {
    html body:not(.bodylogin):not(.bodyforlogin) :is(#id-left, .side-nav)
    :is(a.vmenu, a.vsmenu, .menu_titre > a, .menu_contenu > a) { min-height: 44px; }
  }
}

/* The mobile ITOPS menu is a separate component from the native Dolibarr sidebar. */
@media screen {
  main.itops details.itops-mobile-menu {
    color: var(--itop-signature-text);
    background: var(--itop-signature-surface);
    border-color: #574534;
  }

  main.itops .itops-mobile-menu :is(.itops-mobile-menu-title, .itops-mobile-menu-icon,
    .itops-mobile-menu-current, .itops-mobile-menu-chevron) {
    color: var(--itop-signature-gold-light);
  }

  main.itops .itops-mobile-menu nav.itops-mobile-nav { border-top-color: #574534; }

  main.itops .itops-mobile-menu nav.itops-mobile-nav a {
    background: #191d21;
    border-color: #323438;
    color: var(--itop-signature-text);
    text-decoration: none;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  main.itops .itops-mobile-menu nav.itops-mobile-nav a:is(.sel, [aria-current="page"]) {
    background: #29231c;
    border-color: #a88355;
    color: var(--itop-signature-gold-light);
  }

  main.itops nav.itops-mobile-quick a {
    background: #fbf7ef;
    border-color: #d2b58c;
    color: #382a1d;
    overflow-wrap: anywhere;
  }

  main.itops .itops-mobile-menu :focus-visible {
    outline: 2px solid var(--itop-signature-gold-light);
    outline-offset: -3px;
  }
}

@media screen and (max-width: 600px) {
  main.itops .itops-mobile-menu-current {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }

  main.itops :is(input[type="text"], input[type="search"], input[type="number"],
    input[type="email"], input[type="tel"], input[type="password"], select, textarea) {
    font-size: 16px;
  }
}

@media screen and (max-width: 360px) {
  main.itops .itops-mobile-menu nav.itops-mobile-nav { grid-template-columns: minmax(0, 1fr); }
}

/* 0.3.5: readable native header and reduced workspace navigation. */
@media screen {
html body #id-top {background:#07090b!important;color:#f5f4f1!important;border-bottom:1px solid #8b6b49!important;}
html body #id-top :is(.login_block,.login_block_other,.login_block_user,.aversion,.atoploginusername,.atoplogin) {color:#f5f4f1!important;opacity:1!important;}
html body #id-top :is(a.tmenulabel,.mainmenuaspan) {color:#f5f4f1!important;font-size:13px!important;font-weight:600!important;line-height:1.35!important;text-shadow:none!important;opacity:1!important;}
html body #id-top .tmenudisabled {color:#a6a8ab!important;opacity:1!important;}
html body #id-top li.tmenusel {background:#29231c!important;box-shadow:inset 0 -3px #d1ad7d!important;}
html body #id-top li.tmenusel :is(a,.mainmenuaspan) {color:#ebd1aa!important;}
html body #id-top a:focus-visible {outline:2px solid #ebd1aa!important;outline-offset:-2px;}
html body #id-top a:hover {color:#ebd1aa!important;}
html.itos-workspace-only body .itos-workspace-menu {background:#0c0e11!important;color:#f5f4f1!important;border-bottom:1px solid #8b6b49!important;gap:20px;}
html.itos-workspace-only body .itos-workspace-brand {color:#f5f4f1!important;font-size:15px!important;line-height:1.5!important;}
html.itos-workspace-only body .itos-workspace-links a {color:#f5f4f1!important;font-size:14px!important;line-height:1.5!important;min-height:44px;padding:10px 14px;}
html.itos-workspace-only body .itos-workspace-links a:is(:hover,:focus-visible,[aria-current="page"]) {background:#29231c!important;color:#ebd1aa!important;}
html.itos-workspace-only body .itos-workspace-details summary {background:#141619!important;color:#f5f4f1!important;border-color:#8b6b49!important;font-size:15px!important;}
@media(min-width:901px){
html:not(.itos-workspace-only) body #id-top #tmenu_tooltip {width:calc(100% - 220px)!important;max-width:calc(100% - 220px)!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;scrollbar-color:#8b6b49 #0c0e11;}
html:not(.itos-workspace-only) body #id-top .tmenudiv {width:max-content!important;max-width:none!important;}
html:not(.itos-workspace-only) body #id-top ul.tmenu {display:flex!important;flex-wrap:nowrap!important;width:max-content!important;max-width:none!important;}
html:not(.itos-workspace-only) body #id-top ul.tmenu>li:not(.menuhider):not(.tmenuend) {flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:76px!important;}
html:not(.itos-workspace-only) body #id-top :is(.tmenucenter,a.tmenulabel,.mainmenuaspan) {max-width:none!important;width:auto!important;text-overflow:clip!important;overflow:visible!important;white-space:nowrap!important;}
html:not(.itos-workspace-only) body #id-top a.tmenulabel {padding:0 12px 5px!important;}
html:not(.itos-workspace-only) body #id-top .login_block {background:#07090b!important;}
}
}

/* 0.3.6: common notification surfaces retain semantic edge colours. */
@media screen {
html body #in-root {color:#f5f4f1!important;}
html body #in-root :is(.in-panel,.in-item) {background:#0c0e11!important;color:#f5f4f1!important;border-color:#45474b!important;}
html body #in-root :is(.in-panel-head,.in-item.in-unread) {background:#29231c!important;color:#f5f4f1!important;}
html body #in-root :is(a,.in-readall,.in-mark) {color:#ebd1aa!important;}
html body #in-root :is(.in-date,.in-empty) {color:#b9bab8!important;}
html body .in-toasts .in-toast {background:#0c0e11!important;color:#f5f4f1!important;border-top-color:#45474b!important;border-right-color:#45474b!important;border-bottom-color:#45474b!important;border-radius:3px!important;}
html body .in-toasts .in-toast :is(a,.in-close) {color:#ebd1aa!important;}
}

/* 0.3.10: user profile dropdown matches the shared dark screen CI. */
@media screen {
html body #id-top #topmenu-login-dropdown .dropdown-menu {background:#0c0e11!important;color:#f5f4f1!important;border:1px solid #45474b!important;border-radius:3px!important;box-shadow:0 12px 32px #0008!important;max-height:calc(100vh - 70px);overflow-y:auto;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .user-header {background:#141619!important;color:#f5f4f1!important;border-bottom:1px solid #2a2d31!important;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .user-body {background:#0c0e11!important;color:#f5f4f1!important;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .user-footer {background:#141619!important;color:#f5f4f1!important;border-top:1px solid #2a2d31!important;}
html body #id-top #topmenu-login-dropdown .dropdown-menu :is(p,b,small,u,span) {color:inherit!important;text-shadow:none!important;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .user-header small {color:#b9bab8!important;}
html body #id-top #topmenu-login-dropdown .dropdown-menu :is(#topmenulogincompanyinfo-btn,#topmenuloginmoreinfo-btn) {color:#ebd1aa!important;line-height:1.6;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .button-top-menu-dropdown {display:inline-flex;align-items:center;gap:6px;min-height:40px;box-sizing:border-box;background:transparent!important;color:#ebd1aa!important;border:1px solid #8b6b49!important;border-radius:2px!important;box-shadow:none!important;font-size:14px;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .button-top-menu-dropdown:hover {background:#29231c!important;color:#f5f4f1!important;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .button-top-menu-dropdown:focus-visible {outline:2px solid #d1ad7d!important;outline-offset:2px!important;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .user-footer .pull-right .button-top-menu-dropdown {background:#d1ad7d!important;color:#07090b!important;border-color:#d1ad7d!important;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .user-footer .pull-right .button-top-menu-dropdown:hover {background:#ebd1aa!important;}
}

@media screen {
html body #id-top #topmenu-login-dropdown .dropdown-menu :is(.user-header,.user-body,.user-footer) {border-color:#2a2d31!important;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .user-footer .button-top-menu-dropdown {background:#d1ad7d!important;color:#07090b!important;border-color:#d1ad7d!important;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .user-footer .button-top-menu-dropdown :is(span,i) {color:#07090b!important;}
html body #id-top #topmenu-login-dropdown .dropdown-menu .user-footer .button-top-menu-dropdown:hover {background:#ebd1aa!important;color:#07090b!important;}
}
