.theme {
    --corPrincipal: #1D305C;
    --corPrincipalClaro: #263f7a;
    --corSecundaria: #00AEDA;
    --corSecundariaEscuro: #0287a8;
    --fontPadrao: 'Muller', sans-serif;
}


* {
    font-family: var(--fontPadrao);
    font-size: 12px;
}

#LogoPainel {
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 5px;
    float: left;
    margin: .4rem .7rem 0 0;
}

#menu_toggle {
    color: #000;
}

.main_menu .fa-solid {
    width: 26px;
    opacity: .99;
    display: inline-block;
    font-style: normal;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.user-profile {
    color: #000;
}

.title {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.btn {
    border-radius: .5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding: .4rem 1rem;
}

.btn-primario {
    font-family: 'Muller', sans-serif;
    background-color: var(--corPrincipal);
    color: #fff;
    border-radius: .5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding: 0.4rem 1rem;
}

    .btn-primario:hover,
    .btn-primario:focus,
    .btn-primario:active {
        background-color: var(--corPrincipalClaro);
        color: #fff;
    }

.color-primario {
    color: var(--corPrincipal);
}

.border-primario {
    --bs-border-color: var(--corPrincipal);
    border-radius: var(--bs-border-radius);
}

.corpoPagina {
    padding: 1rem;
    box-shadow: 0 2px 2px 0 #888;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.nav-pills .nav-link {
    font-size: 1rem;
    color: var(--corPrincipal);
    font-weight: 700;
}

    .nav-pills .nav-link.active {
        background-color: var(--corPrincipal);
    }

.form-control,
.form-select {
    --bs-border-width: 1px;
    --bs-border-color: var(--corPrincipal);
}

.input-group-text {
    --bs-border-width: 1px;
    --bs-border-color: var(--corPrincipal);
}

label {
    color: var(--corPrincipal);
    font-weight: 700;
    font-size: 1rem;
}

.table tr td {
    vertical-align: middle;
}

div.dataTables_wrapper {
    padding: 0;
}

    div.dataTables_wrapper div.dataTables_paginate ul.pagination {
        margin: 8px 0 !important;
    }

.pagination a:hover {
    color: var(--corPrincipal);
}

.previous a {
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}

.next a {
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

.paginate_button a {
    border: 1px solid #dee2e6;
}

.paginate_button:not(.disabled):not(.active) a:hover {
    background: #dee2e6 !important;
}

.paginate_button.active a {
    background: var(--corSecundaria) !important;
    color: #fff !important;
}

.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999 !important;
}

.filtro {
    margin-bottom: 1rem;
}

    .filtro > button {
        padding: .5rem;
        margin: 0;
        border: 1px solid #ccc;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        cursor: pointer;
        background-color: #d0d1d2;
        box-shadow: 0 0 2px 0 #888;
        font-size: 1rem;
        color: #000;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .filtro > button > span {
            font-weight: 700;
        }

        .filtro > button > .fa-chevron-down {
            transition: transform linear .3s;
        }

        .filtro > button[aria-expanded=false] > .fa-chevron-down {
            transform: rotate(180deg);
        }

    .filtro > .corpoPagina {
        border: 1px solid #ccc;
        border-radius: 0 0 4px 4px;
    }

/*============== FILE INPUT ==============*/
.file-area {
    width: 100%;
    position: relative;
}

    .file-area input[type="file"] {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        cursor: pointer;
    }

    .file-area .file-dummy {
        width: 100%;
        padding: 30px;
        background: rgba(0, 0, 0, 0.2);
        border: 2px dashed rgba(0, 0, 0, 0.2);
        text-align: center;
        transition: background 0.3s ease-in-out;
    }

        .file-area .file-dummy.dragenter {
            border: 2px solid rgba(12, 80, 203, 0.6);
            background: rgba(12, 80, 203, 0.2);
        }

        .file-area .file-dummy .success {
            display: none;
        }

    .file-area:hover .file-dummy {
        background: rgba(0, 0, 0, 0.1);
    }

    .file-area input[type="file"]:focus + .file-dummy {
        outline: 2px solid rgba(0, 0, 0, 0.5);
        outline: -webkit-focus-ring-color auto 5px;
    }

    .file-area input[type="file"].selected + .file-dummy {
        border-color: rgba(14, 126, 55, 0.4);
        background-color: rgba(14, 126, 55, 0.3);
    }

        .file-area input[type="file"].selected + .file-dummy .success {
            display: inline-block;
        }

        .file-area input[type="file"].selected + .file-dummy .default {
            display: none;
        }


.load {
    position: relative;
}

    .load .spinner-border {
        position: absolute;
        right: .3rem;
        top: .5rem;
        width: 1.5rem;
        height: 1.5rem;
    }


.select2-container--default .select2-selection--single {
    border-radius: var(--bs-border-radius) !important;
    border: var(--bs-border-width) solid #1D305C !important;
}

.select2-selection__placeholder {
    color: black !important;
}

.pointer {
    cursor: pointer !important;
}

.table th, .table td {
    padding: 0.75rem;
    vertical-align: top;
    border-color: transparent;
    border-top: 1px solid #dee2e6;
    background-color: transparent;
}

@media (max-width: 1400px) {
    * {
        font-size: 12px;
    }
}

.voltar-botao {
    width: 80px;
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 16px;
    margin: 5px 0 15px 0;
}

    .voltar-botao i {
        font-size: 16px;
    }

/* Dropdown das op�oes do pedido e or�amento */

.opcoes-dropdown {
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 99999999999;
    box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: none;
}

.aberto {
    display: block !important;
}

.dropdown-item {
    cursor: pointer;
    transition: 0.3s all;
}

    .dropdown-item:hover {
        background-color: var(--corPrincipal);
        color: #fff;
    }

/* Estiliza��o para o muitiselect ja que o multiselect normal nao funciona com o boostrap 5 */

.choices__inner {
    background-color: transparent !important;
    border: 1px solid var(--corPrincipal) !important;
    border-radius: var(--bs-border-radius) !important;
    padding: 0.375rem 0.75rem !important;
    min-height: auto !important;
}

.choices__input {
    background-color: transparent !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* ----- FOOTER ----- */
footer {
    background: var(--corPrincipal);
    color: #E7E7E7;
    margin-left: 77px !important;
    padding: 9px 20px !important;
    text-align: center;
}

    footer a {
        font-weight: bold;
        color: #fff;
    }
/* ----- fim FOOTER ----- */


/* ---- Tabela Admin ----*/
.table .delete {
    background: #dc3545;
    color: #fff;
}

.table .edit {
    background: #28a745;
    color: #fff;
}
/* ---- fim Tabela Admin ----*/


/* ---- CADASTRO ---- */
.cadastro-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cadastro-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.cadastro-title {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
}

.cadastro-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .form-control:focus, .form-select:focus {
        outline: none;
        border-color: #3498db;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

    .form-control.is-invalid, .form-select.is-invalid {
        border-color: #e74c3c;
        background: #fdf2f2;
    }

.validation-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

    .btn-primary:hover {
        background: #2980b9;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    }

.btn-secondary {
    background: #95a5a6;
    color: white;
}

    .btn-secondary:hover {
        background: #7f8c8d;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
    }

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.required-field::after {
    content: " *";
    color: #e74c3c;
}

@media (max-width: 768px) {
    .cadastro-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }

    .btn-container {
        flex-direction: column;
    }
}
/* ---- fim CADASTRO ---- */

/* ---- ICON SENHA ---- */
.senha-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .senha-wrapper input {
        width: 100%;
        padding-right: 40px;
    }

    .senha-wrapper i {
        position: absolute;
        right: 10px;
        cursor: pointer;
        color: #888;
        font-size: 1.1em;
        top: 4px;
        transform: translateY(50%);
        z-index: 9;
    }

        .senha-wrapper i:hover {
            color: #333;
        }
/* ---- fim ICON SENHA ---- */


/* ---- DETALHES EMPRESA (ADMIN) ---- */
#empresa-detalhes .bloco {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 12px;
}

    #empresa-detalhes .bloco .hdr {
        padding: .6rem .9rem;
        border-bottom: 1px solid #e9ecef;
        font-weight: 600;
        background: #f8f9fa;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    #empresa-detalhes .bloco .bd {
        padding: .9rem;
    }

/* Garantir alinhamento à esquerda quando usar DL (Dados Principais e Representante) */
#empresa-detalhes dl.dl-grid {
    margin: 0;
}

    #empresa-detalhes dl.dl-grid dt {
        width: 35%;
        float: left;
        clear: left;
        font-weight: 600;
        color: #34495e;
        padding: .2rem 0;
        text-align: left;
    }

    #empresa-detalhes dl.dl-grid dd {
        width: 65%;
        float: left;
        margin: 0;
        padding: .2rem 0;
        text-align: left;
    }

