/* ===================================================
   DataTable Advanced Filters CSS
   =================================================== */

:root {
  --dtf-primary: #556ee6;
}

/* Header Trigger Position */
.dt-header-with-filter {
  position: relative;
  padding-right: 36px !important;
  vertical-align: middle !important;
}

.dt-filter-mode-trigger {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #adb5bd;
  border-radius: 6px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  z-index: 5;
}

.dt-filter-mode-trigger:hover {
  color: var(--bs-primary, var(--dtf-primary));
  background: #f8f9fa;
  border-color: var(--bs-primary, var(--dtf-primary));
}

.dt-filter-mode-trigger.active {
  background: var(--bs-primary, var(--dtf-primary)) !important;
  color: #fff !important;
  border-color: var(--bs-primary, var(--dtf-primary)) !important;
}

/* Filter Row - Modern Clean Look */
.dt-filter-row > th {
  padding: 4px 3px !important;
  background-color: #fff !important;
  background-image: none !important;
  border-bottom: 1px solid #eff2f7 !important;
  vertical-align: middle !important;
}

.dt-filter-cell {
  width: 100%;
}

.dt-filter-control {
  display: block;
  width: 100%;
  height: 32px;
  min-height: 32px;
  margin: 0px !important;
  padding: 3px 6px !important;
  font-size: 12.5px;
  line-height: 1.4;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px;
  outline: none;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  text-align: center;
}

.dt-filter-control::placeholder {
  color: #adb5bd;
  opacity: 0.8;
}

.dt-filter-control[readonly] {
  background-color: #fcfdfe;
  cursor: pointer;
}

.dt-filter-control:focus {
  border-color: var(--bs-primary, var(--dtf-primary)) !important;
  box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.1);
}

/* Dropdown Menus Framework */
.dt-filter-mode-dropdown,
.dt-filter-excel-dropdown {
  position: absolute;
  z-index: 10000;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  width: 260px;
  overflow: hidden;
  height: auto;
  max-height: 450px; /* Overall limit */
}

.dt-filter-mode-dropdown.show,
.dt-filter-excel-dropdown.show {
  display: flex !important;
}

/* Standard Mode Dropdown (Funnel) */
.dt-filter-mode-dropdown {
  width: 180px;
  padding: 8px;
}

.dt-filter-mode-dropdown .mode-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: none !important;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: #495057;
  text-align: left;
  cursor: pointer;
  transition: all 0.1s;
  border-radius: 6px;
  margin-bottom: 2px;
}

.dt-filter-mode-dropdown .mode-opt:hover {
  background: #f8f9fa;
  color: var(--bs-primary, var(--dtf-primary));
}

.dt-filter-mode-dropdown .mode-opt.active {
  background: var(--bs-primary, var(--dtf-primary)) !important;
  color: #fff !important;
  font-weight: 600;
}

.dt-filter-mode-dropdown .mode-opt.active i {
  color: #fff !important;
  opacity: 1;
}

/* Excel-like Dropdown Style - UI FIXES */
.dt-filter-excel-dropdown .search-box {
  padding: 12px;
  border-bottom: 1px solid #f1f3f7;
  flex-shrink: 0;
}

.dt-filter-excel-dropdown .search-box input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #bfc1c2;
  border-radius: 6px;
  font-size: 13px;
}

.dt-filter-excel-dropdown .options-list {
  max-height: 250px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: #fff;
}

.dt-filter-excel-dropdown .option-item {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 0;
  font-size: 13px;
  color: #495057;
  background: #fff;
}

.dt-filter-excel-dropdown .option-item:hover {
  background: #f8f9fa;
}

.dt-filter-excel-dropdown .option-item input {
  margin: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--bs-primary, var(--dtf-primary));
}

.dt-filter-excel-dropdown .option-item.select-all {
  border-bottom: 1px solid #f1f3f7;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

/* KESİN ÇÖZÜM: Footer her zaman en altta ve görünür */
.dt-filter-excel-dropdown .dt-filter-footer {
  padding: 12px;
  border-top: 1px solid #f1f3f7;
  background: #fcfdfe;
  display: flex !important;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  z-index: 11;
  width: 100%;
  min-height: 55px; /* Ensure it has height */
}

.dt-filter-excel-dropdown .dt-filter-footer .btn-apply,
.dt-filter-excel-dropdown .dt-filter-footer .btn-cancel {
  min-width: 80px;
}

/* Active Filter Bar */
.dt-active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eff2f7;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.dt-active-filters-bar .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--bs-primary, var(--dtf-primary));
  text-transform: uppercase;
}

.dt-active-filters-bar .badge {
  background: #f8f9fa;
  border: 1px solid #e1e5eb;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #495057;
}

.dt-active-filters-bar .badge i.remove {
  cursor: pointer;
  color: #adb5bd;
}

.dt-active-filters-bar .badge i.remove:hover {
  color: #f46a6a;
}

/* Dark Mode Support & macOS Dark Preset */
[data-bs-theme="dark"] .dt-filter-row > th,
html[data-theme-preset="macos-dark"] .dt-filter-row > th {
  background-color: #262b3c !important;
  border-bottom-color: #32394e !important;
}

[data-bs-theme="dark"] .dt-filter-control,
html[data-theme-preset="macos-dark"] .dt-filter-control {
  background-color: #191e22 !important;
  color: #eff2f7 !important;
  border-color: #32394e !important;
}

[data-bs-theme="dark"] .dt-filter-control::placeholder,
html[data-theme-preset="macos-dark"] .dt-filter-control::placeholder {
  color: #74788d !important;
}

[data-bs-theme="dark"] .dt-filter-control[readonly],
html[data-theme-preset="macos-dark"] .dt-filter-control[readonly] {
  background-color: #222736 !important;
}

[data-bs-theme="dark"] .dt-filter-mode-trigger,
html[data-theme-preset="macos-dark"] .dt-filter-mode-trigger {
  background: #2a3042 !important;
  color: #a6b0cf !important;
  border-color: #32394e !important;
}

[data-bs-theme="dark"] .dt-filter-mode-trigger:hover,
html[data-theme-preset="macos-dark"] .dt-filter-mode-trigger:hover {
  background: #32394e !important;
  color: #ffffff !important;
  border-color: var(--bs-primary, var(--dtf-primary)) !important;
}

