/* Labor App — Styles */

* { box-sizing: border-box; }

body {
  background: #111827;
  color: #f9fafb;
  font-family: Inter, system-ui, sans-serif;
  margin: 0;
}

#app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Tabelle ──────────────────────────────────────── */
#table-wrap {
  flex: 1;
  overflow: auto;
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

thead th {
  position: sticky;
  top: 0;
  background: #1f2937;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #374151;
  white-space: nowrap;
  user-select: none;
}

tbody tr {
  border-left-width: 4px;
  border-left-style: solid;
}

tbody tr:hover td { background: rgba(55,65,81,0.3); }

td {
  padding: 0.4rem 0.75rem;
  vertical-align: middle;
}

/* ── Scrollbar ────────────────────────────────────── */
#table-wrap::-webkit-scrollbar { width: 6px; height: 6px; }
#table-wrap::-webkit-scrollbar-track { background: #1f2937; }
#table-wrap::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }

/* ── Select ──────────────────────────────────────── */
select {
  background: #1f2937;
  color: #d1d5db;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  outline: none;
}
select:focus { border-color: #3b82f6; }


/* ── Sortierbare Spaltenköpfe ─────────────────────── */
th[data-sort] { cursor: pointer; }
th[data-sort]:hover { color: #e5e7eb; }

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 640px) {
  thead th, tbody td { padding: 0.35rem 0.5rem; }
  table { font-size: 0.75rem; }
}
