/* Adopt Sideline main styles */
:root {
  --primary-gradient: linear-gradient(135deg, #028B02 0%, #026B02 100%);
  --secondary-gradient: linear-gradient(135deg, #02ab02 0%, #028b02 100%);
  --accent-color: #028b02;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-overlay: rgba(0, 0, 0, 0.35);
  --border-color: #e5e7eb;
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Sideline background with subtle overlay */
  background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('/achtergrond-sideline.avif');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  padding: 24px;
}

/* Central card */
.container {
  max-width: 1100px;
  margin: 28px auto;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  border: 1px solid rgba(2,139,2,0.06);
}

header h1 {
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo p, footer small { color: var(--text-secondary); }

main { padding-top: 12px; }

/* Topbalk: terug (subpagina’s) links, uitloggen rechts */
.dashboard-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 0 16px 0;
  padding: 0;
  gap: 12px;
}

.dashboard-app-bar__start {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex: 1;
  min-width: 0;
}

.dashboard-app-bar .back-button {
  margin-bottom: 0;
}

.dashboard-app-bar .back-button,
.dashboard-app-bar .btn-logout {
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 44px;
  box-sizing: border-box;
}

/* Terug-knop (Sideline: wit met groene rand) */
.back-button {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.back-button:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

/* `hidden` + display: inline-flex op .back-button: zelfde specificiteit → zonder dit blijft de knop zichtbaar */
#dashboardBackBtn[hidden] {
  display: none !important;
}

.back-button__text-short {
  display: none;
}

@media (max-width: 420px) {
  .back-button__text-full {
    display: none;
  }
  .back-button__text-short {
    display: inline;
  }
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid #dc2626;
  color: #dc2626;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-logout:hover {
  border-color: #b91c1c;
  color: #fff;
  background: #dc2626;
}

.btn-logout:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

.btn-logout:focus:not(:focus-visible) {
  box-shadow: none;
}

.btn-logout:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
  box-shadow: none;
}

/* Forms (dashboard toolbar etc.) */
form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
form label { display:flex; flex-direction: column; font-size: 14px; color: var(--text-secondary); }
.form-input,
form input {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  /* min-width: 220px; */
  background: #fbfdff;
}

.form-input:focus,
form input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(2, 139, 2, 0.2);
  background: #ffffff;
}

/* Zorg dat label boven veld/switch staat (ook in modals) */
.form-group .form-label {
  display: block;
  margin-bottom: 0.25rem;
}

/* When login is shown: no big white box — only the small login card is white (like Sideline) */
body.login-page .header { display: none; }
body.login-page .container {
  background: transparent;
  box-shadow: none;
  border: none;
  max-width: none;
  padding: 1rem 24px 2rem;
  margin: 0 auto;
}
body.login-page main { padding-top: 0; }

