/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 12-oct-2017, 21:38:13
    Author     : Antonio
*/
/****************/
/*Tabla**********/
/****************/
.divobjetos{
    display: inline-table;
    height: 100px;
    min-height: 100px;
    max-height: 100px;
    margin-bottom: 10px;
    margin-top: 0;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    border-radius: 10px 10px 10px 10px;
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    border: 1px solid #ababab;
}
.divobjetos input{
    display: inline-block;
    width: 100%;
    max-width: 100%;
}
.slider-container {
    display: flex;
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Alinear horizontalmente */
    gap: 2px; /* Espaciado entre elementos */
    width: 100%;
    height: 30px;
}

.btn-slider {
    border: none;
    background: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    width: 20px;
    height: 20px;
    line-height: 20px;
    display: flex;
    align-items: center; /* Centrar el contenido del botón */
    justify-content: center;
}

.btn-slider:active {
    transform: scale(1.2);
}
@media(max-width:200px){
    .divobjetos{
        width: 100%;
    }
}
@media(min-width:201px) AND (max-width:1000px){
    .divobjetos{
        width: calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
        margin: 2px;
    }
    .objetogrupobotones{
        width: calc(100% - 4px) !important;
        max-width: calc(100% - 4px) !important;
        margin: 2px;
    }
}
@media(min-width:1001px) AND (max-width:1280px){
    .divobjetos{
        width: calc(33% - 10px);
        margin-right: 10px;
    }
}
@media(min-width:1281px) {
    .divobjetos{
        width: calc(25% - 10px);
        margin-right: 10px;
    }
}
/*#tablatrs td > input, #tablatrs td > div, #tablatrs td > div > select{
    width: 100%;
}*/
#tablatrs td > input, #tablatrs td > div{
    width: 100%;
}
#tablatrs #dirgrupo{
    min-width: 150px;
}
.tablabotonth{
    text-align: center;
    width: 20px;
    padding-left: 0px !important;
    padding-right: 0px !important;
}
.tablabotontd{
    text-align: center;
    width: 20px;
    padding: 3px !important;
    vertical-align: middle !important;
}
.tablabotontd button{
    width: 30px;
    height: 30px;
}

.objetoswitch{

}
.objetoslider{

}
.objetolabel{
    border: none;
    width: 50%;
    margin-left: 25%;
}
.objetolabel:after{
    content:' ';
    display:block;
    border:1px solid  #dcdcdc;
}
.objetoboton{
    border: none;
    padding: 0;
}
.objetoboton button{
    margin: 0;
    white-space: normal;
}
.objetodato input{
    text-align: center;
}
.objetogrupobotones{

}
.objetostepper{

}
.objetostepper input{
    width:45px;
    overflow: visible;
}
.btn-group{
    text-align: center;
}
.tddescrip{
    font-weight: bold;
}
.tdimagen{
    height:100px;
}
.eltdimagen{
    text-align: right;
    width: 0px;
}
.eltdimagen::after {
    display: block;
    position: relative;
    margin-top: -100px;
    height: 100px;
    content: '';
}
/*@media (prefers-color-scheme: dark) {
    .eltdimagen::after {
        background-image:linear-gradient(to left, rgba(0,0,0,0), rgba(0,0,0,1));
    }
    select{
        background-color:  dimgray !important;
    }
}*/
/*@media screen and (prefers-color-scheme: light) {
    .eltdimagen::after {
        background-image:linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,1));
    }
    select{
        background-color:  white !important;
    }
}
@media screen and (prefers-color-scheme: dark) {
    .eltdimagen::after {
        background-image:linear-gradient(to left, rgba(0,0,0,0), rgba(0,0,0,1));
    }
    select{
        background-color:  dimgray !important;
    }
}*/
/*.tdimagen::after {
  text-align: right;
  background-image: linear-gradient(to right, transparent 0%, white 100%);
  display: block;
  
  position: relative;
  
  margin-top: -150px;
  height: 150px;
  width: 100%;
  content: ''; 
}*/

/****************/
/*Switch animado*/
/****************/
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    display:none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
.slider-value {
    font-size: 1em;
    font-weight: bold;
    color: #333;
}
input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
/****************/
/*Loading animado*/
/****************/
.loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    width: 25px;
    height: 25px;
    margin-left: 10px;
    margin-top: -5px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
#elloader{
    position: absolute;
    opacity: 0;
}

/****************/
/*Slider animado*/
/****************/
.rangeslider {
    -webkit-appearance: none;
    width: 100%;
    height: 20px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    margin-bottom: 0px;
    flex-grow: 1;
}

.rangeslider:hover {
    opacity: 1;
}

