* {
    margin: 0;
    padding: 0
}

@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    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;
    }

.loading-progress {
    display: block;
    margin: 100px auto 20px auto;
    width: 64px;
    height: 64px;
    background: transparent;
}

    .loading-progress circle {
        fill: none;
        stroke: #0078d7;
        stroke-width: 8;
        stroke-linecap: round;
        animation: loading-progress-circular 1.5s linear infinite;
    }

        .loading-progress circle:last-child {
            stroke: #e5e5e5;
            stroke-dasharray: 100, 200;
            stroke-dashoffset: 0;
            animation: none;
        }


.input-loading {
    background-color: #f7f7a2 !important;
    cursor: wait !important;
}



/* Container com altura fixa e scroll vertical/horizontal */
.table-scroll {
    /* ajuste a altura conforme seu layout */
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;
    /* corrige eventual clipping do sticky em alguns navegadores */
    position: relative;
    /* melhora a performance do scroll */
    will-change: scroll-position;
}

/* Cabeçalho fixo (sticky) */
.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    /* cor de fundo para não ficar transparente quando grudar */
    background-color: #f8f9fa; /* combina com .table-secondary do Bootstrap */
    /* opcional: sombra sutil para destacar o cabeçalho durante o scroll */
    box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}

/* Para tabelas com bordas, manter o topo visível "limpo" */
.table-sticky thead tr {
    background-color: #f8f9fa;
}

/* Opcional: primeira coluna fixa */
.table-sticky-first-col tbody td:first-child,
.table-sticky-first-col thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 4; /* acima do cabeçalho */
    background-color: #fff; /* evita ver conteúdo por baixo ao rolar */
    box-shadow: 2px 0 0 rgba(0,0,0,0.04);
}

/* Melhorar acessibilidade e leitura */
.table-condensed td,
.table-condensed th {
    white-space: nowrap; /* evita quebra estranha em células */
    vertical-align: middle; /* alinha melhor o conteúdo */
}

/* Alternância de zebra para grandes tabelas */
.table-zebra tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Scrollbar mais discreta (opcional) */
.table-scroll::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0.06);
}


    @keyframes loading-progress-circular {
        0% {
            stroke-dasharray: 1, 200;
            stroke-dashoffset: 0;
        }

        50% {
            stroke-dasharray: 100, 200;
            stroke-dashoffset: -15px;
        }

        100% {
            stroke-dasharray: 100, 200;
            stroke-dashoffset: -125px;
        }
    }
