/* =========================
   GLOBAL
========================= */
:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body {
  margin: 0;
  background: #0f1115;
  color: #e7e7e7;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px;
}

/* =========================
   TOPBAR / NAV
========================= */
.topbar {
  background: #151924;
  border-bottom: 1px solid #242a3a;
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: .4px;
  padding-right: 10px;
}

.nav a,
.nav .menu-btn {
  padding: 8px 12px;
  border-radius: 12px;
  background: #1b2130;
  border: 1px solid #2a3246;
  cursor: pointer;
  white-space: nowrap;
}

.nav a:hover,
.nav .menu-btn:hover {
  background: #222a3c;
}

/* =========================
   MENU
========================= */
.menu {
  position: relative;
}

.menu-content {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #151924;
  border: 1px solid #2a3246;
  border-radius: 14px;
  min-width: 220px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  overflow: hidden;
}

.menu-content a {
  display: block;
  padding: 10px 14px;
}

.menu-content a:hover {
  background: #1b2130;
}

.menu:hover .menu-content {
  display: block;
}

/* =========================
   LAYOUT / HELPERS
========================= */
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */
.btn {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #2a3246;
  background: #1b2130;
  color: #fff;
  cursor: pointer;
  display: inline-block;
}

.btn:hover {
  background: #222a3c;
}

.btn.secondary {
  background: #141a27;
}

.btn.danger {
  background: #3a1b1b;
  border-color: #6a2b2b;
}

.btn.small {
  padding: 6px 10px;
  font-size: .9rem;
}

/* =========================
   FORMS
========================= */
input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #2a3246;
  background: #0f1115;
  color: #e7e7e7;
}

label {
  display: block;
  margin: 10px 0;
}

.form {
  max-width: 900px;
}

/* =========================
   TABLES (VENSTRESTILLET)
========================= */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th,
.table td {
  padding: 14px;
  border-bottom: 1px solid #242a3a;
  vertical-align: top;
  text-align: left; /* ← VIGTIG */
  vertical-align: middle;
}

.table thead th {
  font-weight: 800;
  background: #151924;
  white-space: nowrap;
}

.table tr:hover td {
  background: #121722;
}

/* Wrapper der styrer scroll */
.table-wrapper {
  max-height: calc(100vh - 260px); /* justér efter topbar + filtre */
  overflow-y: auto;
  overflow-x: auto;
}

/* Sticky tabel-header */
.table thead th {
  position: sticky;
  top: 0;
  z-index: 10;

  background: #151924;     /* VIGTIGT – ellers bliver den gennemsigtig */
  border-bottom: 2px solid #2a3246;
}

/* Gør header lidt tydeligere */
.table thead th {
  box-shadow: 0 2px 0 rgba(0,0,0,.4);
}


/* =========================
   CARDS
========================= */
.cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.card {
  border: 1px solid #2a3246;
  background: #151924;
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 200px;
}

/* =========================
   FOOTER
========================= */
.footer {
  opacity: .6;
  font-size: .9rem;
  padding: 18px 0;
}

/* =========================
   SMALL FIXES
========================= */
.line-status-select {
  min-width: 160px;
}


.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}

.action-buttons form {
  margin: 0;
}
