:root {
  font-family: Arial, sans-serif;
  color-scheme: light dark;
  background: #111;
  color: #eee;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111;
  color: #eee;
  overflow-x: hidden;
}

main {
  width: min(100%, 1150px);
  margin: 0 auto;
  padding: 24px;
}

h1 {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-top: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #aaa;
  font-size: 14px;
}

.topbar form {
  margin: 0;
}

.card {
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  margin: 12px 0;
}

button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  color: #111;
  background: #f2f2f2;
  white-space: normal;
}

button:hover {
  filter: brightness(1.1);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.secondary-button {
  min-height: 36px;
  padding: 8px 12px;
  background: #2a2a2a;
  color: #eee;
  border: 1px solid #444;
}

.login-main {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.login-card {
  width: min(100%, 420px);
  margin: 0 auto;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  color: #ccc;
  font-weight: bold;
}

.login-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 12px;
  background: #111;
  color: #eee;
  font: inherit;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.status-grid p {
  margin: 0;
  padding: 10px;
  background: #151515;
  border: 1px solid #333;
  border-radius: 8px;
  min-width: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

td,
th {
  border-bottom: 1px solid #333;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.negative {
  color: #ff6b6b;
  font-weight: bold;
}

.positive {
  color: #90ee90;
}

.hint {
  color: #aaa;
  font-size: 13px;
  line-height: 1.45;
}

.error {
  color: #ff6b6b;
  font-weight: bold;
}

.mobile-hint {
  background: #242014;
  border: 1px solid #665321;
  border-radius: 8px;
  color: #f5df9a;
  margin-bottom: 18px;
  padding: 14px;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

.active-filter {
  font-weight: bold;
  outline: 2px solid #90ee90;
}

.current-slot {
  background: rgba(144, 238, 144, 0.12);
}

@media (max-width: 640px) {
  main {
    padding: 14px;
  }

  h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .card {
    padding: 14px;
  }

  .button-row {
    flex-direction: column;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar button {
    width: 100%;
  }

  button {
    width: 100%;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 13px;
  }

  .decisions-table {
    min-width: 0;
  }

  .decisions-table thead {
    display: none;
  }

  .decisions-table,
  .decisions-table tbody,
  .decisions-table tr,
  .decisions-table td {
    display: block;
    width: 100%;
  }

  .decisions-table tr {
    border-bottom: 1px solid #333;
    padding: 10px 0;
  }

  .decisions-table td {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 0;
    padding: 5px 0;
  }

  .decisions-table td::before {
    color: #aaa;
    font-weight: bold;
  }

  .decisions-table td:nth-child(1)::before {
    content: "Tijd";
  }

  .decisions-table td:nth-child(2)::before {
    content: "Actie";
  }

  .decisions-table td:nth-child(3)::before {
    content: "Prijs";
  }

  .decisions-table td:nth-child(4)::before {
    content: "Status";
  }

  .decisions-table td:nth-child(5)::before {
    content: "Reden";
  }
}
