.sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    background: rgba(10, 22, 17, 0.34);
}

.side-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(320px, 86vw);
    padding: 18px;
    border-right: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateX(-104%);
    transition: transform 180ms ease;
}

.sidebar-open .side-menu {
    transform: translateX(0);
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.side-menu-header h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 1rem;
}

.perfil-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.avatar-perfil {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    border: 1px solid var(--brand-dark);
    background: var(--brand-dark);
    overflow: hidden;
    cursor: pointer;
}

.avatar-perfil:hover {
    border: 1px solid #007f5f73;
    background: #ffffff00;
    opacity: 0.8;
}

.avatar-perfil img{
    width: 100%;
    object-fit: cover;
}

.side-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100px;
    min-height: 38px;
    padding: 0 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.side-login:hover,
.side-login:focus-visible {
    transform: scale(1.04);
    outline: none;
}

.side-sign {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 105px;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid #bdbdbdb7;
    background: var(--surface-muted);
    border-radius: 8px;
    color: var(--brand-dark);
    font: inherit;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.side-sign:hover,
.side-sign:focus-visible {
    border-color: rgba(0, 127, 95, 0.45);
    transform: scale(1.04);
    outline: none;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--brand-dark);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    border-color: rgba(0, 127, 95, 0.45);
    background: var(--surface-muted);
    box-shadow: 0 8px 18px rgba(19, 40, 31, 0.08);
    outline: none;
}

.icon-button span,
.icon-button span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.icon-button span {
    transform: rotate(45deg);
}

.icon-button span::after {
    content: "";
    transform: rotate(90deg);
}

.side-menu-nav {
    display: grid;
    gap: 10px;
    padding-top: 18px;
}

.side-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.side-menu-link:hover,
.side-menu-link:focus-visible {
    border-color: rgba(0, 127, 95, 0.45);
    background: var(--brand);
    color: #fff;
    outline: none;
}

.side-menu-link:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.side-menu-icon {
    position: relative;
    flex: 0 0 auto;
}

.side-menu-icon svg {
    color: #17231d;
    width: 22px;
    height: 22px;
}

.side-menu-link:hover .side-menu-icon svg,
.side-menu-link:focus-visible .side-menu-icon svg {
    color: #fff;
}

.out-div {
    margin: 15px 0 15px 0;
    border-top: 1px solid #c0c0c0e7;
}

.out{
    width: max-content;
    padding-right: 30px;
    background: #f1eded;
}

.out,
.out svg{
    color: #f13636f5;
    border-color: #f13636f5;
}

.section-search{
    display: flex;
    align-items: center;

}

.section-search input{
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #aaaaaa;
    background-color: #ffffff;
    color: #505050;
}

.icone-search {
    padding: 6px;
    color: #505050;
}

.section-search input:hover {
    border-color: #007f5f73;
    box-shadow: 0 4px 8px rgba(19, 40, 31, 0.05);
}

.qr-modal-scrim {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 22, 17, 0.42);
}

.qr-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100;
    display: grid;
    width: min(420px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -48%) scale(0.98);
    transition: opacity 160ms ease, transform 160ms ease;
}

.qr-open .qr-modal {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.qr-modal-header h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 1.1rem;
}

.qr-modal-body {
    display: grid;
    place-items: center;
    padding: 22px;
}

.qr-modal-body img {
    display: block;
    width: min(320px, 100%);
    max-height: min(640px, calc(100vh - 150px));
    object-fit: contain;
}




/* PERFIL USUÁRIO */

