/* /Components/Layout/Header/LanguageSelector.razor.rz.scp.css */
/* Container do seletor */
.language-selector[b-sdw0w6mh4b] {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

    /* Botão da bandeira */
    .language-selector .rz-button[b-sdw0w6mh4b] {
        padding: 4px 8px;
        background: transparent;
        border: none;
        cursor: pointer;
        border-radius: var(--rz-border-radius);
        transition: background-color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .language-selector .rz-button:hover[b-sdw0w6mh4b] {
            background-color: var(--rz-base-hover-background-color, rgba(0, 0, 0, 0.08));
        }

        .language-selector .rz-button:focus[b-sdw0w6mh4b] {
            outline: none;
            box-shadow: 0 0 0 2px var(--rz-primary-light, rgba(0, 123, 255, 0.25));
        }

    /* SVG da bandeira */
    .language-selector svg[b-sdw0w6mh4b] {
        display: block;
        width: 24px;
        height: 24px;
        border-radius: 2px;
    }

/* Popup de idiomas com animação de slide */
.language-popup[b-sdw0w6mh4b] {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: var(--rz-base-background-color, var(--rz-base-100));
    border-radius: var(--rz-border-radius, 6px);
    box-shadow: var(--rz-shadow-3, 0 4px 12px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.1));
    min-width: 160px;
    z-index: 1001;
    animation: slideIn-b-sdw0w6mh4b 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

/* Animação de slide */
@keyframes slideIn-b-sdw0w6mh4b {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Opções de idioma — mesmo hover do RadzenProfileMenuItem */
.language-option[b-sdw0w6mh4b] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    color: var(--rz-text-color);
    font-size: 14px;
    font-family: var(--rz-root-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

    .language-option:hover[b-sdw0w6mh4b] {
        background-color: var(--rz-profile-menu-item-hover-background-color, var(--rz-secondary));
        color: var(--rz-menu-item-hover-color, var(--rz-text-color));
    }

    .language-option:active[b-sdw0w6mh4b] {
        background-color: var(--rz-profile-menu-item-hover-background-color, var(--rz-secondary));
        filter: brightness(0.92);
    }

    .language-option svg[b-sdw0w6mh4b] {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .language-option span[b-sdw0w6mh4b] {
        white-space: nowrap;
    }

/* Animação de saída (opcional, se quiser fechar com animação) */
.language-popup.closing[b-sdw0w6mh4b] {
    animation: slideOut-b-sdw0w6mh4b 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideOut-b-sdw0w6mh4b {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .language-popup[b-sdw0w6mh4b] {
        right: -10px;
        min-width: 140px;
    }

    .language-option[b-sdw0w6mh4b] {
        padding: 8px 12px;
        font-size: 13px;
    }

        .language-option svg[b-sdw0w6mh4b] {
            width: 18px;
            height: 18px;
        }
}

.language-selector .rz-flat.rz-button[b-sdw0w6mh4b] {
    padding: 4px;
    min-width: 32px;
    height: 32px;
}

    .language-selector .rz-flat.rz-button:hover[b-sdw0w6mh4b] {
        background-color: var(--rz-base-hover-background-color, rgba(0, 0, 0, 0.08));
    }
/* /Components/Layout/Header/ProfileMenu.razor.rz.scp.css */
.rz-navigation-item-link .item-text[b-0wgydhm63c] {
    display: inline-flex !important;
    align-items: center !important;
}

.profile-menu-trigger[b-0wgydhm63c] {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background-color 0.15s ease-in-out;
}

.profile-menu-trigger:hover[b-0wgydhm63c] {
    background-color: var(--rz-base-hover, rgba(0,0,0,0.05));
}

.profile-menu-item[b-0wgydhm63c] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 4px;
    border-radius: 6px;
    transition: background-color 0.15s ease-in-out;
    cursor: pointer;
}

/* /Components/Layout/ScrollButtons.razor.rz.scp.css */
.scrolls-button[b-265fx4urp7] {
    position: fixed;
    right: 24px;
    bottom: 32px; /* posição padrão — "sozinho embaixo" */
    z-index: 1000;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, bottom 0.25s ease;
}

.scrolls-button--top.scrolls-button--stacked[b-265fx4urp7] {
    bottom: 88px; /* só sobe quando o botão de descer também está visível */
}

.scrolls-button--visible[b-265fx4urp7] {
    opacity: 0.5;
    transform: translateY(0);
    pointer-events: auto;
}

.scrolls-button--visible:hover[b-265fx4urp7] {
    opacity: 1;
}

.scrolls-button__button[b-265fx4urp7] {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: opacity 0.2s ease;
}
/* /Components/Widgets/WidgetPanelGrid.razor.rz.scp.css */
/* WidgetPanelGrid.razor.css
   CSS isolado pelo Blazor
*/

/* ============================================================
   ROOT
   ============================================================ */

.wpg-root[b-blh4gm7dis] {
    position: relative;
    width: 100%;
    min-height: 100dvh;
}

/* ============================================================
   GRID PRINCIPAL
   ============================================================ */

.wpg-grid[b-blh4gm7dis] {
    /*
     * Valores padrão.
     *
     * O componente pode sobrescrever estas variáveis
     * através do style inline:
     *
     * --wpg-grid-columns
     * --wpg-row-height
     * --wpg-row-gap
     * --wpg-column-gap
     */
    --wpg-grid-columns: 36;
    --wpg-row-height: 48px;
    --wpg-row-gap: 12px;
    --wpg-column-gap: 12px;
    /*
     * Aparência da grade visual.
     */
    --wpg-cell-background: rgba(80, 120, 220, 0.08);
    --wpg-cell-border: rgba(80, 120, 220, 0.20);
    --wpg-cell-radius: 5px;
    --wpg-toolbar-space: 44px;
    position: relative;
    display: grid;
    width: 100%;
    align-items: start;
    grid-template-columns: repeat(var(--wpg-grid-columns), minmax(0, 1fr));
    grid-auto-rows: var(--wpg-row-height);
    column-gap: var(--wpg-column-gap);
    row-gap: var(--wpg-row-gap);
    padding-top: var(--wpg-toolbar-space);
    /*
     * Cria um contexto de empilhamento para que a camada
     * visual fique atrás dos widgets.
     */
    isolation: isolate;
    min-height: 100dvh;
}


/* ============================================================
   CAMADA VISUAL DA GRADE
   ============================================================ */

/*
 * A camada é criada durante EditMode/drag/resize.
 *
 * Ela não utiliza position absolute para posicionar widgets.
 * É somente uma camada visual auxiliar.
 */
.wpg-grid__cell-overlay[b-blh4gm7dis] {
    position: absolute;
    inset: 2.75rem 0 0 0;
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(var(--wpg-grid-columns), minmax(0, 1fr));
    grid-template-rows: repeat(var(--wpg-visual-rows), var(--wpg-row-height));
    column-gap: var(--wpg-column-gap);
    row-gap: var(--wpg-row-gap);
    pointer-events: none;
    overflow: hidden;
}

/*
 * Cada célula é ligeiramente menor que a área lógica da célula,
 * pois existe uma separação criada por column-gap/row-gap.
 */
.wpg-grid__cell[b-blh4gm7dis] {
    display: block;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    background: var(--wpg-cell-background);
    border: 1px solid var(--wpg-cell-border);
    border-radius: var(--wpg-cell-radius);
}


/* ============================================================
   WIDGET
   ============================================================ */

.wpg-item[b-blh4gm7dis] {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: var(--rz-base-background-color, #fff);
    border: 1px solid var(--rz-border-color, #e5e5e5);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.15s ease, opacity 0.15s ease;
}

.wpg-item--interacting[b-blh4gm7dis] {
    position: relative;
    z-index: 10;
    opacity: 0.92;
    box-shadow: 0 0 0 2px var(--rz-primary, #2196f3), 0 10px 30px rgba(0, 0, 0, 0.20);
}


/* ============================================================
   HEADER / DRAG HANDLE
   ============================================================ */

.wpg-item__header[b-blh4gm7dis] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--rz-border-color, #eee);
    cursor: default;
    user-select: none;
}

    /*
 * Quando o header possui tabindex="0", o C# confirmou que
 * o drag está habilitado para este widget.
 */
    .wpg-item__header[tabindex="0"][b-blh4gm7dis] {
        cursor: grab;
    }

        .wpg-item__header[tabindex="0"]:active[b-blh4gm7dis] {
            cursor: grabbing;
        }

    .wpg-item__header:focus-visible[b-blh4gm7dis] {
        outline: 2px solid var(--rz-primary, #2196f3);
        outline-offset: -2px;
    }

.wpg-item__header-content[b-blh4gm7dis] {
    flex: 1 1 auto;
    min-width: 0;
}

.wpg-item__drag-affordance[b-blh4gm7dis] {
    display: flex;
    flex: 0 0 auto;
    opacity: 0.4;
}


/* ============================================================
   CONTEÚDO DO WIDGET
   ============================================================ */

.wpg-item__body[b-blh4gm7dis] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    overflow: auto;
    padding: 0.75rem;
}

    /*
 * Permite que RadzenCard, RadzenDataGrid ou componentes customizados
 * ocupem o espaço criado pelo RowSpan.
 */
    .wpg-item__body > *[b-blh4gm7dis] {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 0;
    }


/* ============================================================
   RESIZE HANDLES
   ============================================================ */

.wpg-item__resize-handle[b-blh4gm7dis] {
    position: absolute;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.1s ease;
}

/*
 * Handle lateral direito
 */
.wpg-item__resize-handle--right[b-blh4gm7dis] {
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
}

/*
 * Handle inferior
 */
.wpg-item__resize-handle--bottom[b-blh4gm7dis] {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    cursor: ns-resize;
}

/*
 * Handle do canto inferior direito
 */
.wpg-item__resize-handle--bottom-right[b-blh4gm7dis] {
    right: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    cursor: nwse-resize;
    border-bottom-right-radius: 4px;
}

    .wpg-item__resize-handle--bottom-right:focus-visible[b-blh4gm7dis] {
        opacity: 1;
        outline: 2px solid var(--rz-primary, #2196f3);
    }

.wpg-settings-panel__subtitle[b-blh4gm7dis] {
    margin: 0.75rem 0 0.35rem;
    color: var(--rz-text-color, #444);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/*
 * Estes seletores são úteis quando CurrentColumns altera
 * o atributo data-columns do elemento .wpg-grid.
 */

.wpg-grid[data-columns="36"][b-blh4gm7dis] {
    --wpg-grid-columns: 36;
}

.wpg-grid[data-columns="18"][b-blh4gm7dis] {
    --wpg-grid-columns: 18;
}

.wpg-grid[data-columns="6"][b-blh4gm7dis] {
    --wpg-grid-columns: 6;
}

.wpg-grid[data-columns="1"][b-blh4gm7dis] {
    --wpg-grid-columns: 1;
}


/*
 * Tablets
 */
@media (max-width: 1200px) {
    .wpg-item__body[b-blh4gm7dis] {
        padding: 0.5rem;
    }
}


/*
 * Mobile
 */
@media (max-width: 640px) {
    .wpg-grid[b-blh4gm7dis] {
        padding-top: 3rem;
    }
}
/* /Components/Widgets/WidgetPanelGridItem.razor.rz.scp.css */
/* WidgetPanelGridItem.razor.css — CSS isolado do item (escopo automático pelo Blazor).
   IMPORTANTE: precisa ficar em arquivo separado do WidgetPanelGrid.razor.css,
   porque CSS isolado no Blazor só se aplica ao HTML renderizado pelo próprio
   componente .razor correspondente (baseado no atributo de escopo b-xxxxxxx).
   Regras de .wpg-item* nunca casariam se estivessem no arquivo do grid. */

.wpg-item[b-wlolduphtr] {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--rz-base-background-color, #fff);
    border: 1px solid var(--rz-border-color, #e5e5e5);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
    height: 100%;
}

.wpg-item--interacting[b-wlolduphtr] {
    box-shadow: 0 0 0 2px var(--rz-primary, #2196f3), 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 0.92;
}

.wpg-item__header[b-wlolduphtr] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--rz-border-color, #eee);
    cursor: default;
    user-select: none;
    flex: 0 0 auto;
}

.wpg-item__header:focus-visible[b-wlolduphtr] {
    outline: 2px solid var(--rz-primary, #2196f3);
    outline-offset: -2px;
}

.wpg-item__header-content[b-wlolduphtr] {
    flex: 1 1 auto;
    min-width: 0;
}

.wpg-item__drag-affordance[b-wlolduphtr] {
    flex: 0 0 auto;
    opacity: 0.4;
    display: flex;
}

.wpg-item__body[b-wlolduphtr] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 0.75rem;
}

/* ---------- Resize handles ----------
   Visibilidade controlada inteiramente pelo C# (CanResize/ShowChrome no code-behind),
   não por atributos data-* no ancestral. Quando o @if do .razor não renderiza o handle,
   ele simplesmente não existe no DOM; quando renderiza, a regra abaixo o exibe. */

.wpg-item__resize-handle[b-wlolduphtr] {
    position: absolute;
    z-index: 5;
    opacity: 1;
}

.wpg-item__resize-handle--right[b-wlolduphtr] {
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
}

.wpg-item__resize-handle--bottom[b-wlolduphtr] {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    cursor: ns-resize;
}

.wpg-item__resize-handle--bottom-right[b-wlolduphtr] {
    right: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    cursor: nwse-resize;
    border-bottom-right-radius: 4px;
}

.wpg-item__resize-handle--bottom-right:focus-visible[b-wlolduphtr] {
    outline: 2px solid var(--rz-primary, #2196f3);
}

/* Cursor de "grab" no header só quando o handle de drag realmente estiver ativo
   (tabindex="0" só é definido pelo C# quando CanDrag é verdadeiro). */
.wpg-item__header[tabindex="0"][b-wlolduphtr] {
    cursor: grab;
}

.wpg-item__header[tabindex="0"]:active[b-wlolduphtr] {
    cursor: grabbing;
}

@media (max-width: 1200px) {
    .wpg-item__body[b-wlolduphtr] {
        padding: 0.5rem;
    }
}
/* /Components/Widgets/WidgetPanelGridRestoreDialog.razor.rz.scp.css */
.wpg-confirm-actions[b-aj6lq9xfzu] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.wpg-confirm-box[b-aj6lq9xfzu] {
    max-width: 360px;
    padding: 1.25rem 1.5rem;
    background: var(--rz-base-background-color, #fff);
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.wpg-confirm-overlay[b-aj6lq9xfzu] {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}
/* /Components/Widgets/WidgetPanelGridSettings.razor.rz.scp.css */
.wpg-toolbar[b-jalixg7yei] {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
}

.wpg-settings-panel[b-jalixg7yei] {
    position: absolute;
    top: 2.5rem;
    right: 0;
    z-index: 30;
    min-width: 260px;
    padding: 0.75rem 1rem 1rem;
    background: var(--rz-base-background-color, #fff);
    border: 1px solid var(--rz-border-color, #e0e0e0);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.wpg-settings-panel__title[b-jalixg7yei] {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.wpg-settings-panel__row[b-jalixg7yei] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
}

.wpg-settings-panel__divider[b-jalixg7yei] {
    height: 1px;
    margin: 0.5rem 0;
    background: var(--rz-border-color, #e0e0e0);
}

.wpg-settings-panel__widget-row[b-jalixg7yei] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.25rem;
    padding: 0.25rem 0;
}

.wpg-settings-panel__widget-row > span[b-jalixg7yei] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Layout/KSidebar.razor.rz.scp.css */
input[type="search"][b-p6rj3l5mxd]::-webkit-search-cancel-button {
    -webkit-appearance: auto;
    appearance: auto;
}
/* /Pages/Usuario/UsuarioPerfilNivelAcesso/Components/Grupo.razor.rz.scp.css */
.grupo-header[b-wdmzdhbdlr] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    padding-right: 0.5rem;
}

.grupo-header span[b-wdmzdhbdlr] {
    font-weight: 600;
}
/* /Pages/Usuario/UsuarioPerfilNivelAcesso/Components/NivelCard.razor.rz.scp.css */
.nivel-card[b-j8o6t5vucx] {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rz-base-300);
    border-radius: var(--rz-border-radius);
    padding: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.nivel-card:hover[b-j8o6t5vucx] {
    border-color: var(--rz-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.nivel-card__header[b-j8o6t5vucx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.6rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--rz-base-300);
    transition: border-color 0.2s ease;
}

.nivel-card:hover .nivel-card__header[b-j8o6t5vucx] {
    border-color: var(--rz-primary-light, var(--rz-primary));
}

.nivel-card__body[b-j8o6t5vucx] {
    flex: 1;
}
