﻿@font-face {
    font-family: MyriadProLight;
    src: url("fonts/MyriadProLight.otf") format("opentype");
}
@font-face {
    font-family: MyriadProBold;
    src: url("fonts/MyriadProBold.ttf") format("opentype");
}
@font-face {
    font-family: MyriadPro;
    src: url("fonts/MyriadProRegular.ttf") format("opentype");
}
@font-face {
    font-family: MyriadProBolder;
    src: url("fonts/MyriadProBlack.ttf") format("opentype");
}

:root{
    --main: #3b7a91;
    --bckgr:#f9f9f9;
    --gray:#efefef;
    --tableLight:#5fc5ec;
    --error: red;
    --errorBckgr: #fcd7d7;
    --lightGray: #d3d3d3;
}

html{
     scrollbar-width: thin;
     scrollbar-color: var(--main) var(--bckgr);  
}

html::-webkit-scrollbar{
    width: .5vw;
}

html::-webkit-scrollbar-button{
    background-color: #ddd2;
}

html::-webkit-scrollbar-thumb{
    background-color: var(--main);
}
html::-webkit-scrollbar-thumb:hover{
    background-color: var(--main);
}

html::-webkit-scrollbar-track{
    background-color: #ddd2;
}

html::-webkit-scrollbar-track:hover{
    background-color: #ddd;
}
h1,h2{
    font-family: MyriadPro, Arial;
    margin: 0px 0px 1rem 0px;  
    position: relative;
    max-width: 50%;
}
.responsive:is(h1,h2){
    max-width: 100%;
}

h1 a, h2 a{
    position: absolute;
    right: 0;
    font-size: 70%;
    padding: .5rem;
    background-color: var(--main);
    color: var(--bckgr);
    border-radius: 1rem;
    cursor: pointer;
}
b{
    font-family: MyriadProBold, Arial;
}
body {
    background: var(--bckgr);
    margin: 0px;
    padding: 0px;
    font-family: MyriadProLight, Arial;
    font-weight: lighter;
}
    body.responsive {
        font-size:150%;
    }
a {
    color:inherit;
    text-decoration:none;
}
a.visible{
    color:var(--main);
    padding: .5rem;
}
p {
text-align:justify;
}
    p.responsive {
        padding: 0px 20px;
    }
ul {
    margin:0px;
    padding:0px 0px 20px;
}
li {
    margin:0px 0px 10px 0px;
    padding:0px;
    list-style:none;
}
em{
    font-style: normal;
    font-weight: bold;
    color: var(--main);
}
pre{
    max-width: 800px;
    margin: auto;
    padding: 1rem;
    text-align: justify;
    white-space: pre-line;       /* Since CSS 2.1 */
}
.holder {
    width: 100%;
    max-width: 1280px;
    margin:auto;
}
.holder.responsive{
    overflow: hidden;
}
.icon {
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    text-align:center;
}
    .icon.sub {
        max-width: 300px;
        margin: 0px auto 20px;
        border: 5px solid var(--main);
    }
    .icon img {
        width:100%;
    }
input[type="text"], input[type="password"], textarea {
    padding: 1rem;
    margin: .5rem auto;
    background: rgba(105,105,105,0.24);
    border: none;
    color: rgb(128, 128, 128);
    width: -moz-calc(100% - 2rem);
    width: -webkit-calc(100% - 2rem);
    width: -o-calc(100% - 2rem);
    width: calc(100% - 2rem);
}
.inverted input[type="text"], .inverted input[type="password"],.inverted textarea {
    padding: 1rem;
    margin: .5rem auto;
    background: none;
    border: none;
    border-bottom: 1px solid var(--bckgr);
    color: var(--bckgr) !important; 
}
    input[type="text"].responsive, input[type="password"].responsive, textarea.responsive, #captcha.responsive, input[type="submit"].responsive, select.responsive {
        display: block;
        margin: 1rem auto;
        font-size: 1.5rem;
    }