#empresa-detalhes .clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* Linhas compactas (Endereço, Contatos, Dados Adicionais) */
#empresa-detalhes .kv-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: baseline;
}

#empresa-detalhes .kv {
    display: inline-flex;
    gap: 6px;
}

    #empresa-detalhes .kv .k {
        font-weight: 600;
        color: #34495e;
    }

    #empresa-detalhes .kv .v {
        color: #212529;
    }

/* Botão destaque */
#empresa-detalhes .btn-alterar-situacao {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: .6rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(13,110,253,.25);
}

    #empresa-detalhes .btn-alterar-situacao:hover {
        filter: brightness(0.95);
    }

#empresa-detalhes .chip-status {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: #e9ecef;
    color: #212529;
    font-weight: 600;
    margin-left: .5rem;
}

#empresa-detalhes .situacaoEmpresa span {
    font-size: 15px;
}

/* Chip padrão (mantém para Em Análise = 0 e Rascunho = 4) */
#empresa-detalhes .chip-status {
    background: #e9ecef;
    color: #212529;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    padding: .25rem .6rem;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* Habilitada (1) -> verde */
#empresa-detalhes[data-situacao-empresa="1"] .chip-status {
    background: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

/* Reprovada (2) -> vermelho */
#empresa-detalhes[data-situacao-empresa="2"] .chip-status {
    background: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