.rangeslider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.rangeslider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}
input[type="range"] {
    display: inline-block !important;
    width: 100%;
}
/****************/
/*Index         */
/****************/
/*@media (max-width:600px){
    #contenido{
        margin: 10px;
    }
    #contenidofav{
        margin: 10px;
    }
    body, html{ 
        font-size: 20px;
    } 
}
@media (min-width:601px){
#contenido{
    margin: 10px;
    opacity: 0;
}
#contenidofav{
    margin: 10px;
    opacity: 0;
}
#blogout{
    opacity: 0;
}
nav#navmenu{
    opacity: 0;
}
nav#navmenuadmin{
    opacity: 0;
}
#cabecera{
    opacity: 0;
}    
#elloader{
    opacity: 1;
}
}*/
/****************/
/*Perfil        */
/****************/
.inputmostrardato{
    border:0;
    font-weight:bold;
}
.inputmostrardatostep{
    border:0;
    font-weight:bold;
    margin:4px;
    margin-top: 0px;
}
.objetostepper p{
    margin-bottom: 0px !important;
}
.botonpulsar{
    width: 100%;
    height: 100px;
    vertical-align: middle;
}

.botontemporizar{
    margin-top: -35px;
    margin-left: 50px;
}

/******************/
/*LOGIN*/

