/* Estilos generales */
.select2-dropdown.select2-dropdown--below {
    z-index: 9999;
}

body > div.navbar.default-layout {
    z-index: 500;
    background: linear-gradient(120deg, #00afe4, #5d74f0);
}

.dropdown-menu,
.navbar-dropdown {
    z-index: 1300 !important;
}

.mix-label-popup, .mix-input-popup {
    margin-bottom: auto;
    margin-top: auto;
    font-size: 15px
}

.mix-label-popup {
    margin-left: 5%;
    width: 15px;
}

.back-icon-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 5px;
}
.back-icon {
    background-color: #5d5d5d; /* Fondo gris */
    border-radius: 50%; /* Bordes redondeados */
    padding: 10px; /* Espaciado interno */
    cursor: pointer; /* Cambia el cursor al pasar por encima */
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-icon i {
    color: #fff; /* Flecha en blanco */
    font-size: 20px; /* Tamaño de la flecha */
}

.icon-move {
    color: white;
    transition: transform 0.3s ease;
    display: inline-block;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}

/* Media Query para tabletas y pantallas de portátiles */
@media screen and (min-width: 768px) {
    .responsive-mobile {
        max-height: 480px;
    }
}

.popup-overlay {
    /*Hides pop-up when there is no "active" class*/
    visibility: hidden;
    position: fixed;
    left: 0;
    top: 0;
    height: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.custom-overlay {
    display: none;
    width: 100vw;
    height: 1000vh;
    position: fixed;
    opacity: 0.4;
    background-color: black;
    z-index: 1250;
}

#popup-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1250;
    display: none;
}

#permanent-popup-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1250;
    display: none;
}

h4.card-title {
    width: 100%;
}

.hint-text {
    font-style: italic;
}

button.btn {
    cursor: pointer;
    font-size: 12px;
}

.material-button {
    color: #007bff;
    cursor: pointer;
}

/* Estilo href */
.style-href {
    color: #007bff !important;
    cursor: pointer !important;
}
.style-href:hover {
    text-decoration: underline !important;
}
@media (max-width: 400px) {
    .chartjs-render-monitor2 {
        position: relative;
        left: -40px !important;
        min-width: 320px;
        height: 120% !important;
        width: 100% !important;
        margin-bottom: 30px;
    }

    .chartjs-max-width {
        max-width: 100% !important;
    }
}

.openMailer {
    position: fixed;
    z-index: 1000;
    left: 13px;
    bottom: 13px;
    width: 157px;
    height: 50px;
    line-height: 24px;
    color: #fff;
    background: #280095;
    padding: 0px 30px;
    font-size: 15px;
    border-radius: 50px 50px 50px 0px;
    border: 0px;
}

.openMailer-ico {
    position: fixed;
    z-index: 1000;
    left: 53px;
    bottom: 13px;
    display: none;
}
.dashboard-section-select {

}

.dashboard-selectors {
    width: 15%;
}
.dashboard-button {
    width: 25%;
}
#dashboard-switcher-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Espacio entre label y select */
    max-width: fit-content;
    min-width: 250px;
    margin-left: 20px;
}

#dbLabel {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    white-space: nowrap;
}

#dashboard-switcher {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    background: #f8f9fa;
    cursor: pointer;
}

#dashboard-switcher:hover {
    background: #eceff1;
}

#dashboard-switcher-container select:focus {
    outline: none;
    box-shadow: 0px 0px 5px rgba(75, 73, 172, 0.3);
}


#dashboard-switcher-container-small {
    position: fixed;
    width: 450px;
    top: 10px;
    z-index: 1300;
    left: 28px;
    margin: 9px 20px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    width: 153px;
}

select.pretty-select {
    padding-left: 15px;
    border-radius: 0.25em;
    background-color: #fff;
    background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
    border: none;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: inherit;
    line-height: inherit;
    display: grid;
    grid-template-areas: "select";
    align-items: center;
}


select.pretty-select-small {
    padding-left: 15px;
    border-radius: 0.25em;
    background-color: #fff;
    background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
    border: none;
    margin: 0;
    font-family: inherit;
    font-size: 10px;
    cursor: inherit;
    line-height: inherit;
    display: grid;
    grid-template-areas: "select";
    align-items: center;
    width: 130px;
}

select.pretty-select::after {
    content: "";
    width: 0.8em;
    height: 0.5em;
    background-color: #777;
    clip-path: polygon(100% 0%, 0 0%, 50% 100%);
    grid-area: select;
    justify-self: end;
}

a.context-info {
    cursor: help;
}

a.context-info > span {
    font-size: 18px !important;
}

.popup-overlay.active {
    visibility: visible;
    height: 100%;
}

.popup-content2.active {
    visibility: visible;
}

.popup-content2 {
    /*Hides pop-up content when there is no "active" class */
    visibility: hidden;
    position: absolute;
    left: 25%;
    top: 15%;
    width: 60%;
    z-index: 2000;
}

.content-grid-container {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
}

.content-grid-container .content-grid-content.column {
    margin: 5px;
}

.content-grid-card-section {
    padding: 0.5% 0.5%;
    border-radius: 20px;
    width: 33%;
}

.content-grid-content {
    border-radius: 10px;
    background-color: white;
}

.sub-content-grid-card {
    background-color: unset;
}

.textFilter {
    font-size: 16px;
    font-size: max(16px, 1em);
    font-family: inherit;
    padding: 0.25em 0.5em;
    background-color: #fff;
    border: 2px solid #8b8a8b;
    border-radius: 4px;
}

.footer-status-tag {
    display: flex;
    align-self: end;
    flex-grow: 1;
}

a.fill-div {
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

.no-display {
    display: none;
}

.margin-left-20 {
    margin-left: 20px;
}

.margin-left-15 {
    margin-left: 15px;
}

.bordered-card {
    border: 2px solid rgba(0, 0, 0, .125);
}

.bordered-card.round-bordered {
    border-radius: 10px;
}

/* Para la generación de tablas */
.table-responsive th.no-display, .table-responsive td.no-display {
    display: none;
}

/* Para los popups */
#report_settings {
    display: none;
    width: 500px;
    position: fixed;
    overflow: auto;
    will-change: transform;
    top: 0;
    left: 0;
    transform: translate3d(200px, 80px, 0px);
    border: 1px solid #d3d4d5;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.13);
    visibility: visible;
    z-index: 1300;
}
 .map-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 9999;
        display: none;
        justify-content: center;
        align-items: center;
    }
    .map-popup-content {
        background: white;
        padding: 15px;
        border-radius: 8px;
        position: relative;
        width: 80%;
        max-width: 700px;
    }
    .close-map-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: red;
    background-color: rgba(0,0,0,1);
    padding: 10px;
    cursor: pointer;
    z-index: 10001;
    width: 40px; 
    height: 40px; 
    text-align: center;
    line-height: 20px;
}
    .close-map-popup:hover {
        background-color: rgba(128,128,128);
}
#map-container {
    height: 400px;
    width: 100%;
}

#body_report .tab-content #tipo-datos-container input {
    display: none;
}

#body_report .tab-content label.form-check-label {
    cursor: pointer;
}

#body_report .tab-content .form-radio-container {
    width: 55%;
    margin-top: 10px;
    margin-bottom: 12px;
}

#body_report .tab-content .form-radio-container > div {
    height: 20px;
    margin: 20px 0;
}

#body_report .tab-content .form-radio-container .form-radio {
    margin-top: 0;
    margin-bottom: 0;
}

.circle_calendar {
    background-color: #44aade;
    height: 24px;
    width: 24px;
    border-radius: 22px;
    float: right;
    position: absolute;
    right: 14px;
    top: 1px;
}

.popup-content-card {
    position: absolute;
    left: 25%;
    top: 15%;
    width: 60%;
    z-index: 20;
}

.img-button.img-button-round {
    height: 30px;
    border: 10px solid #0c85d0;
    border-radius: 10px;
}

.img-button {
    cursor: pointer;
    background: #0c85d0;
    height: 30px;
    aspect-ratio: 1;
    border: 5px solid #0c85d0;
}

button#download_report {
    float: right;
    margin: 5px 10px 0 0;
}

