body{
    font-family: 'Montserrat';
}
.patina-login{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/fondo.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.box-login{
    width: 50%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: column;
}
.box-login>img{
    width: 40%;
}
label{
    font-size: 12px;
    color: #333333;
    font-weight: 500;
    text-transform: uppercase;
}
.input-login{
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
    border: none;
    border: solid thin rgba(55,96,130,1);
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
}
.btn-input{
    -webkit-appearance: none;
    appearance: none;
    background-color: rgba(55,96,130,1);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    text-transform: uppercase;
    width: 100%;
}
.loader{
    position: fixed;
    z-index: 10;
    background-color: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    color: white;
}
.loader_wait{
    width: 20px;
    height: 20px;
    background-color: white;
    animation: giragira 2s linear infinite;
    animation-fill-mode: initial;
    transition: all ease 0.3s;
    border-radius: 50%;
    background-image: conic-gradient(
    rgba(55,96,130,1),
    rgba(176,207,103,1),
    rgba(208,59,59,1)
    );
}
.header{
    width: 100%;
    height: 70px;
    background-color: rgba(55,96,130,1);
}
.contenitore{
    width: 90%;
    margin-left: 5%;
}
.cont-h{
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
}
.cont-h>img{
    height: 50px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(1%) hue-rotate(164deg) brightness(104%) contrast(101%);
}
.cont-h span{
    font-size: 14px;
    color: white;
}
.btn-menu{
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
    color: rgba(55,96,130,1);
    border: none;
    border-radius: 5px;
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
}
.alert-pers{
    width: 100%;
    padding: 20px;
    background-color: coral;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 10px;
}
.box{
    margin-bottom: 10px;
    margin-top: 10px;
    width: calc(90% - 40px);
    margin-left: 5%;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    flex-direction: column;
    font-size: .8rem;
    font-family: 'Montserrat';
    position: relative;
    transition: all ease 0.3s;
}
.box-no-padding{
    padding: 0;
}
.box-testo{
    align-items: flex-start; text-align: left;
}
.box-43{
    aspect-ratio: 4/3;
}
.box-169{
    aspect-ratio: 16/7;
}
.box-ombra{
    box-shadow: 0px 0px 10px #d1d1d1;
    border: solid thin #d1d1d1;
}
.box-blu{
    background-color: rgb(39, 100, 174);
    color: white;
}
.box-petrolio{
    background-color: darkslategrey;
    color: white;
}
.box-verde{
    background-color: rgba(102,179,46,1);
    color: white;
}
.box-rosso{
    background-color: rgba(208, 59, 59, 1);
    color: white;
}
.box-giallo{
    background-color: darkorange;
    color: white;
}
.box-full{
    width: 40%;
    margin-left: 30%;
}
.box-in-box{
    padding: 10px;
    border-bottom: solid thin #f1f1f1;
    position: relative;
}
.box-meta{
    width: 47.5%;
    aspect-ratio: 1/1;
    box-sizing: border-box;
    margin: 0;
    margin-bottom: 5%;
    overflow: hidden;
}
.box-meta-auto{
    aspect-ratio:unset;
}
.box-die{
    background-color: rgba(255,255,255,0.6);
    color: black;
    box-shadow: 0px 0px 4px black;
    font-weight: 700;
    text-transform: uppercase;
    padding: 20px;
    width:calc(100% - 80px);
}
.cont-box-meta{
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    padding: 0;
    width: 90%;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 5%;
}
.h-box{
    border-bottom: solid thin #f1f1f1;
    width: calc(100%);
    position: absolute;
    left: 0;
    padding: 10px;
    top: 0;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    font-size: 0.65rem;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    overflow:hidden;
}
.h-box + *{
    margin-top: 43px;
}
.body-box{
    width: 100%;
    color: white;
}

.ico-h-box{
    height: 20px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(2%) hue-rotate(187deg) brightness(103%) contrast(101%);
}
.box-fc{
    display: flex;
    height: calc(80%);
    align-items: center;
    align-content: center;
    justify-content: center;
}


.valore-slide{
    font-size: 2rem;
    width: 100%;
    text-align: left;
}
.valore-slide-piccolo{
    font-size: 1.5rem;
}
.valore-slide-grande{
    font-size: 3rem;
}
.btn-body-box{
    font-family: 'Montserrat';
    border-radius: 5px;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
}
.btn-h-box{
    font-family: 'Montserrat';
    border-radius: 5px;
    color: white;
    background-color: rgba(0,0,0,0.5);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 5px;
    padding-right: 5px;
}
.input-body-box{
    border-radius: 5px;
    padding: 5px;
    width: calc(100% - 10px);
}

.cont-mini-box{
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
    flex-wrap: wrap;
}
.mini-box{
    flex: 1 1 auto;
    background-color: rgba(255,255,255,0.4);
    border-radius: 5px;
    padding: 5px;
    text-align: center;
}

.box-grigio{
    background-color: rgba(0,0,0,0.6);
    color: white;
}
.box-azzurro{
    background-color: rgba(156, 200, 235,1);
    color: white;
}
.box-azzurro-fade{
    background-color: rgba(156, 200, 235,1)Fade;
    color: white;
}
.box-trasp{
    background-color: transparent;
}
.box-loading{
    background-color: rgba(208, 59, 59, 1);
    color: white;
}
.h-box-verde{
    color: rgba(102,179,46,1);
}
.h-box-bg-verde{
    background-color: rgba(102,179,46,1);
}
.h-box-rosso{
    background-color: rgba(208, 59, 59, 1);
    color: #ffffff;
}
.h-box-bg-scuro{
    background-color: rgba(35,35,35,1);
    color: #ffffff;
}
.h-box-azzurro{
    color: rgba(156, 200, 235,1);
}
.h-box-blu{
    color: rgb(39, 100, 174);
}
.h-box-bg-azzurro{
    background-color: rgba(156, 200, 235,1);
}
.h-box-bg-blu{
    background-color: rgb(39, 100, 174);
}
.box-healena{
    background-image: url(../images/bg_box_azzurro.png), url(../images/bg_box_verde_bottom.png);
    background-repeat: no-repeat, no-repeat;
    background-position: left top, right bottom;
    background-size: 30%, 20%;
}

.dashboard-body{
    background-color: #f2f5f8;
}
.dashboard-header{
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
}
.dashboard-header-content{
    gap: 20px;
}
.dashboard-header-right{
    display: flex;
    align-items: center;
    gap: 10px;
}
.dashboard-patient{
    font-weight: 600;
}
.dashboard-main{
    margin-top: 20px;
    margin-bottom: 40px;
}
.dashboard-intro{
    margin-bottom: 12px;
}
.dashboard-intro h2{
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(55,96,130,1);
}
.dashboard-intro p{
    margin: 4px 0 0 0;
    color: #5d6a78;
    font-size: 0.85rem;
}
.dashboard-filter-form{
    margin-top: 10px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.dashboard-filter-item{
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dashboard-filter-item label{
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #3f4e5f;
}
.dashboard-filter-item select{
    border: solid thin #c9d2db;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    min-width: 130px;
    background-color: #fff;
}
.dashboard-filter-btn{
    height: 36px;
}
.dashboard-tiles{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
.dashboard-tile{
    min-height: 190px;
}
.dashboard-tile-full{
    grid-column: 1 / -1;
}
.dashboard-tile-wide{
    grid-column: span 2;
}
.dashboard-section{
    margin-bottom: 28px;
}
.dashboard-section-heading{
    margin-bottom: 12px;
}
.dashboard-section-heading h2{
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(55,96,130,1);
}
.dashboard-section-heading p{
    margin: 4px 0 0 0;
    color: #5d6a78;
    font-size: 0.85rem;
}
.dashboard-grid{
    display: grid;
    gap: 14px;
}
.dashboard-grid-two{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-grid-three{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard-grid-five{
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.dashboard-card{
    width: 100%;
    margin: 0;
    min-height: 180px;
    box-sizing: border-box;
}
.dashboard-card .b-box{
    width: 100%;
}
.dashboard-card-patient .b-box{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dashboard-kv{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border-bottom: solid thin rgba(255,255,255,0.14);
    padding-bottom: 4px;
}
.dashboard-kv span{
    opacity: 0.85;
}
.dashboard-kv strong{
    text-align: right;
}
.dashboard-vitals-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.dashboard-vital-item{
    background-color: rgba(255,255,255,0.1);
    border: solid thin rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}
.dashboard-vital-action{
    position: absolute;
    top: 4px;
    right: 4px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 2;
}
.dashboard-vital-action:hover{
    color: #ffffff;
    background-color: rgba(255,255,255,0.12);
}
.dashboard-vital-action:active{
    background-color: rgba(255,255,255,0.2);
}
.dashboard-header-action{
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    line-height: 1;
}
.dashboard-header-action:hover{
    background-color: rgba(255,255,255,0.18);
    color: #fff;
}
.dashboard-vital-item span{
    font-size: 0.72rem;
    text-transform: uppercase;
    opacity: 0.9;
}
.dashboard-vital-item strong{
    font-size: 1.05rem;
}
.dashboard-card-list .b-box{
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dashboard-list-row{
    border-bottom: solid thin rgba(255,255,255,0.12);
    padding-bottom: 4px;
}
.dashboard-empty{
    font-size: 0.75rem;
    opacity: 0.85;
    border: dashed thin rgba(255,255,255,0.4);
    border-radius: 8px;
    padding: 10px;
}
.dashboard-metric{
    min-height: 130px;
    justify-content: center;
}
.dashboard-metric-label{
    text-transform: uppercase;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-bottom: 6px;
}
.dashboard-metric-value{
    font-size: 1.35rem;
    line-height: 1.2;
}
.dashboard-placeholder{
    min-height: 150px;
}
.dashboard-psico-box{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dashboard-psico-label{
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.9;
}
.dashboard-psico-value{
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 700;
}
.dashboard-mini-detail{
    font-size: 0.78rem;
    opacity: 0.92;
}
.dashboard-referti-box{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.dashboard-referto-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
}
.dashboard-referto-icon{
    font-size: 64px;
    line-height: 1;
}
.dashboard-referto-date{
    font-size: 0.8rem;
    opacity: 0.95;
}
.dashboard-modal-backdrop{
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.55);
    z-index: 190;
    display: none;
}
.dashboard-modal{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(540px, calc(100% - 20px));
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.35);
    z-index: 200;
    display: none;
    overflow: hidden;
}
.dashboard-modal.is-open,
.dashboard-modal-backdrop.is-open{
    display: block;
}
.dashboard-modal-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(55,96,130,1);
    color: #fff;
    padding: 12px 14px;
}
.dashboard-modal-header h3{
    margin: 0;
    font-size: 1rem;
}
.dashboard-modal-close{
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.dashboard-modal-body{
    padding: 14px;
}
.dashboard-modal-subtitle{
    font-size: 0.8rem;
    color: #5d6a78;
    margin-bottom: 10px;
}
.dashboard-parametro-list{
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dashboard-parametro-list li{
    border: solid thin #d7dee5;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.dashboard-parametro-list li strong{
    color: rgba(55,96,130,1);
}
.dashboard-parametro-list li span{
    font-size: 0.75rem;
    color: #6d7886;
}
.dashboard-parametro-empty{
    color: #6d7886;
    font-size: 0.8rem;
}
@media(max-width: 1200px){
    .dashboard-tiles{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .dashboard-tile-wide{
        grid-column: span 3;
    }
    .dashboard-tile-full{
        grid-column: 1 / -1;
    }
    .dashboard-grid-five{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .dashboard-grid-three{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media(max-width: 900px){
    .dashboard-tiles{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-tile-wide{
        grid-column: span 2;
    }
    .dashboard-tile-full{
        grid-column: 1 / -1;
    }
    .dashboard-grid-two,
    .dashboard-grid-three,
    .dashboard-grid-five{
        grid-template-columns: 1fr;
    }
    .dashboard-header-content{
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .dashboard-header-right{
        width: 100%;
        justify-content: space-between;
    }
    .dashboard-vitals-grid{
        grid-template-columns: 1fr;
    }
    .dashboard-filter-form{
        align-items: stretch;
    }
    .dashboard-filter-btn{
        width: 100%;
    }
}
@media(max-width: 640px){
    .dashboard-tiles{
        grid-template-columns: 1fr;
    }
    .dashboard-tile-wide{
        grid-column: span 1;
    }
    .dashboard-tile-full{
        grid-column: 1 / -1;
    }
}
@keyframes giragira {
    0%{
        transform: rotate(0deg);
    }
    25%{
        transform: rotate(90deg);
    }
    50%{
        transform: rotate(180deg);
    }
    75%{
        transform: rotate(270deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
/*
        <div class="box-login">
            <form action="login.php" target="_top" method="post">
                <input type="hidden" name="azione" value="waitfor">
                <label>Inserisci il tuo codice medico</label><br>
                <input type="password" class="input-login"><br><br>
                <label>Inserisci l'OTP del paziente</label><br>
                <input type="password" class="input-login"><br><br>
                <button class="btn-input" type="submit">Entra</button>
            </form>
        </div>
    </div>
    */