:root {
    --col-1: #4d5858;
    --col-2: #638c1c;
    --col-3: #bfcdd8;
    --col-4: #9fca69;
    --light-grey: #efefef;
    --dark-grey: #333;
    --red: rgba(222, 14, 14, 0.791);
}

body {
    background-color: var(--light-grey);
    font-size: 1rem;
    margin: 0;
    font-family: Raleway;
    color: var(--dark-grey);
    display: flex;
    align-items: flex-start;
}

#applogo {
    height: 30px;
    width: auto;
}

.widget {
    background-color: white;
    padding: 7px;
    border-radius: 2px;
    box-shadow: 1px 1px 10px var(--light-grey);
    border: 1px solid var(--light-grey);
}

.mt7 {
    margin-top: 7px;
}

.mb7 {
    margin-bottom: 7px;
}

.mt50 {
    margin-top: 50px;
}

.ml7 {
    margin-left: 7px;
}

.pb7 {
    padding-bottom: 7px;
}

.logo {
    width: 250px;
    height: auto;
}

.flex-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}


input,
select,
textarea {
    background-color: white;
    border-radius: 2px;
    border: none;
    color: black;
    padding: 5px 7px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--col-3);
    font-family: Raleway;
    font-weight: 600;
}

textarea {
    resize: vertical;
}

label {
    font-size: .9rem;
    color: var(--col-1);
    font-weight: 500;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px 0;
}

.field.icon svg {
    color: var(--col-1);
    position: absolute;
    left: 8px;
    top: 10px;
}

.field.icon input {
    padding-left: 33px;
}

.field.required label::after {
    font-family: "Font Awesome 5 Free";
    content: "\2a";
    display: inline-block;
    color: var(--red);
    margin-left: 4px;
    font-weight: 900;
}

.field label .button {
    width: fit-content;
    display: inline-block;
    min-width: auto;
    padding: 6px;
}

.container {
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border: 1px solid var(--col-3);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--light-grey);
    font-family: Raleway;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid var(--dark-grey);
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--dark-grey);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid var(--dark-grey);
    border-radius: 50%;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
}

input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--dark-grey);
    border-radius: 50%;
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

.button {
    background-color: var(--col-4);
    color: white;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    min-width: 85px;
    font-weight: 600;
    font-size: .9rem;
    display: inline-block;
}

.button:hover {
    background-color: var(--col-2) !important;
    color: white !important;
    transition: all .3s;
}

.button:hover svg {
    color: white !important;
    transition: all .3s;
}

.button.grey {
    background-color: var(--dark-grey);
}

.button.red {
    background-color: var(--red);
}

.button.micro {
    padding: 4px 5px !important;
    display: inline;
    width: fit-content;
    min-width: auto;
    font-size: 80%;
}

.button.micro i {
    position: relative;
    left: 3.5px;
}

.label {
    background-color: var(--col-1);
    color: white;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 1px 7px;
    text-align: center;
    cursor: pointer;
    width: fit-content;
    font-size: .8rem;
    white-space: nowrap;
}

.label.red {
    background-color: var(--red);
}

.label.green {
    background-color: #3dc325;
}

a {
    color: var(--green);
    text-decoration: none;
}

.px10 {
    padding-left: 10px;
    padding-right: 10px;
}

.hide {
    display: none !important;
}

.message.error {
    color: var(--red);
    background-color: #ffd3d3;
    border: 1px solid var(--red);
    padding: 10px 15px;
    margin-top: 5px;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

#app_rolename {
    color: var(--red);
    font-size: .8rem;
}

#mainmenu {
    padding: 7px;
    width: 170px;
}

#mainmenu .scroll .item {
    display: grid;
    align-items: center;
    grid-template-columns: 20px auto;
    gap: 10px;
    padding-left: 20px;
}

#mainmenu .scroll .item:hover {
    color: var(--col-2) !important;
}

