#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[data-action-column="true"] {
    position: sticky;
    right: 0;
    background: #E6EBF8;
    z-index: 1;
}

/* Sticky last column cells */
#crudTable_wrapper td:last-child[data-td-action-column="true"] {
    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;
}

.main_table_wrapper tr th {
    background-color: #E6EBF8;
    color: #0D1A36;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    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: 1.5;
    font-weight: 400;
    color: #0D1A36;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

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

.tableSearch .tableIcon {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    left: auto;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.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: 1.5;
}

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

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

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

.table thead th:last-child[data-action-column="true"] {
    box-shadow: 0px 4px 24px 0px #8C98BE38;
}

.table td:last-child[data-td-action-column="true"] {
    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;
}

.bi-three-dots-vertical:before {
    font-size: 20px;
    color: #000;
    cursor: pointer;
}

.bi-2x {
    font-size: 2em;
}

.bi-spin {
    animation: bi-spin 2s infinite linear;
}

@keyframes bi-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.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;
    cursor: pointer;
}

#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;
}

.table-footer .page-item svg {
    width: 20px;
    height: 20px;
}

.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;
    border-radius: 50px;
}

form .select2.select2-container.select2-container--open,
form .select2.select2-container.select2-container--focus {
    background-color: #F9FAFF;
    border: 1px solid #F9FAFF !important;
    box-shadow: none;
    border-radius: 50px;
}

form .select2.select2-container .select2-selection--single,
form .select2.select2-container .select2-selection--multiple {
    background: #F9FAFF;
    border: 1px solid #F9FAFF;
    color: #777777;
    box-shadow: none;
    outline: none;
    -webkit-box-shadow: none;
    min-height: 45px;
    display: flex;
    align-items: center;
}

form .select2.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 2;
    padding-left: 12px;
    padding-right: 30px;
    color: #777777;
}

form .select2.select2-container .select2-selection--single .select2-selection__placeholder {
    color: #999999;
    line-height: 2;
}

form .select2.select2-container .select2-selection--single .select2-selection__arrow {
    height: 45px;
    right: 8px;
}

form .select2.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 8px;
}

.select2-container--open .select2-dropdown--below {
    border: 1px solid #F9FAFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


.select2-search--dropdown .select2-search__field {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 6px 8px;
    outline: none;
}

.select2-search__field {
    width: 100% !important;
}

.ck-content ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.ck-content ol {
    list-style-type: decimal;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.ck-content li {
    list-style-type: unset;
}

.ck.ck-editor {
    display: flex;
    flex-direction: column;
    height: 100% !important;
}

.ck.ck-editor .ck-editor__main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ck.ck-editor .ck-editor__editable_inline {
    flex-grow: 1 !important;
    padding: 12px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.ck.ck-editor__editable_inline> :last-child {
    margin-bottom: 0 !important;
}

/* 3. Toolbar Styling & Rounded Corners */
.ck.ck-toolbar {
    background: #E4EDFB !important;
    border: none !important;
    border-radius: 16px !important;
}

.ck.ck-toolbar .ck-toolbar__items {
    background: transparent !important;
}

.ck.ck-button {
    border-radius: 6px !important;
}

#crudTable td.dataTables_empty,
table.dataTable td.dataTables_empty,
.dataTables_empty {
    text-align: center !important;
}