#body_report {
    padding: 8px 15px;
}

#body_report > .tab-content div.form-group > div.col-form-label {
    display: inline-block;
    width: 45%;
    padding-left: 12.5px;
}

#body_report > .tab-content div.form-group > div.input-container {
    width: 55%;
}

#body_report > .tab-content div.form-group {
    margin-bottom: 0.7rem;
}

#body_report div.input-container.select2-input-container {
    padding: 5px 0;
}

#body_report > .tab-content div.form-group .regular-input {
    width: 180px;
    height: 36px;
}

.tab-content.tab-content-basic > div {
    padding: 15px 0 8px 0;
}

.nav-tabs .nav-item a.nav-link {
    color: #495057;
}

.generic-popup {
    background-color: transparent;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filters-history {
    display: flex;
    width: 60%;
    margin-bottom: 2%
}

#filtro-clientes-hist {
    margin: 0;
    width: 34%;
}

#filtro-centros-hist {
    margin: 0;
    width: 50%;
}

#filtro-instal-hist {
    margin: 0;
    width: 34%;
}

#filtro-dev-hist {
    margin: 0;
    width: 34%;
}

@media (max-width: 770px) {
    .filters-history {
        width: 50%;
        display: block;
    }

    #filtro-clientes-hist {
        width: 100%;
    }

    #filtro-centros-hist {
        width: 100%;
    }

    #filtro-instal-hist {
        width: 100%;
    }

    #filtro-dev-hist {
        width: 100%;
    }

    #filtro-sensor-hist {
        display: flex;
        justify-content: center;
    }
    #report_settings {
        width: 350px;

        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        min-height: 600px;
    }
}

#filtro-clientes-gestor {
    padding: 0;
    display: flex;
    width: 50%;
    min-width: 180px;
}

#filters-gestor {
    display: flex;
}

#filtro-clientes-center {
    padding: 0;
    display: flex;
    width: 50%;
    min-width: 180px;
}

#filters-center {
    display: flex;
    width: 36%;
}

#scrollerMap {
    padding: 0px 5px 0px 5px;
    margin-left: 10%;
}

@media (max-width: 900px) {
    #filtro-clientes-gestor {
        display: flex;
        width: 75%;
        min-width: 180px;
        margin: 10px 0px 10px 0px;
    }

    #filters-gestor {
        display: flex;
        width: 100%;
    }

    #filter-gestor-text-container {
        width: 100%;
    }

    #filtro-clientes-center {
        display: flex;
        width: 75%;
        min-width: 180px;
        margin: 10px 0px 10px 0px;
    }

    #filters-center {
        display: flex;
        width: 100%;
    }

    #filter-center-text-container {
        width: 100%;
    }

    #filtro-clientes-install-container {
        margin-top: 10px !important;
    }

    #filtro-center-install-container {
        margin-top: 10px !important;
    }
}

@media (max-width: 550px) {
    #filtro-clientes-gestor {
        display: flex;
        width: 75%;
        min-width: 180px;
        margin: 10px 0px 0px 0px;
    }

    #filters-gestor {
        display: flex;
        width: 100%;
    }

    #filter-gestor-text-container {
        width: 100%;
    }

    #filters-gestor_company {
        margin-bottom: 10px;
    }

    #filtro-clientes-center {
        display: flex;
        width: 75%;
        min-width: 180px;
        margin: 10px 0px 10px 0px;
    }

    #filters-center {
        display: flex;
        width: 100%;
    }

    #filter-center-text-container {
        width: 100%;
    }

    #filtro-clientes-install-container {
        margin-top: 10px !important;
    }

    #filtro-center-install-container {
        margin-top: 10px !important;
    }
    #report_settings {
        width: 350px;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        min-height: 600px;
    }
}

@media (max-width: 750px) {

}


@media (max-width: 780px) {
    .generic-popup {
        width: 80%;
    }
}

img.close {
    cursor: pointer;
    width: 15px;
    height: 15px;
    right: 30px;
    top: 22px;
    position: absolute;
}

.generic-popup.big-popup {
    max-width: 90vw;
    width: 700px;
}

.selectable-link {
    cursor: pointer;
}

.dropdown-menu a {
    cursor: pointer;
}

.popup-info-tag {
    float: right;
    margin: 2px 25px;
    display: none;
    color: #fb2929;
    font-style: italic;
}

.popup-info-tag.message {
    color: unset;
    display: unset;
}

.buttons-add div.btn-group.dropdown a.custom-dropdown-link {
    color: #1082e6;
    cursor: pointer;
}

/* Para la paginación */
#pagination {
    width: 100%;
}

#pagination > div.pages-selector {
    width: 70%;
}

#pagination > div.view-all-container {
    width: 40%;
}

#pagination > div.view-all-container > button {
    font-size: 12px;
    height: 49%;
    width: 110px;
    float: right;
    margin-top: 4.5%;
    margin-right: 6%;
}

ul#pag_container li.page-item {
    width: 40px;
}

#pag_container > #first-page, #pag_container > #last-page {
    min-width: 32px;
}

#pag_container ::selection {
    color: currentColor;
    background: transparent;
}

ul#pag_container .page-item.active a {
    z-index: 2;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

ul#pag_container > li > a {
    font-size: 10px;
    text-align: center;
    color: #0056b3;
    text-decoration: none;
    border-color: #ddd;
    cursor: pointer;
}

/* Estilos comunes al portal */
label {
    cursor: text;
}

#logo_img {
    width: 150px;
    margin-top: 25%;
    margin-left: 15px;
}

/* Estilos Para el Dashboard */
#trakta-dashboard-page > div.content-wrapper {
    padding-top: 0.5rem;
}

.row.trakta-dashboard-cards > div > div > div.card-body {
    padding-top: 0;
}

.row.dashboard-selection > div.col-md-12.grid-margin.stretch-card {
    margin-bottom: 0;
}

.row.dashboard-selection button.dropdown-toggle {
    padding: 12px;
    font-size: 15px;
}

.row.dashboard-selection a.dropdown-item {
    cursor: pointer;
}

.text-main-table {
    font-size: 12px;
}


.card-title-disp {
    font-size: 20px;
}

.cr {
    position: relative;
    display: inline-block;
    background-color: #ff7c00;
    border-radius: .25em;
    width: 0.5em;
    height: 0.5em;
    float: right;
    margin-right: .5em;
    text-align: center;
    color: black;
}

.alert-over {
    position: absolute;
    top: 3px;
    right: 35px;
    height: 13px;
    background-color: red;
    font-size: 9px;
    border-radius: 19px;
    width: 13px;
    text-align: center;
    color: white;
}

.download-button-small {
    width: 30px;
    font-size: 18px;
    padding: 0px;
}

.purge-over {
    position: absolute;
    top: -4px;
    right: -1px;
    height: 13px;
    background-color: red;
    font-size: 9px;
    border-radius: 19px;
    width: 13px;
    text-align: center;
    color: white;
}

.title-info {
    font: bold 16px Arial,sans-serif;
    color: #111;
    text-align: left;
    width: 100%;
    padding: 10px 30px 10px 10px;
    display: block;
    background-color: transparent;
    position: relative;
    text-decoration: none;
    margin: 0;
    border: 0;
}
.mini-table {
    background-color: #fff;
    min-height: 150px;
    padding: 10px;
}
/* ALERTS configuración de alerts */
.content-alerts {
    min-height: 300px;
}

.button-alerts-general {
    height: 25px;
    margin-right: 1%;
    background-color: #00ce68;
    color: white;
    float: right;
    margin: 1%;
}

.back-color-alerts {
    background-color: white;
}

.border-alerts-nav-unselect {
    background-color: #f8f8f8;
}

border-alerts-nav-select {
    border-top: #eee solid 1px;
    border-bottom: #eee solid 1px;
    border-right: #eee solid 1px;
    border-left: #eee solid 1px;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
}

.background-button-exit {

    /*border-radius: 100%;*/
    border: lightslategrey solid 1px;
}

.background-button-exit:hover {
    background-color: #f8f8f8;
    border-color: lightblue;
    background-color: white;
}

