:root {
    --green: #686366;
    --blue: #666666;
    --light-grey: #ddd;
    --grey: #bbb;
    --dark-grey: #555;
    --body: #f6f6f6;
    --red: #ee2821;
}

body {
    background-color: var(--body);
    font-family: 'FreightSansProBook';
    font-size: 1rem;
    margin: 0;
}

#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: 200px;
    height: auto;
}

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


input,
select,
textarea {
    background-color: #faeeee;
    border-radius: 2px;
    border: none;
    color: var(--dark-grey);
    padding: 5px 7px;
    font-family: 'FreightSansProBook';
    font-size: 1.2rem;
}

label {
    font-family: 'FreightSansProSemibold';
    font-size: .9rem;
    color: var(--blue);
}

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

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

.container {
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border: 1px solid #f5c1c1;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--light-grey);
    font-family: 'FreightSansProBook';
    font-size: 1.2rem;
}

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(--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(--blue);
}

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(--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(--blue);
    border-radius: 50%;
}

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

textarea {
    resize: vertical;
}

.button {
    background-color: var(--grey);
    color: white;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 7px 12px;
    text-align: center;
    cursor: pointer;
    min-width: 85px;
    font-family: 'FreightSansProSemibold';
}

.button:hover {
    background-color: var(--light-grey) !important;
    transition: all .3s;
}

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

.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;
}

.button.loading {
    cursor: no-drop;
}

.label {
    background-color: var(--green);
    color: white;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 1px 7px;
    text-align: center;
    cursor: pointer;
    width: fit-content;
    font-size: .8rem;
    font-family: 'FreightSansProSemibold';
    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: red;
    background-color: #ffd3d3;
    border: 1px solid red;
    padding: 10px 15px;
    margin-top: 5px;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

#mainmenu {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 2;
    background-color: white;
    border-radius: 2px;
    box-shadow: 0px 1px 5px var(--light-grey);
    border: 1px solid var(--light-grey);
    width: 200px;
    top: 0;
    left: -200px;
    transition: left .3s;
    height: 100vh;
    overflow-y: hidden;
}

#mainmenu.open {
    transition: left .3s;
    left: 0;
}

#mainmenu .item {
    height: 33px;
    border-bottom: 1px solid var(--light-grey);
    padding: 10px 15px;
    font-size: 1.3rem;
    color: var(--dark-grey);
    display: flex;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
}

#mainmenu .item.username {
    font-family: FreightSansProSemiBold;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 77px;
}

#mainmenu .item.menu {
    font-family: FreightSansProSemiBold;
    text-transform: uppercase;
    background-color: var(--body);
}

#mainmenu .item.active {
    border-left: 5px solid var(--red);
}

#mainmenu .item.menutop {
    display: flex;
    justify-content: space-around;
    gap: 7px;
}

#mainmenu .item.menutop img {
    width: 100px;
}

#mainmenu .scroll {
    flex: 1;
    overflow-y: auto;
}

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

#topbar {
    display: flex;
    width: 100%;
    height: 55px;
    justify-content: space-between;
    position: fixed;
    z-index: 10;
    left: 0;
}

#topbar>div {
    background-color: white;
    border: 1px solid var(--light-grey);
    padding: 10px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
}

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

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

.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: 150;
    padding-top: 100px;
}

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

.modal .dialog .header {
    background-color: var(--body);
    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;
    padding-top: 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: 0;
    width: 100%;
    height: 38px;
    background-color: white;
    padding: 10px 7px;
    z-index: 10;
}

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

h2 {
    color: var(--grey);
    margin-top: 3px;
    margin-bottom: 3px;
}

#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;
}

.flex1 {
    flex: 1;
}

.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(--red);
    font-size: 1.2rem;
    font-family: 'FreightSansProSemibold';
}

.delconf {
    color: var(--red);
    border: 1px solid var(--red);
    grid-column: 1 / span 4;
    padding: 7px;
    display: grid;
    grid-template-columns: auto 25px 25px;
    background: #ffd8d8;
}

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

.link:hover {
    color: darkcyan;
}

.breadcrumb {
    color: var(--red) !important;
    position: relative;
    font-size: 1rem;
    top: -4px;
    margin-left: 5px;
}

.text-right {
    text-align: right;
}

@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;
    }

    #mainmenu {
        left: 0;
        top: 0;
        z-index: 20;
    }

    #mainmenu .menutop {
        display: none !important;
    }

    body {
        padding-left: 200px;
    }

    #topbar .hamburger {
        display: none;
    }

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

    #bottombar {
        padding-left: 212px;
    }
}

#dropzone {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding: 15px;
    cursor: pointer;
}

#dropzone:hover {
    background-color: #f9f9f9;
    transition: all .5s;
}

.dz-success-mark,
.dz-error-mark {
    display: none;
}

.dz-filename {
    font-weight: 500;
    font-size: 1.2rem;
}

.dz-remove:hover {
    color: var(--red);
}