﻿/* **************************** */
/* *** 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: var(--primary);
}

.toggle-active .toggle .toggle-slider {
    left: 40px;
}

.toggle-readonly {
    background-color: white;
    width: 100%;
    border-radius: 5px;
    height: 42px;
    color: black;
    line-height: 42px;
    font-family: "Inter-Regular";
    padding: 0 10px;
}

/* ************************* */
/* *** chat [s21chat.js] *** */
/* ************************* */

.chat-content {
    border: 1px solid var(--primary-alpha);
    border-radius: 5px;
    padding: 40px;
    background-image: url(../images/pt6.jpg);
}

.chat-content .chat-item {
    position: relative;
}

.chat-content .chat-item.chat-dir-left {
    padding: 0 0 0 43px;
}

.chat-content .chat-item.chat-dir-right {
    padding: 0 43px 0 0;
}

.chat-content .chat-item .chat-bubble-triangle.chat-dir-left {
    float: left;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 13px 0;
    border-color: transparent white transparent transparent;
}

.chat-content .chat-item .chat-bubble-triangle.chat-dir-right {
    float: right;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 13px 10px 0 0;
    border-color: var(--primary-bg) transparent transparent transparent;
}

/* bubble */
.chat-content .chat-item .chat-bubble {
    width: calc(90% - 32px);
    box-shadow: 0 2px 2px 0 #00000026;
    padding: 10px;
    margin: 0 0 10px 0;
    /*cursor: pointer;*/
}

.chat-content .chat-item .chat-bubble.chat-dir-left {
    float: left;
    background-color: white;
}

.chat-content .chat-item .chat-bubble.chat-dir-right {
    float: right;
    background-color: var(--primary-bg);
}

/* messaggio */
.chat-content .chat-item .chat-bubble .chat-message pre {
    white-space: pre-wrap;
    border-radius: 5px;
    color: black;
    font-weight: 400;
    font-size: 14px;
    font-family: "Inter-Regular";
    font-variant-numeric: lining-nums tabular-nums;
    margin: 0;
    overflow: auto;
    width:90%
}

/* continua a leggere */
.chat-content .chat-item .chat-bubble .chat-message .chat-read-more .chat-read-more-msg {
    color: var(--primary);
    font-size: 14px;
    font-weight: 400;
    font-family: "Inter-Regular";
    cursor: pointer;
}

.chat-content .chat-item .chat-bubble .chat-message .chat-read-more .chat-read-more-content {
    display: none;
}

/* leggi meno */
.chat-content .chat-item .chat-bubble .chat-message .chat-read-less .chat-read-less-msg {
    color: var(--primary);
    font-size: 14px;
    font-weight: 400;
    font-family: "Inter-Regular";
    cursor: pointer;
    display: none;
}

/* data */
.chat-content .chat-item .chat-bubble .chat-date {
    text-align: right;
    color: black;
    font-family: "Inter-Regular";
    font-size: 10px;
    font-weight: 400;
    font-variant-numeric: lining-nums tabular-nums;
}

/* utente */
.chat-content .chat-item .chat-bubble .chat-user {
    color: black;
    font-family: "Inter-Regular";
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: lining-nums tabular-nums;
}

/* utente bubble */
.chat-content .chat-item .chat-user-bubble {
    position: absolute;
    height: 42px;
    width: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 100%;
    background-color: #174F84;
    color: white;
    font-size: 18px;
    font-weight: 700;
    font-family: "TitiliumWeb-Light";
}

.chat-content .chat-item .chat-user-bubble.chat-dir-left {
    left: -3px;
}

.chat-content .chat-item .chat-user-bubble.chat-dir-right {
    right: -3px;
}

.chat-icons {
    display: flex;
    justify-content: flex-end;
    height: 0;
    gap: 5px;
}

.chat-icon {
    cursor: pointer;
    padding: 10px;
    width: 16px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    margin: -10px -5px 0 0;
}