.alert-conj-over {
    position: absolute;
    top: -4px;
    right: -4px;
    height: 13px;
    background-color: red;
    font-size: 9px;
    border-radius: 19px;
    width: 13px;
    text-align: center;
    color: white;
}

/* FIN Alerts section */

/* botón X para inputs */
.button-x-section {
    position: relative;
    display: inline-block;
}

.button-x-section input[type=text] {
    padding-right: 24px;
    width: 100%;
    box-sizing: border-box;
}

.button-x-section-clear {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    padding: 0 8px;
    font-style: normal;
    font-size: 1.2em;
    user-select: none;
    cursor: pointer;
    margin: 4px;
}

.button-x-section input::-ms-clear { /* Remove IE default X */
    display: none;
}

/* FIN botón X*/
/* SCADA Init section  */
.content-targets-scada{
    display: flex;
    flex-wrap: wrap; /**/
    margin: auto;
}
.content-targets-scada .card-scada.column {
    margin: 5px;
}

.card-section-scada {
    padding: 0.5% 0.5%;
    border-radius: 20px;
    width: 33%;
}
.card-scada {
    border-radius: 10px;
    background-color: white;
}
.sub-card-scada {
    background-color: unset ;
}
.title-scada {
    display: flex;
    height: 12px;
    width: 33%;
    margin-left: 1%;
}

.button-scada-style {
    cursor: pointer;
    color: #007bff !important;
}

.button-scada-style:hover {
    cursor: pointer;
    color: #0063ce !important;
}

.row-primary-scada {
    margin: 0;
    padding-top: 2%;
    align-items: center;
}

.row-target-scada {
    margin: 0;
    padding-left: 4%;
    padding-top: 2%;
    padding-right: 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.img-target-scada {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    min-height: 100px;
    height: 150px;
    cursor: pointer;
    filter: grayscale(100%);
}

.img-target-scada:hover {
    filter: grayscale(0%);
}

.search-scada {
    width: 30%;
    margin: 1%;
}

.row-search-scada {
    min-height: 50px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-scada-popup {
    height: 500px;
}

.popup-content-scada {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.popup-content-scada-great {
    width: 80%;
}

.popup-content-scada-less {
    width: 50%;
}

@media screen and (min-width: 1500px) {
    .content-grid-card-section {
        width: 25%;
    }
    .card-section-scada {
        width: 25%;
    }
    .img-scada-popup-great {
        height: 750px;
    }

    .popup-content-scada-less {
        width: 30%;
    }

    .img-target-scada {
        height: 200px;
    }
}
@media screen and (min-width: 1350px) {
    .card-section-scada {
        width: 25%;
    }
    .img-scada-popup-great {
        height: 750px;
    }
    .popup-content-scada-less {
        width: 30%;
    }
    .img-target-scada {
        height: 200px;
    }
}
@media screen and (max-width: 1100px) {
    .content-grid-card-section {
        width: 50%;
        margin: auto;
    }
}

@media screen and (max-width: 500px) {
    .content-grid-card-section {
        width: 100%;
        margin: auto;
    }

    .img-scada-popup-great {
        height: 250px;
    }

    .popup-content-scada-less {
        width: 80%;
    }

    .search-scada {
        width: 60%;
    }
    .card-section-scada {
        width: 90%;
        margin: auto;
    }
    .responsive-mobile {
        max-height: 300px;
    }

}
/* FIN Scada Section */
.table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: initial;
    line-height: 1.5;
    vertical-align: auto;
    text-align: center;
    justify-content: center;
}


.internal-card {
    border-radius: 10% 10% 10% 10%;
    height: 200px;
    min-width: 110px;
    margin-top: 20px;
    margin-right: 200px;
}

.flex-centered-div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

span.centered-span-text {
    display: flex;
    align-items: center;
}

.end-aligned {
    text-align: end;
}

.flex-row-reverse {
    display: flex;
    flex-direction: row-reverse;
}

.top-row {
    width: 100%;
    align-content: center;
}

.section-filter {
    display: flex;
    width: 100%;
}

.section-filter > .container {
    width: 45%;
    margin: 1%;
}

.section-filter > .btn {
    margin: auto;
}

.card.internal-card.main-card {
    width: 20%;
    margin-right: 2%;
    background-color: #e4eaec;
}

.section-button {
    width: auto;
    margin-right: 2%;
}

.section-button-center {
    margin-left: 1%;
    justify-content: center;
}

.section-button > .btn {
    margin-left: 2%;
}

.section-label {

}

.container-map {
    height: 70%;
    width: 100%;
    margin: auto;
}

.container-map > .map-info {
    height: 100%;
    width: 25%;
    overflow-y: auto;
    max-height: 603px;

}

.container-map > .map-text {
    margin-left: 1%;
    font-size: 15px;
}

.container-map > .map {
    height: 100%;
    width: 75%;
}

.alert-label {
    margin-left: 15px;
}

.hr_alert {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #797575;
    margin: 1em 0;
    padding: 0;
}


.card.internal-card.secondary-card {
    width: 9%;
    border-radius: 10% 10% 10% 10%;
    margin-right: 1%;
}

.row.secondary-card {
    height: 30px;
    margin: 3% 0% 0% 10%;
}

div.bottom-text {
    height: 20px;
    text-align: right;
    margin-right: 5%;
}

div.column.col-second {
    float: left;
    width: 23%;
    text-align: center;
    vertical-align: center;
}

div.column.col-tick {
    float: left;
    width: 13%;
    padding: 3px;
    text-align: center;
    vertical-align: center;
}

.building-img-container {
    justify-content: center;
    height: 140px;
    width: 50%;
    padding-left: 20px;
}

div.popup-checks-list-container {
    overflow-y: auto;
    max-height: 400px;
}

div.column-container {
    width: 100%;
    display: flow-root;
}

div.column-container > div {
    float: left;
    width: 50%;
    padding: 0 15px 4px 15px;
}

div.popup-checks-list-container div.first-column {
    text-align: right;
}

div.popup-checks-list-container div.second-column {
    /* width: 60%; */
}

.table-device {
    justify-content: center;
    height: inherit;
    width: 50%;
    padding-left: 40px;
}

.map-container {
    width: 45%;
    height: inherit;
    margin-right: 4%;
    padding-right: 5px;
}

#info.not-visible {
    visibility: hidden;
}

#info.not-visible .ac-panel {
    visibility: unset;
}

.image-building {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.installation {
    height: 120px;
    width: 40%;
    padding-top: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-installation {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

div#terminal-tasks-info-container {
    max-height: 550px;
    overflow-y: scroll;
}

table#terminal-tasks-info > thead {
    text-align: center;
}

table td.water-data.data-true {
    background-color: #d2d7f7;
}

table td.task-data.data-true {
    background-color: #c7eac7;
}

table td.task-data.data-false {
    background-color: #ffbdbd;
}

.image-alert {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.center-name {
    height: 30px;
    margin: 3% 0% 2% 6%;
}

.device-name {
    width: 70%;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.day-selector {
    cursor: pointer;
}

.main-chart-container {
    width: 36%;
    height: 140px;
    margin-right: 4%;
    padding-right: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.secondary-chart-container {
    height: 120px;
    width: 50%;
    padding-top: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-container {
    width: 150px;
    height: 193px;
    margin: 10px
}

.alert-container {
    max-height: 210px;
    overflow: auto;
}

.alert-container-dev {
    max-height: 240px;
    overflow-y: auto;
    padding: 0px 10px 10px;
}

.last-values-container {
    max-height: 240px;
    overflow-y: auto;
    padding: 0px 10px 10px;
}

.map-button-container {
    padding: 10px 10px 0px 10px;
    display: flex;
    justify-content: space-around;
}

.card-line {
    width: 80%;
    margin-top: 1%;
    margin-bottom: 1%;
}
/*INIT MAP SAPIDES */
.content-sapides {
    display: flex;
    padding: 0 10px 10px;
}
.content-values-sapides {
    width: 50%;
}
.value-1-sapides {
    font-size: 2.50rem;
    margin-right: 5px;
}
.value-2-sapides {
    font-size: 0.8rem;
}
/*END MAP SAPIDES */



#password {
    padding-left: 35px;
    background: url("../image/password_icon.png") no-repeat left;
    background-size: 30px;
}
#password-gestor-popup {
    padding-left: 35px;
    background: url("../image/password_icon.png") no-repeat left;
    background-size: 30px;
}

#login-but {
    background-color: #52cce8;
    border-color: white
}

#login-but:hover {
    background-color: #4e95a6;
    border-color: white
}

.card-line-title {
    width: 100%;
    margin-top: 0.3%;
    margin-bottom: 2%;
}

.chart-class-main {
    max-width: 100%;
    max-height: 100%;
    height: 80%;
    width: 80%;
    min-height: 50px
}

.small-grey-font {
    font-size: 12px;
    color: grey;
}

.sensors-space-label {
    width: 30%;
}

.sensors-space-check {
    width: 10%;
}
/* COLORES PARA TABLAS */
.red-table {
    background: #ffcbcb !important;
}
.border-table-navs {
    border-right: #eee solid 1px;
    border-left: #eee solid 1px;
    border-bottom: #eee solid 1px;
}

/* Estilos para el dashboard (pestaña de resumen por centros) */
.threshold-alert-sign {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    padding: 5px;
    border: none;
    background-color: white;
}

.threshold-alert-sign img {
    width: 100%;
    cursor: pointer;
}

.alert-list-container {
    max-height: 60vh;
    overflow: auto;
}

.dashboard-chart-container {
    padding: 10px;
}

.threshold-alert-sign.alert_click {
    background: none;
}

/* Estilos para dashboard de torres */
#installation-cards-maps .flex-centered-div {
    width: 100%;
}