html,
body {
    /*background: #efefef;*/
    padding: 10px;
    font-family: 'Varela Round';
}
/*=== 2. Anchor Link ===*/
a {
    color: #aaaaaa;
    transition: all ease-in-out 200ms;
}
a:hover {
    color: #333333;
    text-decoration: none;
}
/*=== 3. Text Outside the Box ===*/
.etc-login-form {
    color: #919191;
    padding: 10px 20px;
}
.etc-login-form p {
    margin-bottom: 5px;
}
/*=== 4. Main Form ===*/
.login-form-1 {
    max-width: 300px;
    border-radius: 5px;
    display: inline-block;
}
.main-login-form {
    position: relative;
}
.form-group {
    max-width: 400px;
    margin: 10px auto;
    text-align: center;
}
.login-form-1 .form-control {
    border: 0;
    box-shadow: 0 0 0;
    border-radius: 0;
    background: transparent;
    color: #555555;
    padding: 7px 0;
    font-weight: bold;
    height:auto;
}
.login-form-1 .form-control::-webkit-input-placeholder {
    color: #999999;
}
.login-form-1 .form-control:-moz-placeholder,
.login-form-1 .form-control::-moz-placeholder,
.login-form-1 .form-control:-ms-input-placeholder {
    color: #999999;
}
.login-form-1 .form-group {
    margin-bottom: 0;
    border-bottom: 2px solid #efefef;
    padding-right: 20px;
    position: relative;
}
.login-form-1 .form-group:last-child {
    border-bottom: 0;
}
.login-group {
    background: #ffffff;
    color: #999999;
    border-radius: 8px;
    padding: 10px 20px;
}
.login-group-checkbox {
    padding: 5px 0;
}
/*=== 5. Login Button ===*/
.login-form-1 .login-button {
    position: absolute;
    right: -25px;
    top: 50%;
    background: #ffffff;
    color: #999999;
    padding: 11px 0;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    border: 5px solid #efefef;
    border-radius: 50%;
    transition: all ease-in-out 500ms;
}
.login-form-1 .login-button:hover {
    color: #555555;
    transform: rotate(450deg);
}
.login-form-1 .login-button.clicked {
    color: #555555;
}
.login-form-1 .login-button.clicked:hover {
    transform: none;
}
.login-form-1 .login-button.clicked.success {
    color: #2ecc71;
}
.login-form-1 .login-button.clicked.error {
    color: #e74c3c;
}
/*=== 6. Form Invalid ===*/
label.form-invalid {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    display: block;
    margin-top: -25px;
    padding: 7px 9px;
    background: #777777;
    color: #ffffff;
    border-radius: 5px;
    font-weight: bold;
    font-size: 11px;
}
label.form-invalid:after {
    top: 100%;
    right: 10px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: transparent;
    border-top-color: #777777;
    border-width: 6px;
}
/*=== 7. Form - Main Message ===*/
.login-form-main-message {
    background: #ffffff;
    color: #999999;
    border-left: 3px solid transparent;
    border-radius: 3px;
    margin-bottom: 8px;
    font-weight: bold;
    height: 0;
    padding: 0 20px 0 17px;
    opacity: 0;
    transition: all ease-in-out 200ms;
}
.login-form-main-message.show {
    height: auto;
    opacity: 1;
    padding: 10px 20px 10px 17px;
}
.login-form-main-message.success {
    border-left-color: #2ecc71;
}
.login-form-main-message.error {
    border-left-color: #e74c3c;
}
/*=== 8. Custom Checkbox & Radio ===*/
/* Base for label styling */
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked,
[type="radio"]:not(:checked),
[type="radio"]:checked {
    /*position: absolute;
    left: -9999px;*/
}
[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label,
[type="radio"]:not(:checked) + label,
[type="radio"]:checked + label {
    position: relative;
    padding-left: 25px;
    padding-top: 1px;
    cursor: pointer;
}
/* checkbox aspect */
[type="checkbox"]:not(:checked) + label:before,
[type="checkbox"]:checked + label:before,
[type="radio"]:not(:checked) + label:before,
[type="radio"]:checked + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 17px;
    height: 17px;
    border: 0px solid #aaa;
    background: #f0f0f0;
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
/* checked mark aspect */
[type="checkbox"]:not(:checked) + label:after,
[type="checkbox"]:checked + label:after,
[type="radio"]:not(:checked) + label:after,
[type="radio"]:checked + label:after {
    position: absolute;
    color: #555555;
    transition: all .2s;
}
/* checked mark aspect changes */
[type="checkbox"]:not(:checked) + label:after,
[type="radio"]:not(:checked) + label:after {
    opacity: 0;
    transform: scale(0);
}
[type="checkbox"]:checked + label:after,
[type="radio"]:checked + label:after {
    opacity: 1;
    transform: scale(1);
}
/* disabled checkbox */
[type="checkbox"]:disabled:not(:checked) + label:before,
[type="checkbox"]:disabled:checked + label:before,
[type="radio"]:disabled:not(:checked) + label:before,
[type="radio"]:disabled:checked + label:before {
    box-shadow: none;
    border-color: #8c8c8c;
    background-color: #878787;
}
[type="checkbox"]:disabled:checked + label:after,
[type="radio"]:disabled:checked + label:after {
    color: #555555;
}
[type="checkbox"]:disabled + label,
[type="radio"]:disabled + label {
    color: #8c8c8c;
}
/* accessibility */
[type="checkbox"]:checked:focus + label:before,
[type="checkbox"]:not(:checked):focus + label:before,
[type="checkbox"]:checked:focus + label:before,
[type="checkbox"]:not(:checked):focus + label:before {
    border: 1px dotted #f6f6f6;
}
/* hover style just for information */
label:hover:before {
    border: 1px solid #f6f6f6 !important;
}
/*=== Customization ===*/
/* radio aspect */
[type="checkbox"]:not(:checked) + label:before,
[type="checkbox"]:checked + label:before {
    border-radius: 3px;
}
[type="radio"]:not(:checked) + label:before,
[type="radio"]:checked + label:before {
    border-radius: 35px;
}
/* selected mark aspect */
[type="checkbox"]:not(:checked) + label:after,
[type="checkbox"]:checked + label:after {
    content: '✔';
    top: 0;
    left: 2px;
    font-size: 14px;
}
[type="radio"]:not(:checked) + label:after,
[type="radio"]:checked + label:after {
    content: '\2022';
    top: 0;
    left: 3px;
    font-size: 30px;
    line-height: 25px;
}
/*=== 9. Misc ===*/
.logo {
    padding: 15px 0;
    font-size: 25px;
    color: #aaaaaa;
    font-weight: bold;
}
/*Topbar*/
#energyw{
    margin-top: 0px;
    color: #0099ff;

}
#titulo{
    margin-top: 0px;
    float: left;
    display: none;
}
div#topbar{
    position: relative;
    width: 100%;
    margin-bottom: 50px;
}
@media (max-width: 700px) {
    #pusuario{
        display:none;
    }
    #cabecera h2{
        font-size: 20px;
        padding-top: 5px;
    }
}
@media (min-width: 700px) {
    #pusuario{
        float: right;
        margin-top: 6px;
        margin-right: 20px;
        margin-bottom: 10px;
        opacity: 0;
    }
    #cabecera h2{
        font-size: 30px;
    }
}



