/*.select2-selection--multiple, .tabulator-headers {*/
/*    height: max-content !important;*/
/*}*/

/*.tabulator-col {*/
/*    height: 100% !important;*/
/*}*/

/*.select2-selection__rendered {*/
/*    display: flex !important;*/
/*    flex-wrap: wrap !important;*/
/*}*/

/*.tabulator-headers .select2-search--inline {*/
/*    position: absolute !important;*/
/*}*/

.tabulator-headers, .tabulator-header, .tabulator-col {
    height: max-content !important;
}

.tabulator .dropdown-item:not(.btn):hover {
    background: #fd5f54 !important;
    color: white;
}

.tabulator .dropdown-item:not(.btn) {
    margin: 0.25rem 0  !important;
}


.collapse-row {
    background: #fff !important;
    border: 1px solid  #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    padding: 1rem 1.5rem !important;
    direction: rtl !important; /* For right-to-left alignment */
    width: 100% !important;
    margin: 8px 0 0 0 !important;
}

.collapse-field-row {
    position: relative;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #6666667f !important;
    padding: 0.5rem 0 !important;
    font-size: 1rem !important;
    gap: 8px;
    border-radius: 12px;
    height: 100%;
}

.collapse-field-cols:last-child .collapse-field-row,.collapse-field-row:has(.collapse-row-selection) {
    border-bottom: none !important; /* Remove border for the last row */
}

.collapse-field-row-title {
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #ff5a5f !important; /* Match your website's red color */
    width: 100px;
    text-wrap: pretty;
    padding: 4px;
    border-radius: 8px;
    text-align: center;
}
.collapse-action-btns .btn{
    padding-top: 11px;
}
.collapse-edit-btn {
    border: none;
    background: transparent;
    outline: none;
    top: 8px;
    left: 8px;
    color: #5c7677;
}
.field-editor {
    resize: vertical;
}

.collapse-field-row-value-editor:focus{
    border: 1px solid #3d4f50;
}

.collapse-field-row-value button , .collapse-field-row-value .btn {
    width: fit-content;
}
.collapse-field-row-value {
    flex: 1 !important;
    text-wrap: pretty;
    flex-wrap: wrap;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}


.collapse-field-row-value * {
    text-wrap: pretty;
}

.tabulator:has(.tabulator-responsive-collapse) .tabulator-header{
    border-bottom: none !important;
}
.tabulator-header {
    border-top: none !important;
}

.tabulator-table:has(.tabulator-responsive-collapse){
    width: 100% !important;
}
.tabulator-row:has(.tabulator-responsive-collapse){
    border: none !important;
    background: transparent !important;
}
.tabulator-row-even:has(.tabulator-responsive-collapse) .collapse-row{
    background: #e9ecef !important;
}

.tabulator-responsive-collapse {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#tabulatorFilterModal .tabulator-header-filter .select2-selection {
    border: 1px solid #ced4da !important;
}
#tabulatorFilterModal .tabulator-header-filter .select2-container {
    min-width: 100% !important;
}
#tabulatorFilterModal .tabulator-header-filter input {
    padding: .375rem .75rem;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    flex: 1;
}
#openFilterModalBtn {
    display: none;
}
.current-filter-badge-dismiss {
    margin-left: 5px;
    cursor: pointer;
    font-size: 9.5px;
}
.current-filter-badge,.tabulator-dismiss-filters-btn,.tabulator-founded-count-btn {
    font-size: 13px;
    font-weight: 500;
    padding-top: 7px;
}

.tabulator-dismiss-filters-btn,.tabulator-founded-count-btn {
    font-weight: 600 !important;
}

.current-filter-badge,.tabulator-dismiss-filters-btn{
    cursor: pointer;
}

.collapse-current-filters{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px 0;
}

.add-filter-field {
    height: 40px !important;
    width: 40px !important;
    padding-top: 9px !important;
    border-radius: 7px !important;
    margin-right: 5px !important;
}

.filter-field-header {
    display: flex;
    justify-content: space-between;
}

.input-group .select2-container{
    flex: 1;
}

.filter-field-container {
    border: 2px solid lightgray;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 5px;
}

.input-group:has(.filter-price-from){
    margin-bottom: 5px;
}

.form-check:has(.collapse-select-all){
    margin: 0 10px;
}

.tabulator-progress {
    position: relative;
    width: 100%;
    min-height: 100%;
}
.tabulator-progress-legend {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    align-content: center;
    font-size: 14px;
    margin-top: 2px;
}

.tabulator-progress:not(.tabulator-row-even .tabulator-progress){
    background: var(--bs-progress-bg);
}
.tabulator-row-even .tabulator-progress{
    background: #fff;
}
.tabulator-cell {
    cursor: default;
}
.filter-field-title {
    color: #5c7677;
    font-weight: 500;
    font-size: 15px;
}