input:is([type="datetime-local"],[type="time"]){
    padding: .5rem;
    color: var(--main);
    border: 2px solid var(--main);
}
input[type="file"]{
    padding: 0 1rem .5rem 1rem;
}
label[for]{  
    margin-top: .5rem;
    display: inline-block;
}
label[for] img{
    max-width: 3rem;
}
label[for] svg{
    display: inline-block;
    margin: 0 .5rem;
}
select{
    padding: 1rem;
    margin: .5rem auto;
    background: rgba(105,105,105,0.24);
    border: none;
    border-radius: 0%;
    color: rgb(128, 128, 128);
    width: 100%
}
input[type="submit"] {
        margin: 1rem auto;
        display: block;
        background: var(--main);
        padding: 1rem 1.5rem;
        color: white;
        border: none;
        cursor: pointer;
    }
    input[type="submit"]:disabled{
        background: rgba(105,105,105,0.24);
        color: rgb(128, 128, 128);
    }
/* pretty checkbox */
input[type="checkbox"] {
    position: absolute;
    left: -9000px;
    top: -9000px;
    visibility: hidden;
  }
  
  input[type="checkbox"] + label {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
  }
  
  input[type="checkbox"] + label::before {
    content: "";
    width: 3.3em;
    height: 1.7em;
    background-color: #efefef;
    border: 2px solid var(--main);
    border-radius: 1em;
    margin-right: .25em;
    transition: background-color 200ms ease-in-out;
  }
  
 input[type="checkbox"] + label::after {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    content: "\2715";
    font-size: .6em;
    left: .429em;
    width: 2.5em;
    height: 2.5em;
    background-color: #777;
    color: white;
    border-radius: 50%;
    transition: background-color 200ms ease-in-out, transform 200ms ease-in-out;
  }
  
  input[type="checkbox"]:focus + label::before {
    outline: 1px solid var(--main);
  }
  
  input[type="checkbox"]:checked + label::before {
    background-color: #efefef;
  }
  
  input[type="checkbox"]:checked + label::after {
    content: "\2713";
    transform: translateX(100%);
    background-color: var(--main)
  }
  
  input[type="checkbox"]:disabled + label {
    color: #777;
  }
  
  input[type="checkbox"]:disabled + label::before {
    background-color: #CCC;
  }
  
  input[type="checkbox"]:disabled + label::after {
    background-color: #777;
  }

  input[type="text"].displayOnly , span.displayOnly {
    background-color: var(--bckgr);
    color: var(--main);
    font-family: MyriadPro, Arial;
    font-weight: bold;  
    padding: 0px 0px 0px 1rem;
  }

    .loading:not(svg){
        display: inline-block;
        width: 2rem;
        aspect-ratio: 1;
        transform: rotate(360deg);
        animation: spin 1s linear infinite alternate;
        fill: var(--main);
        margin: auto;   
        display: none;
        /* border: 3px solid var(--main); */
        /* background-color: var(--main);
        -webkit-mask-image: url(../img/liga/icon-tennis-ball.svg);
        mask-image: url(../img/liga/icon-tennis-ball.svg); */
    }

    @keyframes spin {
        0%{ rotate: 0deg; }
        100%{ rotate: 360deg; }
    }

    /** Loading SVG **/

      svg.machine {
            fill: var(--main);
            position: absolute;
            width: 10%;
            padding: 1rem;
            top: 0px;
            bottom: 0px;
            margin: auto;
            left: 0px;
            right: 0px;
        }
      
        svg .small-shadow, svg .medium-shadow, svg .large-shadow {
        fill: rgba(0, 0, 0, 0.05); }
      
        svg .small {
        -webkit-animation: counter-rotation 2.5s infinite linear;
             -moz-animation: counter-rotation 2.5s infinite linear;
               -o-animation: counter-rotation 2.5s infinite linear;
                  animation: counter-rotation 2.5s infinite linear;
        -webkit-transform-origin: 100.136px 225.345px;
            -ms-transform-origin: 100.136px 225.345px;
                transform-origin: 100.136px 225.345px; }
      
                svg .small-shadow {
        -webkit-animation: counter-rotation 2.5s infinite linear;
             -moz-animation: counter-rotation 2.5s infinite linear;
               -o-animation: counter-rotation 2.5s infinite linear;
                  animation: counter-rotation 2.5s infinite linear;
        -webkit-transform-origin: 110.136px 235.345px;
            -ms-transform-origin: 110.136px 235.345px;
                transform-origin: 110.136px 235.345px; }
      
                svg .medium {
        -webkit-animation: rotation 3.75s infinite linear;
             -moz-animation: rotation 3.75s infinite linear;
               -o-animation: rotation 3.75s infinite linear;
                  animation: rotation 3.75s infinite linear;
        -webkit-transform-origin: 254.675px 379.447px;
            -ms-transform-origin: 254.675px 379.447px;
                transform-origin: 254.675px 379.447px; }
      
                svg .medium-shadow {
        -webkit-animation: rotation 3.75s infinite linear;
             -moz-animation: rotation 3.75s infinite linear;
               -o-animation: rotation 3.75s infinite linear;
                  animation: rotation 3.75s infinite linear;
        -webkit-transform-origin: 264.675px 389.447px;
            -ms-transform-origin: 264.675px 389.447px;
                transform-origin: 264.675px 389.447px; }
      
                svg .large {
        -webkit-animation: counter-rotation 5s infinite linear;
           -moz-animation: counter-rotation 5s infinite linear;
               -o-animation: counter-rotation 5s infinite linear;
                  animation: counter-rotation 5s infinite linear;
        -webkit-transform-origin: 461.37px 173.694px;
            -ms-transform-origin: 461.37px 173.694px;
                transform-origin: 461.37px 173.694px; }
      
                svg .large-shadow {  
        -webkit-animation: counter-rotation 5s infinite linear;
             -moz-animation: counter-rotation 5s infinite linear;
               -o-animation: counter-rotation 5s infinite linear;
                  animation: counter-rotation 5s infinite linear;
        -webkit-transform-origin: 471.37px 183.694px;
            -ms-transform-origin: 471.37px 183.694px;
                transform-origin: 471.37px 183.694px; }
      
      @-webkit-keyframes rotation {
          from {-webkit-transform: rotate(0deg);}
          to   {-webkit-transform: rotate(359deg);}
      }
      @-moz-keyframes rotation {
          from {-moz-transform: rotate(0deg);}
          to   {-moz-transform: rotate(359deg);}
      }
      @-o-keyframes rotation {
          from {-o-transform: rotate(0deg);}
          to   {-o-transform: rotate(359deg);}
      }
      @keyframes rotation {
          from {transform: rotate(0deg);}
          to   {transform: rotate(359deg);}
      }
      
      @-webkit-keyframes counter-rotation {
          from {-webkit-transform: rotate(359deg);}
          to   {-webkit-transform: rotate(0deg);}
      }
      @-moz-keyframes counter-rotation {
          from {-moz-transform: rotate(359deg);}
          to   {-moz-transform: rotate(0deg);}
      }
      @-o-keyframes counter-rotation {
          from {-o-transform: rotate(359deg);}
          to   {-o-transform: rotate(0deg);}
      }
      @keyframes counter-rotation {
          from {transform: rotate(359deg);}
          to   {transform: rotate(0deg);}
      }

    /** End Loading SVG **/

