/* put your own styles to customize and override the theme */
.countdown li {
    list-style-type: none;
    display: inline-block;
  }

  .countdown {
    font-family:monospace;
    font-size: 12px;
  }

  .top-bar-brand a img {
    width: 160px !important;
    max-width: 160px !important
}

.conversation_details {
    z-index: 2;
}
@media (max-width: 991px) {
    .conversation_details.mobile-sidebar-open {
        display: block !important;
        position: absolute;
        transform: translateZ(0);
        top: 0;
        width: 100%;
        height: 100%;
    }
    /* Keep notes textarea usable on mobile when opening via external links */
    textarea[phx-hook="NoteDraftHook"] {
        min-height: 100px;
        line-height: 1.4;
    }
}
* {
    font-family: Nunito, serif;
}

:root {
    --composer-viewport-height: 100vh;
}

@supports (height: 100svh) {
    :root {
        --composer-viewport-height: 100svh;
    }
}

@supports (height: 100lvh) {
    :root {
        --composer-viewport-height: 100lvh;
    }
}

@supports (height: 100dvh) {
    :root {
        --composer-viewport-height: 100dvh;
    }
}

.pace {
    -webkit-pointer-events: none;
    pointer-events: none;
  
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }
  
  .pace-inactive {
    display: none;
  }
  
  .pace .pace-progress {
    background: #1cc88a;
    position: fixed;
    z-index: 2000;
    right: 100%;
    width: 100%;
    height: 3px;
  }


.indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    -webkit-animation: pulse-animation 2s infinite linear;
    position: absolute;
    bottom: 0;
    right: 0;
}

.indicator.online {
    background: #28B62C;
}

.indicator.offline {
    background: #FF4136;
}

@-webkit-keyframes pulse-animation {
    0% { -webkit-transform: scale(1); }
    25% { -webkit-transform: scale(1); }
    50% { -webkit-transform: scale(1.2) }
    75% { -webkit-transform: scale(1); }
    100% { -webkit-transform: scale(1); }
}



.tiblock {
    align-items: center;
    height: 17px;
}

.ticontainer .tidot {
    background-color: #90949c;
}

.tidot {
    -webkit-animation: mercuryTypingAnimation 1.5s infinite ease-in-out;
    border-radius: 2px;
    display: inline-block;
    height: 4px;
    margin-right: 2px;
    width: 4px;
}

@-webkit-keyframes mercuryTypingAnimation{
    0%{
        -webkit-transform:translateY(0px)
    }
    28%{
        -webkit-transform:translateY(-5px)
    }
    44%{
        -webkit-transform:translateY(0px)
    }
}

.tidot:nth-child(1){
    -webkit-animation-delay:200ms;
}
.tidot:nth-child(2){
    -webkit-animation-delay:300ms;
}
.tidot:nth-child(3){
    -webkit-animation-delay:400ms;
}

.lds-facebook {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-facebook div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    background: #fff;
    animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}
@keyframes lds-facebook {
    0% {
        top: 8px;
        height: 64px;
    }
    50%, 100% {
        top: 24px;
        height: 32px;
    }
}
#loading {

    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    width: 100%;
    position: fixed;
    background: black;
    opacity: 0.8;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
}
.loading-covo {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    width: 100%;
    position: fixed;
    background: black;
    opacity: 0.8;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
}

.empty-inbox {
    width: 100%;
    height: calc(100vh - 3.5rem);
    text-align: center;
    padding-top: 30px;
}
.empty-inbox h3{
    font-size: 3.5rem;
}
.empty-inbox span{
    font-size: 1.75rem;
}


button#people , button#close {
    width: 100%;
    padding: 7px 0;
    border: 1px solid #c6c9d5;
}

span.select2-selection__clear {
    display: none;
}

@media (max-width: 1199px)
{
    .sidebar-section-fill {
        flex: none;
    }
    .has-sidebar-expand-xl .page-sidebar {
        transform: translateZ(0);
    }
}
.hours-icon {
    color: #6657cc !important;
}
a.dropdown-item.unread {
    background: #2c3b6038;
    font-style: italic;
}
a.dropdown-item.unread:hover {
    background: #6657cc;
}
.date-field{
    width: 80%;
    height: 58%;
}
.d{
    height: 35px;
    width: 40px;
    background-color: white;
    border-color: black;
    float: right;
}
.d:hover{
background-color: #3c3f40;
}


@media (max-width:767px) {
    .message-body {
        margin-top: 0px
    }

    .drop-on-left .dropdown-menu {
        left: 24% !important;
    }
    .arrow-position{left: 24% !important;}
    .drop-on-left .dropdown-menu .dropdown-arrow,
    .drop-on-left .dropdown-menu .dropdown-arrow,
    .dropdown-menu[data-popper-placement^="left"] .dropdown-arrow {
        left: 50%;
    }
    .drop-on-left .dropdown-menu {
        top: 100%;
        left: 58%;
        transform: translateX(-50%);   /* center under the button */
        right: auto;                   /* remove the hard -23% offset */
        margin-top: 0 !important;
    }

    .drop-on-left{
        position: static;
    }


}


.convertdet {
    height: 82vh;
}

@media (min-width:768px) {
    .convertdet {
        height: 85vh;
    }

    .drop-on-left .dropdown-menu .dropdown-arrow,
    .drop-on-left .dropdown-menu .dropdown-arrow,
    .dropdown-menu[data-popper-placement^="left"] .dropdown-arrow {
        left: auto;
        right: 16px;
    }
    .drop-on-left .dropdown-menu {
        top: 100%;
        right: -23%;
        left: auto;
        margin-top: 10px;
        margin-right: .125rem;
    }

}

