/* Tenders: dossiers, deadlines, analyse, NvI, schrijven. Alle klassen beginnen met tn-. */
.tn-pane { display: block; }
.tn-toolbar { margin-bottom: 12px; }
.tn-search { width: 220px; max-width: 100%; }
.tn-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 0; padding-bottom: 12px; }
.tn-filter .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tn-filter .sub { font-size: 12.5px; color: var(--t3); margin-left: auto; }
.tn-new td { background: var(--hy-soft); }

/* win bar */
.tn-win { display: flex; align-items: center; gap: 8px; min-width: 88px; }
.tn-winbar { flex: 1; height: 5px; border-radius: 3px; background: var(--w0d); overflow: hidden; display: block; min-width: 42px; }
.tn-winbar i { display: block; height: 100%; border-radius: 3px; background: var(--navy); }

/* dossier head */
.tn-dh { margin: 4px 0 18px; }
.tn-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--t2); text-decoration: none; margin-bottom: 8px; }
.tn-back:hover { color: var(--t0); }
.tn-back svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tn-dhrow { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.tn-dhrow h1 { font-size: 34px; font-weight: 400; letter-spacing: -0.04em; line-height: 1.06; color: var(--on-photo-1); }
.tn-dhmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 9px; font-size: 13px; color: var(--on-photo-2); }
.tn-dhr { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tn-count { display: flex; align-items: center; gap: 9px; font-size: 11.5px; line-height: 1.25; color: var(--t2); }
.tn-count b { font-size: 34px; font-weight: 400; letter-spacing: -0.04em; color: var(--t0); }

/* source drawer */
.drawer.tn-drawer { width: 500px; }
.tn-dbody { padding: 22px 24px 28px; }
.tn-dtitle { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; margin-top: 8px; overflow-wrap: anywhere; }
.tn-page { margin-top: 16px; padding: 18px 20px; font-size: 12.5px; line-height: 1.6; min-height: 220px; }
.tn-page p { margin: 10px 0; }
.tn-page mark { background: #ffb81c66; color: #1b2a44; padding: 2px 3px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tn-pghead { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #1b2a4420; padding-bottom: 8px; margin-bottom: 10px; font-size: 10.5px; color: #47587a; }
.tn-bar { display: block; height: 6px; margin: 7px 0; border-radius: 2px; background: #1b2a4414; }

/* stepper */
.tn-steps { display: flex; gap: 4px; flex-wrap: wrap; }
.tn-step { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border-radius: 999px; font-size: 12px; color: var(--t3); background: var(--w06); }
.tn-step .n { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; background: var(--w10); color: var(--t2); }
.tn-step .n svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tn-step.done { color: var(--t2); }
.tn-step.done .n { background: var(--up); color: #fff; }
.tn-step.on { color: var(--t0); font-weight: 500; background: var(--hy-soft); }
.tn-step.on .n { background: var(--hy); color: var(--hy-ink); }

/* overzicht */
.tn-sumtxt p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; color: var(--t1); max-width: 72ch; }
.tn-kv { display: flex; flex-direction: column; }
.tn-kvr { display: flex; justify-content: space-between; gap: 18px; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--w0a); }
.tn-kvr:last-child { border-bottom: 0; }
.tn-kvr span:last-child { text-align: right; }
.tn-next { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--w0a); color: inherit; text-decoration: none; font-size: 13.5px; border-radius: 8px; }
.tn-next:last-child { border-bottom: 0; }
.tn-next:hover { background: var(--w06); }
.tn-next svg { width: 14px; height: 14px; stroke: var(--t3); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tn-ndot { width: 8px; height: 8px; border-radius: 50%; background: var(--w26); flex: none; }
.tn-ndot.hot { background: var(--brand); }
.tn-person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--w08); }
.tn-log { display: flex; flex-direction: column; gap: 10px; max-height: 190px; overflow-y: auto; scrollbar-width: thin; }
.tn-logr { display: flex; gap: 10px; }
.tn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hy); margin-top: 6px; flex: none; }

