diff --git a/shared/components/sidebar.php b/shared/components/sidebar.php index 9352822..8fafbce 100644 --- a/shared/components/sidebar.php +++ b/shared/components/sidebar.php @@ -317,12 +317,11 @@ if (class_exists('ModuleRegistry', false)) { /* ── Acordeón de categorías ─────────────────────────── */ .sidebar-section { position: relative; - display: flex; - align-items: center; - justify-content: center; + display: block; + text-align: center; cursor: pointer; user-select: none; - padding: 8px 28px 6px; + padding: 8px 30px 6px; margin-top: 6px; border-radius: 8px 8px 0 0; transition: background .15s, border-color .15s; @@ -339,15 +338,17 @@ if (class_exists('ModuleRegistry', false)) { background: rgba(255,255,255,.1); color: #fff; } -.sidebar-section .sb-cat-label { display:flex; align-items:center; gap:5px; } +.sidebar-section .sb-cat-label { display:inline-flex; align-items:center; gap:5px; } .sb-chevron { position: absolute; right: 12px; + top: 50%; + transform: translateY(-50%); font-size: .6rem; opacity: .6; transition: transform .25s ease; } -.sidebar-section.collapsed .sb-chevron { transform: rotate(-90deg); } +.sidebar-section.collapsed .sb-chevron { transform: translateY(-50%) rotate(-90deg); } /* Grupo colapsable */ .sb-group { overflow: hidden; transition: max-height .28s ease, opacity .2s ease; }