/* ==================================================================== */
/*                              GLOBAIS                                 */
/* ==================================================================== */
main { min-height: calc(100vh - 133px); }

@media Screen and (min-width: 577px) and (max-width: 992px) {
    main { min-height: calc(100vh - 122px); }
}

@media Screen and (max-width: 576px) {
    main { min-height: calc(100vh - 112px); }
    .w-auto { width: 100% !important; }
}

.btn-primary {
    color: #f8f9fa !important;
}

.not-shadow:focus {
    outline: 0 !important;
    box-shadow: 0 !important;
    /* border: 0 none; */
}

.bg-gray { background: #5c5c5c !important; }
.bg-gray-light { background: #e0e0e0 !important; }

/* Eliminar o spin up e down do input date */
input[type=date]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    display: none;
}

/* Troca a cor cinza do input que tem a tag readonly pela cor branca */
.form-control:disabled.not-block, .form-control[readonly].not-block {
    background-color: #fff !important;
}

/* ==================================================================== */
/*                               GENÉRICOS                              */
/* ==================================================================== */
.require::after { content: " *"; color: #dc3545; }

.box-shadow { box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .05), 0 4px 8px 0 rgba(0, 0, 0, .05); }

.hover:hover { background: #f8f9fa; }

.gradiente {
    background: #ca9a00;
    background: linear-gradient(45deg, #ffffff 0%, #bbbbbb 38%, #808080 89%);
}

.ativo::after, .inativo::after {
    content: "";
    display: inline-block;
    position: relative;
    top: 2px;
    width: 1em;
    height: 1em;
    background: #28a745;
    border-radius: 50%;
    margin-right: 5px;
}

.inativo::after { background: #dc3545; }

.lead-mini { font-size: .95rem; font-weight: 300; }

.display-5 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

@media screen and (max-width: 576px) {
    .display-5 {
        font-size: 1.5rem;
    }
}

.a-none { text-decoration: none !important; }

.mx-m-15 {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.img-btn {
    max-width: 110px;
    max-height: 126px;
}

.hover-light:hover {
    background: #e6e8e9 !important;
}

.hover-green:hover {
    background: #199737 !important;
}

.no-decoration {
    text-decoration: none !important;
}

tr.no-hover > td,
.no-hover {
    background: none !important;
}

.mx-remove-15 {
    margin-left: -15px;
    margin-right: -15px;
}

/* ==================================================================== */
/*                           PÁGINA - SAIR                              */
/* ==================================================================== */
.page-sair {
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
}

/* ==================================================================== */
/*                           PÁGINA - LOGIN                             */
/* ==================================================================== */
.page-login {
    width: 100vw;
    height: 100%;
    overflow-x: hidden;
}

.login {
    width: 350px;
    min-height: 280px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 40px;
    background-color: #ffffff;
    border-radius: 5px;
}

@media screen and (max-width: 576px) {
    .login {
        width: 340px;
        margin: 10px auto;
    }
}

.page-login body {
    background: transparent;
}

.login form {
    padding: 30px;
}

.logo-login {
    display: block;
    max-height: 120px;
    margin: 0 auto;
}

.bg-login {
    display: block;
    max-height: 83px;
    margin: 0 auto;
}

/* ==================================================================== */
/*                           PÁGINA - MENU                              */
/* ==================================================================== */
.img-menu {
    min-height: 100px;
}

.size-img {
    max-width: 150px;
    max-height: 100px;
    padding: 10px 20px;
}

.menu {
    width: 100%;
}

@media screen and (max-width: 576px) {
    .none {
        display: none !important;
    }
}

/* ==================================================================== */
/*                               BOTÕES                                 */
/* ==================================================================== */
.btn-adm {
    background: #f8f9fa !important;
}

.btn-adm:hover {
    background: #f0f0f0 !important;
    text-decoration: none !important;
}

.btn-mini {
    padding: .15rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

@media screen and (max-width: 767px) {
    .btn-mobile {
        padding: .5rem .75rem !important;
        margin-bottom: 8px !important;
    }
}

/* ==================================================================== */
/*                           IMPRIMIR                                   */
/* ==================================================================== */
@media print {
    .not-print {
        display: none !important;
    }

    body.modal-open main {
        opacity: 0;
    }
    
    .modal-open .modal {
        overflow-x: visible;
        overflow-y: visible; 
    }

    .modal {
        position: absolute !important;
        top: -30px;
        right: auto;
    }
    
    .modal-content {
        border: none !important; 
        border-radius: 0 !important;
        outline: none !important;
    }
    
    .modal-dialog {
        width: 100vw !important;
    }
    
    .modal-backdrop.show {
        opacity: 0 !important;
    }

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

    .bg-print {
        color: #000 !important;
        background: #fff !important;
    }

    .border-print {
        border: 1px solid #c9c9c9 !important;
    }
}

/* ==================================================================== */
/*                           OVERFLOW ESTILO                            */
/* ==================================================================== */
@media screen and (max-width: 1230px) {
    .overflow-list { overflow-x: scroll; }
}

@media screen and (max-width: 991px) {    
    .indicador-dir-lg {
        margin-top: 30px;
    }

    .indicador-dir-lg::before {
        content: '\2192';
        font-size: 1.2em;

        position: absolute;
        display: block;
        margin-top: -30px;
        margin-left: calc(100% - 70px);

        color: #dc3545;

        -webkit-animation: indicador-direita 1s ease-in-out infinite;
        animation: indicador-direita 1s ease-in-out infinite;
    }
}

.overflow-not { overflow-x: initial; }
.overflow { overflow-x: scroll !important; }

.overflow.limit-800,
.overflow-list.limit-800 {
    max-height: 800px;
}

@keyframes indicador-direita {
    0%, 100% { transform: translate(4px, 0); }
    50% { transform: translate(-4px, 0); }
}

.cursor-pointer {
    cursor: pointer;
}

/* ----------------------------------------- */
/* ESTILOS BTN Loading                       */
/* ----------------------------------------- */
.btn-loading > svg {
    width: 16px;
    fill: #f8f9fa;
    animation: loading 2s linear infinite;
}

@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@-ms-keyframes loading {
    0% { -ms-transform: rotate(0deg); }
    100% { -ms-transform: rotate(360deg); }
}

@-moz-keyframes loading {
    0% { -moz-transform: rotate(0deg); }
    100% { -moz-transform: rotate(360deg); }
}

@-webkit-keyframes loading {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

/* ----------------------------------------- */
/* ESTILOS BTN FLOAT TOP                     */
/* ----------------------------------------- */
.float-btn {
    right: 0;
    bottom: 0;
    margin: 40px 15px;
    width: 45px;
    height: 45px;
    z-index: 99;
    position: fixed;
    cursor: pointer;
    border-radius: 50%;
    background-size: cover;
    display: flex;
    justify-content: center;
    background: #252525; /* IE */
}

svg.arrow {
    width: 25px;
    height: 25px;
    margin-top: 9px;
    fill: #f0f0f0;
}

.float-btn:hover {
    background: #111111; /* IE */
}

/* ==================================================================== */
/*                               TABELA                                 */
/* ==================================================================== */

/* Tabela Simples */
.tabela {
    background: #ffffff;
    width: 100%;
    /* min-width: 600px; */
    margin: 0 auto;
    border-collapse: collapse !important;
}

.tabela caption {
    font-size: 0.9em;
    padding: 0 2px; 
    margin-bottom: 5px;
}

.tabela td,
.tabela th {
    padding: 5px;
    font-weight: normal;
	border: 1px solid #c9c9c9;
    white-space: nowrap !important;
}

.tabela th.warp,
.tabela td.warp {
    white-space: normal !important;
}

.tabela th:empty,
.tabela td:empty { 
    border: none;
}

.tabela tr:hover > td {
    background: #f0f0f0;
}

/* Tabela dentro de Tabela */
.tabela-inside {
    text-align: left;
    padding: 0 !important;
    background: transparent;
}

.tabela-inside table {
    border-collapse: collapse !important;
}

.tabela-inside table {
    width: 100% !important;
}

.tabela-inside th:first-child,
.tabela-inside td:first-child {
    border-left: none;
}

.tabela-inside th:last-child,
.tabela-inside td:last-child {
    border-right: none;
}

.tabela-inside th,
.tabela-inside td {
    padding: 5px 5px;
    border-top: none;
    border-bottom: none;
    box-sizing: content-box;
    white-space: nowrap !important;
}

.tabela-inside th.warp,
.tabela-inside td.warp {
    white-space: normal !important;
}

.tabela-inside thead + thead,
.tabela-inside tbody + tbody,
.tabela-inside tfoot + tfoot,
.tabela-inside tr + tr {
    border-top: 1px solid #c0c0c0;
}

/* Se houver algum título antes da tabela */
.tabela-inside > p,
.tabela-inside > span {
    display: block;
    padding: 2px 5px;
    text-align: center;
    border-bottom: 1px solid #c0c0c0;
}

/* Remover Bordas das tabelas */
.tabela-bottom-0 td, 
.tabela-bottom-0 th {
    border-bottom: none !important;
}
.tabela-top-0 td, 
.tabela-top-0 th {
    border-top: none !important;
}
.tabela-left-0 td, 
.tabela-left-0 th {
    border-left: none !important;
}
.tabela-right-0 td, 
.tabela-right-0 th {
    border-right: none !important;
}
.tabela-x-0 td, 
.tabela-x-0 th {
    border-bottom: none !important;
    border-top: none !important;
}
.tabela-y-0 td, 
.tabela-y-0 th {
    border-left: none !important;
    border-right: none !important;
}

tr.td-not-border td,
tr.td-not-border th {
    border: none !important;
}

/* Pintar a linha */
tr.bg-light-1 > td {
    background: #bbfff4 !important;
}

tr.bg-light-1:hover > td {
    background: #99e7da !important;
}

/* Tirando as bordar das tabelas */
.tabela.odd tr > td,
.tabela.even tr > td {
    border-color: transparent;
}

/* Addicionando cores em linhas pares ou impares */
.tabela.odd tr:nth-child(odd) > td,
.tabela.even tr:nth-child(even) > td {
    background: #dfdfdf !important;
}

/* mudando a cor do evento hover */
.tabela.odd tr:hover > td,
.tabela.even tr:hover > td {
    background: #a3a3a3;
}