﻿/* **************************** */
/* *** toggle [s21check.js] *** */
/* **************************** */

.toggle {
    width: 66px;
    height: 30px;
    background-color: #A1A1A1;
    position: relative;
    border-radius: 100px;
    cursor: pointer;
    margin: 6px 0 6px 0;
}

.toggle .toggle-slider {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 100%;
    position: absolute;
    top: 5px;
    left: 5px;
    transition: 0.3s;
}

.toggle-active .toggle {
    background-color: #256EB3;
}

.toggle-active .toggle .toggle-slider {
    left: 40px;
}

.toggle-readonly {
    background-color: white;
    border-radius: 5px;
    height: 42px;
    color: black;
    line-height: 42px;
    font-family: "Inter-Regular";
    padding: 0 10px;
    font-size: 14px;
}

.input-container-no-edit .toggle {
    cursor: default;
}

/* ******************************* */
/* *** message [s21message.js] *** */
/* ******************************* */

.s21-msg-overlay {
    opacity: 0.25;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.s21-msg {
    position: fixed;
    padding: 30px 20px 20px 20px;
    border-radius: 10px;
    background-color: white;
    display: none;
    width: 500px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.s21-msg .s21-msg-header {
    display: grid;
    grid-template-columns: 1fr 30px;
}

.s21-msg .s21-msg-header .s21-msg-title {
    grid-row: 1;
    grid-column: 1;
    color: black;
    font-size: 28px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 42px;
    line-height: 30px;
    padding-inline: 10px;
}

.s21-msg .s21-msg-header .s21-msg-close {
    grid-row: 1;
    grid-column: 2;
    background-image: url(../images/close_000000.svg);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 24px;
    cursor: pointer;
}

.s21-msg .s21-msg-content {
    margin: 21px 0;
    font-weight: 400;
    font-family: TitiliumWeb-Light;
    font-size: 16px;
    padding: 6px 10px;
}

.s21-msg .s21-msg-content.s21-msg-content-prompt {
    text-align: left;
}

.s21-msg .s21-msg-content.s21-msg-content-prompt > span {
    width: 100%;
}

.s21-msg .s21-msg-content.s21-msg-content-prompt .s21-msg-content-prompt-content {
    margin: 20px 0 0 0;
    border-radius: 5px;
    border: 1px solid #256EB3;
}

.s21-msg .s21-msg-content > span {
    display: inline-block;
    vertical-align: middle;
    line-height: 18px;
}

.s21-msg .s21-msg-content pre {
    white-space: break-spaces;
}

.s21-msg .s21-msg-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 20px;
}

.s21-msg .s21-msg-footer .s21-msg-button {
    grid-row: 1;
    grid-column: span 1;
    text-align: center;
    height: 18px;
    line-height: 18px;
    padding: 6px 20px;
    min-width: 70px;
    border-radius: 5px;
    border: 1px solid #256EB3;
    background: #FFFFFF;
    color: #256EB3;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 0 5px;
    cursor: pointer;
}

.s21-msg .s21-msg-footer .s21-msg-button.s21-msg-btn-blue {
    background-color: #256EB3;
    color: white;
}

.s21-msg .s21-msg-footer .s21-msg-button.s21-msg-btn-transparent-blue {
    background-color: transparent;
    color: #256EB3;
    border: 1px solid transparent;
}

/* ************************* */
/* *** grid [s21grid.js] *** */
/* ************************* */

.s21-grid-header {
    font-family: TitiliumWeb-SemiBold;
    font-weight: 700;
    font-size: 16px;
    height: 38px;
    line-height: 38px;
    white-space: nowrap;
}

.s21-grid-cell {
    font-size: 16px;
    height: 38px;
    line-height: 38px;
    border-top: 1px solid #E1ECF2;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s21-grid-footer {
    font-family: TitiliumWeb-SemiBold;
    font-weight: 700;
    font-size: 16px;
    height: 38px;
    line-height: 38px;
    border-top: 1px solid #E1ECF2;
    box-sizing: border-box;
}

.s21-grid-link {
    height: 23px;
    line-height: 23px;
    background-color: #256EB3;
    color: white;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block;
    padding: 0 9px;
    font-size: 12px;
}

.s21-grid-row:hover {
    background-color: #E1ECF2;
}

.s21-grid-row.s21-alt:hover {
    background-color: #FFFFFF;
}

.s21-grid-row.s21-alt .s21-grid-cell {
    border-top: 1px solid #FFFFFF;
}

/* ************************* */
/* *** menu [s21menu.js] *** */
/* ************************* */
.s21-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    padding: 5px 0;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
    width: 214px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
}