@media (min-width: 1024px) and (max-width: 1487px) {
    .on-convo-close-container-position{
        right: auto !important;
        left: -32% !important;
    }
    .arrow-position{
        left: 18px !important;
        right: auto !important;
    }
}

@media (min-width:1200px) {
    .convertdet {
        height: calc(100vh - 114px);
    }
}


@supports (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        .convertdet {
            height: 73vh;
        }
    }
}

@supports (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        .msg-box-ios {
            height: calc(var(--composer-viewport-height) - 70px);
            min-height: calc(var(--composer-viewport-height) - 70px);
            max-height: calc(var(--composer-viewport-height) - 70px);
            display: flex;
            padding-bottom: env(safe-area-inset-bottom, 0px);
            margin-bottom: 0;
        }

        .header-container {
            padding-top: calc(env(safe-area-inset-top, 0px) + 0.5rem) !important;
            padding-bottom: 0.5rem !important;
            row-gap: 0.5rem;
        }

        .header-container .mt-2 {
            margin-top: 0.35rem !important;
        }

        .msg-box-ios .message {
            min-height: 100%;
            display: flex;
            flex-direction: column;
            min-height: 0;
            flex: 1;
        }
        .msg-box-ios .message-body {
            max-height: calc(var(--composer-viewport-height) - 180px);
            min-height: 0;
            overflow-y: auto;
        }
    }
}

@media (max-width: 991px) and (hover: none) and (pointer: coarse) {
    .msg-box-ios {
        height: calc(var(--composer-viewport-height) - 60px);
        min-height: calc(var(--composer-viewport-height) - 60px);
        max-height: calc(var(--composer-viewport-height) - 60px);
        display: flex;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        margin-bottom: 0;
    }

    .header-container {
        padding-top: calc(env(safe-area-inset-top, 0px) + 0.5rem) !important;
        padding-bottom: 0.5rem !important;
        row-gap: 0.5rem;
    }

    .header-container .mt-2 {
        margin-top: 0.35rem !important;
    }

    .msg-box-ios .message {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        min-height: 0;
        flex: 1;
    }

    .msg-box-ios .message-body {
        max-height: calc(var(--composer-viewport-height) - 120px);
        min-height: 0;
        overflow-y: auto;
    }
}

@supports (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        .fixed-header-footer-ios {
                   position: fixed;
                   width: -webkit-fill-available;
                }
            }
        }


@supports (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        .page-container {
            overflow-y: auto;
            overflow-x: hidden;
            max-height: 80vh;
        }
        .card-content {
            overflow-y: auto;
            overflow-x: hidden;
            max-height: 52vh;
        }

    }
}


#chat-flow-page body {
    height: 100vh;
    padding-top: 10px;
    display: grid;
    place-items: center;
    margin: 0;
    background: #222;
}
#chat-flow-page .check-box {
    transform: scale(2);
}
#chat-flow-page .heading-font-size {
    font-size: 27px;
}
#chat-flow-page .info-font-size {
    font-size: 17px;
}
#chat-flow-page input[type="checkbox"] {
    position: relative;
    appearance: none;
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 50px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: 0.4s;
}
#chat-flow-page input:checked[type="checkbox"] {
    background: #e5586a;
}
#chat-flow-page input[type="checkbox"]::after {
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    transition: 0.4s;
}
#chat-flow-page input:checked[type="checkbox"]::after {
    left: 50%;
}

.conversation-visit{
    display: grid;
    text-align: -webkit-center;
}

.profile-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #20b2aa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image img {
    max-width: 100%;
    height: auto;
}

.profile-image span {
    font-size: 0.5em;
    color: #fff;
}
.profile-pic-and-name{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.sidebar-photo-circle {
    background-color: #3498db;
    float: left;
}
.grid-container {
    display: grid;
    grid-template-columns: auto auto auto;
    padding: 10px;
}

.grid-item {
    padding: 10px;
    font-size: 30px;
    text-align: center;
}

.image {
    margin: 12px;
}

.image img {
    width: 185px;
    height: 100px;
    transition: transform 0.3s;
    object-fit: contain;
}

.image img:hover {
    transform: scale(1.2);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    text-align: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
}

#loaderDiv {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Add styles for the div */
}

.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.conversation-message-image-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.conversation-message-attachment {
    display: flex;
    align-items: center;
    justify-content: center;
}
.conversation-message-attachment .conversation-message-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background-color: #ffffff;
    text-decoration: none;
    color: inherit;
    min-width: 220px;
    max-width: 260px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.conversation-message-attachment .conversation-message-file:hover,
.conversation-message-attachment .conversation-message-file:focus {
    border-color: #7f56d9;
    box-shadow: 0 4px 12px rgba(127, 86, 217, 0.18);
}
.conversation-message-file__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #f4ebff;
    color: #7f56d9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
}
.conversation-message-file__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.conversation-message-file__name {
    font-weight: 600;
    font-size: 14px;
    color: #344054;
    word-break: break-word;
}
.conversation-message-file__meta {
    font-size: 12px;
    color: #667085;
}
.unsupported-file-container {
    display: inline-flex;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    text-align: center;
}
.message-download {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}
.download-button {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
}
.download-button:hover {
    background-color: #0056B3;
}

