body {
  font-family: -apple-system, BlinkMacSystemFont, Arial;
  background-color: #d1d1d6;
  margin: 0;
  font-size: 14px;

  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px;

  background-color: #f2f2f7;
  border-bottom: 1px solid #c7c7cc;

  position: sticky;
  top: 0;
  z-index: 10;
}

/* ✅ exakt gleiche Größe wie h2 */
.header-left {
  font-size: 16px;
  font-weight: bold;
}

/* ✅ Datum bleibt normal */
.header-right {
  font-size: 14px;
  font-weight: normal;
  color: #3a3a3c;
}

/* LAYOUT */
.layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* LEFT */
.left {
  width: 60%;
  padding: 15px;
  overflow: auto;
}

/* RIGHT */
.right {
  width: 40%;
  padding: 15px;
  background-color: #d1d1d6;
  border-left: 1px solid #c7c7cc;
  overflow: auto;
}

/* ✅ NEU – BUTTON BAR */
.action-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.action-bar button {
  background-color: #007aff;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* TITLES */
h2 {
  margin-top: 0;
  font-size: 16px; /* ✅ Referenzgröße */
}

/* CARDS */
.card {
  background-color: #f2f2f7;
  border-radius: 6px;
  padding: 10px;
}

/* DETAILS */
.details {
  background-color: #d6e8ff;
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
}

.details.empty {
  color: #6e6e73;
}

/* TABLE */
.table-wrapper {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}

th, td {
  padding: 6px;
  border-top: 1px solid #d2d2d7;
  white-space: nowrap;
  text-align: left;
}

/* HOVER */
tbody tr:hover {
  background-color: #eef5ff;
  cursor: pointer;
}

/* ACTIVE */
tbody tr.active {
  background-color: #d6e8ff;
}

/* ACTION FIX */
th.fixed,
td.fixed {
  position: sticky;
  right: 0;
  background-color: #f2f2f7;
  min-width: 140px;
}

/* BUTTONS */
td.fixed {
  display: flex;
  gap: 6px;
}

button {
  background-color: #007aff;
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

button.reject {
  background-color: #ff3b30;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 8px;
  font-size: 12px;
  color: #6e6e73;
  border-top: 1px solid #c7c7cc;
}
