.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: 0;
    padding-right: 0;
}

.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-theme-metronic {
    background-color: #f5f8fa;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #181c32;
}

.admin-theme-metronic .c-wrapper {
    background: #f5f8fa;
}

.admin-theme-metronic .c-body {
    background: transparent;
}

.admin-theme-metronic .admin-header {
    background: #ffffff;
    border-bottom: 1px solid #eff2f5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    min-height: 70px;
    display: flex;
    align-items: center;
}

.admin-theme-metronic .admin-header-container {
    display: flex;
    align-items: center;
}

.admin-theme-metronic .admin-header-nav {
    align-items: center;
}

.admin-theme-metronic .admin-header-title {
    color: #181c32;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.admin-theme-metronic .admin-header-brand {
    color: #181c32;
    font-weight: 600;
}

.admin-theme-metronic .admin-header-lang {
    color: #5e6278;
    font-weight: 500;
}

.admin-theme-metronic .admin-header-lang:hover {
    color: #3699ff;
}

.admin-theme-metronic .admin-header-user {
    display: flex;
    align-items: center;
}

.admin-theme-metronic .admin-header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3699ff, #0bb783);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.admin-theme-metronic .admin-header-user-name {
    color: #181c32;
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-theme-metronic .admin-main {
    padding: 24px 24px 40px;
}

.admin-theme-metronic .admin-content {
    max-width: 1320px;
}

.admin-theme-metronic .content {
    margin-top: 0;
}

.admin-theme-metronic .c-sidebar {
    background: #ffffff;
    color: #5e6278;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.06);
    border-right: 1px solid #eff2f5;
}

.admin-theme-metronic .c-sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eff2f5;
}

.admin-theme-metronic .c-sidebar-brand-full {
    color: #181c32;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.admin-theme-metronic .c-sidebar-nav {
    padding-top: 0.75rem;
}

.admin-theme-metronic .c-sidebar-nav-link,
.admin-theme-metronic .c-sidebar-nav-dropdown-toggle {
    color: #5e6278;
    font-weight: 500;
    font-size: 0.925rem;
    border-radius: 8px;
    margin: 2px 10px;
    padding: 0.65rem 0.9rem;
    transition: all 0.2s ease;
}

.admin-theme-metronic .c-sidebar-nav-link .c-sidebar-nav-icon,
.admin-theme-metronic .c-sidebar-nav-dropdown-toggle .c-sidebar-nav-icon {
    color: #b5b5c3;
}

.admin-theme-metronic .c-sidebar-nav-link:hover,
.admin-theme-metronic .c-sidebar-nav-dropdown-toggle:hover {
    background: #f5f8fa;
    color: #181c32;
}

.admin-theme-metronic .c-sidebar-nav-link.c-active {
    background: linear-gradient(135deg, #3699ff, #0bb783);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(54, 153, 255, 0.25);
}

.admin-theme-metronic .c-sidebar-nav-link.c-active .c-sidebar-nav-icon {
    color: #ffffff;
}

.admin-theme-metronic .c-sidebar-nav-dropdown.c-show > .c-sidebar-nav-dropdown-toggle {
    background: #498ebc;
    color: #181c32;
}

.admin-theme-metronic .c-sidebar-nav-dropdown-items {
    padding-left: 0.75rem;
}

.admin-theme-metronic .c-sidebar-nav-item:last-child .c-sidebar-nav-link {
    margin-bottom: 1.5rem;
}

.admin-theme-metronic .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    color: #3f4254;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.admin-theme-metronic .card-header {
    border-bottom: 1px solid #eff2f5;
    background: transparent;
    padding: 1.25rem 1.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.98rem;
    color: #181c32;
}

.admin-theme-metronic .card-body {
    padding: 1.5rem;
}

.admin-theme-metronic .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.admin-theme-metronic .alert {
    border-radius: 0.75rem;
}

.admin-theme-metronic .alert-success {
    background-color: #e8fff3;
    border-color: #c9f7f5;
    color: #1bc5bd;
}

.admin-theme-metronic .alert-danger {
    background-color: #ffe2e5;
    border-color: #ffcad3;
    color: #f64e60;
}

.admin-theme-metronic .table {
    color: #3f4254;
}

.admin-theme-metronic .table thead th {
    border-bottom-color: #eff2f5;
    font-weight: 600;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-theme-metronic .table tbody tr {
    border-color: #f3f6f9;
}

.admin-theme-metronic .form-control,
.admin-theme-metronic .custom-select {
    background-color: #ffffff;
    border-color: #e4e6ef;
    color: #3f4254;
    border-radius: 0.65rem;
}

.admin-theme-metronic .form-control:focus,
.admin-theme-metronic .custom-select:focus {
    border-color: #3699ff;
    box-shadow: 0 0 0 0.2rem rgba(54, 153, 255, 0.2);
}

.admin-theme-metronic .btn-primary {
    background: linear-gradient(135deg, #3699ff, #187de4);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(24, 125, 228, 0.35);
}

.admin-theme-metronic .btn-primary:hover {
    background: linear-gradient(135deg, #187de4, #0b63c5);
}

.admin-theme-metronic .btn-default {
    background-color: #f3f6f9;
    border-color: #e4e6ef;
    color: #3f4254;
}

.admin-theme-metronic .btn-default:hover {
    background-color: #e4e6ef;
}

.admin-theme-metronic .dt-buttons .btn {
    border-radius: 0.65rem;
}

.admin-theme-metronic .dataTables_filter input {
    border-radius: 0.65rem;
    border-color: #e4e6ef;
}

.admin-theme-metronic .dataTables_filter input:focus {
    border-color: #3699ff;
    box-shadow: 0 0 0 0.15rem rgba(54, 153, 255, 0.15);
}

.admin-theme-metronic .pagination .page-link {
    background-color: #ffffff;
    border-color: #e4e6ef;
    color: #5e6278;
}

.admin-theme-metronic .pagination .page-item.active .page-link {
    background: #3699ff;
    border-color: #3699ff;
    color: #ffffff;
}
