@import url('https://fonts.googleapis.com/css?family=Roboto');

body {
    /*min-height: 2000px; */
    padding-top: 70px;
}

table {
    font-size: 14px;
}

#table_exibe_cadastros td {
    /*border: 1px solid #C0D0E4;*/
    /*border: 1px solid #C0D0E4;*/
}

#table_exibe_cadastros thead {
    /*background-color: #44619D; */
    background-color: #C0D0E4; /*#C0D0E4;*/
    color: #486C8F;
    /*color: #525659;*/
}

#grid_produtos td {
    /*border: 1px solid #C0D0E4;*/
    /*border: 1px solid #C0D0E4;*/
}

#grid_produtos thead {
    /*background-color: #44619D; */
    background-color: #C0D0E4; /*#C0D0E4;*/
    color: #486C8F;
    /*color: #525659;*/
}

.table-curved {
    border-collapse: separate;
    /*border-collapse: collapse;*/
    border: solid #C0D0E4 1px;
    border-radius: 6px;


    border-left:0 !important;
    border-right:0 !important;
    border-top:0 !important;
    border-bottom:0 !important;
}

.table-curved td, .table-curved th {
    /*border-left: 1px solid #C0D0E4;
    border-bottom: none;*/
    /*border-top: 1px solid #C0D0E4;*/
    border-left:0 !important;
    border-right:0 !important;
    border-top:0 !important;
    border-bottom: 1px solid #ededed !important ;
}

.table-curved th {
    border-top: none !important;
    border-bottom: 1px solid #dcdbdb !important;
    background-color: #fff  !important;
}
.table-curved tfoot {
    font-weight: bold;
}
.table-curved th:first-child {
    border-radius: 6px 0 0 0;
}

.table-curved th:last-child {
    border-radius: 0 6px 0 0;
}

.table-curved th:only-child {
    border-radius: 6px 6px 0 0;
}

.table-curved tr:last-child td:first-child {
    border-radius: 0 0 0 6px;
}

.table-curved tr:last-child td:last-child {
    border-radius: 0 0 6px 0;
}


.table-listagem thead {
    /*background-color: #44619D; */
    background-color: #C0D0E4;
    color: #486C8F;
}

.caixa_busca_tabela {
    float: right;
}

#grupo_botoes_cadastro {
    float: left;
}

.navbar {
    /* background-color: #193048; */
    border-radius: 0px;
    margin: 0 0 0 0;
}

.dropdown-menu li {
    /* background-color: #c3dcf4;
    background-color: #E3EAF3;
    */
}

.dropdown ul {
    /* background-color: #c3dcf4;
    background-color: #E3EAF3;*/
    /*background-color: #E3EAF3;*/
    background-color: #f3f8fe;
}

.topo_pg_include {
    background-color: #F3F8FE;
    display: block;
    padding: 3px 10px 15px 15px;
    margin-left: -15px;
    margin-right: -15px;
}

.topo_pg_include h1 {
    font-size: large;
    font-weight: bold;
}

.descricao_tela {
    color: #517795;
}

.container-fluid {
    padding-top: 0;
}

.drop_nome_estabelecimento a {
    color: red;
}

#NFCe_produtosInsere {
    background-color: #F3F8FE;
    /*padding: 3px 3px 3px 3px; */
    padding-left: 3px;
    border: 1px solid #0A2B54;
}

.navbar-default {
    background-color: #193048;
    /*background-color: #197091; */
    border-color: #25476b;
}


/* hoje */

.navbar-default .navbar-nav {
}

.navbar-default .navbar-brand {
    color: #ffffff;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: #ffffff;
}

.navbar-default .navbar-text {
    color: #ffffff;
}

.navbar-default .navbar-nav > li > a {
    color: #ffffff;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #ffffff;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #ffffff;
    background-color: #25476b;
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    color: #ffffff;
    background-color: #25476b;
}

.navbar-default .navbar-toggle {
    border-color: #25476b;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: #25476b;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #ffffff;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
    border-color: #ffffff;
    background-color: #193048;
}

.navbar-default .navbar-link {
    color: #ffffff;
}

.navbar-default .navbar-link:hover {
    color: #ffffff;
}

@media (max-width: 767px) {
    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #ffffff;
    }

    .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
    .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
        color: #ffffff;

    }

    .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
    .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
    .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
        color: #ffffff;
        background-color: #25476b;

    }

    .dropdown ul {
        /* background-color: #c3dcf4;
        background-color: #E3EAF3;*/
        /*background-color: #E3EAF3;*/
        background-color: #f3f8fe;
    }

    ul.dropdown {
        z-index: 1000;
    }

    /* Fix para navbar mobile - força cor de fundo #193048 */
    .navbar-default,
    .navbar-default .navbar-header,
    .navbar,
    #menu-top {
        background-color: #193048 !important;
    }

    /* Garante que o navbar colapsado também tenha a cor correta */
    .navbar-default .navbar-collapse {
        background-color: #193048 !important;
    }
}


