:root{
    --hygea-primary: #345e7d;
    --hygea-primary-dark: #2a4d66;
    --hygea-accent: #a0c8e8;
    --hygea-accent-soft: rgba(160,200,232,0.35);
    --hygea-bg: #eef2f6;
    --hygea-surface: #ffffff;
    --hygea-text: #2c3e50;
    --hygea-text-muted: #6b7c8a;
    --hygea-border: #d4dee8;
    --hygea-radius: 10px;
    --hygea-shadow: 0 2px 12px rgba(52,94,125,0.08);
}
body{
    font-family: 'Montserrat', sans-serif;
    background-color: var(--hygea-bg);
    color: var(--hygea-text);
}
.contenitore{
    width: 74%;
    margin-left: 13%;
}
.header{
    width: calc(100% - 280px);
    margin-left: 280px;
    height:80px;
    position: sticky;
    top: 0;
    border-bottom: none;
    background-color: var(--hygea-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(42,77,102,0.25);
    transition: all ease-in 0.2s;
    z-index: 40000;
}
.header .right-h{
    color: #ffffff;
}
.in-h{
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    height: 80px;
}
.left-h{
    width: 50%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    gap: 30px;
}
.left-h .material-icons{
    cursor: pointer;
}
.right-h{
    width: 50%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-end;
    gap: 30px;
}
.header .material-icons{
    color: #ffffff;
}
.account-h{
    width:40px;
    height:40px;
    border-radius:25px;
    background-color: var(--hygea-accent);
    color: var(--hygea-primary-dark);
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    font-weight: 600;
}
.menu{
    width: 280px;
    border-right: solid thin var(--hygea-border);
    position: fixed;
    top: 0;
    height: 100%;
    background-color: var(--hygea-surface);
    box-shadow: 2px 0 12px rgba(52,94,125,0.06);
    transition: all ease-in 0.2s;
    left: 0;
    z-index: 30000;
    overflow-y: scroll ;
}
.top-menu{
    height: 80px;
    border-bottom: solid thin var(--hygea-border);
    background-color: var(--hygea-surface);
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.top-menu>img{
    width: 50%;
    margin-left: -20px;
}
.cont-link-menu{
    padding: 16px;
}
.link-menu{
    border-radius: 8px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 10px;
    font-size: 14px;
    color: var(--hygea-text-muted);
    margin-bottom:4px;
    position: relative;
    cursor: pointer;
    transition: all ease 0.2s;
}
.link-menu-rosso{
    background-color: coral;
    color: white;
}
.link-menu:hover{
    background-color: var(--hygea-accent-soft);
    color: var(--hygea-primary-dark);
}
.link-menu-sel{
    background-color: var(--hygea-primary);
    color: white;
}
.label-menu{
    font-size: 14px;
    color: var(--hygea-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-pers{
    position: absolute;
    background-color: var(--hygea-primary);
    right: 4px;
    padding: 3px;
    border-radius: 5px;
    color: white;
    width: 30px;
    text-align: center;
}
.badge-icon{
    background-color: transparent;
    color: #666666;
}
.badge-icon .material-icons{
    margin-top: 8px;
    font-size: 20px;
    transition: all ease 0.2s;
}
.dropdown .dropdown-menu{
    opacity:0;
    transition: all 0.5s ease;
}
.dropdown-item{
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    gap:10px;
    font-size:14px
}
.dropdown-item .material-icons{
    font-size: 20px;
}
.pagina{
    width: calc(100% - 280px);
    margin-left: 280px;
    transition: all ease-in 0.2s;
    margin-top:20px;
    margin-bottom: 80px;
}
.contenitore-pagina{
    width: 90%;
    margin-left: 5%;
    transition: all ease-in 0.2s;
}
.h-pagina{
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.titolo-pagina{
    font-size: 20px;
    font-weight: 600;
    color: var(--hygea-primary);
    width: 50%;
    height: 40px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
}
.bread-pagina{
    width: 50%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-end;
    font-size: 12px;
    color: var(--hygea-text-muted);
}
.cont-box{
    display: flex;
    align-items: flex-start;
    align-content: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}
.box{
    min-height: 200px;
    background-color: var(--hygea-surface);
    border-radius: var(--hygea-radius);
    flex: 1 1 0px;
    padding: 20px;
    transition: all ease-out 0.2s;
    position: relative;
    border: solid thin var(--hygea-border);
    box-shadow: var(--hygea-shadow);
}
.h-box{
    border-bottom: solid thin var(--hygea-border);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    position: sticky;
    top: -20px;
    background-color: var(--hygea-accent);
    color: var(--hygea-primary-dark);
    border-top-left-radius: var(--hygea-radius);
    border-top-right-radius: var(--hygea-radius);
}
.h-box div{
    flex: 0 1 auto;
}
.label-h-box{
    min-width: 60px;
    height: 30px;
    border-radius: 8px;
    text-align: right;
    background-color: rgba(255,255,255,0.55);
    color: var(--hygea-primary-dark);
    text-align: center;
    line-height: 30px;
    padding-left: 10px;
    padding-right: 10px;
}
.b-box{
    padding: 20px;
}
.f-box{
    padding: 20px;
    border-top: dashed thin var(--hygea-border);
}
.box-contesta{
    padding: 0;
}
.box-fisso{
    flex: 0 1 30%;
}
.box-link{
    cursor: pointer;
}
.box-link:hover{
    box-shadow: 0 6px 20px rgba(52,94,125,0.15);
    margin-top: -4px;
    border-color: var(--hygea-accent);
}
.box-rosso{
    background-color: red;
    color: white;
    transition: all ease 0.3s;
    animation-name: lampeggio;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    border: solid thin red;
}
.lampeggio{
    transition: all ease 0.3s;
    animation-name: lampeggio2;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}
@keyframes lampeggio {
    0%{ box-shadow: 0px 0px 0px black;}
    50%{ box-shadow: 0px 0px 8px black;}
    100%{ box-shadow: 0px 0px 0px black;}
}
@keyframes lampeggio2 {
    0%{ opacity: 0.4;}
    50%{ opacity: 1;}
    100%{ opacity: 0.4;}
}
.numero-box{
    font-weight: 700;
    font-size: 40px;
    color: var(--hygea-primary);
}
.icon-box{
    width: 65px;
    height: 65px;
    background-color: #d1d1d1;
    position: absolute;
    right: 20px;
    top: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.icon-box-white{
    background-color: rgba(255,255,255,0.5);
}
.icon-box-yellow{
    background-color: rgba(251,188,8,0.2);
}
.icon-box-blu{
    background-color: var(--hygea-accent-soft);
}
.icon-box-pink{
    background-color: rgba(52,94,125,0.12);
}
.icon-box .material-icons{
    color: white;
    font-size: 40px;
}
.icon-box-yellow .material-icons{
    color: #fbbc08;
}
.icon-box-blu .material-icons{
    color: var(--hygea-primary);
}
.icon-box-pink .material-icons{
    color: var(--hygea-primary-dark);
}
.elenco-palla-row{
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
}
.riga-elenco-palla{
    font-size: 12px;
    color: #666666;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 5px;
}
.palla{
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #d1d1d1;
}
.palla-rossa{
    background-color: red;
}
.palla-blu{
    background-color: blue;
}
.palla-arancio{
    background-color: orange;
}
.toolbar{
    width: calc(100% - 280px);
    margin-left: 280px;
    height:60px;
    position: sticky;
    top: 80px;
    border-bottom: solid thin var(--hygea-border);
    background-color: var(--hygea-surface);
    box-shadow: var(--hygea-shadow);
    transition: all ease-in 0.2s;
    z-index: 30000 !important;
    font-size: 12px;
    padding-left: 20px;
    padding-right: 20px;
}
.toolbar .in-h{
    height: 60px;
}
.box-tool{
    flex:1 1 auto;
}
.btn-pers{
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--hygea-primary);
    color: white;
    border:solid thin var(--hygea-primary);
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-pers:hover{
    background-color: var(--hygea-primary-dark);
    border-color: var(--hygea-primary-dark);
}
.btn-pers-invertito{
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--hygea-surface);
    color: var(--hygea-primary);
    border:solid thin var(--hygea-primary);
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s ease;
}
.btn-pers-invertito:hover{
    background-color: var(--hygea-accent-soft);
}
.btn-pers-green{
    -webkit-appearance: none;
    appearance: none;
    background-color: green;
    color: white;
    border:solid thin green;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
}
.btn-full{
    width: 100%;
}
.btn-con-icona{
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 10px;
}
.btn-piccolo{
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
}
.input-pers{
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--hygea-surface);
    color: var(--hygea-text);
    border:solid thin var(--hygea-border);
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
}
.input-pers:focus{
    outline: none;
    border-color: var(--hygea-accent);
    box-shadow: 0 0 0 3px var(--hygea-accent-soft);
}
.cont-table{
    width:100%;
    background-color:var(--hygea-surface);
    border-radius:var(--hygea-radius);
    padding:10px;
    border: solid thin var(--hygea-border);
    box-shadow: var(--hygea-shadow);
}
.cont-table table{
    font-size:12px; width:100%;
}
.cont-table thead{
    background-color: var(--hygea-accent-soft);
    border-bottom: solid thin var(--hygea-border);
}
.cont-table thead tr{
    height: 40px;
}
.cont-table tbody tr{
    height: 40px;
}
.cont-table tbody tr td{
    padding: 5px;
}
.cont-table tbody tr:nth-child(even){
    background-color: #f4f7fa;
}
.cont-table-no-border{
    border: none;
}
.chip-stato{
    text-align: center;
    border-radius: 5px;
}
.patina{
    background-color: rgba(42,77,102,0.75);
    position: fixed;
    z-index: 50000;
    top: 0;
    left:0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.patina-chiusa{
    display: none;
}
.box-login{
    background-color: var(--hygea-surface);
    width: 40%;
    border-radius: var(--hygea-radius);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(42,77,102,0.2);
    max-height: 80%;
    overflow-y: scroll;
}
.input-con-tasto{
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    flex-direction: row;
}
.input-con-tasto .input-pers{
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}
.input-con-tasto .btn-pers{
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}
.label-input{
    font-size: 12px;
    color: var(--hygea-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.icon-alert{
    font-size: 30px;
}
.alert{
    font-size: 12px;
}
.alert .material-icons{
    font-size: 60px;
}
.alert-error .material-icons{
    color: red;
}
.alert-done .material-icons{
    color: green;
}
.alert-warn{
    background-color: rgba(251,188,8,0.2);
}
.alert-warn .material-icons{
    color: darkorange;
}
.alert-quest .material-icons{
    color: #fbbc08;
}
.box-chat{
    width: calc(80% - 20px);
    padding: 10px;
    background-color: transparent;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}
.box-chat-utente{
    width: calc(80% - 20px);
    padding: 10px;
    background-color: var(--hygea-accent-soft);
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 20%;
    text-align: right;
    margin-bottom: 20px;
}
.cont-notifiche{
    width: 230px;
    position: fixed;
    top:90px;
    right: 20px;
    z-index: 41000;
    background-color: transparent;
    border-radius: 10px;
    display: none;
}
.notifica{
    background-color: var(--hygea-surface);
    font-size: 0.7rem;
    border: solid thin var(--hygea-border);
    padding: 10px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    display: none;
    border-radius: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    box-shadow: 0px 0px 4px #d1d1d1;
}
.notifica .material-icons{
    font-size: 0.9rem;
}