/* GENERAL */

*, *::before, *::after {
  box-sizing: border-box;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter.ttf') format('truetype');
}



/* LAYOUT */

body{
    display: grid;
    grid-template-columns: 80px auto;
    height: 100vh;
    font-family: 'Inter', sans-serif;
    font-size: 1.15em;
    font-weight: 400;
    background-color: rgb(250,250,250);
    margin: 0 auto;
    padding: 0;
    display: none;
}

.bloco{
    background-color: white;
    display: flex;
    flex-direction: column;
    row-gap: 0.5em;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #bbbbbb;
    border-radius: 1em;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.15), /* X-offset, Y-offset, blur, color */
        inset 0 2px 4px rgba(255, 255, 255, 0.33);
    padding: 0.5em;
    padding-bottom: 0.8em;
}

.menu{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 1em;
    padding-top: 1em;
    background-color: white;
    border-right: 1px solid #bbbbbb;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.15), /* X-offset, Y-offset, blur, color */
        inset 0 2px 4px rgba(255, 255, 255, 0.33);
}

.opcionMenu {
    display: flex;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    margin-right: auto;
    margin-left: auto;
    object-fit: none;
}

.opcionMenu > * {
    margin: auto;
}

.opcionSeleccionadaMenu a:hover {
    cursor: default;
}

.opcionMenu:not(.opcionSeleccionadaMenu):hover {
    background-color: #bbbbbb;
}

.opcionSeleccionadaMenu {
    filter: brightness(2);
}

.opcionSeleccionadaMenu:hover {
    cursor: default;
}

.contenido{
    display: flex;
    flex-direction: column;
    padding: 15px;
    row-gap: 15px;
}



/* TAGS */

button,
select,
input,
textarea,
table {
    border: 1px solid #afafaf;
    border-radius: 0.75em;
    box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.1);
}

button,
select {
    box-shadow:
        1px 2px 3px rgba(0, 0, 0, 0.1),
        inset 0.2em 0.7em 1em rgba(255, 255, 255, 0.9);
    background-color: #eee;
}

button,
select,
input {
    height: 2.25em;
    font: inherit;
    font-weight: 550;
    line-height: 2em;
}

button{
    margin: auto;
    display: block;
    min-width: 7em;
    cursor: pointer;
}

input,
textarea,
select{
    padding: 0 0.3em 0em 0.3em;
}

textarea{
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
    font-size: 1rem;
    resize: none;
    height: 6em;
}

a {
    color: black;
    text-decoration: none;
}

h1{
    font-weight: 550;
    margin-bottom: 0;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.3em;
}

h2{
    font-size: 1.2em;
    font-weight: 550;
    margin-top: 0;
    margin-bottom: 0.3em;
}

label {
    display: block;
}

table {
    display: table;
    width: 100%;
    background-color: white;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;  
}

table th,
table td {
    padding: 0.3em;
}

table th:not(:last-child) {
    border-right: 1px solid #afafaf;
}

table th {
    border-bottom: 1px solid #afafaf;
}

table tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

thead, tfoot {
    font-weight: 550;
    font-size: 1em;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}



/* CLASSES */

.horizontal{
    display:flex;
    gap: 0.5em;
    align-items: end;
}

.horBox{
    width: 50%;
}

.boton {
    display: flex;
    margin: auto;
    border: 1px solid #434343;
    justify-content: center;
    align-items: center;
    object-fit: none;
    background-color: white;
    cursor: pointer;
    min-width: 32px;
    width: 32px;
    height: 32px;
    border-radius: 0.5em;
}

.boton:hover {
    background-color: rgb(240, 240, 240);
}
 


/* IDs */

#logo{
    display: block;
    width: 100%;
    max-width: 600px;
    margin: auto;
    margin-bottom: 0.5em;
}

#bloqueoLoading {
    display: flex;
    background-color: rgb(255, 255, 255);
    position: fixed;
    left: 80px;
    top: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

#animacionLoading {
  border: 8px solid white;
  border-top: 8px solid #007093;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin: auto;
  animation: spin 1s linear infinite;
  z-index: 9999;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}