#installation-cards-maps .sub-content-grid-card.card {
    padding: 5px 15px;
}

#installation-cards-maps .sub-content-grid-card.card .card-title {
    text-align: center;
    margin: 5px 0;
}

#installation-cards-maps .grid-title-row {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#installation-cards-maps .sub-content-grid-card {
    padding: 5px 15px;
}

#installation-cards-maps .sub-content-grid-card li a.context-info {
    position: relative;
    top: 4px;
    margin-left: 10px;
}

#installation-cards-maps .content-grid-content ul > li > div > a {
    color: rgba(0, 0, 0, 0.6);
    margin-right: 10px;
}

#installation-cards-maps .content-grid-content ul > li.warning-sensor > div > * {
    font-style: italic;
    font-weight: bold;
    color: #a80000;
}

#installation-cards-maps .device-block-link {
    color: inherit;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

#installation-cards-maps .device-block {
    margin: 6px 0 8px;
}

#installation-cards-maps .device-block-link:hover {
    text-decoration: none;
}

#installation-cards-maps .device-header-row {
    display: flex;
    align-items: center;
    margin: 2px 0 6px;
}

#installation-cards-maps .device-header-row .device-name {
    flex: 1;
    font-weight: 700;
    max-width: 150px;
    font-size: 13px;
    line-height: 1.2;
    margin-right: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

#installation-cards-maps .device-header-row .device-date {
    color: #666;
    font-size: 12px;
    flex: 0 0 auto;
    line-height: 1.2;
    white-space: nowrap;
}

#installation-cards-maps .device-sensor-row {
    align-items: center;
    display: flex;
    font-size: 12px;
    gap: 12px;
    line-height: 1.4;
    margin: 10px 0;
}

#installation-cards-maps .device-sensor-row .sensor-block {
    align-items: flex-start;
    display: flex;
    flex: 1 1 70%;
    gap: 4px;
    max-width: 70%;
    min-width: 0;
    text-indent: 0;
}

#installation-cards-maps .device-sensor-row .sensor-text {
    display: inline;
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

#installation-cards-maps .device-sensor-row .context-info {
    align-items: center;
    cursor: help;
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: 4px;
    position: static;
    top: auto;
    vertical-align: middle;
}

#installation-cards-maps .device-sensor-row a.context-info {
    margin-left: 4px !important;
    position: static !important;
    top: auto !important;
}

#installation-cards-maps .device-sensor-row .context-info > span {
    font-size: 14px !important;
    line-height: 1;
    vertical-align: middle;
}

#installation-cards-maps .device-sensor-row .progress {
    align-self: center;
    background: #e6eef5;
    border-radius: 8px;
    flex: 0 0 30%;
    height: 8px;
    margin-left: 0;
    overflow: hidden;
    max-width: 30%;
    width: 100%;
}

#installation-cards-maps .device-sensor-row .progress-bar {
    border-radius: 8px;
}

#installation-cards-maps .device-sensor-row.warning-sensor .sensor-text,
#installation-cards-maps .device-sensor-row.warning-sensor .context-info,
#installation-cards-maps .device-sensor-row.warning-sensor .context-info > span {
    color: #a80000;
    font-weight: 600;
}

#installation-cards-maps .device-divider {
    border-top: 1px solid #ead6d6;
    margin: 6px 0 8px;
}

#installation-cards-maps .content-grid-card-section {
    display: flex;
}

#dashboard #installation-cards-maps #installation-cards .content-grid-card-section {
    margin: unset;
}

#installation-cards-maps .content-grid-card-section .bordered-card {
    flex-grow: 1;
}

#installation-cards-maps .warning-sensor-line {
    color: #c80303;
    font-weight: bold;
}

#add-threshold-button-container {
    display: flex;
    margin-bottom: 20px;
    flex-direction: row-reverse;
}

#threshold-rows-container {
    height: 350px;
    overflow-y: auto;
    overflow-x: clip;
}

#threshold-rows-container > div {
    margin-right: 5px;
}

#threshold-elements .threshold-data-type {
    flex: 2;
    margin-right: 10px;
}

#threshold-elements > div {
    display: flex;
    margin-bottom: 10px;
}

#threshold-elements .threshold-calculate {
    flex: 1;
    margin-right: 10px;
}

#threshold-elements .threshold-value {
    flex: 1;
    max-width: 18%;
}

/* VARIABLES CSS */
/*
    --somecolor: #ea5764;
    border-color: var(--somecolor);
    background: var(--somecolor);
*/

#threshold-elements .remove-threshold-button {
    --somecolor: #ea5764;
    width: 30px;
    height: 30px;
    padding: 2px;
    margin-left: 10px;
    cursor: pointer;
    color: var(--somecolor);
    border: var(--somecolor) 1px solid;
}

#threshold-elements .remove-threshold-button > span {
    border: none;
    margin: 0;
    padding: 0;
}

#sensors-list-container h6 {
    font-style: italic;
    padding: 0 10px;
    margin-top: 10px;
}

#sensors-list-container .device-sensors-select > div {
    display: flex;
    margin: 5px;
}

#sensors-list-container .device-sensors-select div.disabled-sensor label {
    text-decoration-line: line-through;
    color: gray;
}

#sensors-list-container .device-sensors-select > div > label {
    margin-left: auto;
    margin-bottom: 0;
    margin-right: 30px;
    flex: 2;
    text-align: end;
}

#sensors-list-container .bordered-card.round-bordered {
    min-height: 100px;
}

#sensors-list-container .limited-scroll-height {
    max-height: 300px;
    overflow: auto;
}

#sensors-list-container .device-sensors-select > div > div {
    flex: 1;
}

#sensors-list-container .device-sensors-select > div > div > input {
    position: relative;
    top: -3px;
}

#sensors-list-container #sensors-list-selector hr {
    width: 90%;
}

#installation-cards .content-grid-card-section .flex-centered-div {
    flex-direction: column;
    padding: 2px 0 4px 0;
}

#installation-cards-maps #installation-cards .content-grid-card-section .flex-centered-div > h4.card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    margin: 0;
}

#installation-cards-maps #installation-cards .content-grid-card-section .flex-centered-div > h4.card-title:nth-child(2) {
    margin-top: 5px;
}

#installation-cards .column.bordered-card.warning-card {
    border-color: #d00;
    background: #ffeaea;
}

#nav-map .installations-map-header {
    padding: 0 7px;
    margin-top: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

#nav-map .installations-map-header h4 {
    margin: 0 20px;
    display: flex;
    align-items: center;
    color: #404852;
}

#nav-map .installations-map-header label {
    margin-right: 10px;
}

#nav-map > hr {
    margin: 0.8rem;
}

#nav-map div.map-select-container {
    height: 26px;
    margin-right: 15px;
}

