@font-face{font-family:TC Shell;src:url('/assets/brand/fonts/lato-regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:TC Shell;src:url('/assets/brand/fonts/lato-bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
body.has-erp-header{--erp-header-height:94px;--erp-sidebar-width:246px;--erp-content-offset:var(--erp-header-height);display:flex;flex-direction:column;min-height:100svh;padding-top:var(--erp-content-offset)}body.has-erp-header.erp-body{--erp-sidebar-width:258px}.erp-layout{display:flex;flex:1;min-width:0;min-height:calc(100svh - var(--erp-content-offset))}body.has-erp-header .main-shell{flex:1;min-width:0;min-height:calc(100svh - var(--erp-content-offset));margin-left:var(--erp-sidebar-width)}.has-erp-header .sidebar{position:fixed;inset:var(--erp-header-height) auto 0 0;width:var(--erp-sidebar-width);height:calc(100dvh - var(--erp-header-height));flex-shrink:0;overflow-y:auto}.has-erp-header .sidebar>nav{flex-shrink:0}
/* La sidebar reprend la palette de l’espace actif, en mode clair aussi. */
html[data-erp-theme=light] .has-erp-header{--erp-sidebar-bg:#fef4ec;--erp-sidebar-surface:#fff9f4;--erp-sidebar-line:#efdfd2;--erp-sidebar-selected:#fde6d0;--erp-sidebar-hover:#fcebdc;--erp-sidebar-ink:#9e421b;--erp-sidebar-muted:#8e705c}
html[data-erp-theme=light][data-erp-color=green] .has-erp-header{--erp-sidebar-bg:#eff3eb;--erp-sidebar-surface:#f8faf5;--erp-sidebar-line:#d7e1d1;--erp-sidebar-selected:#d9e5d1;--erp-sidebar-hover:#e3ecdc;--erp-sidebar-ink:#3f6048;--erp-sidebar-muted:#667a65}
html[data-erp-theme=light][data-erp-color=blue] .has-erp-header{--erp-sidebar-bg:#eef4fa;--erp-sidebar-surface:#f7fafd;--erp-sidebar-line:#d5e0eb;--erp-sidebar-selected:#dbe8f5;--erp-sidebar-hover:#e3edf7;--erp-sidebar-ink:#32557c;--erp-sidebar-muted:#647b91}
html[data-erp-theme=light][data-erp-color=red] .has-erp-header{--erp-sidebar-bg:#fbf0ed;--erp-sidebar-surface:#fdf8f6;--erp-sidebar-line:#ebd6cf;--erp-sidebar-selected:#f0d9d1;--erp-sidebar-hover:#f5e4dd;--erp-sidebar-ink:#8c514b;--erp-sidebar-muted:#96756c}
html[data-erp-theme=light][data-erp-color=purple] .has-erp-header{--erp-sidebar-bg:#f5eff8;--erp-sidebar-surface:#fbf8fd;--erp-sidebar-line:#e2d5e9;--erp-sidebar-selected:#e7d9ee;--erp-sidebar-hover:#eee4f3;--erp-sidebar-ink:#725b80;--erp-sidebar-muted:#867392}
html[data-erp-theme=light] .has-erp-header .sidebar{background:var(--erp-sidebar-bg);border-color:var(--erp-sidebar-line);color:var(--erp-sidebar-ink)}
html[data-erp-theme=light] .has-erp-header .sidebar .workspace{background:var(--erp-sidebar-surface);border-color:var(--erp-sidebar-line)}
html[data-erp-theme=light] .has-erp-header .sidebar :is(.workspace-avatar,.nav-item.active){background:var(--erp-sidebar-selected);color:var(--erp-sidebar-ink)}
html[data-erp-theme=light] .has-erp-header .sidebar .nav-item{color:var(--erp-sidebar-muted)}
html[data-erp-theme=light] .has-erp-header .sidebar .nav-item.active{color:var(--erp-sidebar-ink)}
html[data-erp-theme=light] .has-erp-header .sidebar .nav-item.active:before{background:var(--erp-sidebar-accent)}
html[data-erp-theme=light] .has-erp-header .sidebar .nav-item:not(.active):is(:hover,:focus-visible){background:var(--erp-sidebar-hover);color:var(--erp-sidebar-ink)}
html[data-erp-theme=light] .has-erp-header .sidebar :is(.workspace small,.nav-label,.sidebar-note p,.sidebar-note .eyebrow,.sidebar-footer){color:var(--erp-sidebar-muted)}
html[data-erp-theme=light] .has-erp-header .sidebar :is(.workspace strong,.sidebar-site){color:var(--erp-sidebar-ink)}
/* Accueil clair : les autres petits repères gardent aussi leur teinte pêche. */
html[data-erp-theme=light][data-erp-color=orange] .has-erp-header .topbar{background-color:#fef4ec}
html[data-erp-theme=light][data-erp-color=orange] .has-erp-header :is(.workspace-avatar,.user-avatar,.connection-icon,.event-dot,.erp-notification-marker){background:#fde6d0;color:#9e421b}
html[data-erp-theme=light][data-erp-color=orange] .has-erp-header .info-box{background:#fff8f1;border-color:#efdfd2}
html[data-erp-theme=light][data-erp-color=orange] .has-erp-header :is(.erp-notifications-heading,.erp-notifications-footer,.erp-global-search-heading,.erp-global-search-footer){background:#fef4ec}
/* Proposition 07 : sélecteur et recherche de même hauteur, centrés dans le bandeau. */
/* Preserve the menu layout until its correct labels and icons are ready to display. */
html[data-erp-menus=pending] .erp-global-menus{visibility:hidden}
.erp-global-header,.erp-global-header *{box-sizing:border-box}.erp-global-header{--erp-search-border-base:#cebcb0;--erp-search-border:var(--erp-search-border-base);--erp-header-base:#eeded1;--erp-header-bg:var(--erp-header-base);--erp-header-ink:#704c36;--erp-tool-ink:#704c36;--erp-bar-padding:28px;--erp-bar-gap:20px;--erp-menu-gap:10px;--erp-home-width:52px;--erp-control-height:41px;position:fixed;inset:0 0 auto;flex-shrink:0;z-index:60;width:100%;height:var(--erp-header-height);background:var(--erp-header-bg);border-bottom:1px solid color-mix(in srgb,var(--erp-header-ink) 18%,var(--erp-header-bg));box-shadow:0 2px 12px #23321e0a;font-family:'TC Shell',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:13px;line-height:1.5;color:#4b3b30;text-align:left}
.erp-global-header[data-color=green]{--erp-header-bg:#d8e6d7;--erp-header-ink:#3f6048;--erp-tool-ink:#3f6048;--erp-search-border:#b6c5b6}.erp-global-header[data-color=blue]{--erp-header-bg:#d5e3f2;--erp-header-ink:#425d79;--erp-tool-ink:#425d79;--erp-search-border:#b4c2d1}.erp-global-header[data-color=red]{--erp-header-bg:#f2dbd9;--erp-header-ink:#80514b;--erp-tool-ink:#80514b;--erp-search-border:#d1bab7}.erp-global-header[data-color=purple]{--erp-header-bg:#e8dded;--erp-header-ink:#695575;--erp-tool-ink:#695575;--erp-search-border:#c6bbcc}
/* La référence #eeded1 fournit la même clarté et la même chroma à chaque teinte. */
@supports(color:oklch(from #eeded1 l c 145)){.erp-global-header[data-color=green]{--erp-header-bg:oklch(from var(--erp-header-base) l c 145);--erp-search-border:oklch(from var(--erp-search-border-base) l c 145)}.erp-global-header[data-color=blue]{--erp-header-bg:oklch(from var(--erp-header-base) l c 250);--erp-search-border:oklch(from var(--erp-search-border-base) l c 250)}.erp-global-header[data-color=red]{--erp-header-bg:oklch(from var(--erp-header-base) l c 25);--erp-search-border:oklch(from var(--erp-search-border-base) l c 25)}.erp-global-header[data-color=purple]{--erp-header-bg:oklch(from var(--erp-header-base) l c 315);--erp-search-border:oklch(from var(--erp-search-border-base) l c 315)}}
.erp-global-bar{height:100%;display:flex;gap:var(--erp-bar-gap);padding:5px var(--erp-bar-padding);max-width:2000px;margin-inline:auto;align-items:center}
.erp-global-brand{display:flex;justify-content:center;flex:0 0 80px;width:80px;gap:0;align-items:center;text-decoration:none;color:#493c32;background:transparent;min-width:0;margin:0;font-family:'TC Shell',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.5}.erp-global-brand img{display:block;width:80px;height:80px;object-fit:contain;max-width:100%;flex-shrink:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.erp-global-menus{display:flex;align-items:center;flex:0 0 auto;gap:var(--erp-menu-gap);min-width:0}.erp-global-apps{position:relative;flex:0 0 auto;align-self:center;min-width:0}
.erp-global-switcher,.erp-global-app,.erp-global-home,.erp-global-actions,.erp-global-space-result{--erp-app-color:#804526;--erp-app-bg:#f7ede5;--erp-app-line:#d9bca5;--erp-app-selected:#f2ceb2;--erp-app-ink:#60341f}
.erp-global-app--green{--erp-app-color:#47654e;--erp-app-bg:#edf2e9;--erp-app-line:#bfd1b5;--erp-app-selected:#cbdcc2;--erp-app-ink:#294831}.erp-global-app--blue{--erp-app-color:#47637e;--erp-app-bg:#edf2f6;--erp-app-line:#bfcee2;--erp-app-selected:#c7d9e8;--erp-app-ink:#2f4d66}.erp-global-app--red{--erp-app-color:#8c514b;--erp-app-bg:#f8efec;--erp-app-line:#e0c1b7;--erp-app-selected:#e5c3b9;--erp-app-ink:#6e3a33}.erp-global-app--purple{--erp-app-color:#725b80;--erp-app-bg:#f2edf5;--erp-app-line:#d8c4df;--erp-app-selected:#d5c5df;--erp-app-ink:#574162}
.erp-global-switcher{display:flex;align-items:center;justify-content:center;gap:10px;min-width:135px;height:var(--erp-control-height);margin:0;padding:0 13px;border:1px solid var(--erp-app-line);border-radius:9px;background:var(--erp-app-bg);color:var(--erp-app-color);font:700 12px/1.3 'TC Shell',sans-serif;white-space:nowrap;cursor:pointer}.erp-global-switcher>.icon{display:block;flex-shrink:0;width:17px;height:17px}.erp-global-chevron{display:block;flex-shrink:0;margin-left:auto;transition:transform .16s}.erp-global-switcher[aria-expanded=true] .erp-global-chevron{transform:rotate(180deg)}.erp-global-switcher:hover,.erp-global-switcher:focus-visible{background:var(--erp-app-selected);color:var(--erp-app-ink)}
.erp-global-drawer{position:absolute;top:calc(100% + 10px);right:0;z-index:66;width:343px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 120px);overflow-y:auto;padding:14px;background:#fffdfa;border:1px solid var(--erp-search-border);border-radius:11px;box-shadow:0 12px 35px #40290f24}.erp-global-drawer-label{margin:0 0 10px;font-size:9px;line-height:1.5;letter-spacing:1px;text-transform:uppercase;color:var(--erp-header-ink)}.erp-global-app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.erp-global-app{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:76px;margin:0;padding:12px 7px;border:1px solid var(--erp-app-line);border-radius:7px;background:var(--erp-app-bg);color:var(--erp-app-color);font-size:12px;line-height:1.3;text-align:center;text-decoration:none;overflow-wrap:anywhere}.erp-global-app>.icon{display:block;width:22px;height:22px;flex-shrink:0}.erp-global-app:hover,.erp-global-app:focus-visible{background:var(--erp-app-selected);color:var(--erp-app-ink)}.erp-global-app.is-active{background:var(--erp-app-selected);color:var(--erp-app-ink);font-weight:700}
.erp-global-drawer-empty{margin:0;padding:10px 0 6px;font-size:12px;line-height:1.6;color:inherit}
.erp-global-actions{--erp-tool-size:48px;display:flex;align-items:center;flex-shrink:0;gap:10px;margin-left:auto}

.erp-global-tool{display:grid;place-items:center;position:relative;flex-shrink:0;width:40px;height:40px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;color:var(--erp-header-ink);font-family:inherit;font-size:25px;line-height:1;cursor:pointer}.erp-global-actions>.erp-global-tool,.erp-global-logout>.erp-global-tool{width:var(--erp-tool-size);height:var(--erp-tool-size);border:1px solid var(--erp-search-border)}.erp-global-actions>.erp-global-tool,.erp-global-logout>.erp-global-tool{background:var(--erp-app-bg);color:var(--erp-app-color)}.erp-global-actions>.erp-global-tool:is(:hover,:focus-visible),.erp-global-logout>.erp-global-tool:is(:hover,:focus-visible){background:var(--erp-app-selected);color:var(--erp-app-ink)}.erp-global-tool .icon{display:block;width:21px;height:21px}.erp-global-tool:hover{background:color-mix(in srgb,var(--erp-header-ink) 9%,transparent)}
.erp-global-shortcuts{display:flex;align-items:center;flex-shrink:0;gap:var(--erp-menu-gap);margin-inline:calc(var(--erp-menu-gap) - var(--erp-bar-gap))}
.erp-global-home.erp-global-tool{display:flex;align-items:center;justify-content:center;gap:0;padding:0;margin:0;line-height:0;width:var(--erp-home-width);height:var(--erp-control-height);border:1px solid var(--erp-search-border);border-radius:8px;background:var(--erp-app-bg);color:var(--erp-app-color);text-decoration:none}.erp-global-home>.icon{display:block;flex:0 0 auto;margin:0}.erp-global-home.erp-global-tool:hover,.erp-global-home.erp-global-tool:focus-visible{background:var(--erp-app-selected);color:var(--erp-app-ink)}
.erp-global-logout{display:flex;align-items:center;justify-content:center;flex-shrink:0;margin:0;padding:0;border:0}
.erp-theme-sun{display:none}:root[data-erp-theme=dark] .erp-theme-sun{display:block}:root[data-erp-theme=dark] .erp-theme-moon{display:none}
.erp-notification-badge{position:absolute;top:0;right:-2px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#ac582d;color:#fff;font-size:10px;font-weight:700;line-height:1}
.erp-notifications{position:absolute;right:var(--erp-bar-padding);top:calc(100% + 10px);width:390px;max-width:calc(100vw - 28px);padding:0;overflow:hidden;background:#fffdf9;border:1px solid var(--erp-search-border);border-radius:14px;box-shadow:0 18px 55px #452b1a29;color:#493c32;z-index:66}
.erp-notifications-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 18px 14px;background:#fbf6ef;border-bottom:1px solid #eee4d9}.erp-notifications-heading h2{margin:0;font:700 16px 'TC Shell',sans-serif;letter-spacing:-.2px;color:#493c32}.erp-notifications-heading p{margin:4px 0 0;font-size:11px;color:#99816d}.erp-notifications-heading .erp-global-tool{width:30px;height:30px;color:inherit}
.erp-notifications-status{margin:0;padding:24px 20px;font-size:12px;line-height:1.7;color:#8b7563}.erp-notifications-retry{margin:0 20px 18px;padding:0;border:0;background:none;color:#96603b;font:700 12px 'TC Shell',sans-serif;cursor:pointer}
.erp-notifications-list{list-style:none;margin:0;padding:0;max-height:min(420px,calc(100dvh - 245px));overflow-y:auto}.erp-notifications-list>li{list-style:none;margin:0;padding:0}.erp-global-notification{display:flex;align-items:flex-start;gap:11px;padding:15px 18px;border-bottom:1px solid #f0e8df;text-decoration:none;color:inherit;position:relative}.erp-global-notification:hover{background:#faf2e8}.erp-notification-marker{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:9px;background:#f2e5d6;color:#8a6043;font-size:10px;font-weight:700}.erp-notification-body{min-width:0}.erp-global-notification strong{display:block;font-size:12px;font-weight:400;line-height:1.6;color:#5a493b;overflow-wrap:anywhere}.erp-global-notification.is-unread strong{font-weight:700}.erp-global-notification small{display:block;margin-top:4px;font-size:10px;line-height:1.6;color:#a18a77}.erp-global-notification.is-unread:after{content:'';position:absolute;right:10px;top:18px;width:5px;height:5px;border-radius:50%;background:#b76e3a}
.erp-notifications-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;background:#fbf6ef;border-top:1px solid #eee4d9}.erp-notifications-footer button,.erp-notifications-footer a{padding:0;margin:0;background:none;border:0;color:#93603c;font:700 11px 'TC Shell',sans-serif;text-decoration:none;cursor:pointer}.erp-notifications-footer a{display:flex;gap:5px;align-items:center;margin-left:auto}.erp-notifications-footer .icon{width:13px;height:13px}

.erp-global-tool:focus,.erp-global-tool:focus-visible,.erp-global-brand:focus,.erp-global-brand:focus-visible,.erp-global-home:focus,.erp-global-home:focus-visible,.erp-global-switcher:focus,.erp-global-switcher:focus-visible,.erp-global-app:focus,.erp-global-app:focus-visible,.erp-global-clear:focus,.erp-global-clear:focus-visible{outline:none;outline-offset:0;box-shadow:none}
.erp-global-search{position:static;flex:1;min-width:0;width:100%;max-width:520px;margin:0}.erp-global-search>form{display:flex;align-items:center;position:relative;width:100%;height:var(--erp-control-height);min-height:var(--erp-control-height);border:1px solid var(--erp-search-border);border-radius:8px;background:#ffffffeb;box-shadow:none;margin:0;padding:0}.erp-global-search-icon{display:block;color:color-mix(in srgb,var(--erp-header-ink) 65%,#fff);flex-shrink:0;margin-left:13px;width:17px;height:17px}.erp-global-search input[type=search]{appearance:none;display:block;min-width:0;flex:1;width:100%;height:calc(var(--erp-control-height) - 2px);min-height:calc(var(--erp-control-height) - 2px);margin:0;padding:8px 9px;border:0;border-radius:10px;background:transparent;outline:none;box-shadow:none;font-family:inherit;font-size:12px;font-weight:400;line-height:1.5;color:#493a2e;letter-spacing:normal}.erp-global-search input[type=search]::placeholder{color:color-mix(in srgb,var(--erp-header-ink) 65%,#fff);opacity:1}.erp-global-search input[type=search]:focus,.erp-global-search input[type=search]:focus-visible{outline:none;box-shadow:none}.erp-global-search input::-webkit-search-cancel-button{display:none}.erp-global-shortcut{display:none;font:9px 'TC Shell',sans-serif;color:#a68e79;white-space:nowrap;border:1px solid #eee5db;background:#faf7f2;border-radius:4px;padding:2px 5px;margin-right:10px}.erp-global-clear{display:grid;place-items:center;border:0;border-radius:5px;background:#f6f1e9;color:#85664d;width:26px;height:26px;min-width:26px;margin:0 8px 0 0;padding:0;font:20px 'TC Shell',sans-serif;cursor:pointer}.erp-global-suggestions{position:absolute;top:calc(50% + 30px);left:calc(var(--erp-bar-padding) + 80px + var(--erp-bar-gap));right:auto;width:510px;min-width:0;max-width:calc(100% - var(--erp-bar-padding) - var(--erp-bar-padding) - 80px - var(--erp-bar-gap));overflow:hidden;background:#fff;border:1px solid #e1d4c5;border-radius:13px;box-shadow:0 18px 55px #452b1a29;z-index:65;color:#4a382b}.erp-global-search-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid #f0e6da;background:#fffcf7;font-size:11px;font-weight:700;color:#765941}.erp-global-search-heading small{font-size:9px;color:#a88d75;font-weight:400}.erp-global-search-status{padding:17px 18px;margin:0;font-size:12px;line-height:1.7;color:#8e7560}.erp-global-results{list-style:none;padding:5px;margin:0;max-height:min(440px,calc(100dvh - 220px));overflow-y:auto;scrollbar-width:thin}.erp-global-result{display:flex;align-items:flex-start;gap:11px;padding:11px 12px;border:1px solid transparent;border-radius:9px;margin:1px 0;cursor:pointer;list-style:none;font-size:12px;line-height:1.5;color:#493c2f;outline:none}.erp-global-result:hover,.erp-global-result.is-selected{background:#fff5e9;border-color:#f1dfc8}.erp-global-result-marker{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;background:#fff0df;color:#b4743a;flex-shrink:0;font-size:13px;font-weight:700}.erp-global-result[data-module=route] .erp-global-result-marker{background:#edf3e6;color:#4e6a3e}.erp-global-result-body{flex:1;min-width:0}.erp-global-result-title{display:block;font-family:inherit;font-size:12px;font-weight:700;line-height:1.6;color:#4a3627;overflow-wrap:anywhere}.erp-global-result-context{display:block;font-family:inherit;font-size:10px;font-weight:400;color:#96806b;margin-top:2px;overflow-wrap:anywhere}.erp-global-result-meta{display:flex;gap:7px;align-items:center;margin-top:6px;font-size:9px;color:#a78d76}.erp-global-result-type{border-radius:4px;padding:1px 5px;background:#f6efe6;color:#937453}.erp-global-result[data-module=route] .erp-global-result-type{background:#eff4e8;color:#68824c}.erp-global-search-footer{display:flex;gap:17px;justify-content:center;padding:10px 13px;margin:0;border-top:1px solid #f1e8dd;background:#fffdf9;font-size:9px;line-height:1.5;color:#b29b83}.erp-global-header [hidden]{display:none!important}.erp-global-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.has-erp-header [id^=erp-event-],.has-erp-header [data-search-version]{scroll-margin-top:calc(var(--erp-content-offset) + 25px)}.erp-global-match{outline:2px solid #d29e66;outline-offset:5px}
@media(min-width:801px){.has-erp-header .sidebar>.logo{margin-bottom:20px}}
@media(max-width:1200px){body.has-erp-header.erp-body{--erp-sidebar-width:230px}.erp-global-header{--erp-bar-gap:14px;--erp-bar-padding:22px}.erp-global-switcher{min-width:120px}.erp-global-actions{--erp-tool-size:44px;gap:7px}.erp-global-tool{width:36px;height:36px}.erp-global-search input[type=search]{font-size:11px}}
@media(max-width:1100px){body.has-erp-header{--erp-sidebar-width:215px}}
@media(max-width:1000px){.erp-global-header{--erp-bar-padding:18px;--erp-bar-gap:12px;--erp-menu-gap:8px}.erp-global-switcher{min-width:100px;gap:6px;padding-inline:9px}}
@media(max-width:800px){body.has-erp-header{--erp-mobile-sidebar-height:64px;--erp-content-offset:calc(var(--erp-header-height) + var(--erp-mobile-sidebar-height))}.erp-layout{flex-direction:column}body.has-erp-header .main-shell{min-height:0;margin-left:0}.has-erp-header .sidebar{inset:var(--erp-header-height) 0 auto;width:100%;height:var(--erp-mobile-sidebar-height);padding:10px 16px;overflow:visible}.has-erp-header .sidebar>.logo{display:none}.has-erp-header .sidebar nav{grid-column:1;grid-row:1;min-width:0}.has-erp-header .sidebar .logout-form .nav-item{font-size:0;padding:8px;gap:0}.has-erp-header .sidebar .logout-form .nav-item .icon{width:18px;height:18px}.has-erp-header .sidebar .logout-form .nav-item>span{font-size:20px}.erp-global-header{--erp-bar-padding:18px;--erp-bar-gap:10px}.erp-global-results{max-height:min(410px,calc(100dvh - 240px))}}
@media(max-width:800px){.erp-global-header{--erp-bar-padding:14px;--erp-bar-gap:8px;--erp-menu-gap:6px;--erp-home-width:48px;--erp-control-height:40px}.erp-global-bar{display:grid;grid-template-columns:80px minmax(0,1fr) calc(var(--erp-home-width)*2 + var(--erp-menu-gap)) 84px;grid-template-rows:40px 40px;gap:4px var(--erp-menu-gap);align-content:center;align-items:center;padding-block:4px}.erp-global-brand{grid-column:1;grid-row:1/3}.erp-global-shortcuts{grid-column:3;grid-row:1;margin-inline:0}.erp-global-menus{grid-column:2/4;grid-row:2;gap:var(--erp-menu-gap);width:calc(100% - 44px)}.erp-global-apps{position:static;flex:1}.erp-global-switcher{min-width:0;width:100%;gap:6px;padding-inline:8px}.erp-global-drawer{right:14px;top:calc(100% + 7px)}.erp-global-actions{--erp-tool-size:40px;grid-column:4;grid-row:1/3;display:grid;grid-template-columns:repeat(3,var(--erp-tool-size));grid-template-rows:repeat(2,var(--erp-tool-size));gap:4px;width:128px;height:84px;align-self:center;justify-self:end;margin:0}.erp-global-tool{width:32px;height:32px}.erp-global-tool .icon{width:18px;height:18px}#erp-theme-toggle{grid-column:2;grid-row:1}#erp-notification-toggle{grid-column:3;grid-row:1}.erp-global-avatar{grid-column:1;grid-row:2}#erp-settings{grid-column:2;grid-row:2}.erp-global-logout{grid-column:3;grid-row:2;justify-self:stretch}.erp-notifications{right:14px;top:calc(100% + 7px)}.erp-global-search{grid-column:2;grid-row:1;max-width:none}.erp-global-search-icon{margin-left:10px;width:15px;height:15px}.erp-global-search input[type=search]{font-size:11px;padding-inline:7px}.erp-global-clear{width:22px;height:24px;min-width:22px;margin-right:5px}.erp-global-suggestions{left:14px;right:auto;width:calc(100% - 28px);min-width:0;max-width:calc(100% - 28px);top:calc(100% + 7px)}.erp-global-results{max-height:min(350px,calc(100dvh - 240px))}.erp-global-result{padding:10px 9px;gap:9px}.erp-global-result-title{font-size:11px}.erp-global-result-context{font-size:10px}.erp-global-search-heading{padding:12px 14px}}
@media(max-width:480px){.erp-global-switcher{min-width:0;width:100%;padding-inline:7px;gap:4px}.erp-global-switcher>span{display:none}.erp-global-chevron{width:10px;height:10px}.erp-global-switcher>.icon{width:16px;height:16px}.erp-global-search-icon{margin-left:7px;width:13px;height:13px}.erp-global-search input[type=search]{padding-inline:5px}}
@media(prefers-reduced-motion:reduce){.erp-global-chevron{transition:none}}

.erp-global-search-tools{display:flex;align-items:center;flex:0 0 auto;gap:4px;margin-right:6px}.erp-global-search-tool{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;margin:0;padding:0;border:0;border-radius:5px;background:transparent;color:var(--erp-header-ink);cursor:pointer;outline:none;box-shadow:none}.erp-global-search-tool .icon{display:block;width:17px;height:17px}.erp-global-search-tool:hover,.erp-global-search-tool:focus-visible{background:color-mix(in srgb,var(--erp-header-ink) 9%,transparent)}
.erp-global-search-trigger{display:none;align-items:center;justify-content:center;gap:8px;width:100%;height:var(--erp-control-height);margin:0;padding:0 6px;border:1px solid var(--erp-search-border);border-radius:8px;background:#ffffffeb;color:var(--erp-header-ink);font:12px 'TC Shell',sans-serif;cursor:pointer;outline:none;box-shadow:none}.erp-global-search-trigger .icon{display:block;width:17px;height:17px;flex-shrink:0}.erp-global-search-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.erp-global-search-trigger:focus,.erp-global-search-trigger:focus-visible,.erp-global-search-tool:focus,.erp-global-search-tool:focus-visible{outline:none;box-shadow:none}
html[data-erp-theme=dark] .erp-global-search-trigger{background:color-mix(in srgb,var(--erp-dark-field) 90%,transparent)}
@media(min-width:801px) and (max-width:1000px){.erp-global-switcher{min-width:52px;width:52px;gap:4px;padding-inline:7px}.erp-global-switcher>[data-erp-dropdown-label]{display:none}}
@media(max-width:1000px){.erp-global-search-trigger{display:flex}.erp-global-search>form{display:none}.erp-global-search.is-search-open>form{display:flex;position:absolute;z-index:66;top:calc(100% + 7px);left:var(--erp-bar-padding);right:var(--erp-bar-padding);width:auto;max-width:none;background:var(--erp-search-expanded-bg,#fffdfa)}.erp-global-search .erp-global-suggestions{top:calc(100% + var(--erp-control-height) + 14px);left:var(--erp-bar-padding);right:auto;width:calc(100% - var(--erp-bar-padding)*2);max-width:calc(100% - var(--erp-bar-padding)*2)}html[data-erp-theme=dark] .erp-global-search{--erp-search-expanded-bg:var(--erp-dark-field)}}
@media(max-width:480px){.erp-global-search-trigger span{display:none}}
@media(max-width:360px){.erp-global-header{--erp-menu-gap:2px}.erp-global-search-trigger{padding-inline:0}.erp-global-switcher{padding-inline:3px;gap:3px}}
/* Route is an ERP space, including its development follow-up page. */
.has-erp-header .sidebar[data-erp-sidebar=route]>.nav-label{font-size:9px;font-weight:700;letter-spacing:1.3px;text-transform:uppercase;padding:0 12px;margin:0 0 14px;color:var(--erp-sidebar-muted)}
.has-erp-header .sidebar[data-erp-sidebar=route] .nav-item .icon{width:18px;height:18px;flex-shrink:0}
.has-erp-header .sidebar[data-erp-sidebar=route] a.nav-item{text-decoration:none}
@media(max-width:800px){.has-erp-header .sidebar[data-erp-sidebar=route]>.nav-label{display:none}}

/* A fixed control straddles the sidebar edge; its desktop rail keeps icon targets square. */
html[data-erp-theme=dark] .has-erp-header{--erp-sidebar-bg:var(--erp-dark-sidebar);--erp-sidebar-surface:var(--erp-dark-raised);--erp-sidebar-line:var(--erp-dark-line);--erp-sidebar-selected:var(--erp-dark-selected);--erp-sidebar-hover:var(--erp-dark-hover);--erp-sidebar-ink:var(--erp-dark-text);--erp-sidebar-muted:var(--erp-dark-muted);--erp-sidebar-accent:var(--erp-dark-accent)}
.erp-sidebar-toggle{--erp-sidebar-toggle-bg:var(--erp-sidebar-ink);--erp-sidebar-toggle-line:var(--erp-sidebar-toggle-bg);display:none;position:fixed;z-index:40;left:var(--erp-sidebar-width);bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);width:36px;height:36px;padding:0;place-items:center;border:1px solid var(--erp-sidebar-toggle-line);border-radius:10px;background:var(--erp-sidebar-toggle-bg);color:#fff;cursor:pointer;outline:none;box-shadow:none}
html[data-erp-theme=dark] .erp-sidebar-toggle{--erp-sidebar-toggle-bg:var(--erp-dark-primary);--erp-sidebar-toggle-line:var(--erp-dark-accent)}
html[data-erp-theme=light][data-erp-color=orange] .erp-sidebar-toggle{--erp-sidebar-toggle-bg:var(--brand,#e0893c)}
html[data-erp-theme=dark][data-erp-color=orange] .erp-sidebar-toggle{--erp-sidebar-toggle-bg:var(--erp-dark-selected)}
.erp-sidebar-toggle[hidden]{display:none!important}.erp-sidebar-toggle:is(:hover,:focus-visible){background:color-mix(in srgb,var(--erp-sidebar-toggle-bg) 85%,#000)}.erp-sidebar-toggle .icon{display:block;width:20px;height:20px;flex-shrink:0}html[data-erp-sidebar=collapsed] .erp-sidebar-toggle .icon{transform:rotate(180deg)}
@media(min-width:801px){
  .has-erp-header .sidebar{padding-bottom:76px}
  .erp-sidebar-toggle{display:grid}
  html[data-erp-sidebar=collapsed] body.has-erp-header{--erp-sidebar-width:76px}
  html[data-erp-sidebar=collapsed] .has-erp-header .sidebar{padding:20px 14px 76px;align-items:center;overflow-x:hidden}
  html[data-erp-sidebar=collapsed] .has-erp-header .sidebar>:not(nav){display:none}
  html[data-erp-sidebar=collapsed] .has-erp-header .sidebar>nav{display:flex;flex-direction:column;align-items:center;width:100%;gap:8px}
  html[data-erp-sidebar=collapsed] .has-erp-header .sidebar .nav-item{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;gap:0;border:1px solid var(--erp-sidebar-line);border-radius:10px;background:var(--erp-sidebar-surface);color:var(--erp-sidebar-muted);font-size:0;line-height:1;overflow:hidden}
  html[data-erp-sidebar=collapsed] .has-erp-header .sidebar .nav-item.active{background:var(--erp-sidebar-selected);color:var(--erp-sidebar-ink)}
  html[data-erp-sidebar=collapsed] .has-erp-header .sidebar .nav-item:not(.active):is(:hover,:focus-visible){background:var(--erp-sidebar-hover);color:var(--erp-sidebar-ink)}
  html[data-erp-sidebar=collapsed] .has-erp-header .sidebar .nav-item>:not(.icon):not(img){display:none}
  html[data-erp-sidebar=collapsed] .has-erp-header .sidebar .nav-item :is(.icon,img){width:20px;height:20px;margin:0;flex-shrink:0}
}

/* Shared normal accent, available in both themes. */
.has-erp-header{--erp-sidebar-accent:var(--brand,#e0893c)}html[data-erp-color=green] .has-erp-header{--erp-sidebar-accent:#648b43}html[data-erp-color=blue] .has-erp-header{--erp-sidebar-accent:#466ca6}html[data-erp-color=red] .has-erp-header{--erp-sidebar-accent:#ba635a}html[data-erp-color=purple] .has-erp-header{--erp-sidebar-accent:#906fa4}

/* Space suggestions reuse the exact shared drawer palette, independent of the open space. */
#erp-global-results .erp-global-space-result{align-items:center;background:var(--erp-app-bg);border-color:var(--erp-app-line);color:var(--erp-app-ink);margin-block:5px}
#erp-global-results .erp-global-space-result:is(:hover,.is-selected){background:var(--erp-app-selected);border-color:var(--erp-app-line);color:var(--erp-app-ink)}
#erp-global-results .erp-global-space-result .erp-global-result-marker{width:36px;height:36px;background:var(--erp-app-selected);color:var(--erp-app-color);border-radius:9px}
#erp-global-results .erp-global-space-result .erp-global-result-marker>.icon{display:block;width:20px;height:20px}
#erp-global-results .erp-global-space-result .erp-global-result-title{color:var(--erp-app-ink)}
#erp-global-results .erp-global-space-result .erp-global-result-context,#erp-global-results .erp-global-space-result .erp-global-result-meta{color:var(--erp-app-color)}
#erp-global-results .erp-global-space-result .erp-global-result-type{background:var(--erp-app-selected);color:var(--erp-app-ink)}
