html, body {
    font-family: 'Tahoma', Tahoma, sans-serif;
    scroll-behavior: smooth;
}

* {
    transition: .05s;
}

button {
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.input-group {
    display: flex;
    align-items: center;
}

/* scroll personalizado */
@media (min-width: 1200px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

        ::-webkit-scrollbar-track:hover {
            cursor: pointer;
        }

    ::-webkit-scrollbar-thumb {
        background: rgba(180, 180, 180, 0.6);
        transition: background 0.3s ease-in-out;
    }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(140, 140, 140, 0.8);
            cursor: pointer;
        }

        ::-webkit-scrollbar-thumb:vertical {
            min-height: 20px;
        }

        ::-webkit-scrollbar-thumb:horizontal {
            min-width: 20px;
        }
}

/* sobrescrevendo a cor primary com degradê */
.bg-primary {
    background-color: #3399cc !important;
    background: linear-gradient(to bottom, #3399cc, #287ba9) !important;
}

.border-primary {
    border-color: #3399cc !important;
}

.btn-primary {
    background-color: #3399cc !important;
    background: linear-gradient(to bottom, #3399cc, #287ba9) !important;
    border-color: #3399cc !important;
    color: #fff !important;
}

    .btn-primary:hover {
        background-color: #287ba9 !important;
        background: linear-gradient(to bottom, #287ba9, #20698f) !important;
        border-color: #287ba9 !important;
    }

    .btn-primary:active, .btn-primary:focus {
        background-color: #20698f !important;
        border-color: #20698f !important;
    }

.btn-outline-primary {
    color: #3399cc !important;
    border-color: #3399cc !important;
}

    .btn-outline-primary:hover {
        background-color: #3399cc !important;
        background: linear-gradient(to bottom, #3399cc, #287ba9) !important;
        color: #fff !important;
        border-color: #3399cc !important;
    }

.text-primary {
    color: #3399cc !important;
}

/* sobrescrevendo a cor success com degradê */
.bg-success {
    background-color: #65ac3f !important;
    background: linear-gradient(to bottom, #65ac3f, #5a9c38) !important;
}

.border-success {
    border-color: #65ac3f !important;
}

.btn-success {
    background-color: #65ac3f !important;
    background: linear-gradient(to bottom, #65ac3f, #5a9c38) !important;
    border-color: #65ac3f !important;
    color: #fff !important;
}

    .btn-success:hover {
        background-color: #559633 !important;
        background: linear-gradient(to bottom, #559633, #4c8b2a) !important;
        border-color: #559633 !important;
    }

    .btn-success:active, .btn-success:focus {
        background-color: #4c8b2a !important;
        border-color: #4c8b2a !important;
    }

.btn-outline-success {
    color: #65ac3f !important;
    border-color: #65ac3f !important;
}

    .btn-outline-success:hover {
        background-color: #65ac3f !important;
        background: linear-gradient(to bottom, #65ac3f, #5a9c38) !important;
        color: #fff !important;
        border-color: #65ac3f !important;
    }

.text-success {
    color: #65ac3f !important;
}

/* sobrescrevendo a cor secondary com degradê */
.bg-secondary {
    background-color: #868e96 !important;
    background: linear-gradient(to bottom, #868e96, #7d858d) !important;
}

.border-secondary {
    border-color: #868e96 !important;
}

.btn-secondary {
    background-color: #868e96 !important;
    background: linear-gradient(to bottom, #868e96, #7d858d) !important;
    border-color: #868e96 !important;
    color: #fff !important;
}

    .btn-secondary:hover {
        background-color: #7a828a !important;
        background: linear-gradient(to bottom, #7a828a, #6f777f) !important;
        border-color: #7a828a !important;
    }

    .btn-secondary:active, .btn-secondary:focus {
        background-color: #6f777f !important;
        background: linear-gradient(to bottom, #6f777f, #656b72) !important;
        border-color: #6f777f !important;
    }

.btn-outline-secondary {
    color: #868e96 !important;
    border-color: #868e96 !important;
}

    .btn-outline-secondary:hover {
        background-color: #868e96 !important;
        background: linear-gradient(to bottom, #868e96, #7d858d) !important;
        color: #fff !important;
        border-color: #868e96 !important;
    }

.text-secondary {
    color: #868e96 !important;
}

/* sobrescrevendo a cor danger com degradê */
.bg-danger {
    background-color: #dc3545 !important;
    background: linear-gradient(to bottom, #dc3545, #c92d3c) !important;
}

.border-danger {
    background-color: #dc3545 !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    background: linear-gradient(to bottom, #dc3545, #c92d3c) !important;
    border-color: #c92d3c !important;
    color: #fff !important;
}

    .btn-danger:hover {
        background-color: #c92d3c !important;
        background: linear-gradient(to bottom, #c92d3c, #b32433) !important;
        border-color: #b32433 !important;
    }

    .btn-danger:active, .btn-danger:focus {
        background-color: #b32433 !important;
        background: linear-gradient(to bottom, #b32433, #9e1a29) !important;
        border-color: #9e1a29 !important;
    }

.btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

    .btn-outline-danger:hover {
        background-color: #dc3545 !important;
        background: linear-gradient(to bottom, #dc3545, #c92d3c) !important;
        border-color: #c92d3c !important;
        color: #fff !important;
    }

.text-danger {
    color: #dc3545 !important;
}

/* sobrescrevendo a cor warning com degradê */
.bg-warning {
    background-color: #ffc107 !important;
    background: linear-gradient(to bottom, #ffc107, #e0ac06) !important;
}

.border-warning {
    background-color: #ffc107 !important;
}

.btn-warning {
    background-color: #ffc107 !important;
    background: linear-gradient(to bottom, #ffc107, #e0ac06) !important;
    border-color: #e0ac06 !important;
    color: #ffffff !important;
}

    .btn-warning:hover {
        background-color: #e0ac06 !important;
        background: linear-gradient(to bottom, #e0ac06, #c99805) !important;
        border-color: #c99805 !important;
    }

    .btn-warning:active, .btn-warning:focus {
        background-color: #c99805 !important;
        background: linear-gradient(to bottom, #c99805, #b28304) !important;
        border-color: #b28304 !important;
    }

.btn-outline-warning {
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

    .btn-outline-warning:hover {
        background-color: #ffc107 !important;
        background: linear-gradient(to bottom, #ffc107, #e0ac06) !important;
        border-color: #e0ac06 !important;
        color: #ffffff !important;
    }

.text--warning {
    color: #ffc107 !important;
}

/* cor cabeçalho dos cards, modais */
.bg-header {
    background-color: #20b2aa;
    background: linear-gradient(to bottom, #20b2aa, #12a098);
}

/* cores de fundo customizadas */
.bg-custom-warning {
    background-color: #5e5e5e;
    background: linear-gradient(to bottom, #5e5e5e, #424242);
}

/* cor nanosoft botões */
.bg-button {
    background-color: #20b2aa;
    background: linear-gradient(to bottom, #20b2aa, #12a098);
    color: #ffffff;
    border: none;
}

    .bg-button:hover {
        background-color: #1a9690;
    }

    .bg-button:disabled {
        background-color: #5dc8c3;
        cursor: not-allowed;
    }

    .bg-button:focus-visible {
        background-color: #1a9690;
        box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.5);
    }

    .bg-button:active {
        background-color: #1a9690 !important;
    }

/* modal */
.modal.fade .modal-dialog {
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

/* modal sheet */
.handle {
    width: 50px;
    height: 5px;
    background-color: #b9bdc1;
    border-radius: 999px;
    margin: 0 auto 1rem auto;
}

.sheet .modal-dialog {
    position: absolute;
    bottom: 0;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.sheet-dialog {
    width: 400px;
}

@media (max-width: 768px) {
    .sheet-dialog {
        width: 340px;
    }
}

/*  configurações das tabelas, 
    .grid-tabela-maior (refere-se ao grid das tabelas maiores, o componente pai das tabelas maiores, ex: Produtos, Pessoas),
    .grid-tabela-menor (refere-se ao grid das tabelas menores, o componente pai das tabelas menores, ex: Cidades, NCM, CEST),
    .tabela (table),
    .tabela-hd (thead), 
    .tabela-bd (tbody), 
    .tabela-hd-maior (refere-se ao thead das tabelas com mais informações, ex: Produtos, Pessoas),
    .tabela-hd-menor (refere-se ao thead das tabelas com menos informações, ex: Cidades, NCM, CEST),
    .tabela-bd-maior (refere-se ao tbody das tabelas com mais informações, ex: Produtos, Pessoas),
    .tabela-bd-menor (refere-se ao tbody das tabelas com menos informações, ex: Cidades, NCM, CEST) */
.grid-tabela-maior,
.grid-tabela-menor {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.grid-tabela-maior {
    height: 24em;
}

.grid-tabela-menor {
    height: 12em;
}

.tabela {
    width: 100%;
    border-left: 2px solid #939393;
    border-bottom: 1px solid #939393;
}

.tabela-hd {
    color: #252525;
    background-color: #c4c4c4;
    background: linear-gradient(to left, #c4c4c4, #bdbdbd);
    border-right: 1px solid #939393;
}

    .tabela-hd th {
        padding: .31rem;
    }

    .tabela-hd tr:hover {
        cursor: default;
    }

.tabela-bd tr {
    color: #252525;
    text-decoration: none;
}

    .tabela-bd tr:hover {
        color: white;
        cursor: pointer;
        background-color: #20b2aa;
        background: linear-gradient(to bottom, #20b2aa, #12a098);
    }

.tabela-hd-menor th {
    padding: .22rem;
}

.tabela-bd-maior td {
    margin: .32rem;
    padding: .32rem;
    overflow: hidden;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-right: 1px solid #939393;
    border-bottom: 1px solid #939393;
}

.tabela-bd-maior .coluna-checkbox {
    border: none;
}

.tabela-bd-menor td {
    margin: .23rem;
    padding: .23rem;
    font-weight: bold;
    border-left: 1px solid #939393;
    border-right: 1px solid #939393;
    border-bottom: 1px solid #939393;
}

@media (max-width: 1400px) {
    .grid-tabela-maior {
        height: 17.4em;
    }
}

@media(max-width: 992px) {
    .desktop {
        display: none;
    }

    .grid-tabela-maior {
        height: 19.5em;
    }

    .grid-tabela-menor {
        height: 19.5em;
    }

    .tabela-hd-maior th,
    .tabela-hd-menor th {
        padding: .45rem;
    }

    .tabela-bd-maior td,
    .tabela-bd-menor td {
        padding: .95rem;
    }
}

@media(min-width: 992px) {
    .mobile {
        display: none;
    }
}

/* colunas das tabelas maiores */
.coluna-checkbox {
    width: 30px;
    margin: .32rem;
    padding: .32rem;
    text-align: center;
    background-color: #c4c4c4;
    background: linear-gradient(to right, #c4c4c4, #bdbdbd);
}

    .coluna-checkbox input:hover {
        cursor: pointer;
    }

.coluna-1 {
    max-width: 40px;
}

.coluna-2 {
    max-width: 100px;
}

.coluna-3,
.coluna-4,
.coluna-5,
.coluna-6,
.coluna-7,
.coluna-8,
.coluna-9 {
    max-width: 60px;
}

.coluna-img {
    width: 30px;
}

.item-img {
    width: 25px;
    height: 25px;
    border-radius: 6px;
}

@media(max-width: 992px) {
    .coluna-checkbox {
        display: none;
    }

    .coluna-img {
        width: 45px;
    }

    .item-img {
        width: 40px;
        height: 40px;
    }

    td, td * {
        -webkit-user-select: none !important;
        user-select: none !important;
    }
}

/* coluna principal das tabelas menores */
.coluna-menor {
    min-width: 350px;
    max-width: 500px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* botões de paginação nas tabelas maiores */
.btn-paginacao button {
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 6px;
    text-decoration: none;
    color: #202020;
    background-color: #fff;
}

    .btn-paginacao button:hover {
        cursor: pointer;
        color: #5c5c5c;
        background-color: #d0d0d0;
    }

    .btn-paginacao button:disabled,
    .btn-paginacao button:disabled:hover {
        cursor: default;
        opacity: 0.6;
        color: #5c5c5c;
        background-color: #fff;
    }

/* input-select small */
.form-select-sm:hover {
    cursor: pointer;
}

.form-select-sm:disabled {
    cursor: default;
    opacity: 0.6;
    background-color: #d0d0d0;
}

/* classes para fazer botão ter efeito de continuidade com o input */
.btn-transparent {
    background-color: transparent;
    border: 1px solid #6c757d; /* Usa a cor do Bootstrap para border-secondary */
    border-left: none; /* Remove a borda da esquerda */
    border-radius: 0 0.375rem 0.375rem 0; /* Define os cantos arredondados */
    box-shadow: none; /* Remove sombra padrão do botão */
    transition: border-color 0.2s ease; /* Suaviza mudanças na borda */
}

    /* Remove a borda sumindo ao passar o mouse */
    .btn-transparent:hover {
        border-color: #6c757d; /* Garante que a borda continua visível */
    }

.no-right-border {
    border-right: none; /* Remove a borda da direita */
    border-radius: 0.375rem 0 0 0.375rem; /* Define os cantos arredondados */
}

/* campos obrigatórios */
.required:after {
    color: red;
    content: " *";
}

/* campos que não podem ser alterados */
.disabled {
    background-color: #e4e4e4 !important;
    background: linear-gradient(to bottom, #e4e4e4, #dbdbdb) !important;
}

/* checkbox */
.form-check:hover,
.form-check-label:hover {
    cursor: pointer !important;
}

.form-check-input:hover {
    cursor: pointer;
}

/* para "bloquear" o giro da tela */
@media (max-width: 768px) {
    .force-portrait {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        transform-origin: center center;
        transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    }

        /* Somente quando está em landscape */
        .force-portrait.landscape {
            transform: rotate(-90deg);
            width: 100vh;
            height: 100vw;
            overflow: hidden;
        }
}


/* abaixo é css padrão do blazor */
h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.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;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    display: none !important;
}

#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 {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #20b2aa;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}
