/* _content/AdminSR/Components/Layout/AppModal.razor.rz.scp.css */
.app-modal-backdrop[b-7x9yxefqwf] {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0007;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    outline: none;
    overflow: auto;
    overscroll-behavior: contain;
}

/* container principal OK sem deep */
.app-modal-card[b-7x9yxefqwf] {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(42, 25, 92, .25);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[b-7x9yxefqwf] .app-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #eeeaf8;
}

[b-7x9yxefqwf] .app-modal-header h5 {
    margin: 0;
    color: #2c1768;
    font-weight: 700;
}

[b-7x9yxefqwf] .app-modal-header small {
    color: #6b6480;
}

[b-7x9yxefqwf] .app-modal-body {
    padding: 20px 22px;
    overflow: auto;
    overscroll-behavior: contain;
}

[b-7x9yxefqwf] .app-modal-footer {
    padding: 14px 22px;
    border-top: 1px solid #eeeaf8;
}

[b-7x9yxefqwf] .json-viewer {
    background: #f7f7fb;
    border: 1px solid #e5e3f0;
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 65vh;
    overflow: auto;
}

[b-7x9yxefqwf] .app-modal-sm {
    width: min(420px, 92vw);
}

[b-7x9yxefqwf] .app-modal-md {
    width: min(640px, 92vw);
}

[b-7x9yxefqwf] .app-modal-lg {
    width: min(1100px, 95vw);
}

[b-7x9yxefqwf] .app-modal-xl {
    width: min(1400px, 95vw);
}

[b-7x9yxefqwf] .app-modal-close {
    border: 0;
    background: #f1ecff;
    color: #3a1c88;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
}
/* _content/AdminSR/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-t7lpkjvfle] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-t7lpkjvfle] {
    flex: 1;
}

.top-row[b-t7lpkjvfle] {
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--gray-300);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row[b-t7lpkjvfle]  a,
.top-row[b-t7lpkjvfle]  .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row[b-t7lpkjvfle]  a:hover,
.top-row[b-t7lpkjvfle]  .btn-link:hover {
    text-decoration: underline;
}

.top-row[b-t7lpkjvfle]  a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
    .top-row[b-t7lpkjvfle] {
        justify-content: space-between;
    }

    .top-row[b-t7lpkjvfle]  a,
    .top-row[b-t7lpkjvfle]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-t7lpkjvfle] {
        flex-direction: row;
    }

    .sidebar[b-t7lpkjvfle] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-t7lpkjvfle] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-t7lpkjvfle]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-t7lpkjvfle],
    article[b-t7lpkjvfle] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-t7lpkjvfle] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-t7lpkjvfle] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/******************************************/

.app-shell[b-t7lpkjvfle] {
    background: var(--gradient-bg-soft-50);
    min-height: 100vh;
}

