/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-61uknf9xgc],
.components-reconnect-repeated-attempt-visible[b-61uknf9xgc],
.components-reconnect-failed-visible[b-61uknf9xgc],
.components-pause-visible[b-61uknf9xgc],
.components-resume-failed-visible[b-61uknf9xgc],
.components-rejoining-animation[b-61uknf9xgc] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-61uknf9xgc],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-61uknf9xgc],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-61uknf9xgc],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-61uknf9xgc],
#components-reconnect-modal.components-reconnect-retrying[b-61uknf9xgc],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-61uknf9xgc],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-61uknf9xgc],
#components-reconnect-modal.components-reconnect-failed[b-61uknf9xgc],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-61uknf9xgc] {
    display: block;
}


#components-reconnect-modal[b-61uknf9xgc] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-61uknf9xgc 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-61uknf9xgc 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-61uknf9xgc 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-61uknf9xgc]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-61uknf9xgc 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-61uknf9xgc {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-61uknf9xgc {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-61uknf9xgc {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-61uknf9xgc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-61uknf9xgc] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-61uknf9xgc] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-61uknf9xgc] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-61uknf9xgc] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-61uknf9xgc] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-61uknf9xgc] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-61uknf9xgc 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-61uknf9xgc] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-61uknf9xgc {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Shared/CampoPesquisa.razor.rz.scp.css */
/* Pesquisa de listagem: ao contrário da barra do topo (removida), esta mantém-se
   no telemóvel — é aí que uma listagem longa mais precisa dela. */
.campo-pesquisa[b-1u4pwcfzwt] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-line);
    border-radius: 99px;
    padding: 8px 12px;
    color: var(--color-muted);
    /* Ocupa a linha no telemóvel; a partir de tablet fica com largura própria e
       ainda encolhe se a barra de ações estiver cheia. */
    flex: 1 1 100%;
    min-width: 0;
}

@media (min-width: 641px) {
    .campo-pesquisa[b-1u4pwcfzwt] { flex: 0 1 300px; }
}

.campo-pesquisa:focus-within[b-1u4pwcfzwt] {
    border-color: var(--color-brand);
    background: var(--color-surface);
}

.lupa[b-1u4pwcfzwt] { font-size: 15px; line-height: 1; flex-shrink: 0; }

input[b-1u4pwcfzwt] {
    border: 0;
    background: transparent;
    outline: 0;
    width: 100%;
    min-width: 0;
    font-family: inherit;
    font-size: 13px;
    color: var(--color-ink);
}

/* O × é o nosso, com alvo de toque decente — o nativo do WebKit sai. */
input[b-1u4pwcfzwt]::-webkit-search-cancel-button,
input[b-1u4pwcfzwt]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.limpar[b-1u4pwcfzwt] {
    border: 0;
    background: transparent;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1;
    padding: 0;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.limpar:hover[b-1u4pwcfzwt] { background: var(--color-line); color: var(--color-ink); }

/* Abaixo de 16px o iOS dá zoom ao focar o campo e desalinha a página toda. */
@media (max-width: 640px) {
    input[b-1u4pwcfzwt] { font-size: 16px; }
}
/* /Components/Shared/DadosImportExport.razor.rz.scp.css */
/* Grelha de confirmação da importação: uma linha por linha do ficheiro, sem
   quebras de texto, com cabeçalho e primeiras colunas fixos ao deslizar. */

.modal.grelha[b-6f83ila5et] {
    max-width: min(1180px, 96vw);
}

.grelha-wrap[b-6f83ila5et] {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    overflow: auto;
    max-height: 46vh;
    background: var(--color-surface);
}

table.grelha-tabela[b-6f83ila5et] {
    border-collapse: separate;
    border-spacing: 0;
    /* Largura pelo conteúdo: as colunas não se espremem, aparece scroll horizontal. */
    width: max-content;
    min-width: 100%;
    font-size: 12.5px;
    color: var(--color-ink);
}

table.grelha-tabela th[b-6f83ila5et],
table.grelha-tabela td[b-6f83ila5et] {
    padding: 7px 10px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--color-line);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

table.grelha-tabela th[b-6f83ila5et] {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--color-surface-2);
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

table.grelha-tabela tbody tr:nth-child(2n) td[b-6f83ila5et] {
    background: color-mix(in srgb, var(--color-surface-2) 60%, transparent);
}

table.grelha-tabela tbody tr:hover td[b-6f83ila5et] {
    background: var(--color-surface-2);
}

table.grelha-tabela tbody tr:last-child td[b-6f83ila5et] {
    border-bottom: 0;
}

/* Nº da linha e ação acompanham o deslize horizontal. */
.col-num[b-6f83ila5et], .col-acao[b-6f83ila5et] {
    position: sticky;
    z-index: 1;
    background: var(--color-surface);
}

.col-num[b-6f83ila5et] { left: 0; width: 46px; text-align: right; }
.col-acao[b-6f83ila5et] { left: 46px; width: 104px; }

th.col-num[b-6f83ila5et], th.col-acao[b-6f83ila5et] { z-index: 3; background: var(--color-surface-2); }

/* Com a linha listada/hover, as colunas fixas acompanham o fundo. */
table.grelha-tabela tbody tr:nth-child(2n) .col-num[b-6f83ila5et],
table.grelha-tabela tbody tr:nth-child(2n) .col-acao[b-6f83ila5et] {
    background: color-mix(in srgb, var(--color-surface-2) 60%, var(--color-surface));
}

table.grelha-tabela tbody tr:hover .col-num[b-6f83ila5et],
table.grelha-tabela tbody tr:hover .col-acao[b-6f83ila5et] {
    background: var(--color-surface-2);
}

.num[b-6f83ila5et] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.vazio[b-6f83ila5et] {
    color: var(--color-muted);
}

.aviso-ic[b-6f83ila5et] {
    cursor: help;
    margin-left: 4px;
}

.acao-badge[b-6f83ila5et] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.acao-criar[b-6f83ila5et] { background: #f0fdf4; color: #15803d; }
.acao-atualizar[b-6f83ila5et] { background: #f0f9ff; color: #0369a1; }
.acao-ignorar[b-6f83ila5et] { background: #fef3e2; color: #b45309; }
