:root {
    --color-primary: #004c6b;
    --color-secondary: #ffe1ce;
    --background-color: #f0f3f4;
    --background-color-secondary: #f9fafe;
    --font-color: #8c95a0;
    --icon-color: #555;

    --color-success: #53AA45;
    --color-canceled: #AA4545;
    --color-edited: #4580AA;

    --font-size: 10px;
}

html {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: var(--font-size);
    color: var(--font-color);
}

body {
    height: 100vh;
    margin: 0;
    background-color: var(--background-color);
}

button {
    outline: none;
}

img {
    image-rendering: high-quality;
}


.poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}



#main {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
}



nav {
    display: flex;
    align-items: center;
    background: var(--color-primary);
    padding: 1rem 2rem;
}

nav #logo {
    max-width: 20rem;
}

nav #visualizar-notificacoes {
    border: none;
    background: none;
    padding: 0;
    color: #fff;
    font-size: 2rem;
}

.contagem-notificacoes {
    display: flex;

    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0.7em;
    min-width: 1rem;
    height: 1rem;
    padding: 0.3rem;
    border: solid 0.2rem var(--color-primary);
    box-sizing: content-box;
    border-radius: 2rem;
    background: #f00;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

nav .avatar-usuario {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 4.5rem;
    height: 4.5rem;
    padding: .5rem;
    border: solid .1rem rgba(0,0,0, .1);
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0, .2);
    font-size: 2rem;
}


.menu-exames .btn-menu {
    position: relative;
    border: none;
    border-radius: 0;
    background: none;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: var(--font-color);
}


/* MENU DESKTOP */

.menu-exames.desktop {
    border-bottom: solid .2rem #0001;
    background: #fff;
}

.menu-exames.desktop .btn-menu {
    padding: 2rem 1rem;
    margin-right: 1rem;
    font-size: 1.6rem;
}

.menu-exames.desktop .btn-menu:last-child {
    margin: 0;
}

.menu-exames.desktop .btn-menu.active {
    color: var(--color-primary);
    border-bottom: solid .2rem var(--color-primary);
}

.menu-exames.desktop .btn-menu .contagem-notificacoes {
    left: auto;
    right: 0;
    top: .5rem;
    border-color: #fff;
}

/* FIM MENU DESKTOP */



/* MENU MOBILE */

.menu-exames.mobile {
    width: 100%;
    display: none;
    border-top: solid .2rem #0001;
    background: #fff;
    z-index: 1;
}

.menu-exames.mobile .btn-menu {
    flex: 1;
    padding: 1rem 0;
    margin: 0 2rem;
    border-top: solid .2rem transparent;
}

.menu-exames.mobile .btn-menu.active {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.menu-exames.mobile .btn-menu i {
    font-size: 3rem;
}

.menu-exames.mobile .btn-menu .contagem-notificacoes {
    left: auto;
    right: 0;
    border-color: #fff;
}

/* FIM MENU MOBILE */


#interface-wrapper {
    overflow: auto;
    flex: 1;
}

#box-flutuante-wrapper {
    display: flex;
    flex-direction: column;
    max-height: 80%;
    position: fixed;
    bottom: 0;
    right: 1rem;
    width: 40rem;
    max-width: 50rem;
    background: #fefefe;
    color: #555;
    font-size: 1.2rem;
    box-shadow: 0 0 .5rem rgba(0,0,0,.5);
    overflow: hidden;
}

#box-correcoes-exames-wrapper,
#box-upload-exames-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}



/*!* DROPDOWN MENU *!*/

.dropdown-wrapper {
    height: 100%;
    position: relative;
    display: inline-block;

    &[disabled] * {
        cursor: default;
        color: #ccc;
    }
}

.dropdown-toggle {
    min-height: 0;
    color: #fff;
    padding: .7rem 1.4rem;
    border: none;
    border-radius: .3rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.dropdown-menu {
    display: none;
    position: fixed;
    background-color: white;
    min-width: 22rem;
    box-shadow: 0 .2rem .4rem rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: .2rem;
    padding: .4rem 0;
    font-size: 1.1rem;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem 1.5rem;
    border: none;
    border-left: solid .2rem transparent;
    border-radius: 0;
    background: none;
    color: #555;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.2s ease;

    &:not([disabled]):hover {
        background-color: rgba(0,0,0, .04);
        border-left: solid .2rem rgba(0,0,0, .06);
    }

    &[disabled] {
        color: #ccc;
    }
}

.dropdown-item .rotulo-icones {
    min-width: 2.23rem;
    display: flex;
    justify-content: center;
}

.dropdown-item .text {
    flex: 1;
}

.dropdown-item .label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: .15rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, .1);
    color: var(--font-color);
    font-size: 1rem;
}

/*!* FIM DROPDOWN MENU *!*/



/* INICIO BOTÃO TOGGLE */

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    /*padding-bottom: 1rem;*/
    /*margin-bottom: 1rem;*/
    /*border-bottom: solid .1rem rgba(0,0,0,.1);*/
}

.toggle-label {
    display: flex;
    align-items: center;
    font-weight: bold;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width:  4rem;
    height: 2rem;
    min-height: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 2rem;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 1.4rem;
    width: 1.4rem;
    left: 0.3rem;
    bottom: 0.3rem;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(2rem);
}

/* FIM BOTÃO TOGGLE */



/* ALTERAÇÕES POPUP (STYLE.CSS)*/

.popup .popup-header {
    background: var(--color-primary);
}

.popup .popup-header h3 {
    padding: 0;
}

.popup .popup-header .fecha-popup {
    padding: 0;
    line-height: normal;
}

.popup .popup-footer {
    padding: 0 1rem 1rem 1rem;
    background: #fafafa;
}

.popup .popup-footer button {
    padding: .3rem .7rem;
    border: none;
    border-radius: 0;
    background: var(--color-primary);
}

.popup#popup-confirmacao-automatizada .fecha-popup {
    background: #012e40;
}


/* FIM ALTERAÇÕES POPUP */



/* ADAPTAÇÕES PARA O APP (FORM.CSS) */

.form-field input, .form-field textarea, .form-field select{
    color: #000;
}

.form-button {
    background: var(--color-primary);
}

/* ADAPTAÇÕES PARA O APP (FORM.CSS) */

.background-primary{
    background: var(--color-primary);
}

.color-primary{
    color: var(--color-primary);
}



@media screen and (max-width: 1024px) and (max-height: 500px) {
    nav #visualizar-notificacoes,
    nav .contagem-notificacoes {
        display: none;
    }

    .menu-exames.desktop {
        display: none;
    }
}

@media screen and (max-width: 720px){
    nav #visualizar-notificacoes,
    nav .contagem-notificacoes {
        display: none;
    }

    .menu-exames.desktop {
        display: none;
    }

    .menu-exames.mobile {
        display: block;
        overflow: hidden;
    }

    #box-flutuante-wrapper {
        max-width: 100%;
        width: 100%;
        right: 0;
    }
}