/* Barra superior y paneles de navegación */
.sb-nav-fixed .izzy-topbar {
    --top-ink:#112b40;
    --top-blue:#0878b5;
    --top-border:#dce6ef;
    --top-soft:#e8f4fc;
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    justify-content:flex-start;
    gap:clamp(.3rem,.8vw,.8rem);
    min-width:0;
    height:56px;
    padding:0 max(.55rem,env(safe-area-inset-right)) 0 max(.55rem,env(safe-area-inset-left));
    background:#fff;
    color:var(--top-ink);
    border-bottom:1px solid var(--top-border);
    box-shadow:0 3px 14px #112b400d;
}
.izzy-topbar .navbar-brand {flex:0 0 auto;width:clamp(82px,8vw,132px);margin:0;padding:0;line-height:1;}
.izzy-topbar .navbar-brand a {display:block;}
.izzy-topbar .navbar-brand:hover img {transform:none;}
.izzy-topbar .navbar-brand img {display:block;width:100%;max-height:35px;object-fit:contain;}
.izzy-topbar :is(.izzy-top-more,.izzy-top-tools,.navbar-nav-user) {flex:0 0 auto;margin:0;}
.izzy-topbar .navbar-nav-user > li {position:static;}
.izzy-topbar .navbar-nav-user {display:flex;align-items:center;gap:clamp(.3rem,.8vw,.8rem);list-style:none;padding:0;}
.izzy-top-control {
    display:inline-flex;align-items:center;justify-content:center;gap:.45rem;flex:0 0 auto;
    min-width:38px;height:38px;padding:0 .55rem;color:var(--top-ink);
    background:#fff;border:1px solid var(--top-border);border-radius:.75rem;
    font-size:.88rem;font-weight:700;white-space:nowrap;cursor:pointer;
}
.izzy-top-control:hover,.izzy-top-control[aria-expanded="true"],.izzy-top-control[aria-pressed="true"] {
    color:#075386;background:var(--top-soft);border-color:#b8d8ee;
}
.izzy-top-control[aria-controls="sidenavAccordion"],#mobile-mainmenu-btn > i {color:var(--top-blue);}
.izzy-top-control:disabled {opacity:.6;cursor:wait;}
.izzy-topbar :is(a,button,input):focus-visible {outline:2px solid var(--top-blue);outline-offset:2px;}
.izzy-quick-strip {flex:1 1 0;min-width:0;position:relative;}
.izzy-quick-items {list-style:none;padding:0;margin:0;}
.izzy-quick-strip > ul {display:flex;align-items:center;gap:.15rem;min-width:0;}
.izzy-topbar.nav-loading .izzy-quick-strip > ul {visibility:hidden;}
.izzy-topbar.is-measuring .izzy-quick-strip > ul {width:max-content;visibility:hidden;}
.izzy-quick-strip li {flex:none;}
.izzy-topbar .izzy-quick-items a {
    display:flex;align-items:center;gap:.5rem;min-height:38px;padding:.35rem .55rem;
    border-radius:.55rem;color:var(--top-ink);font-size:.87rem;font-weight:650;text-decoration:none;line-height:1.25;
}
.izzy-topbar .izzy-quick-strip a {white-space:nowrap;}
.izzy-topbar .izzy-quick-items a:hover,.izzy-topbar .izzy-quick-items a[aria-current="page"] {color:#075386;background:var(--top-soft);}
.izzy-topbar .izzy-quick-items i {margin:0!important;width:1.2rem;text-align:center;color:#0878b5;font-size:1rem;}
.izzy-topbar .izzy-quick-items :is(.reporteVentas,.nomina) i {color:#12834b;}
.izzy-topbar .izzy-quick-items :is(.reporteCompras,.pagarProveedores) i {color:#a65b0d;}
.izzy-topbar .izzy-quick-items :is(.inventario,.transferencia) i {color:#7046a2;}
.izzy-top-more.is-empty {visibility:hidden;}
.izzy-more-mobile {display:none;}
.izzy-top-panel {
    position:absolute;top:100%;right:var(--panel-right,.55rem);left:auto;
    width:min(var(--panel-width,23rem),calc(100% - 1.1rem));max-height:min(32rem,calc(100dvh - 64px));
    overflow:auto;overscroll-behavior:contain;padding:.75rem;background:#fff;color:var(--top-ink);
    border:1px solid var(--top-border);border-radius:.9rem;box-shadow:0 12px 30px #112b4026;
}
.izzy-topbar [hidden] {display:none!important;}
.izzy-panel-title {display:block;padding:.3rem .45rem .65rem;border-bottom:1px solid var(--top-border);margin-bottom:.35rem;}
.izzy-top-empty {padding:.8rem .45rem;color:#4e647a;font-size:.87rem;margin:0;}
.izzy-search-panel {--panel-width:31rem;}
.izzy-search-field {display:flex;align-items:center;gap:.5rem;border:1px solid #bbd1e2;border-radius:.65rem;padding:.25rem .55rem;color:var(--top-blue);}
.izzy-search-field:focus-within {outline:2px solid #87bfe6;outline-offset:1px;}
.izzy-search-field input {min-width:0;width:100%;height:35px;outline:0!important;border:0;color:var(--top-ink);background:#fff;}
.izzy-search-field input::-webkit-search-cancel-button {display:none;}
.izzy-search-field button {height:30px;min-width:30px;border:0;}
#izzy-nav-results {list-style:none;margin:.4rem 0 0;padding:0;}
#izzy-nav-results li {display:flex;align-items:center;gap:.65rem;padding:.5rem;border-radius:.5rem;cursor:pointer;}
#izzy-nav-results li:is(:hover,[aria-selected="true"]) {background:var(--top-soft);}
#izzy-nav-results i {color:var(--nav-result-ink,#0878b5);width:1.6rem;text-align:center;flex:none;}
#izzy-nav-results small {display:block;color:#4e647a;line-height:1.25;}
#izzy-nav-results mark {color:inherit;background:#cee9fc;padding:0;border-radius:.15rem;}
.izzy-topbar #notification-bell {position:relative;display:inline-flex;width:auto;height:38px;padding:0 .55rem;font-size:1.05rem;color:var(--top-ink);border-radius:.75rem;}
.izzy-topbar #notification-bell:hover {background:var(--top-soft);color:#075386;}
.izzy-topbar #notification-count {
    position:absolute;top:-4px;right:-4px;min-width:1.1rem;padding:.06rem .22rem;
    background:#c82940;color:#fff;border:1px solid #fff;border-radius:999px;font-size:.66rem;line-height:1.3;
}
.izzy-panel-heading {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.45rem;padding:.25rem .15rem .65rem;border-bottom:1px solid var(--top-border);}
.izzy-panel-link {background:none;border:0;color:#075386;font-size:.8rem;font-weight:700;cursor:pointer;}
.izzy-notification-card {display:flex;gap:.6rem;padding:.7rem .35rem;border-bottom:1px solid #e8eff5;}
.izzy-notification-card:not(.izzy-read).is-error {background:#fff4f5;}
.izzy-notification-card:not(.izzy-read).is-warning {background:#fff8e8;}
.izzy-notification-card:not(.izzy-read).is-info {background:#f0f8ff;}
.izzy-notification-card .izzy-icon {display:grid;place-items:center;width:2rem;height:2rem;flex:none;background:#e3f2fc;color:#0878b5;border-radius:.55rem;}
.izzy-notification-card .izzy-copy {min-width:0;color:#263f56;overflow-wrap:anywhere;}
.izzy-notification-card p {margin:.15rem 0;font-size:.86rem;color:#4e647a;}
.izzy-notification-card time {display:block;color:#52697c;font-size:.78rem;margin:.25rem 0;}
.izzy-notification-card a {color:#075386;font-size:.86rem;font-weight:650;}
.izzy-all-notifications {width:100%;margin-top:.55rem;padding:.4rem;border:1px solid #c8e0f0;border-radius:.55rem;background:#edf6fc;color:#075386;font-weight:650;cursor:pointer;}
#userDropdown {padding:0 .55rem 0 .28rem;border-radius:999px;width:clamp(8.4rem,11vw,11rem);justify-content:space-between;}
#userDropdown .izzy-user-name {overflow:hidden;text-overflow:ellipsis;max-width:8rem;}
.izzy-user-avatar,.izzy-user-panel-avatar {display:grid;place-items:center;flex:none;width:1.8rem;height:1.8rem;border-radius:50%;background:#143761;color:#fff;}
.izzy-user-panel-avatar {width:2.4rem;height:2.4rem;}
.izzy-user-panel-heading {display:flex;align-items:center;gap:.6rem;padding:.25rem .3rem .75rem;margin-bottom:.35rem;border-bottom:1px solid var(--top-border);}
.izzy-user-panel-heading .account-pill {margin-left:auto;}
.izzy-user-panel-identity {min-width:0;overflow-wrap:anywhere;}
.izzy-user-panel-identity small {display:block;color:#4e647a;}
.izzy-topbar .izzy-user-panel .dropdown-item {display:flex;align-items:center;gap:.55rem;min-height:40px;padding:.3rem .4rem;border-radius:.5rem;color:var(--top-ink);white-space:normal;font-size:.89rem;font-weight:600;}
.izzy-topbar .izzy-user-panel .dropdown-item:is(:hover,:focus) {background:var(--top-soft);color:#075386;}
.izzy-topbar .izzy-user-panel .btn-exit-system {color:#ae243c;}
.izzy-topbar .izzy-user-panel .btn-exit-system:hover {background:#fce9ed;color:#9e2135;}
.izzy-topbar .izzy-user-panel .izzy-account-icon {
    display:grid;place-items:center;flex:0 0 1.8rem;width:1.8rem;height:1.8rem;margin:0!important;
    border-radius:.48rem;background:#e4f2fb;color:#086999;
}
.izzy-topbar .izzy-user-panel :is(.izzy-account-icon-key,.izzy-account-icon-pin,.izzy-account-icon-billing) {background:#fdf0d8;color:#8b5300;}
.izzy-topbar .izzy-user-panel .izzy-account-icon-api {background:#e5f5eb;color:#13703e;}
.izzy-topbar .izzy-user-panel .izzy-account-icon-exit {background:#fde9ed;color:#ae243c;}
.izzy-notification-card.is-warning .izzy-icon {background:#fff0d4;color:#8b5300;}
.izzy-notification-card.is-error .izzy-icon {background:#fde5ea;color:#ae243c;}
@media (max-width:991.98px) {
    .izzy-topbar .izzy-quick-strip {display:none;}
    .izzy-topbar .izzy-top-more {margin-left:auto;}
    .izzy-topbar .izzy-top-more.is-empty {visibility:visible;}
    .izzy-more-desktop {display:none;}
    .izzy-more-mobile {display:inline;}
}
@media (max-width:767.98px) {
    .izzy-topbar #userDropdown :is(.izzy-user-name,.izzy-user-chevron) {display:none;}
    .izzy-topbar #userDropdown {padding:0;width:38px;justify-content:center;}
}
@media (max-width:390px) {
    .sb-nav-fixed .izzy-topbar {gap:4px;}
    .izzy-topbar .navbar-brand {width:clamp(66px,20vw,82px);}
    .izzy-top-control {min-width:34px;height:36px;padding:0 .28rem;}
    .izzy-topbar #userDropdown {width:34px;}
    .izzy-topbar #notification-bell {height:36px;padding:0 .28rem;}
}

@media (max-width:370px) { .izzy-more-mobile {display:none;} }

/* Centro de ayuda y registro de actividad */
.izzy-help-dialog .modal-content, .izzy-history-dialog .modal-content { border-radius: 16px; overflow: hidden; border: 0; }
.izzy-help-dialog .modal-header, .izzy-history-dialog .modal-header { background: #122c4d; color: white; }
.izzy-help-dialog .modal-title, .izzy-history-dialog .modal-title { font-weight: 800; font-size: 17px; }
.izzy-help-search { border: 1px solid #cad8e9; border-radius: 9px; padding: 11px 14px; width: 100%; margin-bottom: 14px; }
.izzy-help-topic { border: 1px solid #e4ebf4; border-radius: 10px; padding: 15px; margin-bottom: 10px; background: #fff; }
.izzy-help-topic strong { display: block; color: #153b70; margin-bottom: 6px; }
.izzy-help-topic p { margin: 0; color: #52657b; font-size: 13px; }
