/* Level 62 — Data flow map screen. Uses the theme variables in style.css / theme-*.css only, so it follows the
   light, dark and "future" themes. Every state has a word or a line style as well as a colour. */
.dfm { min-width: 0; }
.dfm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dfm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dfm-title { margin: 0; font-size: 18px; }
.dfm-sub, .dfm-ep-s, .dfm-foot { font-size: 12px; color: var(--dim); }
.dfm-ep-s { display: block; line-height: 1.35; }
.dfm-counts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dfm-scope { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 10px; }
.dfm-scope label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); min-width: 160px; }
.dfm-scope .dfm-grow { flex: 1 1 220px; }
.dfm-scope select, .dfm-scope input { font: inherit; font-size: 13px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm, 6px); background: var(--surface); color: var(--ink); min-height: 36px; }
.dfm-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.dfm-views { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--surface-2); }
.dfm-view { font: inherit; font-size: 12.5px; padding: 6px 12px; min-height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--dim); cursor: pointer; }
.dfm-view.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.dfm-view .dfm-n { font-size: 11px; padding: 0 6px; border-radius: 10px; background: var(--surface-3); color: var(--dim); margin-left: 2px; }
.dfm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dfm-chip { font: inherit; font-size: 12px; padding: 5px 10px; min-height: 28px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.dfm-chip.on { background: var(--accent-soft); border-color: var(--accent-soft-line); color: var(--accent-dark); font-weight: 600; }
.dfm-chip.on::before { content: "✓ "; }
.dfm-card { padding: 0; overflow: hidden; }
.dfm-note { font-size: 12.5px; color: var(--dim); margin: 0 0 10px; line-height: 1.5; }
.dfm-empty { padding: 18px 16px; color: var(--dim); font-size: 13px; }
.dfm-ok { color: var(--green); font-size: 13px; }
.dfm-tfoot { padding: 8px 14px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); }
.dfm-foot { margin: 12px 0 0; line-height: 1.5; }
/* ---- table ---- */
.dfm-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dfm-table th { text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.dfm-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dfm-table tr.assoc td { color: var(--dim); }
.dfm-table tr.assoc .dfm-ep { color: var(--ink); }
.dfm-ep { display: inline-block; min-width: 0; }
.dfm-ep-k { display: block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.dfm-act-cell { text-align: right; white-space: nowrap; }
.dfm-table .quiet { font-size: 12px; padding: 5px 10px; min-height: 28px; }
/* ---- flow view ---- */
.dfm-flow { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px; align-items: start; }
.dfm-nav { padding: 12px 14px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.dfm-nav-top { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; font-size: 13px; }
.dfm-nav-list, .dfm-nav-list ul { list-style: none; margin: 0; padding: 0; }
.dfm-nav-h { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 10px 0 4px; }
.dfm-nav-n { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; padding: 7px 10px; min-height: 36px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; }
.dfm-nav-n:hover { background: var(--surface-2); }
.dfm-nav-n.sel { background: var(--accent-soft); border-color: var(--accent-soft-line); font-weight: 600; }
.dfm-nav-sel { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
.dfm-nav-sel:empty { display: none; }
.dfm-nav-selh { margin-bottom: 6px; }
.dfm-nav-io { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.dfm-nav-io > span { width: 100%; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.dfm-nav-io .quiet, .dfm-nav-io .primary { font-size: 12px; padding: 5px 10px; min-height: 30px; }
.dfm-diagram { padding: 10px 12px 12px; min-width: 0; }
.dfm-dtools { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.dfm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--dim); }
.dfm-lg { display: inline-flex; align-items: center; gap: 6px; }
.dfm-lg line { stroke: var(--dim); stroke-width: 1.8; }
.dfm-lg.confirmed line { stroke: var(--ink); stroke-width: 2.2; }
.dfm-lg.proposed line { stroke: var(--ink); stroke-dasharray: 6 4; }
.dfm-lg.assoc line { stroke: var(--dim); stroke-dasharray: 2 4; }
.dfm-lg.cross line { stroke: var(--amber); stroke-dasharray: 9 4; stroke-width: 2.2; }
.dfm-lg.has-findings line { stroke: var(--red); stroke-width: 2.6; }
.dfm-lg.sensitive line { stroke: var(--info); stroke-width: 3.4; }
.dfm-zoom { display: flex; gap: 4px; }
.dfm-zoom .quiet { min-width: 36px; min-height: 32px; padding: 4px 10px; }
.dfm-svgwrap { overflow: auto; max-height: 70vh; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface); }
.dfm-svgwrap.hidden { display: none; }
.dfm-svgwrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#dfm-svg { display: block; font-family: inherit; }
#dfm-svg .dfm-col-h { font-size: 13px; font-weight: 700; fill: var(--dim); letter-spacing: .02em; }
#dfm-svg marker path { fill: var(--dim); }
#dfm-svg .dfm-edge path { stroke: var(--dim); stroke-width: 1.8; cursor: pointer; transition: opacity .15s; }
#dfm-svg .dfm-edge.confirmed path { stroke: var(--ink); stroke-width: 2.2; }
#dfm-svg .dfm-edge.proposed path { stroke: var(--ink); stroke-dasharray: 6 4; }
#dfm-svg .dfm-edge.assoc path { stroke: var(--dim); stroke-dasharray: 2 4; }
#dfm-svg .dfm-edge.cross path { stroke: var(--amber); stroke-dasharray: 9 4; stroke-width: 2.2; }
#dfm-svg .dfm-edge.sensitive path { stroke-width: 3.4; }
#dfm-svg .dfm-edge.has-findings path { stroke: var(--red); stroke-width: 2.6; }
#dfm-svg .dfm-edge-tag { font-size: 10px; fill: var(--dim); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
#dfm-svg .dfm-edge.cross .dfm-edge-tag { fill: var(--amber-ink, var(--amber)); }
#dfm-svg .dfm-edge.dim, #dfm-svg .dfm-node.dim { opacity: .12; }
#dfm-svg .dfm-node { cursor: pointer; transition: opacity .15s; }
#dfm-svg .dfm-node rect { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; }
#dfm-svg .dfm-node.k-subject rect { fill: var(--info-soft); stroke: var(--info-soft-line); }
#dfm-svg .dfm-node.k-activity rect, #dfm-svg .dfm-node.k-department rect { fill: var(--accent-soft); stroke: var(--accent-soft-line); }
#dfm-svg .dfm-node.k-system rect { fill: var(--surface-3); stroke: var(--line); }
#dfm-svg .dfm-node.k-party rect { fill: var(--amber-soft); stroke: var(--amber-soft-line); }
#dfm-svg .dfm-node.k-external rect { fill: var(--surface); stroke: var(--dim); stroke-dasharray: 4 3; }
#dfm-svg .dfm-node.sel rect { stroke: var(--focus); stroke-width: 2.5; }
#dfm-svg .dfm-node-k { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; fill: var(--dim); }
#dfm-svg .dfm-node-l { font-size: 13px; font-weight: 600; fill: var(--ink); }
#dfm-svg .dfm-node-s { font-size: 10.5px; fill: var(--dim); }
#dfm-svg .dfm-node-f { font-size: 10px; font-weight: 700; fill: var(--red); }
#dfm-svg .dfm-node-u { font-size: 10px; font-weight: 700; fill: var(--amber-ink, var(--amber)); }
/* ---- lifecycle cards ---- */
.dfm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.dfm-lc { padding: 14px 16px; }
.dfm-lc-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.dfm-lc-h h3 { margin: 0; font-size: 14px; line-height: 1.35; }
.dfm-dl { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 6px 12px; margin: 0; font-size: 12.5px; }
.dfm-dl dt { color: var(--dim); } .dfm-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* ---- inspector ---- */
.dfm-itabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px 0 12px; }
.dfm-itab { font: inherit; font-size: 12.5px; padding: 8px 12px; min-height: 36px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--dim); cursor: pointer; }
.dfm-itab.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.dfm-ipanel { font-size: 13px; }
.dfm-f { padding: 10px 12px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 8px; margin-bottom: 8px; font-size: 12.5px; line-height: 1.5; }
.dfm-f.tone-red { border-left-color: var(--red); } .dfm-f.tone-amber { border-left-color: var(--amber); } .dfm-f.tone-grey { border-left-color: var(--dim); }
.dfm-f-h { margin-bottom: 4px; } .dfm-f-a { margin-top: 4px; }
.dfm-h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); margin: 14px 0 6px; }
.dfm-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.dfm-sec.s-implemented { color: var(--green); } .dfm-sec.s-not_implemented { color: var(--red); } .dfm-sec.s-unknown { color: var(--amber-ink, var(--amber)); }
.dfm-iactions { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
/* ---- responsive: one column, cards instead of rows ---- */
@media (max-width: 1000px) { .dfm-flow { grid-template-columns: 1fr; } .dfm-nav { position: static; max-height: none; } }
@media (max-width: 767px) {
  .dfm-scope label { min-width: 100%; }
  .dfm-views { width: 100%; overflow-x: auto; }
  .dfm-table thead { display: none; }
  .dfm-table, .dfm-table tbody, .dfm-table tr, .dfm-table td { display: block; width: 100%; }
  .dfm-table tr { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); }
  .dfm-table td { padding: 4px 0; border: 0; }
  .dfm-table td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
  .dfm-table td:empty { display: none; }
  .dfm-act-cell { text-align: left; padding-top: 8px; }
  .dfm-table .quiet, .dfm-nav-n, .dfm-chip, .dfm-view { min-height: 44px; }
  .dfm-svgwrap { max-height: 60vh; }
  .dfm-cards { grid-template-columns: 1fr; }
  .dfm-dl { grid-template-columns: 1fr; gap: 2px 0; } .dfm-dl dd { margin-bottom: 8px; }
  .ui-slide { width: 100vw !important; }
}
@media (prefers-reduced-motion: reduce) { #dfm-svg .dfm-edge path, #dfm-svg .dfm-node { transition: none; } }
@media print { .dfm-scope, .dfm-bar, .dfm-dtools, .dfm-nav { display: none !important; } .dfm-svgwrap { max-height: none; overflow: visible; border: 0; } }
/* ---- phase 3: forms, registers ---- */
.dfm-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dfm-btnrow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dfm-btnrow .quiet, .dfm-btnrow .primary { font-size: 12px; padding: 5px 10px; min-height: 30px; }
.dfm-danger { color: var(--red); }
.dfm-lc-f:empty { display: none; } .dfm-lc .dfm-btnrow { margin-top: 10px; }
.dfm-reg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dfm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.dfm-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dfm-field.wide { grid-column: 1 / -1; }
.dfm-field > label { font-size: 12px; color: var(--dim); }
.dfm-field input[type=text], .dfm-field input[type=number], .dfm-field input[type=date], .dfm-field select, .dfm-field textarea { font: inherit; font-size: 13px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm, 6px); background: var(--surface); color: var(--ink); min-height: 36px; width: 100%; box-sizing: border-box; }
.dfm-field input:disabled { opacity: .5; }
.dfm-hint { font-size: 11.5px; color: var(--dim); line-height: 1.4; }
.dfm-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; min-height: 28px; padding: 2px 8px 2px 2px; border-radius: 6px; cursor: pointer; }
.dfm-chk input { width: 16px; height: 16px; margin: 0; }
.dfm-chipset, .dfm-tri, .dfm-country { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.dfm-country input[type=text] { flex: 1 1 140px; }
.dfm-ferr { color: var(--red); font-size: 12.5px; margin-top: 8px; min-height: 1em; }
@media (max-width: 640px) { .dfm-form { grid-template-columns: 1fr; } .dfm-chk { min-height: 40px; } }
/* ---- phase 4: versions, inbox ---- */
.dfm-n.hot { background: var(--amber-soft); color: var(--amber-ink, var(--amber)); font-weight: 700; }
.dfm-pad { padding: 10px 14px; }
.dfm-diff { margin-top: 12px; }
.dfm-diff-sec { margin-bottom: 12px; }
.dfm-details { margin-top: 12px; } .dfm-details > summary { cursor: pointer; font-size: 13px; color: var(--dim); padding: 6px 0; }
.dfm-table code { font-size: 11.5px; }
/* ---- phase 5: export menu, print ---- */
.dfm-menu { position: relative; }
/* floating panels: --surface is a translucent tint in the "future" theme, so paint the page colour underneath first */
.dfm-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 260px; background-color: var(--paper); background-image: linear-gradient(var(--surface), var(--surface)); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.18)); padding: 4px; display: flex; flex-direction: column; }
[data-theme="future"] .dfm-menu-list { background: rgba(10, 16, 30, .97); backdrop-filter: blur(10px); }
.dfm-menu-list[hidden] { display: none; }
.dfm-menu-list [role=menuitem] { font: inherit; font-size: 12.5px; text-align: left; padding: 8px 10px; min-height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; }
.dfm-menu-list [role=menuitem]:hover, .dfm-menu-list [role=menuitem]:focus-visible { background: var(--surface-2); }
a.dfm-ver-dl { display: inline-flex; align-items: center; text-decoration: none; }
/* print only the data map — and ONLY when the data map is the page being printed (the Report and every other page print
   normally; this rule used to apply to every page and printed them blank) */
