/* place after bootstrap.css */
.table-fixed {
    table-layout: fixed;
    width: 100%;
}

.table-fixed thead th {
    white-space: nowrap; /*text stays on one line*/
    overflow: hidden; /*extra text is hidden if too long*/
    text-overflow: ellipsis; /*adds … if text is too long*/
}

/* make first column narrow and center the checkbox */
.table-fixed thead th:first-child,
.table-fixed tbody th:first-child {
    width: 40px; /* adjust px as needed */
    text-align: center; /*centers the checkbox left–right*/
    vertical-align: middle; /*centers the checkbox top–bottom*/
}

/* ensure checkbox itself doesn't cause padding growth */
.table-fixed .custom-control {
    padding-left: 0 !important;
    margin: 0 auto; /*centers the checkbox inside the cell*/
    display: inline-block; /*stops it from taking the full width*/
}

.pe-none {
    pointer-events: none !important;
}

.select2 .selection {
    width: 100% !important;
}

/* Single select */
select.select2.is-invalid + .select2-container .select2-selection--single {
    border-color: #dc3545 !important;
}

/**** Start handle click icon and arrow *****/
/* Make space for clear (X) and arrow */
.select2-container--default .select2-selection--single {
    /*padding-right: 45px;*/
}

/* Clear (X) button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    right: 4px;
    z-index: 2;
    cursor: pointer;
}

/* Dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 6px;
}

/* RTL support (Arabic) */
[dir="rtl"] .select2-container--default .select2-selection--single {
    padding-left: 0;
    padding-right: initial;
}

[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__clear {
    left: 30px;
    right: auto;
}

[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 6px;
    right: auto;
}
/**** End handle click icon and arrow *****/

.appended-card-item {
    background-color: rgba(21, 97, 203, 0.1);
    height: auto;
    padding: 20px;
}

.add-new-card-item {
    cursor: pointer;
}

.remove-card-item-btn {
    font-size: 30px;
    margin-top: 35px;
    cursor: pointer
}

.google-map {
    border: 1px solid #ddd;
    border-radius: 8px;
}

.center-vertically {
    display: flex;
    align-items: center;
    min-height: 80px;
}

.coupon-items-wrapper,
.autocomplete-items-wrapper {
    height: 150px;
    overflow: auto;
}

.autocomplete-card {
    padding: 10px;
    background-color: #f5f5f5;
}

.table-scroll-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

/************ start upload **************/
.upload-item, .old-item {
    position: relative;
}

.upload-item .remove-new, .old-item .remove-old {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.upload-item:hover .remove-new, .old-item:hover .remove-old {
    opacity: 1;
}

.upload-img {
    max-height: 150px;
    object-fit: contain;
    width: 100%;
    background-color: #f8f9fa;
}

.file-count {
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Different border colors for different field types */
.preview.images .upload-item {
    border-left: 3px solid #3498db;
}

.photos .add-file-container {
    padding: 15px 50px;
    font-size: 18px;
    border-radius: 15px;
    border: 2px dashed #0073b690;
    margin-top: 30px;
    cursor: pointer;
}

.items .img .upload-img {
    max-height: unset;
}

.upload-files::before {
    background-color: unset;
}

.upload-files .items {
    margin-bottom: unset;
}

/********** end upload ***************/

.appended-card-item {
    position: relative;
}

.appended-card-item .remove-card-item-btn.absolute {
    position: absolute;
    top: 10px;
    right: 93%;
    margin-top: 0;
}

.rate-section span.checked {
    color: orange;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