#blogout{
    margin-top: -5px;
    margin-right: 5px;
    float: right;
}
/*Desplegable*/
nav {
    background:#FFF;
    float:left;
    z-index: 1002;
}
nav ul {
    text-align:left;
    float: left;
    margin: 0px;
    z-index: 1002;
}
nav ul li {
    float:left;
    display:inline;
    margin: 0px;
    z-index: 1002;
}
nav ul li :hover {
    background:#E6E6E6;
    z-index: 1002;
}
nav ul li a {
    display:block;
    padding:0px 0px;
    color:#444;
    margin: 0px;
    z-index: 1002;
}
nav ul li ul {
    position:absolute;
    left: 14px;
    width:140px;
    background:whitesmoke;
    margin: 0px;
    z-index: 1002;
}
nav#navmenuadmin ul li ul {
    position:absolute;
    left: 5px;
    width:140px;
    background:whitesmoke;
    margin: 1px;
    z-index: 1002;
}
nav ul li ul li {
    margin-left: -40px;
    width:140px;
    z-index: 1002;
}
nav ul li ul li a {
    display:block;
    margin: 0px;
    padding:15px 10px;
    color:#444;
    z-index: 1002;
}
nav ul li ul li :hover a {
    margin-left: -40px;
    background:#F7F7F7;
    z-index: 1002;
}
nav ul li ul li a span {
    pointer-events: none;
    margin-left: 0px;
    font-size: 25px;
}
nav ul li ul.fallback {
    display:none;
    z-index: 1002;
}
nav ul li :hover ul.fallback {
    display:block;
    z-index: 1002;
}
.fallback{
    margin: 100px;
}
nav#navmenu{
    opacity: 0;
    width: 45px;
    height: 40px;
    margin-top: -5px;
    margin-left: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    color: #333;
    background-color: #fff;
    border-color: #ccc;
    border-radius: 3px;
    padding: 0;
    z-index: 1002;
}
#ulnavmenu{
    margin-top: 7px;
    margin-left: 9px;
    padding: 0px;
    z-index: 1002;
}

nav#navmenuadmin{
    width: 45px;
    height: 40px;
    margin-top: -5px;
    margin-left: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    color: #333;
    background-color: #fff;
    border-color: #ccc;
    border-radius: 3px;
    padding: 0;
    z-index: 1002;
}
#ulnavmenuadmin{
    margin-top: 7px;
    margin-left: 9px;
    padding: 0px;
    z-index: 1002;
}

#cabecera{
    text-align: center;
}

/*Gráficos*/
#divgrafico1{
    min-height: 500px;
    height: 500px;
}

/*General*/
div#popupgeneral{
    background: #FFFFFF;
    min-width: 200px;
    width: 80%;
    height: auto;
    box-shadow: 10px 10px 2000px black;
    border-radius:0.5em;
    position: fixed;
    padding: 10px;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 1001;
    text-align: center;
    display:none;
    overflow-y:scroll;
    max-height: 95%;
    text-align: center;
}
div#popupgeneral > div{
    display: inline-block;
    width:100%;
}
#botoncerrarpopup{
    background: red;
    position: fixed;
    display:none;
    top: 5%;
    left: 50%;
    -webkit-transform: translate(-50%, -5%);
    -moz-transform: translate(-50%, -5%);
    -ms-transform: translate(-50%, -5%);
    -o-transform: translate(-50%, -5%);
    transform: translate(-50%, -5%);
    z-index: 1002;
}
.highlight {
    background-color: lightgray;
}
.okhighlight {
    background-color: green;
}
.errorhighlight {
    background-color: red;
}
#cronselector{
    display: table-cell;
    vertical-align: middle;
    /*height: 30px;*/
}
#cronselector ul{
    white-space: normal;
    z-index: 1000;
}
.table-responsive{
    overflow-y: auto;
}
.labelmin{
    border: 2px solid lightblue;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    display: inline-block;
}
.labelmax{
    border: 2px solid red;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    display: inline-block;
}
.labelavg{
    border: 2px solid orange;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    display: inline-block;
}
/*select{
    background: unset;
    border:unset;
    border-radius:unset;
    width:unset;
    visibility: visible;
    -webkit-appearance: listbox;
}
option{
    background: unset;
    border:unset;
    border-radius:unset;
    width:unset;
    visibility: visible;
    -webkit-appearance: listbox;    
}*/
.mismoalto{
    height: 46px;
}
/* Tablas responsivas */
@media (max-width: 768px) {
    .responsiva table, .responsiva thead, .responsiva tbody, .responsiva th, .responsiva td, .responsiva tr {
        display: block;
    }

    .responsiva thead {
        display: none; /* Oculta los encabezados */
    }

    .responsiva tr {
        margin-bottom: 10px;
        border: 3px solid #ddd;
        padding: 10px;
    }

    .responsiva td {
        /*display: flex;*/
        justify-content: space-between;
        padding: 5px;
        border: none !important;
    }

    .responsiva td::before {
        content: attr(data-label);
        font-weight: bold;
    }
    .responsiva td {
        white-space: normal !important;
        height: auto !important;
        width: 100% !important;
        /*border-right: 1px solid #ddd !important;*/
    }
    .responsiva td select{
        width: 100% !important;
    }
    .responsiva td>div{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .responsiva .tablabotontd div {
        display: flex;
        gap: 5px;
        width: 100%;
    }
    .responsiva .big-checkbox {
        width: 20px;
        height: 20px;
    }
    .responsiva .tablabotontd button {
        width: 40px;
        height: 40px;
    }
}

.bootbox .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

