/* Project pipeline (js/ui/pipeline.js): board, list, tasks, Mijn opdrachten (the fitter) and the project panel. */
#ws-pipeline { overflow: hidden; background: var(--bg); }
.pl { display: flex; height: 100%; min-height: 0; }
.pl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 16px 10px; gap: 10px; min-height: 0; }
.pl-empty { margin: 40px auto; max-width: 520px; text-align: center; }
.pl-empty-ico svg { width: 48px; height: 48px; color: var(--accent); }
.pl-errbar { margin: 0; }

/* header */
.pl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-title { font-size: 20px; margin: 0 8px 0 0; }
.pl-views { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.pl-views .btn { border: none; background: none; }
.pl-views .btn.active { background: var(--accentbg); color: var(--accent); font-weight: 600; }
.pl-search { width: 260px; height: 34px; }
.pl-frel, .pl-fowner, .pl-fphase { width: auto; max-width: 190px; height: 34px; }
.pl-fmine { display: flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.pl-head .grow { flex: 1; }
.pl-viewname { font-size: 14px; font-weight: 600; color: var(--fg2); padding: 2px 10px; border-radius: 10px; background: var(--bg4); }
.pl-filterbtn.active { background: var(--accentbg); color: var(--accent); border-color: var(--accent); }
.pl-filterbtn .cnt, .pl-more .cnt { margin-left: 4px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.pl-more { position: relative; }
.pl-more .cnt { position: absolute; top: -4px; right: -4px; margin: 0; }
.pl-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }

/* board */
.pl-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pl-boardwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.pl-board { flex: 1; min-height: 0; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; align-items: stretch; }
.pl-cnt { font-size: 12px; font-weight: 600; min-width: 20px; padding: 0 6px; height: 20px; line-height: 20px; border-radius: 10px; background: var(--bg4); color: var(--fg2); text-align: center; }
.pl-col { flex: 1 0 0; min-width: 184px; max-width: 300px; display: flex; flex-direction: column; min-height: 0; padding: 6px; background: var(--bg3); border: 1px solid var(--line); border-top: 3px solid var(--ph); border-radius: 12px; transition: background .12s, box-shadow .12s; }
.pl-chead { display: flex; align-items: center; gap: 6px; padding: 4px 4px 6px; font-size: 14px; }
.pl-cname { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ph); flex: none; }
.pl-csum { font-size: 12px; font-weight: 500; color: var(--fg3); white-space: nowrap; flex: none; }
.pl-cards { flex: 1; min-height: 60px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 2px 8px; }
[data-drop].drop-ok { background: var(--accentbg); box-shadow: inset 0 0 0 2px var(--accent); }
[data-drop].drop-no { background: rgba(220, 38, 38, .06); }

/* cards */
.pl-card { background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--ph); border-radius: 8px; padding: 8px 10px; cursor: var(--cur-grab); user-select: none; box-shadow: 0 1px 2px rgba(11, 30, 58, .06); }
.pl-card:hover { border-color: var(--line2); border-left-color: var(--ph); box-shadow: 0 3px 10px rgba(11, 30, 58, .10); }
.pl-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pl-card.sel { box-shadow: 0 0 0 2px var(--accent); }
.pl-card.dragging { opacity: .35; }
.pl-card.overdue { border-top-color: rgba(220, 38, 38, .5); border-right-color: rgba(220, 38, 38, .5); border-bottom-color: rgba(220, 38, 38, .5); }
.pl-ghost { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; box-shadow: var(--shadow); opacity: .95; }
body.pl-dragging, body.pl-dragging * { cursor: var(--cur-grabbing) !important; }
.pl-ctop { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg3); }
.pl-num { font-variant-numeric: tabular-nums; font-weight: 600; margin-right: auto; }
.pl-ic { display: inline-flex; align-items: center; gap: 1px; }
.pl-ic svg { width: 14px; height: 14px; }
.pl-ic i { font-style: normal; font-size: 11px; }
.pl-od { color: var(--err); }
.pl-ctitle { font-weight: 600; font-size: 14px; line-height: 1.3; margin: 3px 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-crel { font-size: 12px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-cfoot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }
.pl-cfoot .grow { flex: 1; }
.pl-av { width: 22px; height: 22px; border-radius: 50%; background: var(--fc-navy, #0B1E3A); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pl-amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-due { display: inline-flex; align-items: center; gap: 3px; color: var(--fg3); white-space: nowrap; }
.pl-due svg { width: 13px; height: 13px; }
.pl-due.late { color: var(--err); font-weight: 600; }
.pl-reason { margin-top: 4px; }

/* side states */
.pl-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: none; }
.pl-lane { border: 1px dashed var(--line2); border-radius: 12px; padding: 6px 8px; min-height: 54px; background: var(--bg2); transition: background .12s, box-shadow .12s; }
.pl-lhead { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 4px; }
.pl-lhead b { flex: 1; }
.pl-lcards { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.pl-lcards .pl-card { width: 210px; flex: none; }
.pl-none { padding: 6px 2px; }

/* list */
.pl-listwrap { flex: 1; min-height: 0; overflow: auto; }
.pl-table th.sortable { cursor: pointer; user-select: none; }
.pl-table th.sorted { color: var(--accent); }
.pl-table tr.sel td { background: var(--accentbg); }
.pl-table td.late { color: var(--err); font-weight: 600; }
.pl-table .mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 12px; background: color-mix(in srgb, var(--ph) 15%, transparent); color: var(--fg); border: 1px solid color-mix(in srgb, var(--ph) 45%, transparent); white-space: nowrap; }
.pl-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ph); }