/* Estilos para gestores */
#tableClients tbody.tbody-client td {
    padding-top: 3%;
    text-align: center;
}

/* Estilos para SCADA */
.scada-subtitle {
    flex-direction: row;
    margin-left: 15px;
    width: 50%;
    position: relative;
    top: 15px;
}

.scada-subtitle > div {
    position: absolute;
}

.scada-buttons {
    flex-direction: row-reverse;
    margin-bottom: 20px;
    margin-right: 5px;
    width: 50%;
}

.scada-buttons > #save-status {
    padding-top: 3px;
    margin-right: 30px;
}

.scada-frame {
    min-width: 200px;
    min-height: 200px;
    border: 2px solid #0D0A0A;
    position: relative;
    max-height: 60vh;
    margin: auto;
}

.scada-frame > .scada-background {
    width: 100%;
    height: 100%;
    position: absolute;
}

.scada-tables-footer {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
}

.scada-points-table {
    background: white;
    overflow: auto;
}

.scada-table-container {
    flex-grow: 1;
    padding: 10px;
    max-width: 50%;
}

div#scada-points-container {
    position: relative;
    height: 100%;
}

div.fullscreen-scada div#scada-points-container {
    position: absolute;
}

div.fullscreen-scada {
    max-height: 100vh;
    max-width: 100vw;
    margin: auto;
}

div.fullscreen-scada > * {
    max-width: 98vw;
    max-height: 98vh;
}

div.fullscreen-scada > img {
    flex-grow: 1;
}

#popup-remove-list > div {
    display: flex;
    margin: 5px;
}

#popup-remove-list > div > label {
    margin-left: auto;
    margin-bottom: 0;
    margin-right: 30px;
    flex: 2;
    text-align: end;
}

#popup-remove-list {
    max-height: 50vh;
    overflow: auto;
}

#popup-remove-list > div > div {
    flex: 1;
}

span.punto_redondo {
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

span.punto_redondo.exterior {
    height: 12px;
    width: 12px;
    background-color: #f0f0f0;
}

span.punto_redondo.interior {
    height: 12px;
    width: 12px;
    top: -21px;
    left: 1px;
    background-color: #4fb0ce;
    border: 2px #f0f0f0 solid;
}

div.texto_puntos {
    display: inline-block;
    width: auto;
    color: #0d0d0d;
    background-color: #f0f0f0;
    border-radius: 8px;
    position: relative;
    bottom: 22px;
    border: 2px #4fb0ce solid;
    right: 2px;
    font-size: 10px;
    overflow: hidden;
    padding-bottom: 5px;
    cursor: default;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

div.texto_puntos:hover {
    z-index: 6000;
}

.point-status-content .point-status-header {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
    align-items: center;
    margin-bottom: 5px;
    height: 30px;
    max-height: 0;
}

.point-status-header:hover {
    max-height: unset;
}

.reception-time {
    padding-top: 5px;
    display: none;
    color: #7c7c7c;
    margin: 5px;
}

.point-status-content .point-status-header button {
    padding: 0;
}

.point-status-content .point-status-header button > span {
    padding: 1px 2px;
}

div.simple-grid {
    margin: 8px;
    height: auto;
    width: auto;
}

div.simple-grid > div {
    font-size: 11px;
    text-align: center;
    width: auto;
    white-space: nowrap;
}

div.device-point {
    position: absolute;
    width: 15px;
    height: 15px;
}

div.point-grabber {
    position: relative;
    z-index: 5;
    cursor: pointer;
}

/*Estilos Para Dispositivos*/

#main-row-1 {
    width: 15%;
}

#main-row-2 {
    width: 19%;
}

#main-row-3 {
    width: 19%;
}

#main-row-4 {
    width: 38%;
}

#sec-row-1 {
    width: 35%;
}

#sec-row-2 {
    width: 60%;
}

#sec-row-3 {
    width: 10%;
}

#sec-row-1-bin {
    width: 35%;
}

#sec-row-2-bin {
    width: 35%;
}

#sec-row-3-bin {
    width: 25%;
}

.device-img {
    width: 30%;
}

#zoomBut {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px;
    z-index: 400;
}

.card.device-card {
    margin-top: 2%;
    padding: 0.5% 0.5%;
    border-radius: 20px;
    width: 100%;
}

.card.device-card-main {
    margin-top: 2%;
    padding: 0.5% 0.5%;
    border-radius: 20px;
    width: 100%;
}

#alerts-map-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -50px;
    width: 340px;
    height: 200px;
}

.column-table {
    width: 36%;
}

.row-filters {
    width: 100%;
    margin: 0 5% 0 0;
}

.row-filters-map {
    width: 60%;
    margin: 0 5% 0 0;
}

.row-no-access {
    margin: 0;
    min-height: 300px;

}

.text-no-access {
    height: 12px;
    margin: auto;
}

@media screen and (max-width: 1000px) {
    #alerts-map-popup {
        left: 40%;
    }
}

@media screen and (max-width: 550px) {
    #alerts-map-popup {
        left: 26%;
    }
}

@media screen and (max-width: 425px) {
    #alerts-map-popup {
        left: 19%;
    }
}

.small-sensor-card {
    flex: 1 1 calc(25% - 10px) !important;
    max-width: calc(25% - 10px);
    min-width: 220px;
    margin-right: 0;
}

@media screen and (max-width: 1550px) {
    .small-sensor-card {
        flex: 1 1 calc(25% - 10px) !important;
        max-width: calc(25% - 10px);
    }
}

@media screen and (max-width: 1400px) {
    .small-sensor-card {
        flex: 1 1 calc(33.33% - 10px) !important;
        max-width: calc(33.33% - 10px);
    }
}

@media screen and (max-width: 745px) {
    .small-sensor-card {
        flex: 1 1 100% !important;
        max-width: 100%;
    }
}

@media screen and (max-width: 490px) {
    #button-dev {
        margin-top: 3%;
    }
}

@media screen and (max-width: 450px) {
    .card.device-card {
        width: 84%;
    }
}

@media screen and (max-width: 440px) {
    .card.device-card-main {
        width: 100% !important;
    }

    .small-sensor-card {
        width: 100% !important;
    }

    .column-table {
        width: 100%;
    }

    .sec-row-2 {
        width: 100% !important;
    }

    .card.device-card {
        width: 100% !important;
    }
}


.graphic-card-small {
    width: 100%
}

.purgaMan {
    width: 47%;
    display: block;
    height: 10px;
    float: right;
    cursor: pointer;
}

.styled-table {
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 100px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-table thead tr {
    line-height: 0.5;
    background-color: #2682d7;
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.connected-value {
    display: none;
}

.styled-table tbody tr {
    line-height: 0.4;
    border-bottom: thin solid #dddddd;
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #2682d7;
}


.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #2682d7;
}

#fixedbutton {
    position: fixed;
    bottom: 80%;
    right: 10%;
    z-index: 650;
    width: 70px;
    height: 30px;
}

.countdown-connected {
    display: flex;
    text-align: center;
    height: 50px;
    display: none;
}

.connected-img {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    display: none;
}

.bateria-img {
    width: 18px;
    height: 18px;
    margin-left: 15px;
    display: block;
}
.content-device-title {
    text-align: center;
    display:flex;
    height: 12px;
    width: 15%;
}
.device-tr {
    height: 40px;
}
.device-tr > th {
    text-align: left;
    vertical-align: middle;
    overflow-wrap: break-word;
    white-space: initial;
    align-items: center;
    /*display: flex;*/
}

.vl {
    background-color: #ddcdcd;
    width: 1px;
    height: 220px;
    margin-top: 52px;
}

.vl.device {
    background-color: #ddcdcd;
    width: 1px;
    height: 278px;
    margin-top: 10px;
}

#filters_install {
    width: 40% !important;
    margin: 0;
}

#filters_dev {
    width: 100%;
    margin: 5px 0 10px 0;
}

#butAddClient {
    margin: 0;
    height: 28px !important;
    min-width: 120px;
    width: auto;
}

#butAddClient-dev {
    margin: 5px 2% 0 0 !important;
    height: 65% !important;
    width: 44%;
}

#filters_mov_dev {
    width: 40%;
}