#mainmenu .scroll .item.active {
    color: var(--col-2) !important;
    font-weight: 600;
}

#mainmenu .scroll {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 20px;
}

#topbar {
    display: flex;
    width: 100%;
    height: 55px;
    justify-content: space-between;
    z-index: 10;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 10px;
    background-color: white;
}

#topbar>div {
    background-color: white;
    padding: 10px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    gap: 7px;
}

#topbar .pagetitle {
    flex: 1;
    text-transform: uppercase;
    color: var(--col-1);
    font-size: 1.8rem;
}

#topbar svg {
    color: var(--col-1);
}

#main {
    flex: 1;
    background-color: white;
    position: relative;
    height: 100vh;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #000000b3;
    z-index: 6000;
    padding-top: 20px;
}

.modal .dialog {
    background-color: white;
    border-top: 7px solid var(--col-1);
    width: 80vw;
}

.modal .dialog .header {
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    font-size: 1.6rem;
    color: var(--dark-grey);
}

.modal .dialog .content {
    padding: 15px;
    color: var(--dark-grey);
}

.modal .dialog .actions {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
}

#main-contents {
    padding: 7px;
    margin-bottom: 60px;
}

.pointer {
    cursor: pointer;
}

.paginatore {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-evenly;
    margin-bottom: 10px;
}

#bottombar {
    position: fixed;
    bottom: 0;
    left: 185px;
    width: 100%;
    height: 38px;
    background-color: white;
    padding: 10px 7px;
    z-index: 600;
}

#bottombar>div {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 5px;
}

h2 {
    color: var(--col-2) !important;
    font-weight: 500;
    font-size: 1.3rem;
    margin-top: 3px;
    margin-bottom: 7px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--light-grey);
    padding-bottom: 4px;
}

#mErrore .header {
    background-color: var(--red);
    color: white;
}

#mErrore .dialog {
    border-top: 7px solid var(--red);
}

#mErrore .content>div {
    max-height: 50vh;
    overflow-y: auto;
}

.fit {
    width: fit-content !important;
}

.map {
    border: none;
    width: 100%;
    min-height: 400px;
}

.flex-h {
    display: flex;
    gap: 7px;
    align-items: center;
}

.w100 {
    width: 100%;
}

.w80 {
    width: 80%;
}

#loader {
    position: fixed;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: #000000b3;
    color: white;
    top: 0;
    flex-direction: column;
    gap: 10px;
}

#loader img {
    width: 200px;
}

.form-section {
    background-color: white;
    padding: 5px 9px;
    border: 1px solid var(--light-grey);
    border-radius: 3px;
    margin-bottom: 7px;
}

.form-section h2 {
    color: var(--col-1);
    font-size: 1rem;
}

.delconf {
    color: var(--red);
    border: 1px solid var(--red);
    padding: 7px;
    display: flex;
    background: #ffd8d8;
    justify-content: space-around;
    align-items: center;
}

.link {
    cursor: pointer;
    text-decoration: underline;
    color: cadetblue;
}

.link:hover {
    color: darkcyan;
}

.table .tablehead {
    font-weight: 600;
    font-size: .8rem
}

.small {
    font-size: 60%;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media only screen and (min-width: 1000px) {
    .container {
        width: 700px;
        margin: 0 auto;
    }

    .modal .dialog {
        width: 60vw;
    }
}

@media only screen and (min-width: 1300px) {
    .container {
        width: 1000px;
        margin: 0 auto;
        padding-left: 10px;
    }

    .modal .dialog {
        width: 40vw;
    }

    .form-holder {
        column-count: 6;
        column-gap: 10px;
    }

    .form-section {
        break-inside: avoid-column;
    }

    input,
    select {
        font-size: 1rem;
    }

    .paginatore {
        gap: 10px;
        justify-content: flex-start;
    }


    #topbar .hamburger {
        display: none;
    }

    #main-contents {
        padding-left: 15px;
        padding-right: 15px;
    }
}