/* Tooltip */

.tip-custom + .tooltip > .tooltip-inner {
    background-color: #8AC007;
    color: #FFFFFF;
    border: 1px solid green;
    padding: 15px;
    font-size: 20px;
}

.tip-custom-discreto + .tooltip > .tooltip-inner {
    background-color: #8AC007;
    color: #FFFFFF;
    border: 1px solid green;
    padding: 10px;
    font-size: 16px;
}


/* Tooltip on top */

.tip-custom + .tooltip.top > .tooltip-arrow {
    border-top: 5px solid green;
}


/* Tooltip on bottom */

.tip-custom + .tooltip.bottom > .tooltip-arrow {
    border-bottom: 5px solid blue;
}


/* Tooltip on left */

.tip-custom + .tooltip.left > .tooltip-arrow {
    border-left: 5px solid red;
}

#MenuNomeUsuario {
    color: #486C8F;
    background-color: #f3f3f3;
    display: block;
    text-align: center;
    font-weight: bold;
}


/*container da lista | container of the list*/

.autocomplete {
    cursor: pointer;
    border: 1px solid #999;
    border-top: none;
    background: #eee;
}


/*items da listagem | items of the list*/

.autocomplete .normal {
    border-top: 1px solid #999;
}


/*selectedionado item | selected item*/

.autocomplete .selected {
    background: #ddf;
}


/*caracteres que combinaram | characters that matched*/

.autocomplete .highlited {
    font-weight: bold;
    color: #008;
}

.navbar-text {
    color: #f3f3f3;
    background-color: #193048;
    display: inline;
}

.ui-datepicker-trigger {
    display: inline;
    padding: 0px;
    padding-left: 3px;
    vertical-align: baseline;
    position: relative;
}

.grid-totaliza:not(input) {
    font-family: 'Roboto', sans-serif;
}

.grid-totaliza {
    border-top: 1px solid #395a7a
}

.grid-totaliza .row {
    margin-top: 30px;
}

.grid-totaliza input {
    text-align: right
}

.grid-totaliza .valor {
    font-weight: bold;
}

.label-lancamento-total {
    color: #395a7a;
    font-family: 'Roboto', sans-serif;
    font-size: large;
    font-weight: bold;
    margin-top: 10px;
    padding-left: 0;
    margin-left: 0;
}

.expansivo:focus {
    width: 350px;
}

.importSessao {
    font-family: 'Roboto', sans-serif;
    border-bottom: 1px solid #395a7a;
    color: #000;
    padding-bottom: 1em;
    margin-top: 0;
}

.importSessao legend {
    color: #0A2B54;
    margin-bottom: 0;
}

.table-itens tbody {
    background-color: #fff;
    border: none
}

.table-itens thead {
    background-color: #000;
    color: #fff;
}

.el_vlr_total_superior_lcto {
    font-size: x-large
}

.listTableAppearance li {
    list-style-type: none;
}

textarea {
    resize: none;
}

#grupo_botoes_inferiores {
    padding-bottom: 2%;
}

.glyphicon-asterisk {
    color: #ffcc01;
}

#table_carteira_cobranca td {
    border: 1px solid #C0D0E4;
}

#table_carteira_cobranca thead {
    /*background-color: #44619D; */
    background-color: #C0D0E4;
    color: #486C8F;
}

fieldset {
    border: 1px solid #ddd !important;
    margin: 0;
    xmin-width: 0;
    padding: 10px;
    position: relative;
    border-radius: 4px;
    background-color: #f5f5f5;
    padding-left: 10px !important;
}

legend {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 0px;
    width: 35%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 5px 5px 10px;
    background-color: #ffffff;
}

#table_lancamento_contrato td {
    border: 1px solid #C0D0E4;
}

#table_lancamento_contrato thead {
    /*background-color: #44619D; */
    background-color: #C0D0E4;
    color: #486C8F;
}

#table_parcelas_contrato td {
    border: 1px solid #C0D0E4;
}

#table_parcelas_contrato thead {
    /*background-color: #44619D; */
    background-color: #C0D0E4;
    color: #486C8F;
}

#table_arquivos_contrato td {
    border: 1px solid #C0D0E4;
}

#table_arquivos_contrato thead {
    /*background-color: #44619D; */
    background-color: #C0D0E4;
    color: #486C8F;
}

#table_lancamento_orcamento td {
    border: 1px solid #C0D0E4;
}

#table_lancamento_orcamento thead {
    /*background-color: #44619D; */
    background-color: #C0D0E4;
    color: #486C8F;
}

