/* Submissions of drawings (js/ui/submissions.js): banner while drawing or reviewing, lists, status chips. */
#sub-banner { position: absolute; top: 0; left: 0; right: 0; min-height: 48px; box-sizing: border-box; z-index: 6; display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; background: #FEF3C7; color: #78350F; border-bottom: 1px solid #F59E0B; font-size: 13px; }
#sub-banner.mode-review, #sub-banner.mode-view { background: #EDE9FE; color: #3B0764; border-bottom-color: #7C3AED; }
#sub-banner .sub-bico { display: inline-flex; }
#sub-banner .sub-bico svg { width: 22px; height: 22px; }
#sub-banner .sub-btext { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#sub-banner .sub-btext b, #sub-banner .sub-btext span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sub-banner .sub-btext .sub-chip { align-self: flex-start; }
#sub-banner .sub-bact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
#center.has-subbanner > .workspace { top: 48px; }
:root[data-theme="dark"] #sub-banner { background: #3F2A06; color: #FDE68A; }
:root[data-theme="dark"] #sub-banner.mode-review, :root[data-theme="dark"] #sub-banner.mode-view { background: #2E1065; color: #EDE9FE; }

.sub-chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sc) 40%, transparent); }

.sub-choose { display: grid; gap: 10px; }
.sub-tile { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; text-align: left; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--fg); cursor: pointer; min-height: 64px; }
.sub-tile svg { grid-row: 1 / 3; width: 28px; height: 28px; color: var(--accent); }
.sub-tile b { font-size: 14px; }
.sub-tile small { color: var(--fg3); }
.sub-tile:hover, .sub-tile:focus-visible { border-color: var(--accent); background: var(--accentbg); }