#tabela .situacao-empresa-badge {
    border-radius: 999px;
    padding: 1rem;
    font-weight: 600;
    border: 1px solid #dee2e6;
    background: #e9ecef;
    color: #212529;
    font-size: 14px;
}

    #tabela .situacao-empresa-badge.se-1 {
        background: #d1e7dd;
        color: #0f5132;
        border-color: #badbcc;
    }

    #tabela .situacao-empresa-badge.se-2 {
        background: #f8d7da;
        color: #842029;
        border-color: #f5c2c7;
    }


@media (max-width: 768px) {
    #empresa-detalhes dl.dl-grid dt, dl.dl-grid dd {
        width: 100%;
        float: none;
    }
}
/* ---- fim DETALHES EMPRESA (ADMIN) ---- */



.situacao-cotacao-badge {
    font-size: 0.9em;
    padding: 0.6em 1em;
}

.situacao-0 {
    background-color: #ffc107;
    color: #000;
}

.situacao-1 {
    background-color: #17a2b8;
    color: #fff;
}

.situacao-2 {
    background-color: #6c757d;
    color: #fff;
}

.situacao-3 {
    background-color: #28a745;
    color: #fff;
}

.situacao-4 {
    background-color: #dc3545;
    color: #fff;
}

.situacao-99 {
    background-color: #698;
    color: #fff;
}


.situacao-100 {
    background-color: #000;
    color: #fff;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #000;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

#tabela_wrapper .row:nth-child(1) {
    padding: 10px 20px;
}