﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&display=swap');

:root {
    --color-blue-background: #2687E9;
    --color-blue-background-dark: #1c75ce;
    --color-main: #ED1722;
    --color-primary: #102034;
    --color-secondary: #CCCCCC;
    --color-tertiary: #FAFAFA;
    --color-quartenary: #777777;
    --color-success: #3EBC12;
    --color-danger: #EF510E;
    --color-bg-1: #FAFAFA;
    --color-bg-stroke-1: #E5E5E5;
}

body {
    background-color: #FAFAFA;
}

header {
    border-bottom: 1px solid;
    border-color: var(--color-bg-stroke-1);
    background: var(--color-blue-background);
    display: flex;
    min-height: 61px;
}

    header .empresa-info-container {
        padding: 15px;
        overflow: hidden;
        max-width: 300px;
        text-align: center;
    }

    header .burger-icon-container {
        color: white;
        font-size: 30px;
        cursor: pointer;
        padding: 15px;
        display: none;
        width: 100%;
    }


    header nav img.logo {
        height: 40px;
        margin: 10px;
    }

    header nav .nav-item {
        display: inline;
    }

    header nav a.btn {
        color: white;
        font-weight: bold;
        display: table-cell;
        vertical-align: middle;
        height: 61px;
        border-top: 4px solid var(--color-blue-background);
        border-radius: 0;
    }

    header .logout-link {
        padding: 15px;
    }

        header .logout-link h4 {
            color: white;
            font-weight: bold;
        }

/*Dropdown*/
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    background: var(--color-blue-background-dark);
    position: absolute;
    min-width: 200px;
    left: 0px;
    display: none;
    overflow: hidden;
    z-index: 2 !important;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown:hover a.btn {
    color: white;
    border-top-color: white;
    background: var(--color-blue-background-dark);
}

.nav-dropdown-menu a {
    width: 100%;
    display: block;
    padding: 15px;
    color: white;
}

    .nav-dropdown-menu a:hover {
        background: #EEE;
    }

/*Responsividade do menu*/
@media screen and (max-width: 768px) {

    header {
        height: 61px;
        overflow: hidden;
        display: block;
    }

    .header-menu-shown {
        height: auto;
        overflow: visible;
    }

    header .empresa-info-container {
        display: none;
    }

    header .burger-icon-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: bold;
    }

        header .burger-icon-container p {
            font-size: 14px;
            color: white;
        }

    header nav a.btn {
        width: 100%;
        display: block;
        text-align: left;
    }

    header .logout-link {
        display: block;
        width: 100%;
        text-align: right;
    }

    .nav-dropdown-menu {
        position: relative;
        width: 100%;
    }
}


/*Select2*/
span.select2-selection {
    border-color: #e7e7e7 !important;
    height: 33px !important;
    border-radius: 3 !important;
    padding: .375rem .75rem !important;
    border: solid 1px var(--color-quartenary);
}

    span.select2-selection > span {
        padding-left: 0 !important;
    }


span.select2-selection__arrow {
    height: 100% !important;
}

    span.select2-selection__arrow > b {
        left: .375rem !important;
    }

/*Dashboard*/
.dashboard-hover:hover {
    background-color: rgb(251, 251, 251);
}

/*Img effects*/
.img-overlay {
    position: relative;
    display: block;
}

    .img-overlay:hover .overlay-content {
        display: block;
    }

.overlay-content {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .4);
    position: absolute;
    top: 0px;
    left: 0px;
    display: none;
}

.overlay-center {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
}

.overlay-content .overlay-button {
    color: rgb(229, 229, 229);
    cursor: pointer;
    font-size: 30px;
    background-color: transparent;
    border: none;
}

    .overlay-content .overlay-button:hover {
        color: white;
    }

/*Full screen img*/
.modal-visible {
    display: block;
}

.modal-container {
    position: fixed;
    background-color: rgba(0, 0, 0, .4);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: auto;
    padding: 30px;
    z-index: 1;
    display: none;
}

.modal-img {
    max-height: 110%;
    position: relative;
    left: 60%;
    transform: translate(-50%, 0%);
}

.modal-close-btn {
    position: relative;
    float: right;
    background-color: transparent;
    border: none;
    font-size: 50px;
    color: white;
}

@media screen and (max-width: 500px) {
    .modal-img {
        transform: translate(-50%, 0%)
    }

    .modal-container {
        padding: 15px;
    }
}

label.control-label {
    width: 100%;
}

/*modal*/

.modal {
    background-color: rgba(0, 0, 0, .5);
}

span.select2-container {
    width: 100% !important;
}


/*tab-pane*/

.tab-pane {
    max-width: 100%;
}


.image-input-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.image-input {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*para tables que nao usam DataTables. É pra evitar que o conteudo da table estoure*/
.fixTable th {
    width: 1px !important;
    white-space: nowrap;
}

/**/
.fixTable td {
    width: 1px !important;
    white-space: nowrap;
}

/*Ajusta automaticamente a table, impedindo que a coluna quebre, APENAS para tables que utilizam DataTables*/
.dataTables_wrapper > div:nth-child(2) {
    overflow: auto;
}
/********************************************/
body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}