/* PARA MIJARES */
.mijares-popup-container {
    position: fixed;
    -webkit-transform: translate(-40%, -50%);
    transform: translate(-40%, -50%);
    width: 80%;
    top: 50%;
    left: 50%;
    display: none;
}

#mijares-ports-panel {
    display: flex;
    flex-direction: row;
    padding: 0 20px;
}

#mijares-ports-panel > div {
    flex: 1;
    padding: 0 10px;
}

#mijares-ports-panel hr {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#mijares-ports-panel .mijares-port-header {
    display: flex;
    justify-content: space-between;
}

.mijares-port-header > h4 {
    align-self: center;
    margin: 0;
}

.mijares-port-header > span.material-button {
    margin-right: 2rem;
}

.mijares-port-header {
    margin: 0;
    align-self: center;
}

.mijares-panel-bottom {
    margin-bottom: 15px;
    display: flex;
    flex-direction: row-reverse;
    padding: 0 20px;
}

.mijares-port-editing-form {
    margin: auto;
    transform: translate(0, 25%);
    min-width: 300px;
    min-height: 500px;
    max-width: 40%;
    max-height: 500px;
    display: none;
}

.mijares-port-editing-form .form-group {
    margin-bottom: 1rem;
}

.mijares-port-editing-form .port-sensor-actions {
    display: flex;
    flex-direction: row-reverse;
    padding: 0 20px;
}

#mijares-sensor-editing .form-control {
    font-size: 12px;
}

#mijares-sensor-editing select {
    width: 80%;
}

#mijares-port-sensors {
    overflow-x: clip;
    overflow-y: auto;
    max-height: 550px;
}

#mijares-ports-buttons {
    display: flex;
    flex-direction: row-reverse;
}

#mijares-ports-buttons button.btn {
    margin-left: 15px;
}

/* Drag and drop item */
.content-drag-and-drop {
    cursor: grab;
    display: flex;
    width: 80%;
    margin: auto;
    margin-bottom: 5px;
    border: 1px solid rgb(229, 229, 229);
    background-color: #f4f5f7;
    border-radius: 25px;
}
.content-drag-and-drop:active {
    cursor: grabbing;
}

@media screen and (max-width: 4001px) {

    .mijares-popup-container {
        -webkit-transform: translate(-45%, -50%);
        transform: translate(-45%, -50%);
        width: 80%;
    }
    .mijares-port-editing-form {
        width: 95%;
    }

}

@media screen and (max-width: 1600px) {

    .mijares-popup-container {
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        width: 80%;
    }

}
@media screen and (max-width: 1494px) {
    .clear-filters-btn {
        font-size: 12px !important; /* Tamaño más pequeño para pantallas de hasta 14" */
    }
}
@media screen and (max-width: 1366px) {
    .clear-filters-btn {
        font-size: 12px; /* Tamaño más pequeño para pantallas de hasta 14" */
    }
}
@media screen and (max-width: 1343px) {

}

@media screen and (max-width: 1000px) {

    .mijares-popup-container {
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        width: 90%;
    }
    #mijares-ports-panel {
        max-height: 200px;
        overflow: scroll;
    }
    .mijares-port-editing-form {
        margin: auto;
        -webkit-transform: translate(0, 5%);
        transform: translate(0, 5%);
        max-width: 90%;
    }
    #mijares-port-sensors {
        max-height: 200px;
        min-height: 100px;
    }
    #mijares-port-configs {
        max-height: 200px;
        overflow: scroll;
    }

}

@media screen and (max-width: 485px) {

    .content-device-title {
        width: 100%;
    }
    .mijares-popup-container {
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        width: 95%;
    }
    #mijares-ports-panel {
        display: block;
        padding: 0 20px;
        max-height: 400px;
        overflow: scroll;
    }
    .mijares-port-editing-form {
        margin: auto;
        transform: translate(0, 30%);
        max-width: 95%;
    }
    #mijares-port-sensors {
        max-height: 430px;
        min-height: 300px;
    }
}

/* FIN MIJARES */
/* SECTION INACTIVE */
.inactiveLink {
    pointer-events: none;
    cursor: default;
    opacity: 30%;
}

/* FIN INACTIVE */
.popup-sensor-selected {

}

/* SECTION GRÁFICA página */
.section-device-graph {
    width: 80%;
    margin: auto auto 5%;
}

.sensor-graph {
    padding-left: 15%;
}

.center-items {
    align-items: center;
    display: flex;
}

.text-options {
    width: 50%;
}

.switch-sensor {
    margin-left: 25%;
}

@media screen and (max-width: 4001px) {
    .switch-sensor {
        margin-left: 21%;
    }
}

@media screen and (max-width: 1343px) {
    .switch-sensor {
        margin-left: 25%;
    }
}

@media screen and (max-width: 485px) {
    .switch-sensor {
        width: 20% !important;
        margin-right: 10%;
        margin-left: -20%;
    }

    .section-sensor-graph {
        width: 30% !important;
    }

    .text-options {
        width: 100%;
    }
}

/* FIN GRÁFICA*/
@media screen and (max-width: 4001px) {
    #main-row-1 {
        width: 17%;
    }

    #main-row-2 {
        width: 30%;
        margin-left: 0%;
    }

    #main-row-3 {
        width: 23%;
        margin-left: 0%;
    }

    #main-row-4 {
        width: 31%;
    }

    #sec-row-1 {
        width: 70%;
        margin-left: 7%;
        margin-right: -2%;
    }

    .sec-row-2 {
        width: 60%;
    }

    .sec-row-2-small {
        width: 100%;
    }

    #sec-row-3 {
        width: 10%;
    }

    #sec-row-1-bin {
        width: 35%;
    }

    #sec-row-2-bin {
        width: 35%;
    }

    #sec-row-3-bin {
        width: 25%;
    }

    .device-img {
        width: 100%;
    }

    .card.device-card {
        margin-top: 2%
    }

    .vl {
        display: block;
    }

}

@media screen and (max-width: 1343px) {
    #butAddClient-dev {
        height: 85% !important;
    }
}

@media screen and (max-width: 1250px) {
    .button-map {
        width: 46%;
        margin: auto;
    }

}

@media screen and (max-width: 1000px) {
    #butAddClient-dev {
        height: 85% !important;
    }
}

@media screen and (max-width: 820px) {
    #filters_dev {
        width: 84%;
    }

    #filters_mov_dev {
        width: 100%;
    }

    .row-filters-responsive {
        width: 50%;
    }
}

@media screen and (max-width: 730px) {
    #filters_install {
        width: 50% !important;
    }
}

@media screen and (max-width: 610px) {
    #filters_install {
        width: 100% !important;
    }

    .row-filters-responsive {
        width: 40%;
    }
}

@media screen and (max-width: 571px) {
    #filters_dev {
        width: 100%;
    }
}

@media screen and (max-width: 485px) {
    #filtro {
        padding: 0 !important;
    }

    .top-row {
        height: auto;
        width: 100%;
    }

    .row-filters {
        width: 100%;
        margin: auto;
    }

    .section-filter {
        flex-wrap: wrap;
    }

    .section-button {
        width: 100%;
        padding-top: 2%;
    }

    .section-button > .btn {
        width: 100%;
        margin: 1%;
    }

    .section-filter > .btn {
        width: 100%;
        margin: 3%;
    }

    .container-map {
        margin-left: 0.7%;
        width: 100%;
        height: 700px;
    }

    .container-map > .map-info {
        padding-top: 1%;
        height: 50%;
        width: 100%;
    }

    .container-map > .map-text {

    }

    .container-map > .map {
        height: 50%;
        margin-top: 3%;
        width: 100%;
        border: #7ACAFF solid 2px;
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}


/* On screens that are 400px wide or less, make the rows stack on top of each other instead of next to each other */
@media screen and (max-width: 1100px) {

    #main-row-1 {
        width: 100%;
    }

    #main-row-2 {
        width: 100%;
        margin-left: 3%;
    }

    #main-row-3 {
        width: 100%;
        margin-left: 3%;
    }

    #main-row-4 {
        width: 98%;
    }

    #sec-row-1 {
        width: 100%;
    }

    #sec-row-2 {
        width: 100%;
    }

    #sec-row-3 {
        width: 100%;
    }

    #sec-row-1-bin {
        width: 100%;
    }

    #sec-row-2-bin {
        width: 100%;
    }

    #sec-row-3-bin {
        width: 100%;
    }

    .device-img {
        width: 100%;
    }

    .card.device-card {
        margin-top: 10%
    }

    .vl {
        display: none;
    }

}


