:root {
    --BackColor: white;
    --ForeColor: #5E4B3C;
    --BackColor2: #ececec;
    --ForeColor2: #372f29;
    --AlternativeBackColor: #e5e5e5;
    --AlternativeForeColor: #5E4B3C;
    --HighlightedBackColor: #2ca7ff;
    --HighlightedForeColor: #ffffff;
    --ControlForeColor: #5E4B3C;
    --ControlBackColor: white;
    --ControlHighlightedForeColor: #ffffff;
    --ControlHighlightedBackColor: #0043ff;
    --HeadBackColor: rgb(150, 32, 16);
    --HeadForeColor: white;
    --TableHeadBackColor: rgb(107, 153, 90);
    --TableHeadForeColor: white;
    --BorderColor: rgb(180 180 180);
    --MenuItemHoverBackColor: rgb(150, 233, 119);
    --MenuItemHoverForeColor: white;
    --DisabledBackColor: lightgray;
    --DisabledForeColor: gray;
    --HighlightedCellBackColor: lightgoldenrodyellow;
    --HighlightedCellForeColre: black;
    --AHighlightedCellBackColor: #fefe87;
    --AHighlightedCellForeColre: black;
    --PopUpBackColor: #f0ecec;
    --PopUpForeColor: black;
    --WarnBackColor: lightyellow;
    --WarnForeColor: black;
    --HueErrorRow: 0;
    --dSaturation: 10%;
    --ErrorBackColor: hsl(var(--HueErrorRow),80%,50%);
    --ErrorForeColor: white;
    --SelectedBackColor: hsl(120 49% 76% / 1);
    --HoverBackColor: #caedca;
    --MenuSection: rgb(89, 160, 63);
}

html {
    font-family: Calibri;
}

body {
    margin: 0;
}

body.test-environment {
    background-color: yellow;
}

@keyframes sparizione {
    to {
        display: none;
        opacity: 0;
        max-height: 0px
    }
}

@media (min-resolution: 150dpi) {
    html {
        font-size: 300%;
    }

    .loginFrame iframe {
        width: 90%;
        min-height: 30rem;
    }
}

div {
    box-sizing: border-box;
}

input, textarea {
    font-size: 0.8rem;
    border: 1px solid var(--BorderColor);
    border-radius: 0.2rem;
    padding: 0.2rem 0.4rem;
    box-sizing: border-box;
}

input[readonly],
textarea[readonly]{
    background: var(--BackColor2);
}

input[type=number]{
    text-align: right;
}

input[type=date]{
    text-align: center;
}

.testata {
    text-align: left;
    background-color: var(--HeadBackColor);
    color: var(--HeadForeColor);
    border-bottom: 0.1rem solid var(--BorderColor);
    margin: 0;
    transition: opacity 0.4s;
    /*position: absolute;
    top: 0;
    left: 0;
    line-height: 1.9rem;
    z-index: 10;
    height: 4rem;
    background-position: center right;
    background-size: contain;
    background-repeat: no-repeat;*/
}

.test-environment .testata{
    background-color: #6c6c4e;
    color: #ffffff;
}

    .testata .titolo {
        padding: 0;
        margin-top: 0.7rem;
        padding-left: 0.4em;
        width: 70%;
        font-size: 1.7rem;
        line-height: 1.4rem;
        vertical-align: middle;
    }

.loginFrame {
    position: fixed;
    left: 0rem;
    right: 0rem;
    top: 0rem;
    bottom: 0rem;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    text-align: center;
}

    /*
.loginFrame{
  position:fixed; 
    z-index: 1000;
    border: 1px solid;
    background: var(--BackColor);
    margin:auto;
    
    min-width: 12rem;
    width: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
}*/
    .loginFrame iframe {
        background-color: var(--BackColor);
        border: none;
        text-align: center;
        margin: 0;
        margin-top: 0;
        height: 100%;
        width: 100%;
        padding: 0;
        padding-top: 5%;
        background-color: #ffffff;
    }

body>.piede {
    border-top: 0.1rem solid var(--BorderColor);
    line-height: 1rem;
    z-index: 20;
    left: 0;
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 0.1rem;
    background-color: var(--AlternativeBackColor);
    color: var(--AlternativeForeColor);
    font-size: 80%;
    overflow: hidden;
    height: 2rem;
    transition: opacity 0.4s;
    /* min-width: 66rem; */
}