/* analyse */
.tn-weight { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin-bottom: 12px; }
.tn-weight i { display: block; height: 100%; }
.tn-find { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 6px; background: none; border: 0; border-bottom: 1px solid var(--w0a); color: inherit; text-align: left; font: inherit; cursor: pointer; border-radius: 8px; transition: background .2s; }
.tn-find:last-child { border-bottom: 0; }
.tn-find:hover { background: var(--w06); }
.tn-ft { font-size: 13.5px; line-height: 1.35; }
.tn-wv { flex: none; width: 46px; font-size: 18px; letter-spacing: -0.02em; color: var(--t0); }
.tn-pdate { flex: none; width: 62px; font-size: 12.5px; color: var(--t1); }
.tn-pdate.past { color: var(--t3); }
.tn-mark { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--t3); background: var(--w0a); opacity: 0; transition: opacity .2s; }
.tn-mark svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tn-find:hover .tn-mark { opacity: 1; }
.tn-find.conf .tn-mark { opacity: 1; background: var(--up); color: #fff; }
.tn-progbar { height: 5px; border-radius: 3px; background: var(--w0d); overflow: hidden; }
.tn-progbar i { display: block; height: 100%; background: var(--navy); border-radius: 3px; transition: width .4s var(--ease); width: 0; }
.tn-bew { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--w0a); }
.tn-bew:last-child { border-bottom: 0; }
.tn-bewn { flex: 1; min-width: 0; background: none; border: 0; color: inherit; text-align: left; font: inherit; cursor: pointer; padding: 0; }
.tn-check { width: 17px; height: 17px; flex: none; accent-color: var(--navy); cursor: pointer; }
.tn-runbox { max-width: 620px; margin: 0 auto 18px; }

/* kans en risico */
.tn-gwrap { display: flex; justify-content: center; padding: 6px 0 14px; }
.tn-sc { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--w0a); }
.tn-sc:last-child { border-bottom: 0; }
.tn-adv { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tn-adv h3 { font-size: 20px; font-weight: 400; letter-spacing: -0.02em; }
.tn-adv p { margin: 0; max-width: 62ch; }
.tn-drv { display: flex; gap: 12px; padding: 7px 0; align-items: flex-start; }
.tn-dv { width: 34px; font-size: 14px; flex: none; }
.tn-comps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tn-ctitle { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.tn-pat { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--w06); color: var(--t2); }
.tn-pat b { font-weight: 500; }
.tn-risk { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 4px; background: none; border: 0; border-bottom: 1px solid var(--w0a); color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.tn-risk:last-child { border-bottom: 0; }
.tn-risk:hover { background: var(--w06); }
.tn-rs { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; font-size: 13px; background: var(--w0d); color: var(--t2); }
.tn-rs.mid { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn-t); }
.tn-rs.hot { background: color-mix(in srgb, var(--down) 15%, transparent); color: var(--down-t); }
.tn-eig { flex: none; width: 96px; text-align: right; }

/* deadlines */
.tn-tl { overflow-x: auto; scrollbar-width: thin; padding: 0 12px 14px; }
.tn-tl-in { min-width: 1080px; position: relative; }
.tn-tl-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: stretch; }
.tn-tl-label { display: block; padding: 10px 14px 10px 4px; font-size: 13px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--w0a); position: sticky; left: 0; z-index: 3; background: var(--panel); }
a.tn-tl-label:hover { color: var(--t0); background: var(--panel-2); }
.tn-tl-label .xs { display: flex; align-items: center; gap: 6px; }
.tn-tl-canvas { position: relative; height: 56px; border-bottom: 1px solid var(--w0a); overflow: hidden; }
.tn-tl-head .tn-tl-canvas, .tn-tl-head .tn-tl-label { height: 30px; border-bottom: 1px solid var(--line); padding-top: 8px; padding-bottom: 0; }
.tn-mon { position: absolute; top: 8px; font-size: 11.5px; color: var(--t3); transform: translateX(4px); white-space: nowrap; }
.tn-todaylab { position: absolute; top: 4px; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--hy-ink); background: var(--hy); padding: 1px 6px; border-radius: 6px; }
.tn-tl-bg { position: absolute; inset: 0; }
.tn-wk { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--w08); }
.tn-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--hy); transform: translateX(-1px); }
.tn-stack { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--warn) 12%, transparent); }
.tn-line { position: absolute; top: 50%; height: 2px; background: var(--w17); transform: translateY(-1px); }
.tn-m { position: absolute; top: 50%; width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; transform: translate(-50%, -50%); background: var(--t3); cursor: pointer; transition: transform .2s; }
.tn-m:hover { transform: translate(-50%, -50%) scale(1.35); }
.tn-m.static { position: static; transform: none; flex: none; cursor: default; }
.tn-m.static:hover { transform: none; }
.tn-m-soft { background: var(--w33); width: 8px; height: 8px; }
.tn-m-q { background: var(--info); }
.tn-m-p { background: transparent; box-shadow: inset 0 0 0 2px var(--info); }
.tn-m-ins { background: var(--navy); width: 14px; height: 14px; border-radius: 3px; rotate: 45deg; }
.tn-m-pres { background: var(--hy); }
.tn-m-gun { background: var(--up); }
.tn-leg { display: inline-flex; align-items: center; gap: 6px; }
.tn-leg .tn-m { position: static; transform: none; cursor: default; }
.tn-leg .tn-m:hover { transform: none; }
.tn-li .tn-m.static { margin-left: 2px; }