.tbl-mgr-filters-badge{
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: start;
    padding: 0 8px;
}
.tbl-mgr-tabulator-container{
    position: relative;
    min-height: 200px;
    overflow: auto !important;
    padding-top: 0 !important;
}
.tbl-mgr-tabulator-container .tabulator-tableholder{
    overflow: visible !important;
    min-width: max-content !important;
}

.tbl-mgr-tabulator-container .tabulator-header{
    position: sticky !important;
    min-width: max-content !important;
    top: 0 !important;
    z-index: 1;
    overflow-x: scroll !important;
    scrollbar-width: none !important;
}
.tbl-mgr-tabulator-container .tabulator-col-title {
    text-align: center;
}
.tbl-mgr-tabulator-container .tabulator-header::-webkit-scrollbar {
    width: 0; /* Chrome, Safari */
    background: transparent;
}
.tbl-mgr-tabulator-container .tabulator-cell .dropdown-menu::-webkit-scrollbar{
    width: 0; /* Chrome, Safari */
    background: transparent;
}
.tbl-mgr-tabulator-container .tabulator-cell .dropdown-menu{
    overflow: scroll;
    scrollbar-width: none;
}
.tbl-mgr-container .tabulator-table:has(.tabulator-responsive-collapse){
    padding-bottom: 80px !important;
}

.tbl-mgr-container .custom-popup-body{
    width: 100% !important;
}
.tbl-mgr-container{
    border: 2px solid #fd7f76 !important;
    border-radius: 12px;
    padding: 8px 0;
    height: 650px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.custom-actions:not(.custom-actions:has(*)),.collapse-action-btns:not(.collapse-action-btns:has(*)){
    display: none !important;
}

.tbl-mgr-container  .collapse-action-btns,.tbl-mgr-container .custom-actions{
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: start;
}

.tbl-mgr-container .tbl-mgr-tabulator-container{
    flex: 1;
}

.tabulator-actions{
    display: none;
}


.tbl-mgr-tabulator-manager-header {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
}

.tbl-mgr-tabulator-manager-header .tabulator-manager-actions{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
}

@media (max-width: 375px ) {
    .tbl-mgr-tabulator-manager-header .tabulator-manager-actions{
        flex-direction: column;
        align-items: start;
        justify-content: center;
    }
}


.tabulator-manager-actions{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}


.tbl-mgr-loading-indicator {
    border: 5px solid rgb(255, 255, 255);
    border-radius: 50%;
    border-top: 4px solid var(--head-color-link,#fd5f54);
    width: 50px;
    height: 50px;
    animation: spin 0.5s linear infinite;
}

@media (max-width: 425px) {
    .tbl-mgr-loading-indicator {
        width: 35px;
        height: 35px;
    }
}

.tbl-mgr-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--head-color,#5c7677);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.current-sort-badge{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--head-color,#5c7677);
    border: 1px solid var(--head-color,#5c7677) !important;
    padding: 7px 6px 5px 6px;
}
.current-sort-badge .sort-by{
    color: var(--main-color,#fd5f54)
}
.current-sort-badge .sorter-icon{
    display: none;
}

@media (max-width: 768px) {
    .current-sort-badge .sorter-title, .current-sort-badge .sort-dir,.current-sort-badge .sort-separator{
        display: none;
    }
    .current-sort-badge .sorter-icon{
        display: inline-block;
    }
}




.tabulator-editable {
    /* Subtle border or background */
    border: 1px dotted #ccc;
    background-color: transparent;
    cursor: text;
}

.tabulator-editable:hover,
.tabulator-editable.tabulator-editing {
    outline: 2px solid #007bff; /* Example focus color */
    border-radius: 4px;
    padding: 3px;
    cursor: text;
}

.tabulator-editable input {
    /* Input field styles */
    border: 1px solid #ccc;
    padding: 5px;
    width: 100%;
    cursor: text;
}
.editor-indicator{
    color: var(--head-color,#5c7677)
}

.list-editor-view{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding-top: 4px;
    text-wrap: pretty;
    width: 100%;
}
.list-editor-view .editor-content{
    flex: 1;
}

.tabulator-cell {
    align-items: center;
    justify-content: center;
}

/*.tabulator-col[role="columnheader"]:has(.select2),.tabulator-col[role="columnheader"]:has(.select2) *{*/
/*    min-width: fit-content;*/
/*}*/

.tabulator-cell .badge {
    height: fit-content;
    padding: 6px 5px 4px 4px;
    font-size: 13px;
    font-weight: 500;
}

.collapse-current-filters:not(.collapse-current-filters:has(*)) {
    display: none;
}

.responsive-collapse-header:not(.responsive-collapse-header:has(*:has(*))),.responsive-collapse-header:not(.responsive-collapse-header:has(*)){
    display: none;
}
.collapse-current-filters:not(.collapse-current-filters:has(*)) {
    display: none;
}


.tabulator-tableholder:has(.tabulator-responsive-collapse) {
    width: 100%;
    min-width: 100% !important;
    max-width: 100%;
    overflow-x: hidden !important;
}