.btn-primary{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-danger{
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}
.btn-success{
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.table .inactive, .table .deleted {
    background-color: #c7c7c7;
    color: white !important;
    text-decoration: line-through;
}

.has-error .form-control {
    border-color: #ff0000; /* Red border color */
}

span.form-control {
    display: inline-block;
    width: 50%;
}

table.dataTable tfoot th.dt-footer-right {
    text-align: right !important;
}

div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_paginate
{
    display: inline-block;
    vertical-align: middle;
}

div.dataTables_wrapper div.dataTables_paginate {
    /* margin-left: 20px; */ 
    float:right
}
div.dataTables_wrapper div.dataTables_filter{
    float:right
}
div.dataTables_wrapper div.dt-buttons {
    /* float:right */
}

.dataTables_wrapper .dataTables_length {
    padding-top: 5px;
}

.shadow-0{
    box-shadow: none !important
}
.select-items.header{
    background-color: #6c7293; 
    color: white; 
    font-weight: bold;
    margin: 0;
}
.select-items{
    /* padding: 2px 2px; */
    border-bottom: 1px solid #000;
}

.ui-menu-item, .ui-menu-item-wrapper {
    padding: 1px 1px;
}

.ui-menu-item .disabled{
    background-color: #c7c7c7;
    color: white !important;
}

.ui-autocomplete{
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ced4da;
}

.nav-item .dropdown-menu.show{
    width: -webkit-fill-available;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.175) !important;
    border-bottom-left-radius: 0.45rem !important;
    border-bottom-right-radius: 0.45rem !important;
}

/* General adjustments for buttons and search input */
.dataTables_wrapper .dt-buttons {
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 10px;
    text-align: right;
}

/* Footer elements: pagination and length menu */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 10px;
    text-align: left;
}

/* Apply border-radius to the first and last header cells */
table.dataTable thead th:first-child, .table-bordered th:first-child {
    border-top-left-radius: 6px;
}

table.dataTable thead th:last-child, .table-bordered th:last-child {
    border-top-right-radius: 6px;
}

/* Ensure no border-radius on other cells */
table.dataTable thead th {
    border-radius: 0;
}

/* Override Bootstrap's table-bordered border color */
.table-bordered th {
    border: 1px solid #f5f5f5; /* Set your desired cell border color */
}
.table-bordered td {
    border: 1px solid #b0b0b0; /* Set your desired cell border color */
}

/* override Bootstrap's hover color for table row that has class table.active */
.table-hover>tbody>tr.table-active:hover {
    --bs-table-accent-bg: rgb(142 138 138 / 62%)!important;
    color: var(--bs-table-active-color);
}
.table-striped>tbody>tr.table-active:nth-of-type(odd) {
    --bs-table-accent-bg: rgb(96 96 96 / 62%);
    color: var(--bs-table-active-color);
}

/* Select2 multiple select items displayed on new lines */
.select2-selection__rendered {
    display: block;
    white-space: normal;  /* Allow text to wrap */
}

.select2-selection__choice {
    display: block;       /* Display each selected item on a new line */
    margin: 2px 0;        /* Add space between items */
    width: 100%;          /* Ensure each item occupies full width */
}

.sidebar-menu.accordion{
    --bs-accordion-border-width: 0px;
}
.sidebar-menu.accordion .accordion-button{
    color: #7c84ab;
    /* padding: 10px 15px; */
    padding-left: 25px;
    border: 0px solid #7c84ab;
    font-size: 0.85rem;
    padding:10px 25px
}
.sidebar-menu.accordion .accordion-button::after {
    transform: scale(0.7);
}
.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg) scale(0.7) !important; /* adjust open state */
}
/* .accordion-button:not(.collapsed){
    padding:10px
} */

@media (max-width: 768px) {
    /* Center buttons and search input */
    .dataTables_wrapper .dt-buttons,
    .dataTables_wrapper .dataTables_filter {
        text-align: center;
        width: 100%;
        margin-bottom: 15px;
    }

    /* Footer elements: stack and center-align */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
        width: 100%;
        margin-bottom: 15px;
    }

    /* Stack pagination buttons for better usability */
    .dataTables_wrapper .dataTables_paginate {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}