.corpo {
    left: 0;
    right: 0rem;
    bottom: 2.5rem;
    top: 3rem;
    padding: 0.1rem;
    overflow: auto;
    background-color: var(--BackColor);
    color: var(--ForeColor);
    border: none;
    transition: opacity 0.4s;
    /* height: 300px; */
    position: absolute;
}
.test-environment .corpo{
    background-color: fuchsia;
}


.dissolvi {
    animation: sparizione;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.invisibile {
    display: none;
}

table {
    margin: auto;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 1rem;
    border-bottom: 0.1rem solid var(--ForeColor);
}

    table thead tr {
        background-color: var(--TableHeadBackColor);
        color: var(--TableHeadForeColor);
        /* opacity: 0.8; */
    }

    table td,
    table th {
        padding: 0.2rem;
        vertical-align: middle;
    }

    table tr {
        background-color: var(--BackColor2);
    }

        table tr:nth-child(2n) {
            background-color: var(--AlternativeBackColor);
        }


.errore,
tr.errore td {
    background-color: var(--ErrorBackColor);
    color: var(--ErrorForeColor);
}

td.cliccabile:hover {
    box-shadow: inset 0px 0px 5px var(--HighlightedBackColor);
    cursor: pointer;
}

td.cliccabile:active {
    box-shadow: inset 0px 0px 8px var(--ControlHighlightedBackColor);
    cursor: pointer;
}

table.cliccabile tbody tr:hover,
table.cliccabile tbody tr:nth-child(2n):hover {
    background-color: var(--HoverBackColor);
    cursor: pointer;
}

table.cliccabile thead tr th {
    cursor: pointer;
}

    table.cliccabile thead tr th.asc {
        background-image: url("/images/icons/neg/ordina-su.svg");
        background-position: calc(100% - 0.1rem) center;
        background-repeat: no-repeat;
        background-size: 1rem;
        padding-right: 1rem;
    }

    table.cliccabile thead tr th.desc {
        background-image: url("/images/icons/neg/ordina-giu.svg");
        background-position: calc(100% - 0.1rem) center;
        background-repeat: no-repeat;
        background-size: 1rem;
        padding-right: 1rem;
    }

table.cliccabile tbody tr.selezionata {
    background-color: var(--SelectedBackColor);
    font-weight: bold;
    cursor: pointer;
}

.nessun-risultato {
    text-align: center;
    font-size: 2rem;
    padding: 2rem;
}

.backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 100;
    opacity: 0;
    background: black;
    transition: opacity 0.3s linear;
}

    .backdrop.visible {
        opacity: 0.4;
    }

.dropdown {
    position: absolute;
    background: var(--BackColor);
    margin: 0rem;
    max-height: 0;
    padding: 0rem;
    border-radius: 0.2rem;
    box-shadow: 0rem 0.2rem 0.5rem;
    transition: max-height 0.5s;
    overflow: hidden;
    z-index: 101;
}

    .dropdown ul {
        margin: 0.1rem;
        padding: 0.2rem;
    }

    .dropdown li {
        margin: 0.1rem;
        padding: 0.3rem 0.8rem;
        list-style: none;
    }

        .dropdown li:nth-child(2n) {
            background-color: var(--AlternativeBackColor);
            color: var(--AlternativeForeColor);
        }

        .dropdown li.disabled:nth-child(2n) {
            background-color: var(--DisabledBackColor);
            color: var(--DisabledForeColor);
        }

        .dropdown li:hover:not(.disabled) {
            background-color: var(--MenuItemHoverBackColor);
            color: var(--MenuItemHoverForeColor);
            cursor: pointer;
        }

