﻿@font-face {
    font-family: "TitiliumWeb-Light";
    src: url("fonts/Titillium_Web/TitilliumWeb-Light.ttf");
}

@font-face {
    font-family: "TitiliumWeb-SemiBold";
    src: url("fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf");
}

@font-face {
    font-family: "Inter-Regular";
    src: url("fonts/Inter/Inter-Regular.ttf");
}

* {
    outline: none;
}

body {
    font-family: "TitiliumWeb-Light";
    margin: 0;
    padding: 0;
    background-color: white;
    min-width: 1080px;
}

p {
    margin: 0;
    padding: 0;
}

a {
    color: white;
}

a:visited {
    color: white;
}

table {
    border-spacing: 0;
    border-collapse: separate;
    width: 100%;
    /*height: 100%;*/
    table-layout: fixed;
}

td {
    vertical-align: top;
    padding: 0;
}

/* textarea */

textarea {
    resize: none;
    margin: 0;
    border: none;
    width: calc(100% - 24px);
    height: 40px; /* 42px altezza totale (40px + 1px border-top + 1px border bottom) */
    font-size: 14px;
    color: black;
    font-weight: 400;
    padding: 12px 12px;
    font-family: "Inter-Regular";
    vertical-align: top;
}

/* LOADING */

#loading {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 99000;
    top: 0;
    left: 0;
}

#loadingSpinner {
    position: absolute;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 4px solid #00A8FF;
    border-top-color: transparent;
    border-radius: 50px;
    left: 50%;
    top: 30%;
    margin-top: -25px;
    margin-left: -25px;
    animation: spinner 1s linear infinite;
}

.miniSpinner {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 4px solid #00A8FF;
    border-top-color: #FFFFFF;
    border-radius: 100%;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* LAYOUT */

#header {
    height: 85px;
    max-width: 1530px;
    margin: 0 auto;
    background-color: white;
    position: relative;
}

#header #breadcrumb {
    line-height: 85px;
}

#header #breadcrumb .link {
    padding: 0 10px 0 0;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
}

#header #breadcrumb .link:hover {
    text-decoration: underline;
}

#header #breadcrumb .sep {
    width: 16px;
    height: 16px;
    background-image: url(/images/chevron-left.svg);
    background-repeat: no-repeat;
    background-position: 0 5px;
    background-size: 8px 11px;
    display: inline-block;
}

#header #cta {
    display: inline-block;
    line-height: 85px;
}

#contenuto {
    position: relative;
    max-width: 1530px;
    background-color: #E1ECF2;
    margin: 0 auto;
    padding: 20px 20px 30px 20px;
    box-sizing: border-box;
}

#footer {
    background-color: #333333;
    max-width: 1530px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
}

#footer #footerContent {
    padding: 40px;
    color: white;
}

/* classi generiche */

.required {
    display: inline-block;
    width: 24px;
    /*height: 24px;*/
    font-weight: 700;
    color: black;
    padding: 0 0 0 4px;
}

