@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
}
ul,ol{
    list-style: none;
}
a, a:link, a:visited {
    text-decoration: none;
    cursor: pointer;
    color:#BAC5C8;
}
input:focus, select:focus, textarea:focus{
    outline: none;
}
button{
    border: none;
    cursor: pointer;
}
.mainlogin{
    width: 100%;
    height: 100vh;
    background: url('https://apptest.sbs/Vistas/img/core/portada1.jpg');
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login{
    width: 340px;
    height: 500px;
    background-color: #ffffff79;
    z-index: 1000;
    border-radius: 20px;
}
.header-login{
    width: 100%;
    height: 120px;
    background-color: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-login{
    position: relative;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-login{
    width: 90%;
    height: 220px;
    background-color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 3px;
    border-radius: 8px;
    padding-top: 35px;
}
.form-login figure{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -24%;
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 50%;
}
.main-login p{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    font-weight: bold;
    color: #fff;
    font-size: 12px;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-style: italic;
}
.form-login figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.input-form{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.input-form.remember{
    margin-top: 6px;
    width: 80%;
}
.input-form.remember label{
    font-size: 12px;
}
#password{
    cursor: pointer;
}
#reset{
    cursor: pointer;
}
.input-form i{
    font-size: 20px;
}
.form-login .inputTxt{
    width: 50%;
    padding: 3px 0;
    padding-left: 10px;
}
.form-login button{
    background-color: #9E393C;
    width: 100px;
    height: 30px;
    border-radius: 5px;
    color: #fff;
    margin-top: 6px;
}
.header-login img{
    height: 80%;
    object-fit: contain;
}
.mainlogin::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #00000065;
}
.bar{
    background-color: #262D32;
}
.navbar{
    width: 100%;
    height: 50px;
    background-color: #22282C;
    display: grid;
    grid-template-columns: 230px auto;
    grid-template-rows: 100%;
}
.navbar figure{
    width: 100%;
    height: 100%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar figure img{
    height: 100%;
    object-fit: contain;
}
.navbar .mainbar{
    color:#fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
}
.maindash{
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 100%;
    width: 100%;
    height: calc(100vh - 50px);
}

.sidebar{
    width: 230px;
    transition: width 0.3s ease;
    overflow: hidden;
}
.sidebar.open{
    width: 0px;
    overflow: hidden;
}

.maincontent{
    background-color: #EDF0F5;
}

.profile{
    padding: 10px 0;
    width: 100%;
    height: 220px;
    background-color: #252B2F;
    margin-bottom: 20px;
}

.personal-data{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    color: #fff;
}

.personal-data figure{
    width: 45px;
    height: 54px;
    border-radius: 50%;
}
.personal-data figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
        border-radius: 50%;
}
.personal-data > p{
    width: 120px;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    gap: 8px;
}
.data{
    color: #76CA99;
}
.info{
    color: #74BBEB;
}
.institucional-data{
    display: flex;
    flex-direction: column;
    color:#fff;
    font-size: 12.6px;
    padding: 20px 10px 0 40px;
    gap: 10px;
}
.institucional-data a{
    color: #D38534;
}
.sidebar > p{
    background-color: #1D2226;
    color: #fff;
    font-size: 12px;
    padding: 15px;
}
.main-options{
    display: flex;
    flex-direction: column;
}
.main-options .option{
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 14px;
}

.main-options .option a{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
}
.main-options .option:hover a{
    color:#fff;
}
.main-options .option:hover{
    border-left: 2px solid #fff;
}
.main-options .option a::after{
    content: '>';
    position: absolute;
    font-size: 16px;
    right: 15px;
}
#menu{
    cursor: pointer;
}
.menu{
    display: flex;
    gap: 10px;
}
.noti{
    cursor: pointer;
}
.close figure{
    pointer-events: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}
.close figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.noti{
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 5px;
}
.noti strong{
    pointer-events: none;
}
.noti i{
    pointer-events: none;
}
.dialog{
    width: 230px;
    height: 200px;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    right: 0px;
    visibility: hidden;
}
.dialog.open{
    bottom: -200px;
    visibility: visible;
    opacity: 1;
}
#cantidad {
    position: absolute;
    bottom: -5px;
    right: -8px;
    width: 4px;
    height: 4px;
    padding: 8px;
    font-size: 10px;
    border-radius: 50%;
    height: 50%;
    background-color: rgb(255, 99, 71);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scanner {
      width: 320px;
      height: 200px;
      margin: auto;
      border: 3px solid red; /* área visible */
      position: relative;
    }
    #result {
      margin-top: 20px;
      text-align: center;
    }

/* @media (max-width: 1024px) {
  body {
    font-size: 16px;
    padding: 30px;
  }
} */

@media (max-width: 700px) {
  .navbar > figure{
    display: none;
  }
  .navbar{
    display: grid;
    grid-template-columns: 1fr;
  }
}