/* chat */
.tn-chatp { display: flex; flex-direction: column; min-height: min(68vh, 640px); padding-bottom: 18px; }
.tn-chatlog { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; max-height: 58vh; padding: 2px 2px 12px; scrollbar-width: thin; }
.tn-chatlog.sm { max-height: 440px; min-height: 240px; }
.tn-chatempty { margin: auto; text-align: center; padding: 30px 16px; max-width: 460px; }
.tn-ct { font-size: 18px; font-weight: 400; letter-spacing: -0.02em; color: var(--t0); margin-bottom: 4px; }
.tn-msg { display: flex; }
.tn-msg.u { justify-content: flex-end; }
.tn-bub { max-width: min(78%, 620px); padding: 11px 15px; border-radius: 16px; font-size: 13.5px; line-height: 1.55; background: var(--w0a); }
.tn-bub p { margin: 0; }
.tn-msg.u .tn-bub { background: var(--navy); color: #fff; border-radius: 16px 16px 4px 16px; }
:root:not([data-theme="light"]) .tn-msg.u .tn-bub { color: #08111f; }
.tn-msg.a .tn-bub { border-radius: 16px 16px 16px 4px; }
.tn-dots { display: inline-flex; gap: 4px; padding: 14px 16px; }
.tn-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--t3); animation: tn-b 1s infinite ease-in-out; }
.tn-dots i:nth-child(2) { animation-delay: .15s; } .tn-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tn-b { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.tn-nvinote { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border-radius: 10px; font-size: 12.5px; background: var(--hy-soft); }
.tn-nvinote svg { width: 14px; height: 14px; stroke: var(--hy-hi); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: 2px; }
.tn-nvinote b { font-weight: 500; }
.tn-sugs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 12px; }
.tn-sugs .chip { height: auto; min-height: 28px; padding: 5px 12px; white-space: normal; text-align: left; }
.tn-chatbar { display: flex; gap: 8px; align-items: center; }
.tn-chatbar .input { height: 40px; min-width: 0; }

