#crudTable_wrapper #crudTable td,
#crudTable_wrapper #crudTable th,
#crudTable_wrapper table.dataTable td,
#crudTable_wrapper table.dataTable th {
    line-height: 1;
}

#crudTable_wrapper th:first-child {
    border-top-left-radius: 16px;
}

#crudTable_wrapper th:last-child {
    border-top-right-radius: 16px;
}

#crudTable_wrapper tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

#crudTable_wrapper tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

/* Sticky last header */
#crudTable_wrapper th:last-child {
    position: sticky;
    right: 0;
    background: #E6EBF8;
    z-index: 1;
}

/* Sticky last column cells */
#crudTable_wrapper td:last-child {
    position: sticky;
    right: 0;
    z-index: 1;
    background: #fff;
}

#crudTable_wrapper td:has(.dropdown-menu.show) {
    z-index: 2;
}

.header-operation {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.table_btn_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.page_heading {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    margin: 0px;
    text-transform: capitalize;
}

#crudTable_wrapper table.dataTable {
    border-collapse: separate !important;
    overflow: visible !important;
    background-clip: padding-box !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    border-radius: 16px !important;
}

.main_table_wrapper tr th {
    background-color: #E6EBF8;
    color: #0D1A36;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    padding-right: 36px;
}

.main_table_wrapper td {
    position: relative;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 50px;
}

.dropdown-menu.show {
    overflow: unset;
    padding: 0px;
}

.customTableheader {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.table-content span,
.table-content a {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    color: #0D1A36;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}

.tableSearch {
    position: relative;
    max-width: 250px;
    min-width: 150px;
}

.tableSearch input,
.tableSearch select,
span.select2-selection {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: none;
    outline: none;
    border-radius: 999px;
    background: white;
    color: #697286;
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.tableSearch input::placeholder {
    color: #777777;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
}

.tableSearchIcon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: #6b7280;
    cursor: pointer;
}

.table thead th {
    color: #0D1A36;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    gap: 20px;
}

.table td {
    border-color: #F4F7FE;
}

.table thead th:last-child {
    box-shadow: 0px 4px 24px 0px #8C98BE38;
}

.table td:last-child {
    box-shadow: 0px 4px 24px 0px #8C98BE38;
}

.table-content {
    overflow: visible !important;
}

.actions-buttons-column {
    border: none !important;
}

#crudTable_wrapper #crudTable[data-has-bulk-actions="0"].has-hidden-columns thead tr th:first-child {
    padding-left: 12px !important;
}

.bulk-checkbox-container {
    padding-left: 5px;
}

#crudTable_wrapper #crudTable[data-has-bulk-actions="1"] thead tr th:first-child {
    padding-left: 0.8rem !important;
}

#crudTable_wrapper #crudTable thead tr th:last-child {
    vertical-align: top !important;
    padding: 25px;
}

.crud_bulk_actions_checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

#crudTable tbody td:last-child {
    background-color: #ffffff !important;
}

.badge-light {
    background-color: #E4EDFB;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    right: 10px;
    bottom: 13px;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #000;
}

.la-ellipsis-v:before {
    font-size: 20px;
    color: #000;
}

.ellipsis-cell {
    display: block;
    width: 100%;
    /* max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
}

.dropdown-menu-right a {
    border-bottom: 1px solid #8C98BE38;
    padding: 0.5rem 1.5rem;
}

.header-split-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.checkbox-section {
    flex: 0 0 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 5px;
}

.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 10px;
}

.column-label {
    font-weight: 500;
    color: #0D1A36;
}

#crudTable tbody td .crud_bulk_actions_checkbox {
    display: flex;
    justify-content: center;
    width: 10px;
}

#crudTable_wrapper .table-content select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("../img/icons/down_arrow.svg") !important;
    background-position: right 10px center !important;
    background-repeat: no-repeat !important;
    background-size: 17px !important;
    padding-right: 30px !important;
    border-radius: 25px;
}

#crudTable_wrapper .table-content select:focus {
    outline: none;
    box-shadow: none;
    border-color: #ddd;
}

.table-content select option {
    padding: 12px 16px !important;
    /* display: inline !important; */
    border-radius: 20px !important;
}

.page-item.active .page-link {
    background-color: #050610 !important;
    border-radius: 8px;
    padding: 5px 13px;
}

.page-item.disabled .page-link {
    background-color: #E4EDFB !important;
    border-radius: 8px;
    padding: 5px 7px;
}

.page-item.next a,
.page-item.previous a {
    padding: 5px;
}

