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

.datatable {
    width: 100% !important;
}

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

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

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

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

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

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

.searchable-title {
    font-weight: bold;
}
.select2-container--open {
    z-index: 9999;
}
.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;
}


.radio_div {
    position: relative;
    width: 100%;
    margin: 0.1%;
    float: left;
}

.radio_label {
    padding: 3px 5px;
    border: 1px solid #aaa;
    display: inline-block;
    font-size: 0.85em;
    font-weight: normal!important;
    width: 100%;
    margin-bottom: 2px;
}

.label_radio:checked ~ label {
    font-weight: bold;
    background: #009546;
    color: #fff;
    border: 1px solid #aaa;
}

.radio_label:hover {
    cursor: pointer;
    border: 1px solid #009546;
    color: #009546;
}

.modal {
    z-index: 2147483645 !important;
}

#modal {
    z-index: 2147483646 !important;
}

.modal-backdrop {
    z-index: 2147483640 !important;
}

/* ==========================================================================
   Universal Ay / Yıl / Dönem Filtre Tasarımı (Tüm Panellerde Birebir Aynı)
   ========================================================================== */
.sm-filter-form,
.bayi-filter-form-row,
.mlm-filter-form {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.sm-filter-select-wrap,
.bayi-filter-select-wrap,
.mlm-select-group {
    display: inline-flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0 8px !important;
    height: 40px !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    box-sizing: border-box !important;
}

.sm-filter-select-wrap:focus-within,
.bayi-filter-select-wrap:focus-within,
.mlm-select-group:focus-within {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

.sm-filter-select-wrap .filter-label,
.bayi-filter-select-wrap .filter-label,
.mlm-select-group .mlm-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin: 0 6px 0 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.sm-filter-select-wrap select.form-control,
.bayi-filter-select-wrap select.form-control,
.mlm-select-group select.form-control {
    border: none !important;
    box-shadow: none !important;
    padding: 0 4px !important;
    height: 100% !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: transparent !important;
    cursor: pointer !important;
    outline: none !important;
    min-width: 0 !important;
}

.btn-sm-filter,
.btn-bayi-filter,
.btn-mlm-filter {
    height: 40px !important;
    padding: 0 16px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.btn-sm-filter:hover,
.btn-bayi-filter:hover,
.btn-mlm-filter:hover {
    background: #1e293b !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

@media (max-width: 767.98px) {
    .sm-filter-form,
    .bayi-filter-form-row,
    .mlm-filter-form {
        display: grid !important;
        grid-template-columns: 1fr 1fr auto !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .sm-filter-select-wrap,
    .bayi-filter-select-wrap,
    .mlm-select-group {
        width: 100% !important;
        height: 38px !important;
        padding: 0 6px !important;
    }

    .sm-filter-select-wrap .filter-label,
    .bayi-filter-select-wrap .filter-label,
    .mlm-select-group .mlm-label {
        font-size: 11px !important;
        margin: 0 4px 0 0 !important;
    }

    .sm-filter-select-wrap select.form-control,
    .bayi-filter-select-wrap select.form-control,
    .mlm-select-group select.form-control {
        font-size: 12.5px !important;
    }

    .btn-sm-filter,
    .btn-bayi-filter,
    .btn-mlm-filter {
        height: 38px !important;
        padding: 0 14px !important;
        font-size: 12.5px !important;
    }
}