.s21-menu .s21-menu-item {
    padding: 9px;
    color: black;
    text-align: left;
    font-family: "Inter-Regular";
    font-size: 14px;
    font-weight: normal;
}

.s21-menu .s21-menu-item:hover {
    background-color: #E6E6E6;
}

/* ************************* */
/* *** chat [s21chat.js] *** */
/* ************************* */

.s21chat {
    font-family: "Inter-Regular";
    font-size: 14px;
    color: black;
    padding: 40px;
}

.s21chat .s21chat-row {
    display: grid;
    grid-template-columns: 42px 10px 1fr 10px 42px;
    margin: 0 0 10px 0;
}

/* contenuto */

.s21chat .s21chat-row .s21chat-content {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    background-color: white;
    padding: 12px 12px 2px 12px;
    border-radius: 5px;
    gap: 3px;
}

.s21chat .s21chat-row .s21chat-content.left {
    grid-column: 3 / 6;
    margin: 0 15% 0 0;
    border-top-left-radius: 0;
}

.s21chat .s21chat-row .s21chat-content.right {
    grid-column: 1 / 4;
    margin: 0 0 0 15%;
    border-top-right-radius: 0;
}

.s21chat .s21chat-row .s21chat-content.center {
    grid-column: 1 / 6;
    background-color: #F3FBFE;
}

/* titolo */

.s21chat .s21chat-row .s21chat-content .s21chat-title {
    grid-row: 1;
    grid-column: 1;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-family: Inter-SemiBold;
    font-size: 14px;
}

.s21chat .s21chat-row .s21chat-content .s21chat-subtitle {
    grid-row: 2;
    grid-column: 1;
    font-weight: bold;
}

.s21chat .s21chat-row .s21chat-content .s21chat-title .s21chat-date {
    font-weight: normal;
    font-size: 10px;
    padding: 0 10px;
}

.s21chat .s21chat-row .s21chat-content .s21chat-title .s21chat-menu {
    width: 19px;
    height: 19px;
    float: right;
    background-image: url(/images/ellipsis-vertical_333333.svg);
    background-repeat: no-repeat;
    /*    background-size: 3px 19px;*/
    background-position: center;
    cursor: pointer;
    position: relative;
    margin-left: auto;
}

.s21chat .s21chat-ico-envelope {
    background-image: url(/images/envelope_1F1F1F.svg);
    background-size: 19px 19px;
    /*    background-position: 16px 16px;*/
    background-repeat: no-repeat;
}

.s21chat .s21chat-ico-attachment {
    background-image: url(/images/attach_333333.svg);
    background-size: 17px 17px;
    /*    background-position: 16px 16px;*/
    background-repeat: no-repeat;
}

/* testo */

.s21chat .s21chat-row .s21chat-content .s21chat-text {
    /*    grid-row: 3;*/
    grid-column: 1;
    color: black;
    font-weight: 400;
    font-size: 14px;
    font-family: "Inter-Regular";
    margin: 0;
    /*white-space: pre-wrap;*/
}

.s21chat .s21chat-row .s21chat-content .s21chat-text .s21chat-readmore {
    color: #256EB3;
    cursor: pointer;
    margin: 3px 0 0 0;
}

.s21chat .s21chat-row .s21chat-content .s21chat-text .s21chat-text-full {
    display: none;
}

.s21chat .s21chat-row .s21chat-content .s21chat-text .s21chat-readless {
    color: #256EB3;
    cursor: pointer;
    display: none;
    margin: 3px 0 0 0;
}

.s21chat .s21chat-row .s21chat-content .s21chat-text .s21-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
    padding-right: 25px;
}

.s21chat-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
    padding-right: 25px;
}

.s21chat-clamp.email {
    -webkit-line-clamp: 2;
}