.message-file-download {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #6657cc;
    color: white;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 75%;
    transform: translateY(-50%);
    cursor: pointer;
}
.member-dropdown {
    position: relative;
    display: inline-block;
}
.member-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.member-dropdown-content input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 1px solid #ddd;
}
.member-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.member-dropdown-content a:hover {background-color: #f1f1f1}
.member-dropdown:hover .member-dropdown-content,
.member-dropdown:focus-within .member-dropdown-content {
    display: block;
}

.custom-modal {
    position: fixed; /* Stay in place */
    z-index: 1050; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
/* Modal container */
.custom-modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal content */
.custom-modal-content {
    background-color: #fefefe;
    padding: 15px;
    border: 1px solid #888;
    width: 40%; /* Default width for larger screens */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .custom-modal-content {
        width: 80%; /* Adjust width for tablets */
    }
}

@media (max-width: 480px) {
    .custom-modal-content {
        width: 90%; /* Adjust width for mobile phones */
    }
}

/* The Close Button */
.custom-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.custom-close:hover,
.custom-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.transparent-button {
    background-color: transparent;
    border: none;
    color: inherit;
    padding: 0;
}
.send-message-modal {
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 20px;
    box-shadow: 0px 32px 64px rgba(15, 23, 42, 0.14);
    padding: 32px;
    width: min(640px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
}

.send-message-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.send-message-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.send-message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7f56d9 0%, #9e77ed 100%);
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(127, 86, 217, 0.25);
}

.send-message-overline {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f56d9;
}

.send-message-heading {
    margin: 2px 0 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: #101828;
}

.send-message-close {
    background: #f2f4f7;
    border: none;
    border-radius: 999px;
    color: #475467;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.send-message-close:hover,
.send-message-close:focus {
    background: #e4e7ec;
    color: #344054;
}

.send-message-form fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.send-message-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.send-message-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #667085;
    margin: 0;
}

.send-message-input-wrapper {
    display: flex;
    width: 100%;
}

.send-message-input,
.send-message-select,
.send-message-textarea {
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #101828;
    box-shadow: none;
}

.send-message-input:focus,
.send-message-select:focus,
.send-message-textarea:focus {
    border-color: #7f56d9;
    box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.15);
}

.send-message-recipient {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.send-message-member-dropdown {
    align-self: stretch;
    width: 100%;
}

.send-message-member-dropdown.member-dropdown {
    display: flex;
    flex-direction: column;
    position: static;
}

.send-message-member-dropdown .member-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: static;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #eaecf0;
    box-shadow: 0px 16px 40px rgba(15, 23, 42, 0.12);
    padding: 16px;
}
.send-message-member-dropdown.member-dropdown:hover .member-dropdown-content,
.send-message-member-dropdown.member-dropdown:focus-within .member-dropdown-content {
    display: flex;
}

.send-message-member-dropdown .member-dropdown-content input {
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    margin: 0;
    width: 100%;
}

.send-message-member-results {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.send-message-member-dropdown .member-dropdown-content a {
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
}

.send-message-member-dropdown .member-dropdown-content a:hover {
    background: #f9f5ff;
    color: #7f56d9;
}

.send-message-channel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.send-message-tabs {
    display: inline-flex;
    background: #f9fafb;
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.send-message-tab {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
    color: #475467;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.send-message-tab.active {
    background: #ffffff;
    color: #7f56d9;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

.send-message-tab:disabled {
    color: #98a2b3;
    cursor: not-allowed;
}

.send-message-textarea {
    min-height: 160px;
    resize: vertical;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 22px;
}

.send-message-empty-state {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f9f5ff;
    color: #6941c6;
    font-size: 14px;
}

.send-message-aux-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.send-message-aux-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 899px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    /*color: #475467;*/
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    transition: all 0.2s ease-in-out;
}

.send-message-aux-button i {
    font-size: 16px;
}

.send-message-aux-button:hover,
.send-message-aux-button:focus {
    border-color: #7f56d9;
    color: #7f56d9;
    outline: none;
}
.send-message-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.send-message-attachments.has-items {
    margin-top: 12px;
}

.send-message-attachment {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 16px;
    border: 1px solid #eaecf0;
    background: #f9fafb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.send-message-attachment--file {
    width: 100%;
    max-width: 320px;
    height: auto;
    padding: 12px 44px 12px 12px;
    background: #ffffff;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.04);
    justify-content: flex-start;
    gap: 12px;
}

.send-message-attachment-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.send-message-attachment-file {
    width: 100%;
    height: 100%;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: #344054;
    font-size: 12px;
    line-height: 1.3;
}

.send-message-attachment--file .send-message-attachment-file {
    height: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
}

.send-message-attachment--file .send-message-attachment-file-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.send-message-attachment-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #7f56d9;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.send-message-attachment--file .send-message-attachment-file-icon {
    flex-shrink: 0;
}

.send-message-attachment-file-name {
    max-width: 72px;
    word-break: break-word;
}

.send-message-attachment--file .send-message-attachment-file-name {
    display: block;
    max-width: none;
    font-weight: 600;
    color: #101828;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.send-message-attachment-file-size {
    font-size: 11px;
    color: #667085;
}

.send-message-attachment--file .send-message-attachment-file-size {
    font-size: 12px;
    color: #475467;
}
.send-message-attachment-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.7);
    border: none;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}
.send-message-attachment--file .send-message-attachment-remove {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}
.send-message-attachment-remove:hover,
.send-message-attachment-remove:focus {
    background: rgba(17, 24, 39, 0.85);
    outline: none;
}

.send-message-attachment-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-message-attachment-loader::after {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 3px solid #d0d5dd;
    border-top-color: #7f56d9;
    animation: send-message-spinner 0.8s linear infinite;
}

.send-message-attachment-error {
    margin: 0;
    color: #b42318;
    font-size: 14px;
}

.saved-reply-inbox-attachment-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.saved-reply-inbox-attachment-loader::after {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 3px solid #d0d5dd;
    border-top-color: #7f56d9;
    animation: send-message-spinner 0.8s linear infinite;
}

.saved-reply-inbox-attachment-cancel {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.7);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.saved-reply-inbox-attachment-cancel:hover,
.saved-reply-inbox-attachment-cancel:focus {
    background: rgba(17, 24, 39, 0.85);
}

