:root {
    --ck-z-default: 1060 !important;
}

html {
    font-size: 14px;
}

html,
body {
    height: 100%;
}

.mw-35 {
    width: 35px;
}

.cp {
    cursor: pointer;
}

.fa-whatsapp {
    color: #25d366;
}

/* .header .header-top { */
.header {
    background-color: #3c4b64;
}

.header .header-toggler {
    color: #fff;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.table-lg>:not(caption)>*>* {
    padding: 0.75rem 0.75rem;
}

@media screen and (min-width: 768px) {
    .header .header-top {
        background-color: inherit;
    }

    .header .header-toggler {
        color: inherit;
    }
}

*::-webkit-scrollbar {
    width: 7.5px;
    height: 7.5px;
    background-color: transparent;
}

*::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    background-color: var(--cui-light-rgb);
}

*::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: transparent;
}

img.nav-icon {
    --cui-sidebar-nav-icon-height: 24px;
    object-fit: contain;
}

.bg-secondary {
    --cui-secondary-rgb: 135, 145, 161;
}

.bg-secondary.bg-secondary-dark {
    --cui-secondary-rgb: 223, 223, 223;
}

.bg-secondary.bg-secondary-light {
    --cui-secondary-rgb: 242, 242, 242;
}

.btn-secondary-crm {
    --cui-btn-color: #FFFFFF;
    --cui-btn-bg: #8791A1;
    --cui-btn-border-color: #8791A1;
    --cui-btn-hover-color: rgba(255, 255, 255, 0.95);
    --cui-btn-hover-bg: #989fa8;
    --cui-btn-hover-border-color: #a7aeb9;
    --cui-btn-focus-shadow-rgb: 133, 140, 154;
    --cui-btn-active-color: rgba(255, 255, 255, 0.95);
    --cui-btn-active-bg: #868b92;
    --cui-btn-active-border-color: #a7aeb9;
    --cui-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 21, 0.125);
    --cui-btn-disabled-color: #FFFFFF;
    --cui-btn-disabled-bg: #8791A1;
    --cui-btn-disabled-border-color: #8791A1;
}

.sidebar:not(.sidebar-narrow-unfoldable) .img-compressed,
.sidebar-narrow-unfoldable .img-uncompressed,
.sidebar-narrow-unfoldable:hover .img-compressed {
    display: none;
}

.sidebar-narrow-unfoldable:hover .img-uncompressed {
    display: block;
}

.nav-tabs {
    border-bottom: 0;
}

.nav-tabs .nav-link {
    border-radius: var(--cui-nav-tabs-border-radius);
    --cui-nav-link-color: #1E1E1E;
    border-color: #B0BBCA;
}

.nav-tabs .nav-link img {
    filter: invert(.7);
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    --cui-nav-tabs-link-active-color: #1E1E1E;
    --cui-nav-tabs-link-active-bg: #DFDFDF;
    --cui-nav-tabs-link-active-border-color: #DFDFDF;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
    background: #BEBEBE;
    --cui-nav-tabs-link-hover-border-color: #BEBEBE;
    --cui-nav-link-hover-color: #1E1E1E;
}

.border-secondary-crm {
    border-color: #B0BBCA;
}

.btn-outline-secondary-crm {
    --cui-btn-color: #1E1E1E;
    --cui-btn-bg: transparent;
    --cui-btn-border-color: #8791A1;
    --cui-btn-hover-color: rgba(255, 255, 255, 0.95);
    --cui-btn-hover-bg: #989fa8;
    --cui-btn-hover-border-color: #a7aeb9;
    --cui-btn-focus-shadow-rgb: 133, 140, 154;
    --cui-btn-active-color: rgba(255, 255, 255, 0.95);
    --cui-btn-active-bg: #868b92;
    --cui-btn-active-border-color: #a7aeb9;
    --cui-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 21, 0.125);
}

.btn-outline-secondary-crm img {
    filter: invert(.7);
}

.btn-outline-secondary-crm:hover img {
    filter: invert(0);
}

.row-pipeline {
    height: calc(100vh - (2rem + 50px));
}

.state-column {
    width: 37.5%;
}

[contenteditable],
.modal-field:not([contenteditable]):not(.dropdown-menu):not([type="range"]) {
    border: 1px solid transparent !important;
    padding: 5px;
}

[contenteditable]:hover,
.editing[contenteditable],
.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable) {
    box-shadow: none;
    outline: none;
    border: 1px solid #c0c0c0 !important;
    border-radius: .25rem !important;
}

[contenteditable] {
    outline: 0;
}

.card-lead {
    box-shadow: 0 0 0.5rem 0.125rem rgba(0, 0, 21, .075) !important;
    cursor: grab;
    border: 0;
}

