* {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Standard */
}
html {
    width: 100vw;
    height: 100%;
    font-size: clamp(10px, 0.6vw, 14px);
    display: flex;
    scroll-behavior: smooth;
}
body {
    font-family: system-ui;
    width: 100vw;
    margin: 0px;
    padding: 0px;
    background-color: #fafafa;
    flex-grow: 1;
    min-height: 0px;
    min-width: 0px;
}

.show {
    display: block;
}

.inline {
    display: inline-block;
}

.padding {
    padding: 0.4rem;
}

.container {
    display: -ms-flexbox !important;
    display: -webkit-flex !important;
    display: flex !important;
    min-height: 0px;
}

.container {
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.container.direction_c {
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
}

.grow {
    flex-grow: 1;
    min-height: 0px;
    min-width: 0px;
}

.shrink {
    min-width: 0px;
    min-height: 0px;
    flex-shrink: 0;
}

.container.show {
    display: flex;
}

.container.inline {
    display: inline-flex;
}

.container.inline.show {
    display: inline-flex;
}
.container.hide {
    display: none !important;
}
.hide {
    display: none;
}

.padding {
    padding: 0.1rem 0.2rem;
}

.padding2 {
    padding: 0.2rem 0.4rem;
}

.padding3 {
    padding: 0.3rem 0.6rem;
}

.padding4 {
    padding: 0.4rem 0.8rem;
}

.padding5 {
    padding: 0.5rem 1rem;
}

.padding6 {
    padding: 0.6rem 1.2rem;
}

.padding7 {
    padding: 0.7rem 1.4rem;
}

.padding8 {
    padding: 0.8rem 1.6rem;
}

.padding9 {
    padding: 0.9rem 1.8rem;
}

.padding10 {
    padding: 1.0rem 2rem;
}

.padding10-bottom {
    padding-bottom: 1.0rem;
}

.box{
    background-color:white;
    border:1px solid #999;
    border-radius:1rem;
}
select,
.input,
input {
    padding: 0.4rem 0.8rem;
    font-size: inherit;
    border-radius: 0.3rem;
    border: thin solid #000;
}
    select::::placeholder,
    input::placeholder {
        background-color: #fffff4;
        padding: 0.4rem 0.8rem;
    }
    select:not(::placeholder),
    input:not(::placeholder) {
        background-color: white;
        margin: 0px;
    }
    select:focus,
    input:focus {
        outline: none;
        color: #1874e5;
    }
    select[readonly],
    .input.readonly,
    input[readonly] {
        background-color:antiquewhite;
    }
    a, .link {
    color: Highlight;
    cursor: pointer;
    text-decoration: underline;
}

a:hover,
.link:hover {
    cursor: pointer;
}

.button,
button {
    color: white;
    background-color: #0e4f9e;
    border-radius: 0.3rem;
    border: thin inset #999;
    padding: 0.4rem 0.8rem;
    font-size: inherit;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2rem;
}

.button:hover,
button:hover {
    background-color: #1874e5;
    cursor: pointer;
}

    .button.white,
    button.white {
        background-color: #FEFEFE;
        color: #0e4f9e;
        text-decoration: none;
    }
    .button.orange,
    button.orange {
        background-color: orange;
        color: white;
        text-decoration: none;
    }

    .button.green,
    button.green {
        background-color: forestgreen;
        color: white;
        text-decoration: none;
    }
.button.link,
button.link {
    background-color: #FDFDFD;
    color: #1874e5;
    text-decoration: none;
}

    .button.red,
    button.red {
        background-color: darkred;
        color: white;
        text-decoration: none;
    }


* {
    scrollbar-width: thin;
    scrollbar-color: #1874e5 transparent;
}
.scrolly {
    overflow-y: auto;
    scroll-behavior: smooth;
}
.button.selected,
button.selected {
    background-color: green !important;
    color: white !important;
}

    .button.selected:hover,
    button.selected:hover {
        background-color: forestgreen !important;
        color: white !important;
    }
.button:disabled{
    filter: brightness(0.5) grayscale();
}
.title {
    font-size: 1.3rem;
}

.color-title {
    color: black;
}

.color-white {
    color: white;
}
.buttonline 
{
    display: grid;
    grid-auto-columns: max-content;
    grid-gap: 1rem;
    grid-template-rows: min-content;
    grid-auto-flow: column;
    align-items: center;
}

    .buttonlist {
        display: flex;
        border: thin inset #999;
        border-radius: 0.3rem;
    }
    .buttonlist > * {
        border-top: none;
        border-left: none;
        border-bottom: none;
        border-radius: 0px;
        display: inline-block;

    }
    .buttonlist > *:last-child {
        border-right: none;
        border-bottom-left-radius: 0.0rem;
        border-bottom-right-radius: 0.3rem;
        border-top-left-radius: 0.0rem;
        border-top-right-radius: 0.3rem;
    }
        .buttonlist > *:first-child {
            border-right: none;
            border-bottom-left-radius: 0.3rem;
            border-bottom-right-radius: 0.0rem;
            border-top-left-radius: 0.3rem;
            border-top-right-radius: 0.0rem;
        }
        
  .buttonlist.vert {
        display: grid;
        grid-template-rows: auto;
        grid-template-columns: max-content;
        border: thin inset #999;
        border-radius: 0.3rem;
    }
    .buttonlist.vert > * {
        border-top: none;
        border-left: none;
        border-right: none;
        border-radius: 0px;
    }
    .buttonlist.vert > *:last-child {
        border-right: none;
        border-bottom-left-radius: 0.3rem;
        border-bottom-right-radius: 0.3rem;
        border-top-left-radius: 0.0rem;
        border-top-right-radius: 0.0rem;
    }

    .buttonlist.vert > *:first-child {
        border-right: none;
        border-bottom-left-radius: 0.0rem;
        border-bottom-right-radius: 0.0rem;
        border-top-left-radius: 0.3rem;
        border-top-right-radius: 0.3rem;
    }

grid {
    display: grid;
    flex-grow: 1;
    overflow: auto;
    grid-auto-rows: min-content;
}
    grid > gridhead,
    grid > gridbody{
        display: contents
    }

        grid > gridhead > div {
            position: sticky;
            top: 0;
            align-content: center;
        }


        grid > gridbody > *.bold {
            font-weight: bold;
        }
        grid > gridhead > *.align-left,
        grid > gridhead > *.align-left > *,
        grid > gridbody > *.align-left {
            text-align: left;
        }
        grid > gridhead > *.align-center,
        grid > gridhead > *.align-center > *,
        grid > gridbody > *.align-center {
            display: flex;
            justify-content: center; /* Centra l'elemento lungo l'asse orizzontale */
            align-items: center; /* Centra l'elemento lungo l'asse verticale */
        }
        grid > gridhead > *.align-right ,
        grid > gridhead > *.align-right > *,
        grid > gridbody > *.align-right {
            text-align: right;
        }

        grid > gridbody > * {
            display: block;
            padding: 0.3rem;
            align-content: center;
        }

    grid > gridhead > div > * {
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }


    grid > gridhead > * {
        background-color: white;
        color: black;
        position: sticky;
        top: 0px;
        border-bottom: 2px solid #000;
        font-weight: bold;
    }

        grid > gridhead > * > * {
            align-self: center;
        }

        grid > gridhead > * > .order {
            color: #CCC;
            cursor: pointer;
        }

            grid > gridhead > * > .order.desc,
            grid > gridhead > * > .order.asc {
                color: inherit;
            }

            grid > gridhead > * > .order:hover {
                color: #888;
                cursor: pointer;
            }

        grid > gridhead > *not(:first-child) {
            border-left-color: white;
        }


        grid > gridhead > * > .order.asc i::before {
            content: '\f0de';
        }

        grid > gridhead > * > .order.desc i::before {
            content: '\f0dd';
        }
    grid > gridbody > *.odd {
        /* background-color: #F3F3F3;
       */
    }

    grid > gridbody > *.even {
        background-color: #FAFAFA;
    }


form {
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-gap:1rem;
}
    form > label {
        text-align: right;
        text-align: right;
        vertical-align: middle;
        align-content: center;
    }

form > .submit{
    grid-column:2;
    width:auto;
}
form.none{
    display:contents;
}
h3
{
    margin:0px;
    font-size:1.5rem;
    padding-bottom:1rem;
}
.back{
    margin-right:1rem;

}
.back:hover
{
    filter:brightness(1.2);
}

.stickyright
{
    position:sticky;
    right:0;
}
.stickyleft{
    position:sticky;
    left:0;
}