/* nvi */
.tn-nvihead { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.tn-nviinfo { text-align: right; }
.tn-count2 { font-size: 14px; color: var(--t2); }
.tn-count2 .num { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; color: var(--t0); }
.tn-nvilist { display: flex; flex-direction: column; gap: 12px; }
.tn-nvi { padding: 16px 18px; border-radius: 16px; background: var(--w06); box-shadow: inset 0 0 0 1px var(--w0f); }
.tn-nvi.off { opacity: .45; }
.tn-pop { animation: tn-pop .45s var(--ease) both; }
@keyframes tn-pop { from { opacity: 0; transform: translateY(8px); } }
.tn-quote { margin: 10px 0 8px; padding: 2px 0 2px 12px; border-left: 2px solid var(--hy); font-size: 12.5px; color: var(--t2); font-style: normal; line-height: 1.5; }
.tn-q { font-size: 14px; line-height: 1.55; margin: 4px 0 0; max-width: 78ch; }
.tn-segwrap { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tn-nvifoot { padding: 14px 24px 18px; }
.tn-qcell { min-width: 280px; }

/* schrijven */
.tn-crit { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 0; background: none; color: inherit; text-align: left; font: inherit; border-radius: 10px; cursor: pointer; }
.tn-crit:hover { background: var(--w06); }
.tn-crit.on { background: var(--hy-soft); }
.tn-srcrow { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--w0a); cursor: pointer; }
.tn-srcrow:last-child { border-bottom: 0; }
.tn-ell2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tn-score { font-size: 12.5px; color: var(--t1); flex: none; }
.tn-docp { min-height: 520px; display: flex; flex-direction: column; }
.tn-vraag { padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--w06); }
.tn-vraag b { font-weight: 500; color: var(--t1); }
.tn-wc { margin-bottom: 14px; }
.tn-wc:empty { display: none; }
.tn-wbar { height: 4px; margin-top: 6px; border-radius: 2px; background: var(--w0d); overflow: hidden; }
.tn-wbar i { display: block; height: 100%; background: var(--navy); border-radius: 2px; transition: width .35s var(--ease); }
.tn-wbar i.over { background: var(--down); }
.tn-doc { flex: 1; }
.tn-docempty { height: 100%; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; max-width: 420px; margin: 0 auto; }
.tn-docempty svg { width: 22px; height: 22px; stroke: var(--t3); fill: none; stroke-width: 1.5; margin-bottom: 8px; stroke-linecap: round; stroke-linejoin: round; }
.tn-para { margin-bottom: 16px; max-width: 74ch; }
.tn-para h4 { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 3px; }
.tn-para p { font-size: 14px; line-height: 1.62; margin: 0 0 6px; min-height: 1em; }
.tn-editable { outline: 1px dashed var(--hy-hi); outline-offset: 3px; border-radius: 3px; }
.tn-docact { padding-top: 12px; margin-top: auto; border-top: 1px solid var(--w0d); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.tn-docact:empty { display: none; }

/* documenten */
.tn-tree { display: flex; flex-direction: column; gap: 2px; }
.tn-fold { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 8px; border-radius: 9px; border: 0; background: none; color: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.tn-fold svg, .tn-docr svg { width: 15px; height: 15px; stroke: var(--t3); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tn-fold:hover { background: var(--w06); }
.tn-fold.on { background: var(--hy-soft); }
.tn-docr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 6px; border: 0; border-bottom: 1px solid var(--w0a); background: none; color: inherit; text-align: left; font-size: 13.5px; cursor: pointer; border-radius: 8px; }
.tn-docr:last-child { border-bottom: 0; }
.tn-docr:hover { background: var(--w06); }
.tn-empty { padding: 40px 10px; text-align: center; }
.tn-ver { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--w0a); }
.tn-ver:last-child { border-bottom: 0; }
.tn-dec { padding: 12px 14px; border-radius: 12px; background: var(--w06); }

/* nieuw dossier */
.tn-drop { width: 100%; display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: 16px; border: 1.5px dashed var(--w33); background: var(--w06); color: inherit; text-align: left; font-size: 13px; cursor: pointer; margin-top: 4px; }
.tn-drop:hover { background: var(--w0c); }
.tn-drop svg { width: 22px; height: 22px; stroke: var(--t2); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tn-drop[disabled] { opacity: .55; cursor: default; }
.tn-drop b { font-weight: 500; }
.tn-files { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tn-file { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.tn-file svg { width: 14px; height: 14px; stroke: var(--t3); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tn-prog { width: 80px; height: 4px; border-radius: 2px; background: var(--w0d); overflow: hidden; display: block; flex: none; }
.tn-prog i { display: block; height: 100%; width: 0; background: var(--navy); transition: width .5s var(--ease); }
.tn-sum { margin: 12px 0 0; padding: 0 0 0 18px; font-size: 13.5px; line-height: 1.7; }

/* bibliotheek en stijlen */
.tn-folders { margin: 12px 0 6px; }
.tn-libbox:empty { display: none; }
.tn-libbox { margin-top: 12px; }
.tn-chatp2 { display: flex; flex-direction: column; }
.tn-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tn-method { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 11px 12px; border: 0; border-radius: 12px; background: var(--w08); color: inherit; font-size: 13px; cursor: pointer; }
.tn-method b { font-weight: 500; }
.tn-method.on { background: var(--hy-soft); box-shadow: inset 0 0 0 1px var(--hy-hi); }
.tn-stylestart p { margin: 0 0 14px; }

@media (max-width: 1100px) {
  .tn-comps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .tn-dhrow h1 { font-size: 27px; }
  .tn-dhr { margin-left: 0; width: 100%; justify-content: space-between; }
  .drawer.tn-drawer { width: 100vw; }
  .tn-bub { max-width: 90%; }
  .tn-nviinfo { text-align: left; }
  .tn-tl-row { grid-template-columns: 138px minmax(0, 1fr); }
  .tn-tl-in { min-width: 860px; }
  .tn-methods { grid-template-columns: 1fr; }
  .tn-risk { flex-wrap: wrap; }
  .tn-eig { width: auto; text-align: left; }
  .tn-filter .sub { margin-left: 0; }
  .tn-nvifoot { padding: 14px 18px 18px; }
  .tn-search { width: 150px; }
}

/* eerste kolom mag afbreken */
.tbl td.tn-wrap { white-space: normal; }
