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

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

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

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

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

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

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

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

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

.admin-page-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    flex-wrap: wrap;
}

.admin-page-hero--primary {
    background: linear-gradient(135deg, rgba(13,110,253,.12), rgba(25,135,84,.08));
    border-color: rgba(13,110,253,.1);
}

.admin-page-hero--success {
    background: linear-gradient(135deg, rgba(25,135,84,.12), rgba(13,110,253,.08));
    border-color: rgba(25,135,84,.12);
}

.admin-page-hero--warning {
    background: linear-gradient(135deg, rgba(255,193,7,.14), rgba(13,110,253,.08));
    border-color: rgba(255,193,7,.16);
}

.admin-page-hero--info {
    background: linear-gradient(135deg, rgba(13,202,240,.14), rgba(13,110,253,.08));
    border-color: rgba(13,202,240,.18);
}

.form-section-card .card-header {
    padding-bottom: .5rem;
}

.admin-stats-grid {
    --bs-gutter-y: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-card {
    border-left: 4px solid transparent !important;
}

.stat-card-blue {
    border-left-color: #0d6efd !important;
}

.stat-card-green {
    border-left-color: #198754 !important;
}

.stat-card-orange {
    border-left-color: #ffc107 !important;
}

.stat-card-purple {
    border-left-color: #0dcaf0 !important;
}

/* System-wide admin standardization layer */
.c-main .container-fluid > .card {
    border: 0;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    border-radius: .65rem;
}

.c-main .card-header:not([class*="bg-gradient"]) {
    background: #fff;
    border-bottom: 1px solid #edf1f5;
    font-weight: 600;
}

.c-main .btn {
    border-radius: .5rem;
}

.c-main .form-control,
.c-main .custom-select,
.c-main .select2-selection {
    border-radius: .5rem;
}

.c-main .table thead th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c757d;
}

.c-main .table tbody td {
    vertical-align: middle;
}

.c-main .datatable {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.c-main .datatable tbody td {
    background: #fff;
    border-top: 1px solid #e8edf3;
    border-bottom: 1px solid #e8edf3;
    border-left: 0;
    border-right: 0;
}

.c-main .datatable tbody td:first-child {
    border-left: 1px solid #e8edf3;
    border-top-left-radius: .7rem;
    border-bottom-left-radius: .7rem;
}

.c-main .datatable tbody td:last-child {
    border-right: 1px solid #e8edf3;
    border-top-right-radius: .7rem;
    border-bottom-right-radius: .7rem;
}

.c-main .datatable tbody tr:hover td {
    background: #fcfdff;
}