.modal_perfil{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000a0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.barra_modal{
    display: flex;
    justify-content:flex-end;
}

.cancelar{
    align-self: flex-end;
    background-color: #bdbdbdb7;
    color: #333333;
    font-size: 16px;
    font-weight: 900;
    border: none;
    padding: 8px 13px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.cancelar:hover {
    background-color: #f33e3e;
    color: #ffffff;
}

.perfil_conteudo{
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #333333;
    padding: 20px;
    min-width: 45%;
    min-height: 100%;
    text-align: center;
    gap: 30px;
}

.perfil_identifica{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px 0 10px;
    gap: 15px;
}

.perfil_texto{
    padding-bottom: 15px;
    font-size: 18px;
    text-wrap: wrap;
}

.file-upload {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

/* Imagem */
.file-upload img {
    position: absolute;
    left: 0;
    width: 100%;
    object-fit: cover;
}


/* Input invisível */
.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Mostrar ao passar o mouse */
.file-upload:hover {
    opacity: 0.8;
}

.perfil_infos{
    font-size: 16px;
}

.perfil_senha_container{
    font-size: 14px;
    margin: 0 20px 0 20px ;
}

.perfil_senha_container label strong {
    font-size: 13px;
}

.perfil_senha_container input{
width:90%;
padding:12px;
margin-top:5px;
border-radius:8px;
border:1px solid #c6c6c6;
font-size:14px;
transition:0.2s;
}

.perfil_senha_container input:focus{
outline:none;
border-color:#145357;
}

.perfil_senha_container p{
    text-align: center;
    text-wrap: wrap;
    font-size:12px;
    margin-top: 2px;
    color: #555555;
}

.senha-pattern {
    margin-top: 3px;
}

.text-muted {
    text-align: center;
}

.text-muted ul{
    margin-left: 6%;
}

.text-muted li{
    text-align: left;
}

.txt-reconect{
    font-size:11px;
}

.btn-visivel{
    position: absolute;
    margin-left: -35px;
    margin-top: 14px;
    cursor: pointer;
    font-size: 18px;
}

.perfil_sim_nao{
    display: flex;
    justify-content: center;
}

#change-btn{
    background-color: #00C2A3;
    font-size: 16px;
    color: #ffffff;
    border: none;
    width: 75%;
    padding: 6px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#change-btn:hover {
    background-color: #0abe76;
}

/* CARD LOGIN */

.login-container{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    padding: 20px;
    min-width: 45%;
    min-height: 100%;
    text-align: center;
    z-index: 99;
}


/* LOGO */

.logo{
margin-bottom:25px;
}

.logo img{
height:70px;
}

.logo h5{
margin-top:6px;
color:#145357;
font-weight:600;
}

.subtitle{
font-size:14px;
color:#777;
margin-bottom:30px;
}

/* INPUTS */

.form-group{
margin-bottom:18px;
text-align:left;
}

.form-group label{
font-size:14px;
font-weight:600;
color:#145357;
}

.form-group input{
width:100%;
padding:12px;
margin-top:5px;
border-radius:8px;
border:1px solid #ddd;
font-size:14px;
transition:0.2s;
}

.form-group input:focus{
outline:none;
border-color:#145357;
}

.erro-msg{
    min-height: 40px;
    text-align: center;
    text-wrap: wrap;
    color: #d41414;
    margin-bottom:5px;
}

.btn-visivel{
    position: absolute;
    margin-left: -35px;
    margin-top: 14px;
    cursor: pointer;
    font-size: 18px;
}

/* BOTÃO */

#auth-btn{
width:100%;
padding:12px;
margin-top:10px;
background:#145357;
color:white;
border:none;
border-radius:8px;
cursor:pointer;
transition:0.3s;
}

#auth-btn:hover{
background:#0f4144;
}

/* ESQUECI SENHA */

.forgot{
margin-top:15px;
font-size:13px;
color:#777;
cursor:pointer;
}

.forgot:hover{
  text-decoration:underline;
}

.forgot a{
  color: inherit;
  text-decoration: none;
}

.side-sign-enter {
    display: flex;
    align-self: center;
    justify-content: center;
    width: 75%;
    margin-top:35px;
    padding: 5px;
    font-size:13px;
    color:#777;
    border: 1px solid #bdbdbdb7;
    background: var(--surface-muted);
    border-radius: 8px;
    color: var(--brand-dark);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.side-sign-enter:hover,
.side-sign-enter:focus-visible {
    border-color: #007f5f73;
    color: #004c34;
    background: #efefef;
    outline: none;
}


.btn-text {
    font-size:16px;
    font-weight:600;
    transition: opacity .3s ease;
}

.loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    -webkit-animation: spin .7s linear infinite;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.loader-text {
    display: none;
}

#change-btn.loading {
    background-color: #0b9860;;
    cursor: progress;
}

#auth-btn.loading {
    background-color: #195047;
    cursor: progress;
}


#change-btn.loading .btn-text {
    display: none;
}

#auth-btn.loading .btn-text {
    display: none;
}


#change-btn.loading .loader {
    display: inline-block;
}

#auth-btn.loading .loader {
    display: inline-block;
}

#change-btn.loading .loader-text{
    display: grid;
    margin-top: 3px;
}


#auth-btn.loading .loader-text {
    display: grid;
    margin-top: 3px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

.required{
    color: red;
}


@media screen and (max-width: 600px){
    .section-search input{
        width: 100px;
    }
    
}