@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
}

.all {
    display: flex;
}

.main {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color: #d8d8d8;
}

#sidebar {
    width: 90px;
    min-width: 70px;
    z-index: 1000;
    transition: all .25s ease-in-out;
    background: #37474f;
    display: flex;
    flex-direction: column;
}

#sidebar.expand {
    width: 200px;
    min-width: 200px;
}

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

.toggle-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #fff;
    display: block;
    font-size: 0.8rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover {
    background-color: #192024;
    border-left: 3px solid #fff;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #192024;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

body > div > div > div.text-center > div > a > img {
    width: 360px;
}

/*#sidebar > div > button > img {
    width: 160px;
    height: 98px;
    margin-left: -61px;
}*/

#sidebar > div > button > i {
    margin-left: 6px;
}

#sidebar > ul > li > a > span {
    font-weight: 600;
}

.logo {
    margin-top: -49px;
}

body > div > div > footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
}

/*body > div > div > div.text-center {
    height: 185px;
    border-bottom: 3px solid #37474f;
    margin-bottom: 20px;
}*/

body > div > div > hr {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgb(206 206 207), rgb(55 71 79), rgb(206 206 207));
    margin-top: -25px;
    height: 3px;
}

/*body > div > div > div.col-md-8.mx-auto.justify-content-center.align-items-center.flex-column > div {
    max-height: 400px;
    overflow: auto;
    border-radius: 15px;
}*/

#table-medicamentos {
    margin-top: 10px;
}

#table-medicamentos thead, #table-categorias thead {
    position: sticky;
    top: 0;
    background-color: #4a5568;
    color: #FFFFFF;
}

div.main > .container {
    text-align: -webkit-center;
}

.risco {
    padding: 5px;
    text-transform: uppercase;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 10px;
}

.compativel {
    background-color: #198754;
}

.criterioso {
    background-color: #ffc107;
    color: black !important;
}

.contraindicado {
    background-color: #dc3545;
}

/* DataTables - Categorias */
#table-categorias_length > label > select,
#table-medicamentos_length > label > select {
    border-radius: 10px;
    border-color: #37474f;
    background: white;
}

#table-categorias_filter > label > input[type=search],
#table-medicamentos_filter > label > input[type=search] {
    border-radius: 10px;
    margin-bottom: 5px;
    border-color: #37474f;
    background: white;
}

#table-categorias > thead > tr > th:first-child,
#table-medicamentos > thead > tr > th:first-child {
    border-radius: 10px 0px 0px 0px;
}
#table-categorias > thead > tr > th:last-child,
#table-medicamentos > thead > tr > th:last-child {
    border-radius: 0px 10px 0px 0px;
}
#table-categorias > tbody > tr:last-child > td:last-child,
#table-medicamentos > tbody > tr:last-child > td:last-child {
    border-radius: 0px 0px 10px 0px;
}
#table-categorias > tbody > tr:last-child > td:first-child,
#table-medicamentos > tbody > tr:last-child > td:first-child {
    border-radius: 0px 0px 0px 10px;
}

/*#leadsTable_length > label > select,
#leadsTable_filter > label > input[type=search] {
         border-radius: 10px;
         padding: 5px;
}*/