@media screen and (max-width: 850px) {
    .card.internal-card.main-card {
        width: 30% !important;
    }
}

@media screen and (max-width: 550px) {
    .card.internal-card.main-card {
        width: 40% !important;
    }
}

/* device not found */
.content-not-found {
    min-height: 300px;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

.not-found-text {
    padding-left: 2%;
    margin: auto;
    width: 40%;
    display: grid;
    font-size: 15px;
}

.not-found-image {
    min-width: 200px;
    width: 30%;
    color: #007bff;
    margin: 5%;
}

.not-found-icon {
    align-items: center;
    display: flex;
    max-height: 25px;
    margin-bottom: 2%;
}

.not-found-no-ico {
    align-items: center;
    display: flex;
    max-height: 25px;
    margin-bottom: 2%;
    padding-left: 12%;
}

@media screen and (min-width: 1700px) {
    .not-found-text {
        font-size: 20px;
    }

    .not-found-image {
        width: auto;
    }

    .not-found-text {
        padding-left: 0;
    }

    .not-found-no-ico {
        padding-left: 8%;
    }
}

@media screen and (max-width: 550px) {
    .dashboard-section-select {
    }
    .dashboard-selectors {
        width: 100%;
        padding-bottom: 2%;
    }
    .dashboard-button {
        display: block;
        width: 100%;
        padding-bottom: 2%;
    }
    .content-not-found {
        display: block;

    }

    .not-found-text {
        width: 80%;
        margin: 10%;

    }

    .not-found-image {
        margin: auto;
        padding-top: 5%;
    }

    .not-found-icon {
        padding-top: 2%;
        min-height: 50px;
    }

    .not-found-no-ico {
        padding-top: 2%;
        min-height: 50px;
        padding-left: 14%;
    }

    .not-found-last-text {
        padding-top: 5%;
    }
}

/* OpenStreetMaps */
div.leaflet-bottom.leaflet-right {
    display: none;
}

.active-link {
    background-color: #d6f3fd;
    color: #000000;
    font-weight: bold;
     /* Establece la opacidad inicial en 0 */
    transition: background-color 0.5s ease, color 0.3s ease, font-weight 0.3s ease; /* Agrega la transición de opacidad */
    position: relative;
}
.active-link:hover{
    background-color: #d6f3fd !important;
}



.active-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Estilos para el modo oscuro */
.dark-mode .active-link {
    background-color: #2e3b42;
    color: #ffffff;
    font-weight: bold;
}

.dark-mode .active-link:hover {
    background-color: #2e3b42 !important;
}
.dark-mode .barra .nav-link:hover {
    background-color: #2e3b42!important;
}

/* Ajusta los estilos del pseudo-elemento ::before según corresponda */
.dark-mode .active-link::before {
    border: 2px solid #00aaff;
}
/* Cuando la clase active-link se aplica, establece la opacidad en 1 */

.profile-picture-container {
    align-content: center;
    align-items: center;
    text-align: center;

}
.profile-picture-label {
    text-align: center;
    margin-bottom: 10px;
}

.profile-picture-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.2); opacity: 0.8;
}

.profile-picture-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-picture-circle:hover .edit-overlay {
    display: flex;
}

#profile-image-input {
    display: none;
}

#delete-image-button {
    display: none;
}

.edit-overlay img {
    width: 50px; /* Cambia el tamaño según sea necesario */
    height: auto; /* Esto asegurará que la proporción se mantenga */
}

#preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#image-preview-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

.active-tab2 {
     /* Azul predeterminado de Bootstrap */
    /* Texto en color blanco */
   color: #007bff !important; /* Borde azul */
}

.dark-mode .active-tab2 {
    /* Azul predeterminado de Bootstrap */
    /* Texto en color blanco */
    background-color: #0d2a50 !important;
    color: white !important;
    border-color: #5a6d7c;/* Borde azul */
}

.contenido {
    border: 1px solid #dee2e6;
    text-align: justify;
    border-radius: 10px;
}
#manager-reports-page .contenido{
    border-radius: 0px 10px 10px 10px!important;
}
.extra-content {
    display: none;
}

/* Estilos generales */
.custom-color-card {
    border-radius: 10px;
    overflow-y: auto;
    padding: 20px; /* Ajusta el espaciado interior */
    text-align: left; /* Alinea el contenido a la izquierda */
}


.custom-color-card hr {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Ajusta el ancho del selector de color */
.custom-color-input {
    width: 100%;
    max-width: 70px; /* Establece un ancho máximo para evitar que sea demasiado ancho */
    padding: 5px; /* Ajusta el espaciado interior del selector de color */
}

.custom-color-select {
    width: 100%;
    max-width: 70px; /* Establece un ancho máximo para el selector de fuente */
}

.custom-color-reset {
    margin-top: 10px; /* Ajusta el margen superior del botón de restablecimiento */
}

.switch-slider {
    position: relative;
    display: inline-block;
    width: 40px; /* Ancho reducido */
    height: 20px; /* Altura reducida */
}

.switch-slider input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* El slider */
.switch-slider .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 10px; /* Reducción del radio del borde */
    transition: background-color 0.4s;
}

/* Estilo específico para el label del switch */
.switch-slider label {
    display: block; /* Añadir esto para evitar heredar reglas flex-box no deseadas */
}

.switch-slider input:checked + .slider {
    background-color: #2196F3; /* Cambia el color del fondo cuando está activado */
}

.switch-slider .slider::before {
    content: "";
    position: absolute;
    width: 16px; /* Reducción del tamaño del botón */
    height: 16px; /* Reducción del tamaño del botón */
    left: 2px; /* Ajuste de posición izquierda */
    bottom: 2px; /* Ajuste de posición inferior */
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s;
}

.switch-slider input:checked + .slider::before {
    transform: translateX(20px); /* Mueve el slider cuando está activado */
}


.dark-mode .select2-selection{
    color: white !important;
    background-color: #263238 !important;
}

/* En tu hoja de estilo CSS */
.hidden-content {
    display: none;
}


.dark-mode .select2-selection__choice{
    color: white !important;
    background-color: #263238 !important;
}

.dark-mode .select2-dropdown{
    color: white !important;
    background-color: #263238 !important;
}

.dark-mode .page-link{
    background-color: #263238;
    border: none;
}
.dark-mode .table-hover tr:hover{
    background-color: #3c3d42;
}
.dark-mode .leaflet-legend{
    color: black !important;
}

.dark-mode .card-title{
    color: #c6d2d9!important;
}

/* Modo oscuro */
.dark-mode .swal2-popup {
    background-color: #263238; /* Color de fondo negro */
    color: #fff; /* Color de texto blanco */
}

.dark-mode .dropdown-menu {
    background-color: #263238; /* Color de fondo negro */
    color: #fff !important; /* Color de texto blanco */
}

.dark-mode .dropdown-menu :hover{
    background-color: #384b52; /* Color de fondo negro */
    color: #fff !important; /* Color de texto blanco */
}

.dark-mode .bg-light {
    background-color: #303e46 !important; /* Color de fondo negro */
}

.dark-mode .nav-link.active{
    background-color: #000000 !important; /* Fondo negro en modo oscuro */
    color: #fff;
    border-bottom: none;/* Texto blanco en modo oscuro */
}

.dark-mode .card-scada{
    background-color: #263238 !important; /* Fondo negro en modo oscuro */
    color: #fff;
    /* Texto blanco en modo oscuro */
}

/* Estilo para el botón 'Reset' */
.styled-button {
    background-color: #007bff; /* Color de fondo del botón */
    color: #fff; /* Color de texto del botón */
    border: none; /* Quita el borde */
    padding: 10px 20px; /* Espaciado interno */
    cursor: pointer; /* Cambia el cursor al pasar el mouse */
    border-radius: 5px; /* Bordes redondeados */
    font-weight: bold; /* Texto en negrita */
    font-size: 10px;
}