.card-lead .lead-title {
    font-size: 15px;
}

.card-lead .qualita-10 {
    color: #65CF76;
}

.card-lead .qualita-5 {
    color: #FD6363;
}

.card-lead [data-bs-toggle="tooltip"] {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.card-lead:not(:last-child) {
    margin-bottom: .5rem;
}

.card-lead.new-lead {
    border: 2px solid transparent;
    animation: newLead 2s linear forwards 2;
}

@keyframes newLead {
    0% {
        border-color: transparent;
    }

    50% {
        border-color: var(--bs-danger);
    }

    100% {
        border-color: transparent;
    }
}

.ui-state-highlight {
    height: 120px;
    line-height: 1.2em;
    margin-bottom: .5rem;
    border-radius: .25rem;
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
    border: 0;
    background: #DFDFDF;
}

.ombra-transparent {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1059;
    background: rgba(255, 255, 255, 0.8);
}

.leads-loader {
    height: 120px;
}

.state-column .card-title,
.state-column .card-title .btn {
    color: #1E1E1E;
}

.state-column .card-title .btn {
    font-size: 1.5rem;
    font-weight: 500;
}

.state-column .card-title .btn img {
    background-color: #1E1E1E;
    border-radius: 50%;
    height: 25px;
    width: 25px;
    object-fit: none;
}

.no-leads p {
    font-size: 20px;
    max-width: 70%;
    text-align: center;
    font-weight: 500;
}

.text-dark {
    --cui-dark-rgb: 31, 31, 31;
}

@media screen and (min-width: 992px) {
    .d-lg-list-item {
        display: list-item !important;
    }
}

@media screen and (min-width: 1200px) {
    .state-column {
        width: 30%;
    }
}

@media screen and (min-width: 1440px) {
    .state-column {
        width: 22.5%;
    }
}

.label-lead-color-picker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.lead-color-picker {
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
    bottom: 0;
}

.down-arrow {
    position: relative;
}

.down-arrow::after {
    content: "";
    position: absolute;
    border: 7px solid transparent;
    border-top: 7px solid #1E1E1E;
    top: 50%;
    right: 0;
    transform: translate(-12px, calc(-50% + 4px));
}

.down-arrow input {
    padding-right: 42px !important;
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
    padding-left: 1rem !important;
}

.div-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    gap: 1rem;
}

.div-group-prepend+div,
.div-group-append {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.btn-close-modal {
    z-index: var(--ck-z-default);
}

.ck-powered-by-balloon {
    display: none !important;
}

.form-control::placeholder {
    font-weight: 400;
}

.text-grigio-blu-scuro {
    color: #8791A1;
}

.text-nero {
    color: #1E1E1E;
}

.dropdown-toggle::after {
    display: none;
}

.modal .div-group-prepend img {
    max-height: 1.25rem;
    max-width: 1.25rem;
}

[contenteditable="true"]:empty:before {
    content: attr(placeholder);
    pointer-events: none;
    display: block;
    font-style: italic;
    opacity: .7;
    font-weight: 400;
}

.card-lead .badge img {
    filter: contrast(0) brightness(2);
}

/* .ignore-css *,
.tooltip-inner * {
    all: unset;
} */

.ignore-css * {
    all: unset;
}

.status-unknown {
    background-color: #808080;
    color: #ffffff;
}

.status-to-start {
    background-color: #9da5b1;
    color: #000000;
}

.status-running {
    background-color: #321fdb;
    color: #ffffff;
}

.status-paused {
    background-color: #f9b115;
    color: #000000;
}

.status-done {
    background-color: #2eb85c;
    color: #ffffff;
}

.status-cancelled {
    background-color: #e55353;
    color: #000000;
}

.wa-status,
.tag {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 75%;
    font-weight: 600;
    padding: 0.3em 0.6em;
    line-height: 1;
    white-space: nowrap;
}

.tag {
    --tag-color: #54B5D9;
    background-color: var(--tag-color);
    color: #FFFFFF;
}

.wa-status-1 {
    background-color: #54B5D9;
    color: #000000;
}

.wa-status-2 {
    background-color: #B7A8B6;
    color: #000000;
}

.wa-status-3 {
    background-color: #2FBF88;
    color: #000000;
}

.wa-status-4 {
    background-color: #F1B54E;
    color: #000000;
}

.wa-status-5 {
    background-color: #E85252;
    color: #000000;
}

.wa-status-6 {
    background-color: #E0C56C;
    color: #000000;
}

.wa-status-7 {
    background-color: #C461C1;
    color: #000000;
}

.wa-status-8 {
    border-color: #54B5D9;
    color: #000000;
}

.wa-status-9 {
    border-color: #E85252;
    color: #000000;
}

.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Nuovo modal */
#lead-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid #c4c9d0;
}