.page-link {
    background-color: #FFFFFF !important;
    padding: 5px 13px;
    margin: 0 5px;
}

.dropdown-item {
    margin: 4px 0;
    padding-block: 7px;
    border-bottom: 1px solid #8C98BE38;
}

.dropdown-item:last-of-type {
    border-bottom: none;
}

.table-footer .dataTables_length select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("../img/icons/down_arrow.svg") !important;
    background-position: right 10px center !important;
    background-repeat: no-repeat !important;
    background-size: 17px !important;
    padding-right: 30px !important;
    border-radius: 25px;
}

#crudTable_wrapper .dataTables_processing {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    margin: 0px;
}

#crudTable_wrapper .dataTables_processing > img {
    position: unset;
    width: 20%;
    margin: auto;
    height: 100%;
}

/* =========================
   Select2 Premium UI
========================= */

form .select2.select2-container {
    width: 100% !important;
    border: none !important;
    font-size: 14px;
}

/* Main Selection */
.select2-container--bootstrap-5 .select2-selection,
.select2-container--bootstrap-5 .select2-selection--single,
.select2-container--bootstrap-5 .select2-selection--multiple,
.select2-container--bootstrap-5.select2-container--open .select2-selection--single,
.select2-container--bootstrap-5.select2-container--open .select2-selection--multiple {
    background-color: #F9FAFF !important;
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    min-height: 48px !important;
    transition: all 0.22s ease;
}

/* Hover */
.select2-container--bootstrap-5 .select2-selection:hover {
    border-color: #C9D2FF !important;
    background-color: #FFFFFF !important;
}

/* Focus / Open */
form .select2.select2-container.select2-container--focus,
form .select2.select2-container.select2-container--open {
    border-radius: 14px;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    color: #495057 !important;
    background-color: #FFFFFF !important;
    border-color: #9080f1 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 2px #e1dcfb !important;
}

/* Single Select Text */
.select2-container--bootstrap-5 .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #1F2937 !important;
    font-weight: 500 !important;
    line-height: normal !important;
    padding-left: 0 !important;
}


/* Arrow */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
}

/* =========================
   Dropdown
========================= */

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #ECEFF5 !important;
    border-radius: 16px !important;
    overflow: hidden;
    background: #FFFFFF !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
    margin-top: 6px;
}

/* Search Input */
.select2-container--bootstrap-5 .select2-search--dropdown {
    padding: 10px;
    background: #FFFFFF;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    height: 42px !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    transition: all 0.2s ease;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: #7C6CFA !important;
    box-shadow: 0 0 0 3px rgba(124, 108, 250, 0.12) !important;
    outline: none !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 11px 14px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    transition: all 0.18s ease;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #F2F0FF !important;
    color: #4B3FCF !important;
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected="true"] {
    background-color: #EEEDFE !important;
    color: #3C3489 !important;
    font-weight: 600 !important;
}

.select2-container--bootstrap-5
.select2-selection--multiple
.select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 6px 8px !important;
}

/* Selected Value UI */
.select2-container--bootstrap-5
.select2-selection--multiple
.select2-selection__rendered
.select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 10px 5px 12px !important;
    background: linear-gradient(135deg, #F3F1FF 0%, #EEEDFE 100%) !important;
    color: #3C3489 !important;
    border: 1px solid #DDD9FF !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 2px !important;
    transition: all 0.18s ease;
}

/* Tag Hover */
.select2-container--bootstrap-5
.select2-selection--multiple
.select2-selection__choice:hover {
    background: #E7E4FF !important;
    border-color: #CFC8FF !important;
}

/* Remove Icon */
.select2-container--bootstrap-5
.select2-selection--multiple
.select2-selection__choice__remove {
    width: 12px !important;
    height: 12px !important;
}

.select2-container--bootstrap-5
.select2-selection--multiple
.select2-selection__choice__remove:hover {
    background: #3C3489 !important;
    color: #FFFFFF !important;
}

/* =========================
   Open Radius
========================= */

.select2-container--bootstrap-5.select2-container--open.select2-container--below
.select2-selection--single,
.select2-container--bootstrap-5.select2-container--open.select2-container--below
.select2-selection--multiple {
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}

.select2-container--bootstrap-5.select2-container--open.select2-container--above
.select2-selection--single,
.select2-container--bootstrap-5.select2-container--open.select2-selection--multiple {
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
}

.select2-container--bootstrap-5 
.select2-selection--multiple 
.select2-search {
    height: 16px !important;
    line-height: 16px !important;
}