/* ========== Login screen (Sideline WelcomeScreen look — same sizes) ========== */
.welcome-container.login-welcome {
  width: 100%;
  max-width: 360px;
  margin: 1rem auto 0 auto;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(2, 139, 2, 0.2);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .welcome-container.login-welcome {
    max-width: 400px;
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 1025px) {
  .welcome-container.login-welcome {
    max-width: 420px;
    padding: 3rem 2.5rem;
  }
}

@media (max-width: 480px) {
  body.login-page .container { padding: 0.5rem 1rem 1rem; }
  .welcome-container.login-welcome {
    margin: 0;
    max-width: none;
    width: 100%;
    padding: 1.5rem 1rem;
    border-radius: 24px 24px 0 0;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .welcome-container.login-welcome {
    margin: 0 auto;
    max-width: none;
    width: 100%;
    padding: 2rem 1.5rem;
  }
}

/* ========== Dashboard container: logo + subtitle (zoals Sideline) ========== */
.dashboard-container .team-header {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 0;
}
.dashboard-container .team-header .logo {
  position: static;
  transform: none;
  margin-bottom: 1rem;
  display: block;
}
.dashboard-container .team-header .logo img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.dashboard-container .team-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

/* ========== Dashboard tiles (Sideline-style) ========== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.member-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(2, 139, 2, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 139, 2, 0.1);
}

@media (hover: hover) {
  .member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(2, 139, 2, 0.2);
    border-color: rgba(2, 139, 2, 0.4);
  }
}

.dashboard-item {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(2, 139, 2, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(2, 139, 2, 0.1);
}

@media (hover: hover) {
  .dashboard-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(2, 139, 2, 0.2);
    border-color: rgba(2, 139, 2, 0.4);
    background: rgba(255, 255, 255, 1);
  }
}

.dashboard-item .member-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #00A000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dashboard-item .member-info {
  flex: 1;
}

.dashboard-item .member-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.dashboard-item .member-position {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.dashboard-item .member-actions {
  display: flex;
  gap: 0.5rem;
}

.dashboard-item .action-btn {
  width: 35px;
  height: 35px;
  background: rgba(2, 139, 2, 0.1);
  border: 1px solid rgba(2, 139, 2, 0.2);
  border-radius: 8px;
  color: var(--accent-color);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) {
  .dashboard-item .action-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
  }
}

/* Algemene actie-knoppen (zoals in Sideline) */
.action-btn {
  width: 35px;
  height: 35px;
  background: rgba(2, 139, 2, 0.1);
  border: 1px solid rgba(2, 139, 2, 0.2);
  border-radius: 8px;
  color: var(--accent-color);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) {
  .action-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
  }
}

.table-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.action-btn-delete {
  color: #c0392b;
  background: transparent;
  border-color: rgba(192, 57, 43, 0.3);
}

.action-btn-delete:hover {
  color: #fff;
  background: #c0392b;
  border-color: #c0392b;
}

/* Simple modal (in lijn met Sideline-stijl) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.modal-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  max-width: min-content;
  width: auto;
  box-shadow: 0 20px 30px rgba(0,0,0,0.18);
}

.modal-card-wide {
  max-width: min(980px, 92vw);
  width: min(980px, 92vw);
  max-height: min(86vh, 900px);
  overflow: auto;
}

.modal-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 2;
  padding-bottom: 0.35rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(2, 139, 2, 0.1);
  color: var(--accent-color);
}

.modal-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.modal-actions .btn-primary {
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.team-details-content {
  display: grid;
  gap: 1rem;
  overflow-x: auto;
}

.team-details-block-title {
  margin: 0 0 0.5rem;
  color: var(--accent-color);
  font-size: 1rem;
}

.team-delete-report-content {
  max-height: min(64vh, 560px);
  overflow: auto;
}

.modal-card-delete-report {
  width: min(760px, 92vw);
  max-width: min(760px, 92vw);
  max-height: min(82vh, 760px);
}

.team-delete-report-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.team-delete-report-list li {
  margin: 0.2rem 0;
}

/* Toggle switch for 'Actief' */
.switch {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.switch input {
  display: none;
}

.slider {
  position: relative;
  width: 42px;
  height: 22px;
  background-color: #e5e7eb;
  border-radius: 999px;
  transition: 0.2s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  top: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.switch-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.login-welcome .logo--login {
  position: static;
  transform: none;
  text-align: center;
  margin-bottom: 2rem;
  display: block;
}
.login-welcome .logo--login img {
  height: 70px;
  width: auto;
  margin: 0 auto 0.5rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.welcome-text {
  background: linear-gradient(135deg, #028B02 0%, #02AB02 30%, #02CB02 60%, #028B02 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Dancing Script', cursive;
  font-size: 2.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  animation: gradientShift 2.5s ease-in-out infinite, textFloat 4s ease-in-out infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes textFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.login-welcome #loginForm {
  display: block;
}
.login-welcome .form-group {
  margin-bottom: 1.5rem;
}
.login-welcome .form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.login-welcome .form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-width: 0;
  box-sizing: border-box;
}
.login-welcome .form-input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}
.login-welcome .form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(2, 139, 2, 0.2);
}
.login-button {
  width: 100%;
  background: linear-gradient(135deg, #028B02 0%, #00A000 50%, #028B02 100%);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(2, 139, 2, 0.3);
}
.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 139, 2, 0.4);
  background: linear-gradient(135deg, #00A000 0%, #028B02 50%, #00A000 100%);
}
.login-button:active {
  transform: translateY(0);
}
.login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.login-button:hover::before {
  left: 100%;
}
.login-welcome .error {
  margin-top: 0.75rem;
}
.status-text {
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
  min-height: 1.4em;
}
.status-loading { color: #666; }
.status-error { color: #dc3545; }
.status-warning { color: #b8860b; }
.status-success { color: #28a745; }
.signup-section {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.signup-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
}
.btn { background: #fff; color: var(--text-primary); border: 1px solid var(--border-color); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.btn-primary { background: var(--accent-color); color: #fff; border: 0; box-shadow: 0 6px 14px rgba(2,139,2,0.12); }
.btn-danger { background: #f97316; color: #fff; border: 0; box-shadow: 0 6px 14px rgba(249,115,22,0.12); }

.error { color: #e53e3e; margin-top: 6px; font-size: 13px; }

/* Jump label and hover behavior */
.jump-label { color: var(--accent-color); font-weight: 600; margin-right: 6px; }
.btn-primary:hover { filter: brightness(0.95); transform: translateY(-1px); transition: all 120ms ease; }
.btn-primary:active { transform: translateY(0); }

.toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom: 12px; }
.toolbar button { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); padding: 8px 10px; border-radius: 8px; }
.toolbar .btn-primary { background: var(--accent-color) !important; color: #fff !important; border: 0 !important; box-shadow: 0 6px 14px rgba(2,139,2,0.12) !important; }
.toolbar .btn-danger { background: #f97316 !important; color: #fff !important; border: 0 !important; box-shadow: 0 6px 14px rgba(249,115,22,0.12) !important; }

/* Toolbar sections */
.toolbar-left { display:flex; gap:8px; align-items:center; }
.toolbar-right { display:flex; gap:8px; align-items:center; flex-wrap:nowrap; }
.toolbar-right input { min-width:200px; max-width:420px; padding:8px 10px; border-radius:8px; border:1px solid var(--border-color); }

/* Table toolbar: search + pagination op één lijn */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.table-toolbar-left {
  min-width: 0;
}

.table-toolbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-start;
  min-width: 260px;
}

.table-toolbar-center--teams {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.teams-toolbar-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.table-toolbar-center input {
  min-width: 200px;
  max-width: 360px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.table-toolbar-center--teams .teams-toolbar-primary input {
  min-width: 160px;
}

.table-toolbar-right .pagination {
  margin: 0;
}

.table-toolbar-right {
  flex-basis: 100%;
}

.teams-bulk-filters {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px 16px;
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.teams-bulk-filters-heading {
  flex: 0 0 auto;
  min-width: 3.25rem;
  padding-top: 2px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.teams-bulk-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 1.25rem;
  flex: 1;
  min-width: 0;
}

.teams-bulk-filter-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
  min-width: 0;
  line-height: 1.35;
}

.teams-bulk-filter-item input {
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.teams-bulk-delete-btn {
  margin-left: 0;
  margin-top: 0;
}

/* Popup voortgang massaal verwijderen (boven andere modals) */
.teams-bulk-delete-progress-modal {
  z-index: 5000;
}

.teams-bulk-delete-progress-card {
  min-width: min(420px, 92vw);
  max-width: 92vw;
}

.teams-bulk-delete-progress-card h3 {
  margin-bottom: 0.35rem;
}

.teams-bulk-delete-progress-detail {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  min-height: 1.35em;
}

.teams-bulk-delete-progress-track {
  width: 100%;
  height: 12px;
  border-radius: 8px;
  background: #e6e8eb;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.teams-bulk-delete-progress-bar-inner {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
  transition: width 0.15s ease-out;
}

.teams-bulk-delete-progress-pct {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Voortgang tijdens teamlijst laden (GET /api/teams) */
.teams-list-loading-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 10px;
  padding: 0 0.15rem;
}

.teams-list-loading-wrap[hidden] {
  display: none !important;
}

.teams-list-loading-track {
  flex: 1;
  min-width: 120px;
  height: 8px;
  border-radius: 6px;
  background: #e6e8eb;
  overflow: hidden;
}

.teams-list-loading-bar {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, #026B02 0%, #02ab02 100%);
  transition: width 0.2s ease-out;
}

.teams-list-loading-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 3.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.aanmelddatum-inline-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-left: 0.25rem;
}

.pagination-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* Logo image styling */
.logo img { display:block; height:56px; width:auto; border-radius:8px; }
.header { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 48px; }
.header .logo { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; }
.header .logo h1 { margin: 0; }

/* Teams table matching Sideline look */
.teams {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.teams thead th {
  background: linear-gradient(180deg, #fbfffb, #f6fff6);
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(2,139,2,0.06);
}
.teams thead th.th-actions {
  font-weight: 600;
}
.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
}
.th-sort:hover {
  color: var(--accent-color);
}
.th-sort:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
.th-sort .sort-icon {
  font-size: 0.85em;
  opacity: 0.95;
}

/* Team-overzicht headers iets compacter zodat extra kolommen netjes passen */
#teams-table thead th {
  padding: 8px 6px;
}

#teams-table .th-sort {
  font-size: 0.76rem;
  gap: 3px;
  line-height: 1.2;
}

#teams-table .th-sort .sort-icon {
  font-size: 0.72rem;
}
.th-sort .sort-icon--muted {
  color: var(--text-secondary);
  opacity: 0.45;
}
.th-sort--active .sort-icon {
  color: var(--accent-color);
  opacity: 1;
}
.teams th, .teams td {
  padding: 12px;
  border-bottom: 1px solid #f3f6f3;
  font-size: 14px;
  color: var(--text-primary);
  text-align: left;
  vertical-align: top;
}
.teams tbody tr:hover { background: #fbfff8; }

/* Horizontaal scrollen op smalle schermen i.p.v. tabel squashen */
.teams-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.teams-table-scroll .teams {
  min-width: 760px;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
}

.muted { color: var(--text-secondary); font-size: 13px; }

/* Titel subpagina’s in Sideline-groen */
#teams-page > h2,
#stats-view > h2,
#activiteiten-view > h2,
#teambeheer-view > h2 {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Meldingen: zelfde kop als Sideline .step-header h2 */
#meldingen-view > h2 {
  color: var(--accent-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#meldingen-view .meldingen-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

#meldingen-view .meldingen-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: stretch;
}

.meldingen-subheading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.meldingen-list-panel .meldingen-list {
  min-width: 0;
}

/* Meldingen-tabel gebruikt .teams (zelfde als Sideline / teams-overzicht) */

.meldingen-table__tekst {
  max-width: 14rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.meldingen-table__acties {
  white-space: nowrap;
}

.meldingen-table__acties .table-actions {
  justify-content: flex-start;
}

.meldingen-table__actief {
  vertical-align: top;
  white-space: nowrap;
  text-align: left;
}

.meldingen-table__switch {
  margin: 0;
  justify-content: flex-start;
}

/* Meldingen-formulier: zelfde vormgeving als Sideline (components.css .form-input / .form-label) */
#meldingen-form.meldingen-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 40rem;
}

#meldingen-form .meldingen-form-row--dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 520px) {
  #meldingen-form .meldingen-form-row--dates {
    grid-template-columns: 1fr;
  }
}

#meldingen-form .meldingen-form-row--dates .form-group {
  margin-bottom: 0;
}

#meldingen-form .form-group {
  margin-bottom: 1.5rem;
}

#meldingen-form .form-group:last-of-type {
  margin-bottom: 0;
}

#meldingen-form .meldingen-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

#meldingen-form .meldingen-form-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
}

#meldingen-form .form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

#meldingen-form input.form-input,
#meldingen-form textarea.form-input {
  width: 100%;
  min-width: 0;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

#meldingen-form textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

#meldingen-form input.form-input::placeholder,
#meldingen-form textarea.form-input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

#meldingen-form input.form-input:focus,
#meldingen-form textarea.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgb(2 139 2 / 0.1);
  transform: translateY(-1px);
  background: var(--bg-primary);
}

#meldingen-form input.form-input[type='date'] {
  padding-right: 2.5rem;
  cursor: pointer;
  text-align: left;
}

#meldingen-form input.form-input[type='date']::-webkit-calendar-picker-indicator {
  display: block;
  cursor: pointer;
  opacity: 0.8;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.25rem;
}