#table_parcelas_orcamento td {
    border: 1px solid #C0D0E4;
}

#table_parcelas_orcamento thead {
    /*background-color: #44619D; */
    background-color: #C0D0E4;
    color: #486C8F;
}

.cell-result-listagem {
    /*color: #235797;*/
    color: #486C8F;
}

.cell-result-deleted-item {
    /*color: #235797;*/
    text-decoration: line-through
}


#loadingGrande {
    /*position:fixed;*/
    /*padding:0; */
    padding-bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    background: url(/imagens/loading-big.gif) no-repeat scroll center 7px;
    /*background-position: top;*/
}

.nfce-disabled-text {
    color: grey;
}

.nfce-enabled-text {
    color: #000;
    background-size: 16px 16px;
}

.nfce-success-text {
    color: green;
    padding: 5px 5px 5px 30px;
    background: url(/imagens/checked.svg) no-repeat scroll 7px 7px;
    background-size: 16px 16px;
}

.nfce-error-text {
    color: red;
    font-weight: bold;
    /* padding-left:30px; */
    padding: 5px 5px 5px 30px;
    background: url(/imagens/cancel.png) no-repeat scroll 7px 7px;
}

.smallBoldBalance {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.linha-totalizadora {
    font-weight: bold;
}

#step_2_span_describe_error {
    font-weight: normal;
}

/* Oculta o CNPJ da empresa caso a resolução menor que 1024x768 */
@media screen and (max-width: 1024px) {
    #menu_superior_nome_empresa_acessada {
        display: none;
    }
}

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.vbottom {
    display: inline-block;
    vertical-align: bottom;
    float: none;
}

.text-simple-weight {
    font-weight: normal;
}

.panel-financeiro-wrapper {
    display: flex;justify-content: space-between;
}
.panel-financeiro-wrapper .panel{
    flex: 0.3;

}
.panel-financeiro-wrapper .panel:nth-child(n + 2){
    flex: 0.3;
    margin-left: 2%;
}


@media (max-width: 760px) {
    .panel-financeiro-wrapper {
        flex-direction:column;
    }
}
/* Solução para tamanho do modal de sweetalert2 */
.swal2-popup {
    font-size: 1.5rem !important;
}
.swal2-icon {
    width: 5em !important;
    height: 5em !important;
    border-width: .25em !important;
}
/* Fim da solução para tamanho do modal de sweetalert2 */

/* Estilos para div de envio WhatsApp */
div[id^="div-whatsapp-"] {
    position: absolute;
    background: #ffffff;
    border: 2px solid #25D366;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(37, 211, 102, 0.1);
    z-index: 1000;
    min-width: 350px;
    max-width: 450px;
    margin-top: 5px;
    margin-left: 5px;
    animation: slideDownFadeIn 0.3s ease-out;
    top: 100%;
    left: 0;
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

div[id^="div-whatsapp-"]::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #25D366;
}

div[id^="div-whatsapp-"] .whatsapp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

div[id^="div-whatsapp-"] .whatsapp-header .whatsapp-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    color: #25D366;
}

div[id^="div-whatsapp-"] .whatsapp-header .whatsapp-title {
    font-size: 16px;
    font-weight: bold;
    color: #25D366;
    margin: 0;
    flex: 1;
}

div[id^="div-whatsapp-"] .btn-close-popup {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 10px;
}

div[id^="div-whatsapp-"] .btn-close-popup:hover {
    background-color: #f0f0f0;
    color: #333;
}

div[id^="div-whatsapp-"] .btn-close-popup:active {
    background-color: #e0e0e0;
}

div[id^="div-whatsapp-"] .btn-close-popup svg {
    width: 20px;
    height: 20px;
}

div[id^="div-whatsapp-"] label {
    display: block;
    margin-top: 8px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

div[id^="div-whatsapp-"] label:first-of-type {
    margin-top: 0;
}

div[id^="div-whatsapp-"] .form-control {
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 6px 8px;
    font-size: 13px;
}

div[id^="div-whatsapp-"] .form-control:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
    outline: 0;
}

div[id^="div-whatsapp-"] #opcoes_anexos {
    background-color: #f8f9fa;
    border-radius: 6px;
    margin: 8px 0;
    padding: 10px 0 !important;
    border: 1px solid #e0e0e0;
}

div[id^="div-whatsapp-"] #opcoes_anexos .row {
    margin-bottom: 6px;
}

div[id^="div-whatsapp-"] #opcoes_anexos .row:last-child {
    margin-bottom: 0;
}

div[id^="div-whatsapp-"] #opcoes_anexos input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

div[id^="div-whatsapp-"] #opcoes_anexos label {
    margin: 0;
    font-weight: normal;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
    word-wrap: break-word;
}

