:root {
    --primary-color: #c1272d;
    --primary-button: #c1272d;
}

.sidebar-nav ul .sidebar-item>.sidebar-link:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.sidebar-nav ul .sidebar-item.selected>.sidebar-link, .sidebar-nav ul .sidebar-item.selected>.sidebar-link.active, .sidebar-nav ul .sidebar-item>.sidebar-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary {
    background-color: var(--primary-button);
    border-color: var(--primary-button);
}

.btn-primary:hover {
    background-color: var(--primary-button);
    border-color: var(--primary-button);
    opacity: 0.9;
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .show>.btn-primary.dropdown-toggle {
    background-color: var(--primary-button);
    border-color: var(--primary-button);
}

.btn-outline-primary {
    color: var(--primary-button);
    border-color: var(--primary-button);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-button);
    border-color: var(--primary-button);
}




/* Select 2 CSS Begin*/
.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 1rem;
    padding-left: 0.75rem;
    line-height: 1.5 !important;
    color: #979797 !important;
}

.select2-container--default .select2-selection--multiple {
    height: 38px !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
}

/* Adjust the appearance of the Select2 container */
.select2-container--default .select2-selection--single {

    height: 38px !important;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da !important;
    background-color: #fff;
    box-shadow: none !important;
    transition: border-color 0.2s ease-in-out;
}

/* Focus state for Select2 similar to input fields */
.select2-container--default .select2-selection--single:focus {
    outline: none;
    border-color: #86b7fe !important;
}

/* Dropdown styling arrows */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: 2px !important;
}

/* Custom scrollbar for dropdown */
.select2-container--default .select2-results__options::-webkit-scrollbar {
    width: 4px;
}

.select2-container--default .select2-results__options::-webkit-scrollbar-thumb {
    background-color: rgb(200, 200, 200);
    border-radius: 5px;
}

.select2-container--default .select2-results__options::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

/* Adjust the dropdown styling */
.select2-dropdown.select2-dropdown--above,
.select2-dropdown.select2-dropdown--below {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem;
}

/* End Select 2 CSS */





/* Table CSS */
.table {
    font-size: 0.85rem;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 0.8rem 0.6rem;
    vertical-align: middle;
}

.table td {
    padding: 0.3rem 0.6rem;
    vertical-align: middle;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.table thead th {
    font-weight: 600;
    background-color: #f8d7da;
}

.table-danger th {
    background-color: #f5c6cb;
    color: #721c24;
}

.table .text-center {
    text-align: center;
}

.text-semibold {
    font-weight: 500;
}