@media print {
  body:has(.dfm:not(.dfm-capture)) * { visibility: hidden; } body:has(.dfm:not(.dfm-capture)) .dfm, body:has(.dfm:not(.dfm-capture)) .dfm * { visibility: visible; }
  body:has(.dfm:not(.dfm-capture)) .dfm { position: absolute; left: 0; top: 0; width: 100%; }
  .dfm-actions, .dfm-chips, .dfm-views, .dfm-scope, .dfm-dtools, .dfm-nav, .dfm-act-cell, .dfm-btnrow, .dfm-tfoot { display: none !important; }
  .dfm-card { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .dfm-table td, .dfm-table th { font-size: 10.5px; }
  .dfm-foot::before { content: "Printed " attr(data-date) ". "; }
}
/* ---- AI proposals ---- */
.dfm-quote { margin: 6px 0 4px; padding: 6px 10px; border-left: 3px solid var(--accent-soft-line); background: var(--surface-2); font-size: 12.5px; font-style: italic; color: var(--ink); border-radius: 0 6px 6px 0; }
.dfm-quote .dfm-ep-s { font-style: normal; margin-top: 2px; }
/* ---- PrivacyGuardin AI ---- */
.dfm-ai-banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 0 12px; border: 1px solid var(--accent-soft-line); background-color: var(--paper); background-image: linear-gradient(var(--accent-soft), var(--accent-soft)); border-radius: 10px; font-size: 13px; }
.dfm-ai-banner > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dfm-ai-banner.warn { border-color: var(--amber-soft-line); background-image: linear-gradient(var(--amber-soft), var(--amber-soft)); }
.dfm-ai-banner .primary { white-space: nowrap; }
.dfm-ai-card { margin-bottom: 12px; border-color: var(--accent-soft-line); }
.dfm-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-soft-line); border-top-color: var(--accent); animation: dfm-spin 0.9s linear infinite; flex: 0 0 auto; }
@keyframes dfm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dfm-spin { animation: none; } }
/* ---- lanes (one per activity) ---- */
#dfm-svg .dfm-lane-bg { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; opacity: .55; }
#dfm-svg .dfm-lane-bg.odd { fill: var(--surface); }
#dfm-svg .dfm-lane-h { font-size: 13px; font-weight: 700; fill: var(--ink); }
#dfm-svg .dfm-lane-s { font-size: 11.5px; fill: var(--dim); }
/* ---- personal data on a line ---- */
.dfm-pd-head { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px; font-size: 13.5px; }
.dfm-pd-group { margin: 0 0 10px; }
.dfm-pd-cat { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.dfm-pd-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.dfm-pd-list.cols { columns: 2 220px; column-gap: 24px; margin-bottom: 12px; }
#dfm-svg .dfm-edge path { pointer-events: stroke; }
#dfm-svg .dfm-edge:hover path { stroke-width: 3.6; }
#dfm-svg .dfm-edge path.dfm-hit { stroke: transparent !important; stroke-width: 14 !important; stroke-dasharray: none !important; cursor: pointer; }
/* ---- single diagram: bands, sections, activity colours ---- */
#dfm-svg .dfm-band { fill: var(--surface-2); opacity: .45; }
#dfm-svg .dfm-sect-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; fill: var(--dim); }
#dfm-svg .dfm-edge path.dfm-line { stroke-width: 2; opacity: .78; }
#dfm-svg .dfm-edge.confirmed path.dfm-line { stroke-width: 2.6; opacity: .95; }
#dfm-svg .dfm-edge.sensitive path.dfm-line { stroke-width: 2.8; }
#dfm-svg .dfm-edge.hot path.dfm-line { stroke-width: 4; opacity: 1; }
#dfm-svg .dfm-flag circle { fill: var(--red); stroke: var(--surface); stroke-width: 2; }
#dfm-svg .dfm-flag text { font-size: 11px; font-weight: 800; fill: #fff; }
#dfm-svg .dfm-actbar { pointer-events: none; }
#dfm-svg .dfm-node.k-activity rect:first-of-type { rx: 8; }
#dfm-svg .dfm-leg { cursor: pointer; transition: opacity .15s; }
#dfm-svg .dfm-leg line { stroke-width: 4; stroke-linecap: round; }
#dfm-svg .dfm-leg text { font-size: 12px; fill: var(--ink); }
#dfm-svg .dfm-leg.dim { opacity: .25; }
@media (prefers-reduced-motion: reduce) { #dfm-svg .dfm-leg { transition: none; } }
.dfm-lg.cross line { stroke: var(--dim); stroke-dasharray: 9 4; }
.dfm-lg-flag { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; }
/* ---- off-screen drawing of a version's picture for the Word report: always light colours on white ---- */
.dfm-capture { position: absolute !important; left: -200000px; top: 0; width: 2400px; pointer-events: none;
  --paper: #FFFFFF; --surface: #FFFFFF; --surface-2: #F3F5F8; --surface-3: #E9EDF1; --ink: #17212B; --line: #D6DDE5; --dim: #5B6B7B;
  --accent: #0F8A7A; --accent-dark: #0B6E62; --accent-soft: #E4F3F0; --accent-soft-line: #BFE0DA; --info: #4F5BD5; --info-soft: #ECEEFC; --info-soft-line: #CDD2F5;
  --green: #2E6B4F; --amber: #B07617; --amber-soft: #FBF1DE; --amber-soft-line: #EBD7A8; --amber-ink: #8A5A0F; --red: #AE3A34; --focus: #0F8A7A; color: #17212B; }
.dfm-capture .dfm-svgwrap, .dfm-capture .dfm-svgwrap.hidden { display: block !important; max-height: none !important; overflow: visible !important; }
/* ---- four stage columns (1. Collection · 2. Process · 3. Storage · 4. Transfer), as in the original map ---- */
#dfm-svg { --st-collect-bg: #EEF0FD; --st-collect-line: #6D64D8; --st-collect-ink: #4338A8;
  --st-process-bg: #E3F4EF; --st-process-line: #2E8B76; --st-process-ink: #0F5E4F;
  --st-store-bg: #F2F0EB; --st-store-line: #6B6B6B; --st-store-ink: #4A4A4A;
  --st-transfer-bg: #FBECE8; --st-transfer-line: #B5523C; --st-transfer-ink: #9A3B2A;
  --st-gap-bg: #FDECEC; --st-gap-line: #C0392B; --st-band: .35; }
[data-theme="dark"] #dfm-svg, [data-theme="future"] #dfm-svg { --st-collect-bg: rgba(109,100,216,.18); --st-collect-line: #8E87EA; --st-collect-ink: #B7B2F5;
  --st-process-bg: rgba(46,139,118,.20); --st-process-line: #3FB596; --st-process-ink: #7FD8C0;
  --st-store-bg: rgba(160,160,150,.14); --st-store-line: #9A9A92; --st-store-ink: #CFCFC8;
  --st-transfer-bg: rgba(181,82,60,.18); --st-transfer-line: #D9775E; --st-transfer-ink: #F0A894;
  --st-gap-bg: rgba(192,57,43,.14); --st-gap-line: #E5675A; --st-band: .22; }
[data-theme] .dfm-capture #dfm-svg, .dfm-capture #dfm-svg { --st-collect-bg: #EEF0FD; --st-collect-line: #6D64D8; --st-collect-ink: #4338A8; --st-process-bg: #E3F4EF; --st-process-line: #2E8B76; --st-process-ink: #0F5E4F;
  --st-store-bg: #F2F0EB; --st-store-line: #6B6B6B; --st-store-ink: #4A4A4A; --st-transfer-bg: #FBECE8; --st-transfer-line: #B5523C; --st-transfer-ink: #9A3B2A; --st-gap-bg: #FDECEC; --st-gap-line: #C0392B; --st-band: .35; }
#dfm-svg .dfm-node rect.dfm-box { stroke-width: 1.4; }
#dfm-svg .st-collect rect.dfm-box { fill: var(--st-collect-bg); stroke: var(--st-collect-line); }
#dfm-svg .st-process rect.dfm-box { fill: var(--st-process-bg); stroke: var(--st-process-line); }
#dfm-svg .st-store rect.dfm-box { fill: var(--st-store-bg); stroke: var(--st-store-line); }
#dfm-svg .st-transfer rect.dfm-box { fill: var(--st-transfer-bg); stroke: var(--st-transfer-line); }
#dfm-svg .st-gap rect.dfm-box { fill: var(--st-gap-bg); stroke: var(--st-gap-line); stroke-dasharray: 5 4; }
#dfm-svg .st-collect .dfm-node-l { fill: var(--st-collect-ink); } #dfm-svg .st-process .dfm-node-l { fill: var(--st-process-ink); }
#dfm-svg .st-store .dfm-node-l { fill: var(--st-store-ink); } #dfm-svg .st-transfer .dfm-node-l { fill: var(--st-transfer-ink); }
#dfm-svg .st-gap .dfm-node-l, #dfm-svg .st-gap .dfm-node-s { fill: var(--st-gap-line); }
#dfm-svg .st-collect .dfm-node-s { fill: var(--st-collect-line); } #dfm-svg .st-process .dfm-node-s { fill: var(--st-process-line); }
#dfm-svg .st-transfer .dfm-node-s { fill: var(--st-transfer-line); }
#dfm-svg .dfm-node.sel rect.dfm-box { stroke: var(--focus); stroke-width: 2.6; }
#dfm-svg .dfm-band.st-collect { fill: var(--st-collect-bg); opacity: var(--st-band); } #dfm-svg .dfm-band.st-process { fill: var(--st-process-bg); opacity: var(--st-band); }
#dfm-svg .dfm-band.st-store { fill: var(--st-store-bg); opacity: var(--st-band); } #dfm-svg .dfm-band.st-transfer { fill: var(--st-transfer-bg); opacity: var(--st-band); }
#dfm-svg .dfm-col-h { font-size: 15px; font-weight: 700; }
#dfm-svg .dfm-col-h.st-collect { fill: var(--st-collect-ink); } #dfm-svg .dfm-col-h.st-process { fill: var(--st-process-ink); }
#dfm-svg .dfm-col-h.st-store { fill: var(--st-store-ink); } #dfm-svg .dfm-col-h.st-transfer { fill: var(--st-transfer-ink); }
#dfm-svg .dfm-col-s { font-size: 11.5px; fill: var(--dim); }
#dfm-svg .dfm-badge circle { stroke: #fff; stroke-width: 1.5; } #dfm-svg .dfm-badge text { font-size: 12px; font-weight: 800; fill: #fff; }
#dfm-svg .dfm-badge.bad circle { fill: #DC2626; } #dfm-svg .dfm-badge.unk circle { fill: #D97706; }
#dfm-svg .dfm-edge.gap path.dfm-line { stroke-dasharray: 6 5; opacity: .9; }
#dfm-svg .k-gapstore, #dfm-svg .k-gapparty { cursor: help; }
.dfm-lg-flag.unk { background: #D97706; }
.dfm-lg-gap { display: inline-block; width: 22px; height: 12px; border: 1.5px dashed #C0392B; border-radius: 3px; background: rgba(192,57,43,.12); }
/* ---- personal data on each flow ---- */
.dfm-pd-act { font-size: 14px; margin: 16px 14px 6px; }
.dfm-pd-table td { vertical-align: top; }
.dfm-pd-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.dfm-pd-chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.dfm-pd-chip.sens { background: var(--amber-soft); border-color: var(--amber-soft-line); color: var(--amber-ink, var(--amber)); }
.dfm-pd-table { table-layout: fixed; }
.dfm-pd-table th:nth-child(1) { width: 34%; } .dfm-pd-table th:nth-child(2) { width: 13%; } .dfm-pd-table th:nth-child(4) { width: 90px; }
@media (max-width: 767px) { .dfm-pd-table { table-layout: auto; } }
/* named in the RoPA, not in the register yet */
#dfm-svg .dfm-node.unreg rect.dfm-box { stroke: #D97706; stroke-dasharray: 6 4; stroke-width: 1.6; }
#dfm-svg .dfm-node.unreg .dfm-node-s { fill: #D97706; }
.dfm-lg-unreg { display: inline-block; width: 22px; height: 12px; border: 1.5px dashed #D97706; border-radius: 3px; }
/* ---- full screen diagram ---- */
.dfm-diagram:fullscreen, .dfm-diagram.dfm-max { display: flex; flex-direction: column; padding: 14px 18px; overflow: hidden; background: #FFFFFF; border-radius: 0; }
[data-theme="dark"] .dfm-diagram:fullscreen, [data-theme="future"] .dfm-diagram:fullscreen, [data-theme="dark"] .dfm-diagram.dfm-max, [data-theme="future"] .dfm-diagram.dfm-max { background: #0B0F17; }
.dfm-diagram.dfm-max { position: fixed; inset: 0; z-index: 2000; }
.dfm-diagram:fullscreen .dfm-svgwrap, .dfm-diagram.dfm-max .dfm-svgwrap { flex: 1; max-height: none; display: block; }
body.dfm-noscroll { overflow: hidden; }
/* ---- department frames; sharing between departments on demand ---- */
#dfm-svg .dfm-frame rect.dfm-frame-box { fill: var(--st-process-bg); fill-opacity: .35; stroke: var(--st-process-line); stroke-width: 1.2; stroke-opacity: .7; }
#dfm-svg .dfm-frame .dfm-frame-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; fill: var(--st-process-ink); }
#dfm-svg .dfm-frame.sel rect.dfm-frame-box { stroke: var(--focus); stroke-width: 2.2; stroke-opacity: 1; }
#dfm-svg .dfm-frame.dim { opacity: .35; }
#dfm-svg .dfm-node-int { font-size: 10.5px; font-weight: 600; fill: var(--st-process-line); }
#dfm-svg .dfm-edge.int { display: none; }
#dfm-svg.show-int .dfm-edge.int, #dfm-svg .dfm-edge.int.reveal { display: inline; }
.dfm-intsw[aria-pressed="true"] { border-color: var(--accent-soft-line); color: var(--accent); }
/* ---- CLIENT VIEW: presentation style for clients, the PNG download and the report (fixed colours, any theme) ---- */
#dfm-svg.client { --cv-ink: #1F2933; --cv-dim: #5B6770; --cv-line: #C9CFD6; font-family: "Segoe UI", Calibri, Arial, sans-serif; }
#dfm-svg.client .cv-page { fill: #FFFFFF; }
#dfm-svg.client .cv-title-bar { fill: #F4F5F7; }
#dfm-svg.client .cv-title-org { font-size: 18px; font-weight: 700; fill: var(--cv-ink); }
#dfm-svg.client .cv-title-meta { font-size: 11.5px; fill: var(--cv-dim); }
#dfm-svg.client .dfm-band { fill: #FAFBFC; opacity: 1; }
#dfm-svg.client .dfm-col-h { fill: var(--cv-ink); font-size: 14px; }
#dfm-svg.client .dfm-col-s, #dfm-svg.client .dfm-sect-h { fill: var(--cv-dim); }
#dfm-svg.client .dfm-leg text { fill: var(--cv-ink); }
#dfm-svg.client .cv-bound-org { fill: none; stroke: #2F6F6A; stroke-width: 1.4; stroke-dasharray: 8 5; }
#dfm-svg.client .cv-bound-abroad { fill: #FDF6EE; stroke: #9A5B2E; stroke-width: 1.4; stroke-dasharray: 8 5; }
#dfm-svg.client .cv-bound-t { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; fill: #2F6F6A; }
#dfm-svg.client .cv-bound-t.abroad { fill: #9A5B2E; }
#dfm-svg.client .dfm-frame rect.dfm-frame-box { fill: #F3F8F7; fill-opacity: 1; stroke: #B7CFCB; stroke-opacity: 1; }
#dfm-svg.client .dfm-frame .dfm-frame-h { fill: #2F6F6A; }
#dfm-svg.client .cv-box { stroke-width: 1.3; }
#dfm-svg.client .dfm-node rect.cv-subj, #dfm-svg.client rect.cv-subj { fill: #F6F3FA; stroke: #7A5C99; }
#dfm-svg.client .cv-person circle, #dfm-svg.client .cv-person path { fill: none; stroke: #7A5C99; stroke-width: 1.6; }
#dfm-svg.client .dfm-node rect.cv-proc, #dfm-svg.client rect.cv-proc { fill: #FFFFFF; stroke: #2F6F6A; }
#dfm-svg.client .dfm-node rect.cv-proc-id, #dfm-svg.client rect.cv-proc-id { fill: #2F6F6A; }
#dfm-svg.client .dfm-node rect.cv-store, #dfm-svg.client rect.cv-store { fill: #F7F8F9; stroke: #5B6770; }
#dfm-svg.client .cv-store-div { stroke: #5B6770; stroke-width: 1.2; }
#dfm-svg.client .dfm-node rect.cv-ext, #dfm-svg.client rect.cv-ext { fill: #FFFFFF; stroke: #9A5B2E; }
#dfm-svg.client .dfm-node rect.cv-ext-inner, #dfm-svg.client rect.cv-ext-inner { fill: #FDF8F2; stroke: #E2C9AE; stroke-width: 1; }
#dfm-svg.client .dfm-node rect.cv-ext-id, #dfm-svg.client rect.cv-ext-id { fill: #9A5B2E; }
#dfm-svg.client .dfm-node rect.cv-gap, #dfm-svg.client rect.cv-gap { fill: #FFFFFF; stroke: #B23B3B; stroke-dasharray: 5 4; }
#dfm-svg.client .dfm-node.cv-unreg rect.cv-box { stroke-dasharray: 5 4; }
#dfm-svg.client .cv-id { font-size: 10.5px; font-weight: 700; fill: #FFFFFF; }
#dfm-svg.client .k-system .cv-id { fill: #5B6770; font-size: 12px; }
#dfm-svg.client .cv-l { font-size: 12.5px; font-weight: 600; fill: var(--cv-ink); }
#dfm-svg.client .cv-s { font-size: 10.5px; fill: var(--cv-dim); }
#dfm-svg.client .cv-gap-t { fill: #B23B3B; }
#dfm-svg.client .cv-int { font-size: 10.5px; font-weight: 600; fill: #2F6F6A; }
#dfm-svg.client .cv-abroad { font-size: 10px; font-weight: 700; fill: #9A5B2E; }
#dfm-svg.client .cv-mark circle { stroke: #FFFFFF; stroke-width: 1.2; } #dfm-svg.client .cv-mark text { font-size: 10px; font-weight: 800; fill: #FFFFFF; }
#dfm-svg.client .cv-mark.bad circle { fill: #B23B3B; } #dfm-svg.client .cv-mark.unk circle { fill: #9AA3AD; }
#dfm-svg.client .dfm-edge path.dfm-line { opacity: .85; stroke-width: 1.6; }
#dfm-svg.client .dfm-edge-tag { fill: #9A5B2E; stroke: #FFFFFF; }
#dfm-svg.client .cv-ref rect { fill: #FFFFFF; stroke: var(--cv-line); }
#dfm-svg.client .cv-ref text { font-size: 8.5px; font-weight: 700; fill: var(--cv-dim); }
#dfm-svg.client .cv-key { font-size: 11px; fill: var(--cv-ink); }
#dfm-svg.client .cv-key-bad { fill: #B23B3B; font-weight: 800; } #dfm-svg.client .cv-key-unk { fill: #9AA3AD; font-weight: 800; }
#dfm-svg.client .dfm-node.sel rect.cv-box { stroke: #0F5F58; stroke-width: 2.6; }
#dfm-svg.client .dfm-flag circle { fill: #B23B3B; stroke: #FFFFFF; }
.dfm-cvsw[aria-pressed="true"] { border-color: var(--accent-soft-line); color: var(--accent); }
.dfm-svgwrap:has(#dfm-svg.client) { background: #FFFFFF; }
/* never print the privacy-choices banner / dialog on top of a report or any other page */
@media print { .pgc-bar, .pgc-back, .pgc-modal { display: none !important; } }