.required.invalid {
    color: transparent; /*#b0132b;*/
    background-image: url(/images/invalid.svg);
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: 0 -2px;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-error {
    font-weight: bold;
    font-size: 16px;
    color: red;
}

.rotate90 {
    transition: all 0.3s;
    transform: rotate(90deg);
}

.rotate0 {
    transition: all 0.3s;
    transform: rotate(0deg);
}

/* info utente */

.info-utente {
    color: #333333;
    font-size: 16px;
    font-family: TitiliumWeb-SemiBold;
    height: 16px;
    line-height: 16px;
    cursor: pointer;
    user-select: none;
    text-align: right;
}

/* drag & drop */

.box-drag {
    box-sizing: border-box; 
    border: 2px dashed #256EB3; 
    border-radius: 10px;
}

.box-drag.drag-enter {
    border: 2px dashed black !important;
}

/* allegati */

.item-allegato-tmp {
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 0 10px 0;
}

.item-allegato-tmp .item-allegato-tmp-ico-doc {
    background-image: url(/images/file-outlined.svg);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 24px;
    float: left;
    width: 24px;
    height: 24px;
}

.item-allegato-tmp .item-allegato-tmp-text {
    float: left;
    color: black;
    font-size: 14px;
    font-weight: 400;
    height: 24px;
    line-height: 24px;
    margin: 0 5px 0 0;
    width: calc(100% - 130px);
}

.item-allegato-tmp .item-allegato-tmp-size {
    float: left;
    color: black;
    font-size: 14px;
    font-weight: 400;
    height: 24px;
    line-height: 24px;
}

.item-allegato-tmp .item-allegato-tmp-ico-del {
    background-image: url(/images/trash_blue.svg);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 24px;
    float: right;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* buttons */

.capacitas-button {
    all: unset;
    width: 164px;
    height: 35px;
    line-height: 31px; /* 31 = 35 (height) - 4 (border top/bottom) */
    border-radius: 5px;
    border-width: 2px;
    border-style: solid;
    border-color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-block;
    user-select: none;
}

.capacitas-button.white {
    background-color: white;
    border-color: #256EB3;
    color: #256EB3;
}

.capacitas-button.blue {
    background-color: #256EB3;
    border-color: #256EB3;
    color: white;
}

.capacitas-button.green {
    background-color: #2FB76C;
    border-color: #2FB76C;
    color: white;
}

.capacitas-button.red {
    background-color: white;
    border-color: #B0132B;
    color: #B0132B;
}

.capacitas-button.e1ecf2 {
    background-color: #E1ECF2;
}

.capacitas-button.ico-close {
    width: 42px;
    height: 42px;
    display: inline-block;
    background-image: url(/images/close.svg);
    background-position: 7px 7px;
    background-repeat: no-repeat;
}

.capacitas-button.ico-close-black {
    width: 42px;
    height: 42px;
    display: inline-block;
    background-image: url(/images/close_black.svg);
    background-position: 7px 7px;
    background-repeat: no-repeat;
    background-size: 26px;
}

/* input container */

.input-container {
    position: relative;
    box-sizing: border-box;
    border-radius: 5px;
    width: 100%;
    overflow: hidden;
    border: 1px solid white;
}

.input-container-edit {
    border-color: var(--primary);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.input-container-no-edit {
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.input-container-no-borders {
    border: none !important;
    box-shadow: none !important;
}

/* card */
.card {
    box-sizing: border-box;
    border-radius: 10px;
    position: relative;
}

.card.input {
    padding: 35px 50px;
    background-color: white;
}

.card.info {
    padding: 35px 40px;
}

.card-home {
    padding: 20px;
    background-color: white;
    height: 100%;
}

.card-modulo {
    transition: background-color 0.3s linear;
    padding: 20px;
    background-color: #256EB3;
    height: 100%;
    cursor: pointer;
}

.card-modulo:hover {
    background-color: #174F84;
}

.card .banner {
    margin: 0 0 5px 0;
}

.card .title {
    color: black;
    font-family: TitiliumWeb-SemiBold;
    font-size: 28px;
    font-weight: 700;
    line-height: 24px;
    margin: 0 0 10px 0;
}

.card.card-modulo .title {
    color: white;
}

.card .content {
    color: black;
    font-size: 16px;
}


.card.card-modulo .content {
    color: white;
}

.card .label {
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    font-weight: 700;
    color: black;
}

.card .label-edit {
    font-family: TitiliumWeb-SemiBold;
    line-height: 42px;
    font-size: 16px;
}

.card .banner > img {
    width: 100%;
}

.card .link {
    position: absolute;
    bottom: 20px;
    width: 150px;
    background-color: #256EB3;
    color: white;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    height: 35px;
    line-height: 35px;
    border-radius: 5px;
    cursor: pointer;
}

.card.card-modulo .footer {
    position: absolute;
    right: 10px;
    bottom: 12px;
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0 30px 0 0;
    background-color: transparent;
    background-image: url(/images/chevron-left_white.svg);
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: top 5px right 9px;
}

.card .toolbar {
    height: 24px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.card .toolbar .item {
    background-color: #256EB3;
    color: white;
    font-size: 12px;
    line-height: 24px;
    border-radius: 3px;
    padding: 0 22px 0 9px;
    cursor: pointer;
}

.card .toolbar .item.ico-download {
    background-image: url(/images/download_white.svg);
    background-repeat: no-repeat;
    background-position: top 4px right 4px;
}

/* utente */

.user {
    text-align: right;
    display: inline-block;
    padding: 0 38px 0 18px;
    height: 35px;
    line-height: 35px;
    width: auto;
    font-size: 16px;
    font-family: TitiliumWeb-SemiBold;
    border-radius: 5px;
    margin: 0 5px 0 0;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    color: #333333;
    background-color: #E1ECF2;
    background-repeat: no-repeat;
}

.user.selected {
    background-color: #256EB3;
    color: white;
}

.user.ico {
    background-image: url(/images/user_256EB3.svg);
    background-position: right 10px top 7px;
}

.user.ico.selected {
    background-image: url(/images/user_white.svg);
}

/* CTA */

.cta {
    transition: background-color 0.3s linear;
    width: 120px;
    height: 140px;
    border-radius: 10px;
    background-color: #256EB3;
    color: white;
    position: relative;
    float: left;
    cursor: pointer;
    overflow: hidden;
}

.cta:not(:last-child) {
    margin: 0 10px 10px 0;
}

.cta:hover {
    background-color: #174F84;
}

.cta .txt {
    position: absolute;
    top: 77px;
    width: 100%;
    display: block;
    text-align: center;
    text-transform: uppercase;
    font-family: TitiliumWeb-SemiBold;
    font-size: 16px;
    line-height: 20px;
}

.cta .ico {
    position: absolute;
    left: 35px;
    top: 25px;
    width: 45px;
    height: 45px;
    background-color: white;
    border-radius: 100%;
    background-repeat: no-repeat;
    background-size: 25px 25px;
    background-position: 10px 10px;
}

.cta .ico.info {
    background-image: url(/images/info_256EB3.svg);
}

.cta .ico.lista {
    background-image: url(/images/lista_256EB3.svg);
}

.cta .ico.pdf {
    background-image: url(/images/pdf_256EB3.svg);
}

.cta .ico.xls {
    background-image: url(/images/xls_256EB3.svg);
}

/* IN CODA */

.incoda-item {
    font-family: TitiliumWeb-SemiBold;
    height: 35px;
    padding: 0 10px;
    line-height: 35px;
    text-transform: uppercase;
    background-color: #E1ECF2;
    display: inline-block;
    margin: 0 10px 10px 0;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    border-radius: 5px;
}

.incoda-item.selected {
    background-color: #256EB3;
    color: white;
}

.incoda-slot-giorno {
    font-size: 16px;
    font-family: TitiliumWeb-SemiBold;
    text-transform: capitalize;
    color: black;
    width: 85px;
    height: 35px;
    line-height: 35px;
    display: inline-block;
}

/* dialog modale */

.pageBody.fullHeightFooter {
    height: calc(100vh - 197px);
    padding: 20px 40px;
}

.pageFooter {
    height: 75px;
    background-color: white;
    padding: 20px 40px;
    box-sizing: border-box;
    text-align: right;
}
