﻿/*Botões*/

.btn-sucesso,
.btn-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px !important;
    border-radius: 8px;
    border: 2px solid #444;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    height: 40px;
    line-height: 1.5;
    font-weight: 500;
}

.btn-sucesso {
    background-color: #45D754;
    color: #000000;
    border: none;
    padding: 10px 16px !important;
}

    .btn-sucesso:hover {
        background-color: #0B4E00;
        color: #fff;
    }

    .btn-sucesso .material-symbols-rounded {
        font-size: 20px;
        color: #000;
    }

    .btn-sucesso:hover .material-symbols-rounded {
        color: #fff;
    }

    .btn-sucesso:disabled,
    .btn-sucesso[readonly] {
        opacity: 0.4;
        pointer-events: none; /* Remove interações do usuário */
    }

.btn-secundario {
    border: 1px solid var(--Cinzas-Cinza-4, #CCC);
    background-color: #dce2e8;
    color: #000000;
    padding: 10px 20px;
}

    .btn-secundario:hover {
        background-color: #a7b3c2 !important;
        color: #000000;
    }

.btn-perigo {
    background-color: #ac1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

    .btn-perigo:hover {
        background-color: #8B0000;
        color: #fff;
    }

/*CSS REFATORADO*/

.input-login2 {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.input-login:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
}

.form-text.text-muted {
    margin-top: .25rem;
    font-size: 80%;
    color: #6c757d;
}

.btn-copia {
    position: absolute;
    top: 70%;
    right: 12px;
    transform: translateY(-50%);
    display: inline-block;
    width: 28px;
    height: 28px;
    padding: 0;
    text-align: center;
    line-height: 28px;
    font-size: 16px;
    background-color: transparent;
    border: none;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

    .btn-copia:hover {
        background-color: #f0f0f0;
        color: #000;
    }

/* Ajuste de estilo dos botões */
.btn-grid {
    display: inline-block;
    width: 24px;
    height: 24px;
    padding: 0;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    margin-right: 15px;
    background-color: transparent;
    border: none;
    color: #333;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .btn-grid:last-child {
        margin-right: 0;
    }

    .btn-grid i {
        font-size: 14px;
    }

    .btn-grid:hover {
        background-color: #e0e0e0;
        color: #333;
    }

    .btn-grid .material-icons {
        font-size: 22px;
        color: #595857;
    }

/* Ajustes da tabela */
.table-nova {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    overflow-x: auto;
    display: table;
    padding: .15rem;
}

    .table-nova thead {
        border-top: 1px solid var(--Cinzas-Cinza-3, #E5E5E5);
        border-bottom: 1px solid var(--Cinzas-Cinza-3, #E5E5E5);
    }

        .table-nova thead th {
            background: var(--Cinzas-Cinza-1, #FBFBFB);
            text-align: left;
            padding: 0px 15px;
            border: none !important;
            font-size: 1.1rem;
            min-width: 100px;
            max-width: 150px;
            position: sticky;
            top: 0;
            z-index: 10;
        }

    .table-nova tbody {
        border: none !important;
        margin: -1px !important;
    }

        .table-nova tbody tr {
            height: 57px;
            max-height: 57px;
            background: #ffffff;
            margin-bottom: 10px;
            border: 1px solid #E5E5E5;
        }

            .table-nova tbody tr:hover {
                background-color: #F6F6F6;
            }

            .table-nova tbody tr td {
                border-top: none;
                border-bottom: none;
                padding: 0px 15px !important;
                white-space: normal !important;
            }

            .table-nova tbody tr::before,
            .table-nova tbody tr::after {
                display: none;
            }

    .table-nova tfoot {
    }

        .table-nova tfoot td {
            border: none !important;
            text-align: left;
            height: 45px;
            padding: 0px 15px;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
            background: var(--Cinzas-Cinza-1, #FBFBFB);
        }

    .table-nova .truncate {
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 220px;
        width: 220px;
    }

    .table-nova .table-nova-row-selected {
        background-color: #45D7541A !important;
        border: 1px solid #E5E5E5;
    }

    .table-nova td,
    .table-nova th {
        white-space: normal !important;
    }

    .table-nova .nowrap {
        white-space: nowrap !important;
    }

table tr th:nth-child(2) {
    z-index: 10;
}

table tr th:first-child {
    z-index: 11;
}

table tr th {
    height: 56px;
    position: sticky;
    top: -1px;
    z-index: 9;
    background: var(--Cinzas-Cinza-1, #FBFBFB);
}

    table tr th:last-child {
        z-index: 12;
    }

    table tr th:last-child {
        z-index: 12;
    }

.table-responsive {
    min-height: auto;
    overflow: auto;
    max-height: 62vh;
}

/*Lib dataTable*/
table.dataTable {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

    table.dataTable th,
    table.dataTable tr {
        height: 37px !important;
    }

.table-nova-escura {
    background: #23272b;
    color: #F0F2F4;
}

    .table-nova-escura thead th {
        background: #2d3136;
        color: #F0F2F4;
        border-bottom: 1px solid #43474b;
    }

    .table-nova-escura tbody tr {
        background: #26292d;
        color: #F0F2F4;
        border-color: #36393d;
    }

        .table-nova-escura tbody tr:hover {
            background-color: #34383d;
        }

    .table-nova-escura .table-nova-row-selected {
        background-color: #356d3c !important;
        border-color: #45D75466;
    }

    .table-nova-escura tbody tr td {
        border-top: none;
        border-bottom: none;
        padding: 0px 15px !important;
    }

    .table-nova-escura tfoot td {
        background: #26292d;
        color: #bfc3c7;
        border-top: 1px solid #43474b;
    }

    .table-nova-escura .truncate {
        color: #F0F2F4;
    }

    .table-nova-escura th,
    .table-nova-escura td {
        white-space: normal !important;
        color: #F0F2F4;
    }

/*FIM*/

/*table RESUMO*/
.table-resumo-produtos {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
}

    .table-resumo-produtos th {
        background-color: #ffffff;
        font-weight: bold;
        text-align: left;
        padding: 10px;
    }

    .table-resumo-produtos tr th {
        border-bottom: none !important;
    }

    .table-resumo-produtos td {
        padding: 10px;
        background-color: #ffffff;
    }

    .table-resumo-produtos tfoot td {
        background-color: #ffffff;
        font-weight: bold;
        padding: 15px;
        border: none;
    }

/*#FIM*/

.legend2 {
    color: #595857;
    font-size: 16px;
    font-weight: 500;
}

.Symple-aba {
    box-shadow: 2px 0px 19px -10px;
    border-radius: 10px 70px 0 0;
}

/* Custom Modal Sidebar */
.modal-sidebar-custom .modal-dialog {
    position: fixed;
    right: 0;
    top: 0;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    width: 400px;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-in-out !important;
}

.modal-sidebar-custom.show .modal-dialog {
    transform: translateX(0) !important;
}

.modal-sidebar-custom .modal-content {
    height: 100%;
    border: none;
    border-radius: 0 0 0 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 24px;
}

.modal-title.sidebar {
    color: var(--Text-2, #595857);
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: left;
}

simple-text-left {
    font-size: 22px;
    line-height: normal;
    color: #595857;
    font-family: Saira;
    font-weight: 700;
    text-align: left;
}

.custom-filter-body {
    flex: 1;
    overflow-y: auto;
}

.custom-footer {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.btn-close-custom {
    background: transparent;
    border: none;
    font-size: 1.5rem;
}

.custom-panel-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.5;
}

.btn-secondary-custom {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

    .btn-secondary-custom:hover {
        background-color: #e2e6ea;
        border-color: #dae0e5;
    }

.form-control-custom {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control-custom:focus {
        color: #495057;
        background-color: #fff;
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.form-check-inline {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check-input-custom {
    width: 1em;
    height: 1em;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    border: 2px solid #363636;
    background-color: #fff;
    cursor: pointer;
    margin-right: 12px;
}

    .form-check-input-custom:checked::before {
        content: "";
        display: block;
        width: 0.5em;
        height: 0.5em;
        border-radius: 50%;
        background-color: #363636;
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.form-check-label-custom {
    margin-left: 0;
    margin-right: 10px;
}

.filtro-ativo {
    display: flex;
    padding: 6px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 26px;
    background: var(--Cinzas-Cinza-8, #363636);
    color: #FFFFFF;
    font-size: 14px;
    margin-bottom: 10px;
}

.btn-fechar-filtro {
    background: transparent;
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    line-height: 1;
}

    .btn-fechar-filtro:hover {
        color: #ff0000;
    }

.titulo-componente {
    color: #595857;
    font-size: 24px;
    font-family: Saira;
    font-weight: 700;
    line-height: 30px;
    word-wrap: break-word
}

.filtro-ativo span {
    color: #FFFFFF;
}

/*TABS*/
.nav-tabs.simple .nav-link {
    display: flex;
    height: 38px;
    padding: 8px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid #E5E5E5;
    font-size: 14px;
    font-family: 'Saira', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
    background: white;
    color: #363636;
}

.nav-tabs.simple {
    display: inline-flex;
    border-bottom: none;
}

    .nav-tabs.simple .nav-link.active {
        background: #363636;
        color: white;
    }

    .nav-tabs.simple .nav-link:hover {
        background: #E5E5E5;
        color: #363636;
    }

    .nav-tabs.simple .nav-link .icon img {
        height: 16px;
        width: 16px;
    }

.text-white {
    color: white !important;
}

.text-dark {
    color: #363636 !important;
}

/*Fielsearch usuarios*/
.search-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* padding: 13px;*/
}

.search-input-container {
    padding: 0px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    /*    gap: 10px;
*/ position: relative;
}

    .search-input-container .material-symbols-rounded {
        font-size: 22px;
        color: rgba(89, 88, 87, 1);
    }

/* Ajustes para o span de Filtros */
.d-flex.filtros-head {
    padding: 17px 16px;
}

.filtros-span {
    color: #595857;
    font-size: 18px;
    font-family: 'Saira', sans-serif;
    font-weight: 600;
    word-wrap: break-word;
}

.simple2-span {
    color: #595857;
    font-weight: bold;
    padding: 5px 10px;
    font-size: 14px;
    display: inline-block;
    text-align: center;
}

.simple2-spanLeve {
    display: block;
    margin-top: 0;
    font-size: 14px;
    color: #333;
}

.card-sobreado2 {
    border-radius: 10px;
    padding: 5px 0 0 0;
    border: 1px solid var(--Cinzas-Cinza-3, #E5E5E5);
    transition: background-color 0.3s ease;
}

    .card-sobreado2:hover {
        background-color: #f8f9fa;
    }

.tr-muted-cancelado td:not(:nth-last-child(1)):not(:nth-last-child(2)) {
    color: #A1A1A1; /* Cinza muted */
    text-decoration: line-through; /* Texto riscado */
}

.tr-muted-cancelado td:nth-last-child(-n+2) div {
    color: #212529; /* Cor original */
    text-decoration: none; /* Remove riscado */
}

.search-icons {
    display: flex;
    align-items: center;
    margin-left: 24px;
}

.search-icon {
    cursor: pointer;
    color: #00000096;
    padding: 10px;
    background-color: #45D754;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    margin-right: 4px;
}

    .search-icon.gray {
        background-color: #b0b0b0;
    }


.filter-btn {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 17px;
    background: none;
    cursor: pointer;
}

.filter-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.filter-btn .material-symbols-rounded {
    font-size: 21px;
    margin-right: 7px;
}

.filter-btn span:last-child {
    font-size: 14px;
    font-weight: 500;
}

.me-3 {
    margin-right: 1rem;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
    font-family: Saira;
    font-weight: 500;
    color: #595857;
    line-height: 16px;
    word-wrap: break-word
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    color: #595857;
}

.breadcrumb-item a {
    color: #333;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #333;
}

.td-danger {
    display: flex;
    padding: 6px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 26px;
    background: var(--Erro-Vermelho-5, rgba(186, 0, 20, 0.24));
    color: #000000;
}

.td-success {
    display: flex;
    padding: 6px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 26px;
    background: var(--Sucesso-Verde-5, rgba(44, 93, 40, 0.24));
    color: #000000;
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1000;
}

    .footer-fixed .container {
        max-width: 100%;
    }

.border-bottom-radius {
    border-radius: 0 0 15px 15px;
}

.dropdown-search-container {
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 5px;
}

.dropdown-search-input {
    border: 0 !important;
    padding: 0 5px !important;
    flex-grow: 1;
}

.dropdown-search-icon {
    color: #555;
}

.dropdown-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

    .dropdown-search-results.show {
        display: block;
    }

/* Ajuste da faixa decorativa para estar dentro da navbar */
.faixa-decorativa-container {
    display: flex;
    justify-content: flex-end; /* Mantém a faixa decorativa à direita */
    align-items: center;
    position: absolute; /* Posiciona a faixa dentro da navbar */
    bottom: -5px; /* Alinha a faixa ao final da navbar */
    right: 0; /* Alinha à direita */
    height: 12px; /* Ajusta a altura */
}

.faixa-decorativa-item {
    flex-shrink: 0;
}

    .faixa-decorativa-item:nth-child(1) {
        width: 48.571px;
        height: 12px;
    }

    .faixa-decorativa-item:nth-child(2) {
        width: 82.976px;
        height: 12px;
    }

    .faixa-decorativa-item:nth-child(3) {
        width: 208.453px;
        height: 12px;
    }

.modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.modal-content { /*text-align: center;*/
    padding: 20px;
}

.form-check-label {
    text-align: left;
    margin-left: 10px;
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    font-weight: 600;
    color: #595857;
    display: block;
    margin-bottom: 5px
}

.form-check-input:checked {
    background-color: #45D754;
    border-color: #45D754;
}

.form-check-input {
    transition: background-color 0.3s ease;
}

    .form-check-input:hover {
        background-color: #45D754;
        border-color: #45D754;
    }

.simple2-label {
    color: #363636;
    font-size: 20px;
    font-family: Saira, sans-serif;
    font-weight: 400;
    line-height: 18px;
    text-align: left;
    display: block;
    margin-bottom: 8px;
}

.simple2-labelMenor {
    font-size: 16px;
    font-weight: 600;
    color: #595857;
    display: block;
    margin-bottom: 5px;
}

.is-invalid {
    border-color: #dc3545; /* Vermelho */
}

/* ====== BOTÕES DE OPERAÇÕES ====== */
/* Classe nova em português + alias para compatibilidade com .btn-operacoes-brown */
.btn-operacoes-marrom,
.btn-operacoes-brown {
    border: 1px solid var(--Operacoes-marrom, #8B4513);
    color: var(--Operacoes-marrom, #8B4513);
    font-weight: 700;
}

    .btn-operacoes-marrom:hover,
    .btn-operacoes-brown:hover {
        border: 1px solid var(--Operacoes-marrom, #8B4513);
        color: var(--Operacoes-marrom, #8B4513);
        font-weight: 700;
        background: aliceblue;
    }

    .btn-operacoes-marrom i,
    .btn-operacoes-brown i {
        color: var(--Operacoes-marrom, #8B4513);
        font-weight: 700;
        font-size: 20px;
    }

.btn-operacoes {
    display: inline-flex;
    padding: 8px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

.btn-operacoes-blue {
    border: 1px solid var(--Informao-Azul-4, #0A4AA2);
    color: var(--Informao-Azul-4, #0A4AA2);
    font-weight: 700;
}

    .btn-operacoes-blue:hover {
        border: 1px solid var(--Informao-Azul-4, #0A4AA2);
        color: var(--Informao-Azul-4, #0A4AA2);
        font-weight: 700;
        background: aliceblue;
    }

    .btn-operacoes-blue i {
        color: var(--Informao-Azul-4, #0A4AA2);
        font-weight: 700;
        font-size: 20px;
    }

.btn-operacoes-green {
    border: 1px solid var(--Sucesso-Verde-4, #2C5D28);
    color: var(--Sucesso-Verde-4, #2C5D28);
    font-weight: 700;
}

    .btn-operacoes-green:hover {
        border: 1px solid var(--Sucesso-Verde-4, #2C5D28);
        color: var(--Sucesso-Verde-4, #2C5D28);
        font-weight: 700;
        background: aliceblue;
    }

    .btn-operacoes-green i {
        color: var(--Sucesso-Verde-4, #2C5D28);
        font-weight: 700;
        font-size: 20px;
    }

.btn-operacoes-red {
    border: 1px solid var(--Erro-Vermelho-4, #BA0014);
    color: var(--Erro-Vermelho-4, #BA0014);
    font-weight: 700;
}

    .btn-operacoes-red:hover {
        border: 1px solid var(--Erro-Vermelho-4, #BA0014);
        color: var(--Erro-Vermelho-4, #BA0014);
        font-weight: 700;
        background: aliceblue;
    }

    .btn-operacoes-red i {
        color: var(--Erro-Vermelho-4, #BA0014);
        font-weight: 700;
        font-size: 20px;
    }

.btn-operacoes-yellow {
    border: 1px solid var(--Alerta-Amarelo-3, #EFAF0D);
    color: var(--Alerta-Amarelo-3, #EFAF0D);
    font-weight: 700;
}

    .btn-operacoes-yellow:hover {
        border: 1px solid var(--Alerta-Amarelo-3, #EFAF0D);
        color: var(--Alerta-Amarelo-3, #EFAF0D);
        font-weight: 700;
        background: aliceblue;
    }

    .btn-operacoes-yellow i {
        color: var(--Alerta-Amarelo-3, #EFAF0D);
        font-weight: 700;
        font-size: 20px;
    }

.btn-operacoes-gray {
    border: 1px solid var(--Cinzas-Cinza-4, #CCC);
    color: #979494;
    font-weight: 700;
}

    .btn-operacoes-gray:hover {
        border: 1px solid var(--Cinzas-Cinza-4, #CCC);
        color: #979494;
        font-weight: 700;
        background: aliceblue;
    }

    .btn-operacoes-gray i {
        color: #979494;
        font-weight: 700;
        font-size: 20px;
    }

.table-operacoes .accordion-button:focus {
    z-index: 3;
    border-color: #979494 !important;
    outline: 0;
    box-shadow: none !important;
}

.table-operacoes .accordion-button::after {
    color: black !important;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="black"%3E%3Cpath fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/%3E%3C/svg%3E') !important;
    background-repeat: no-repeat;
}

.table-operacoes .accordion {
    border-radius: 12px;
    overflow: hidden;
}

.table-operacoes .accordion-item {
    border-radius: 12px !important;
    margin-bottom: 5px;
}

.table-operacoes .accordion-button:focus,
.table-operacoes .accordion-button:active {
    box-shadow: none !important;
    border-color: transparent !important;
    outline: none !important;
}

.table-operacoes .accordion-button {
    border-radius: 12px !important;
}

    .table-operacoes .accordion-button:not(.collapsed) {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        background-color: #F8F9FA !important;
        color: #000 !important;
        border: none !important;
    }

    .table-operacoes .accordion-button.collapsed {
        background-color: #FFFFFF !important;
        color: #000 !important;
        border: none !important;
    }

.table-operacoes tr.expanded {
    background-color: #ecfbee !important;
}

.table-operacoes .accordion-collapse.show {
    background-color: transparent !important;
}

.table-operacoes tr.expanded .accordion-collapse.show {
    background-color: transparent !important;
}

.table-operacoes .accordion-body.p-0 {
    background-color: transparent !important;
}

    .table-operacoes .accordion-body.p-0 table {
        background-color: transparent !important;
    }

        .table-operacoes .accordion-body.p-0 table thead,
        .table-operacoes .accordion-body.p-0 table tbody,
        .table-operacoes .accordion-body.p-0 table tr,
        .table-operacoes .accordion-body.p-0 table td,
        .table-operacoes .accordion-body.p-0 table th {
            background-color: transparent !important;
        }

.table-operacoes .main-accordion-button:not(.collapsed) {
    background-color: #ecfbee !important;
}

.table-operacoes .accordion-button:not(.main-accordion-button) {
    background-color: transparent !important;
}

.table-operacoes th,
.table-operacoes td {
    border-top: 1px solid var(--Cinzas-Cinza-3, #E5E5E5);
    border-bottom: 1px solid var(--Cinzas-Cinza-3, #E5E5E5) !important;
}

    .table-operacoes th.text-end {
        padding-right: 45px !important;
    }

    .table-operacoes td.text-end {
        justify-content: flex-end;
        align-items: center;
        padding-right: 20px !important;
        white-space: nowrap;
    }

        .table-operacoes td.text-end .btn-acoes-operacao {
            margin-left: auto;
        }

/* Ajusta o botão de seleção */
.select2-container .select2-selection--single {
    width: 100% !important; /* Garante a largura total do botão */
    white-space: pre-line; /* Permite quebras de linha no texto */
    overflow: hidden; /* Impede o conteúdo de ultrapassar os limites */
    word-wrap: break-word; /* Quebra palavras longas */
    padding: 5px; /* Ajusta o padding */
    min-height: 40px; /* Garante uma altura mínima para o botão */
    line-height: 1.5; /* Ajusta a altura da linha para melhor leitura */
    height: auto;
}

/* Ajusta o conteúdo renderizado dentro do botão */
.select2-selection__rendered {
    white-space: pre-line; /* Permite as quebras de linha */
    word-wrap: break-word; /* Quebra palavras longas */
    overflow: hidden; /* Impede o conteúdo de ultrapassar os limites */
    display: block; /* Garante que o conteúdo ocupe toda a largura */
    width: 100%;
    /*font-size: 20px;*/
}

/* Caso o conteúdo seja muito grande, ele pode ser ocultado com reticências */
.select2-selection__rendered {
    text-overflow: ellipsis;
    overflow: hidden;
}

/*.select2-results__option {
    font-size: 16px;*/ /* Define o tamanho da fonte das opções do dropdown */
/*}*/

.select2-container .select2-results__option {
    padding: 10px; /* Adiciona espaço interno nas opções */
    border-bottom: 1px solid #ddd; /* Borda inferior para separar as opções */
    color: #333;
}

.select2-results__option--highlighted {
    background-color: #f0f0f0; /* Cor de fundo ao passar o mouse */
    color: #333;
}

/* Destaca a opção selecionada no botão */

.display-status {
    display: flex;
    padding: 6px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    color: var(--Cinzas-Cinza-10, #000);
    /* Paragrafo 3/semibold */
    font-family: Saira;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.color-status-inativo {
    border-radius: 26px;
    background: var(--Erro-Vermelho-5, rgba(186, 0, 20, 0.24)) !important;
}

.color-status-ativo {
    border-radius: 26px;
    background: var(--Sucesso-Verde-5, rgba(44, 93, 40, 0.24)) !important;
}

.nav-tabs .nav-link .material-icons {
    font-size: 20px;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.fiscal-button {
    margin: 15px 0;
}

.fiscal-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 40px 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

    .fiscal-btn:hover {
        background-color: #f5f5f5;
        border-color: #aaa;
    }

.fiscal-title {
    font-size: 18px;
    font-weight: bold;
    color: #595857;
}

.fiscal-subtitle {
    font-size: 14px;
    color: #595857;
}

.btn-veiculo {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #343a40;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-radius: 10px;
}

    .btn-veiculo i {
        margin-right: 8px;
        font-size: 18px;
        color: inherit;
    }

    .btn-veiculo:hover {
        background-color: #f5f5f5;
        border-color: #aaa;
        color: #343a40;
    }

.btn-outline-success .material-symbols-rounded {
    color: #28a745;
}

.btn-outline-primary .material-symbols-rounded {
    color: #007bff;
}

.btn-outline-secondary .material-symbols-rounded {
    color: #6c757d;
}

.btn-outline-secondary.btn-veiculo {
    color: #343a40;
    font-weight: 600;
}

    .btn-outline-secondary.btn-veiculo:hover {
        background-color: #f5f5f5;
        border-color: #aaa;
        color: #343a40;
    }

.btn-acoes-operacao {
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    color: #333333;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 90px;
}

    .btn-acoes-operacao:hover {
        background-color: #f5f5f5;
        border-color: #bcbcbc;
    }

    .btn-acoes-operacao:focus,
    .btn-acoes-operacao:active {
        box-shadow: none;
        outline: none;
        background-color: #e9e9e9;
        border-color: #a8a8a8;
    }

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ced4da;
    border-top: none;
    background-color: #fff;
    z-index: 1050;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    margin-top: -1px;
}

    .autocomplete-dropdown > div {
        padding: 8px 12px;
        cursor: pointer;
        border-bottom: 1px solid #f1f1f1;
        font-size: 14px;
        transition: background 0.2s ease-in-out;
    }

        .autocomplete-dropdown > div:last-child {
            border-bottom: none;
        }

        .autocomplete-dropdown > div:hover {
            background-color: #f8f9fa;
        }

.bg-faturamento-a {
    background-color: #f1f1f1 !important;
}

.bg-faturamento-b {
    background-color: #ffffff !important;
}

.bg-orange {
    --bs-bg-opacity: 1;
    background-color: #f75a0a !important;
}

.input-obrigatorio {
    position: relative;
    min-height: 60px;
}

    .input-obrigatorio label::after {
        content: "*";
        color: #ff2d2d;
        margin-left: 4px; /* espaço entre o texto e o asterisco */
        font-size: 1em;
        vertical-align: middle;
    }

.input-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
    white-space: nowrap;
}
/* ====== Estilos aplicados apenas ao modal que contiver este partial ====== */
.natureza-wide .modal-dialog {
    max-width: min(98vw, 1600px) !important; /* bem largo */
}

.natureza-wide .modal-content {
    width: 70%;
}

.natureza-wide .modal-body {
    max-height: calc(100vh - 200px);
    overflow: auto; /* scroll quando precisar */
}

/* tabela grande dentro de #listaDeNaturezas */
.natureza-wide #listaDeNaturezas {
    overflow: auto;
}

    .natureza-wide #listaDeNaturezas table {
        width: auto; /* cresce conforme as colunas */
        min-width: 100%; /* no mínimo a largura do modal */
        white-space: nowrap; /* evita quebrar células */
    }

/* mobile: usa a largura total da viewport */
@media (max-width: 992px) {
    .natureza-wide .modal-dialog {
        max-width: 100vw !important;
        margin: 0;
    }

    .natureza-wide .modal-content {
        border-radius: 0;
    }
}

.truncate-select {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select2-container .select2-dropdown {
    min-width: 500px !important;
}


.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
}

.chip-data {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #7dd3fc;
}

.chip-caixa {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}


.dropdown-menu-scroll {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}
