/* menu-riel.css — 5 nov 2026 (opción «R1 · Riel fijo», elegida por Lucas). Menú lateral del dashboard en pantallas de 768 px
   o más; en el celular no aplica nada (sigue el menú de abajo). Sin píldoras; tema claro por defecto y oscuro con
   data-theme="dark". Rollback: quitar las 2 líneas de index.html (css y js de menu-riel). */
#menu-riel { display: none; }
@media (min-width: 768px) {
  html.mr-on { --mr-w: 78px; }
  html.mr-on .tabs-container { display: none !important; }        /* las pestañas reales siguen en la página: el riel las usa */
  html.mr-on body { padding-left: var(--mr-w) !important; }
  html.mr-on .topbar-brand-mark { display: none !important; }      /* el logo pasa al riel */
  html.mr-on #menu-riel {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--mr-w); z-index: 900; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 6px 12px; overflow-y: auto; overflow-x: hidden;
    background: #fff; border-right: 1px solid #E3E8EE; color: #4A5868; font: 500 11.5px/1.15 Inter, ui-sans-serif, system-ui, sans-serif;
    scrollbar-width: none;
  }
  html.mr-on #menu-riel::-webkit-scrollbar { display: none; }
  #menu-riel .mr-logo { display: flex; align-items: center; justify-content: center; height: 40px; margin-bottom: 8px; flex: none; }
  #menu-riel .mr-logo img { width: 30px; height: auto; }
  #menu-riel .mr-it {
    position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 100%; min-height: 56px; padding: 7px 2px; box-sizing: border-box; border: 1px solid transparent; border-radius: 9px;
    background: none; color: inherit; font: inherit; text-align: center; text-decoration: none; cursor: pointer;
  }
  #menu-riel .mr-it svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  #menu-riel .mr-lb { display: block; max-width: 100%; font-size: 11px; overflow-wrap: normal; word-break: normal; hyphens: manual; }
  #menu-riel .mr-it:hover { background: #F4F6F9; color: #0F1720; }
  #menu-riel .mr-it:focus-visible { outline: 2px solid #0B8AA0; outline-offset: 1px; }
  #menu-riel .mr-it.on { background: rgba(11,138,160,.10); border-color: rgba(11,138,160,.35); color: #0A6F83; }
  #menu-riel .mr-bd {
    position: absolute; top: 4px; left: calc(50% + 4px); min-width: 18px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 5px;
    background: #D23A41; color: #fff; font: 700 10.5px/16px Inter, system-ui, sans-serif; text-align: center;
  }
  #menu-riel .mr-bd.warn { background: #B9770C; }
  #menu-riel .mr-sep { flex: none; height: 1px; margin: 6px; background: #E3E8EE; }
  #menu-riel .mr-fin { margin-top: auto; }
  html[data-theme="dark"].mr-on #menu-riel { background: #10161D; border-color: #1F2833; color: #A9B4C2; }
  html[data-theme="dark"] #menu-riel .mr-it:hover { background: #151C25; color: #E7ECF2; }
  html[data-theme="dark"] #menu-riel .mr-it.on { background: rgba(76,194,214,.12); border-color: rgba(76,194,214,.4); color: #4CC2D6; }
  html[data-theme="dark"] #menu-riel .mr-sep { background: #1F2833; }
}
@media (min-width: 768px) and (max-height: 640px) {
  #menu-riel .mr-it { min-height: 46px; padding: 4px 2px; gap: 3px; }
  #menu-riel .mr-lb { font-size: 10.5px; }
}
@media print { #menu-riel { display: none !important; } html.mr-on body { padding-left: 0 !important; } }
