.select2-selection__clear{
    z-index: 9999999;
    font-size: 20px;

}

.danger, .error{
    color: red;
}

label.error {
    position: absolute;
}


.shopify_active{
    color: #96bf48;
}

/* Select2 in input-group fix */
.input-group > span.select2 {
    flex: 1;
}



/*-------------------------------------------------------*/
/*               Files section accordions                */
/*-------------------------------------------------------*/

.object-documents {
    position: relative;
}
.object-documents .btn {
    border-radius: 0;
    width: auto;
}
.object-documents input {
    position: absolute;
    top: -80px;
    z-index: -9999;
    opacity: 0 !important;
}
.object-documents-menu {
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}
.object-documents-content {
    background-color: #f4f4f4;
    border-radius: 0 0 5px 5px;
}
.object-documents-content > div:nth-child(2n) {
    background-color: #fafafa;
}
.object-documents-content > div:nth-child(2n) button.dropdown-toggle {
    opacity: 0.8;
}.object-documents-content .box-text {
    overflow: hidden;
    margin-right: 12px;
}
.object-documents-content .box-text p {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 20px;
    white-space: nowrap;
}
.object-documents-content > div:nth-child(odd) .preview {
    background-color: #c9c9c9;
}
.object-documents-content > div:nth-child(even) .preview {
    background-color: #e7e7e7;
}
.object-documents-content .preview img {
    max-height: 38px;
    opacity: 0.8;
}



/*-------------------------------------------------------*/
/*                  Files section modal                  */
/*-------------------------------------------------------*/

.fileBrowserModal .modal-content {
    background: #444;
    color: #fff;
}

.fileBrowserModal .modal-header {
    border-bottom: 2px solid #888;
}

.fileBrowserModal .modal-footer {
    border-top: 2px solid #888;
}

body.modal-open {
    position: fixed;
}



/*-------------------------------------------------------*/
/*                Files section carousel                 */
/*-------------------------------------------------------*/

.fileBrowserCarousel,
.fileBrowserCarousel .carousel-inner,
.fileBrowserCarousel .carousel-item {
    height: 100%;
    width: 100%;
}

.fileBrowserCarousel .carousel-item {
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
}

.fileBrowserCarousel .carousel-item.active,
.fileBrowserCarousel .carousel-item-start,
.fileBrowserCarousel .carousel-item-next,
.fileBrowserCarousel .carousel-item-prev {
    display: flex;
}

.fileBrowserCarousel .carousel-item img {
    max-width: 100%;
    max-height: 100%;
}

.fileBrowserCarousel .modal-content {
    background-color: #333;
    color: #fff;
}



/*-------------------------------------------------------*/
/*                 Datatables list view                  */
/*-------------------------------------------------------*/


/* General */
table.dataTable tbody td {
    vertical-align: middle;
}
#basic-datatable div.action-cell .ri-pencil-line,
#basic-datatable div.action-cell .ri-file-copy-2-line,
#basic-datatable div.action-cell .ri-delete-bin-line,
#basic-datatable div.action-cell .fa-trash {
    padding: 0 5px;
}


/* Product */
.datatables-row > td:first-child {
    cursor: pointer;
}
.datatables-row:hover {
    opacity: 1;
}


/* B2B */
.add-product-form {
    width: 120px;
}
.add-product-form input,
.add-product-form button {
    width: 100%;
}
.datatables-b2b-col {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.datatables-b2b-col:first-of-type {
    padding-left: 0px !important;
}
.datatables-b2b-col:last-of-type {
    padding-right: 0px !important;
}
tr.odd .datatables-b2b-col:first-of-type {
    border-width: 1px 0 1px 1px;
    border-style: solid;
    border-color: inherit;
}
tr.odd .datatables-b2b-col:last-of-type {
    border-width: 1px 1px 1px 0;
    border-style: solid;
    border-color: inherit;
}



/*-------------------------------------------------------*/
/*                    Calendar & Map                     */
/*-------------------------------------------------------*/

.erp-legend .legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
.calendar-legend .color-square {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
}
.map-legend .legend-item {
    font-size: 20px;
}
.map-legend .color-square {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    border-radius: 3px;
}
.erp-map-container {
    height: 83vh;
    margin-bottom: 0;
}



/*-------------------------------------------------------*/
/*                         Misc                          */
/*-------------------------------------------------------*/

span.form-label {
    font-weight: 600;
    display: inline;
}

/* Icons */
.custom-icon {
    height: 24px;
    display: inline-block;
    /*
    background-size: 20px 20px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    */
}

/* Offer product table compact */
#offer_items_table tbody td {
    padding-top: 2px;
    padding-bottom: 2px;
}

/* Different deverp navbar */
.navbar-deverp {
    background: #aa152b;
}

.navbar-deverp .nav-user {
    background: #90081c;
    border-color: #90081c;
}

.navbar-deverp i,
.navbar-deverp .nav-user span {
    color: #ddd;
}

/* Hide number input arrows */
input.hide-arrows::-webkit-outer-spin-button,
input.hide-arrows::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input.hide-arrows[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Catalog cart button mobile */
.fixed-cart-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 75px;
    height: 75px;
    padding-top: 10px;
}

#cart_count_mobile {
    position: absolute;
    top: 26%;
    left: 52%;
    transform: translateX(-50%);
    font-weight: bold;
}

/* Partner dashboard carousel arrows */
.carousel-control-next, .carousel-control-prev {
    width: 2%;
    max-height: 60px;
    background-color: #ddd;
    top: 50%;
    transform: translateY(-50%);
}

/* Navbar full width */
.navbar-custom {
    left: 0;
    z-index: 9999;
}

/* Move toast under navbar */
.jq-toast-wrap.top-right {
    top: 100px;
}

/* Fix select2 taking up all space inside bootstrap input-group */
.input-group {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.input-group .select2-container {
    flex-grow: 1; /* Allow Select2 to take up space */
    min-width: 0; /* Prevent Select2 from forcing the button down */
}

.input-group .select2-selection {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-group .btn {
    flex-shrink: 0; /* Prevent the button from shrinking */
}

.custom-dropdown {
    width: 500px !important; /* Or whatever width you want */
}

/* Highlight contracts in prosumer list that are awaiting ATR */
.table-striped > tbody > tr.prosumer-phase-on-hold:nth-of-type(2n+1)>*,
.table-striped > tbody > tr.prosumer-phase-on-hold:nth-of-type(2n)>* {
    --ct-table-accent-bg: rgba(255, 0, 0, 0.1) !important;
    background-color: rgba(255, 0, 0, 0.1) !important;
}