/* tasks overview */
.pl-tasklist { flex: 1; min-height: 0; overflow: auto; max-width: 900px; }
.pl-tbucket { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg3); margin: 14px 0 6px; }
.pl-tbucket.late { color: var(--err); }
.pl-trow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.pl-trow input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.pl-trow .grow { flex: 1; min-width: 0; cursor: pointer; }
.pl-trow.late { border-color: rgba(220, 38, 38, .45); }
.pl-trow.done .pl-ttext { text-decoration: line-through; color: var(--fg3); }
.pl-ttext { font-weight: 600; font-size: 14px; }

/* dossier panel */
.pl-drawer { width: 460px; max-width: 100%; flex: none; border-left: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; min-height: 0; outline: none; box-shadow: -8px 0 24px rgba(11, 30, 58, .06); }
.pl-dhead { position: relative; padding: 14px 16px 8px; border-top: 4px solid var(--ph); }
.pl-dnum { font-size: 12px; font-weight: 600; color: var(--fg3); }
.pl-dtitle { margin: 2px 32px 2px 0; font-size: 20px; line-height: 1.25; }
.pl-dclose { position: absolute; right: 8px; top: 10px; }
.pl-stepper { padding: 4px 16px 10px; border-bottom: 1px solid var(--line); }
/* the process line: a bar and the name of every phase (2026.10.128); in a narrow panel only the name of the current phase */
.pl-steps { display: flex; gap: 4px; margin-bottom: 8px; container-type: inline-size; }
.pl-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 5px; border: none; padding: 2px 0 0; background: none; color: var(--fg3); font: inherit; cursor: pointer; }
.pl-stepbar { height: 8px; margin: 2px 0; border-radius: 4px; background: var(--bg4); }
.pl-step.done .pl-stepbar { background: color-mix(in srgb, var(--ph) 55%, transparent); }
.pl-step.on .pl-stepbar { background: var(--ph); height: 12px; margin: 0; box-shadow: 0 0 0 2px var(--bg2), 0 0 0 3px var(--ph); }
.pl-steplbl { font-size: 11.5px; line-height: 1.25; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-step.done .pl-steplbl { color: var(--fg2); }
.pl-step.on .pl-steplbl { color: var(--ph); font-weight: 700; }
.pl-step:disabled { cursor: default; }
.pl-step:not(:disabled):hover .pl-stepbar { outline: 2px solid var(--ph); outline-offset: 1px; }
.pl-step:focus-visible { outline: none; }
.pl-step:focus-visible .pl-stepbar { outline: 2px solid var(--accent); outline-offset: 2px; }
@container (max-width: 520px) { .pl-step:not(.on) .pl-steplbl { visibility: hidden; } .pl-step.on .pl-steplbl { overflow: visible; } }
.pl-steprow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-steprow .grow { flex: 1; }
/* the next step in one fixed place (B-07): text, question and the buttons of the signed-in user */
.pl-nextbox { margin-top: 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); }
.pl-nextbox.mine { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accentbg); }
.pl-nextbox > :first-child { margin-top: 0; }
.pl-dtabs { padding: 0 12px; border-bottom: 1px solid var(--line); flex: none; }
.pl-dbody { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.pl-dbody .field { margin: 0; }
.pl-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pl-grid2 > * { min-width: 0; }   /* a wide field never widens its column (2026.10.135) */
.pl-project { margin-top: 6px; }
.pl-project h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.pl-project h4 svg { width: 18px; height: 18px; }
.pl-btnrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pl-sechead { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.pl-sechead h4 { margin: 0; }
.pl-sum { background: var(--bg3); border-radius: 8px; padding: 8px 10px; }
.pl-sum .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pl-qrow, .pl-irow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.pl-qrow .grow, .pl-irow .grow { flex: 1; min-width: 0; }
.pl-qs { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--bg4); white-space: nowrap; }
.pl-qs.sent { background: rgba(139, 92, 246, .16); color: #6D28D9; }
.pl-qs.accepted { background: rgba(21, 128, 61, .16); color: var(--ok); }
.pl-qs.rejected { background: rgba(220, 38, 38, .12); color: var(--err); }
.pl-qs.superseded { text-decoration: line-through; color: var(--fg3); }
.pl-qrow .pl-qstatus { width: 128px; flex: none; height: 30px; font-size: 12px; }
.pl-qrow .pl-qs { flex: none; }
.pl-taskform { display: grid; grid-template-columns: 1fr; gap: 6px; }
.pl-taskmeta { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(170px, 2fr); gap: 6px; }
.pl-taskmeta > * { min-width: 0; }
.pl-taskmeta .inp { width: 100%; min-width: 0; }
.pl-taskform .btn { justify-self: start; }
.pl-noteform { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pl-noteform textarea { width: 100%; }
.pl-timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.pl-ev { position: relative; padding: 0 0 12px 10px; }
.pl-ev::before { content: ''; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--line2); }
.pl-ev.phase::before { background: var(--accent); border-color: var(--accent); }
.pl-ev.note::before { background: var(--warn); border-color: var(--warn); }
.pl-evh { font-size: 13px; }
.pl-evt { font-size: 13px; white-space: pre-wrap; margin-top: 2px; padding: 6px 8px; background: var(--bg3); border-radius: 6px; }
.pl-form { display: flex; flex-direction: column; gap: 8px; }
.pl-form .field { margin: 0; }
.pl-ferr { color: var(--err); }
.pl-grid2 > .field { align-content: start; }   /* a message under one field does not move the label of its neighbour */

/* relations */
.pl-rels { display: grid; grid-template-columns: 260px 1fr; gap: 16px; min-height: 360px; }
.pl-rlist { display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); padding-right: 12px; }
.pl-rul { flex: 1; overflow: auto; max-height: 50vh; }
.pl-rul .li.sel { background: var(--accentbg); }
.pl-rform { display: flex; flex-direction: column; gap: 8px; }
.pl-rform .field { margin: 0; }
.pl-crow { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1fr auto; gap: 4px; margin-bottom: 4px; }
.pl-trashrow { display: flex; align-items: center; gap: 8px; }

@media (max-width: 1100px) {
  .pl.has-drawer .pl-main { display: none; }
  .pl-drawer { width: 100%; border-left: none; }
  .pl-side { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pl-main { padding: 10px; }
  .pl-search { width: 100%; order: 10; }
  .pl-rels { grid-template-columns: 1fr; }
  .pl-rlist { border-right: none; padding-right: 0; }
  .pl-crow { grid-template-columns: 1fr 1fr; }
  .pl-grid2 { grid-template-columns: minmax(0, 1fr); }
}

/* fields in the dossier panel and the pipeline dialogs: label above the input */
.pl-dbody .field, .pl-form .field, .pl-rform .field { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.pl-dbody .field > label, .pl-form .field > label, .pl-rform .field > label { font-size: 12px; }
.pl-form .field input[type=checkbox] { justify-self: start; }

/* 2026.10.24: next step, gates shown in advance, revision, lead time per phase, change list in the timeline */
.pl-nextstep { margin-top: 6px; color: var(--muted); }
.pl-nextstep b { color: var(--fg); font-weight: 600; }
.pl-gatehint, .pl-rework, .pl-warn { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 8px; border-radius: 6px; background: var(--ban-warn-bg); color: var(--ban-warn-fg); }
.pl-gatehint .grow, .pl-rework .grow, .pl-warn .grow { flex: 1; }
.pl-qinfo { display: flex; flex-direction: column; gap: 4px; }
.pl-qinfo p { margin: 0; }
.pl-chkfield[hidden] { display: none; }
.pl-since { white-space: nowrap; font-size: 11px; color: var(--muted); margin-right: 6px; }
.pl-since.long, .pl-tsince.long { color: var(--warn); font-weight: 600; }
.pl-valuesrc { color: var(--muted); margin: -4px 0 6px; }
.pl-evch { margin: 2px 0 0; padding-left: 18px; color: var(--muted); }
.pl-evch li { list-style: disc; }
.pl-oreq { color: var(--muted); }
/* the button in the gate message: readable and usable on the dark message (toasts ignore the pointer otherwise) */
#toast-root .toast.pl-gatetoast { pointer-events: auto; }
#toast-root .toast .btn { margin-left: 8px; background: var(--toast-fg); color: var(--toast-bg); border-color: var(--toast-fg); }

/* ---------- the process of the flowchart (2026.10): who draws, the steps, the calculation ---------- */
.pl-who { border: 1px solid var(--border, #d0d7e2); border-radius: 8px; padding: 8px 10px 10px; margin: 8px 0 0; display: grid; gap: 6px; }
.pl-who legend { font-weight: 600; padding: 0 4px; }
.pl-whoopt { display: grid; grid-template-columns: 20px 1fr; gap: 2px 8px; align-items: start; padding: 8px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
.pl-whoopt:hover, .pl-whoopt:has(input:checked) { border-color: var(--accent); background: var(--accentbg); }
.pl-whoopt input { margin-top: 3px; }
.pl-whoopt span { display: grid; gap: 2px; }
.pl-whoopt small { color: var(--muted); }
.pl-card.pl-loose { cursor: pointer; border-style: dashed; border-left-style: solid; }
.pl-nonum { font-style: italic; }
.pl-nodrawer, .pl-todraw { white-space: nowrap; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 10px; background: var(--ban-warn-bg); color: var(--ban-warn-fg); }
.pl-claim { width: 22px; height: 22px; border-radius: 50%; background: #0EA5E9; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }
.pl-whoq { margin-top: 8px; }
.pl-flowacts { margin-top: 8px; }
.pl-facts { margin-top: 6px; display: grid; gap: 2px; }
.pl-calc .pl-calcinfo { display: grid; gap: 2px; margin-bottom: 6px; }
.pl-calc h4 svg { width: 16px; height: 16px; vertical-align: -3px; }

/* Mijn opdrachten (the fitter) */
.pl-mine { overflow-y: auto; gap: 14px; padding-bottom: 20px; }
.pl-msec { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pl-msec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16px; }
.pl-mrow { display: flex; align-items: center; gap: 10px; }
.pl-mtext { cursor: pointer; min-width: 0; }
.pl-mnum { font-family: var(--mono, monospace); font-size: 13px; color: var(--fg3); }
.pl-mremark { margin-top: 3px; padding: 4px 8px; border-radius: 6px; background: var(--ban-warn-bg); color: var(--ban-warn-fg); }
.pl-mrow .btn.primary { flex: none; min-height: 40px; }
.pl-mmore { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.pl-mmore > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 32px; }
.pl-mmore > .list { margin-top: 6px; }
/* archive (2026.10.53) */
.pl-archnote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pl-archnote .grow { flex: 1 1 200px; }
.pl-archhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pl-archhead p { flex: 1 1 260px; margin: 0; }
.pl-archive .pl-empty { padding: 32px 12px; text-align: center; }
/* the tab Tech. dossier of the project panel (2026.10.54): the checklist compact in the narrow panel */
.pl-techdos .pl-btnrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pl-techdos .dossier > .row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 8px; }
.pl-techdos .dossier > .row .field { flex: 1 1 200px; margin: 0; }
.pl-techdos .dos-prog { font-size: 13px; color: var(--fg2); padding-bottom: 8px; }
.pl-techdos .dos-ch { padding: 10px 12px; margin-bottom: 8px; }
.pl-techdos .dos-ch h4 { margin: 0 0 6px; }
.pl-techdos .dos-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.pl-techdos .dos-item:first-of-type { border-top: 0; }
.pl-techdos .dos-item > .grow { flex: 1 1 100%; min-width: 0; }
.pl-techdos .dos-item .t1 { font-size: 13px; font-weight: 600; }
.pl-techdos .dos-item .dos-st { flex: 1 1 140px; width: auto; min-height: 32px; font-size: 13px; }
.pl-techdos .dos-item.ok .t1::before { content: '✓ '; color: var(--ok); }
/* the choice of the fitter (2026.10.56) */
.pl-fitpick { display: flex; flex-direction: column; gap: 8px; }
.pl-fitpick .pl-fitall { justify-content: center; min-height: 40px; }
.pl-fitlist .pl-fitone { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; text-align: left; cursor: pointer; border: 0; background: none; }
.pl-fitlist .pl-fitone:hover, .pl-fitlist .pl-fitone.sel { background: var(--accentbg); }
.pl-fitdot { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); flex: none; }
.pl-fitdot.on { background: var(--ok); }
/* 2026.10.58 (simulation): equal columns, scrolling tabs, the data to read, who draws, the card */
.pl-col .pl-cards, .pl-col .pl-card { min-width: 0; }
.pl-dtabs { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 0; padding-bottom: 0; scrollbar-width: none; }
.pl-dtabs .tab { flex: none; }
.pl-since { display: inline-flex; align-items: center; gap: 3px; }
.pl-since svg { width: 12px; height: 12px; }
.pl-whoopt[hidden] { display: none; }
.pl-read { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 6px 12px; margin: 4px 0 0; font-size: 14px; }
.pl-read dt { color: var(--fg3); font-size: 12px; padding-top: 2px; }
.pl-read dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pl-read a { color: var(--accent); }
.pl-rdesc { white-space: pre-wrap; }
.pl-donenote { margin-top: 6px; }
.pl-rprojects .li { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.pl-rnewproject { align-self: flex-start; }
.pl-mrow .pl-mother, .pl-mrow .pl-mgiven { margin-top: 3px; }

/* ---------------------------------------------------------------- the open project and the start page (2026.10.124) */
/* the open project as a page: the panel of before, full width and centred */
.pl.pl-project { justify-content: center; background: var(--bg); }
/* .pl-project (a box in the panel of before) gives the page a margin of 6 px at the top: the page is 6 px shorter, so
   its bottom (the bar Opslaan / Annuleren, 2026.10.135) is not cut off */
.pl.pl-project { height: calc(100% - 6px); }
.pl.pl-project .pl-drawer.pl-page { width: 100%; max-width: 1080px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: none; }
.pl.pl-project .pl-dbody { padding: 14px 20px 28px; }
.pl-page .pl-drlist { display: flex; flex-direction: column; gap: 6px; }
.pl-page .pl-drrow.loaded { border-color: var(--accent); }
.pl-drwrap .pl-versions { margin: 4px 0 6px 14px; }
.pl-drwrap > .pl-sbsub { margin: 6px 0 2px 14px; }
/* the start page: the projects on the left, what waits and the recent drawings on the right */
.pl.pl-start .pl-main { max-width: 1180px; margin: 0 auto; width: 100%; overflow-y: auto; }
.pl-startgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.pl-startgrid .box { display: flex; flex-direction: column; gap: 8px; }
.pl-startgrid h3 { margin: 0; font-size: 14px; }
.pl-sside { display: flex; flex-direction: column; gap: 14px; }
.pl-slist .pl-srow, .pl-slist .pl-sinboxrow, .pl-sdrawings .pl-srecent { cursor: pointer; }
.pl-slist .pl-srow:hover, .pl-slist .pl-sinboxrow:hover, .pl-sdrawings .pl-srecent:hover { background: var(--hover, rgba(11, 30, 58, .04)); }
.pl-slist .pl-mnum { font-family: var(--mono, monospace); font-weight: 600; }
body.phone .pl-startgrid { grid-template-columns: 1fr; }
/* Project openen: the list of all projects in a wide window */
.modal.pl-ovmodal { width: min(1280px, 96vw); max-width: 96vw; }
.modal.pl-ovmodal .pl-overview { display: block; height: auto; min-height: 50vh; }
.modal.pl-ovmodal .pl-main { padding: 0; }
.pl-orph .pl-orphrow, .pl-opendr .pl-odrrow { cursor: default; }
.pl-opendr .pl-odrrow { cursor: pointer; }
.pl-opendr .pl-odrrow.loaded { border-color: var(--accent); }
/* the project button in the top bar: the number of the open project */
#topbar .tb-project .tb-pj-lbl { font-family: var(--mono, inherit); }

/* ---------------------------------------------------------------- the project and its drawings (2026.10.126) */
.pl-phead { border-top: 4px solid var(--accent); }
.pl-phead .pl-dclose { right: 8px; }
.pl-phead .pl-pmore { position: absolute; right: 44px; top: 10px; }
.pl-phead .pl-dtitle { margin-right: 80px; }
.pl-pstatus { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pl-pstext { font-size: 13px; font-weight: 600; margin-right: 4px; }
.pl-pdone { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pl-pdone .grow { flex: 1 1 200px; }
.pl-pdrawings { display: flex; flex-direction: column; gap: 8px; }
.pl-pdrawings h4 { display: flex; align-items: center; gap: 6px; margin: 0; }
.pl-pdrawings h4 svg { width: 18px; height: 18px; }
.pl-drrow { align-items: center; flex-wrap: wrap; }
.pl-drrow.sel { border-color: var(--accent); background: var(--accentbg); }
.pl-drrow .pl-drsel { width: 18px; height: 18px; flex: none; margin: 0 2px; }
.pl-drrow .pl-drmain { cursor: pointer; flex: 1 1 260px; }
.pl-drrow .pl-drmain:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.pl-drrow .pl-drnext { font-size: 12px; color: var(--fg3); }
.pl-drrow .pl-vacts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pl-bundle { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 4px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pl-bundle:first-child { margin-top: 0; }
.pl-bundle .pl-cnt { font-size: 12px; color: var(--fg3); }
.pl-bundle .grow { flex: 1; }
.pl-selbar { align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--bg3); }
.pl-selbar .pl-selinfo { margin-right: auto; }
.pl-dbundle { margin-top: 2px; }
.pl-cproj { color: var(--fg3); margin-top: 1px; }
/* back to the project (the drawing page) and to Mijn opdrachten (the fitter): a light outline button in the accent colour
   (2026.10.135; before, a ghost caption with a missing icon), one line with an ellipsis; it does not compete with the
   primary action */
.btn.pl-back { display: flex; width: fit-content; max-width: 100%; justify-content: flex-start; margin: 0 0 8px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line2)); background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--accent); font-weight: 600; }
.btn.pl-back .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.pl-back svg { flex: none; }
.btn.pl-back:hover { background: var(--accentbg); border-color: var(--accent); }
.btn.pl-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.pl-back:active { background: color-mix(in srgb, var(--accent) 18%, transparent); }
:root[data-theme="dark"] .btn.pl-back { color: color-mix(in srgb, var(--accent) 55%, #FFFFFF); border-color: color-mix(in srgb, var(--accent) 60%, var(--line2)); }
.pl-ptable .pl-tstatus { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
/* invoices */
.pl-invlist { display: flex; flex-direction: column; gap: 6px; }
.pl-invrow { align-items: center; flex-wrap: wrap; cursor: default; }
.pl-invrow.paid .t1 { color: var(--fg3); }
.pl-invsum { margin-top: 6px; font-weight: 600; }
.pl-invform .pl-invdrs { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.pl-invdr { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.pl-invdr input { width: 18px; height: 18px; flex: none; }
body.phone .pl-drrow .pl-vacts { width: 100%; }
body.phone .pl-phead .pl-dtitle { font-size: 18px; }

/* ---------------------------------------------------------------- Start as Home (2026.10.129, A-11/A-19) */
.pl-shead { gap: 8px; }
.pl-sopen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.pl-sopen .pl-sopentxt { flex: 1 1 220px; font-weight: 600; }
.pl.pl-start .pl-startgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pl-sh { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.pl-scnt { font-weight: 600; }
.pl-ssteps { display: flex; flex-direction: column; gap: 8px; }
.pl-step-sum .t1 { display: flex; align-items: center; gap: 6px; }
.pl-step-sum { cursor: default; }
.pl-step-sum.late .t1 { color: var(--err); }
.pl-sstep { align-items: center; }
.pl-sstep .pl-smain { cursor: pointer; }
.pl-sstep .pl-smain:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.pl-sstep .pl-chip, .pl-srecent .pl-chip, .pl-sinboxrow .pl-chip { flex: none; }
.pl-sstep .pl-sstepbtn, .pl-step-sum .btn { flex: none; }
.pl-sbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pl-sbar .pl-srsearch { flex: 1 1 160px; height: 34px; width: auto; }
.pl-pscope, .pl-rscope { flex-wrap: wrap; align-self: flex-start; }
.pl-smore:empty { display: none; }
.pl-slist .pl-srow.sel { border-color: var(--accent); background: var(--accentbg); }
body.phone .pl-sstep, body.phone .pl-step-sum { flex-wrap: wrap; }
body.phone .pl-sstep > .grow, body.phone .pl-step-sum > .grow { flex: 1 1 100%; }
/* the fixed first tab Start in the tab bar (A-19) */
#doctabs .dt-home { display: flex; align-items: center; gap: 5px; flex: none; min-height: 32px; padding: 0 12px 0 8px; border: 1px solid var(--line); border-bottom: none; border-radius: 8px 8px 0 0; background: var(--bg2); color: var(--fg2); font-size: 13px; cursor: pointer; user-select: none; }
#doctabs .dt-home:hover { color: var(--fg); }
#doctabs .dt-home:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
#doctabs .dt-home .dt-ico { display: inline-flex; }
#doctabs .dt-home .dt-ico svg { width: 14px; height: 14px; }
body.mode-touch #doctabs .dt-home { min-height: 40px; }
/* one question for all drawings with unsaved changes (A-05) */
.dt-saveall .dt-savelist { margin: 6px 0 0; padding-left: 20px; }
.dt-saveall .dt-savelist li { font-weight: 600; }
/* Project openen as a chooser (A-19): Openen on every row, the trash as a view */
.pl-ptable .pl-tdopen { text-align: right; white-space: nowrap; }
.pl-trash { display: flex; flex-direction: column; gap: 6px; }
.pl-trash .pl-trashlist { display: flex; flex-direction: column; gap: 6px; }
.pl-trash .pl-trashrow { cursor: default; align-items: center; }
/* Tekening openen (A-06): the recent drawings first */
.pl-opendr .pl-odrh { margin: 10px 0 6px; font-size: 13px; }
.pl-opendr .pl-odrh:first-child { margin-top: 0; }
.pl-opendr .pl-srecent { cursor: pointer; align-items: center; }
.pl-opendr .pl-odrrow { align-items: center; }
/* Start on a phone: the title above, the buttons in a wrapping row (the grid of .pl-head is for the chooser) */
body.phone .pl-head.pl-shead { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
body.phone .pl-shead .pl-title { flex: 1 1 100%; margin: 0; }
body.phone .pl-shead .btn { flex: 1 1 auto; min-height: 44px; justify-content: center; }
body.phone .pl-sopen .btn { min-height: 40px; }

/* ---------------------------------------------------------------- 2026.10.129 (WVB-B): the next step on a row, bundles */
.pl-drrow .pl-vacts .pl-drstep { font-weight: 600; }
.pl-bundlewrap .pl-bundle { border-bottom: 0; }
.pl-bundlewrap { border-bottom: 1px solid var(--line); margin: 8px 0 0; }
.pl-bundlewrap:first-child { margin-top: 0; }
.pl-breason { padding: 0 2px 6px; }
.pl-bundle .pl-bstep[disabled] { opacity: .6; cursor: not-allowed; }
.pl-bcalcform { display: flex; flex-direction: column; gap: 8px; }
.pl-drwhohint { margin: 4px 0 0; }
.pl-drwhohint[hidden] { display: none; }
#right .dr-hacts .dr-donestep { white-space: nowrap; }

/* 2026.10.132: the address of a relation in separate fields (P.addressFields): street + number + box, postal code + city,
   province + country; also at phone width (the rows keep their columns, the fields shrink) */
.addr-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.addr-block .field, body.phone .modal .addr-block .field { margin: 0; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; align-items: start; align-content: start; }
.addr-block .field > label { font-size: 12px; }
.addr-block .field[hidden], .addr-block .inp[hidden], .addr-hint[hidden], .pl-relnew[hidden] { display: none; }
.addr-block .inp { min-width: 0; }
.addr-row { display: grid; gap: 8px; min-width: 0; align-items: start; }
.addr-line { grid-template-columns: minmax(0, 1fr) 5.5em 4.5em; }
.addr-place { grid-template-columns: 7.5em minmax(0, 1fr); }
.addr-region { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.phone .addr-line { grid-template-columns: minmax(0, 1fr) 4.2em 3.6em; }
body.phone .addr-place { grid-template-columns: 6.2em minmax(0, 1fr); }
.addr-hint { color: var(--muted); font-size: 11px; }
.pl-relnew { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); }
.pl-relnew .field { margin: 0; }

/* ---------------------------------------------------------------- 2026.10.135: the project page */
/* the tab Algemeen: Opslaan and Annuleren in a bar that stays in view at the bottom of the tab (also above the
   on-screen keyboard of a tablet or phone, --kb-h); it lies on the bottom padding of the page (.pl.pl-project
   .pl-dbody: 28 px, also on a phone), flush with its edge */
.pl-genbar { position: sticky; bottom: calc(var(--kb-h, 0px) - 28px); z-index: 2; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 6px -20px -28px; padding: 10px 20px 12px; background: var(--bg2); border-top: 1px solid var(--line); box-shadow: 0 -6px 12px -10px rgba(11, 30, 58, .25); }
.pl-genbar .pl-gendirty { margin-right: auto; color: var(--fg2); font-weight: 600; }
.pl-genbar .pl-gendirty::before { content: '●'; margin-right: 6px; color: var(--warn); }
.pl-genbar .btn { min-width: 112px; }
body.phone .pl-genbar { padding-bottom: calc(10px + var(--safe-b)); }
body.phone .pl-genbar .btn { flex: 1 1 0; }
body.phone .pl-genbar .pl-gendirty { flex: 1 1 100%; }
.pl-dbody .field.invalid .inp { border-color: var(--err); }
/* a field brought into view (a refused Opslaan, the focus, the on-screen keyboard) stays above the bar: its height is
   --genbar-h (set by the tab) */
.pl-dbody.pl-genform { scroll-padding-bottom: calc(var(--genbar-h, 72px) + var(--kb-h, 0px) + 8px); }
/* while Opslaan runs the fields are read only (what is saved is what the form shows) and keep their look */
.pl-dbody.pl-gensaving .inp[readonly] { background: var(--bg3); border-color: var(--line2); padding-left: 8px; }
/* the tab Taken: the placeholder of the date (a date field has none of its own; the tap goes to the field) and the
   empty choice of the assignee in the style of a placeholder */
.pl-taskduewrap { position: relative; min-width: 0; }
.pl-taskdueph { display: none; position: absolute; left: 9px; right: 36px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-taskduewrap.empty:not(:focus-within) .pl-taskdueph { display: block; }
.pl-taskduewrap.empty:not(:focus-within) .pl-taskdue::-webkit-datetime-edit { color: transparent; }
.pl-taskduewrap.empty:not(:focus-within) .pl-taskdue::-webkit-date-and-time-value { color: transparent; }
@supports (-moz-appearance: none) { .pl-taskduewrap.empty:not(:focus-within) .pl-taskdue { color: transparent; } }   /* Firefox: its own dd-mm-jjjj */
/* the text as large as the field (16 px on a tablet and a phone); on the phone the date and the assignee one below the
   other, so that "Tegen wanneer?" fits */
body.mode-touch .pl-taskdueph { font-size: 16px; }
body.phone .pl-taskmeta { grid-template-columns: minmax(0, 1fr); }
.pl-tasktext::placeholder, input.pl-taskowner::placeholder { color: var(--fg3); opacity: 1; }
select.pl-taskowner.empty { color: var(--fg3); }
select.pl-taskowner option { color: var(--fg); }
