/* One persistent PHP navigation tree. Shell geometry belongs to shell.css. */
.lateral-menu ul { list-style: none; margin: 0; padding: 0; }
.lateral-menu .menu-label { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; color: var(--shell-text); text-align: start; text-decoration: none; cursor: pointer; }
.lateral-menu .menu-submenu { display: none; border-inline-start: 1px solid var(--shell-border); margin-inline-start: var(--shell-space-2); padding-inline-start: var(--shell-space-1); }
.lateral-menu .menu-item.open > .menu-submenu { display: block; }
.lateral-menu .menu-item[hidden] { display: none; }
.lateral-menu .menu-item.open > .menu-label .menu-arrow { transform: rotate(180deg); }
.lateral-menu .menu-arrow { transition: transform .2s; }
/* Navigation presentation; shell geometry lives in shell.css. */
.gui-shell #menu-principal .fixed-menu { padding: 6px; overflow-wrap: anywhere; }
.gui-shell #menu-principal .menu-label { font-family: var(--shell-font); font-size: var(--shell-font-size); line-height: var(--shell-line-height); font-weight: 400; min-height: 28px; min-width: 0; gap: var(--shell-space-1); padding: 3px 7px; border-radius: var(--shell-radius-control); }
.gui-shell #menu-principal .lateral-menu > ul > .menu-item > .menu-label { font-family: var(--shell-font-strong); font-weight: 600; min-height: 30px; }
.gui-shell #menu-principal .menu-root > .menu-item + .menu-item { margin-block-start: var(--shell-space-1); }
.gui-shell #menu-principal .menu-label:hover { background: var(--shell-hover-bg); }
.gui-shell #menu-principal .menu-item[data-active="true"] > .menu-submenu { border-inline-start-color: var(--shell-brand); }
.gui-shell #menu-principal .menu-item[data-active="true"] > button.menu-label { font-family: var(--shell-font-strong); font-weight: 600; }
.gui-shell #menu-principal .menu-label[aria-current="page"] { background: var(--shell-active-bg); border-inline-start: 3px solid var(--shell-brand); padding-inline-start: 4px; font-family: var(--shell-font-strong); font-weight: 600; }
.gui-shell #menu-principal .menu-label:focus-visible,
.gui-shell #menu-search-input:focus-visible { outline: 2px solid var(--shell-focus); outline-offset: -2px; }
.gui-shell #menu-search-input { font: inherit; width: 100%; min-width: 0; box-sizing: border-box; padding: var(--shell-space-2); margin-bottom: var(--shell-space-2); color: var(--shell-text); background: var(--shell-panel-bg); border: 1px solid var(--shell-border); border-radius: var(--shell-radius-control); }
.lateral-menu .menu-label-text { min-width: 0; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lateral-menu .menu-arrow { flex: 0 0 16px; width: 16px; font-size: 16px; line-height: 1; text-align: center; color: var(--shell-muted); }
.gui-shell #menu-search-input::placeholder { color: var(--shell-muted); opacity: 1; }
