html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px; /* 24/08/2026 */
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* 27/07/2026 */
.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

/* 31/07/2026 */
/* Blazor CSS isolation: use ::deep para atingir o conteúdo interno do FluentDialog */
/* host do componente */
fluent-dialog.pdf-dialog::part(control) {
    width: 66vw !important;
    max-width: 66vw !important;
    height: 85vh !important;
    max-height: 85vh !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* corta excedente */
}

/* área central rolável e contida */
fluent-dialog.pdf-dialog::part(body) {
    flex: 1 1 auto !important;
    min-height: 0 !important; /* essencial para não estourar */
    overflow: hidden !important;
}

/* iframe ocupa só o espaço disponível */
.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* centraliza os botões do rodapé */
fluent-dialog.pdf-dialog::part(footer) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px;
}

.pdf-footer-center {
    width: 100%;
    display: flex;
    justify-content: center;
}


/* 04/08/2026 */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0; /* importante para permitir encolher */
}

    .page-header-center .quick-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 10px;
    }

    .page-header-center .quick-item {
        width: 90px; /* todos com mesmo tamanho */
        min-height: 72px; /* altura igual */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        text-align: center;
    }

/* 04/08/2026 */
.badge-status {
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    line-height: 1.2;
}

/* 06/08/2026 */
/* Seleção — cobre variações comuns (classe, atributo aria, nomes alternativos) */
table.fluent-data-grid tbody tr.selected > td.alternate,
table.fluent-data-grid tbody tr[aria-selected="true"] > td.alternate,
table.fluent-data-grid tbody tr.is-selected > td.alternate,
table.fluent-data-grid tbody tr.row-selected > td.alternate,
table.fluent-data-grid tbody tr.selected-row > td.alternate,
table.fluent-data-grid tbody tr.selected td,
table.fluent-data-grid tbody tr[aria-selected="true"] td,
table.fluent-data-grid tbody tr.is-selected td,
table.fluent-data-grid tbody tr.selected-row td,
table.fluent-data-grid tbody tr.row-selected td {
    background-color: var(--fui-grid-selected-bg) !important;
    color: var(--fui-grid-selected-text) !important;
}

    /* Barra de acento à esquerda na primeira célula para reforçar seleção */
    table.fluent-data-grid tbody tr.selected td:first-child,
    table.fluent-data-grid tbody tr[aria-selected="true"] td:first-child,
    table.fluent-data-grid tbody tr.is-selected td:first-child,
    table.fluent-data-grid tbody tr.selected-row td:first-child,
    table.fluent-data-grid tbody tr.row-selected td:first-child {
        box-shadow: inset 4px 0 0 var(--fui-grid-selected-accent);
    }

/* Garantir que o hover não sobrescreva a seleção */
table.fluent-data-grid tbody tr.selected:hover td,
table.fluent-data-grid tbody tr[aria-selected="true"]:hover td,
table.fluent-data-grid tbody tr.is-selected:hover td,
table.fluent-data-grid tbody tr.selected-row:hover td,
table.fluent-data-grid tbody tr.row-selected:hover td {
    background-color: var(--fui-grid-selected-bg) !important;
    color: var(--fui-grid-selected-text) !important;
}

/* Foco por teclado (melhor contraste quando a linha tem foco) */
table.fluent-data-grid tbody tr:focus-within td {
    /*outline: 2px solid rgba(200,20,35,0.18);*/
    outline: 2px var(--fui-grid-selected-bg);
    outline-offset: -2px;
}

/* selecionada: fundo vermelho e texto branco, sobrescreve zebra */
table.fluent-data-grid tbody tr.selected-row > td.alternate,
table.fluent-data-grid tbody tr.row-selected > td.alternate,
table.fluent-data-grid tbody tr.selected-row td,
table.fluent-data-grid tbody tr.row-selected td {
    /*background-color: #c82333 !important;*/
    background-color: #8dbdeb !important;
    color: #ffffff !important;
}

/* 06/08/2026 */
fluent-dialog.sign-wizard-dialog-80::part(control) {
    width: 80vw !important;
    height: 80vh !important;
    max-width: 80vw !important;
    max-height: 80vh !important;
}

.sign-wizard-dialog-80::part(control) {
    width: 80vw !important;
    height: 80vh !important;
    max-width: 80vw !important;
    max-height: 80vh !important;
}

.sign-wizard-dialog-80 .fluent-dialog-body,
.sign-wizard-dialog-80 .dialog-body {
    overflow: auto !important;
    min-width: 0 !important;
}

/* 30/04/2026 
 aumenta a “altura” das linhas ajustando o padding das células */
.meu-grid td,
.meu-grid th {
    padding-top: 1px;
    padding-bottom: 10px; /* padding-bottom: 10px; */
    /*padding-left: 0px;*/
    /*padding-right: 0px;*/
    line-height: 1.4;
}

.dc-cell {
    display: inline-block;
    padding: 0 6px; /* padding: 0 6px; */
    border-radius: 4px;
}

.dc-cell--d {
    background-color: #FF9595;
}

.form-inline {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -ms-flex-align: center;
    align-items: center;
}

    .form-inline .form-check {
        width: 100%;
    }

/* 04/05/2026
    Blazor error UI (fica oculto até o blazor.web.js adicionar a classe .show) */
#blazor-error-ui {
    display: none;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

    #blazor-error-ui.show {
        display: block;
    }

/* 14/05/2026 */
.numeric-right::part(control) {
    text-align: right;
}

/* 14/05/2026 */
.paginator.paginator-custom {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important;
}

    .paginator.paginator-custom .paginator-nav {
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: auto !important;
    }


    .paginator.paginator-custom .summary {
        order: 2 !important;
        margin-left: auto !important;
        white-space: nowrap !important;
        text-align: right !important;
        flex: 0 0 auto !important;
    }

    .paginator.paginator-custom .pagination-text {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        padding: 0 6px !important;
        flex: 0 0 auto !important;
    }

        .paginator.paginator-custom .pagination-text > div {
            white-space: nowrap !important;
            text-align: left !important;
        }

    .paginator.paginator-custom .paginator-nav fluent-button {
        flex: 0 0 auto !important;
    }

