@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(364deg);
    }
}

#registros thead td {
    font-weight: bold;
}

#registros thead tr td {
    border-bottom: solid 1px black !important;
}

#registros {
    border: none;
    border-spacing: unset;
}


#registros td {
    padding: 5px 15px;
    text-align: center;
}

.estado {
    display: flex;
    justify-content: center;
}

#t_establecida {
    line-height: 65px;
    height: 80px;
    flex-grow: 2;
    z-index: 2;
}

#estado {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 280px;
    aspect-ratio: 1;
    border: solid 5px #d1d1d1;
    background: #1e1e1e;
    box-sizing: border-box;
    color: white;
    font-weight: bold;
    font-size: 7em;
    font-family: system-ui;
    box-shadow: 0 0 1px 1px black;
    position: relative;
    transition: background .5s ease;
}

#estado.encendido{
    background: darkorange;
}

div#t_ambiente {
    font-size: 0.3em;
    margin-bottom: 1em;
    z-index: 1;
}

.botones_termostato button {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 0.6em;
    height: 16px;
    margin: 0 15px;
    cursor: pointer;
}

.botones_termostato button:hover{
    text-shadow: 0 0 15px white;
}

.botones_termostato {
    height: 0.9em;
    display: flex;
    transform: scaleY(0.5);
    z-index: 2;
}

#loader {
    z-index: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    /* border: solid 2px; */
    background-image: radial-gradient(#1e1e1e 69%, transparent 70%), conic-gradient(transparent 93%, white 98%);
    opacity: 0;
    transition: background-image .5s ease;
}

#estado.encendido #loader{
    background-image: radial-gradient(darkorange 69%, transparent 70%), conic-gradient(transparent 93%, white 98%);
}

#loader.loading{
    animation: loading linear;
    animation-iteration-count: infinite;
    animation-duration: 1s;
    opacity: 1;
}