.sub-mine h4, .sub-detail h4 { margin: 14px 0 6px; }
.sub-mine .li, .pl-sublist .li { display: flex; align-items: center; gap: 8px; }
.sub-hnote { margin-top: 3px; font-size: 13px; color: var(--warn); }
.sub-detail .sub-dhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.sub-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sub-photos img { width: 150px; height: 110px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.sub-inbox { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.sub-ihead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* the filters in one row next to Open / Alle / Prullenbak (L-52), not as full-width fields */
.sub-ihead select.inp { width: auto; flex: 0 1 190px; min-width: 140px; }
.sub-ihead .sub-fq { width: auto; flex: 1 1 260px; max-width: 440px; }
.sub-ihead > .grow { flex: 1 1 0; }
body.phone .sub-ihead select.inp, body.phone .sub-ihead .sub-fq { flex: 1 1 100%; max-width: none; }
.sub-tbl td.sub-tnote { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.phone .sub-tbl td.sub-tnote { max-width: none; white-space: normal; }
.sub-detail .sub-daccnote { margin-top: 10px; }
/* Mijn opdrachten (js/ui/pipeline.js minePanel): a readable width on a wide screen (L-51) */
.pl-minehead, .pl-mine { width: 100%; max-width: 980px; box-sizing: border-box; }
/* the project number in the font of the board and the lists (L-63) */
.pl-mnum { font-family: inherit; font-size: inherit; font-weight: 600; font-variant-numeric: tabular-nums; }
/* for whom the project is: this fitter, or all fitters (L-27) */
.pl-mwho { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 600; vertical-align: 1px; white-space: nowrap;
  color: var(--fg3); background: var(--bg3); border: 1px solid var(--line); }
.pl-mwho[data-who="me"] { color: var(--accent); background: var(--accentbg); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
/* the state after the fitter's approval (L-32) */
.pl-mstate { margin-top: 3px; color: var(--fg3); }
/* Ingediend on a phone: the status below the title, the title in full (L-37) */
body.phone .pl-msub { flex-wrap: wrap; row-gap: 4px; }
body.phone .pl-msub > .grow { flex: 1 1 100%; min-width: 0; }
.pl-msub .sub-chip { white-space: normal; }
.sub-tbl tr.sub-trow { cursor: pointer; }
.sub-tbl tr.sub-trow:hover td { background: var(--accentbg); }
.sub-subform, .sub-accform { display: grid; gap: 10px; }
.pl-subsbox .pl-btnrow { margin-bottom: 8px; }
.pl-signoff { 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-signoff.done { background: var(--ban-ok-bg); color: var(--ban-ok-fg); }
.pl-signoff svg { width: 16px; height: 16px; }
.pl-signoff .grow { flex: 1; }
.pl-views .cnt { margin-left: 4px; padding: 0 6px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; }
.pl-ic.pl-subs { color: var(--warn); }

@media (max-width: 720px) {
  #sub-banner { flex-wrap: wrap; }
  #sub-banner .sub-bact { width: 100%; justify-content: flex-start; }
  #center.has-subbanner > .workspace { top: 92px; }
}

/* process demonstration (js/ui/demo-process.js): who is acting, in the caption header */
#demo-cap .dc-role { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 1px 9px 1px 6px; border-radius: 10px; font-size: 12px;
  font-weight: 700; letter-spacing: 0; text-transform: none; color: #fff; background: #1D4ED8; vertical-align: 1px; }
#demo-cap .dc-role.r-fitter { background: #B45309; }
#demo-cap .dc-role svg { width: 14px; height: 14px; }
.demo-route-process { border: 1px solid var(--accent); border-radius: 10px; padding: 10px 12px; background: var(--accentbg); }
.demo-route-process .btn { margin-top: 6px; }

/* ---- the drawing panel while a fitter draws a submission (js/ui/sketch.js, 2026.10.34): what the drawing is in the head,
   with Foto, Klaar en indienen… and the menu ⋯ (Concept opslaan, Tekening sluiten); no banner ---- */
.sk-head.sk-head-sub { flex-wrap: wrap; row-gap: 6px; }
.sk-head.sk-head-sub .sk-htext { flex: 1 0 100%; }
.sk-head.sk-head-sub .sk-done { flex: 1; justify-content: center; }
.sk-head .sk-htext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sk-head .sk-htext b { flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-head .sk-hsub { font-size: 12px; color: var(--fg3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sketch .sk-head .btn.sk-sub-photo, .sketch .sk-head .btn.sk-sub-more { min-width: 44px; min-height: 44px; padding: 0 8px; position: relative; }
.sk-sub-photo .cnt { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 11px; line-height: 16px; font-weight: 700; }
/* the fitter's Mijn opdrachten: in the top bar on every screen (2026.10.58, L-76); on a phone with the short label Opdrachten */
body.phone .sk-head .sk-htext b { font-size: 14px; }
body.phone .sk-head .sk-hsub { font-size: 12px; }
body.phone .sk-head .btn.sk-done .lbl { white-space: nowrap; }

/* ---- the isometric drawing of the sketch in a full-screen view (js/ui/iso-markup.js) ---- */
.isomk { position: fixed; inset: 0; z-index: 62; display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
  padding: var(--safe-t, 0px) var(--safe-r, 0px) 0 var(--safe-l, 0px); }
.isomk-head { flex: none; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.isomk-head .btn { min-height: 44px; min-width: 44px; }
.isomk-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.isomk-title b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isomk-sub { color: var(--fg3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isomk-canvas { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #E5E7EB; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: var(--cur-grab); }
.isomk-canvas.isomk-drawmode { cursor: crosshair; }
.isomk-canvas svg { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
:root[data-theme="dark"] .isomk-canvas { background: #1F2937; }
.isomk-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--bg2); }
.isomk-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.isomk-tool { min-width: 48px; min-height: 48px; justify-content: center; }
.isomk-tool svg { width: 22px; height: 22px; }
.isomk-tool.active { background: var(--accentbg); border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.isomk-colors { display: flex; gap: 6px; }
.isomk-swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--bg2); background: var(--sw); box-shadow: 0 0 0 1px var(--line2); cursor: pointer; padding: 0; }
.isomk-swatch.on { box-shadow: 0 0 0 3px var(--fg); }
.isomk-undo, .isomk-clear { min-height: 48px; }
.isomk-foot { flex: none; display: flex; align-items: center; gap: 8px; min-height: 22px; padding: 2px 10px calc(2px + var(--safe-b, 0px)); color: var(--fg3); background: var(--bg2); }
.isomk-foot .isomk-count { flex: 1; }
.isomk > .isomk-fit { position: absolute; z-index: 2; min-width: 48px; min-height: 48px; justify-content: center; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  right: calc(10px + var(--safe-r, 0px)); top: calc(var(--safe-t, 0px) + 66px); }
body.phone .isomk > .isomk-fit { top: calc(var(--safe-t, 0px) + 60px); }
/* phone in portrait: two rows of tools (the tools, then the colours with Laatste streek and Alles wissen) */
body.phone:not(.phone-land) .isomk-tools { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 8px; }
body.phone:not(.phone-land) .isomk-row { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
body.phone:not(.phone-land) .isomk-tool { flex: 1; min-width: 44px; padding: 0; }
body.phone .isomk-undo .lbl, body.phone .isomk-clear .lbl { display: none; }
body.phone .isomk-undo, body.phone .isomk-clear { min-width: 48px; padding: 0; justify-content: center; }
body.phone .isomk-head { min-height: 52px; padding: 4px 6px; gap: 6px; }
body.phone .isomk-head .isomk-back .lbl { display: none; }
body.phone .isomk-title b { font-size: 14.5px; }
body.phone .isomk-sub { font-size: 12px; }
/* phone in landscape: the tools in a column on the left, the drawing next to them */
body.phone-land .isomk { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; }
body.phone-land .isomk-head { grid-column: 1 / 3; min-height: 48px; }
body.phone-land .isomk-tools { grid-column: 1; grid-row: 2 / 4; flex-direction: column; flex-wrap: nowrap; align-items: stretch; overflow-y: auto; border-top: 0; border-right: 1px solid var(--line);
  padding: 6px 6px calc(6px + var(--safe-b, 0px)); gap: 8px; }
body.phone-land .isomk-row { flex-direction: column; flex-wrap: nowrap; gap: 4px; align-items: stretch; }
body.phone-land .isomk-trow { display: grid; grid-template-columns: repeat(3, 46px); gap: 4px; }
body.phone-land .isomk-trow .isomk-tool { min-width: 44px; min-height: 44px; padding: 0; }
body.phone-land .isomk-crow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
body.phone-land .isomk-crow .isomk-colors { grid-column: 1 / 3; display: grid; grid-template-columns: repeat(3, 44px); gap: 4px 7px; }
body.phone-land .isomk-crow .isomk-undo, body.phone-land .isomk-crow .isomk-clear { min-height: 44px; }
body.phone-land .isomk-canvas { grid-column: 2; grid-row: 2 / 4; }
body.phone-land .isomk-foot { display: none; }
body.phone-land .isomk > .isomk-fit { top: calc(var(--safe-t, 0px) + 56px); }

/* ---- the bar to type a text label (js/ui/markup.js editText): at the top, so the on-screen keyboard never covers it ---- */
.mk-texted { position: fixed; z-index: 72; top: calc(8px + var(--safe-t, 0px)); left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 16px)); box-sizing: border-box;
  display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--bg); color: var(--fg); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.mk-texted .mk-ttitle { font-weight: 700; font-size: 16px; }
.mk-texted .mk-tinput { width: 100%; box-sizing: border-box; font-size: 18px; line-height: 1.35; min-height: 72px; resize: vertical; font-weight: 600; }
.mk-texted .mk-tbtns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-texted .mk-tbtns .grow { flex: 1; }
.mk-texted .btn { min-height: 44px; }

/* ---- the annotated isometric drawing in the details of a submission ---- */
.sub-iso { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.sub-iso .sub-isopic { display: block; width: 100%; max-height: 300px; }
.sub-iso .sub-isopic svg { display: block; width: 100%; height: auto; max-height: 300px; }
.sub-iso .sub-isobar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--bg2); color: var(--fg); border-top: 1px solid var(--line); }
.sub-iso .sub-isobar .grow { flex: 1; }
.sub-sthint { margin-top: 2px; font-size: 13px; color: var(--fg2); }

/* the work of the fitter (2026.10): Te tekenen, Fabricage en montage */
.sub-work { margin-bottom: 12px; }
.sub-work .li { flex-wrap: wrap; gap: 6px; }
.sub-workblocks { margin-bottom: 8px; }
.sub-step6 .sub-s6none { margin: 4px 0; }

/* ---- 2026.10.129: the fitter (A-08, A-16, A-18, A-21) ---- */
/* Mijn opdrachten: two buttons on a row (the next step and Afwijking tekenen) */
.pl-macts { display: flex; flex: none; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pl-mrow .pl-macts .btn { min-height: 40px; }
body.phone .pl-mrow .pl-macts { width: 100%; }
body.phone .pl-mrow .pl-macts .btn { flex: 1 1 0; min-height: 44px; justify-content: center; }
.pl-mreturned { margin-top: 4px; }
body.phone .pl-minehead { grid-template-columns: minmax(0, 1fr) auto auto; }
body.phone .pl-minehead .pl-msurvey, body.phone .pl-minehead .pl-mrefresh { grid-row: 1; }
/* the remark of work preparation in the head of the drawing panel while a returned drawing is revised (B-31) */
.dr-hremark { margin: 4px 0 2px; padding: 5px 8px; border-radius: 6px; background: var(--ban-warn-bg); color: var(--ban-warn-fg); line-height: 1.35; }
/* the drawing page of the fitter: status, next step, remark, Openen in 3D first */
.pl-fpage .pl-fbody { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.pl-fstatus { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-facts2 .btn { min-height: 44px; }
body.phone .pl-facts2 { flex-direction: column; }
body.phone .pl-facts2 .btn { width: 100%; justify-content: center; }
.pl-fremark { margin: 0; }
.pl-fdesc { margin: 0; white-space: pre-wrap; }
.pl-fread { margin: 4px 0 0; }
/* the previous note with a second submission (B-37) */
.sub-prevnote { margin: 0; }
/* a drawing in review is read-only (A-21): the banner says so */
#sub-banner.mode-review .sub-btext .small, #sub-banner.mode-view .sub-btext .small { white-space: normal; }
/* the message after Goedkeuren: the button in the toast readable (B-50) */
#toast-root .toast .btn.sub-openmodel { margin-left: 8px; background: var(--toast-fg); color: var(--toast-bg); border-color: var(--toast-fg); }
/* phone: the title on its own row, Nieuwe inmeting and Vernieuwen side by side below it (the title was covered) */
body.phone .pl-minehead { grid-template-columns: 1fr 1fr; }
body.phone .pl-minehead .pl-title { grid-column: 1 / -1; }
body.phone .pl-minehead .pl-msurvey, body.phone .pl-minehead .pl-mrefresh { grid-row: 2; min-height: 44px; justify-content: center; }
body.phone .pl-mrow .pl-macts .btn { flex: 1 1 auto; white-space: normal; text-align: center; }
