﻿:root {
    --negative: #c30b0b;
    --neutral: #26b5f4;
    --neutral2: #2e445a;
    --positive: #004892;
}

.btn,
button,
.div-as-button {
    background-color: var(--neutral);
    border-color: var(--neutral);
    position: relative;
    display: flex;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: .375rem .75rem;
    padding-left: 2rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .25rem;
    min-height: 2rem;
    max-height: 38px;
    min-width: 5rem;
    border: 1px solid;
    outline: none;
    transition: ease-in-out 200ms;
    color: #fff;
    align-content: center;
    align-items: center;
    justify-content: space-evenly;
}

@media (max-width: 1800px) {
    .btn,
    button,
    .div-as-button {
        font-size: .795rem;
        height: 4rem;
        min-width: 8rem;
        padding: 0rem;
        padding-left: .5rem;
    }

    button:before,
    .div-as-button:before {
        position: absolute;
        top: 30%;
        font: normal normal normal 11px / 1 FontAwesome;
        width: .5rem;
        height: .5rem;
        left: 2px;
    }
}

button[title~="Próximo"] {
    padding-right: 1.5rem;
}

button:after {
    content: attr(title);
    white-space: nowrap;
}

.btn:after,
.div-as-button:after {
    content: attr(title);
    padding-right: 1rem;
}

.btn:before,
button:before,
.div-as-button:before {
    position: absolute;
    top: 25%;
    font: normal normal normal 14px / 1 FontAwesome;
    width: 1rem;
    height: 1rem;
    left: 5px;
}

/* DECLARAÇÃO DE CORES NOS BOTOES */

button[title~="Cancelar"],
button[title~="Excluir"],
button[title~="Desistir"],
button[title~="Limpar"] {
    background-color: var(--negative);
    border-color: var(--negative);
}

button[title~="Voltar"],
button[title~="Imprimir"],
button[title~="Gerar"],
button[title~="Filtrar"],
button[title~="Pesquisar"],
button[title~="Procurar"],
button[title~="Buscar"],
.btn-secondary {
    background-color: var(--neutral);
    border-color: var(--neutral);
}

button[title~="Copiar"]
{
    background-color: var(--neutral2);
    border-color: var(--neutral2);
}

button[title~="Salvar"],
button[title~="Próximo"],
button[title~="Cadastrar"],
button[title~="Atualizar"],
button[title~="Ok"],
button[title~="Enviar"],
button[title~="Confirmar"],
button[title~="Acessar"]
button[title~="Adicionar"] {
    background-color: var(--positive);
    border-color: var(--positive);
}

button:disabled,
button[disabled] {
    border: 1px solid #141e27;
    background-color: #2e445a;
    color: #fff;
    cursor:not-allowed;
}

/* DECLARAÇÃO DOS ICONES */
button[title~="Pesquisar"]:before,
button[title~="Visualizar"]:before,
button[title~="Procurar"]:before,
.btn[title~="Buscar"]:before,
button[title~="Buscar"]:before {
    content: '\f002';
}

button[title~="Voltar"]:before,
.btn[title~="Voltar"]:before {
    content: '\f060';
}

button[title~="Cancelar"],
button[title~="Cancelar"]:before,
.btn[title~="Cancelar"]:before {
    content: '\f00d';
}

button[title~="Desistir"]:before {
    content: '\f00d';
}

button[title~="Indisponível"]:before {
    content: '\f00c';
}

button[title~="Imprimir"]:before,
.btn[title~="Imprimir"]:before {
    content: '\f02f';
}

.btn[title~="Salvar"]:before,
.btn[title~="Atualizar"]:before,
.btn[title~="Ok"]:before,
.btn[title~="Gerar"]:before,
button[title~="Salvar"]:before,
button[title~="Atualizar"]:before,
button[title~="Ok"]:before,
button[title~="Gerar"]:before {
    content: '\f00c';
}

.btn[title~="Cadastrar"]:before,
.btn[title~="Criar"]:before,
.btn[title~="Adicionar"]:before,
button[title~="Cadastrar"]:before,
button[title~="Criar"]:before,
button[title~="Adicionar"]:before {
    content: '\f067';
}

button[title~="Limpar"]:before,
.btn[title~="Limpar"]:before {
    content: '\f00d';
}

button[title~="Upload"]:before,
button[title~="Documento"]:before {
    content: '\f093';
}

button[title~="Próximo"]:before {
    position: absolute;
    content: '\f061';
    left: unset;
    top: .5rem;
    right: 3px;
}

button[title~="Editar"]:before {
    content: '\f044';
}

button[title~="Filtrar"]:before {
    content: '\f0b0';
}

button[title~="Acessar"]:before {
    content: '\f090';
}

button[title~="PDF"]:before {
    content: '\f1c1';
}

.btn[title~="EXCEL"]:before,
button[title~="EXCEL"]:before {
    content: '\f1c3';
}

button[title~="Excluir"]:before {
    content: "\f1f8";
}

button[title~="Histórico"]:before{
    content:"\f1da";
}