[data-bs-theme="dark"] .dt-filter-mode-dropdown,
html[data-theme-preset="macos-dark"] .dt-filter-mode-dropdown {
  background: #2a3042 !important;
  border-color: #3e4556 !important;
}

[data-bs-theme="dark"] .dt-filter-mode-dropdown .mode-opt,
html[data-theme-preset="macos-dark"] .dt-filter-mode-dropdown .mode-opt {
  color: #a6b0cf !important;
}

[data-bs-theme="dark"] .dt-filter-mode-dropdown .mode-opt:hover,
html[data-theme-preset="macos-dark"] .dt-filter-mode-dropdown .mode-opt:hover {
  background: #32394e !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .dt-filter-excel-dropdown,
html[data-theme-preset="macos-dark"] .dt-filter-excel-dropdown {
  background: #2a3042 !important;
  border-color: #3e4556 !important;
}

[data-bs-theme="dark"] .dt-filter-excel-dropdown .search-box input,
html[data-theme-preset="macos-dark"] .dt-filter-excel-dropdown .search-box input {
  background-color: #191e22 !important;
  color: #eff2f7 !important;
  border-color: #3e4556 !important;
}

[data-bs-theme="dark"] .dt-filter-excel-dropdown .search-box,
[data-bs-theme="dark"] .dt-filter-excel-dropdown .options-list,
[data-bs-theme="dark"] .dt-filter-excel-dropdown .dt-filter-footer,
[data-bs-theme="dark"] .dt-filter-excel-dropdown .option-item.select-all,
html[data-theme-preset="macos-dark"] .dt-filter-excel-dropdown .search-box,
html[data-theme-preset="macos-dark"] .dt-filter-excel-dropdown .options-list,
html[data-theme-preset="macos-dark"] .dt-filter-excel-dropdown .dt-filter-footer,
html[data-theme-preset="macos-dark"] .dt-filter-excel-dropdown .option-item.select-all {
  background: transparent !important;
  border-color: #3e4556 !important;
}

[data-bs-theme="dark"] .dt-filter-excel-dropdown .option-item,
html[data-theme-preset="macos-dark"] .dt-filter-excel-dropdown .option-item {
  color: #a6b0cf !important;
  background: transparent !important;
}

[data-bs-theme="dark"] .dt-filter-excel-dropdown .option-item:hover,
html[data-theme-preset="macos-dark"] .dt-filter-excel-dropdown .option-item:hover {
  background: #32394e !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"]
  .dt-filter-excel-dropdown
  .dt-filter-footer
  .btn-cancel,
html[data-theme-preset="macos-dark"]
  .dt-filter-excel-dropdown
  .dt-filter-footer
  .btn-cancel {
  background: #2e3548 !important;
  color: #a6b0cf !important;
}

[data-bs-theme="dark"] .dt-active-filters-bar {
  background: #2e3548 !important;
  border-color: #3e4556 !important;
}

[data-bs-theme="dark"] .dt-active-filters-bar .label {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .dt-active-filters-bar .badge {
  background: #2a3042 !important;
  border-color: #3e4556 !important;
  color: #a6b0cf !important;
}


/* =============================================================
   Merkezi Premium DataTable Görünümü
   Tüm datatable tabloları bu standart görünümü kullanır.
   ============================================================= */
.card-body.p-0:has(> .table-responsive),
.card-body.p-0:has(> .dataTables_wrapper),
.card-body.p-0:has(> table.dataTable),
.card-body.p-0:has(> div > .table-responsive),
.card-body.p-0:has(> div > .dataTables_wrapper),
.card-body:has(> .table-responsive),
.card-body:has(> .dataTables_wrapper),
.card-body:has(> div > .table-responsive),
.card-body:has(> div > .dataTables_wrapper) {
  padding: 2px !important;
}

.card > .dataTables_wrapper,
.card-body > .dataTables_wrapper {
  width: 100%;
}

.datatable-premium-shell,
.table-responsive:has(> table.dataTable),
.dataTables_wrapper > .table-responsive {
  border: 1px solid #eaedf1 !important;
  border-radius: 12px !important;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--bs-card-bg, #fff);
  margin: 4px 0 6px 0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.datatable-premium-shell table.dataTable,
.table-responsive:has(> table.dataTable) table.dataTable,
.dataTables_wrapper > .table-responsive table.dataTable {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

/* Tek Çizgili Ultra İnce (Hairline 1px) Standart: Her hücre sadece sağ ve alt çizer */
.datatable-premium-shell table.dataTable > :not(caption) > * > *,
.table-responsive:has(> table.dataTable) table.dataTable > :not(caption) > * > *,
.dataTables_wrapper > .table-responsive table.dataTable > :not(caption) > * > * {
  border: 0 !important;
  border-right: 1px solid #eff2f7 !important;
  border-bottom: 1px solid #eff2f7 !important;
}

/* En sağ sütundaki hücrelerin sağ kenarlığını kaldır (dış kabuk sınır çizer) */
.datatable-premium-shell table.dataTable > :not(caption) > * > *:last-child,
.table-responsive:has(> table.dataTable) table.dataTable > :not(caption) > * > *:last-child,
.dataTables_wrapper > .table-responsive table.dataTable > :not(caption) > * > *:last-child {
  border-right: 0 !important;
}

/* Tablo son satır alt kenarlık standardı (tabloyu alttan düzgünce kapatır) */
.datatable-premium-shell table.dataTable > tbody > tr:last-child > *,
.table-responsive:has(> table.dataTable) table.dataTable > tbody > tr:last-child > *,
.dataTables_wrapper > .table-responsive table.dataTable > tbody > tr:last-child > *,
table.dataTable > tbody > tr:last-child > *,
.table-bordered > tbody > tr:last-child > * {
  border-bottom: 1px solid #eff2f7 !important;
}

.datatable-premium-shell .dataTables_scroll,
.datatable-premium-shell .dataTables_scrollHead,
.datatable-premium-shell .dataTables_scrollBody {
  border: 0 !important;
  border-radius: 0 !important;
}

.datatable-premium-shell table.dataTable thead th,
.table-responsive table.dataTable thead th,
.table-responsive:has(> table.dataTable) table.dataTable thead th,
.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper > .table-responsive table.dataTable thead th,
table.dataTable thead th {
  position: relative;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  background-color: #f8f9fa !important;
  border: 0 !important;
  border-right: 1px solid #eaedf1 !important;
  border-bottom: 1px solid #eaedf1 !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.datatable-premium-shell table.dataTable thead th:last-child,
.table-responsive table.dataTable thead th:last-child,
.table-responsive:has(> table.dataTable) table.dataTable thead th:last-child,
.dataTables_wrapper table.dataTable thead th:last-child,
.dataTables_wrapper > .table-responsive table.dataTable thead th:last-child,
table.dataTable thead th:last-child {
  border-right: 0 !important;
}

.datatable-premium-shell table.dataTable thead tr:first-child th:first-child,
.table-responsive table.dataTable thead tr:first-child th:first-child,
.table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child th:first-child,
.dataTables_wrapper table.dataTable thead tr:first-child th:first-child,
.dataTables_wrapper > .table-responsive table.dataTable thead tr:first-child th:first-child,
table.dataTable thead tr:first-child th:first-child {
  border-top-left-radius: 11px !important;
}

.datatable-premium-shell table.dataTable thead tr:first-child th:last-child,
.table-responsive table.dataTable thead tr:first-child th:last-child,
.table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child th:last-child,
.dataTables_wrapper table.dataTable thead tr:first-child th:last-child,
.dataTables_wrapper > .table-responsive table.dataTable thead tr:first-child th:last-child,
table.dataTable thead tr:first-child th:last-child {
  border-top-right-radius: 11px !important;
}

.datatable-premium-shell table.dataTable tbody td,
.table-responsive table.dataTable tbody td,
.table-responsive:has(> table.dataTable) table.dataTable tbody td,
.dataTables_wrapper table.dataTable tbody td,
.dataTables_wrapper > .table-responsive table.dataTable tbody td,
table.dataTable tbody td {
  border: 0 !important;
  border-right: 1px solid #eff2f7 !important;
  border-bottom: 1px solid #eff2f7 !important;
  vertical-align: middle;
}

.datatable-premium-shell table.dataTable tbody td:last-child,
.table-responsive:has(> table.dataTable) table.dataTable tbody td:last-child,
.dataTables_wrapper > .table-responsive table.dataTable tbody td:last-child {
  border-right: 0 !important;
}

.datatable-premium-shell table.dataTable tbody tr:last-child td:first-child,
.table-responsive:has(> table.dataTable) table.dataTable tbody tr:last-child td:first-child,
.dataTables_wrapper > .table-responsive table.dataTable tbody tr:last-child td:first-child {
  border-bottom-left-radius: 11px !important;
}

.datatable-premium-shell table.dataTable tbody tr:last-child td:last-child,
.table-responsive:has(> table.dataTable) table.dataTable tbody tr:last-child td:last-child,
.dataTables_wrapper > .table-responsive table.dataTable tbody tr:last-child td:last-child {
  border-bottom-right-radius: 11px !important;
}

.datatable-premium-shell .dt-header-with-filter .dt-filter-mode-trigger {
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(-50%);
  border: 1px solid #d0dbe7 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: #52657d !important;
  opacity: 1 !important;
}

.datatable-premium-shell .dt-header-with-filter .dt-filter-mode-trigger i {
  font-size: 15px !important;
  font-weight: 700;
}

.datatable-premium-shell .dt-header-with-filter .dt-filter-mode-trigger:hover,
.datatable-premium-shell .dt-header-with-filter .dt-filter-mode-trigger.active {
  border-color: var(--bs-primary, var(--dtf-primary)) !important;
  background: var(--bs-primary, var(--dtf-primary)) !important;
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.25);
  color: #fff !important;
}

/* =============================================================
   Merkezi DataTables Sıralama (Sorting) İkonları
   ============================================================= */

/* Eski DataTables pseudo sıralama oklarını tamamen sıfırla */
table.dataTable thead th:before,
table.dataTable thead th:after,
table.dataTable thead td:before,
table.dataTable thead td:after,
table.dataTable thead th.sorting:before,
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:before,
table.dataTable thead th.sorting_desc:after,
table.dataTable thead th.sorting_asc_disabled:before,
table.dataTable thead th.sorting_asc_disabled:after,
table.dataTable thead th.sorting_desc_disabled:before,
table.dataTable thead th.sorting_desc_disabled:after,
table.dataTable thead .dt-filter-row th:before,
table.dataTable thead .dt-filter-row th:after {
  display: none !important;
  content: "" !important;
}

/* Ana Başlık Hücreleri Word-Wrap & Tipografi Düzeni */
table.dataTable thead tr:first-child > th,
table[id].dataTable thead tr:first-child > th,
table[id] thead tr:first-child > th,
.dataTables_wrapper table.dataTable thead tr:first-child > th {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.25 !important;
  vertical-align: middle !important;
}

/* 1. Tüm Sıralanabilir Başlıklar (Yalnızca 1. Satır / Ana Başlıklar - Light Mode Nötr Durum) */
table.dataTable thead tr:first-child > th.sorting,
table.dataTable thead tr:first-child > td.sorting,
table[id].dataTable thead tr:first-child > th.sorting,
table[id].dataTable thead tr:first-child > td.sorting,
table[id] thead tr:first-child > th.sorting,
table[id] thead tr:first-child > td.sorting,
.datatable-premium-shell table.dataTable thead tr:first-child > th.sorting,
.datatable-premium-shell table.dataTable thead tr:first-child > td.sorting,
.table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting,
.dataTables_wrapper table.dataTable thead tr:first-child > th.sorting,
.dataTables_wrapper table.dataTable thead tr:first-child > td.sorting {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V4M3 8L7 4L11 8M17 4v16M13 16L17 20L21 16'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 8px center !important;
  background-size: 13px 13px !important;
  padding-left: 27px !important;
  padding-right: 12px !important;
  text-align: left !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.25 !important;
}

/* Hover Durumu (Daha Koyu Vurgulu) */
table.dataTable thead tr:first-child > th.sorting:hover,
table.dataTable thead tr:first-child > td.sorting:hover,
table[id].dataTable thead tr:first-child > th.sorting:hover,
table[id] thead tr:first-child > th.sorting:hover,
.datatable-premium-shell table.dataTable thead tr:first-child > th.sorting:hover,
.datatable-premium-shell table.dataTable thead tr:first-child > td.sorting:hover,
.table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting:hover,
.dataTables_wrapper table.dataTable thead tr:first-child > th.sorting:hover,
.dataTables_wrapper table.dataTable thead tr:first-child > td.sorting:hover {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V4M3 8L7 4L11 8M17 4v16M13 16L17 20L21 16'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 8px center !important;
  background-size: 13px 13px !important;
  padding-left: 27px !important;
}

/* 2. Artan Sıralama (Ascending - Yukarı Ok Mavi ve Kalın, Aşağı Ok Silik Gri) */
table.dataTable thead tr:first-child > th.sorting_asc,
table.dataTable thead tr:first-child > td.sorting_asc,
table[id].dataTable thead tr:first-child > th.sorting_asc,
table[id] thead tr:first-child > th.sorting_asc,
.datatable-premium-shell table.dataTable thead tr:first-child > th.sorting_asc,
.datatable-premium-shell table.dataTable thead tr:first-child > td.sorting_asc,
.table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting_asc,
.dataTables_wrapper table.dataTable thead tr:first-child > th.sorting_asc,
.dataTables_wrapper table.dataTable thead tr:first-child > td.sorting_asc {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V4M3 8L7 4L11 8' stroke='%232563eb' stroke-width='2.8'/%3E%3Cpath d='M17 4v16M13 16L17 20L21 16' stroke='%2394a3b8' stroke-width='1.8' opacity='0.4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 8px center !important;
  background-size: 13px 13px !important;
  padding-left: 27px !important;
  padding-right: 12px !important;
  text-align: left !important;
}

/* 3. Azalan Sıralama (Descending - Aşağı Ok Mavi ve Kalın, Yukarı Ok Silik Gri) */
table.dataTable thead tr:first-child > th.sorting_desc,
table.dataTable thead tr:first-child > td.sorting_desc,
table[id].dataTable thead tr:first-child > th.sorting_desc,
table[id] thead tr:first-child > th.sorting_desc,
.datatable-premium-shell table.dataTable thead tr:first-child > th.sorting_desc,
.datatable-premium-shell table.dataTable thead tr:first-child > td.sorting_desc,
.table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting_desc,
.dataTables_wrapper table.dataTable thead tr:first-child > th.sorting_desc,
.dataTables_wrapper table.dataTable thead tr:first-child > td.sorting_desc {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V4M3 8L7 4L11 8' stroke='%2394a3b8' stroke-width='1.8' opacity='0.4'/%3E%3Cpath d='M17 4v16M13 16L17 20L21 16' stroke='%232563eb' stroke-width='2.8'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 8px center !important;
  background-size: 13px 13px !important;
  padding-left: 27px !important;
  padding-right: 12px !important;
  text-align: left !important;
}

/* 4. Gelişmiş Filtre Butonu Olan Başlıklar (Sağda Huni Butonu Alanı) */
table.dataTable thead tr:first-child > th.dt-header-with-filter,
table[id].dataTable thead tr:first-child > th.dt-header-with-filter,
table[id] thead tr:first-child > th.dt-header-with-filter,
table.dataTable thead tr:first-child > th[data-filter]:not([data-filter="none"]),
table[id].dataTable thead tr:first-child > th[data-filter]:not([data-filter="none"]),
table[id] thead tr:first-child > th[data-filter]:not([data-filter="none"]),
.datatable-premium-shell table.dataTable thead tr:first-child > th.dt-header-with-filter,
.datatable-premium-shell table.dataTable thead tr:first-child > th[data-filter]:not([data-filter="none"]),
.table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.dt-header-with-filter,
.table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th[data-filter]:not([data-filter="none"]),
.dataTables_wrapper table.dataTable thead tr:first-child > th.dt-header-with-filter,
.dataTables_wrapper table.dataTable thead tr:first-child > th[data-filter]:not([data-filter="none"]) {
  padding-right: 34px !important;
}

/* 5. Dark Mode Sıralama İkonları */
[data-bs-theme="dark"] table.dataTable thead tr:first-child > th.sorting,
[data-bs-theme="dark"] table[id].dataTable thead tr:first-child > th.sorting,
[data-bs-theme="dark"] table[id] thead tr:first-child > th.sorting,
[data-bs-theme="dark"] .datatable-premium-shell table.dataTable thead tr:first-child > th.sorting,
[data-bs-theme="dark"] .table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting,
[data-bs-theme="dark"] .dataTables_wrapper table.dataTable thead tr:first-child > th.sorting,
html[data-theme-preset="macos-dark"] table.dataTable thead tr:first-child > th.sorting,
html[data-theme-preset="macos-dark"] table[id].dataTable thead tr:first-child > th.sorting,
html[data-theme-preset="macos-dark"] table[id] thead tr:first-child > th.sorting,
html[data-theme-preset="macos-dark"] .datatable-premium-shell table.dataTable thead tr:first-child > th.sorting,
html[data-theme-preset="macos-dark"] .table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting,
html[data-theme-preset="macos-dark"] .dataTables_wrapper table.dataTable thead tr:first-child > th.sorting {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V4M3 8L7 4L11 8M17 4v16M13 16L17 20L21 16'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 8px center !important;
  background-size: 13px 13px !important;
  padding-left: 27px !important;
  text-align: left !important;
}

[data-bs-theme="dark"] table.dataTable thead tr:first-child > th.sorting:hover,
[data-bs-theme="dark"] table[id].dataTable thead tr:first-child > th.sorting:hover,
[data-bs-theme="dark"] table[id] thead tr:first-child > th.sorting:hover,
[data-bs-theme="dark"] .datatable-premium-shell table.dataTable thead tr:first-child > th.sorting:hover,
[data-bs-theme="dark"] .table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting:hover,
[data-bs-theme="dark"] .dataTables_wrapper table.dataTable thead tr:first-child > th.sorting:hover,
html[data-theme-preset="macos-dark"] table.dataTable thead tr:first-child > th.sorting:hover,
html[data-theme-preset="macos-dark"] table[id].dataTable thead tr:first-child > th.sorting:hover,
html[data-theme-preset="macos-dark"] table[id] thead tr:first-child > th.sorting:hover,
html[data-theme-preset="macos-dark"] .datatable-premium-shell table.dataTable thead tr:first-child > th.sorting:hover,
html[data-theme-preset="macos-dark"] .table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting:hover,
html[data-theme-preset="macos-dark"] .dataTables_wrapper table.dataTable thead tr:first-child > th.sorting:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V4M3 8L7 4L11 8M17 4v16M13 16L17 20L21 16'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 8px center !important;
  background-size: 13px 13px !important;
  padding-left: 27px !important;
}

[data-bs-theme="dark"] table.dataTable thead tr:first-child > th.sorting_asc,
[data-bs-theme="dark"] table[id].dataTable thead tr:first-child > th.sorting_asc,
[data-bs-theme="dark"] table[id] thead tr:first-child > th.sorting_asc,
[data-bs-theme="dark"] .datatable-premium-shell table.dataTable thead tr:first-child > th.sorting_asc,
[data-bs-theme="dark"] .table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting_asc,
[data-bs-theme="dark"] .dataTables_wrapper table.dataTable thead tr:first-child > th.sorting_asc,
html[data-theme-preset="macos-dark"] table.dataTable thead tr:first-child > th.sorting_asc,
html[data-theme-preset="macos-dark"] table[id].dataTable thead tr:first-child > th.sorting_asc,
html[data-theme-preset="macos-dark"] table[id] thead tr:first-child > th.sorting_asc,
html[data-theme-preset="macos-dark"] .datatable-premium-shell table.dataTable thead tr:first-child > th.sorting_asc,
html[data-theme-preset="macos-dark"] .table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting_asc,
html[data-theme-preset="macos-dark"] .dataTables_wrapper table.dataTable thead tr:first-child > th.sorting_asc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V4M3 8L7 4L11 8' stroke='%2360a5fa' stroke-width='2.8'/%3E%3Cpath d='M17 4v16M13 16L17 20L21 16' stroke='%2364748b' stroke-width='1.8' opacity='0.4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 8px center !important;
  background-size: 13px 13px !important;
  padding-left: 27px !important;
  padding-right: 12px !important;
  text-align: left !important;
}

[data-bs-theme="dark"] table.dataTable thead tr:first-child > th.sorting_desc,
[data-bs-theme="dark"] table[id].dataTable thead tr:first-child > th.sorting_desc,
[data-bs-theme="dark"] table[id] thead tr:first-child > th.sorting_desc,
[data-bs-theme="dark"] .datatable-premium-shell table.dataTable thead tr:first-child > th.sorting_desc,
[data-bs-theme="dark"] .table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting_desc,
[data-bs-theme="dark"] .dataTables_wrapper table.dataTable thead tr:first-child > th.sorting_desc,
html[data-theme-preset="macos-dark"] table.dataTable thead tr:first-child > th.sorting_desc,
html[data-theme-preset="macos-dark"] table[id].dataTable thead tr:first-child > th.sorting_desc,
html[data-theme-preset="macos-dark"] table[id] thead tr:first-child > th.sorting_desc,
html[data-theme-preset="macos-dark"] .datatable-premium-shell table.dataTable thead tr:first-child > th.sorting_desc,
html[data-theme-preset="macos-dark"] .table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting_desc,
html[data-theme-preset="macos-dark"] .dataTables_wrapper table.dataTable thead tr:first-child > th.sorting_desc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V4M3 8L7 4L11 8' stroke='%2364748b' stroke-width='1.8' opacity='0.4'/%3E%3Cpath d='M17 4v16M13 16L17 20L21 16' stroke='%2360a5fa' stroke-width='2.8'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 8px center !important;
  background-size: 13px 13px !important;
  padding-left: 27px !important;
  padding-right: 12px !important;
  text-align: left !important;
}

/* 6. Sıralama Kapalı Kolonlar ve 2. Satır (Filtre Satırı) - ASLA İKON ÇIKMAZ */
table.dataTable thead tr:first-child > th.sorting_disabled,
table.dataTable thead tr:first-child > td.sorting_disabled,
table[id].dataTable thead tr:first-child > th.sorting_disabled,
table[id] thead tr:first-child > th.sorting_disabled,
table.dataTable thead tr:first-child > th[data-filter="none"],
table[id].dataTable thead tr:first-child > th[data-filter="none"],
table[id] thead tr:first-child > th[data-filter="none"],
table.dataTable thead tr:first-child > th.no-sort,
table[id].dataTable thead tr:first-child > th.no-sort,
table[id] thead tr:first-child > th.no-sort,
table.dataTable thead tr:first-child > th.dt-actions-header,
table[id].dataTable thead tr:first-child > th.dt-actions-header,
table[id] thead tr:first-child > th.dt-actions-header,
table.dataTable thead tr.dt-filter-row th,
table.dataTable thead tr.search-input-row th,
table.dataTable thead tr:not(:first-child) th,
.datatable-premium-shell table.dataTable thead tr:first-child > th.sorting_disabled,
.datatable-premium-shell table.dataTable thead tr:first-child > td.sorting_disabled,
.datatable-premium-shell table.dataTable thead tr:first-child > th[data-filter="none"],
.datatable-premium-shell table.dataTable thead tr:first-child > th.no-sort,
.datatable-premium-shell table.dataTable thead tr.dt-filter-row th,
.datatable-premium-shell table.dataTable thead tr.search-input-row th,
.datatable-premium-shell table.dataTable thead tr:not(:first-child) th,
.table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.sorting_disabled,
.table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th[data-filter="none"],
.table-responsive:has(> table.dataTable) table.dataTable thead tr:first-child > th.no-sort,
.table-responsive:has(> table.dataTable) table.dataTable thead tr.dt-filter-row th,
.table-responsive:has(> table.dataTable) table.dataTable thead tr.search-input-row th,
.table-responsive:has(> table.dataTable) table.dataTable thead tr:not(:first-child) th,
.dataTables_wrapper table.dataTable thead tr:first-child > th.sorting_disabled,
.dataTables_wrapper table.dataTable thead tr:first-child > td.sorting_disabled,
.dataTables_wrapper table.dataTable thead tr:first-child > th[data-filter="none"],
.dataTables_wrapper table.dataTable thead tr:first-child > th.no-sort,
.dataTables_wrapper table.dataTable thead tr.dt-filter-row th,
.dataTables_wrapper table.dataTable thead tr.search-input-row th,
.dataTables_wrapper table.dataTable thead tr:not(:first-child) th {
  background-image: none !important;
  cursor: default !important;
  padding-left: 8px !important;
}

/* 2. Satır Filtre Hücreleri Düzeni */
.dt-filter-row > th,
table.dataTable thead tr.dt-filter-row > th,
table.dataTable thead tr.search-input-row > th,
.datatable-premium-shell table.dataTable thead tr.dt-filter-row th,
.datatable-premium-shell table.dataTable thead tr.search-input-row th,
.table-responsive table.dataTable thead tr.dt-filter-row th,
.table-responsive table.dataTable thead tr.search-input-row th {
  padding: 4px 4px !important;
  background: #fbfcfe !important;
  background-image: none !important;
  border-color: #eaedf1 !important;
}

.datatable-premium-shell .dt-filter-control,
.table-responsive .dt-filter-control,
.dataTables_wrapper .dt-filter-control {
  min-height: 32px;
  height: 32px;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #fff !important;
  font-size: 12.5px !important;
  color: #475569;
  padding: 3px 8px !important;
}

/* =============================================================
   DataTables Pagination & Controls Styling
   ============================================================= */
.dataTables_wrapper > .row:last-child {
  margin: 6px 0 4px 0 !important;
  padding: 4px 12px 6px 12px !important;
  align-items: center;
}

.dataTables_wrapper > .row:first-child:not(:last-child) {
  margin: 4px 0 6px 0 !important;
  padding: 4px 12px !important;
  align-items: center;
}

.dataTables_wrapper .pagination {
  margin: 0;
  gap: 4px;
}

.dataTables_wrapper .page-item .page-link {
  border-radius: 6px !important;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  background: #fff;
  transition: all 0.15s ease-in-out;
}

.dataTables_wrapper .page-item.active .page-link {
  background-color: #334155 !important;
  border-color: #334155 !important;
  color: #fff !important;
  font-weight: 600;
}

.dataTables_wrapper .page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

.dataTables_wrapper .page-item.disabled .page-link {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.dataTables_wrapper .dataTables_info {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  padding-top: 0 !important;
}

.dataTables_wrapper .dataTables_length label {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  white-space: nowrap;
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  color: #334155;
  background-color: #f8fafc;
}

/* =============================================================
   Dark Mode & macOS Dark Support
   ============================================================= */
[data-bs-theme="dark"] .datatable-premium-shell,
[data-bs-theme="dark"] .table-responsive table.dataTable,
[data-bs-theme="dark"] .table-responsive:has(> table.dataTable),
[data-bs-theme="dark"] .dataTables_wrapper table.dataTable,
[data-bs-theme="dark"] .dataTables_wrapper > .table-responsive,
[data-theme-mode="dark"] .datatable-premium-shell,
[data-theme-mode="dark"] .table-responsive table.dataTable,
[data-theme-mode="dark"] .dataTables_wrapper table.dataTable,
body[data-layout-mode="dark"] .datatable-premium-shell,
body[data-layout-mode="dark"] .table-responsive table.dataTable,
body[data-layout-mode="dark"] .dataTables_wrapper table.dataTable,
html[data-theme-preset="macos-dark"] .datatable-premium-shell,
html[data-theme-preset="macos-dark"] .table-responsive table.dataTable,
html[data-theme-preset="macos-dark"] .table-responsive:has(> table.dataTable),
html[data-theme-preset="macos-dark"] .dataTables_wrapper table.dataTable,
html[data-theme-preset="macos-dark"] .dataTables_wrapper > .table-responsive,
[data-theme-preset="macos-dark"] .datatable-premium-shell,
[data-theme-preset="macos-dark"] .table-responsive table.dataTable,
[data-theme-preset="macos-dark"] .dataTables_wrapper table.dataTable {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: transparent;
}

[data-bs-theme="dark"] table.dataTable thead th,
[data-bs-theme="dark"] table.dataTable thead.table-light th,
[data-bs-theme="dark"] table.dataTable thead.table-light,
[data-bs-theme="dark"] .datatable-premium-shell table.dataTable thead th,
[data-bs-theme="dark"] .datatable-premium-shell table.dataTable thead .dt-filter-row th,
[data-bs-theme="dark"] .table-responsive table.dataTable thead th,
[data-bs-theme="dark"] .table-responsive:has(> table.dataTable) table.dataTable thead th,
[data-bs-theme="dark"] .dataTables_wrapper table.dataTable thead th,
[data-bs-theme="dark"] .dataTables_wrapper > .table-responsive table.dataTable thead th,
[data-theme-mode="dark"] table.dataTable thead th,
[data-theme-mode="dark"] table.dataTable thead.table-light th,
body[data-layout-mode="dark"] table.dataTable thead th,
body[data-layout-mode="dark"] table.dataTable thead.table-light th,
html[data-theme-preset="macos-dark"] table.dataTable thead th,
html[data-theme-preset="macos-dark"] table.dataTable thead.table-light th,
html[data-theme-preset="macos-dark"] table.dataTable thead.table-light,
html[data-theme-preset="macos-dark"] .datatable-premium-shell table.dataTable thead th,
html[data-theme-preset="macos-dark"] .datatable-premium-shell table.dataTable thead .dt-filter-row th,
html[data-theme-preset="macos-dark"] .table-responsive table.dataTable thead th,
html[data-theme-preset="macos-dark"] .table-responsive:has(> table.dataTable) table.dataTable thead th,
html[data-theme-preset="macos-dark"] .dataTables_wrapper table.dataTable thead th,
html[data-theme-preset="macos-dark"] .dataTables_wrapper > .table-responsive table.dataTable thead th,
[data-theme-preset="macos-dark"] table.dataTable thead th,
[data-theme-preset="macos-dark"] table.dataTable thead.table-light th {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(39, 40, 44, 0.96) !important;
  color: rgba(224, 225, 229, 0.85) !important;
  --bs-table-bg: rgba(39, 40, 44, 0.96) !important;
  --bs-table-color: rgba(224, 225, 229, 0.85) !important;
}

[data-bs-theme="dark"] table.dataTable tbody td,
[data-bs-theme="dark"] .datatable-premium-shell table.dataTable tbody td,
[data-bs-theme="dark"] .table-responsive table.dataTable tbody td,
[data-bs-theme="dark"] .table-responsive:has(> table.dataTable) table.dataTable tbody td,
[data-bs-theme="dark"] .dataTables_wrapper table.dataTable tbody td,
[data-bs-theme="dark"] .dataTables_wrapper > .table-responsive table.dataTable tbody td,
[data-theme-mode="dark"] table.dataTable tbody td,
body[data-layout-mode="dark"] table.dataTable tbody td,
html[data-theme-preset="macos-dark"] table.dataTable tbody td,
html[data-theme-preset="macos-dark"] .datatable-premium-shell table.dataTable tbody td,
html[data-theme-preset="macos-dark"] .table-responsive table.dataTable tbody td,
html[data-theme-preset="macos-dark"] .table-responsive:has(> table.dataTable) table.dataTable tbody td,
html[data-theme-preset="macos-dark"] .dataTables_wrapper table.dataTable tbody td,
html[data-theme-preset="macos-dark"] .dataTables_wrapper > .table-responsive table.dataTable tbody td,
[data-theme-preset="macos-dark"] table.dataTable tbody td {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background-color: var(--datatable-dark-surface, var(--bs-sidebar-bg, #1c2228)) !important;
  color: rgba(232, 233, 236, 0.85) !important;
  --bs-table-bg: var(--datatable-dark-surface, var(--bs-sidebar-bg, #1c2228)) !important;
  --bs-table-color: rgba(232, 233, 236, 0.85) !important;
}

[data-bs-theme="dark"] table.dataTable > tbody > tr:last-child > *,
[data-bs-theme="dark"] .table-bordered > tbody > tr:last-child > *,
[data-bs-theme="dark"] .datatable-premium-shell table.dataTable > tbody > tr:last-child > *,
[data-theme-mode="dark"] table.dataTable > tbody > tr:last-child > *,
body[data-layout-mode="dark"] table.dataTable > tbody > tr:last-child > *,
html[data-theme-preset="macos-dark"] table.dataTable > tbody > tr:last-child > *,
html[data-theme-preset="macos-dark"] .table-bordered > tbody > tr:last-child > *,
[data-theme-preset="macos-dark"] table.dataTable > tbody > tr:last-child > * {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] table.dataTable tbody tr:hover td,
[data-theme-mode="dark"] table.dataTable tbody tr:hover td,
body[data-layout-mode="dark"] table.dataTable tbody tr:hover td,
html[data-theme-preset="macos-dark"] table.dataTable tbody tr:hover td,
[data-theme-preset="macos-dark"] table.dataTable tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.065) !important;
}

[data-bs-theme="dark"] .datatable-premium-shell .dt-header-with-filter .dt-filter-mode-trigger,
[data-bs-theme="dark"] .datatable-premium-shell .dt-filter-control,
[data-bs-theme="dark"] table.dataTable thead .dt-filter-row input,
[data-bs-theme="dark"] table.dataTable thead .dt-filter-row select,
html[data-theme-preset="macos-dark"] .datatable-premium-shell .dt-header-with-filter .dt-filter-mode-trigger,
html[data-theme-preset="macos-dark"] .datatable-premium-shell .dt-filter-control,
html[data-theme-preset="macos-dark"] table.dataTable thead .dt-filter-row input,
html[data-theme-preset="macos-dark"] table.dataTable thead .dt-filter-row select {
  border-color: rgba(255, 255, 255, 0.13) !important;
  background: rgba(20, 22, 26, 0.94) !important;
  color: rgba(225, 226, 230, 0.85) !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .page-item .page-link,
html[data-theme-preset="macos-dark"] .dataTables_wrapper .page-item .page-link {
  background-color: rgba(255, 255, 255, 0.065) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(232, 235, 242, 0.78) !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .page-item.active .page-link,
html[data-theme-preset="macos-dark"] .dataTables_wrapper .page-item.active .page-link {
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #fff !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .page-item:not(.active):not(.disabled) .page-link:hover,
html[data-theme-preset="macos-dark"] .dataTables_wrapper .page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .page-item.disabled .page-link,
html[data-theme-preset="macos-dark"] .dataTables_wrapper .page-item.disabled .page-link {
  background-color: rgba(255, 255, 255, 0.025) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: rgba(232, 235, 242, 0.32) !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_info,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length label,
html[data-theme-preset="macos-dark"] .dataTables_wrapper .dataTables_info,
html[data-theme-preset="macos-dark"] .dataTables_wrapper .dataTables_length label {
  color: rgba(200, 205, 218, 0.65) !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length select,
html[data-theme-preset="macos-dark"] .dataTables_wrapper .dataTables_length select {
  background-color: rgba(25, 26, 30, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(225, 226, 230, 0.85) !important;
}

/* ===================================================
   ColReorder Sürüklenen Başlık Kutusu (Dragged Header)
   =================================================== */
table.DTCR_clonedTable,
table.DTCR_clonedTable.dataTable,
table.DTCR_clonedTable.w-100 {
  width: max-content !important;
  min-width: 0 !important;
  max-width: fit-content !important;
  display: inline-table !important;
  table-layout: auto !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22) !important;
  background-color: #ffffff !important;
  border: 1px solid #ced4da !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  z-index: 99999 !important;
  pointer-events: none !important;
  opacity: 0.95 !important;
}

table.DTCR_clonedTable thead,
table.DTCR_clonedTable tbody,
table.DTCR_clonedTable tr {
  width: auto !important;
}

table.DTCR_clonedTable th {
  white-space: nowrap !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 8px 16px !important;
  text-align: left !important;
  vertical-align: middle !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #495057 !important;
  background-color: #f8fafc !important;
  border: none !important;
}

div.DTCR_pointer {
  width: 2px !important;
  background-color: var(--bs-primary, #556ee6) !important;
  z-index: 99998 !important;
}

[data-bs-theme="dark"] table.DTCR_clonedTable,
[data-bs-theme="dark"] table.DTCR_clonedTable.dataTable,
[data-bs-theme="dark"] table.DTCR_clonedTable.w-100 {
  background-color: #2a3042 !important;
  border-color: #3e4556 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] table.DTCR_clonedTable th {
  background-color: #2a3042 !important;
  color: #f8fafc !important;
}

[data-bs-theme="dark"] div.DTCR_pointer {
  background-color: #60a5fa !important;
}

/* ===================================================
   Global DataTables Context Menu (Sağ Tık Menüsü)
   =================================================== */
.custom-context-menu {
  display: none;
  position: fixed;
  z-index: 999999;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  min-width: 220px;
  max-width: 320px;
  backdrop-filter: blur(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-context-menu .cm-header {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.custom-context-menu .cm-meta-user {
  padding: 6px 16px;
  font-size: 11px;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(248, 250, 252, 0.85);
  line-height: 1.35;
}

.custom-context-menu .cm-meta-user strong {
  color: #1e293b;
  font-weight: 600;
}

.custom-context-menu a,
.custom-context-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  background: transparent;
  border: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.4;
}

.custom-context-menu a:hover,
.custom-context-menu button:hover {
  background: #f1f5f9;
  color: var(--bs-primary, #2563eb);
}

.custom-context-menu a.cm-danger,
.custom-context-menu button.cm-danger {
  color: #ef4444;
}

.custom-context-menu a.cm-danger:hover,
.custom-context-menu button.cm-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.custom-context-menu i,
.custom-context-menu svg {
  width: 20px;
  font-size: 15px;
  margin-right: 10px;
  text-align: center;
  flex-shrink: 0;
}

.custom-context-menu .cm-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

tr.context-menu-active,
tr.context-menu-active > td {
  background-color: #f1f5f9 !important;
}

/* Dark Mode Context Menu */
[data-bs-theme="dark"] .custom-context-menu {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .custom-context-menu .cm-header {
  color: #94a3b8 !important;
  border-bottom-color: #334155 !important;
}

[data-bs-theme="dark"] .custom-context-menu .cm-meta-user {
  color: #94a3b8 !important;
  border-bottom-color: #334155 !important;
  background: rgba(15, 23, 42, 0.6) !important;
}

[data-bs-theme="dark"] .custom-context-menu .cm-meta-user strong {
  color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .custom-context-menu a,
[data-bs-theme="dark"] .custom-context-menu button {
  color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .custom-context-menu a:hover,
[data-bs-theme="dark"] .custom-context-menu button:hover {
  background: #334155 !important;
  color: #818cf8 !important;
}

[data-bs-theme="dark"] .custom-context-menu a.cm-danger,
[data-bs-theme="dark"] .custom-context-menu button.cm-danger {
  color: #f87171 !important;
}

[data-bs-theme="dark"] .custom-context-menu a.cm-danger:hover,
[data-bs-theme="dark"] .custom-context-menu button.cm-danger:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

[data-bs-theme="dark"] .custom-context-menu .cm-divider {
  background: #334155 !important;
}

[data-bs-theme="dark"] tr.context-menu-active,
[data-bs-theme="dark"] tr.context-menu-active > td {
  background-color: #334155 !important;
}

/* ===================================================
   Drag & Drop to Hide Column Overlay (puantoryeni Standard)
   =================================================== */
.table-responsive {
  position: relative !important;
}

.dt-hide-dropzone-overlay {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(254, 242, 242, 0.94);
  border: 2px dashed #dc2626;
  border-radius: 8px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #dc2626;
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  box-shadow: inset 0 0 24px rgba(220, 38, 38, 0.12);
}

[data-bs-theme="dark"] .dt-hide-dropzone-overlay {
  background: rgba(45, 10, 10, 0.95);
  border-color: #f87171;
  color: #f87171;
  box-shadow: inset 0 0 24px rgba(248, 113, 113, 0.2);
}

.dt-hide-dropzone-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.dt-hide-dropzone-overlay i {
  font-size: 36px;
  animation: dtPulse 1.2s infinite alternate ease-in-out;
}

@keyframes dtPulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

th.dt-draggable-header {
  cursor: grab;
}

th.dt-draggable-header:active {
  cursor: grabbing;
}


/* Kart içindeki tablo: dış boşluk/çerçeve yok, tablo kartın kenarına tam oturur */
.card .datatable-premium-shell,
.card .table-responsive:has(table.dataTable),
.card .dataTables_wrapper > .table-responsive {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.card .dataTables_wrapper {
  margin-bottom: 0 !important;
}

.card .dataTables_wrapper > .row,
.card .dataTables_wrapper > .dataTables_info,
.card .dataTables_wrapper > .dataTables_paginate {
  padding: 8px 12px;
}

/* Filtre satırı gelmeden önce yerini ayıran yer tutucu (kayma önleme) */
table.dataTable thead tr.dt-filter-placeholder th {
  height: 42px;
  padding: 0 !important;
}

/* Merkezi veri yükleniyor katmanı (tablo gövdesi) */
div.dataTables_wrapper div.dataTables_processing {
  display: none !important;
}

.dt-loading-host {
  position: relative;
  min-height: 260px;
}

.dt-loading-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(2px);
  animation: dtLoadingIn 0.18s ease both;
}

.dt-loading-spinner {
  width: 2.25rem;
  height: 2.25rem;
  border-width: 0.2rem;
}

.dt-loading-title {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bs-body-color, #212529);
}

.dt-loading-sub {
  font-size: 11px;
  color: var(--bs-secondary-color, #6c757d);
}

[data-bs-theme="dark"] .dt-loading-overlay,
html[data-theme-preset="macos-dark"] .dt-loading-overlay {
  background: rgba(24, 26, 32, 0.88);
}

[data-bs-theme="dark"] .dt-loading-title,
html[data-theme-preset="macos-dark"] .dt-loading-title {
  color: #f1f5f9;
}

@keyframes dtLoadingIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
