* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f9;
  color: #1f2937;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #0f172a;
  color: #fff;
  padding: 24px;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}

.sidebar nav a:hover {
  background: #1e293b;
  color: #fff;
}

.content {
  flex: 1;
  padding: 28px;
}

h1, h2 {
  margin-top: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.kpi-label {
  font-size: 14px;
  color: #64748b;
}

.kpi-value {
  font-size: 34px;
  font-weight: 700;
  margin-top: 8px;
}

.kpi.danger {
  border-left: 6px solid #dc2626;
}

.kpi.warning {
  border-left: 6px solid #f59e0b;
}

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

.table th,
.table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.btn,
button {
  display: inline-block;
  background: #0f766e;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}

.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}

button:hover,
.btn:hover {
  opacity: 0.92;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.geldig,
.badge.actief {
  background: #dcfce7;
  color: #166534;
}

.badge.verloopt_binnenkort {
  background: #fef3c7;
  color: #92400e;
}

.badge.verlopen {
  background: #fee2e2;
  color: #991b1b;
}

.badge.ontbreekt,
.badge.onbekend {
  background: #e5e7eb;
  color: #374151;
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.15);
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.muted {
  color: #64748b;
}

.small {
  font-size: 12px;
}

@media (max-width: 1000px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .cards,
  .cards.two,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}


.grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.actions-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.top-gap {
  margin-top: 16px;
}

.btn.secondary {
  background: #475569;
}

.danger-btn {
  background: #b91c1c;
}

.badge.inactief,
.badge.geblokkeerd {
  background: #e5e7eb;
  color: #374151;
}

.cards .kpi.success {
  border-left: 6px solid #16a34a;
}

.grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.btn.secondary {
  background: #475569;
}

.danger-btn {
  background: #b91c1c;
}

.actions-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.actions-inline form {
  margin: 0;
}

.badge.niet_inzetbaar {
  background: #fee2e2;
  color: #991b1b;
}

.badge.inzetbaar {
  background: #dcfce7;
  color: #166534;
}

.badge.neutral {
  background: #e2e8f0;
  color: #334155;
}

.inline-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tiny-muted {
  color: #64748b;
  font-size: 12px;
  margin-top: 4px;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
}

.check-item input {
  width: auto;
}

.status-list {
  display: grid;
  gap: 14px;
}

@media (max-width: 1000px) {
  .grid-3,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar-user { margin-bottom: 18px; padding: 10px 12px; background: #111827; border-radius: 10px; }
.alert.success { background: #dcfce7; color: #166534; padding: 12px; border-radius: 12px; margin-bottom: 16px; }
.kpi.success { border-left: 6px solid #16a34a; }
.cards.four-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiny-muted { color: #64748b; font-size: 12px; margin-top: 6px; }
.inline-badges, .actions-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn.secondary { background: #475569; }
.btn.danger-btn, .danger-btn { background: #b91c1c; }
.badge.neutral { background: #e2e8f0; color: #334155; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.filter-actions { display: flex; align-items: end; gap: 8px; }
@media (max-width: 1000px) {
  .cards.four-compact, .grid-3 { grid-template-columns: 1fr; }
}
