/* ===================================================
   Allgemeines Tabellenverhalten verbessern
   =================================================== */
table.dataTable {
  width: 100% !important;
  table-layout: auto;
}

table.dataTable td,
table.dataTable th {
  white-space: normal;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: fit-content;
  min-width: 10px;
}

/* Responsive DataTables Verhalten aktivieren */
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
  top: 14px;
  left: 14px;
  height: 14px;
  width: 14px;
  display: block;
  position: absolute;
  color: white;
  border: 2px solid #007bff;
  border-radius: 14px;
  box-shadow: 0 0 3px #aaa;
  background-color: #007bff;
  text-align: center;
  line-height: 14px;
  font-size: 12px;
  content: '+';
}
.container {
  width: 100%;
  max-width: none;
}

/* ===================================================
   Responsive Fallback für sehr kleine Screens
   =================================================== */
@media screen and (max-width: 767px) {
  table.dataTable thead {
    display: none;
  }

  table.dataTable,
  table.dataTable tbody,
  table.dataTable tr,
  table.dataTable td {
    display: block;
    width: 100% !important;
  }

  table.dataTable tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 4px;
    background: #fff;
  }

  table.dataTable td {
    text-align: left;
    padding: 0.5rem;
    position: relative;
    white-space: normal;
    overflow: visible;
  }

  table.dataTable td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 10px;
    font-weight: bold;
    white-space: normal;
  }

  table.dataTable td input[type="text"],
  table.dataTable td input[type="search"],
  table.dataTable td input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
  }
  

}