/* Estilo para el botón 'Reset' al pasar el mouse */
.styled-button:hover {
    background-color: #0056b3; /* Cambia el color de fondo al pasar el mouse */
}

/* Estilo para el campo de entrada */


/* Estilo para las filas ocultas */
table tr[style*="display: none"] {
    display: none !important;
}

#popup-add-task .card-body {
    max-height: 500px; /* Establece la altura máxima deseada para el contenido */
    overflow-y: auto; /* Habilita la barra de desplazamiento vertical si el contenido excede la altura máxima */
}

#popup-update-task .card-body {
    max-height: 500px; /* Establece la altura máxima deseada para el contenido */
    overflow-y: auto; /* Habilita la barra de desplazamiento vertical si el contenido excede la altura máxima */
}

/* Aumenta el tamaño cuando esta el hover */
.add-size { transition: all .3s ease-in-out; }
.add-size:hover { transform: scale(1.1); }

.icon-link-menu {
    border: 1px solid #ddd;
    margin-right: 8%;
    color: #d01212;
    border-radius: 5px;
}
.icon-link-menu:hover {
    background-color: #e9ecef;
}


/* Mostrar #company-extra al hacer hover en #Company-nav o #company-selector */
#Company-nav:hover ~ #company-extra,
#company-selector:hover ~ #company-extra {
    display: block;
}

/* Estilos para el ícono del calendario */
.calendar-icon {
    margin-left: 15px;
    cursor: pointer;
    font-size: 24px; /* Tamaño del ícono */
    color: #888; /* Color predeterminado */
    transition: color 0.3s ease; /* Transición de color */
}

/* botón primario disabled */
.btn-primary-disabled {
    background-color: rgba(33, 101, 161, 0.8) !important;
    color: #fff !important; /* Color del texto en el botón */
}

/* Custom button disabled */
.custom-btn-disabled {
    background-color: rgba(106, 124, 138, 0.8) !important;
    color: #fff !important; /* Color del texto en el botón */
    border: none !important; /* Elimina el borde del botón */
   }

/* Cambio de color al pasar el mouse (hover) */
.calendar-icon:hover {
    color: #007bff; /* Cambio de color al hacer hover */
}

.custom-btn {
    background-color: #8BA2B5 !important;
    color: #fff !important; /* Color del texto en el botón */
    border: none !important; /* Elimina el borde del botón */
    transition: background-color 0.3s !important; /* Transición para el cambio de color en 0.3 segundos */
}

.custom-btn:hover {
    background-color: #6F7D8B !important; /* Color oscurecido al hacer hover */
}

.tag {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    position: sticky;
    height: 22px;
    top: 0;
    left: 179px;
    padding: 4px 8px 4px 8px;
    cursor: pointer;
    background: #ccf4dc;
    border: none;
    z-index: 2;
    border-radius: 4px;
}

.label-popup {
    flex-shrink: 0;
    flex-basis: auto;
    position: relative;
    height: 14px;
    color: #188443;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: left;
    white-space: nowrap;
    z-index: 3;
}

.tag-container {
    align-items: center;
    justify-content: center;
}

.switch-incidencias {
    --button-width: 3.5em;
    --button-height: 2em;
    --toggle-diameter: 1.5em;
    --button-toggle-offset: calc((var(--button-height) - var(--toggle-diameter)) / 2);
    --toggle-shadow-offset: 10px;
    --toggle-wider: 3em;
    --color-grey: #cccccc;
    --color-green: #4296f4;
    cursor: pointer;
}

.slider-incidencias {
    display: inline-block;
    width: var(--button-width);
    height: var(--button-height);
    background-color: var(--color-grey);
    border-radius: calc(var(--button-height) / 2);
    position: relative;
    transition: 0.3s all ease-in-out;
}

.slider-incidencias::after {
    content: "";
    display: inline-block;
    width: var(--toggle-diameter);
    height: var(--toggle-diameter);
    background-color: #fff;
    border-radius: calc(var(--toggle-diameter) / 2);
    position: absolute;
    top: var(--button-toggle-offset);
    transform: translateX(var(--button-toggle-offset));
    box-shadow: var(--toggle-shadow-offset) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
    transition: 0.3s all ease-in-out;
}

.switch-incidencias input[type="checkbox"]:checked + .slider-incidencias {
    background-color: var(--color-green);
}

.switch-incidencias input[type="checkbox"]:checked + .slider-incidencias::after {
    transform: translateX(calc(var(--button-width) - var(--toggle-diameter) - var(--button-toggle-offset)));
    box-shadow: calc(var(--toggle-shadow-offset) * -1) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
}

.switch-incidencias input[type="checkbox"] {
    display: none;
}

.switch-incidencias input[type="checkbox"]:active + .slider-incidencias::after {
    width: var(--toggle-wider);
}

.switch-incidencias input[type="checkbox"]:checked:active + .slider-incidencias::after {
    transform: translateX(calc(var(--button-width) - var(--toggle-wider) - var(--button-toggle-offset)));
}

.is-invalid {
    border: 1px solid #d9534f; /* Color rojo */
}

.fila-incidencia {
    justify-content: flex-start !important;
}

.filter-popup {
    background-color: #fff;
    display: flex;
    align-items: center;
    padding-left: 5px;
    border-radius: 4px;
}

.filters-disabled {
    color: #999 !important;
    border: 1px solid #aaa;
}

.filters-enabled {
    color: #3B82F6 !important;
    border: 1px solid #3B82F6;
}

.nombre-selector {
    font-size: 14px !important;
}

.filter-section {
    display: flex;
    flex-direction: column;
}

/* Estilos para dispositivos móviles */
@media screen and (max-width: 767px) {
    #row-device {
        flex-direction: column-reverse;
    }
    .container-device {
        padding: 0px;
    }
    #container-filters {
        flex-direction: column !important;
        margin-top: 10px;
        padding-left: 0px;
    }
    .filter-device {
        margin-top: 10px;
        padding-left: 0px;
    }
    #popup-filters {
        min-width: 300px;
    }
    .container-buttons-device {
        padding-right: 0px;
        padding-left: 0px;
        text-align: left !important;
    }
    /* Adaptación móvil */
    @media (max-width: 992px) {
        .container-buttons-device {
            flex: 0 0 100% !important;
        }
    }
}

.pestaña-activa {
    display: block !important;
    opacity: 1 !important;
}

.clear-filters-btn {
    background: none;
    border: none;
    color: gray;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

.clear-filters-btn:hover {
    color: darkgray;
    text-decoration: underline;
}

.select2-container--open {
    z-index: 99999;
}
.buttons-history {
    flex-wrap: initial;
}

@media (max-width: 768px) {
    .buttons-history {
        flex-wrap: wrap;
    }
}

/* Estilo para el checkbox cuando está enfocado */
input[type="checkbox"]:focus {
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5); /* Añade un efecto de sombra */
    border-radius: 4px; /* Opcional: añade un borde redondeado */
}

/* Estilo para el botón cuando está enfocado */
button:focus {
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08) !important; /* Añade un efecto de sombra */
}

.select2:focus {
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08) !important; /* Añade un efecto de sombra */
}

.select2-container:focus {
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08) !important; /* Añade un efecto de sombra */
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 20px;
}

.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: 13px;
    width: 13px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

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%;
}

.button-state {
    display: flex !important;
    align-items: center !important;
}

/* Sidebar: Chromium scrollbar should match Firefox behavior */
#sidebar-ul {
    height: calc(100vh - 63px);
    max-height: calc(100vh - 63px);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

#sidebar-ul:hover {
    scrollbar-color: rgba(74, 74, 74, 0.45) transparent;
}

#sidebar-ul::-webkit-scrollbar {
    width: 8px;
}

#sidebar-ul::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar-ul::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 8px;
}

#sidebar-ul:hover::-webkit-scrollbar-thumb {
    background: rgba(74, 74, 74, 0.45);
}

.blocked-row {
    background-color: #f5f5f5 !important;
}
.text-blocked {
    color: #b0b0b0 !important;
}
.button-scada-style.disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(1);
}

