/* ================================
   DataTables – global minimalist style
   ================================ */

/* Grundtabelle */
table.dataTable {
  width: 100%;
  border-collapse: collapse;
  background: transparent; /* KEIN Hintergrund */
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* ---------- Header ---------- */
table.dataTable thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cbd5e1; /* slate-300 */
  border-bottom: 1px solid #1e293b; /* dünne Linie */
  background: transparent; /* kein extra Hintergrund */
  position: relative;
}

/* Sortiericons */
table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
  font-family: FontAwesome;
  position: absolute;
  right: 0.75rem;
  font-size: 0.7rem;
}

table.dataTable thead th.sorting::after {
  content: "\f0dc"; /* ≡ */
  color: #475569; /* slate-600 */
}
table.dataTable thead th.sorting_asc::after {
  content: "\f0de"; /* ↑ */
  color: #ffe681;
}
table.dataTable thead th.sorting_desc::after {
  content: "\f0dd"; /* ↓ */
  color: #ffe681;
}

/* ---------- Body ---------- */
table.dataTable tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1e293b; /* dünne graue Linie */
  font-size: 0.9rem;
}

/* alle Zeilen gleicher Hintergrund = wie Tailwind UI */
table.dataTable tbody tr {
  background: transparent; /* NO extra Hintergrund */
}

/* Hover = ganz leicht */
table.dataTable tbody tr:hover {
  background: rgba(255,255,255,0.03); /* nur ein leichter Overlay */
  transition: background 0.15s ease;
}

/* leere Tabelle */
table.dataTable tbody td.dataTables_empty {
  text-align: center;
  color: #94a3b8;
  font-style: italic;
  padding: 1.5rem;
}

/* ================================
   Filter + Length
   ================================ */

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  color: #cbd5e1; /* slate-300 */
  font-size: 0.85rem;
}

/* Dropdown + Suche */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background: transparent; /* kein Hintergrundkasten */
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  outline: none;
}

.dataTables_wrapper .dataTables_filter input {
  min-width: 160px;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #ffe681;
  box-shadow: 0 0 0 1px rgba(250,204,21,0.4);
}

/* ================================
   Pagination
   ================================ */
.dataTables_wrapper .dataTables_paginate {
  text-align: right;
  margin-top: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: transparent;
  border: 1px solid transparent;
  color: #e2e8f0 !important;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(255,255,255,0.05);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #ffe681;
  color: #000 !important;
}

/* ================================
   Inline-Action Dropdown (Edit/Löschen)
   ================================ */


.dropdown-trigger {
  position: relative;
}

.inline-action-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;

  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  padding: 0.25rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);

  transform-origin: top;
  transform: scaleY(0.9);
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  transition: 0.15s ease;
  z-index: 40;
}

.inline-action-menu.open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
  max-height: 200px;
}

.inline-action-menu button {
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.5rem;
}