.chat-icon:hover {
    opacity: 0.7;
}

.chat-icon.chat-ico-modifica {
    background-image: url("../images/edit_blue.svg");
}

.chat-icon.chat-ico-allegati {
    background-image: url("../images/allegati_blue.svg");
}

.chat-icon.chat-ico-elimina {
    background-image: url("../images/trash_blue.svg");
}

/* ******************************* */
/* *** message [s21message.js] *** */
/* ******************************* */

#s21-msg-overlay {
    opacity: 0.25;
    background-color: black;
    z-index: 90000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

#s21-msg {
    position: fixed;
    z-index: 90010;
    padding: 15px;
    border-radius: 10px;
    background-color: white;
    display: none;
}

#s21-msg.s21-msg-full {
    top: calc(50% - 100px);
    left: calc(50% - 190px);
    width: 350px;
    height: 170px; /* 200 totale = 170px + 15px padding top + 15px padding bottom */
}

#s21-msg.s21-msg-light {
    top: calc(50% - 75px);
    left: calc(50% - 150px);
    width: 270px; /* 300 totale = 270px + 15px padding top + 15px padding bottom */
    height: 118px;
}

#s21-msg .s21-msg-header .s21-msg-title {
    float: left;
    width: calc(100% - 36px);
    color: black;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 20px;
    line-height: 20px;
}

#s21-msg .s21-msg-header .s21-msg-close {
    float: right;
    width: 20px;
    height: 20px;
    background-image: url(../images/close_black.svg);
    background-repeat: no-repeat;
    background-position: 2px 2px;
    background-size: 16px;
    cursor: pointer;
}

#s21-msg .s21-msg-content {
    height: 64px;
    overflow: auto;
    text-align: center;
    margin: 21px 0;
    font-weight: 400;
    font-family: "Inter-Regular";
    font-size: 14px;
    padding: 6px 10px;
}

#s21-msg.s21-msg-full .s21-msg-content {
    line-height: 64px;
}

#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 .s21-msg-button {
    text-align: center;
    height: 18px;
    line-height: 18px;
    padding: 6px 20px;
    min-width: 70px;
    border-radius: 5px;
    border: 1px solid var(--primary);
    background: #FFFFFF;
    float: right;
    color: var(--primary);
    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: var(--primary);
    color: white;
}

#s21-msg .s21-msg-clear {
    clear: both;
}

/* ***************************** */
/* *** wizard [s21wizard.js] *** */
/* ***************************** */

.wiz-item {
    position: absolute;
    left: calc(50% - 181px);
}

.wiz-item .wiz-btn {
    position: relative;
    height: 42px;
    width: 161px; /* 176 tot = 157px + 19px padding (left / right) */
    line-height: 42px;
    text-align: center;
    background-color: var(--primary);
    float: left;
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: "TitiliumWeb-Light";
    cursor: pointer;
    user-select: none;
}

.wiz-item .wiz-btn.wiz-disabled {
    cursor: default;
    background-color: var(--secondary);
}

.wiz-item .wiz-btn.wiz-back {
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    margin: 0 2px 0 0;
    background-image: url(../images/chevron-left.svg);
    background-repeat: no-repeat;
    background-size: 22px 22px;
    background-position: 15px 10px;
    padding: 0 0 0 19px;
}

.wiz-item .wiz-btn.wiz-next {
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    background-image: url(../images/chevron-right.svg);
    background-repeat: no-repeat;
    background-size: 22px 22px;
    background-position: right 15px top 10px;
    padding: 0 19px 0 0;
}

.wiz-item .wiz-btn.wiz-next .wiz-value {
    position: absolute;
    top: -8px;
    right: 45px;
    font-family: "Inter-Regular";
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: lining-nums tabular-nums;
    width: 25px;
    text-align: left;
}

.wiz-item .wiz-btn.wiz-save {
    background-color: #2FB76C;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* ************************* */
/* *** 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;
}