#meldingen-form input.form-input[type='date']::-webkit-inner-spin-button,
#meldingen-form input.form-input[type='date']::-webkit-clear-button {
  display: none;
}

#meldingen-form input.form-input[type='date']::-moz-calendar-picker-indicator {
  display: block;
  cursor: pointer;
  opacity: 0.8;
  width: 1.25rem;
  height: 1.25rem;
}

.switch--melding {
  margin-top: 0.15rem;
}

#meldingen-view .switch-label {
  font-size: 0.95rem;
}

.pagination { margin: 12px 0; display:flex; gap:8px; align-items:center; }
.pagination button { background: #fff; border: 1px solid var(--border-color); color: var(--text-primary); padding: 8px 10px; border-radius: 8px; cursor: pointer; }

/* Page buttons */
.page-btn {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination .page-btn--active {
  background: var(--accent-color) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 6px 14px rgba(2,139,2,0.12);
}
.pagination .page-arrow {
  background: var(--accent-color) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 6px 14px rgba(2,139,2,0.12);
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-ellipsis { display:inline-flex; align-items:center; justify-content:center; padding:6px 10px; color:var(--text-secondary); }
.page-btn:disabled, .page-arrow:disabled { opacity: 0.5; cursor: default; pointer-events: none; }

.pagination-jump input[type='number'] {
  max-width: 72px;
}

footer { margin-top: 16px; text-align:center; color: var(--text-secondary); font-size: 13px; }

/* ========== Responsive (Sideline: kleine schermen = wit, full-width, geen zware rand) ========== */

@media (max-width: 768px) {
  body {
    padding: 0;
    background-attachment: scroll;
  }

  @media (hover: none) and (pointer: coarse) {
    button,
    .btn,
    .th-sort,
    .dashboard-item,
    .action-btn,
    .back-button,
    .btn-logout {
      touch-action: manipulation;
    }
  }

  .container {
    margin: 0 auto;
    padding: 16px 14px 20px;
    max-width: none;
    border-radius: 0;
    min-height: 100vh;
    min-height: 100dvh;
  }

  main {
    padding-top: 8px;
  }

  .dashboard-app-bar {
    flex-wrap: wrap;
    row-gap: 8px;
    margin-bottom: 12px;
  }

  .dashboard-app-bar__start {
    flex: 1 1 auto;
    min-width: 0;
  }

  .dashboard-app-bar .back-button,
  .dashboard-app-bar .btn-logout {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .members-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .dashboard-item,
  .member-card {
    padding: 1.1rem;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .table-toolbar-left,
  .table-toolbar-center,
  .table-toolbar-right {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  /* Zoekveld en Reset op één lijn (naast elkaar) */
  .table-toolbar-center {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .table-toolbar-center input {
    flex: 1;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .table-toolbar-center .btn {
    width: auto;
    flex-shrink: 0;
    justify-content: center;
  }

  .table-toolbar-center.table-toolbar-center--teams {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
  }

  .teams-toolbar-primary {
    flex-wrap: wrap;
  }

  .teams-bulk-filters-grid {
    grid-template-columns: 1fr;
  }

  .table-toolbar-right .pagination {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .pagination-row {
    justify-content: center;
  }

  #pagination-top.pagination,
  #pagination-bottom.pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .pagination .page-btn,
  .pagination .page-arrow {
    min-height: 40px;
    min-width: 40px;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: flex-start;
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  #meldingen-form.meldingen-form {
    max-width: none;
  }

  #activiteiten-view .activiteiten-block,
  #stats-view {
    max-width: none;
  }

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

@media (max-width: 480px) {
  /* Sideline: op telefoon effen achtergrond, geen fixed hero-image */
  body {
    background-image: none;
    background-color: var(--bg-primary);
  }

  body.login-page {
    background-color: var(--bg-primary);
  }

  .container {
    padding: 12px 12px 16px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    box-shadow: none;
    border: none;
  }

  body.login-page .container {
    padding: 0.5rem 12px 1rem;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .welcome-container.login-welcome {
    border-radius: 16px;
    margin-top: 0.5rem;
  }

  .dashboard-container .team-header {
    margin-bottom: 1.25rem;
  }

  .dashboard-container .team-subtitle {
    font-size: 1rem;
  }

  .teams th,
  .teams td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .th-sort {
    gap: 4px;
    font-size: 12px;
  }

  #teams-page > h2,
  #stats-view > h2,
  #activiteiten-view > h2,
  #meldingen-view > h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  #meldingen-view > h2 {
    font-size: 1.35rem;
  }

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

  .stats-kpi {
    font-size: 1.35rem;
  }

  .btn-logout {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  #clear-search-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 8px;
    min-height: 36px;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.1);
  }

  #clear-search-btn i {
    font-size: 0.8rem;
  }

  .pagination .pagination-jump {
    flex-basis: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
  }

  .pagination-jump input[type='number'] {
    min-height: 40px;
    box-sizing: border-box;
  }

  .modal-card-wide {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 16px);
    padding: 0.9rem 0.9rem 1rem;
    border-radius: 12px;
  }

  .modal-card-wide .modal-header {
    gap: 0.5rem;
    margin-bottom: 0.4rem;
  }

  .modal-card-wide h3 {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .modal-card-wide .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .modal-card-delete-report {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 16px);
  }
}

/* Mobile menu overlay and hamburger */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 92%;
  height: 100%;
  background: var(--bg-primary);
  box-shadow: -8px 0 30px rgba(0,0,0,0.12);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}
.menu-overlay.open { transform: translateX(0); }
.menu-inner { padding: 18px; display:flex; flex-direction:column; gap:12px; }
.menu-nav { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.menu-nav .nav-btn { text-align:left; padding:12px 14px; border-radius:8px; border:1px solid var(--border-color); background:#fff; }
.menu-nav .nav-btn.active { background: linear-gradient(90deg, rgba(2,139,2,0.12), rgba(2,139,2,0.06)); }
.menu-nav .nav-btn:hover { background: #f6fff6; }
.menu-nav .nav-btn:focus { outline: 2px solid rgba(2,139,2,0.12); }

#menu-btn { display: inline-flex; align-items:center; justify-content:center; padding:8px 10px; border-radius:8px; }

/* Sideline-like hamburger menu styles */
.hamburger-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--accent-color);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.hamburger-lines { display:flex; flex-direction:column; gap:4px; }
.hamburger-lines span { width:18px; height:2px; background: var(--accent-color); display:block; border-radius:2px; }
.hamburger-menu .menu-text { font-weight:600; color:var(--text-primary); }

.hamburger-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 2000;
  display:flex;
  align-items: stretch;
}
.hamburger-menu-content {
  width: 320px;
  max-width: 92%;
  background: var(--bg-primary);
  border-radius: 0 12px 12px 0;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.menu-header { display:flex; justify-content:space-between; align-items:center; }
.menu-header h3 { margin:0; color:var(--text-primary); }
.close-menu { background:transparent; border:0; font-size:18px; cursor:pointer; }
.menu-items { margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.menu-option { padding:10px 12px; border-radius:8px; cursor:pointer; border:1px solid var(--border-color); background:#fff; }
.menu-option:hover { background:#f6fff6; }
.logout-option { color: #e53e3e; border-color: rgba(229,62,62,0.1); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  #menu-btn { display: inline-flex; align-items:center; justify-content:center; padding:8px 10px; border-radius:8px; }
  .logo { position: static; transform: none; margin: 0 auto 8px auto; }
  .header { display:flex; flex-direction:column; align-items:center; gap:8px; }
  .toolbar { width:100%; }
}

/* ========== Statistieken stijl ========== */
.stats-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 0.75rem;
}

.stats-empty-hint {
  margin: 0;
  padding: 0.75rem 1rem;
  background: rgba(2, 139, 2, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(2, 139, 2, 0.15);
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stats-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  border: 1px solid rgba(2,139,2,0.12);
}

/* Statistieken: venster (30 dagen / all time) in Sideline-groen */
.stats-range-em {
  color: var(--accent-color);
  font-weight: 600;
}

.stats-card-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.stats-card-title .stats-range-em {
  display: block;
  line-height: 1.2;
}

.stats-kpi {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.15rem;
}

.stats-kpi-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.stats-section .teams-table-scroll {
  margin-top: 0.5rem;
}

.stats-section h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--accent-color);
}

.stats-section h3.stats-section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.stats-section-heading-main {
  color: var(--accent-color);
  line-height: 1.25;
}

.stats-section-heading-sub {
  display: block;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.25;
}

.stats-section h3.stats-section-heading > .stats-range-em {
  display: block;
  line-height: 1.25;
}

.stats-section h3.stats-section-heading.stats-section-heading--one-line {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.stats-section h3.stats-section-heading.stats-section-heading--one-line > .stats-range-em {
  display: inline;
  line-height: inherit;
}

.stats-section-heading-sub .stats-range-em {
  display: inline;
  font-weight: 600;
}

h4.stats-subheading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin: 1.25rem 0 0.5rem;
  line-height: 1.4;
  max-width: 100%;
}

.stats-daily-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.35rem 0 0.75rem;
}

.stats-daily-toolbar__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

select.form-input.stats-daily-select {
  width: auto;
  min-width: 9rem;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
}

.stats-daily-custom {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.stats-daily-custom[hidden] {
  display: none !important;
}

input.form-input.stats-daily-input {
  width: 5rem;
  min-height: 36px;
  padding: 0.45rem 0.5rem;
  font-size: 0.9rem;
}

.stats-daily-apply {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .stats-daily-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  select.form-input.stats-daily-select {
    width: 100%;
  }
  .stats-daily-custom {
    width: 100%;
  }
  input.form-input.stats-daily-input {
    flex: 1;
    min-width: 0;
    width: auto;
  }
}

/* Statistiek- en activiteitentabellen: zelfde .teams-stijl + footerrij */
.teams tfoot tr.stats-table-foot th,
.teams tfoot tr.stats-table-foot td {
  padding: 12px;
  border-top: 2px solid rgba(2, 139, 2, 0.2);
  border-bottom: none;
  background: rgba(2, 139, 2, 0.06);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.teams tfoot tr.stats-table-foot th {
  text-align: left;
}

.stat-bar {
  height: 8px;
  border-radius: 999px;
  background: #ecfdf3;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.stats-loading {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Teambeheer (dashboard) */
.teambeheer-dashboard-root .teambeheer-section {
  margin-bottom: 1.1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.teambeheer-dashboard-root .teambeheer-section h3 {
  font-size: 1rem;
  margin: 0 0 0.65rem;
  color: var(--text-primary);
}

.teambeheer-dashboard-root .teambeheer-dl {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) 1fr;
  gap: 0.3rem 0.85rem;
  font-size: 0.88rem;
}

.teambeheer-dashboard-root .teambeheer-dl dt {
  font-weight: 600;
  color: var(--text-secondary);
}

.teambeheer-dashboard-root .teambeheer-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.teambeheer-dashboard-root .teambeheer-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.5rem;
}

.teambeheer-dashboard-root .teambeheer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.teambeheer-dashboard-root .teambeheer-table th,
.teambeheer-dashboard-root .teambeheer-table td {
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.4rem;
  text-align: left;
  vertical-align: middle;
}

.teambeheer-dashboard-root .teambeheer-table th {
  background: #f3f4f6;
  white-space: nowrap;
}

.teambeheer-dashboard-root .teambeheer-error {
  color: #b91c1c;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.teambeheer-dashboard-root .teambeheer-settings-form {
  margin-bottom: 1rem;
}

.teambeheer-dashboard-root .teambeheer-settings-sub {
  font-size: 0.95rem;
  margin: 1rem 0 0.5rem;
  color: var(--text-primary);
}

.teambeheer-dashboard-root .teambeheer-settings-hint {
  font-size: 0.82rem;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.teambeheer-dashboard-root .teambeheer-settings-hint code {
  font-size: 0.78rem;
}

/* Tabellen beheer (tabelbeheer-dashboard-ui.js) */
.tb-intro {
  max-width: 52rem;
  margin-bottom: 1rem;
}
.tb-toolbar {
  margin-bottom: 1rem;
}
.tb-toolbar-label {
  font-weight: 600;
  font-size: 0.88rem;
}
.tb-toolbar .form-input,
.tb-filter-row .form-input {
  min-width: 12rem;
  margin-top: 0.25rem;
}
.tb-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.tb-filter-label {
  font-size: 0.85rem;
  font-weight: 600;
}
.tb-related-fieldset {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--bg-secondary);
}
.tb-related-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.tb-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  align-items: stretch;
  width: 100%;
  max-width: 56rem;
}
@media (max-width: 900px) {
  .tb-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .tb-related-grid {
    grid-template-columns: 1fr;
  }
}
.tb-related-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  font-size: 0.86rem;
  cursor: pointer;
  min-width: 0;
}
.tb-related-name {
  font-family: ui-monospace, 'Consolas', monospace;
  font-size: 0.82rem;
  color: var(--text-primary);
  word-break: break-word;
  min-width: 0;
}
.tb-related-row .tb-related-cb {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent-color);
}
.tb-block {
  margin-bottom: 1.5rem;
}
.tb-block--indent {
  margin-left: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-color);
}
.tb-block-title {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  font-family: 'Poppins', sans-serif;
}
.tb-table-wrap {
  max-width: 100%;
}
.tb-cell {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.tb-trunc {
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

