#historial .omfxh-root[hidden]{display:none!important;}
/** OMFX - Mejoras exclusivas de Historial. No afectan posiciones ni pendientes. **/
#historial > .omfxh-original { display:none !important; }
#historial .omfxh-root {padding:0 12px 12px; min-width:0;}
#historial .omfxh-info {font-size:12px; color:var(--muted,#99adbc); padding:0 3px 9px;}
#historial .omfxh-scroll {
  width:100%; max-height:318px; overflow:auto; overscroll-behavior:contain;
  scrollbar-gutter:stable; border:1px solid var(--border,#254052);
  border-radius:8px; outline-offset:2px;
}
#historial .omfxh-table {width:100%; min-width:640px; margin:0; border-collapse:separate; border-spacing:0;}
#historial .omfxh-table thead th {
  position:sticky; top:0; z-index:2;
  background:var(--panel2,#112332);
  box-shadow:0 1px 0 var(--border,#254052);
}
#historial .omfxh-table tbody td {white-space:nowrap;}
#historial .omfxh-empty {text-align:center; padding:18px; color:var(--muted,#99adbc);}
#historial .omfxh-menu-trigger {
  margin-left:auto; min-width:30px; height:29px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border,#254052); border-radius:7px;
  background:transparent; color:var(--text,#e9f3f8);
  font-size:19px; line-height:1; cursor:pointer;
}
#historial .omfxh-menu-trigger:hover {background:var(--panel2,#112332);}
.omfxh-menu[hidden] {display:none!important;}
.omfxh-menu {
  position:fixed; z-index:20000; width:205px; padding:6px;
  border:1px solid var(--border,#254052); border-radius:10px;
  background:var(--panel,#0d1a27); color:var(--text,#e9f3f8);
  box-shadow:0 15px 38px rgba(0,0,0,.35);
  font-family:Inter,system-ui,sans-serif;
}
.omfxh-menu-title {padding:8px; color:var(--muted,#9cb1bf);font-size:10px;font-weight:800;letter-spacing:.07em;}
.omfxh-menu button {
  display:block; width:100%; padding:10px 12px; border:0; border-radius:6px;
  background:transparent; color:inherit; cursor:pointer;
  font:inherit; font-size:12px; text-align:left;
}
.omfxh-menu button:hover,.omfxh-menu button[aria-checked="true"] {background:var(--panel2,#112332);color:var(--green,#3fe0a3);}
.omfxh-menu button[aria-checked="true"]::after {content:'✓';float:right;}
@media(max-width:680px) {#historial .omfxh-root {padding:0 8px 10px;}#historial .omfxh-scroll{max-height:290px;}}
