.form-control-required {
    border-bottom: 1px solid red !important;
}

.slim-select-list-required + .ss-main {
    border-bottom: 1px solid red !important;
    /*background-color: transparent !important;*/ /* Optional: for a cleaner look */
    /*box-shadow: none !important;*/ /* Remove Bootstrap or browser default focus */
}

.select-required + .ss-main {
    border-bottom: 1px solid red !important;
    /*background-color: transparent !important;*/ /* Optional: for a cleaner look */
    /*box-shadow: none !important;*/ /* Remove Bootstrap or browser default focus */
}

.dropdown-menu.show {
    border: 1px solid lightgray;
}

a.tooltiplink {
    position: relative;
}

    a.tooltiplink:hover::after {
        content: attr(data-title);
        background-color: black;
        color: #fff;
        padding: 8px;
        border-radius: 4px;
        font-size: 14px;
        line-height: 14px;
        display: block;
        position: absolute;
        top: 0%;
        left: 50%;
        transform: translateX(-100%);
        white-space: nowrap;
        z-index: 1070;
        margin-left: -15px;
    }
/* Example for custom switch */
.check-form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-switch {
    width: 60px;
    height: 32px;
    appearance: none;
    background-color: #ccc;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    outline: none;
}

    .custom-switch:checked {
        background-color: #5f61e6;
    }

    .custom-switch::before {
        content: '';
        width: 26px;
        height: 26px;
        background: white;
        position: absolute;
        top: 2px;
        left: 2px;
        border-radius: 50%;
        transition: 0.3s;
    }

    .custom-switch:checked::before {
        transform: translateX(30px);
    }

.ss-main {
    font-size: 15px !important;
    /* min-height:40px !important; */
    border: 1px solid lightgray !important;
    padding: 8px !important;
}

.ss-placeholder {
    color: #384551 !important;
}

.ss-main .ss-values {
    font-size: 15px !important;
}

.ss-content .ss-list .ss-option.ss-highlighted, .ss-content .ss-list .ss-option:not(.ss-disabled).ss-selected {
    background-color: color-mix(in sRGB, #fff 84%, #696cff) !important;
    color: #696cff !important;
}

.ss-option:hover {
    background-color: color-mix(in sRGB, #fff 84%, #696cff) !important;
    color: #696cff !important;
}

.ss-value {
    background-color: color-mix(in sRGB, #fff 84%, #696cff) !important;
    color: #696cff !important;
}

.ss-value-text {
    color: #696cff !important;
    font-size: 14px !important;
}

.ss-value-delete {
    color: #696cff !important;
}

.ss-main .ss-values .ss-value .ss-value-delete {
    border-left-color: #696cff !important;
}

    .ss-main .ss-values .ss-value .ss-value-delete svg path {
        stroke: #ff3e1d !important;
    }

.modal-body-Hide {
    display: none;
}

.action-disabled {
    pointer-events: none;
    cursor: default;
    color: lightgray !important;
}

.offcanvas-body {
    height: 63vh; /* default for mobile */
    overflow-y: auto;
}

.offcanvas-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

.btn-close {
    color: white !important;
    filter: invert(1); /* makes icon white if needed */
}

.tag-already-added-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.2em 0.5em;
    font-weight: 600;
    font-size: 0.9rem;
    color: #665500;
    background: linear-gradient(45deg, #fff176, #fbc02d);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.4);
    user-select: none;
    transition: filter 0.3s ease;
}

.price-badge {
    background: linear-gradient(45deg, #f7971e, #ff4e50);
    color: white;
    font-weight: 600;
    padding: 0.2em 0.5em;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.4);
    user-select: none;
    cursor: default;
    transition: filter 0.3s ease;
}

.brokerage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.2em 0.5em;
    font-weight: 600;
    font-size: 0.9rem;
    color: #665500;
    background: linear-gradient(45deg, #696cff, #03c3ec);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.4);
    user-select: none;
    transition: filter 0.3s ease;
}

.days-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.2em 0.5em;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    background: linear-gradient(45deg, #ffffff, #71dd37);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.4);
    user-select: none;
    transition: filter 0.3s ease;
}

.props-list-bg {
    /*display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.2em 0.5em;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;*/
    background: linear-gradient(135deg, #147E8C, #0C5F6A);
    /*border-radius: 5px;
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.4);
    user-select: none;
    transition: filter 0.3s ease;*/
}

.form-label {
    font-size: 15px !important;
}

.fullwidthTextArea {
    width: 100% !important;
    height: 120px !important;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 768px) {
    .offcanvas-body {
        height: 75vh;
        overflow-y: auto;
    }
}

@media (min-width: 1200px) {
    .offcanvas-body {
        height: 75vh;
        overflow-y: auto;
    }
}



/* Pagination container */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /*margin-top: 30px;
    padding: 10px 0;*/
}


.pagination .page-link {
    border: 1px solid var(--bs-pagination-active-border-color) !important;
    margin-left:4px !important;
}

#loaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.7); /* semi-transparent white */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* ensure it’s above all other content */
}

.spinner img {
    width: 40px;
    height: 40px;
}

/* Blur effect for the list */
.blurred {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}


.page-item .page-link {
    border-radius: 0.375rem !important;
}
.dataTables_processing {
    display: none;
}

.pagination {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}


/* Filter trigger */
.filter-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
}

/* Fullscreen filter panel */
.filter-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-in-out;
}

.filter-panel.open {
    right: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
}

#closeFiltersBtn {
    background: none;
    border: none;
    font-size: 24px;
}

.clear-btn {
    flex: 1;
    padding: 12px;
    background-color: #dc3545;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 5px;
}



/* Body: Two columns */
.filter-body {
    display: flex;
    flex: 1;
    overflow-y: auto;
}

.filter-categories {
    width: 40%;
    max-width: 200px;
    border-right: 1px solid #eee;
    background: #f8f8f8;
    overflow-y: auto;
}

.filter-categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-categories li {
    padding: 5px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.filter-categories li.active {
    background-color: #e0e0e0;
    font-weight: bold;
}

.filter-options-label {
    margin-top:4px;
    font-size:14px !important;
}

.filter-options {
    width: 60%;
    padding: 10px;
    overflow-y: auto;
    padding-top: 2px;
}

.options-panel {
    display: none;
}

.options-panel.active {
    display: block;
}

/* Sticky footer */
.filter-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fff;
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.apply-btn {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 5px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .filter-body {
        flex-direction: row;
    }

    .filter-categories {
        width: 45%;
    }

    .filter-options {
        width: 55%;
    }

    .filter-panel {
        width: 100%; /* full screen width on mobiles */
    }
}


.btn-close-white {
    color:white !important;
}

.ss-search input {
    font-size: 16px !important;
}

.green-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--bs-success);
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}