.admin-scroll,
.item-list,
.file-list,
.agenda-list,
.route-list,
.users-card .table-wrap,
.api-list {
  max-height: min(62vh, 680px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #b8c9c0 transparent;
  scrollbar-width: thin;
}

/* Het OVTOOLS-woordmerk hoort niet in de ingelogde beheerheader. */
.brand {
  color: var(--ink, #14201b);
  font-weight: 900 !important;
  -webkit-text-stroke: .45px currentColor;
  text-shadow: 0 0 .01px currentColor;
}
.brand > span {
  color: var(--green2, #20b77a);
}
/* Eén vaste paginabreedte op alle beheerpagina's. */
.shell {
  width: 100%;
  max-width: 1480px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 36px 28px 60px !important;
}
.shell > .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.shell > .top > div:first-child {
  min-width: 200px;
}
.shell > .top .brand {
  min-height: 38px;
  display: none;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.4px;
  white-space: nowrap;
}
.shell > .top .brand::before {
  content: "";
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 38px;
  margin-right: 9px;
  background: url("../icons/ovtools-pwa-192.png?v=10") center / contain no-repeat;
}
.shell > .top h1,
.shell > .top .page-title h1 {
  margin-top: 0;
}
.shell > .top h1,
.shell > .top .page-title h1 {
  display: flex;
  align-items: center;
  gap: 11px;
}
.shell > .top h1::before,
.shell > .top .page-title h1::before {
  content: "";
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 42px;
  border: 1px solid #dce6e1;
  border-radius: 12px;
  background: #eef4f1 center / 21px 21px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2314201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E");
}
body:has(.toolbar a[href="agenda.php"].active) .shell > .top h1::before {
  background-color: #f0ecfb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2314201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E");
}
body:has(.toolbar a[href="diensten.php"].active) .shell > .top h1::before {
  background-color: #e9f5fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2314201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M8 13h8M8 17h8M8 9h2'/%3E%3C/svg%3E");
}
body:has(.toolbar a[href="evenementen.php"].active) .shell > .top h1::before {
  background-color: #ffe8f0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2314201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M12 18s-3-1.8-3-4a1.8 1.8 0 0 1 3-1.3A1.8 1.8 0 0 1 15 14c0 2.2-3 4-3 4Z'/%3E%3C/svg%3E");
}
body:has(.toolbar a[href="links.php"].active) .shell > .top h1::before {
  background-color: #fff0ed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2314201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l2-2a5 5 0 0 0-7-7l-1.1 1.1M14 11a5 5 0 0 0-7.5-.5l-2 2a5 5 0 0 0 7 7l1.1-1.1'/%3E%3C/svg%3E");
}
body:has(.toolbar a[href="notificaties.php"].active) .shell > .top h1::before {
  background-color: #e9f5fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2314201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}
body:has(.toolbar a[href="omleidingen.php"].active) .shell > .top h1::before {
  background-color: #fff2dc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2314201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v8H4zM7 14v7M17 14v7M2 10h20M7 6l4 4M13 6l4 4'/%3E%3C/svg%3E");
}
body:has(.toolbar a[href="overig.php"].active) .shell > .top h1::before {
  background-color: #eef4f1;
}
body:has(.toolbar a[href="overzicht.php"].active) .shell > .top h1::before {
  background-color: #e8f8f1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2314201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V9M10 19V5M16 19v-7M22 19H2'/%3E%3C/svg%3E");
}
body:has(.toolbar a[href="routes.php"].active) .shell > .top h1::before {
  background-color: #e9f5fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2314201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='19' r='3'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Cpath d='M8.5 17.5c2-1.2 1.8-3.6 3.7-4.7 1.8-1 3.1-.1 4.2-2.2'/%3E%3C/svg%3E");
}
body:has(.toolbar a[href*="beheer=telegram"].active) .shell > .top h1::before {
  background-color: #e5f7fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2314201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E");
}
body:has(.toolbar a[href="help.php"].active) .shell > .top h1::before {
  content: "?";
  display: grid;
  place-items: center;
  border-color: #cfe1f2;
  background-color: #edf6ff;
  background-image: none;
  color: #246391;
  font-size: 21px;
  font-weight: 800;
}
.admin-scroll::-webkit-scrollbar,
.item-list::-webkit-scrollbar,
.file-list::-webkit-scrollbar,
.agenda-list::-webkit-scrollbar,
.route-list::-webkit-scrollbar,
.users-card .table-wrap::-webkit-scrollbar,
.api-list::-webkit-scrollbar { width: 8px; }
.admin-scroll::-webkit-scrollbar-thumb,
.item-list::-webkit-scrollbar-thumb,
.file-list::-webkit-scrollbar-thumb,
.agenda-list::-webkit-scrollbar-thumb,
.route-list::-webkit-scrollbar-thumb,
.users-card .table-wrap::-webkit-scrollbar-thumb,
.api-list::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #b8c9c0; background-clip: padding-box; }
.item-list > :last-child,
.file-list > :last-child,
.agenda-list > :last-child,
.route-list > :last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .admin-scroll,.item-list,.file-list,.agenda-list,.route-list,.users-card .table-wrap,.api-list { max-height: min(58vh, 580px); }
}

.toolbar {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 2px !important;
  max-width: 100%;
  overflow: visible;
  scrollbar-width: none;
  white-space: nowrap;
}
.toolbar::-webkit-scrollbar { display: none; }
.toolbar a,
.toolbar .nav-link {
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto;
  padding: 0 8px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  vertical-align: middle !important;
}
.toolbar a:any-link,
.toolbar a:hover,
.toolbar a:focus,
.toolbar a:active,
.toolbar a:visited { text-decoration: none !important; }
.toolbar > a:not(.admin-back-site):not(.admin-logout),
.toolbar > .nav-link:not(.admin-back-site):not(.admin-logout) {
  border: 1px solid var(--line, #dce6e1);
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #14201b);
}
.toolbar > a:not(.admin-back-site):not(.admin-logout):hover,
.toolbar > .nav-link:not(.admin-back-site):not(.admin-logout):hover {
  border-color: var(--ink, #14201b);
  background: #fff;
  color: var(--ink, #14201b);
}
.toolbar > a.active:not(.admin-back-site):not(.admin-logout),
.toolbar > .nav-link.active:not(.admin-back-site):not(.admin-logout) {
  border-color: var(--ink, #14201b);
  background: var(--ink, #14201b);
  color: #fff;
}
.toolbar > a:not(:first-child):not(.admin-back-site):not(.admin-logout) {
  position: relative;
  margin-left: 5px;
}
.toolbar > a:not(:first-child):not(.admin-back-site):not(.admin-logout)::before {
  content: "|";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  color: #b7c3bd;
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
}
.toolbar .admin-back-site {
  min-height: 36px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 7px;
  padding: 0 11px !important;
  border: 1px solid #b9dfcd !important;
  border-radius: 10px !important;
  background: #edf9f3 !important;
  color: #11875a !important;
  font-weight: 800;
  text-decoration: none;
}
.toolbar .admin-back-site:hover { border-color: #11875a !important; background: #11875a !important; color: #fff !important; }
.toolbar .admin-back-site svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toolbar .admin-logout {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0 !important;
  justify-content: center;
  border: 1px solid #ecd4d0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #b64135 !important;
  font-size: 0 !important;
  line-height: 0;
  overflow: hidden;
  transition: border-color .18s, background-color .18s, color .18s, transform .18s;
}
.toolbar .admin-logout:hover { border-color: #b64135 !important; background: #b64135 !important; color: #fff !important; transform: translateY(-1px); }
.toolbar .admin-logout svg { display: none; }
.toolbar .admin-logout::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; }
.toolbar .admin-logout::after { content: ""; width: 2px; height: 8px; position: absolute; top: 8px; left: 16px; border-radius: 2px; background: currentColor; }
.toolbar .admin-logout span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (min-width: 901px) {
  .shell > .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .shell > .top > div:first-child {
    min-width: 0;
    grid-row: 2;
  }
  .top > div:first-child .subtitle { white-space: nowrap; }
  .shell > .top .toolbar {
    width: 100%;
    min-width: 0;
    grid-row: 1;
    justify-content: center !important;
  }
}

.diversion-group-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 18px;
  border-bottom: 1px solid #dce8e2;
  background: #f2faf6;
  color: #11875a;
}
.diversion-group-heading strong { font-size: 10px; }
.diversion-group-heading span { font-size: 8px; font-weight: 700; }
.diversion-group-heading.upcoming { border-color: #f0dfba; background: #fff9eb; color: #9a6908; }
.active-badge.upcoming { background: #fff2d8 !important; color: #8c6108 !important; }

/* Agenda: compact link details side by side. */
.agenda-row { grid-template-columns: minmax(220px,.8fr) minmax(180px,.65fr) minmax(445px,1.2fr) auto; }
.feed { display: grid; grid-template-columns: minmax(205px,.48fr) minmax(230px,1fr); gap: 10px; align-items: end; }
.feed .feed-item { display: block; min-width: 0; }
.feed .copy-field { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.feed .code-item .copy-field { grid-template-columns: minmax(125px,1fr) auto; }
.feed input, .feed button { height: 32px; }
.feed .code-field input { color: #14201b; font-size: 11px; font-weight: 800; letter-spacing: .7px; }
.feed button:disabled { cursor: not-allowed; opacity: .45; }

/* Agenda: handmatig vernieuwen en intrekken per koppeling. */
.agenda-actions { display: grid; gap: 6px; }
.agenda-actions form { margin: 0; }
.agenda-actions .refresh {
  height: 36px;
  padding: 0 11px;
  border: 1px solid #cbe7d9;
  border-radius: 9px;
  background: #f0faf5;
  color: #11875a;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

/* Diensten v5: geplande pakketwissels, feestdagen en afwijkende dienstenpakketten. */
.package-card { margin-bottom: 18px; padding: 22px; }
.package-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.package-head small { color: #11875a; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.package-head h2 { margin: 5px 0; font-size: 19px; }
.package-head p { max-width: 760px; margin: 0; color: #66736d; font-size: 10px; line-height: 1.55; }
.package-state { padding: 7px 10px; border-radius: 99px; background: #f0f4f2; color: #66736d; font-size: 9px; font-weight: 850; white-space: nowrap; }
.package-state.scheduled { background: #fff5d8; color: #8a620c; }
.package-state.active { background: #e8f8f1; color: #11875a; }
.package-form { display: grid; grid-template-columns: 1fr minmax(220px,.55fr) auto; gap: 10px; align-items: end; margin-top: 18px; padding: 14px; border-radius: 14px; background: #f2f6f4; }
.package-form label, .split-target { display: grid; gap: 5px; }
.package-form label span, .split-target > span { font-size: 8px; font-weight: 800; }
.package-form input, .split-target select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #dfe7e3; border-radius: 10px; background: white; color: #14201b; font: inherit; font-size: 10px; }
.package-summary { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: center; margin-top: 18px; padding: 14px; border: 1px solid #eadcae; border-radius: 14px; background: #fffaf0; }
.package-summary > div { display: grid; gap: 3px; }
.package-summary span { color: #806519; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.package-summary strong { font-size: 11px; }
.package-summary form { margin: 0; }
.package-error { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff0ed; color: #a43d32; font-size: 10px; }
.package-last { margin: 14px 0 0; color: #66736d; font-size: 10px; }
.split-target { margin-bottom: 12px; padding: 12px; border: 1px solid #d5e5dd; border-radius: 12px; background: #f3f8f5; }
.split-target small { color: #66736d; font-size: 8px; }
.override-card { margin-bottom: 18px; padding: 22px; }
.override-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.override-head small { display: block; margin-bottom: 4px; color: #11875a; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.override-head h2 { margin: 0 0 5px; font-size: 21px; }
.override-head p { margin: 0; color: #66736d; font-size: 12px; }
.override-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: #e8f8f1; color: #14201b; }
.override-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.override-form { display: grid; grid-template-columns: minmax(170px,.7fr) minmax(210px,1fr) auto; align-items: end; gap: 10px; margin-top: 18px; padding: 15px; border-radius: 14px; background: #f0f5f2; }
.override-form label { display: grid; gap: 6px; }
.override-form label > span { font-size: 9px; font-weight: 800; }
.override-form input, .override-form select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #dfe7e3; border-radius: 10px; background: #fff; color: #14201b; font: inherit; font-size: 11px; }
.override-list { display: grid; gap: 8px; margin-top: 14px; }
.override-list article { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid #dfe7e3; border-radius: 12px; }
.override-list time { width: 54px; height: 48px; display: grid; place-content: center; border-radius: 10px; background: #f0ecfb; color: #14201b; text-align: center; }
.override-list time strong { font-size: 15px; line-height: 1; }
.override-list time span { margin-top: 3px; font-size: 7px; font-weight: 800; }
.override-list article > div { display: grid; gap: 2px; }
.override-list article > div > strong { font-size: 11px; text-transform: capitalize; }
.override-list article small { color: #66736d; font-size: 9px; }
.override-list article small b { color: #14201b; }
.override-list .button { min-height: 36px; font-size: 9px; }
.override-empty { margin: 0; padding: 13px; border: 1px dashed #dfe7e3; border-radius: 11px; color: #66736d; font-size: 10px; text-align: center; }

@media (max-width: 1060px) {
  .agenda-row { grid-template-columns: 1fr 1fr; }
  .feed { grid-template-columns: minmax(205px,.48fr) minmax(230px,1fr); }
  .agenda-actions { grid-auto-flow: column; justify-self: end; }
  .override-form { grid-template-columns: 1fr 1fr; }
  .override-form .button { grid-column: 1 / -1; }
  .package-form { grid-template-columns: 1fr 1fr; }
  .package-form .button { grid-column: 1 / -1; }
  .package-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .agenda-row, .feed { grid-template-columns: 1fr; }
  .agenda-actions { grid-auto-flow: row; justify-self: stretch; }
  .agenda-actions .refresh, .agenda-actions .delete { width: 100%; }
  .override-card { padding: 17px; }
  .package-card { padding: 17px; }
  .package-head { display: grid; }
  .package-state { justify-self: start; }
  .package-form, .package-summary { grid-template-columns: 1fr; }
  .package-form .button { grid-column: 1; }
  .package-summary .button { width: 100%; }
  .override-form { grid-template-columns: 1fr; }
  .override-form .button { grid-column: 1; }
  .override-list article { grid-template-columns: 48px minmax(0,1fr); }
  .override-list time { width: 48px; }
  .override-list article > form { grid-column: 2; }
  .override-list article > form .button { width: 100%; }
}

@media (max-width: 900px) {
  .shell { padding: 22px 16px 45px !important; }
  .shell > .top { display: block; }
  .shell > .top > div:first-child { min-width: 0; }
  .shell > .top > div:first-child .subtitle { white-space: normal; }
  .shell > .top .toolbar { justify-content: flex-start !important; margin-top: 18px; }
}

@media (max-width: 560px) {
  .shell > .top .brand { min-height: 34px; font-size: 19px; }
  .shell > .top .brand::before { width: 34px; height: 34px; flex-basis: 34px; }
}

/* Admin shell v2: dezelfde rustige vormentaal als de publieke OVTOOLS-pagina. */
body {
  background:
    radial-gradient(circle at 8% 4%, rgba(71, 185, 132, .10), transparent 24%),
    radial-gradient(circle at 94% 10%, rgba(107, 184, 222, .09), transparent 25%),
    var(--bg, #f4f8f6) !important;
}

.shell {
  max-width: 1480px !important;
  padding-top: 24px !important;
}

.shell > .top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 17px !important;
  margin-bottom: 24px !important;
  padding: 20px 22px 15px !important;
  border: 1px solid rgba(202, 217, 209, .9) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .91) !important;
  box-shadow: 0 18px 45px rgba(25, 61, 44, .07) !important;
  backdrop-filter: blur(16px);
}

.shell > .top > div:first-child {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 14px !important;
  row-gap: 3px !important;
  align-items: center !important;
}

.shell > .top .brand {
  min-height: 38px !important;
  display: flex !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  align-items: center !important;
  padding-right: 15px !important;
  border-right: 1px solid var(--line, #dce6e1) !important;
  font-size: 18px !important;
  letter-spacing: -.4px !important;
}

.shell > .top .brand::before {
  width: 34px !important;
  height: 34px !important;
  flex-basis: 34px !important;
  margin-right: 7px !important;
}

.shell > .top h1,
.shell > .top .page-title h1 {
  min-width: 0 !important;
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  color: var(--ink, #14201b) !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}

.shell > .top h1::before,
.shell > .top .page-title h1::before {
  display: none !important;
}

.shell > .top .subtitle,
.shell > .top > div:first-child > p {
  min-width: 0 !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  color: var(--muted, #66736d) !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

.shell > .top .toolbar {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  grid-row: auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 1px solid #e0e9e4 !important;
  border-radius: 15px !important;
  background: #f1f6f3 !important;
  scrollbar-width: thin;
  scrollbar-color: #b8c9c0 transparent;
}

.shell > .top .toolbar > a,
.shell > .top .toolbar > .nav-link {
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 11px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #435149 !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.shell > .top .toolbar > a:not(.admin-back-site):not(.admin-logout)::before,
.shell > .top .toolbar > .nav-link:not(.admin-back-site):not(.admin-logout)::before {
  display: none !important;
}

.shell > .top .toolbar > a:not(.admin-back-site):not(.admin-logout):hover,
.shell > .top .toolbar > .nav-link:not(.admin-back-site):not(.admin-logout):hover {
  border-color: #d8e4de !important;
  background: rgba(255, 255, 255, .82) !important;
  color: var(--ink, #14201b) !important;
}

.shell > .top .toolbar > a.active:not(.admin-back-site):not(.admin-logout),
.shell > .top .toolbar > .nav-link.active:not(.admin-back-site):not(.admin-logout) {
  border-color: #c9e7d9 !important;
  background: #fff !important;
  color: #11875a !important;
  box-shadow: 0 4px 13px rgba(25, 61, 44, .08), inset 0 -2px #42bd83 !important;
}

.shell > .top .toolbar .admin-back-site {
  margin-left: auto !important;
  border-color: #bee2d0 !important;
  background: #eaf8f1 !important;
  color: #11875a !important;
}

.shell > .top .toolbar .admin-back-site:hover {
  border-color: #11875a !important;
  background: #11875a !important;
  color: #fff !important;
}

.shell > .top .toolbar .admin-logout {
  width: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  border-color: #f0d4cf !important;
  border-radius: 50% !important;
  background: #fff8f6 !important;
  color: #b84b3f !important;
}

/* Gedeelde panelen: iets zachter, ruimer en beter herkenbaar als één systeem. */
.shell > .card,
.shell > .users-card,
.shell .dashboard-grid > .card,
.shell .layout > .card,
.shell .summary-grid > article,
.shell .stats-grid > article {
  border-color: rgba(207, 220, 213, .95) !important;
  border-radius: 20px !important;
  background-color: rgba(255, 255, 255, .95) !important;
  box-shadow: 0 12px 34px rgba(25, 61, 44, .055) !important;
}

@media (max-width: 900px) {
  .shell {
    padding: 14px 12px 42px !important;
  }

  .shell > .top {
    gap: 14px !important;
    padding: 17px 15px 13px !important;
    border-radius: 20px !important;
  }

  .shell > .top .brand {
    min-height: 35px !important;
    padding-right: 12px !important;
    font-size: 17px !important;
  }

  .shell > .top .brand::before {
    width: 31px !important;
    height: 31px !important;
    flex-basis: 31px !important;
  }

  .shell > .top h1,
  .shell > .top .page-title h1 {
    font-size: clamp(21px, 5.5vw, 26px) !important;
  }

  .shell > .top .toolbar {
    margin-top: 0 !important;
  }
}

@media (max-width: 560px) {
  .shell > .top > div:first-child {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 5px !important;
  }

  .shell > .top .brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    margin-bottom: 7px !important;
    padding-right: 0 !important;
    border-right: 0 !important;
  }

  .shell > .top h1,
  .shell > .top .page-title h1 {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .shell > .top .subtitle,
  .shell > .top > div:first-child > p {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  .shell > .top .toolbar {
    margin-right: -3px !important;
    margin-left: -3px !important;
  }

  .shell > .top .toolbar .admin-back-site {
    margin-left: 5px !important;
  }
}

/* Admin shell v3: gecentreerde secties met vaste acties aan de rechterkant. */
.shell > .top .toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: stretch !important;
}

.admin-nav-sections {
  min-width: max-content;
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.admin-nav-actions {
  min-width: max-content;
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-self: end;
  gap: 5px;
}

.admin-nav-sections > a,
.admin-nav-actions > a {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #435149 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.admin-nav-sections > a:hover {
  border-color: #d8e4de !important;
  background: rgba(255, 255, 255, .82) !important;
  color: var(--ink, #14201b) !important;
}

.admin-nav-sections > a.active {
  border-color: #c9e7d9 !important;
  background: #fff !important;
  color: #11875a !important;
  box-shadow: 0 4px 13px rgba(25, 61, 44, .08), inset 0 -2px #42bd83 !important;
}

.admin-nav-actions .admin-back-site {
  margin-left: 0 !important;
}

.admin-nav-actions .admin-logout {
  padding: 0 !important;
  border-radius: 50% !important;
}

/* De overige inhoud gebruikt dezelfde panelen, velden en interactiestaten. */
.shell :where(.card, .package-card, .override-card, .panel, .settings-card, .form-card) {
  border-color: rgba(207, 220, 213, .96) !important;
  border-radius: 20px !important;
  background-color: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 12px 34px rgba(25, 61, 44, .055) !important;
}

.shell :where(.card-head, .panel-head, .section-head) {
  border-color: #e2eae6 !important;
}

.shell :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: #d8e4de;
  border-radius: 11px;
  background-color: #fff;
  color: var(--ink, #14201b);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.shell :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):hover {
  border-color: #bfcfc7;
}

.shell :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  border-color: #42bd83 !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(66, 189, 131, .13) !important;
}

.shell :where(.empty, .empty-state, .search-empty, .override-empty) {
  border-color: #d8e5de !important;
  border-radius: 14px !important;
  background: #f5faf7 !important;
  color: var(--muted, #66736d) !important;
}

.shell :where(.notice, .analytics-message) {
  border-radius: 13px !important;
  box-shadow: 0 8px 24px rgba(25, 61, 44, .045);
}

@media (max-width: 900px) {
  .shell > .top .toolbar {
    grid-template-columns: 0 max-content max-content !important;
    justify-content: start !important;
  }

  .admin-nav-sections {
    justify-content: flex-start;
  }

  .admin-nav-actions {
    justify-self: start;
  }
}
