
.communication-item.has-error .body-text {
    background-color: #ffb0b0 !important;
}
.communication-item .time-date, .communication-item .time-date a {
    color: #747474;
    font-size: 12px;
}
.communication-item .time-date a:hover {
    color: black;
}
.communication-item .hidden-icons {
    display: none;
    color: #e1e1e1;
    font-size: 28px;
    position: absolute;
    right: 100%;
    text-align: center;
}
.communication-item .com-warning {
    font-size: 28px;
    display: block;
    position: absolute;
    top: calc(50% - 30px);
    left: 100%;
    text-align: center;
}
.communication-item.inbound .com-warning {
    right: 100%;
    left: inherit;
    background-color: #F4F5F7;
}

.communication-item .is-important-star {
    position: absolute;
    top: -17px;
    right: -10px;
    font-size: 25px;
}
.communication-item.outbound .is-important-star {
    left: -13px;
}

/* Start Style attachment */

.attachment-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 120px;
    width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.attachment-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center!important;
    justify-content: center!important;
    overflow: hidden;
    background-color: rgba(245, 245, 245, 0.15);
}

.file-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.attachment-item:hover .file-thumb {
    transform: scale(1.05);
}

.attachment-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.attachment-item:hover .attachment-details {
    opacity: 1;
}

.full-file-name {
    font-size: 14px;
    margin-bottom: 4px;
    color: white;
    word-wrap: break-word;
}

.file-size {
    font-size: 12px;
    margin-bottom: 8px;
    color: #ccc;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.communication-item .btn-icon {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.communication-item .btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.communication-item .btn-icon i {
    font-size: 16px;
}

.file-icon {
    font-size: 40px;
    color: #333;
}

/* End Style attachment */


.communication-item.inbound .hidden-icons {
    left: 100%;
    right: inherit;
}
.communication-item:hover .hidden-icons {
    display: block;
}

.communication-item.inbound .body {
    float: left;
}
.communication-item.inbound .body-text {
    background-color: #F4F5F7;
}
.communication-item.outbound .body {
    float: right;
}
.communication-item.outbound .body-text {
    background-color: #E6F3FE;
}
.communication-item::after {
    display: block;
    clear: both;
    content: "";
}
.communication-item {
    position: relative;
}
.communication-item .body {
    position: relative;
    width: 70%;
    font-size: 14px;
}
.communication-item .body-text {
    border-radius: 10px;
    word-break: break-word;
    transition: filter 0.2s, border-color 0.2s;
    font-size: 1.1em;
    color: black;
    padding: 16px;
    min-width: 400px;
}
.avatar-initials {
    font-size: 16px;
    text-align: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #005cbf;
    overflow: hidden;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.search-avatar .avatar-initials {
    font-size: 40px;
    text-align: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #005cbf;
    overflow: hidden;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.vehicle-client-avatar .avatar-initials {
    font-size: 24px;
    text-align: center;
    color: white;
    justify-content: center;
    align-items: center;
    background-color: #005cbf;
    overflow: hidden;
    bottom: 0;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50%;
}

.icon-contact{
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    color:#8D9FB0;
}


.overlay-container {
    display: grid !important;
    place-items: center;
    position: relative;
}

.first-image-vehicle {
    width: 38px !important;
    height: 38px !important;
    grid-area: 1 / 1;
    transform: translate(10px, 2.5px);
}

.avatar {
    grid-area: 1 / 1;
    transform: translate(-21%, 50%);
}
.avatar-initials-opp-name {
    font-size: 12px !important;
    line-height: 10px;
}
.communication-avatar-sm .avatar-initials {
    font-size: 12px;
    width: 26px;
    height: 26px;
}

.communication-avatar-xs-sm .avatar-initials {
    font-size: 9px;
    width: 18px ;
    height: 18px;
}
.communication-avatar-xs .avatar-initials {
    font-size: 8px;
    width: 16px;
    height: 16px;
}
.communication-avatar-lg .avatar-initials {
    font-size: 40px;
    width: 60px;
    height: 60px;
    font-weight: 500;
}
.communication-avatar-xl .avatar-initials {
    font-size: 28px;
    width: 62px;
    height: 62px;
}
.low-opacity {
    opacity: 40%;
}
.float-right {
    float: right;
}
.float-left {
    float: left;
}
.rounded-circle {
    border-radius: 50%;
}
.communication-typing {
    opacity: 0.7;
}
.communication-typing .typing-cursor {
    border-right: 1px solid black;
    animation: blink-caret .75s step-end infinite;
}

/* The typewriter cursor effect */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: black; }
}

.communication-item.rating-warning .body-text {
    background-color: #ff7a00 !important;
}

.br-theme-fontawesome-stars .br-widget a:after {
    color: var(--bs-primary);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    opacity: 1;
}

.com-color-text {
    color: #8D9FB0 !important;
}
.com-icon {
    color: #80C2F7;
}

.favorite-btn:hover {
    color: #ff7a00 !important;
    font-weight: 900;
}

/* Cache l'icône originale */
.emojionearea-button > .emojionearea-button-open, .emojionearea-button-close {
    display: none;
}

.emojionearea-button:before {
    content: "\f118"; /* Code Unicode pour 'smiley' dans FontAwesome */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 18px;
    color: var(--bs-primary);
    display: block;
    text-align: center;
}
/* Style au survol */
.emojionearea-button:hover:before {
    color: var(--bs-primary);
}

input.toggle-display + label { cursor: pointer; }
input.toggle-display + label:before { content: "⏷" }
input.toggle-display:checked + label:before { content: "⏵"; }
input.toggle-display:checked + label + div { display: none; }

.calldata-summary {
    font-style: italic;
}
.calldata-transcript {
    border-left: 3px solid var(--bs-border-color);
    margin-left: 6px;
    padding: 4px 4px 4px 8px;
    max-height: 300px;
    overflow: auto;
    white-space: pre-line;
}
/* https://css-loaders.com/dots/ */
/* HTML: <div class="dot-loader"></div> */
.dot-loader {
    width: 30px;
    margin: 10px auto;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side,#888 90%,#0000);
    background:
            var(--_g) 0%   50%,
            var(--_g) 50%  50%,
            var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 1s infinite linear;
}
@keyframes l3 {
    20%{background-position:0%   0%, 50%  50%,100%  50%}
    40%{background-position:0% 100%, 50%   0%,100%  50%}
    60%{background-position:0%  50%, 50% 100%,100%   0%}
    80%{background-position:0%  50%, 50%  50%,100% 100%}
}

