body.dark-only .form-control,
body.dark-only .form-select {
    color: #6c757b !important;
    border: 1px solid #6c757b !important;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23757575' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    padding: 0.375rem 1.25rem 0.375rem 0.75rem !important;
    background-position: right 0.25rem center !important;
}

html[dir="rtl"] .form-select {
    padding: 0.375rem 0.75rem 0.375rem 1rem !important;
    background-position: left 0.5rem center !important;
}

.date {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 25px 18px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

html[dir="rtl"] .date {
    padding: 0.375rem 0.75rem 0.375rem 1rem !important;
    background-position: left 0.5rem center !important;
}

.search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    padding: 0.375rem 0.75rem 0.375rem 2rem !important;
    background-repeat: no-repeat;
    background-position: left 0.25rem center;
    background-size: 25px 18px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15sease-in-out, box-shadow 0.15sease-in-out;
    appearance: none;
}

html[dir="rtl"] .search {
    padding: 0.375rem 2rem 0.375rem 0.75rem !important;
    background-position: right 0.5rem center !important;
}

table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    /* 10px gap between rows */
    width: 100% !important;
}

.table thead th {
    color: #878790 !important;
    border: none !important;
    vertical-align: top !important;
}

.table td {
    padding: 15px 10px !important;
    border-top: 1px solid #E9EFF4 !important;
    border-bottom: 1px solid #E9EFF4 !important;
}

tr td:first-child {
    border-left: 1px solid #E9EFF4 !important;
    border-top-left-radius: 5px !important;
    border-bottom-left-radius: 5px !important;
}

tr td:last-child {
    border-right: 1px solid #E9EFF4 !important;
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
}

.custom-sort-icon {
    position: relative;
    display: inline-block;
    vertical-align: middle !important;
    width: 1em;
    /* Ensures proper alignment */
    height: 1em;
    /* Adjust height for proper stacking */
}

.text-theme {
    color: #b08443 !important;
}

.text-shadow {
    color: #B9853E45 !important;
}

.custom-sort-icon i {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
}

.asc {
    top: 0;
}

.desc {
    bottom: 0;
}

.btn-color {
    background-color: #B9853E !important;
    color: #fff !important;
}


html[dir="rtl"] tr td:first-child {
    border-left: none !important;
    border-right: 1px solid #E9EFF4 !important;
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

html[dir="rtl"] tr td:last-child {
    border-right: none !important;
    border-left: 1px solid #E9EFF4 !important;
    border-top-left-radius: 5px !important;
    border-bottom-left-radius: 5px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}


.pagination-primary .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    /* Fixed width */
    height: 2em;
    /* Fixed height */
}

.pagination-primary .page-item.active .page-link {
    border-radius: 50% !important;
    text-align: center !important;
    font-size: 1em !important;
    box-shadow: 0px 4px 4px 0px #4676FB40;
}

.pagination-primary .page-item #perPageSelect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1em !important;
    border-radius: 0 !important;
    height: 2em !important;
    /* Fixed height */
    padding: 0.375rem 1.25rem 0.375rem 0.75rem !important;
}

html[dir="rtl"] .pagination-primary .page-item #perPageSelect {
    padding: 0.375rem 0.75rem 0.375rem 1.25rem !important;
}

.pagination-primary .page-item .page-link.page {
    color: #3A3A49 !important;
}

body.dark-only .pagination-primary .page-item .page-link.page {
    color: #878790 !important;
}

.pagination-primary .page-item .page-link.page:hover {
    z-index: 0 !important;
    color: #3A3A49 !important;
    background-color: transparent !important;
    border-color: transparent !important;
}