.layout {
  --sidebar-width: clamp(212px,18vw,260px);
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0,1fr);
  grid-template-rows: auto 1fr;
  background: radial-gradient(ellipse at 95% 0, #e8f0f2, transparent 45%), #f4f6f7;
}
.layout .top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: clamp(12px, 1.6vw, 28px);
  padding: 8px clamp(18px,2vw,35px);
  border-bottom: 1px solid #cdd9df;
  background: linear-gradient(108deg, #f9fbfa, #eff4f6 66%, #eef4f3);
}
.workspace-brand { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.workspace-brand img { display: block; width: clamp(114px, 11vw, 162px); height: auto; mix-blend-mode: multiply; }
.workspace-account { display: flex; align-items: center; gap: 5px; }
.workspace-profile > summary {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 13px;
  color: #344d59; font-size: .91rem; font-weight: 600; text-decoration: none; white-space: nowrap; list-style: none;
}
.workspace-profile > summary::-webkit-details-marker { display: none; }
.workspace-profile > summary:hover { background: #e4ecef; border-radius: 7px; }
.top .workspace-profile { padding: 0; border: 0; position: relative; }
.workspace-profile > div {
  position: absolute; z-index: 9; top: calc(100% + 8px); background: #fff; padding: 20px;
  box-shadow: 0 12px 35px #21364124; border: 1px solid #d7e0e4; border-radius: 14px;
}
.start-links h2 { margin: 0 0 8px; color: #516773; font-size: .84rem; font-weight: 650; }
.workspace-profile a { display: block; padding: 8px; border-radius: 6px; color: #233f50; font-size: .91rem; text-decoration: none; }
.workspace-profile a:hover { background: #edf3f5; }
.workspace-sidebar {
  min-width: 0; border-right: 1px solid #cbd8dd;
  background: linear-gradient(160deg,#eaf0f2 0%,#e2ebee 65%,#e8eff0);
}
.workspace-nav { position: sticky; top: 0; display: grid; gap: 4px; padding: 24px 12px; max-height: 100dvh; overflow: auto; }
.workspace-nav a {
  display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 9px 12px; border-radius: 8px;
  color: #324f5d; font-size: .94rem; line-height: 1.32; font-weight: 540; text-decoration: none;
}
.workspace-nav a:first-child { margin-bottom: 9px; }
.workspace-nav a:hover { background: #d8e4e8; color: #173a4a; }
.workspace-nav a[aria-current] { color: #fff; font-weight: 650; background: linear-gradient(105deg,#254653,#305966); }
.nav-mark { width: 16px; height: 16px; flex: none; position: relative; display: inline-block; color: inherit; }
.nav-mark::before,.nav-mark::after { content: ""; position: absolute; box-sizing: border-box; }
.nav-mark[data-mark="start"]::before { inset: 1px auto auto 1px; width: 6px; height: 6px; background: currentColor; border-radius: 1px; box-shadow: 8px 0,0 8px,8px 8px; }
.nav-mark[data-mark="overzicht-relaties"]::before { inset: 0 auto auto 2px; width: 6px; height: 6px; border: 1.5px solid; border-radius: 50%; box-shadow: 7px 1px 0 -1px currentColor; }
.nav-mark[data-mark="overzicht-relaties"]::after { inset: 8px 5px 1px 0; border: 1.5px solid; border-radius: 8px 8px 2px 2px; box-shadow: 5px 0 0 -1px currentColor; }
.nav-mark[data-mark="overzicht-verhuur"]::before { inset: 1px 0 2px; border: 1.5px solid; border-radius: 2px; }
.nav-mark[data-mark="overzicht-verhuur"]::after { inset: 5px 3px auto; height: 2px; background: currentColor; box-shadow: 0 4px; }
.nav-mark[data-mark="overzicht-magazijn"]::before { inset: 1px 0; border: solid; border-width: 0 1.5px 1.5px; border-radius: 0 0 2px 2px; }
.nav-mark[data-mark="overzicht-magazijn"]::after { inset: 2px 3px auto; height: 4px; border: 1.5px solid; box-shadow: 0 6px 0 -1px; }
.nav-mark[data-mark="overzicht-verkoop"]::before { inset: 1px 3px 5px 0; border: 1.5px solid; border-radius: 4px 4px 4px 0; }
.nav-mark[data-mark="overzicht-verkoop"]::after { inset: 6px 0 1px 6px; border: solid; border-width: 0 1.5px 1.5px 0; border-radius: 0 0 0 3px; }
.nav-mark[data-mark="overzicht-uitvoering"]::before { inset: 2px 0 0; border: 1.5px solid; border-radius: 2px; }
.nav-mark[data-mark="overzicht-uitvoering"]::after { inset: 6px 0 auto; border-top: 1.5px solid; }
.nav-mark[data-mark="overzicht-inkoop"]::before { inset: 2px 0 1px; border: 1.5px solid; border-radius: 2px; }
.nav-mark[data-mark="overzicht-inkoop"]::after { inset: 2px 5px auto; height: 5px; border: solid; border-width: 0 1.5px 1.5px; }
.nav-mark[data-mark="overzicht-techniek"]::before { inset: 4px 0 0 4px; border: 1.5px solid; border-radius: 2px; }
.nav-mark[data-mark="overzicht-techniek"]::after { inset: 1px 4px 4px 1px; border: solid; border-width: 1.5px 0 0 1.5px; border-radius: 2px; }
.nav-mark[data-mark="overzicht-administratie"]::before { inset: 0 2px; border: 1.5px solid; border-radius: 2px; }
.nav-mark[data-mark="overzicht-administratie"]::after { inset: 5px 5px auto; height: 1px; background: currentColor; box-shadow: 0 4px; }
.layout .nav-toggle { display: none; }
.nav-toggle i { width: 14px; height: 10px; border-block: 1.5px solid; position: relative; }
.nav-toggle i::after { content: ""; position: absolute; inset: 3px 0 auto; border-top: 1.5px solid; }
.layout .top .find-trigger {
  margin-left: auto; margin-right: 0; min-height: 38px; padding: 5px 12px; gap: 8px; background: #ffffff85;
  border-color: #cdd9de; border-radius: 24px; font-size: .86rem; color: #435b68; font-weight: 500;
}
.find-trigger i { position: relative; width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 50%; margin-right: 3px; }
.find-trigger i::after { content: ''; position: absolute; top: 10px; left: 9px; height: 6px; border-left: 1.6px solid; transform: rotate(-45deg); }
.workspace-account { gap: 8px; }
.layout .workspace-account > select { width: auto; min-height: 38px; font-size: .88rem; color: #243e4b; border: 1px solid transparent; background-color: transparent; padding: 5px 2px; }
.layout .workspace-account #company { color: var(--accent); font-weight: 700; }
.layout .workspace-account select:hover { border-color: #c7d4da; background-color: #fff9; }
.workspace-profile > summary { min-width: 42px; padding: 7px; letter-spacing: 2px; }
.workspace-profile > div { right: 0; width: min(260px, 88vw); display: grid; gap: 14px; color: #233f50; font-size: .92rem; }
.layout .workspace-profile label { display: grid; gap: 6px; }
.workspace-profile .nav-legacy { margin: 0; }
.layout .body { min-width: 0; width: 100%; max-width: 1510px; margin: 0 auto; padding: clamp(22px, 3vw, 44px) clamp(20px, 3vw, 52px) 50px; }
.layout .pagehead small a { color: inherit; text-underline-offset: 3px; }
.layout .pagehead { margin: 0 0 clamp(20px,2vw,30px); gap: 16px; }
.layout .pagehead h1 { margin-top: 5px; }
.layout :where(a,button,summary,input,select,textarea):focus-visible { outline: 2px solid #326c80; outline-offset: 2px; }
.layout .panel { padding: clamp(18px,2vw,30px); }
.layout .entry-panel { padding-block: 5px; }
.layout .panel > h2 { margin-bottom: 18px; }
.layout .erpform { gap: 15px 18px; }
.layout .wb-register > header,.layout .wb-search,.layout .wb-colnames,.layout .wb-row,.layout .wb-list-foot { padding-inline: clamp(14px,1.6vw,24px); }
.layout .wb-row { min-height: 59px; }
.layout .wb-inspector { padding: clamp(16px,1.7vw,26px); }
.erp-materials { scroll-margin-block-start: 18px; }
.start-desk {
  display: grid; grid-template-columns: minmax(0,2fr) minmax(215px,.8fr); overflow: hidden; border: 1px solid #d0dce0; border-radius: 18px;
  background: linear-gradient(115deg, #e5eff1, #f6f8f6 66%, #edf3f0); box-shadow: 0 5px 22px #213c4810;
}
.start-task { padding: clamp(24px,3.6vw,56px); background: radial-gradient(ellipse at 98% 110%, #c2dddc85, transparent 63%); }
.start-task-content { max-width: 650px; }
.start-label { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; font-size: .86rem; font-weight: 650; color: #3c626b; }
.start-label::before { content: ''; border-radius: 50%; width: 8px; height: 8px; background: #498277; }
.start-task h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.14; letter-spacing: -.04em; }
.start-context { margin: 12px 0 0; font-size: .97rem; font-weight: 600; color: #385765; }
.start-detail { margin: 10px 0 21px; max-width: 54ch; line-height: 1.55; color: #475f69; }
.start-go { gap: 15px; min-height: 44px; padding: 9px 16px; background: linear-gradient(110deg,#224756,#295f68); }
.start-links { margin: clamp(24px,3.6vw,56px) 0; align-self: center; padding: 4px clamp(22px,3vw,44px); border-left: 1px solid #cad9d9; }
.start-links a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; border-bottom: 1px solid #d6e0df; text-decoration: none; color: #284851; font-weight: 600; }
.start-links a:last-child { border: 0; }
.start-links a:hover { color: #0e6875; text-decoration: underline; }
.start-links a span { font-size: .86rem; color: #607e84; }
.start-queue { margin-top: clamp(23px,3vw,40px); }
.start-queue header,.start-queue-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.start-queue header { margin: 0 0 9px; }
.start-queue h2 { margin: 0; font-size: 1.12rem; letter-spacing: -.02em; }
.start-queue a { color: #2c5262; text-decoration: none; }
.start-queue header a { padding-block: 9px; font-size: .88rem; font-weight: 600; }
.start-queue-row { border-top: 1px solid #d2dde1; padding: 13px 2px; }
.start-queue-row:hover { background: #eaf0f2; }
.start-queue-row > span:first-child { display: grid; gap: 3px; }
.start-queue-row small,.start-queue-row > span:last-child { font-size: .85rem; color: #536c77; }
.start-queue-row i { font-style: normal; margin-left: 8px; }
.layout .workspace-account > select {
  appearance: none; padding-right: 18px;
  background-image: linear-gradient(45deg,transparent 50%,#6c818a 50%),linear-gradient(135deg,#6c818a 50%,transparent 50%);
  background-position: right 8px center,right 4px center; background-size: 4px 4px; background-repeat: no-repeat;
}
@media(max-width:1050px) {
  .layout .top { gap: 10px; }
  .find-trigger kbd { display: none; }
}
@media(max-width:850px) {
  .layout { display: block; }
  .layout .top { display: grid; grid-template-columns: 1fr auto; gap: 0 6px; padding: 5px clamp(12px,3vw,25px) 0; }
  .workspace-brand { grid-area: 1 / 1; }
  .workspace-account { grid-area: 1 / 2; justify-self: end; gap: 3px; }
  .layout .nav-toggle { display: inline-flex; align-items: center; justify-self: start; grid-area: 2 / 1; min-height: 44px; gap: 9px; padding: 5px 10px; color: #294956; border-color: transparent; }
  .layout .top .find-trigger { grid-area: 2 / 2; z-index: 1; justify-self: end; min-height: 40px; margin-block: 2px; }
  .layout .top { position: relative; }
  .workspace-sidebar { position: relative; height: 0; border: 0; z-index: 6; }
  .workspace-sidebar:not([data-open]) { display: none; }
  .workspace-nav { position: absolute; top: 0; left: 10px; width: min(290px,calc(100vw - 20px)); gap: 2px; padding: 9px; border: 1px solid #cbd8dd; border-radius: 0 0 12px 12px; background: #eff4f5; box-shadow: 0 12px 24px #17334626; max-height: calc(100dvh - 100px); }
  .workspace-nav a:first-child { margin-bottom: 3px; }
  .workspace-profile a { min-height: 44px; }
  .layout .workspace-account select, .workspace-profile > summary { min-height: 44px; }
  .layout .body { padding: 23px clamp(14px,3vw,26px) 38px; }
  .layout .panel { padding: 17px; }
}
@media(max-width:620px) {
  .start-desk { grid-template-columns: minmax(0,1fr); }
  .start-task { padding: 25px 21px; }
  .start-links { margin: 0 21px; border: 0; border-top: 1px solid #cad9d9; padding: 19px 0 10px; }
  .workspace-brand img { width: clamp(74px,24vw,112px); }
  .layout .top .find-trigger { font-size: .82rem; padding-inline: 9px; }
  .layout .pagehead { margin-bottom: 18px; }
  .layout .body .wb-registers a { padding: 10px 12px; }
}
@media(max-width:360px) {
  .layout .top .find-trigger { font-size: 0; width: 42px; }
  .workspace-account { gap: 0; }
  .layout .workspace-account > select { max-width: 27vw; font-size: .81rem; }
}
@media print { .layout { display: block; } .layout .workspace-sidebar,.layout .top { display: none; } .layout .body { max-width: none; padding: 0; } }
