/* Behin Tarım — ortak Excel tipi tablo görünümü */
:root {
  --excel-table-border: #9fb4c5;
  --excel-table-inner-border: #b5c5d2;
  --excel-table-head: #dcecf8;
  --excel-table-head-strong: #cfe3f2;
  --excel-table-hover: #b7d9f3;
}

.table-wrap,
.data-table-container {
  border: 1px solid var(--excel-table-border) !important;
  border-radius: 4px !important;
}

/* Sayfa özel sınıfı ne olursa olsun tüm veri tablolarında aynı hücre düzeni. */
table {
  border-collapse: collapse !important;
}

table th,
table td {
  border: 1px solid var(--excel-table-inner-border) !important;
  text-align: center !important;
  vertical-align: middle !important;
}

table thead th,
table tr:first-child > th {
  background: linear-gradient(180deg, var(--excel-table-head), var(--excel-table-head-strong)) !important;
  color: #17324f !important;
}

/* Açık mavi yerine daha belirgin Excel satır vurgusu. */
table tbody tr:hover > td,
table tbody tr:hover > th {
  background: var(--excel-table-hover) !important;
}

/* Hücre içindeki veri girişleri de Excel gibi ortalı görünür. */
table td input:not([type="checkbox"]):not([type="radio"]),
table td select,
table td textarea,
table th input:not([type="checkbox"]):not([type="radio"]),
table th select {
  text-align: center !important;
  text-align-last: center;
}

table td .button-row,
table td .compact-actions,
table td .inline-actions,
table td .action-row {
  justify-content: center !important;
}

/* Sayısal hücreleri sağa çeken eski yardımcı sınıfları ortak görünümde ortala. */
.data-table td[data-type="number"],
.data-table th[data-type="number"],
table .u-text-right,
table .text-right,
table .money-cell,
table .quantity-value {
  text-align: center !important;
}

@media (max-width: 780px) {
  table th,
  table td {
    text-align: center !important;
  }
}