input[type="text"].search{
    border-radius: 2rem;
    position: relative;
    width: 10rem;
}

.error {
    border: 1px solid red !important;
    background-color: #fcd7d7;    
}
span.error{
    background: none;
    border:none !important;
    color: red;
    font-size: .8rem;
    display: block;
}

.menu{
    padding-top: 1rem !important;
}

.menu .holder div, .menu .holder ul {
    display: inline-block;
    vertical-align: middle;
}
.menu .holder ul {
    width: 100%;
    max-width: -moz-calc(100% - 160px);
    max-width: -webkit-calc(100% - 160px);
    max-width: -o-calc(100% - 160px);
    max-width: calc(100% - 160px);
    text-align:center;
}
    .menu .holder ul.responsive {
        max-width:100%;
        margin:0px auto;
        display:none;
    }
    .menu .logo {
        width: 30%;
        max-width: 150px;
    }
    .menu .logo img {
        max-width:150px;
        cursor:pointer;
    }
.menu .menuButton {
    width: 30%;
    display:none !important;
}
    .menu .menuButton.responsive {
        display: block !important;
        float: right;
        text-align: right;
        margin: 20px;
    }
.menu li {
    display:inline-block;
    margin:10px 20px;
    font-size:150%;
}
    .menu li.responsive {
        width: 100%;
        border-bottom: 1px solid var(--main);
        display:block;
        margin: 0px;
        padding: 20px 0px;
    }
    .menu li:first-child.responsive {
        border-top: 1px solid var(--main);
        border-bottom: 1px solid var(--main);
    }