.s21chat-unclamp {
    white-space: pre-wrap;
    padding-right: 25px;
}

/* bubble */
.s21chat .s21chat-row .s21chat-bubble {
    grid-row: 1;
    width: 42px;
    height: 42px;
    text-align: center;
    border-radius: 100%;
    color: white;
    background-color: #256EB3;
    line-height: 42px;
    font-size: 18px;
    font-weight: 700;
    font-family: TitiliumWeb-Light;
}

.s21chat .s21chat-row .s21chat-bubble.left {
    grid-column: 1;
}

.s21chat .s21chat-row .s21chat-bubble.right {
    grid-column: 5;
}

.s21chat .s21chat-row .s21chat-bubble.center {
    display: none;
}

/* triangolo */

.s21chat .s21chat-row .s21chat-triangle {
    width: 10px;
    height: 10px;
    background: white;
}

.s21chat .s21chat-row .s21chat-triangle.left {
    grid-column: 2;
    clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
    transform: rotate(270deg);
}

.s21chat .s21chat-row .s21chat-triangle.right {
    grid-column: 4;
    clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
}

.s21chat .s21chat-row .s21chat-triangle.center {
    display: none;
}

/* ************************* */
/* *** tag [s21tag.js] *** */
/* ************************* */

.s21-tags {
    font-family: "Inter-Regular";
    font-size: 14px;
    color: #333333;
    background-color: white;
    height: 42px;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 40px;
}

.s21-tags .s21-tag-container {
    grid-row: 1;
    grid-column: 1;
}

.s21-tags .s21-tag-container .s21-tag {
    position: relative;
    background-color: #E1ECF2;
    border-radius: 5px;
    height: 28px;
    line-height: 28px;
    float: left;
    padding: 0 30px 0 10px;
    margin: 7px 0 0 6px;
}

.s21-tags .s21-tag-container .s21-tag .s21-tag-delete {
    position: absolute;
    top: 3px;
    right: 6px;
    width: 22px;
    height: 22px;
    background-image: url(/images/close_000000.svg);
    background-repeat: no-repeat;
    background-size: 12px 12px;
    background-position: 7px;
}

.s21-tags .s21-tag-container .s21-tag .s21-tag-delete.readonly {
    display: none;
}

.s21-tags .s21-tag-container .s21-tag .s21-tag-delete:hover {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 12px;
    height: 12px;
    background-image: url(/images/close_FFFFFF.svg);
    background-repeat: no-repeat;
    background-size: 8px 8px;
    background-position: 2px;
    background-color: #256EB3;
    border-radius: 100%;
}

.s21-tags .s21-tag-plus {
    grid-column: 2;
    grid-row: 1;
    width: 42px;
    height: 42px;
    cursor: pointer;
    background-image: url(/images/plus_000000.svg);
    background-repeat: no-repeat;
    background-size: 22px 22px;
    background-position: 9px 11px;
}

.s21-tags .s21-tag-plus.readonly {
    display: none;
}

/* ***************************** */
/* *** wizard [s21wizard.js] *** */
/* ***************************** */

.s21-wiz {
    display: flex;
    justify-content: center;
}

.s21-wiz .s21-wiz-btn {
    position: relative;
    height: 42px;
    min-width: 160px;
    line-height: 42px;
    text-align: center;
    background-color: #256EB3;
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: "TitiliumWeb-Light";
    cursor: pointer;
    user-select: none;
}

.s21-wiz .s21-wiz-btn.s21-wiz-btn-prev {
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    margin: 0 1px 0 0;
}

.s21-wiz .s21-wiz-btn.s21-wiz-btn-middle {
    background-color: #2FB76C;
    padding: 0 20px;
    border-radius: 5px;
}

.s21-wiz .s21-wiz-btn.s21-wiz-btn-middle.s21-wiz-hidden {
    display: none;
}

.s21-wiz .s21-wiz-btn.s21-wiz-btn-next {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    margin: 0 0 0 1px;
}

.s21-wiz .s21-wiz-btn.s21-wiz-btn-next.s21-wiz-btn-save {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    background-color: #2FB76C;
}

.s21-wiz .s21-wiz-btn.s21-wiz-disabled {
    cursor: default;
    background-color: #8080806B;
}

