/* Projectoverzicht, klantkaart, statussen, WhatsApp, Vandaag en de overige schermen */
/* Project grid */
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-2);
  align-items: center;
}
.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}
.lg-free {
  border: 1.5px solid var(--line-2);
  background: var(--surface);
}
.floor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floor h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.floor h4 span {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 13px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 6px;
}
.tile {
  min-height: 58px;
  border-radius: 8px;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: var(--ink);
  min-width: 0;
}
.tile b {
  font-size: 15px;
  font-weight: 700;
}
.tile small {
  font-size: 11px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile:hover {
  border-color: var(--ink);
}
.tile.opt {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.tile.opt small {
  color: rgba(12, 10, 9, 0.75);
}
.tile.sold {
  background: var(--sold-bg);
  border-color: var(--sold-bg);
  color: var(--sold-fg);
}
.tile.sold small {
  color: var(--sold-fg);
  opacity: 0.75;
}
.tile.hot small {
  color: var(--bad);
  font-weight: 700;
}
.tile.dim {
  opacity: 0.25;
}
.unit-pop {
  position: fixed;
  z-index: 60;
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 70vh;
  overflow-y: auto;
}
.unit-pop .kvr {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  gap: 10px;
}
.unit-pop .kvr span {
  color: var(--ink-3);
}
.mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.mini button {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 0;
  background: none;
  padding: 6px 4px;
  border-radius: 6px;
  text-align: left;
  width: 100%;
}
.mini button:hover {
  background: var(--hover);
}

/* Record page */
.rec-h {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rec-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.rec-top .t {
  flex: 1;
  min-width: 220px;
}
.rec-top h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.rec-top .sub {
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 2px;
}
.hl-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.hl-fields span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.hl-fields b {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.hl-fields select {
  padding: 4px 8px;
  width: auto;
}
.path-wrap {
  overflow-x: auto;
  padding: 2px 0;
}
.path {
  display: flex;
  min-width: 760px;
}
.pth {
  flex: 1;
  border: 0;
  background: var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 6px 9px 18px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  margin-right: -8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pth:first-child {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  border-radius: 999px 0 0 999px;
  padding-left: 12px;
}
.pth:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
  border-radius: 0 999px 999px 0;
  margin-right: 0;
}
.pth.done {
  background: var(--ok-bg);
  color: var(--ok);
}
.pth.cur {
  background: var(--accent);
  color: var(--accent-ink);
}
.pth.lost {
  background: var(--bad-bg);
  color: var(--bad);
}
.pth:hover {
  filter: brightness(0.97);
}
.deals {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.deal {
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  text-align: left;
}
.deal b {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.deal.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background: var(--hover);
}
.rec-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  padding: 0 12px;
}
.tab {
  border: 0;
  background: none;
  padding: 12px 12px;
  font-weight: 600;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab.on {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cmp-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cmp-tabs .chip svg {
  width: 14px;
  height: 14px;
}
.fg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.fg label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  min-width: 0;
}
.fg .full {
  grid-column: 1/-1;
}
textarea {
  min-height: 76px;
  resize: vertical;
}
.tl {
  display: flex;
  flex-direction: column;
}
.tl-m {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 16px 0 8px;
}
.tl-i {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 6px 0;
  position: relative;
}
.tl-i::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 38px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}
.tl-i:last-child::before {
  display: none;
}
.tl-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--line);
  color: var(--ink-2);
}
.tl-ic svg {
  width: 15px;
  height: 15px;
}
.tl-ic.call {
  background: var(--ok-bg);
  color: var(--ok);
}
.tl-ic.mail {
  background: var(--info-bg);
  color: var(--info);
}
.tl-ic.meet {
  background: var(--surface-2);
  color: var(--accent-text);
}
.tl-ic.task {
  background: var(--ok-bg);
  color: var(--ok);
}
.tl-ic.note {
  background: var(--warn-bg);
  color: var(--warn);
}
.tl-c b {
  font-weight: 600;
  font-size: 14px;
}
.tl-c small {
  color: var(--ink-3);
  font-size: 12px;
  display: block;
}
.tl-c p {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ptag {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink-2);
  margin-left: 6px;
  vertical-align: 1px;
}
.blk {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blk-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.blk-h b {
  font-weight: 600;
  font-size: 16px;
}
/* Een project in Instellingen: dichtgeklapt totdat je erop klikt, zodat je niet langs 8 andere hoeft te scrollen */
.proj-set {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
}
.proj-set + .proj-set {
  margin-top: 10px;
}
.proj-set summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  list-style: none;
}
.proj-set summary::-webkit-details-marker {
  display: none;
}
.proj-set summary::before {
  content: '▸';
  display: inline-block;
  width: 14px;
  color: var(--ink-3);
}
.proj-set[open] summary::before {
  content: '▾';
}
.proj-set summary .hint {
  font-weight: 400;
  margin-left: 6px;
}
.proj-set > .fg {
  padding: 4px 0 16px;
}
.next {
  border: 1px solid var(--accent);
  background: var(--hover);
}
.bnpref-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.bnpref-bn {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.bnpref-bn.muted {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-3);
}
.bnpref-type {
  font-size: 15px;
  color: var(--ink-2);
}
.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
.kv span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.kv b {
  font-weight: 500;
  overflow-wrap: anywhere;
}
ul.plain {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
ul.plain li {
  font-size: 14px;
}
.ftable {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}
.ftable td {
  padding: 8px 6px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.ftable td:first-child {
  color: var(--ink-3);
  width: 36%;
}
.ftable code {
  font-size: 12px;
  color: var(--ink-3);
  font-family: ui-monospace, Menlo, monospace;
}
.copybox {
  background: var(--bg);
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink-2);
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.steps div {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.steps i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
  flex: none;
}
.steps .y i {
  background: var(--ok);
}
.steps small {
  margin-left: auto;
  color: var(--ink-3);
}
.kaobar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.kaobar div {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.kaobar div.y {
  background: var(--ok-bg);
  color: var(--ok);
}
.kaobar div.c {
  background: var(--accent);
  color: var(--accent-ink);
}
.kaobar small {
  display: block;
  font-weight: 400;
  font-size: 12px;
}

/* Charts */
.chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart .bar {
  fill: var(--accent-soft);
}
.chart .bar.now {
  fill: var(--accent);
}
.chart .val {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.chart .lab {
  fill: var(--ink-3);
  font-size: 12px;
}
.chart .base {
  stroke: var(--line-2);
}
.funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.funnel div {
  display: grid;
  grid-template-columns: minmax(0, 150px) 1fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.funnel .tr {
  height: 12px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.funnel .tr i {
  display: block;
  height: 100%;
  background: var(--accent);
}

/* Modal, toast */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.4);
}
.modal .box {
  position: relative;
  background: var(--bg);
  border-radius: 16px;
  width: min(660px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.mh {
  padding: 20px 22px 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.mh .t {
  flex: 1;
}
.mh h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.mb {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mf {
  padding: 14px 22px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.x {
  border: 1px solid var(--line-2);
  background: var(--surface);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.fsec {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-top: 4px;
}
.client-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
}
.client-brand svg {
  width: 22px;
  height: 25px;
  flex: none;
}
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  z-index: 90;
  max-width: calc(100vw - 32px);
}

@media (max-width: 1180px) {
  .rec-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .g3 {
    grid-template-columns: 1fr 1fr;
  }
  .g3 > :last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 980px) {
  .g2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 860px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .sb {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: auto;
    width: min(290px, 86vw);
    z-index: 45;
    transform: translateX(-102%);
    transition: transform 0.2s;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
  }
  .sb.open {
    transform: none;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
  }
  .menu-btn {
    display: inline-flex;
  }
  .top {
    top: env(safe-area-inset-top, 0px);
  }
  .me span {
    display: none;
  }
}
@media (max-width: 600px) {
  .g3 {
    grid-template-columns: 1fr;
  }
  .g3 > :last-child {
    grid-column: auto;
  }
  .fg,
  .kv {
    grid-template-columns: 1fr;
  }
  .content,
  .top {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .search {
    order: 5;
    flex-basis: 100%;
    max-width: none;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpi .v {
    font-size: 26px;
  }
  #newBtn .lbl {
    display: none;
  }
  .tiles {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  }
  .rec-h {
    padding: 16px;
  }
}

/* Login en extra's voor de live app */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.login .box {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}
.login .brand {
  padding: 0 0 6px;
}
.login label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.err {
  background: var(--bad-bg);
  color: var(--bad);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.mode {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-2);
}
.mode b {
  color: var(--ink);
}
.mode .pill {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 12px;
  font-weight: 600;
}
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  padding: 2px;
}
.opt-grid .tile {
  min-height: 48px;
}
.opt-grid .tile.pref {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.info-box {
  background: var(--accent-soft, var(--surface));
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.warn-box {
  background: var(--warn-bg);
  color: var(--warn);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.ok-box {
  background: var(--ok-bg);
  color: var(--ok);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.mailprev {
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px 14px;
  max-height: 50vh;
  overflow: auto;
}
.mailprev textarea {
  min-height: 260px;
}
.settings .kv b {
  user-select: all;
}
.spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: sp 0.7s linear infinite;
  vertical-align: -2px;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}
.tile .own {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.8;
}
.tile {
  position: relative;
}

/* Zes statussen, exact zoals in Smartsheet */
:root {
  --us-tk: #ffffff;
  --us-oo: #fcaf15;
  --us-ma: #d97706;
  --us-vov: #6b7280;
  --us-vk: #101828;
  --us-gp: #2f7d4f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --us-tk: #1c1915;
    --us-oo: #fcaf15;
    --us-ma: #f59e0b;
    --us-vov: #9ca3af;
    --us-vk: #e5e7eb;
    --us-gp: #6cc891;
  }
}
:root[data-theme='dark'] {
  --us-tk: #1c1915;
  --us-oo: #fcaf15;
  --us-ma: #f59e0b;
  --us-vov: #9ca3af;
  --us-vk: #e5e7eb;
  --us-gp: #6cc891;
}
.tile.us-tk {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}
.tile.us-oo {
  background: var(--us-oo);
  border-color: var(--us-oo);
  color: #0c0a09;
}
.tile.us-oo small {
  color: rgba(12, 10, 9, 0.75);
}
.tile.us-ma {
  background: var(--us-ma);
  border-color: var(--us-ma);
  color: #fff;
}
.tile.us-ma small {
  color: rgba(255, 255, 255, 0.85);
}
.tile.us-vov {
  background: var(--us-vov);
  border-color: var(--us-vov);
  color: #fff;
}
.tile.us-vov small {
  color: rgba(255, 255, 255, 0.85);
}
.tile.us-vk {
  background: var(--us-vk);
  border-color: var(--us-vk);
  color: #fff;
}
.tile.us-vk small {
  color: rgba(255, 255, 255, 0.8);
}
.tile.us-gp {
  background: var(--us-gp);
  border-color: var(--us-gp);
  color: #fff;
}
.tile.us-gp small {
  color: rgba(255, 255, 255, 0.85);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .tile.us-vk,
  :root:not([data-theme='light']) .tile.us-vov {
    color: #13110e;
  }
  :root:not([data-theme='light']) .tile.us-vk small,
  :root:not([data-theme='light']) .tile.us-vov small {
    color: rgba(19, 17, 14, 0.75);
  }
}
:root[data-theme='dark'] .tile.us-vk,
:root[data-theme='dark'] .tile.us-vov {
  color: #13110e;
}
.bdg.us-tk {
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.bdg.us-oo {
  background: var(--us-oo);
  color: #0c0a09;
}
.bdg.us-ma {
  background: var(--us-ma);
  color: #fff;
}
.bdg.us-vov {
  background: var(--us-vov);
  color: #fff;
}
.bdg.us-vk {
  background: var(--us-vk);
  color: #fff;
}
.bdg.us-gp {
  background: var(--us-gp);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .bdg.us-vk,
  :root:not([data-theme='light']) .bdg.us-vov {
    color: #13110e;
  }
}
:root[data-theme='dark'] .bdg.us-vk,
:root[data-theme='dark'] .bdg.us-vov {
  color: #13110e;
}
.legend i.us-tk {
  background: var(--surface);
  border: 1.5px solid var(--line-2);
}
.legend i.us-oo {
  background: var(--us-oo);
}
.legend i.us-ma {
  background: var(--us-ma);
}
.legend i.us-vov {
  background: var(--us-vov);
}
.legend i.us-vk {
  background: var(--us-vk);
}
.legend i.us-gp {
  background: var(--us-gp);
}
.stack6 {
  margin-top: 6px;
  height: 8px;
  background: var(--line);
}
.stack6 i.us-tk {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.stack6 i.us-oo {
  background: var(--us-oo);
}
.stack6 i.us-ma {
  background: var(--us-ma);
}
.stack6 i.us-vov {
  background: var(--us-vov);
}
.stack6 i.us-vk {
  background: var(--us-vk);
}
.stack6 i.us-gp {
  background: var(--us-gp);
}
table.avail {
  min-width: 720px;
}
table.avail td.strong {
  font-weight: 700;
}
table.avail tr.tot td {
  background: var(--surface-2);
  font-weight: 600;
}
table.avail th.tnum,
table.avail td.tnum {
  text-align: right;
}
.tabs .n {
  font-weight: 600;
  margin-left: 4px;
}
table.compact {
  min-width: 760px;
}
table.compact th,
table.compact td {
  padding: 8px 10px;
  font-size: 13px;
}

/* Alleen Amsterdam: Niet in verkoop */
.tile.us-niv {
  background: repeating-linear-gradient(
    45deg,
    var(--surface),
    var(--surface) 6px,
    var(--line) 6px,
    var(--line) 8px
  );
  color: var(--ink-3);
}
.bdg.us-niv {
  background: var(--line);
  color: var(--ink-2);
}

/* Voorkeur bouwnummers als chips: groen omrand is te koop en klikbaar */
.bncs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bnc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
}
button.bnc.free {
  border-color: var(--us-gp);
  color: var(--us-gp);
  cursor: pointer;
}
button.bnc.free:hover {
  background: var(--us-gp);
  color: #fff;
}
tr.row-ready {
  background: color-mix(in srgb, var(--us-gp) 10%, transparent);
  box-shadow: inset 3px 0 0 var(--us-gp);
}
tr.row-ready:hover {
  background: color-mix(in srgb, var(--us-gp) 18%, transparent);
}
.bnc.us-oo {
  background: var(--us-oo);
  border-color: var(--us-oo);
  color: #0c0a09;
}
.bnc.us-ma {
  background: var(--us-ma);
  border-color: var(--us-ma);
  color: #fff;
}
.bnc.us-vov,
.bnc.us-vk,
.bnc.us-gp {
  background: var(--line);
  border-color: var(--line);
  color: var(--ink-3);
  text-decoration: line-through;
}
.bnc.us-niv {
  background: var(--line);
  border-color: var(--line);
  color: var(--ink-3);
}
.kv .bdg {
  width: fit-content;
}
a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* WhatsApp */
.tl-ic.wa {
  background: var(--ok-bg);
  color: var(--ok);
}
.btn.icon-only {
  padding: 0 8px;
}
.btn.icon-only svg {
  margin: 0;
}
.wa-tpl {
  flex-wrap: wrap;
}
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  padding: 2px 8px 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.wa-link svg {
  width: 13px;
  height: 13px;
}
.wa-link:hover {
  background: var(--ok-bg);
}

/* Vandaag: werkblokken inschrijvingen, opties, akkoorden */
.vblock h2.sec {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vblock h2.sec svg {
  width: 18px;
  height: 18px;
  color: var(--accent-text, var(--ink-2));
}
.vrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.vrow:first-of-type {
  border-top: 0;
}
.vrow:hover {
  background: var(--surface-2, transparent);
}
.vmain {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vmain .sub {
  font-size: 12.5px;
  color: var(--ink-3);
}
.vmain .bncs {
  margin-top: 4px;
}
.vact {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.vact .wa-link {
  margin-top: 0;
}
.g2.even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 980px) {
  .g2.even {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .vrow {
    flex-direction: column;
    align-items: flex-start;
  }
  .vact {
    justify-content: flex-start;
  }
}

.bdg.wait {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bdg.wait svg {
  width: 12px;
  height: 12px;
}
.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.linkbtn:hover b {
  text-decoration: underline;
}
select.assign {
  width: auto;
  padding: 4px 26px 4px 8px;
  font-size: 13px;
}

/* Bouwnummers */
.bn-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bn-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 118px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  color: var(--ink-2);
  text-align: left;
}
.bn-stat span {
  font-size: 12px;
}
.bn-stat b {
  font-size: 20px;
  color: var(--ink);
}
.bn-stat.on {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
}
.bn-stat.us-tk {
  border-left: 4px solid var(--ok);
}
.bn-stat.us-oo {
  border-left: 4px solid var(--us-oo);
}
.bn-stat.us-ma {
  border-left: 4px solid var(--us-ma);
}
.bn-stat.us-vov {
  border-left: 4px solid var(--us-vov);
}
.bn-stat.us-vk {
  border-left: 4px solid var(--us-vk);
}
.bn-stat.us-gp {
  border-left: 4px solid var(--us-gp);
}
th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
th.sorted {
  color: var(--ink);
}
.bn-table td {
  white-space: nowrap;
}
a.drv {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  vertical-align: middle;
}
a.drv:hover {
  background: var(--surface-2, var(--line));
}
a.drv svg {
  width: 13px;
  height: 13px;
}
/* Takenlijst Smartsheet */
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  background: var(--bg-2, transparent);
}
.seg button {
  border: 0;
  background: none;
  padding: 6px 12px;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.seg button.on {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.trow .tt .tsub {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-ss {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--accent-soft, rgba(31, 78, 140, 0.12));
  color: var(--accent-text, #1f4e8c);
  margin-right: 2px;
}
.chip-sep {
  width: 1px;
  align-self: stretch;
  background: var(--line);
  margin: 0 4px;
}
.fg [hidden],
[hidden] {
  display: none !important;
}
/* Funda infobox */
.tag-funda {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1px 7px;
  border-radius: 5px;
  background: #f7a100;
  color: #0c0a09;
  vertical-align: 1px;
}
.ibbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ibbar .grow {
  flex: 1;
  min-width: 220px;
}
.ibrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.ibrow:first-of-type {
  border-top: 0;
}
.ibrow .grow {
  flex: 1;
  min-width: 220px;
}
.ibrow select {
  max-width: 160px;
}
/* Opvolging: stip, vergeten klanten, volgende stap */
.fdot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
  flex: none;
}
.fdot.ok {
  background: #2e9d5b;
}
.fdot.late {
  background: #d64545;
}
.fdot.none {
  background: #e5a400;
  box-shadow: 0 0 0 2px rgba(229, 164, 0, 0.25);
}
.forgot {
  border-left: 3px solid #e5a400;
}
.fgcount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.fgbar {
  width: 90px;
  height: 6px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  display: inline-block;
}
.fgbar i {
  display: block;
  height: 100%;
  background: #2e9d5b;
  border-radius: 4px;
}
.nsgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.nsgrid .btn {
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  padding: 10px 12px;
  text-align: left;
}
.nsgrid .btn small {
  font-weight: 400;
  color: var(--ink-2);
  font-size: 12px;
}
.pth small {
  font-weight: 500;
  opacity: 0.75;
  margin-left: 2px;
}
.pth.cur.slow {
  background: #d64545 !important;
  border-color: #d64545 !important;
  color: #fff !important;
}
.hfchips {
  margin: 14px 0 4px;
}
.hfchips .chip .muted {
  margin-left: 4px;
}
/* Salesforce ronde: score, ster, tegels, bulk, richtlijn, aanbieding */
.box.wide {
  max-width: 880px;
  width: calc(100vw - 32px);
}
.score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px 2px 3px;
  border-radius: 999px;
  vertical-align: 2px;
  white-space: nowrap;
}
.score b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  padding: 0 4px;
}
.score.s-heet {
  background: #fde8e4;
  color: #b4321f;
}
.score.s-heet b {
  background: #d64545;
}
.score.s-warm {
  background: #feefc8;
  color: #8a5a00;
}
.score.s-warm b {
  background: #e5a400;
}
.score.s-koud {
  background: #e7eef7;
  color: #3b5b80;
}
.score.s-koud b {
  background: #6b8cb3;
}
.star {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
  padding: 0 6px 0 0;
  vertical-align: 1px;
}
.star.on {
  color: #e5a400;
}
.starmini {
  color: #e5a400;
  margin-right: 4px;
  font-size: 13px;
}
.ltiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 4px 0 12px;
}
.ltile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--ink-2);
  font-size: 12.5px;
}
.ltile b {
  font-size: 20px;
  color: var(--ink);
}
.ltile.warn b {
  color: #b4321f;
}
.ltile.on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.bulkbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
}
.bulkbar select {
  width: auto;
  padding: 5px 8px;
}
th.cb,
td.cb {
  width: 34px;
  padding-right: 0;
}
td.cb input,
th.cb input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.guide {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface-2, #fff4da);
  border-radius: 10px;
  padding: 8px 12px;
}
.guide ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.nurt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ofsel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}
.ofsel .chip .x {
  border: 0;
  background: none;
  margin-left: 4px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: inherit;
  padding: 0;
}
.ofadd {
  width: auto;
  max-width: 260px;
}
.oftbl td.r,
.oftbl th.r {
  text-align: right;
}
.ofh {
  margin: 14px 0 6px;
  font-size: 14px;
}
.bmlist {
  margin-top: 10px;
  max-height: 300px;
  overflow: auto;
}
.bmlist .btn.done {
  opacity: 0.55;
}
.bulkbar select {
  color: var(--ink);
  background: var(--surface);
  border-color: transparent;
}
.bulkbar .btn-g {
  color: var(--bg);
  opacity: 0.8;
}
.oftbl th,
.oftbl td {
  padding-left: 10px;
  padding-right: 10px;
}
/* Projectoverzicht zoals Smartsheet */
.ptabs {
  margin-bottom: 12px;
}
.pov {
  max-height: calc(100vh - 220px);
  overflow: auto;
}
.pov-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
}
.pov-table .stick {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}
.pov-table thead th.stick {
  z-index: 3;
}
.pov-table td {
  white-space: nowrap;
}
.pov-table td.chg {
  background: #fff1b8 !important;
  box-shadow: inset 0 0 0 1px #f2d266;
}
.pov-table tr.rchg td.stick {
  box-shadow: inset 3px 0 0 #e5a400;
}
.pov-table .rmk {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  color: var(--ink-2);
}
.plink {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent-text, #9a6400);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(154, 100, 0, 0.35);
  text-underline-offset: 2px;
}
.plink:hover {
  text-decoration-color: currentColor;
}
.bn-stat.chg {
  background: #fff1b8;
  border-color: #f2d266;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .pov-table td.chg {
    background: #4a3b0c !important;
    box-shadow: inset 0 0 0 1px #7a6216;
  }
}
:root[data-theme='dark'] .pov-table td.chg {
  background: #4a3b0c !important;
  box-shadow: inset 0 0 0 1px #7a6216;
}
.sigprev {
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  font-size: 13px;
  background: var(--surface);
}

/* Unitzoeker: gebouwen met verdiepingen, blokken naar oppervlakte en status uit Smartsheet */
.up-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 13px;
}
.up-bar select,
.up-bar input[type='number'] {
  width: auto;
  padding: 6px 8px;
  font-size: 13px;
}
.up-bar input[type='number'] {
  width: 70px;
}
.up-only {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
}
.up-only input {
  width: auto;
}
.up-count {
  margin-left: auto;
  color: var(--ink-2);
}
.up-count b {
  color: var(--ink);
  font-size: 15px;
}
.up-legend {
  margin: 8px 0 4px;
  flex-wrap: wrap;
}
.up-legend .hint {
  margin-left: auto;
}
.up-pref-i {
  background: transparent !important;
  box-shadow: inset 0 0 0 2px var(--accent, #fcaf15);
}
.up-bldgs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.up-bldg {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 12px;
  background: var(--surface-2, var(--surface));
}
.up-bh {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.up-bh span {
  color: var(--ink-3);
  font-size: 12px;
}
.up-floor {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}
.up-floor:first-of-type {
  border-top: none;
}
.up-fl {
  flex: 0 0 92px;
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 12px;
}
.up-units {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.ub {
  position: relative;
  height: 44px;
  max-width: 100%;
  border-radius: 5px;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.1;
  padding: 0 2px;
  cursor: pointer;
  font: inherit;
  overflow: hidden;
}
.ub b {
  font-size: 12px;
  font-weight: 700;
}
.ub small {
  font-size: 10px;
  opacity: 0.8;
  white-space: nowrap;
}
.ub.us-tk {
  background: var(--surface);
  border-color: var(--ink-2);
  color: var(--ink);
}
.ub.us-oo {
  background: var(--us-oo);
  color: #0c0a09;
}
.ub.us-ma {
  background: var(--us-ma);
  color: #fff;
}
.ub.us-vov {
  background: var(--us-vov);
  color: #fff;
}
.ub.us-vk {
  background: var(--us-vk);
  color: var(--surface);
}
.ub.us-gp {
  background: var(--us-gp);
  color: #fff;
}
.ub.free:hover {
  box-shadow: 0 0 0 2px var(--ink);
}
.ub.off {
  opacity: 0.18;
}
.ub:disabled {
  cursor: default;
}
.ub.pref {
  box-shadow: 0 0 0 3px var(--accent, #fcaf15);
}
.ub.sel {
  box-shadow: 0 0 0 3px var(--ink);
  transform: translateY(-1px);
}
.ub-dif {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
}
@media (max-width: 640px) {
  .up-floor {
    flex-direction: column;
    gap: 4px;
  }
  .up-fl {
    flex: none;
    padding-top: 0;
  }
  .up-count {
    margin-left: 0;
  }
}

/* Unitzoeker op de verkooptekening */
.pl-sheets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.pl-sheet,
.pl-rest {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 12px;
  background: var(--surface);
}
.pl-rest {
  margin-top: 16px;
}
.pl-img {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.pl-img img,
.pl-img svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pl-img img {
  object-fit: fill;
}
.pa :is(rect, polygon) {
  stroke-width: 1.5;
  fill-opacity: 0.55;
  vector-effect: non-scaling-stroke;
}
.pa text {
  text-anchor: middle;
  dominant-baseline: central;
  font-weight: 700;
  fill: #111;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2px;
}
.pa-tk :is(rect, polygon),
.pa-i.pa-tk {
  fill: #22a559;
  stroke: #157a3f;
  background: #22a559;
}
.pa-oo :is(rect, polygon),
.pa-i.pa-oo {
  fill: #fcc419;
  stroke: #c99700;
  background: #fcc419;
}
.pa-ma :is(rect, polygon),
.pa-i.pa-ma {
  fill: #f08c00;
  stroke: #b86b00;
  background: #f08c00;
}
.pa-vk :is(rect, polygon),
.pa-i.pa-vk {
  fill: #e03131;
  stroke: #a61e1e;
  background: #e03131;
}
.pa-gp :is(rect, polygon),
.pa-i.pa-gp {
  fill: #868e96;
  stroke: #5c636a;
  background: #868e96;
}
.pa.free {
  cursor: pointer;
}
.pa:not(.free) {
  cursor: default;
}
.uplan:not(.pick) .pa {
  cursor: pointer;
}
.pa.free:hover :is(rect, polygon) {
  fill-opacity: 0.8;
}
.pa.off {
  opacity: 0.15;
}
.pa.pref :is(rect, polygon) {
  stroke: #fcaf15;
  stroke-width: 4;
}
.pa.sel :is(rect, polygon) {
  stroke: #111;
  stroke-width: 4;
  fill-opacity: 0.85;
}
/* Tekeningen bewerken */
.box.pe-box {
  max-width: 1240px;
}
.pe-tabs {
  margin-bottom: 10px;
}
.pe-tabs small {
  opacity: 0.6;
}
.pe-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
}
.pe-tools label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--ink-3);
}
.pe-tools input,
.pe-tools select {
  width: 140px;
  padding: 6px 8px;
}
.pe-canvas {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: auto;
  max-height: 70vh;
}
.pe-img {
  touch-action: none;
  cursor: crosshair;
  user-select: none;
}
.pe-a rect {
  fill: #22a559;
  fill-opacity: 0.35;
  stroke: #157a3f;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}
.pe-a.sel rect {
  fill: #fcc419;
  fill-opacity: 0.6;
  stroke: #111;
  stroke-width: 3;
}
.pe-a text {
  text-anchor: middle;
  dominant-baseline: central;
  font-weight: 700;
  fill: #111;
  pointer-events: none;
}
.pe-drag {
  fill: #1c7ed6;
  fill-opacity: 0.2;
  stroke: #1c7ed6;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 4 3;
}
.pe-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-top: 8px;
}
/* Projectdocumenten */
.docs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.doc-g {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.doc-gh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 6px;
}
.doc-gh input,
.doc-r input {
  width: auto;
}
.doc-r {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}
.doc-n {
  min-width: 0;
  overflow-wrap: anywhere;
}
.doc-pick {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 12px;
}
.doc-admin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-2, var(--surface));
}
.doc-admin textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

/* Statuskleuren zoals Gouwestad ze gebruikt: te koop zonder kleur, onder optie geel, mondeling akkoord
   oranje, verkocht (ook onder voorbehoud) en gepasseerd rood. Geldt overal: plattegrond, badges, legenda. */
:root {
  --us-oo: #fcc419;
  --us-ma: #f08c00;
  --us-vov: #ef6b6b;
  --us-vk: #e03131;
  --us-gp: #b72525;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --us-oo: #fcc419;
    --us-ma: #f59f00;
    --us-vov: #f08080;
    --us-vk: #e5484d;
    --us-gp: #c93a3a;
  }
}
:root[data-theme='dark'] {
  --us-oo: #fcc419;
  --us-ma: #f59f00;
  --us-vov: #f08080;
  --us-vk: #e5484d;
  --us-gp: #c93a3a;
}
.tile.us-vk,
.tile.us-vov,
.tile.us-gp,
.bdg.us-vk,
.bdg.us-vov,
.bdg.us-gp,
.ub.us-vk,
.ub.us-vov,
.ub.us-gp,
.ub.us-ma {
  color: #fff !important;
}
.tile.us-vk small,
.tile.us-vov small,
.tile.us-gp small {
  color: rgba(255, 255, 255, 0.85) !important;
}
/* Op de verkooptekening: te koop zonder vulling, alleen een rand */
.pa-tk :is(rect, polygon) {
  fill: #ffffff;
  fill-opacity: 0;
  stroke: #495057;
}
.pa.pa-tk.free:hover :is(rect, polygon) {
  fill: #fcc419;
  fill-opacity: 0.25;
}
.pa-i.pa-tk {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.pa-oo :is(rect, polygon),
.pa-i.pa-oo {
  fill: #fcc419;
  stroke: #c99700;
  background: #fcc419;
}
.pa-gp :is(rect, polygon),
.pa-i.pa-gp {
  fill: #b72525;
  stroke: #861b1b;
  background: #b72525;
}
