/* Shared by the document order pages (dokument.js) – hero, CVR card and layout. */
.dok-hero { position: relative; overflow: hidden; padding: 90px 52px 70px; text-align: center; border-bottom: 1px solid var(--border-light); }
.dok-hero .st-hero-overlay { background: linear-gradient(180deg, rgba(10,14,11,.74) 0%, rgba(10,14,11,.6) 55%, rgba(19,35,26,.95) 100%); }
.dok-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.dok-hero .eyebrow { justify-content: center; }
.dok-hero-facts { position: relative; z-index: 2; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; list-style: none; }
.dok-hero-facts li { color: #fff; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dok-hero-facts li::before { content: '✓'; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #07180d; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
@media (max-width: 900px) { .dok-hero { padding: 84px 24px 56px; } }

#bestil > .order-layout { max-width: 1180px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 1100px) { #bestil > .order-layout { grid-template-columns: minmax(0, 1fr) 270px; } }
@media (max-width: 960px) { #bestil > .order-layout { grid-template-columns: 1fr; } }

.cvr-card { display: flex; gap: 14px; align-items: center; margin: -6px 0 16px; padding: 16px 18px; border-radius: 12px; background: #fff; border: 2px solid #bfe3cf; }
.cvr-card strong { display: block; font-size: 16px; color: #07180d; }
.cvr-card span { font-size: 13px; color: #3d5546; }
.cvr-card svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dok-list .card-block .form-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* Live calculation (gældsbrev) */
.calc-box { margin: 8px 0 22px; padding: 18px 20px; border-radius: 12px; background: #fff; border: 2px solid #bfe3cf; }
.calc-head { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #0e6644; margin-bottom: 10px; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; color: #3d5546; border-bottom: 1px solid #edf3ef; }
.calc-row strong { color: #07180d; font-weight: 600; }
.calc-total { border-bottom: 0; padding-top: 10px; font-size: 15px; color: #07180d; }
.calc-total strong { font-size: 20px; }
.calc-note, .calc-empty { font-size: 12px; color: #5a6f61; margin-top: 8px; }

/* ?test on localhost/staging */
.test-banner { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 9999; background: #c0392b; color: #fff; font: 600 12px 'DM Sans', sans-serif; letter-spacing: .04em; padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }

/* Live line under a list row (ejerbog: % → kroner and anparter) */
.row-info { margin: -4px 0 0; font-size: 13px; font-weight: 600; color: #0e6644; }
.row-info:empty { display: none; }

/* Koncerndiagram builder: three rows (reelle ejere, selskaber, datterselskaber), lines drawn in an SVG */
.tree-wrap { overflow-x: auto; padding: 18px 8px 22px; margin-bottom: 16px; background: #fff; border: 1px solid #e1ebe4; border-radius: 14px; }
.kd { position: relative; display: flex; flex-direction: column; gap: 54px; min-width: max-content; padding: 16px 12px 16px 120px; }
.kd-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.kd-lines path { fill: none; stroke: #8fd1ae; stroke-width: 2; }
.kd-row { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 22px; min-height: 64px; }
.kd-level { position: absolute; left: -108px; top: 50%; transform: translateY(-50%); width: 96px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a9a90; }
.kd-box { position: relative; display: flex; flex-direction: column; align-items: center; }
.kd-box .node { position: relative; z-index: 1; }
.kd-plus { position: absolute; left: 50%; z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: #0e6644; color: #fff; font: 600 17px/1 'DM Sans', sans-serif; cursor: pointer; transform: translateX(-50%); opacity: .45; transition: opacity .15s, transform .15s; }
.kd-up { top: -14px; } .kd-down { bottom: -14px; }
.kd-box:hover .kd-plus, .kd-box:has(.node.sel) .kd-plus, .kd-plus:focus-visible { opacity: 1; }
.kd-plus:hover { transform: translateX(-50%) scale(1.12); }
.kd-del { position: absolute; top: -9px; right: -9px; z-index: 3; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: #c0392b; color: #fff; font: 600 14px/1 'DM Sans', sans-serif; cursor: pointer; opacity: 0; transition: opacity .15s; }
.kd-box:hover .kd-del, .kd-box:has(.node.sel) .kd-del, .kd-del:focus-visible { opacity: 1; }
.kd-link { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 3px 10px; border-radius: 999px; border: 2px solid #fff; background: #46d99b; color: #07180d; font: 600 11px 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 10px rgba(7,24,13,.15); }
.kd-box:has(.kd-link) .kd-up { display: none; }
.node.linkable { border-style: dashed; border-color: #46d99b; }
@media (hover: none) { .kd-del { opacity: 1; } }
.kd-empty { align-self: center; padding: 12px 18px; border-radius: 12px; border: 2px dashed #cfe9db; background: none; color: #5a6f61; font: 500 13px 'DM Sans', sans-serif; cursor: pointer; }
.kd-empty:hover { border-color: #8fd1ae; color: #0e6644; }
.node small b { color: #0e6644; }
.kd-owners { display: grid; gap: 8px; }
.kd-owner { display: flex; align-items: center; gap: 10px; }
.kd-owner .choice { flex: 1; margin: 0; }
.wiz .kd-owner input[data-kd-andel] { width: 90px; flex: none; }
.kd-pct { font-size: 13px; color: #3d5546; }
@media (max-width: 600px) { .kd { padding-left: 12px; } .kd-level { position: static; transform: none; width: auto; align-self: center; margin-right: 6px; } .kd-row { flex-wrap: nowrap; } }
.node { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 132px; max-width: 190px; padding: 12px 14px; border-radius: 12px; border: 2px solid #dcefe4; background: #f6fbf8; color: #07180d; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.node.person { background: #f6f3eb; border-color: #e7e0cc; }
.node:hover { border-color: #8fd1ae; }
.node.sel { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(70,217,155,.22); }
.node strong { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.node em { font-style: normal; font-size: 12px; font-weight: 700; color: #0e6644; background: #dff3e8; padding: 2px 8px; border-radius: 999px; }
.node small { font-size: 11px; color: #5a6f61; }
.node-ico svg { width: 20px; height: 20px; fill: none; stroke: #0e6644; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tree-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