#lead-tabs .nav-item {
    margin-left: 2.5px;
    margin-right: 2.5px;
    flex: auto;
    margin-bottom: -1px;
}

#lead-tabs .nav-item:first-child {
    margin-left: 0;
}

#lead-tabs .nav-item:last-child {
    display: none;
}

#lead-tabs .nav-item .nav-link {
    width: 100%;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    border: 1px solid #c4c9d0;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: buttonface;
}

#lead-tabs .nav-item button.nav-link {
    outline: 0 !important;
    font-size: 14px;
    height: 100%;
}

#lead-tabs .nav-item.show .nav-link,
#lead-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #c4c9d0 #c4c9d0 #fff;
}

#modal-edit-lead .modal-content {
    min-height: 50vh;
}

#parentCorpoMessaggi {
    /* max-height: 50vh; */
    height: calc(100% - 158px);
    overflow-y: auto;
}

.item-message .card {
    max-width: 65%;
}

.rounded-message-user {
    border-radius: 20px 20px 20px 0;
}

.bg-grigio {
    background-color: #DADADA;
}

.role-assistant {
    border-color: #FA8A53;
}

.rounded-message-bot {
    border-radius: 20px 20px 0 20px;
}

.role-admin {
    border-color: #3CA9F8;
}

.rounded-message-bot {
    border-radius: 20px 20px 0 20px;
}

#sendMessageButton {
    position: absolute;
    right: 1rem;
    bottom: 0;
    height: 100%;
    z-index: 10;
}

.select2-wa+.select2 {
    min-width: 200px;
    height: 100%;
}

.select2-wa+.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    height: 100%;
    display: flex;
    align-items: center;
}

.pre-wrap {
    white-space: pre-wrap;
}

.range-slider {
    --progress: 0;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    cursor: pointer;
    outline: none;
    border-radius: 15px;
    height: 20px;
    height: 6px;
    background: linear-gradient(90deg, var(--cui-primary) 0%, var(--cui-primary) calc(var(--progress)* 1%), #ccc calc(var(--progress)* 1%));
}

.range-slider::after {
    content: attr(data-progress);
    display: block;
    position: absolute;
    left: calc(15px - calc(calc(var(--progress) / 3.333333) * 1px) + calc(var(--progress) * 1%));
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 600;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 30px;
    width: 30px;
    background: var(--cui-primary);
    border-radius: 5px;
    transition: .2s ease-in-out;
}

/* Thumb: Firefox */
.range-slider::-moz-range-thumb {
    height: 30px;
    width: 30px;
    background: var(--cui-primary);
    border: none;
    border-radius: 5px;
    transition: .2s ease-in-out;
}

.sliderticks {
    position: relative;
    padding: 0;
}

.sliderticks span {
    line-height: 40px;
    position: absolute;
    left: calc(15px - calc(calc(var(--progress) / 3.333333) * 1px) + calc(var(--progress) * 1%));
    transform: translateX(-50%);
}

.break-word {
    word-break: break-word;
}

.fc .fc-toolbar-title {
    font-size: 1em;
}

.fc .fc-button.fc-today-button {
    display: none
}

.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
    border: none;
}

.fc a {
    text-decoration: none;
    color: #666;
    font-weight: 400;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: transparent;
}

.fc .fc-daygrid-day.fc-day-today a:after {
    content: "";
    position: absolute;
    bottom: 4px;
    right: 6px;
    width: 4px;
    height: 2px;
    background-color: #3c4b64;
}

.fc-theme-standard td {
    text-align: center;
}

.fc .fc-daygrid-day.fc-day-future a {
    color: #0060e6;
    font-weight: 700
}

.fc .fc-daygrid-day.fc-day-future a:after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: -6px;
    width: 34px;
    height: 34px;
    background-color: #0069ff11;
    border-radius: 100%;
    z-index: -1;
}

.fc .fc-daygrid-day.selected-date a:after,
.fc .fc-daygrid-day a:hover:after {
    background-color: #0069ff
}

.fc .fc-daygrid-day.selected-date a,
.fc .fc-daygrid-day a:hover {
    color: #fff
}

.fc .fc-daygrid-day-top {
    display: flex;
    justify-content: center;
    align-items: center;
}


@media screen and (min-width: 992px) {
    #lead-tabs {
        flex-wrap: wrap;
        overflow-x: unset;
        overflow-y: unset;
    }

    #lead-tabs .nav-item:last-child {
        display: list-item;
    }

    #lead-tabs .nav-item .nav-link {
        white-space: normal;
    }
}