div[id^="div-whatsapp-"] button.btn-success,
div[id^="div-email-"] button.btn-success {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

div[id^="div-whatsapp-"] button.btn-success {
    background-color: #25D366;
    border-color: #25D366;
}

div[id^="div-whatsapp-"] button.btn-success:hover:not(:disabled) {
    background-color: #20ba5a;
    border-color: #20ba5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

div[id^="div-email-"] button.btn-success:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

div[id^="div-whatsapp-"] button.btn-success:active:not(:disabled),
div[id^="div-email-"] button.btn-success:active:not(:disabled) {
    transform: translateY(0);
}

div[id^="div-whatsapp-"] button.btn-success:disabled,
div[id^="div-email-"] button.btn-success:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

div[id^="div-whatsapp-"] button.btn-success.btn-loading,
div[id^="div-email-"] button.btn-success.btn-loading {
    opacity: 0.8;
    cursor: wait;
}

div[id^="div-whatsapp-"] .btn-send-icon,
div[id^="div-email-"] .btn-send-icon {
    display: inline-flex;
    align-items: center;
}

div[id^="div-whatsapp-"] .btn-send-spinner,
div[id^="div-email-"] .btn-send-spinner {
    display: none;
}

div[id^="div-whatsapp-"] .btn-send-spinner,
div[id^="div-email-"] .btn-send-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

div[id^="div-whatsapp-"] .btn-send-spinner .glyphicon-spin,
div[id^="div-email-"] .btn-send-spinner .glyphicon-spin,
div[id^="div-whatsapp-"] .btn-send-spinner .glyphicon-refresh,
div[id^="div-email-"] .btn-send-spinner .glyphicon-refresh {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Estilos para div de envio Email (consistência visual) */
div[id^="div-email-"] {
    position: absolute;
    background: #ffffff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(0, 123, 255, 0.1);
    z-index: 1000;
    min-width: 350px;
    max-width: 450px;
    margin-top: 5px;
    margin-left: 5px;
    animation: slideDownFadeIn 0.3s ease-out;
    top: 100%;
    left: 0;
}

div[id^="div-email-"]::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #007bff;
}

div[id^="div-email-"] .email-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

div[id^="div-email-"] .email-header .email-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    color: #007bff;
}

div[id^="div-email-"] .email-header .email-title {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    margin: 0;
    flex: 1;
}

div[id^="div-email-"] .btn-close-popup {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 10px;
}

div[id^="div-email-"] .btn-close-popup:hover {
    background-color: #f0f0f0;
    color: #333;
}

div[id^="div-email-"] .btn-close-popup:active {
    background-color: #e0e0e0;
}

div[id^="div-email-"] .btn-close-popup svg {
    width: 20px;
    height: 20px;
}

div[id^="div-email-"] label {
    display: block;
    margin-top: 8px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

div[id^="div-email-"] label:first-of-type {
    margin-top: 0;
}

div[id^="div-email-"] .form-control {
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 6px 8px;
    font-size: 13px;
}

div[id^="div-email-"] .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

div[id^="div-email-"] #opcoes_anexos {
    background-color: #f8f9fa;
    border-radius: 6px;
    margin: 8px 0;
    padding: 10px 0 !important;
    border: 1px solid #e0e0e0;
}

div[id^="div-email-"] #opcoes_anexos .row {
    margin-bottom: 6px;
}

div[id^="div-email-"] #opcoes_anexos .row:last-child {
    margin-bottom: 0;
}

div[id^="div-email-"] #opcoes_anexos input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

div[id^="div-email-"] #opcoes_anexos label {
    margin: 0;
    font-weight: normal;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
    word-wrap: break-word;
}

div[id^="div-email-"] button.btn-success {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

div[id^="div-email-"] button.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Responsividade para divs de envio */
@media (max-width: 768px) {
    div[id^="div-whatsapp-"],
    div[id^="div-email-"] {
        min-width: 280px;
        max-width: 90vw;
        left: 0 !important;
        right: 0;
        margin-left: auto;
        margin-right: auto;
    }
    
    div[id^="div-whatsapp-"] > div[style*="display: flex"],
    div[id^="div-email-"] > div[style*="display: flex"] {
        flex-direction: column !important;
    }
}

/* A regra de CSS abaixo ajusta uma ROW para ser alinhada pelo topo no bootstrap 3*/
.valing-top > [class*='col-'] {
    display: table; /* Faz a célula se comportar como uma célula de tabela */
   /* height: 100%;*/   /* Define altura completa */
}

.btn-primary-outline {
    color: #007bff !important;
    background-color: #fff !important;
    border-color: #007bff !important;
}
/* on hover */
.btn-primary-outline:hover {
    color: #fff !important;
    background-color: #007bff !important;
    border-color: #007bff !important;
}