.popup {
    position: fixed;
    top: 5rem;
    z-index: 101;
    border: 0.1rem solid var(--BorderColor);
    border-radius: 0.5rem;
    box-shadow: 0rem 0rem 0.2rem var(--BorderColor);
    margin: auto;
    transition: max-height 0.5s;
    background: var(--PopUpBackColor);
    color: var(--PopUpForeColor);
    max-width: 98%;
    top: 25%;
    left: 50%;
    overflow: auto;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

    .popup:not(.opened) {
        padding: 0;
        border-width: 0 !important;
        max-height: 0px !important;
        box-shadow: none;
    }

    .popup.opened {
        max-height: 100rem;
    }

    .popup h1 {
        margin: 0;
        font-size: 1.5rem;
        text-align: center;
        background: var(--HeadBackColor);
        color: var(--HeadForeColor);
        padding: 0.5rem 0.2rem;
    }
    .popup h2 {
        margin: 0.2rem;
        font-size: 1rem;
        text-align: left;
        font-weight: 300;
        padding: 0.2rem 0.2rem;
        border-bottom: 0.05rem solid;
        color: var(--MenuSection);
        margin-bottom: 0.6rem;
    }

.message-box {
    position: fixed;
    left: 50%;
    top: -100%;
    transform: translate(-50%);
    box-shadow: 0px 0px 0.1rem 0.1rem var(--BorderColor);
    border: 0.1rem solid var(--BorderColor);
    border-radius: 0.5rem;
    box-shadow: 0rem 0rem 0.2rem var(--BorderColor);
    background-color: var(--AlternativeBackColor);
    width: 50%;
    margin: auto;
    padding: 1rem;
    padding-left: 8rem;
    background-image: url('/images/icons/info.svg');
    background-repeat: no-repeat;
    background-position: 1rem 1rem;
    background-size: 6rem;
    z-index: 10001;
    transition: top 0.4s;
}

    .message-box.question {
        background-image: url('/images/icons/question.svg');
    }

    .message-box.alert {
        background-image: url('/images/icons/alert.svg');
        padding-left: 8rem;
    }

    .message-box.visible {
        top: 10%;
    }

    .message-box .comandi {
        border-top: 0.2rem solid var(--BorderColor);
        text-align: right;
        margin-top: 1rem;
        padding: 0.5rem;
        padding-bottom: 0;
    }

    .message-box button {
        background-size: 2.5rem;
        padding-top: 2.5rem;
        min-width: 2.5rem;
        margin-left: 0.5rem;
    }

    .message-box.avviso{
        padding-left: 8rem;
    }

/*
.messaggio div h1 {
    font-size: 1.1rem;
    background-color: var(--AlternativeForeColor);
    color: var(--AlternativeBackColor);
    margin: -0.8rem -0.7rem;
    padding: 0.2rem 1rem;
    margin-bottom: 1rem;
}

.messaggio .conferma-lettura {
    border: none;
    padding: 0rem;
    margin: 0rem;
    width: 100%;
    text-align: right;
}*/

.suggestions {
    position: absolute;
    z-index: 1000;
    background-color: var(--BackColor);
    color: var(--ForeColor);
    border: 1px solid var(--BorderColor);
    border-radius: 0.2rem;
    text-align: left;
    font-size: 1rem;
    transform: translateX(-100%);
    overflow: auto;
    /* max-height: 15rem; */
}

.suggestion {
    padding: 0.1rem 0.4rem;
}

    .suggestion:nth-child(2n+1) {
        background-color: var(--AlternativeBackColor);
        color: var(--AlternativeForeColor);
    }

        .suggestion:hover,
        .suggestion:nth-child(2n+1):hover {
            background-color: var(--HoverBackColor);
            cursor: pointer;
        }

    .suggestion.highlighted {
        background-color: var(--MenuItemHoverBackColor);
        color: var(--MenuItemHoverForeColor);
    }

.sottopagina.closed {
    max-height: 0rem;
}

.sottopagina.opened {
    max-height: 100rem;
}

.righe {
    display: flex;
    flex-direction: column;
}

.riga {
    flex: 1;
    flex-direction: column;
}

.doppia-riga {
    flex: 2;
}

.tripla-riga {
    flex: 3;
}

.tetra-riga {
    flex: 4;
}

.colonne {
    display: flex;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
}

.colonna {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doppia-colonna {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.tripla-colonna {
    flex: 3;
    display: flex;
    flex-direction: column;
}

.tetra-colonna {
    flex: 4;
    display: flex;
    flex-direction: column;
}

.penta-colonna {
    flex: 5;
    display: flex;
    flex-direction: column;
}

.esa-colonna {
    flex: 6;
    display: flex;
    flex-direction: column;
}

.epta-colonna {
    flex: 7;
    display: flex;
    flex-direction: column;
}

.destra {
    text-align: right;
}

.centra {
    text-align: center;
}

.table-view .real,
.table-view .integer {
    text-align: right;
}

.table-view .date {
    text-align: center;
}

button.destra{
    padding: 1rem 1rem 1rem 2.5rem;
    background-position: left center;
    text-align: right;
}