/*.app-header {
  height: 56px; background: #08151D; color: #dfe9ec;
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 12px; position: sticky; top: 0; z-index: 1000;
}*/
.app-header[b-t7lpkjvfle] {
    height: 56px;
    background: var(--main-color);
    color: var(--main-color-i);
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-toggle.only-mobile[b-t7lpkjvfle] {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 22px;
}

/* Grid de 2 colunas: sidebar (full-height, à esquerda) + coluna de
   conteúdo (header + main), igual à estrutura do trasty.io.
   A largura da 1ª coluna some sincronizada via classe .app-grid--collapsed
   (aplicada por wwwroot/js/sidebar.js em #app-grid, não via :has() —
   CSS isolation do Blazor faria :has() cruzar escopos de forma frágil). */
.app-grid[b-t7lpkjvfle] {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns 0.18s ease;
}

.app-grid.app-grid--collapsed[b-t7lpkjvfle] {
    grid-template-columns: 70px minmax(0, 1fr);
}

.app-main-col[b-t7lpkjvfle] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

.app-content[b-t7lpkjvfle] {
    background-color: var(--gray-100);
    padding: var(--spacing-md) !important;
    flex: 1;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .menu-toggle.only-mobile[b-t7lpkjvfle] {
        display: inline-flex;
    }

    .app-grid[b-t7lpkjvfle] {
        grid-template-columns: 1fr;
    }

    .app-content[b-t7lpkjvfle] {
        position: relative;
        z-index: 1;
    }
}



/* header sem borda/sombra/margem no rodap� */
.app-header[b-t7lpkjvfle],
.app-header>*[b-t7lpkjvfle],
.app-header .navbar[b-t7lpkjvfle],
.app-header .navbar[b-t7lpkjvfle]::after {
    border-bottom: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

/* garante que nada abaixo do header crie gap visual */
.app-shell[b-t7lpkjvfle],
.app-body[b-t7lpkjvfle],
.app-content[b-t7lpkjvfle] {
    margin-top: 0;
    padding-top: 0;
}
/* _content/AdminSR/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-acwpfn65k0] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-acwpfn65k0] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-acwpfn65k0] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-acwpfn65k0] {
    font-size: 1.1rem;
}

.bi[b-acwpfn65k0] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-acwpfn65k0] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-acwpfn65k0] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-acwpfn65k0] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-acwpfn65k0] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-acwpfn65k0] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-acwpfn65k0] {
        padding-bottom: 1rem;
    }

    .nav-item[b-acwpfn65k0]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-acwpfn65k0]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-acwpfn65k0]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-acwpfn65k0] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-acwpfn65k0] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-acwpfn65k0] {
        display: none;
    }

    .nav-scrollable[b-acwpfn65k0] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* _content/AdminSR/Components/Layout/Ui/PageActionFooter.razor.rz.scp.css */
.ui-page-action-footer[b-39gkye807q] {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e4e8f0;
}

.ui-page-action-footer__content[b-39gkye807q] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}
/* _content/AdminSR/Components/Layout/Ui/RuleEditorPage.razor.rz.scp.css */
.rule-editor-page[b-4pr60jdj9c] {
    padding: 1.25rem;
}

.rule-editor-page__container[b-4pr60jdj9c] {
    margin: 0 auto;
    max-width: 980px;
}

.rule-editor-page__title[b-4pr60jdj9c] {
    font-size: clamp(1.85rem, 3.7vw, 2.7rem);
    line-height: 1.08;
    font-weight: 700;
    color: #071a3d;
    margin: 0 0 1.5rem;
}

.rule-editor-card[b-4pr60jdj9c] {
    border: 1px solid #d7deea;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    background: #fff;
}

.rule-editor-card__title[b-4pr60jdj9c] {
    font-size: 2rem;
    color: #071a3d;
    margin: 0;
}

.rule-editor-card__description[b-4pr60jdj9c] {
    margin: 0.85rem 0 0;
    color: #526b8f;
    font-size: 0.97rem;
    line-height: 1.45;
    max-width: 880px;
}

.rule-editor-card__switch-row[b-4pr60jdj9c] {
    margin-top: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rule-editor-card__switch-title[b-4pr60jdj9c] {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 600;
    color: #071a3d;
    line-height: 1.12;
}

.rule-editor-card__switch-subtitle[b-4pr60jdj9c] {
    margin: 0.35rem 0 0;
    color: #657894;
    font-size: 0.95rem;
}

.rule-editor-card__switch-row :deep(.ui-toggle-switch)[b-4pr60jdj9c] {
    margin-right: 1rem;
}

.rule-editor-card__body[b-4pr60jdj9c] {
    margin-top: 1.15rem;
}

@media (max-width: 992px) {
    .rule-editor-page[b-4pr60jdj9c] {
        padding: 1rem;
    }

    .rule-editor-card[b-4pr60jdj9c] {
        padding: 1.25rem;
    }

    .rule-editor-card__title[b-4pr60jdj9c] {
        font-size: 1.5rem;
    }

    .rule-editor-card__description[b-4pr60jdj9c] {
        font-size: 0.95rem;
    }

    .rule-editor-card__switch-row[b-4pr60jdj9c] {
        align-items: flex-start;
        flex-direction: column;
    }

    .rule-editor-card__switch-title[b-4pr60jdj9c] {
        font-size: 1.2rem;
    }

    .rule-editor-card__switch-subtitle[b-4pr60jdj9c] {
        font-size: 0.9rem;
    }
}
/* _content/AdminSR/Components/Layout/Ui/ToggleSwitch.razor.rz.scp.css */
.ui-toggle-switch[b-x0rifvyaf5] {
    width: 3rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 0;
    background: #cfd6e4;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem;
    transition: background-color 0.2s ease;
}

.ui-toggle-switch.is-on[b-x0rifvyaf5] {
    background: linear-gradient(135deg, #6f3bff, #7f5cff);
}

.ui-toggle-switch__thumb[b-x0rifvyaf5] {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.ui-toggle-switch.is-on .ui-toggle-switch__thumb[b-x0rifvyaf5] {
    transform: translateX(1.2rem);
}

.ui-toggle-switch:focus-visible[b-x0rifvyaf5] {
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 59, 255, 0.25);
}

.ui-toggle-switch:disabled[b-x0rifvyaf5] {
    opacity: 0.6;
    cursor: not-allowed;
}
/* _content/AdminSR/Components/Layout/Ui/UiBreadcrumb.razor.rz.scp.css */
.ui-breadcrumb[b-l8466mu7r3] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.ui-breadcrumb__separator[b-l8466mu7r3] {
    color: #8a93a6;
    display: inline-flex;
    align-items: center;
}

.ui-breadcrumb__link[b-l8466mu7r3] {
    color: #5f4bf1;
    text-decoration: none;
    font-weight: 500;
}

.ui-breadcrumb__link:hover[b-l8466mu7r3] {
    text-decoration: underline;
}

.ui-breadcrumb__current[b-l8466mu7r3] {
    color: #0e1e40;
    font-weight: 500;
}
/* _content/AdminSR/Components/Layout/Ui/UiPairRowsEditor.razor.rz.scp.css */
.ui-pair-rows-editor[b-7r2mzixluq] {
    display: grid;
    gap: 0.85rem;
}

.ui-pair-rows-editor__row[b-7r2mzixluq] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.875rem;
    align-items: end;
}

.ui-pair-rows-editor__field[b-7r2mzixluq] {
    min-width: 0;
}

.ui-pair-rows-editor__label[b-7r2mzixluq] {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #4b5f84;
    font-weight: 600;
}

.ui-pair-rows-editor__remove[b-7r2mzixluq] {
    margin-bottom: 0.15rem;
}

.ui-pair-rows-editor__add[b-7r2mzixluq] {
    margin-top: 0.4rem;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 992px) {
    .ui-pair-rows-editor__row[b-7r2mzixluq] {
        grid-template-columns: 1fr;
    }

    .ui-pair-rows-editor__remove[b-7r2mzixluq] {
        justify-self: end;
    }
}
/* _content/AdminSR/Components/Navigation/Sidebar.razor.rz.scp.css */
.sidebar[b-e94hhbxd30] {
    width: 250px;
    color: var(--main-color);
    background: var(--white);
    border-right: 1px solid var(--gray-300);
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    transition: width 0.18s ease;
    z-index: 20;
}

/* Colapsada e fixa: só ícones, largura reduzida, some com texto/submenu.
   Sem overflow:hidden aqui — cortaria o flyout (position:absolute) que
   precisa vazar para a direita da sidebar. */
.sidebar.sidebar--collapsed[b-e94hhbxd30] {
    width: 70px;
    padding: 0 8px var(--spacing-sm);
}

.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-link span,
.sidebar.sidebar--collapsed[b-e94hhbxd30]  .chevron {
    display: none !important;
}

/* Sem texto/chevron, centraliza o ícone na caixa (em vez de manter o
   padding-left de 16px pensado para o layout com texto, que empurra o
   ícone para a direita e destoa dos ícones sem fundo/caixa ativa). */
.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-item--root > .sidebar-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

/* Dentro do flyout, o texto dos itens (filhos) precisa continuar visível —
   só o botão raiz (fora do flyout) deve ficar só com ícone. */
.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-flyout .sidebar-link span,
.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-flyout .chevron {
    display: inline !important;
}

/* Submenus de nível > 0 continuam sumindo quando colapsada (não fazem
   sentido sem o texto do pai visível). Os de nível 0 viram flyout. */
.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-sub-wrap:not(.sidebar-flyout) {
    display: none !important;
}

.sidebar-brand[b-e94hhbxd30] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    box-sizing: border-box;
    margin: 0 calc(var(--spacing-sm) * -1);
    padding: 0 var(--spacing-sm);
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-brand-logo[b-e94hhbxd30] {
    display: block;
    max-width: 150px;
    max-height: 44px;
    width: auto;
    height: auto;
}

/* Expandida: mostra o logo completo (símbolo + wordmark), esconde só o símbolo */
.sidebar-brand-logo--mark[b-e94hhbxd30] {
    display: none;
}

/* Colapsada: mostra só o símbolo (abelha), esconde o logo completo */
.sidebar.sidebar--collapsed .sidebar-brand-logo--full[b-e94hhbxd30] {
    display: none;
}

.sidebar.sidebar--collapsed .sidebar-brand-logo--mark[b-e94hhbxd30] {
    display: block;
    max-width: 36px;
}

.sidebar-nav[b-e94hhbxd30] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Colapsada: remove qualquer overflow do container de scroll — se um eixo
   fica auto/hidden, o navegador força clipping no outro eixo mesmo que
   declarado "visible", cortando o flyout (position:absolute) mesmo assim. */
.sidebar.sidebar--collapsed .sidebar-nav[b-e94hhbxd30] {
    overflow: visible;
}

.sidebar-nav-inner[b-e94hhbxd30] {
    padding: 16px 8px 16px 8px;
}

/* 🔽 tudo que vem do componente filho precisa de ::deep */
.sidebar[b-e94hhbxd30]  .sidebar-root,
.sidebar[b-e94hhbxd30]  .sidebar-sub {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar[b-e94hhbxd30]  .sidebar-item {
    margin: 1px 0;
}

/* link / botão */
.sidebar[b-e94hhbxd30]  .sidebar-link {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: var(--main-color);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 15px;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar[b-e94hhbxd30]  .sidebar-link span {
    font-weight: 600;
}
.sidebar[b-e94hhbxd30]  .sidebar-link:hover {
    background: var(--primary-100);
    color: var(--primary-600);
    font-weight: 600;
}

.sidebar[b-e94hhbxd30]  a.sidebar-link.active {
    background: var(--primary-600);
    color: var(--white);
    font-weight: 600;
}

.sidebar[b-e94hhbxd30]  a.sidebar-link.active .icon {
    color: var(--white);
}

.sidebar[b-e94hhbxd30]  .icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--main-color);
}

.sidebar[b-e94hhbxd30]  .chevron {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.sidebar[b-e94hhbxd30]  .chevron.open {
    transform: rotate(90deg);
}

/* submenus: técnica grid-template-rows (0fr → 1fr) — anima suavemente
   para "altura automática" sem precisar calcular pixels no C#, e nunca
   corta conteúdo mesmo quando o texto quebra em várias linhas. */
.sidebar[b-e94hhbxd30]  .sidebar-sub-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.2s ease;
    background: transparent;
}

.sidebar[b-e94hhbxd30]  .sidebar-sub-wrap.open {
    grid-template-rows: 1fr;
}

.sidebar[b-e94hhbxd30]  .sidebar-sub-wrap > .sidebar-sub {
    overflow: hidden;
    min-height: 0;
}

/* título do flyout: só existe/aparece quando a sidebar está colapsada */
.sidebar[b-e94hhbxd30]  .sidebar-flyout-title {
    display: none;
}

/* indentação hierárquica — sem ícone nos subitens, então sem o espaço
   reservado a ele (20px de largura + 8px de gap do .sidebar-link raiz) */
.sidebar[b-e94hhbxd30]  .sidebar-sub .sidebar-link {
    padding-left: 16px;
    font-size: 13px;
}

.sidebar[b-e94hhbxd30]  .sidebar-sub .sidebar-link span {
    font-weight: 300;
}

.sidebar[b-e94hhbxd30]  .sidebar-sub .sidebar-sub .sidebar-link {
    padding-left: 22px;
    font-size: 12.5px;
}

/* gira o chevron quando o LI está .open */
.sidebar[b-e94hhbxd30]  .sidebar-item.open > .sidebar-link .chevron {
    transform: rotate(90deg);
}

/* Flyout: quando a sidebar está colapsada, o submenu de nível raiz vira
   um popover fixo à direita do ícone, em vez de expandir abaixo dele.
   Há DOIS paddings de 8px empilhados entre o ícone e a borda real da
   sidebar: o do container .sidebar--collapsed E o do .sidebar-nav-inner
   (padding: 8px 8px 16px 0) — total de 16px, não 8px. Estica o <li> raiz
   até a borda real cancelando os dois. */
.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-item--root {
    position: relative;
    margin-right: -16px;
    padding-right: 16px;
}

.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-flyout {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    box-shadow: var(--shadow-strong);
    padding: 6px;
    z-index: 10;
}

/* Ponte invisível cobrindo o gap entre o ícone e o flyout, para o mouse
   não "sair" do hover do item ao atravessar esse espaço vazio. */
.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-flyout::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 8px;
    height: 100%;
}

.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-flyout .sidebar-sub {
    overflow: visible;
}

.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-item--root.open > .sidebar-flyout,
.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-item--root:hover > .sidebar-flyout {
    display: block;
}

.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-flyout-title {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
}

.sidebar.sidebar--collapsed[b-e94hhbxd30]  .sidebar-flyout .sidebar-link {
    padding-left: 10px;
    font-size: 14px;
}

/* scrollbar (fina, discreta, com respiro do conteúdo) */
.sidebar-nav[b-e94hhbxd30] {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.sidebar-nav[b-e94hhbxd30]::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav[b-e94hhbxd30]::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 4px;
}

.sidebar-nav[b-e94hhbxd30]::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 999px;
}