.saved-reply-attachment-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: #475467;
}

.send-message-form.is-drag-over .send-message-textarea {
    border-style: dashed;
    border-color: #7f56d9;
    background: #f9f5ff;
}

@keyframes send-message-spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.send-message-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.send-message-primary,
.send-message-secondary {
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.send-message-secondary {
    background: #f8f9fc;
    color: #475467;
    border: 1px solid #eaecf0;
}

.send-message-secondary:hover,
.send-message-secondary:focus {
    background: #f2f4f7;
    color: #344054;
}

.send-message-primary {
    background: linear-gradient(135deg, #7f56d9 0%, #6941c6 100%);
    color: #ffffff;
    box-shadow: 0px 12px 24px rgba(105, 65, 198, 0.35);
}

.send-message-primary:hover,
.send-message-primary:focus {
    box-shadow: 0px 20px 32px rgba(105, 65, 198, 0.45);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .send-message-modal {
        padding: 24px;
        border-radius: 16px;
    }

    .send-message-field-group {
        flex-direction: column;
    }

    .send-message-heading {
        font-size: 20px;
        line-height: 28px;
    }
}
.zoom-on-hover {
    transition: transform 0.3s ease-in-out;
}

.zoom-on-hover:hover {
    transform: scale(1.2);
}

.modal-title-center{
    text-align: center;
    font-size: 2em; /* Adjust size as needed */
    margin: 20px 0; /* Optional: Adds some space above and below the heading */
}
.form-group-model {
    border: 2px solid #ccc; /* Adjust color and thickness as needed */
    padding: 20px; /* Optional: Adds padding inside the border */
    border-radius: 5px; /* Optional: Rounds the corners of the border */
    margin: 20px 0; /* Optional: Adds spacing around the form group */
}

.fs-16{
    font-size: 16px;
}

.header-right-icons{
    margin-right: 10px;
}

@media (max-width: 767px) {
    .header-right-icons{
        margin-right: 5px;
    }
}

.cursor-pointer:hover {
    cursor: pointer;
}

.pass-ellipsis {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

/* This applies to the backdrop area */
.clickable-overlay {
    cursor: pointer;
}
/* This keeps the drawer and its content with the normal arrow cursor */
.clickable-overlay .modal-dialog,
.clickable-overlay .modal-content {
    cursor: default;
}

.modal-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 0.75rem; /* Adjust as needed */
    transition: background-color 0.2s ease-in-out;
}

.cancel-btn {
    color: #888; /* Gray for Cancel button text */
}

.reset-btn {
    color: #e53935; /* Red for Reset button text */
}

/* Hover background colors */
.cancel-btn:hover {
    background-color: rgba(136, 136, 136, 0.1); /* Light gray background on hover */
}

.reset-btn:hover {
    background-color: rgba(229, 57, 53, 0.1); /* Light red background on hover */
}
@media (max-width:1022px) {
.control-display{
    display: none;
}
}
@media (min-width:1024px) {
.control-custom-display{
    display: none;
}
}

.hover-message-text {
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    font-size: 12px;
    padding: 5px 5px 4px 5px;
    position: absolute;
    z-index: 1;
    bottom: 100%;  /* Position the message above the button */
    left: 52%;
    margin-left: -15px;  /* Center the message */
    opacity: 0;
    transition: opacity 0.3s;
}
/* Show the hover message when hovering over the button */
.card-footer-item:hover .hover-message-text {
    visibility: visible;
    opacity: 1;
}
.edit-name-btn:hover .hover-message-text {
    visibility: visible;
    opacity: 1;
    bottom: 0;  /* Position the message above the button */
    left: 0;
    margin-left: 0;  /* Center the message */
    position: relative;
}
.call-btn:hover .hover-message-text {
    visibility: visible;
    opacity: 1;
    bottom: 30px;  /* Position the message above the button */
    left: 30px;
}
.call-btn{
    position: relative;
}
.hide-unhide-opportunity:hover ~ .hover-message-text {
    visibility: visible;
    opacity: 1;
    bottom: 85% !important;
    left: 58% !important;
}
.chatflow-tool-tip:hover .hover-message-text {
    visibility: visible;
    opacity: 1;
    bottom: 13px;
    left: 67% !important;
}

@media (min-width: 1024px) and (max-width: 1487px) {
    .message-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .message-header-actions{
        display: flex;
        width: 100%;
    }
    .padding-10-px{
        paddig-left: 10px;
    }
}

@media (min-width: 1487px) {
    .hide-after-1486 {
        display: none;
    }
}
@media (min-width: 1200px) {
    .hide-after-1200 {
        display: none;
    }
    .overlay-spinner {
        top: 12% !important;
    }
}

@media (max-width: 1487px) {
    .arrow-buttons-inbox {
        display: none;
    }
    .btn-account{
        width: 100%;
    }
    .overlay-spinner {
        top: 17% !important;
    }
}
@media (min-width:1487px) {
    .arrow-buttons-inbox{
        display: flex;
    }
}

.fix-arrow-button-position {
    margin-right: .75rem;
    display: block;
    text-align: left;
    flex: 1;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.image-custom-modal {
    position: fixed;
    z-index: 1047;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.image-custom-modal-container {
    display: flex;
    justify-content: flex-start;
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding-top: 10%;
    background-color: rgba(0, 0, 0, 0.4);
}
.image-custom-modal-content {
    background-color: #fefefe;
    padding: 15px;
    border: 1px solid #888;
    width: 24%;
    margin: 5%;
    height: max-content;
}
.overlay-spinner {
    position: absolute;
    top: 17%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #9b5de5; /* purple spinner color */
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (max-height: 760px) {
    .overlay-spinner {
        top: 22% !important;
    }
}

.notes-text-area{
    height: calc(100vh - 114px - 66vh) !important;
}

.notes-tab{
    max-height: calc(100vh - 114px - 24vh);
    height: calc(100vh - 114px - 24vh);
}

.display-flex-col{
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
}

.convo-overlay-spinner {
    position: absolute;
    bottom: 4%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.toggle-disabled-strong:disabled + .custom-control-label {
    background-color: #d1d1d1 !important; /* lighter gray for track */
    cursor: not-allowed;
}

.toggle-disabled-strong:disabled + .custom-control-label::before {
    background-color: #aea6a657 !important; /* darker gray knob */
    cursor: not-allowed;
}

.toggle-disabled-strong:disabled {
    cursor: not-allowed;
    opacity: 0;
}
/* Container is fixed full-screen and toggled by .lvcm--open */
.lvcm {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;                 /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1050;                 /* above page content */
    pointer-events: none;          /* prevent trapping clicks when hidden */
    opacity: 0;
}

/* When open, render as a centered flex layer and re-enable interaction */
.lvcm.lvcm--open {
    display: flex;
    pointer-events: auto;
    opacity: 1;
}

/* Blurry, dark backdrop */
.lvcm__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(17,24,39,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Dialog shell */
.lvcm__dialog {
    position: relative;
    z-index: 1;                    /* above backdrop */
    max-width: 520px;
    margin: 1rem;
    width: 100%;
}

/* Card-like content */
.lvcm__content {
    background: #fff;
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    overflow: hidden;
}

/* Header / Body / Footer */
.lvcm__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem .25rem 1rem;
    border: 0;
}
.lvcm__title {
    font-weight: 600;
    font-size: 1.05rem;
}
.lvcm__body {
    color: #6b7280;
    font-size: .9rem;
    padding: .25rem 1rem 1rem 1rem;
}
.lvcm__divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #9ca3af;
    font-weight: 600;
    font-size: .9rem;
    margin: .75rem 0 1rem;
}
.lvcm__divider::before,
.lvcm__divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e5e7eb;
}
.lvcm__footer {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: 0 1rem 1rem 1rem;
    border: 0;
}

/* Buttons (scoped) */
.lvcm-btn-muted {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: .5rem .9rem;
}
.lvcm-btn-muted:hover { background: #e5e7eb; }

.lvcm-btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #fff;
    border: 1px solid #ef4444;
    border-radius: .5rem;
    padding: .5rem .9rem;
}
.lvcm-btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Close icon button */
.lvcm-btn-icon {
    width: 2rem; height: 2rem; padding: 0; text-align: center;
    border-radius: .5rem; background: #f3f4f6; border: 1px solid #e5e7eb; color: #6b7280;
}
.lvcm-btn-icon:hover { background: #e5e7eb; color: #374151; }

.lvcm-search__input {
    position: relative;
    width: 100%;
}

.lvcm-search__icon {
    color: #9ca3af;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 1.125rem;
    height: 1.125rem;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.lvcm-search__control {
    padding-left: 0.75rem;
    padding-right: 2.5rem;
}
.lvcm-search__control--pill-overlay {
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    caret-color: #111827;
}

.lvcm-search__control--pill-overlay:focus {
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.lvcm-search__selection {
    position: absolute;
    left: 0.75rem;
    right: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}
.lvcm-search__clear {
    pointer-events: auto;
    margin-left: auto;
    background: transparent;
    border: 0;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 9999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lvcm-search__clear:hover,
.lvcm-search__clear:focus {
    background: #f3f4f6;
    color: #111827;
}

.lvcm-search__selected-name {
    color: #111827;
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.lvcm-search__pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    line-height: 1;
    white-space: nowrap;
}

.lvcm-search__pill--email {
    background: #f5f3ff;
    color: #6b21b6;
}

.lvcm-search__pill--phone {
    background: #e0f2fe;
    color: #0f172a;
}
.lvcm-search__icon--dropdown {
    left: auto;
    right: 0.75rem;
    color: #6b7280;
}

.lvcm-search__icon--dropdown-open {
    transform: translateY(-50%) rotate(180deg);
}

.lvcm-search__results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    z-index: 5;
}

.lvcm-search__list {
    border: 0;
}

.lvcm-search__result {
    gap: .75rem;
    padding: .75rem 1rem;
    border: 0;
}
.lvcm-search__result--selected {
    background: #eef2ff;
}


.lvcm-search__result + .lvcm-search__result {
    border-top: 1px solid #f3f4f6;
}

.lvcm-search__result:hover,
.lvcm-search__result:focus {
    background: #f8fafc;
}

.lvcm-search__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
}

.lvcm-search__text {
    min-width: 0;
}

.lvcm-search__row {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.lvcm-search__name {
    flex: 1 1 auto;
    font-weight: 600;
    color: #111827;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lvcm-search__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.lvcm-search__email {
    color: #6b21b6;
    background: #f5f3ff;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 9999px;
    padding: .35rem .6rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}

.lvcm-search__phone {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 9999px;
    padding: .35rem .65rem;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
}
.lvcm-search__status {
    padding-left: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lvcm-search__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lvcm-search__empty {
    padding: 1rem;
    text-align: center;
    font-size: .9rem;
}
.search-col {
    flex: 1 1 auto !important;
    max-width: none !important;
}
.search-col .input-group { width: 100%; }

/* Stepper variables & geometry */
.stepper {
    --node-size: 28px;      /* circle size */
    --line-thickness: 3px;  /* line height */
    --line-y: 18px;         /* vertical position of the line from top */
    --gutter: 6%;           /* empty space left/right of the track */
}

/* Base + progress lines */
.stepper-line,
.stepper-progress {
    position: absolute;
    top: var(--line-y);
    height: var(--line-thickness);
    left: var(--gutter);
    right: var(--gutter);
    border-radius: var(--line-thickness);
}
.stepper-progress { right: auto; transition: width .25s ease; }

/* Node sits centered on the line using translateY(-50%) */
.stepper ul { position: relative; }
.stepper-node {
    position: relative;
    top: var(--line-y);
    transform: translateY(-50%);
    width: var(--node-size);
    height: var(--node-size);
    margin: 0 auto;
    border-radius: 50%;
    background: #fff;
    border: 6px solid #e9ecef;     /* upcoming ring */
    display: flex;
    align-items: center;
    justify-content: center;
}
.stepper-node .dot {
    width: 8px; height: 8px; border-radius: 50%; background: #dee2e6;
}
.stepper-node .check {
    display: none; width: 16px; height: 16px; color: #fff;
}

/* Current step: purple ring + white/purple center (like your design) */
.stepper-node.current {
    border-color: #6f42c1;                           /* purple ring */
    box-shadow: 0 0 0 6px rgba(111,66,193,.12);      /* soft halo */
}
.stepper-node.current .dot { background: #6f42c1; }

/* Completed steps: solid green circle with white check */
.stepper-node.done {
    background: #28a745;  /* Bootstrap success */
    border: 0;
}
.stepper-node.done .dot { display: none; }
.stepper-node.done .check { display: block; }

.imp-dropzone{border:2px dashed #e5e7eb;border-radius:.75rem;padding:3rem 1rem;cursor:pointer;background:white;transition:border-color .2s,background-color .2s}
.imp-dropzone.imp-dragover{border-color:var(--imp-brand);background:var(--imp-brand-100)}
.imp-dz-icon{width:48px;height:48px;margin:0 auto 1rem;display:block}
.imp-btn-primary{background:var(--imp-brand);border-color:var(--imp-brand)}
.imp-btn-primary:hover{filter:brightness(.95)}
.imp-state-card{border-radius:.75rem}
.imp-state-error{background:#fff5f5;border:1px solid #feb2b2}
.imp-state-success{background:#fff;border:2px solid var(--imp-brand)}
.imp-file-icon{width:24px;height:24px;margin-right:.5rem}
.imp-icon-btn{width:40px;height:40px;border-radius:.5rem;display:flex;align-items:center;justify-content:center}
.imp-truncate{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (min-width:768px){ .imp-dropzone{padding:4rem 1rem} }

.search-overlay-spinner {
    position: absolute;
    top: 292%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}


.search-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #9b5de5; /* purple spinner color */
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.clv__header {
    display: block; /* remove flex */
    padding: 1rem 1.5rem;
}

.clv__title.heading-xs {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    margin: 0;
    width: 388px;
    height: 32px;
    color: #1D2939; /* Optional, to match screenshot text color */
}
.clv__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    margin-top: 4px;
    color: #475467; /* Gray/600 as per your specs */
}
.clv__label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #344054; /* Gray-700 */
    margin-bottom: 6px;
}

.clv__input {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #1D2939; /* Gray-900 */
    border: 1px solid #D0D5DD; /* Gray-300 */
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
}

.clv__input:focus {
    border-color: #4C3CB9;
    box-shadow: 0 0 0 1px #4C3CB9;
}
.clv__body {
    color: #6b7280;
    font-size: .9rem;
    padding: .25rem 1rem 1rem 1.5rem;
}
.clv__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    flex-wrap: wrap; /* allow wrapping on small screens */
}

.clv__btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;

    min-width: 230px;  /* ✅ required width */
    flex: 1 1 auto;    /* ✅ allows shrinking/growing */
    white-space: nowrap;
}

/* Outline (Cancel) */
.clv__btn-outline {
    background-color: #fff;
    color: #344054;
    border: 1px solid #D0D5DD;
}
.clv__btn-outline:hover {
    background-color: #F9FAFB;
}

/* Primary (Create list) */
.clv__btn-primary {
    background-color: #5F65F4;
    color: #fff;
    border: none;
}
.clv__btn-primary:hover {
    background-color: #4A4EE0;
}

/* --- Responsive: stack buttons on narrow screens --- */
@media (max-width: 520px) {
    .clv__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .clv__btn {
        width: 100%;      /* full width on small screens */
    }
}

@media (min-width: 992px) {
    .dsply-sm-none {
        display: none !important;
    }
}

.chatflow-textarea-container {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    width: 100%;
    transition: border-color 0.2s ease-in-out;
    position: relative;
}

.chatflow-textarea-container:focus-within {
    border-color: #ced4da;
    box-shadow: none;
}

.chatflow-textarea-container .chatflow-textarea-input {
    border: none;
    background: #ffffff;
    resize: vertical;
    padding: 0.375rem 0.75rem;
    min-height: 52px;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    box-shadow: none;
    width: 100%;
    display: block;
    flex: 1 1 auto;
    box-sizing: border-box;
    border-radius: 0;
}

.chatflow-textarea-container .chatflow-textarea-input:focus {
    outline: none;
    box-shadow: none;
}

.chatflow-textarea-container .chatflow-textarea-input::placeholder {
    color: #98a2b3;
}

.chatflow-textarea-toolbar {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 12px;
    border-top: 1px solid #f2f4f7;
    background: #f5f7fb;
}

.chatflow-toolbar-button {
    appearance: none;
    border: none;
    background: transparent;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475467;
    cursor: pointer;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.chatflow-toolbar-button:hover,
.chatflow-toolbar-button:focus {
    background: #e4e7ec;
    color: #344054;
    outline: none;
}

.chatflow-toolbar-icon {
    width: 14px;
    height: 14px;
}

.chatflow-textarea-container--compact .chatflow-textarea-input {
    min-height: 64px;
}
.chatflow-image-preview {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid #f2f4f7;
    background: #ffffff;
}

.chatflow-image-preview--visible {
    display: flex;
}

.chatflow-textarea-container--has-preview .chatflow-image-preview {
    border-top: 1px solid #f2f4f7;
}


.chatflow-image-preview__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.chatflow-image-preview__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.chatflow-image-preview__image-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e4e7ec;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.chatflow-image-preview__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.chatflow-image-preview__meta {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    color: #344054;
    font-size: 0.875rem;
    line-height: 1.3;
}

.chatflow-image-preview__name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chatflow-image-preview__remove {
    appearance: none;
    border: none;
    background: #fef3f2;
    color: #b42318;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.chatflow-image-preview__remove:hover,
.chatflow-image-preview__remove:focus {
    background: #fecdca;
    color: #912018;
    outline: none;
}

.chatflow-image-input {
    display: none !important;
}
.chatflow-file-input {
    display: none !important;
}

.chatflow-file-preview {
    display: none;
    margin-top: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chatflow-file-preview--visible {
    display: block;
}

.chatflow-textarea-container--has-attachments .chatflow-file-preview {
    display: block;
}

.chatflow-file-preview__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
}

.chatflow-file-preview__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.chatflow-file-preview__item:hover,
.chatflow-file-preview__item:focus-within {
    background-color: #eef5ff;
    border-color: #cfe2ff;
}

.chatflow-file-preview__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}

.chatflow-file-preview__icon {
    font-size: 1.25rem;
    color: #0d6efd;
}

.chatflow-file-preview__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.chatflow-file-preview__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2d3d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chatflow-file-preview__size {
    font-size: 0.85rem;
    color: #6c757d;
}

.chatflow-file-preview__remove {
    border: none;
    background: transparent;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.chatflow-file-preview__remove:hover,
.chatflow-file-preview__remove:focus {
    color: #fff;
    background-color: #d9534f;
}

.chatflow-file-preview__viewer {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    padding: 2rem;
}

.chatflow-file-preview__viewer--visible {
    display: flex;
}

.chatflow-file-preview__viewer-content {
    background-color: #fff;
    width: min(90vw, 800px);
    max-height: 90vh;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.chatflow-file-preview__viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.chatflow-file-preview__viewer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2d3d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chatflow-file-preview__viewer-close {
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.chatflow-file-preview__viewer-close:hover,
.chatflow-file-preview__viewer-close:focus {
    color: #fff;
    background-color: #0d6efd;
}

.chatflow-file-preview__viewer-body {
    padding: 1rem;
    overflow: auto;
    background-color: #fff;
    flex: 1;
}

.chatflow-file-preview__viewer-embed {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
}

.chatflow-file-preview__viewer-text {
    font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.chatflow-file-preview__viewer-media {
    width: 100%;
    max-height: 70vh;
    border-radius: 0.5rem;
    background-color: #000;
}

.chatflow-file-preview__viewer-generic {
    font-size: 0.95rem;
    color: #1f2d3d;
    margin-bottom: 1rem;
}

.chatflow-file-preview__viewer-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: #0d6efd;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.chatflow-file-preview__viewer-download:hover,
.chatflow-file-preview__viewer-download:focus {
    background-color: #0b5ed7;
    color: #fff;
}
.chatflow-emoji-picker {
    position: absolute;
    bottom: 56px;
    right: 12px;
    width: 320px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 30;
}
.emoji-picker-dropdown--new-message .chatflow-emoji-picker {
    bottom: 194px;
    right: 650px;
}

@media (max-width: 991.98px) {
    .emoji-picker-dropdown--new-message .chatflow-emoji-picker {
        bottom: 194px;
        right: 400px;
    }
}

@media (max-width: 767.98px) {
    .emoji-picker-dropdown--new-message .chatflow-emoji-picker {
        bottom: 226px;
        right: 430px;
    }
}

@media (max-width: 575.98px) {
    .emoji-picker-dropdown--new-message .chatflow-emoji-picker {
        bottom: 100px;
        right: 24px;
    }
}
.emoji-picker-dropdown--sms-blast .chatflow-emoji-picker {
    bottom: 164px;
    right: 800px;
}

@media (max-width: 991.98px) {
    .emoji-picker-dropdown--sms-blast .chatflow-emoji-picker {
        bottom: 194px;
        right: 400px;
    }
}

@media (max-width: 767.98px) {
    .emoji-picker-dropdown--sms-blast .chatflow-emoji-picker {
        bottom: 226px;
        right: 430px;
    }
}

@media (max-width: 575.98px) {
    .emoji-picker-dropdown--sms-blast .chatflow-emoji-picker {
        bottom: 100px;
        right: 24px;
    }
}
.chatflow-emoji-picker--open {
    display: flex;
}

.chatflow-emoji-picker-header {
    padding: 12px 16px 0 16px;
}

.chatflow-emoji-picker-title {
    font-size: 12px;
    font-weight: 600;
    color: #475467;
    letter-spacing: 0.05em;
}

.chatflow-emoji-categories {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 12px 12px;
    border-bottom: 1px solid #f2f4f7;
    background: #f9fafb;
}

.chatflow-emoji-category-button {
    border: none;
    background: transparent;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
    font-size: 18px;
}

.chatflow-emoji-category-button:hover,
.chatflow-emoji-category-button:focus {
    background: #eef2ff;
    outline: none;
}

.chatflow-emoji-category-button.is-active {
    background: #eef2ff;
}

.chatflow-emoji-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.chatflow-emoji-button {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.chatflow-emoji-button:hover,
.chatflow-emoji-button:focus {
    background: #f2f4f7;
    outline: none;
    transform: scale(1.1);
}
.chatflow-followup-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.chatflow-followup-number {
    flex: 0 0 160px;
    min-width: 140px;
}

.chatflow-followup-message {
    flex: 1 1 320px;
    min-width: 260px;
}

.chatflow-followup-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: flex-start;
}

.chatflow-followup-actions .btn {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
}

@media (max-width: 767.98px) {
    .chatflow-followup-number,
    .chatflow-followup-message,
    .chatflow-followup-actions {
        flex: 1 1 100%;
    }

    .chatflow-followup-actions {
        justify-content: flex-end;
    }
}


/* Styles for Inbox*/
.pil-btns {
    /* Inactive State: Overrides Bootstrap's .btn-light */
    background-color: #e6e8ed;
    color: #363642;
    border-color: #e6e8ed;
    box-shadow: none;
    text-decoration: none;
    padding: .0rem .5rem !important; /* Ensure the padding is applied */
    height: 2rem;
}

.pil-btns:hover {
    /* Hover State: A slightly darker background */
    background-color: #d1d5db; /* A slightly darker shade of the inactive background */
    color: #363642;
    border-color: #d1d5db;
}
.pil-btns:focus {
    box-shadow: none;
}

.pil-btns.active-pil {
    /* Active State (When is_active is true) */
    background-color: #2c3b60;
    border-color: #2c3b60;
    color: white;
}

.pil-btns.active-pil:hover {
    /* Active & Hovered State */
    background-color: #1f2a48; /* Slightly darker shade of the active color */
    border-color: #1f2a48;
    color: white;
}

.filter-icon {
    background-color: #e6e8ed;
    color: #363642;
    border-color: #e6e8ed;
    box-shadow: none;
    text-decoration: none;
    height: 2rem !important;
    width: 2rem;
    padding: 0 4px !important;
}


/* 1. Outer Container: Fixes Bar Width and Unified Border/Focus */
.search-container {
    /* Set full width */
    width: 100%;
    /* The custom styling from the design */
    background-color: white;
    border: 1px solid #dcdfe6; /* Inactive Border Color */
    border-radius: 9px;
    padding: 0; /* Important: Move padding from container to inner elements */

    /* Flexbox for alignment */
    display: flex;
    align-items: center;

    /* Positioning for loader/clear button */
    position: relative;
    box-shadow: none;
}

/* 2. Unified Focus State (Applies to the whole bar) */
.search-container:focus-within {
    border-color: #7c73e6; /* Purple Border Color */
    box-shadow: 0 0 0 0.2rem rgba(124, 115, 230, .25); /* Purple Focus Glow */
}

/* 3. Search Icon Wrapper: Fixes Border Visibility */
.search-icon {
    /* Ensures no border is visible around the icon */
    border: none;
    background-color: transparent;
    padding-left: 1rem; /* Padding to move icon from the left edge of the pill */
    padding-right: 0.25rem; /* Small space between icon and text */
    /* Ensure icon color is right (e.g., if SVG path color is overwritten) */
    color: #1D2939;

    /* Vertical alignment fix */
    display: flex;
    align-items: center;
}

/* 4. Search Input Field: Fixes Cursor Cutting and Spacing */
.search-container .search-input-field {
    /* Overrides Bootstrap defaults */
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;

    /* Spacing and Flexing */
    flex-grow: 1;
    width: 100%; /* Ensure it uses max width */

    /* Cursor Cutting Fix: Increase horizontal padding */
    /* Adjust top/bottom padding for height if needed, but flex should handle it */
    padding: 0.6rem 0.5rem 0.6rem 0.5rem;
    line-height: 1.5; /* Ensure a standard line height */
}

/* 5. Clear Search Button: Positioning */
.clear-search-btn {
    background: none;
    border: none;
    padding: 0;
    /* Absolute position is no longer needed since it's now a flex item */
    margin-right: 1rem; /* Space it from the right edge of the pill */
    color: #6c757d;
    cursor: pointer;
}
.notification-icon-inbox {
    position: absolute;
    right: -6px;
    top: -8px;
    background: #D92D20;
    border-radius: 14px;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
/* Styles for Inbox*/

/* Saved Replies */
.saved-replies-card {
    position: relative;
}

.saved-reply-table-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.saved-reply-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.saved-reply-row {
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    background: #fbfdff;
}

.saved-reply-form {
    display: flex;
    flex-wrap: wrap;
}

.saved-reply-title {
    min-height: 44px;
}

.saved-reply-input-wrapper {
    position: relative;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.35rem 0.35rem 0.15rem;
    background: #fff;
}

.saved-reply-textarea {
    border: none;
    resize: vertical;
    min-height: 48px;
    max-height: 320px;
    box-shadow: none;
    padding: 0.35rem 0.35rem 0;
    width: 100%;
}

.saved-reply-textarea:focus {
    outline: none;
    box-shadow: none;
}

.saved-reply-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
    padding-top: 0.25rem;
}

.saved-reply-toolbar .btn-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: transparent;
}

.saved-reply-attachments {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.saved-reply-attachment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
}

.saved-reply-attachment-meta a {
    word-break: break-all;
}

.saved-reply-remove {
    font-size: 0.875rem;
    color: #d9534f;
    margin: 0;
    white-space: nowrap;
}

.saved-reply-upload-list {
    line-height: 1.4;
}

.saved-reply-actions .btn {
    min-width: 44px;
}

.saved-reply-delete .btn {
    min-width: 44px;
}

.checking-cache-version{
    float: left;
}