.banner {
    width: 100%;
    margin: 0px;
    padding: 0px;
}
    .banner h2{
        text-align: center;
    }
    .banner.title {
        border: solid var(--main);
        border-width: 5px 0px;
        margin: 80px auto;
        position: relative;
     /*   background-color: #efefefae;
        background-blend-mode: lighten; */
    }
    .banner.title:before{
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.6);
        z-index: 1;
    }
        .banner.title.responsive {
            margin: 10rem auto 0px;
        }
        .banner.title h1 {
            font-size: 300%;
            color: black;
            text-transform: uppercase;
            text-align: inherit;
            padding: 0px;
            margin: 0px;
        }
            .banner.title h1 em {
                color: var(--main);
                font-style:normal;
            }
                .banner.title h1 em.responsive{
                    letter-spacing:normal !important;
                }
        .banner.title p {
            font-size: 130%;
            margin: 0px;
            color: black;
            text-align: inherit;
        }
        .banner.title .holder {
            opacity: 1.0;
            margin:-40px auto;
            text-align:center;
            position: relative;
            z-index: 2;
        }
        .banner.title .holder.userProfile{
            text-align:left;
            margin:-1rem auto;
            display: flex;
        }
        .banner.title .holder.userProfile h1.responsive{
            font-size: 2rem;
        }
            .banner.title .holder.responsive {
                margin:-10rem auto 0px;
                text-align:center;
                display: flex;
                flex-direction: column;
            }
        .banner.title .icon {
            border: 5px solid var(--main);
            width: 300px;
            display:inline-block;
            vertical-align:middle;
            position: relative;
            z-index: inherit;
        }
        .banner.title .holder.userProfile .icon{
            width: 10rem;
            aspect-ratio: 1;
            margin: 0 1rem;
        }
            .banner.title .icon.responsive {
                width:60% !important;
                margin:auto !important;
                display:block !important;
            }
        .banner.title .text {
            display: inline-block;
            vertical-align: middle;
            margin: 0px 0px 0px 20px;
            max-width:200px;
            position: relative;
            z-index: inherit;
        }
            .banner.title .text.responsive{
                width: 100%;
                display: block;
                margin: auto;
                text-align: center !important;
                max-width:none;
            }
        .banner.title .holder.userProfile .text{
            max-width: none;
            text-align: left;
            padding: 2rem 0;
        }
     .banner .holder.gallery {
            border: solid var(--main);
            border-width: 5px 0px;
            margin: 20px auto;
            padding: 20px 20px;
            text-align: center;
        }
        .banner .holder.gallery.responsive {
            padding: 20px 0px;
        }
        .banner .holder.gallery .icon {
            width: 20%;
            display: inline-block;
            vertical-align: middle;
        }
            .banner .holder.gallery .icon:not(:first-child) {
                margin-left: 5%;
            }
    .banner .holder.content {
        max-width: 30% !important;
        margin: 50px auto;
        border: 5px solid var(--main);
        background-color: #efefef;
        text-align: center;
        font-size: 1.2rem;
        padding: 1rem;
    }
        .banner .holder.content h1 {
            font-variation-settings: 'wdth' 80;
        }
        .banner .holder.content.responsive {
            max-width: 90% !important;
        }


      /*  .banner .holder.content:nth-of-type(2n+1) {
            border: 5px solid #efefef;
            background-color: var(--main);
        }*/
         .banner .gallery ul{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            align-content: stretch;
            gap: 20px;
        }
        .banner .gallery ul.responsive{
            flex-direction: column;
        }
        .banner .gallery ul li{
            flex-grow: 4;
            flex-shrink: 2;
            margin: 0px;
            text-align:center;
        }
        .banner .gallery ul li img{
            border: 5px solid var(--main);
            border-radius: 50%;
            width: 10rem;
            aspect-ratio: 1;
            padding: .2rem;
        }
        .banner .gallery ul li img.responsive{
            width: 15rem;
            margin-top: 5rem;
        }
        .banner .holder.content ul li img{
            width: 80px;
            display: none;
        }
        .banner h2.subtitle{
            font-size: 3rem;
        }

    .contact h2 {
        text-align: center;
        font-variation-settings: 'wght' 600;
        font-size: 200%;
    }
    .contact br.responsive {
        display:none;
    }

.article h1 {
    color:var(--main);
    text-align:center;
}
.article h2 {
    font-weight:normal;
    text-align:center;
}
.article em {
    font-style:normal;
    font-weight:bold;
    color:var(--main)
}
.centered {
    text-align:center;
}
.article.squared {
    max-width: 30% !important;
    margin: 50px auto;
    border: 5px solid var(--main);
    background-color: #efefef;
    text-align: center;
    font-size: 120%;
    text-transform: uppercase;
    padding:20px;
}
    .article.squared.responsive {
        max-width:none !important;
        width:auto !important;
        margin:50px 20px;
    }
    .article.squared h2 {
        color: var(--main);
    }

