.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
    color: #e8edff;
}

table.dataTable thead th {
    border-bottom: 2px solid #2a3650;
    background: #0f1d33;
    color: #e8edff;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #2a3650;
}

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

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

/* Select2 dropdown on dark theme */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #e8edff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e8edff !important;
}

.select2-dropdown {
    background: #0c1629;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e8edff;
}

.select2-results__option {
    color: #e8edff;
}

.select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted {
    background: rgba(108, 99, 255, 0.35) !important;
    color: #fff !important;
}

.select2-results__option[aria-disabled=true] {
    color: rgba(232, 237, 255, 0.4);
}

/* Select2 tags (chosen items) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e8edff !important;
    border-radius: 8px !important;
    padding: 2px 6px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #d9e2ff !important;
    margin-right: 4px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

/* Badge styling on dark background */
.badge {
    background: rgba(255, 255, 255, 0.12);
    color: #e8edff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
    color: #e8edff;
}

.table.datatable tbody tr {
    background: #0d1a2d;
}

.table.datatable tbody tr:nth-of-type(2n) {
    background: #0b1627;
}

.table.datatable tbody tr:hover {
    background: #142542;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}

/* Soften read-only/disabled field look on dark theme */
.form-control[readonly],
input[readonly],
textarea[readonly],
select[readonly],
.form-control:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #e8edff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    opacity: 1;
}
