:root {
    --bs-scrollbar-size: 14px;
}

/* Style for error messages */
.error {
    color: red;
    font-size: 12px;
}

/* Style for invalid fields */
.error-field {
    border: 1px solid red;
}

.select2-container--default .select2-selection--multiple {
    min-height: 44px;
    background-color: #F9F9F9 !important;
    border-color: #F9F9F9 !important;
    color: #4B5675;
    transition: color .2s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #F1F1F4 !important;
    border: 0 !important;
    border-radius: .45rem !important;
    padding-left: 15px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: 0 !important;
}

.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    border-radius: 10px;
    /* Optional: for rounded corners */
}

.image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.updateLeadTags,
.open_dialar_btn {
    cursor: pointer;
}

.max-width-50 {
    max-width: 50px;
}

.aside {
    overflow: auto;
}

#map {
    height: calc(100vh - 150px);
    width: 100%;
}

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

textarea.expanding-input {
    overflow: hidden;
    resize: none;
    min-height: 50px;
    /* Adjust based on your design */
}









/* AUDIO PLAYER ON LEADS DETAIL */

.call-audio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.waveform {
    flex-grow: 1;
    height: 128px;
}

.waveform-controls {
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.waveform-button {
    padding: 5px 10px;
    border: none;
    background-color: #5a5a5a;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.waveform-button:hover {
    background-color: #056ee9;
}

.play-speed-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.play-speed-controls span {
    margin-bottom: 5px;
    color: #5a5a5a;
    font-weight: bold;
}

.speed-buttons {
    display: flex;
    gap: 5px;
}

/* END AUDIO PLAYER ON LEADS DETAIL */


/* GALLERY MODAL */
.gallery-modal {
    width: calc(100% - 200px);
    max-width: none;
    height: calc(100% - 200px);
    margin: 100px;
}

.modal-content {
    height: 100%;
    border: none;
    border-radius: 0;
}

.modal-body {
    height: 100%;
    overflow-y: auto;
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background-color: #f0f0f0;
    /* Placeholder color for loading images */
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* END GALLERY MODAL */

.w-80 {
    width: 80%;
}

.w-90 {
    width: 90%;
}

.scripts-scroll {
    max-height: 500px;
    overflow: auto;
}

@media (max-width: 991px) {
    .scripts-scroll {
        max-height: 400px;
        margin-top: 20px;
    }
}

.map-info-box{
    background-color: white;
    padding:20px;
}

.save-box-top{
top: -10px !important;
}


.sortable-row:hover {
    background-color: #f5f8fa; /* Light grey-blue, adjust as needed */
    cursor: pointer;
}