/* ********************************* */
/* *** evidenze [s21evidenze.js] *** */
/* ********************************* */

.s21-evidenze {
    color: white;
    font-family: TitiliumWeb-Light;
    font-size: 14px;
    background-color: #256EB3;
    border-radius: 10px;
    height: 100%; /*calc(100% - 10px);*/
    overflow: hidden;
    overflow: auto;
}

.s21-evidenze .s21-evidenze-intestazione {
    padding: 0 15px;
    height: 62px;
    line-height: 62px;
    color: white;
    font-size: 28px;
    background-color: #333333;
}

.s21-evidenze .s21-evidenze-box.new {
    display: none;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-titolo-box {
    display: grid;
    grid-template-columns: 1fr 32px;
    gap: 10px;
    cursor: pointer;
    position: relative;
    background-color: #174F84;
    border-bottom: 1px solid #256EB3;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-titolo-box .s21-evidenze-titolo {
    height: 42px;
    line-height: 42px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
    grid-row: 1;
    grid-column: 1;
    padding: 0 14px;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-titolo-box .s21-evidenze-anomalie {
    display: none;
    opacity: 0;
    position: absolute;
    top: 12px;
    right: -30px;
    width: 22px;
    height: 22px;
    background-image: url(/images/warning_B0132B.svg);
    background-repeat: no-repeat;
    background-size: 22px 22px;
    background-position: 0;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-titolo-box .s21-evidenze-ico {
    width: 32px;
    height: 32px;
    background-image: url(/images/chevron-down_FFFFFF.svg);
    background-repeat: no-repeat;
    background-size: 12px 12px;
    background-position: 3px 16px;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box {
    padding: 0 0 9px 0;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-oggetto-no-info {
    margin: 0 0 15px 0;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-no-content {
    margin: 0 0 6px 15px;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-oggetto-info {
    display: grid;
    grid-template-columns: 1fr 15px 5px;
    padding: 15px;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-oggetto-info .s21-evidenze-oggetto-info-content {
    grid-row: 1;
    grid-column: 1;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-oggetto-info .s21-evidenze-oggetto-info-edit {
    grid-row: 1;
    grid-column: 2;
    cursor: pointer;
    width: 15px;
    height: 15px;
    background-image: url(/images/edit_FFFFFF.svg);
    background-repeat: no-repeat;
    background-size: 15px 15px;
    background-position: 0;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-oggetto-info .s21-evidenze-oggetto-info-edit.readonly {
    display: none;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-oggetto {
    display: grid;
    grid-template-columns: 1fr 20px 20px;
    gap: 6px;
    padding: 0 15px 6px 15px;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-oggetto .s21-evidenze-oggetto-text {
    grid-row: 1;
    grid-column: 1;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-oggetto .s21-evidenze-oggetto-tot {
    grid-row: 1;
    grid-column: 3;
    background-color: white;
    color: #256EB3;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-oggetto .s21-evidenze-oggetto-warning {
    grid-row: 1;
    grid-column: 2;
    background-color: #B0132B;
    color: white;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-oggetto .s21-evidenze-oggetto-tot.little,
.s21-evidenze .s21-evidenze-box .s21-evidenze-content-box .s21-evidenze-oggetto .s21-evidenze-oggetto-warning.little {
    font-size: 10px;
}

/* ***************************** */
/* *** toggle [s21toggle.js] *** */
/* ***************************** */

.s21-toggle {
    user-select: none;
    height: 30px;
    background-color: #256EB3;
    position: relative;
    border-radius: 100px;
    cursor: pointer;
    margin: 6px 0 6px 0;
    line-height: 30px;
    color: white;
}

.s21-toggle .s21-toggle-text {
    padding: 0 20px;
    text-align: right;
}

.s21-toggle .s21-toggle-text.s21-toggle-checked {
    text-align: left;
}

.s21-toggle.s21-toggle-disabled {
    background-color: #A1A1A1;
}

.s21-toggle .s21-toggle-slider {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 100%;
    position: absolute;
    top: 5px;
    left: 5px;
    transition: 0.3s;
}

.s21-toggle .s21-toggle-slider.s21-toggle-checked {
    left: calc(100% - 25px);
}