.sidebar-nav[b-e94hhbxd30]::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Botão de collapse: alinhado com os ícones dos itens do menu
   (8px do .sidebar-nav-inner + 16px do padding do .sidebar-link = 24px). */
.sidebar .collapse-btn[b-e94hhbxd30] {
    flex-shrink: 0;
    margin: 8px 0 0 24px;
}

.sidebar.sidebar--collapsed .collapse-btn[b-e94hhbxd30] {
    margin-left: 8px;
}
/* _content/AdminSR/Components/Pages/TenantPages/Inventory/PurchaseOrder/PurchaseOrderItemsDrawer.razor.rz.scp.css */
.po-new-item-row[b-3cg8940ck1] {
    background-color: #f5f9ff; /* azul bem clarinho */
}
.badge-new[b-3cg8940ck1] {
    background-color: #e7f3ff;
    color: #0b5ed7;
    font-weight: 500;
    font-size: 0.7rem;
    border-radius: 999px;
}
/* _content/AdminSR/Components/Pages/TenantPages/Inventory/PurchaseOrder/PurchaseOrderItemsDrawerV2.razor.rz.scp.css */
.po-new-item-row[b-kcndy622jf] {
    background-color: #f5f9ff; /* azul bem clarinho */
}

.badge-new[b-kcndy622jf] {
    background-color: #e7f3ff;
    color: #0b5ed7;
    font-weight: 500;
    font-size: 0.7rem;
    border-radius: 999px;
}
