*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body {
  margin: 0;
  background: #f5f6f8;
  color: #111;
}

img { max-width: 100%; height: auto; }

.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
  overflow-x: hidden; 
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  max-width: 100%;
  overflow-x: hidden;
}

.card--auth {
  max-width: 420px;
  margin: 72px auto 0;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.nav a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav .right {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

h1 {
  font-size: 22px;
  margin: 0 0 12px;
}

h2 {
  font-size: 18px;
  margin: 18px 0 10px;
}

.small {
  font-size: 12px;
  opacity: .75;
}

label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  font: inherit;
}

textarea { min-height: 90px; }

label input[type="checkbox"] {
  width: auto;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 100%;
}

@media (max-width: 800px) {
  .row { grid-template-columns: 1fr; }
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 600px) {
  button { width: 100%; }
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid #eee;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.table-wrap table {
  min-width: 900px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 12px;
}

.error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 10px;
  border-radius: 10px;
}

.actions a,
.actions button {
  margin-right: 8px;
  display: inline-block;
}

.login-logo {
  width: 100%;
  height: 120px;              
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;       
  margin-bottom: 12px;
}

.login-logo-beheer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;     
  display: block;
}

.login-logo-beheer {
  width: 40%;
  height: 50px;              
  display: flex;
  align-items: left;
  justify-content: left;
  overflow: hidden;       
  margin-bottom: 12px;
}

.login-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;     
  display: block;
}

@media (max-width: 600px) {
  .actions a,
  .actions button {
    display: block;
    margin: 6px 0;
    width: 100%;
  }
  .actions form { display: block; }
}