.display {
    padding:20px;
}
    .display .icon {
        width:40%;
        max-width: 200px;
        margin: 0px 20px 0px 0px;
        border: 5px solid var(--main);
        display:inline-block;
        vertical-align:top;
    }
    .display .info {
        display: inline-block;
        width: 55%;
        text-align:justify;
        vertical-align: top;
    }
    .display ul {
        padding:0px;
        margin:0px;
    }

#map {
    width: 100%;
    height: 300px;
    margin: 50px auto;
    display: block;
    border: 5px solid var(--main);
    max-width: 600px;
}
    #map.responsive {
        max-width: 90% !important;
    }

.footer {
    text-align:center;
    background-color:var(--main);
    color: var(--bckgr);
    padding:50px auto;
}
    .footer img {
        margin:5px;
        max-height:50px;
    }

form.register{
    background-color: white;
    border-radius: 3rem 0 3rem 0;
    padding: 2rem;
}

.login{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.login .logo{
    width:80%;
    max-width: 25rem;
    padding: 5rem 2rem;
    border-right: 1px solid var(--bckgr);
}
.login .logo.responsive{
    border: none;
}
.login.responsive{
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.login form{
    color: white;
    border-radius: 3rem;
    padding: 3rem;
    width: max-content;
}
.login form.responsive{
  width: -moz-available;          /* For Mozzila */
  width: -webkit-fill-available;  /* For Chrome */
  width: stretch;                 /* Unprefixed */
}

form.new{
    background-color: white;
    border-radius: 3rem 0 3rem 0;
    padding: 2rem;
}

.layout{
    display: flex;
    background-color: white;
    padding: 0;
    min-height: 100vh;
}
.layout .sidebar{
    background-color: var(--main);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    color: white;
    max-width: 15rem;
    transition: max-width 0.5s ease-in-out;
}
.layout #sideBar:checked ~ .sidebar{
    max-width: 3rem;
}
.layout .sidebar label[for]{
    margin:0;
    display: block;
}
.layout .sidebar label[for] img{
    max-width: 100%;
}
.layout .sidebar .userData{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 1rem;
}
.layout .sidebar .userData .name{
    width: 100%;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: capitalize;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.layout .sidebar .userData .data{
    font-size: .8rem;
}
.layout .sidebar .userData .userIcon{
    max-width: 150px;
    fill: white;
    border: 2px solid white;
    border-radius: 50%;
    aspect-ratio: 1;  
    width: 100%;
    position: relative;
    overflow: hidden;
}
.layout .sidebar .userData .userIcon img{
    max-width: 150px;
}

svg.userIcon{
    fill: #CCC;
    aspect-ratio: 1;  
    border-radius: 50%;
}
.layout .sidebar ul.action{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 0 0;
}
.layout .sidebar ul.action li{
    width: 100%;
    margin: 0;
}
.layout .sidebar ul.action li a{
    width: 100%;
    display: flex;
    align-items: center;
}
/* .layout #sideBar:checked ~ .sidebar ul.action li a{

} */
.layout .sidebar ul.action li a div{
    width: 3rem;
    height: 3rem;
}
.layout .sidebar ul.action li a span{
    padding: .5rem;
    transition: display .5s ease-in-out;
}
.layout #sideBar:checked ~ .sidebar ul.action li a span{
    display: none;
}

.layout .sidebar ul.action li a svg{
    fill: var(--bckgr);
}

.layout .sidebar ul.action li a:hover, 
.layout .sidebar ul.action li a.current{
    background-color: var(--bckgr);
    color: var(--main);
}

.layout .sidebar ul.action li a:hover svg, 
.layout .sidebar ul.action li a.current svg{
    fill: var(--main);
}

.layout .sidebar .icon{
    border-radius: 0;
    background-color: transparent;
}

.layout .content{
    padding: 1rem;
    background-color: var(--bckgr);
    width:100%;
}
.content.small{
    max-width: 600px;
    width: 80vw;
    padding: 0px;
}

.location{
    border: 1px dashed var(--main);
    padding: 1rem;
    margin: 1rem 1rem 2rem 1rem;
    border-radius: 1rem;
}
.location h2{
    margin: 0px;
    margin-top: 0px;
    padding: 0 .5rem;
    margin-top: -2rem;
    background-color: var(--bckgr);
    display: block;
    width: fit-content;
    text-transform: capitalize;
}
.location .devices .wrap{
    display: flex;
    gap: 1rem;  
    flex-wrap: wrap;
}
.locations.responsive .devices{
    justify-content: space-around;
}

.location .device{
    display: flex;
    flex-direction: column;
    position: relative;
    width: fit-content;
    border: 2px solid var(--main);
    border-radius: 1rem;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 0 5px 1px rgba(0,0,0,.2);
    overflow: hidden;
    --loadingBar: var(--main);
}
.location .device[data-alarm="1"]{
    border-color: var(--error);
    background-color: var(--errorBckgr);
    animation: alarm 2s infinite ;
    color: var(--error) !important;
    --loadingBar: var(--error);
}
@keyframes alarm {  
    0% { background-color: white; }
    50% { background-color: var(--errorBckgr); }
    100% { background-color: white; }
  }

.location .device[data-alarm="-1"]{
    border-color: var(--tableLight);
    background-color: var(--tableLight);
    animation: lowAlarm 2s infinite ;
    color: var(--main) !important;
    --loadingBar: var(--main);
}
  @keyframes lowAlarm {  
      0% { background-color: white; }
      50% { background-color: var(--tableLight); }
      100% { background-color: white; }
    }

.location .device[data-alarm="-2"]{
    border-color: gray;
    background-color: lightgray;
    animation: grayAlarm 2s infinite ;
    color: gray !important;
    --loadingBar: gray;
}
@keyframes grayAlarm {  
    0% { background-color: white; }
    50% { background-color: gray; }
    100% { background-color: white; }
}

.location .device.reloadPending:after{
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background-color: var(--loadingBar);
    border-radius: 1px;
    content: '';
    animation: reloadingBar 60s 1 linear;
}
@keyframes reloadingBar {  
    0% { width: 0%; }
    100% { width: 100%; }
}

.alarm[data-type="1"]{
    border-color: var(--error);
    background-color: var(--errorBckgr);
    animation: alarm 2s infinite ;
    color: var(--error) !important;
    --loadingBar: var(--error);
}
.alarm[data-type="-1"]{
    border-color: var(--tableLight);
    background-color: var(--tableLight);
    animation: lowAlarm 2s infinite ;
    color: var(--main) !important;
}
.alarm[data-type="-2"]{
    border-color: gray;
    background-color: lightgray;
    animation: grayAlarm 2s infinite ;
    color: gray !important;
}

/* .location .device .name{
    color: var(--tableLight);
} */
.location .device .meas {
    display: flex;
    flex-direction: column;
}
.location .device .meas .value{
    font-weight: bold;
    font-family: MyriadPro;
    font-size: 3rem;
    flex-direction: column;
}
.location .device .meas .small{
    font-size: 0.6rem;
}
.location .device .sensor{
    font-size: .8rem;
}
.location .device .name{
    font-weight: bold;
}

/* lists */
.list{
    position: relative;
    display: flex;
    flex-direction: column;
    border-collapse: collapse;
    margin-bottom: 2rem;;
}
.list .wrap{
    border-collapse: collapse;
    display: table;
    background-color: var(--bckgr) !important;
}
.list div{
    display: table-row;    
    position: relative;
}
.list div.title{
    font-family: MyriadPro, Arial;
    font-weight: bold;
    background-color: var(--bckgr) !important;
    color: var(--main);
    border-bottom: 1px solid var(--main);
}
.list div:nth-child(2n+1){
    background-color: var(--gray);
}
.list div:hover{
    background-color: var(--lightGray);
}
.list div span{
    display: table-cell;
    padding: .5rem;
    position: relative;
    vertical-align: middle;
}
.list .actions a{
    display: inline-flex;
    margin-right: .5rem;
    position: relative;  
    align-items: center;
    cursor: pointer;
}
.list .actions a span{
    position: relative;
    width: min-content;
    padding-left: 0px;
}
.list .actions a svg{
    fill: var(--main);
    width: 2.5rem;
    vertical-align: middle;
    pointer-events: none;
}
.list div[data-status="-1"]{ /*status deleted*/
    text-decoration: line-through;
    background-color: var(--errorBckgr);
}

*[data-tooltip="-1"]:hover::after{
    content: attr(data-tipmessage);
    position: absolute;
    background-color: var(--bckgr);
    color: var(--main);
    display: block;
    padding: .5rem;
    border-radius: 1rem 1rem 0 1rem;
    border: 2px solid var(--main);
    font-weight: bold; 
    bottom: 100%;
    right: 100%;
}

/*fin admin*/
.pages{
    width: 100%;
    text-align: center;  
    background-color: var(--bckgr) !important;
    border-top: 1px solid var(--main);
}
.pages a{
    margin: .5rem; 
    padding: .5rem;   
    display: inline-block;
    cursor: pointer;
}
.pages a.current{
    border-bottom: 5px solid var(--main);
}

.confirm.wrapper{
    background-color: #0006;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

div.confirm:not(.wrapper){
    background-color: white;
    padding: 1rem;
    border-radius: 2rem;
    box-shadow: 0 0 0 1rem #0008;
    display: flex;
    flex-direction: column;
    min-width: 20rem;
}
div.confirm:not(.wrapper).responsive{
    min-width: none;
    width: 100%;
    margin: 1rem;
}
.confirm:not(.wrapper) .box{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.confirm:not(.wrapper) .box .icon{
    max-width: 4rem;
}
.confirm:not(.wrapper) .box .icon img{
    width: 100%;
}
.confirm:not(.wrapper) .box .message{
    padding-left: 1rem;
}
.confirm:not(.wrapper) .actions{
    text-align: right;
    margin-top: 1rem;
}
.confirm:not(.wrapper) .actions a{
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: 1rem;
    color: var(--main);
    border: 1px solid var(--main);
}
.confirm:not(.wrapper) .actions a.cancel:not([href]){
    background-color: white;
    background-color: var(--main);
    color: white;
    cursor: pointer;
}
.searchResult{
    display: block;
    box-shadow: 0 0 10px 10px black;
    position: absolute;
    background: white;
    box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.34);
    padding: 1rem;
    border-radius: 0 1rem 1rem;
}
.searchResult a{
    display: flex;
    flex-direction: column;
}
.searchResult a span:first-child{
    color: var(--main);
    font-weight: bold;
}
.searchResult a span:last-child{
    text-transform: capitalize;
}
.filter{
    display: flex;
    align-items: center;
    align-content: center;
    padding-bottom: 1.5rem;
}
.filter.responsive{
    flex-direction: column-reverse;
    align-items: flex-start;
    padding-left: 1rem;
}
.filter.responsive span{
    padding: .5rem;
}
.filter span{
    padding: 1rem;
    text-transform: capitalize;
    cursor: pointer;
}
.filter span.active{
    border-bottom: 3px solid var(--main);
}

.marginDouble{
    margin: 2rem;
}
.marginSingle{
    margin: 1rem;
}
.marginHalf{
    margin: .5rem;
}

.msgBox{
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;  
    background-color: rgba(0,0,0,.6);
  }
    .msgBox .wrapper{ 
        position: relative;
        background-color: var(--bckgr);
        border-radius: 1rem;
        padding: 1rem;
        border: 10px solid rgba(0,0,0,.8);  
        max-width: 90%;
        max-height: 100%;
    }

    .msgBox .wrapper iframe{  
        width: 80vw;
        min-height: 80vh;
        height: 100%;
        border: 0px;
    }

    .msgBox .closeBtn {
        position: absolute;
        width: 40px;
        height: 40px;
        top: -25px;
        right: -25px;
        background: rgba(0,0,0,0.6);
        border-radius: 50%;
        color: white;
        text-align: center;
        line-height: 42px;
        font-size: 40px;
        border: 1px solid white;
        cursor: pointer;
        z-index: 99;
    }
    .msgBox .msg{
        position: relative;
        background: white;
        padding: 1rem;
        border: 10px solid rgba(0,0,0,.8);
        border-radius: 1rem;  
        display: grid;
        grid-template-columns: 60px auto;
        padding-bottom: 60px;
    }
    .msgBox .msgIcon img{
        position: relative;
        width: 100%;
        vertical-align: middle;
    }
    .msgBox input[type="submit"]{
        position: absolute;
        bottom: -10px;
        right: 10px;
    }
    .msgBox .wrapper input[type="submit"]{
        position: relative;
    }

    #overlay{
        display: flex;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--main);
        justify-content: center;
        align-items: center;
        z-index: 100;
    }