:root {
    --cor-primaria: #025782;
    --cor-secundaria: #028a48;
    --border-radius: 1rem;
}

.system_color {
    color: var(--cor-primaria);
}

/* loading */

.first-loading {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-border {
    color: var(--cor-primaria);
}

/* loading */

/* scrollbar */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: white;
}

::-webkit-scrollbar-thumb {
    background: #b9b9b9;
}

/* scrollbar */

body {
    background-color: #f0f2f5;
    color: #000000;
    font-family: "Nunito", sans-serif;
    font-size: 100%;
}

label {
    margin-bottom: 0.5rem !important;
    opacity: 0.8 !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

input,
button {
    border-radius: var(--border-radius) !important;
}

.input-group input {
    border-radius: 0 !important;
}

main {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
}

/* MENU */

.sidebar {
    position: relative;
    left: 0;
    height: 100vh;
    width: 280px;
    background-color: var(--cor-primaria);
    padding: 1rem 1rem 1rem 1rem;
    transition: left, width 400ms;
    overflow: hidden;
}
.sidebar.close {
    left: -280px;
}

@media (max-width: 767px) {
    .sidebar {
        position: absolute;
        max-width: 80vw;
        left: -280px;
        transition: left 400ms;
        z-index: 1000;
        border-right: 1px solid var(--cor-secundaria);
    }
    .sidebar.open {
        left: 0;
    }
    .content-header .btn-menu-close.sidebar-open {
        margin-left: 70vw;
    }

    .content-header {
        margin-bottom: 1rem;
    }
}
@media (max-width: 376px) {
    .content-header .btn-menu-close.sidebar-open {
        margin-left: calc(70vw + 1rem);
    }
}

.sidebar-header {
    width: 100%;
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-header img {
    height: 85%;
    max-width: 80%;
    object-fit: contain;
}

.menu {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    list-style: none;
    margin-top: 1rem;
}
.menu-item {
    width: 100%;
    position: relative;
    margin-bottom: 0.5rem;
}
.menu-link {
    color: white !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    transition: background-color 400ms;
    border-radius: var(--border-radius);
    font-weight: 600 !important;
}
.menu-item.has-sub .menu-link:after {
    content: "\f107";
    font-family: "Font Awesome 5 Pro";
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    transition: transform 400ms;
}
.menu-item.has-sub .menu-link.open::after {
    transform: rotate(180deg);
}
.menu-link:hover {
    background-color: var(--cor-secundaria) !important;
}
.menu-link .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-link .description {
    line-height: 1;
}

.sub-menu {
    list-style: none;
    padding-left: 3.5rem;
    overflow: hidden;
    transition: height 400ms;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.sub-menu a:hover {
    color: var(--cor-secundaria);
}

.sub-menu-item {
    margin-bottom: 1rem;
    font-weight: 600;
}
.sub-menu-item:last-child {
    margin-bottom: 0;
}
.sub-menu-item a {
    color: white;
    text-decoration: none;
    transition: margin-left 400ms;
}
.sub-menu-item a:hover {
    margin-left: 0.3rem;
}

/* MENU */

/* CONTENT */
.content {
    height: 100vh;
    overflow-y: auto;
}
.content-header {
    width: 100%;
    height: 8vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.content-header .btn-menu-close {
    background-color: transparent !important;
    border: none !important;
    color: var(--cor-secundaria) !important;
    font-size: 1.75rem;
    padding: 0;
    transition: all 0.4s;
}
.content-header .user-data {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.content-header .user-data h5 {
    font-weight: 600;
    cursor: pointer;
}
@media (max-width: 767px) {
    .content-header .user-data h5 {
        font-size: 2rem;
        color: var(--cor-primaria);
        line-height: 1;
    }
}

.dropdown-user {
    position: absolute;
    right: 0;
    top: -50vh;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    transition: top 400ms ease-in-out;
    padding: 1rem;
    z-index: 1000;
}
.dropdown-user.active {
    top: 2rem;
}
.dropdown-user h6 {
    font-weight: 700;
    font-size: 0.8rem;
    opacity: 0.7;
    max-width: 170px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.dropdown-user button {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background-color 400ms;
}
.dropdown-user button:hover {
    background-color: var(--cor-primaria) !important;
}
.dropdown-user button .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-logout {
    color: red !important;
}
/* CONTENT */

/* CARDS */
.cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
}
/* CARDS */

/* BOTÕES */

.btn {
    background-color: var(--cor-primaria) !important;
    border-color: var(--cor-primaria) !important;
    color: white;
    transition: background-color, color 400ms;
}
.btn:hover {
    background-color: transparent !important;
    color: var(--cor-primaria);
}

.page-btns {
    display: flex;
    gap: 1rem;
}

.btn-close-confirm {
    background-color: #dee2e6 !important;
    color: black !important;
}

.btn-close-confirm:hover {
    background-color: #ced4da !important;
    color: black !important;
}

.btn-confirm-delete {
    background-color: red !important;
    color: white !important;
}

.btn-confirm-delete:hover {
    background-color: #b30000 !important;
    color: white !important;
}

/* BOTÕES */

/* TABELA */
table {
    width: 100%;
    background-color: white;
    color: black !important;
    border-radius: var(--border-radius);
}
table tr {
    transition: background-color 400ms ease-in-out;
}
table tr:hover {
    cursor: pointer;
    background-color: #e0e0e0 !important;
}
table tr th:first-child {
    border-top-left-radius: 0.5rem;
}
table tr th:last-child {
    border-top-right-radius: 0.5rem;
}
table tbody tr.disabled-line {
    opacity: 0.7;
    pointer-events: none;
}
table tr td p {
    margin-bottom: 0;
    overflow: hidden;
    white-space: break-spaces;
}
.table-bordered {
    border: 1px solid #dee2e6;
}
.table thead th {
    border-bottom: 2px solid #dee2e6;
}
.table-bordered td,
.table-bordered th {
    border: 1px solid #dee2e6;
}
.table td,
.table th {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}
.pagination .paginate_button .page-link {
    color: var(--cor-primaria) !important;
    background-color: white !important;
    border: 0;
    border-radius: 0;
}
.pagination .paginate_button.previous .page-link {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}
.pagination .paginate_button.next .page-link {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}
.page-item.active .page-link {
    background-color: var(--cor-primaria) !important;
    border-radius: 0;
    color: white !important;
}
/* TABELA */

/* MODAL */

.modal-content {
    border: 0 !important;
    border-radius: var(--border-radius);
    background-color: white;
    position: relative;
}
.modal-header {
    border-bottom: 1px solid var(--cor-secundaria);
}

.modal-header p {
    margin: 0;
    font-weight: 700;
    opacity: 0.5;
    line-height: 1;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.modal-body {
    background-color: #f0f2f5;
    max-height: 65vh;
    overflow: auto;
}
@media (min-width: 375px) {
    .modal-body {
        max-height: 65vh;
        overflow: auto;
    }
}
@media (min-width: 1367px) {
    .modal-body {
        max-height: 75vh;
        overflow: auto;
    }
}
.modal-footer {
    border-top: 1px solid var(--cor-secundaria);
}

.check-whatsapp {
    margin-left: auto;
    line-height: 1;
}
.check-whatsapp label {
    font-size: 0.9rem !important;
}
/* MODAL */

@media (max-width: 767px) {
    .dataTables_filter input[type="search"] {
        width: 80% !important;
    }
}
