/* Produkter › Tekster (JJ's prototype, ægte data 21-11-2026). Kun cockpittets tokens fra app.css, så lyst og mørkt tema følger med.
   Filteret er det fælles varefilter (UI.varefilter, ui.css .ui-vf); her er kun sidens eget indhold, afgrænset til .tkx-side og .tkx-panel. */
.tkx-side { padding-bottom: 72px; }

/* «Kun prøve»: skrivning er ikke slået til */
.tkx-laast { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink-700); }

/* landekode */
.tkx-side .tk-kode { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 6px; border-radius: var(--r-tag);
  background: var(--line-soft); color: var(--ink-700); font: 700 11px/1 var(--font-head); white-space: nowrap; flex: none; }

/* varens overskrift */
.tkx-side .tk-vare { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.tkx-side .tk-vare h2 { margin: 0; font-size: 18px; }
.tkx-side .tk-vare .btn:first-of-type { margin-left: auto; }

/* gruppeoverskrift (SEO) */
.tkx-side .tk-gruppe { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: var(--sp-2); }
.tkx-side .tk-gruppe h2 { margin: 0; font-size: 16px; }

/* sektion pr. felt */
.tkx-side .tk-sektion { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); min-width: 0; }
.tkx-side .tk-sektion > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 14px var(--sp-5);
  cursor: pointer; list-style: none; border-radius: var(--r-card); }
.tkx-side .tk-sektion > summary::-webkit-details-marker { display: none; }
.tkx-side .tk-sektion > summary:hover { background: var(--surface-hover); }
.tkx-side .tk-sektion > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tkx-side .tk-sektion-titel { display: inline-flex; align-items: center; gap: 8px; font: 15px var(--font-head); color: var(--ink-900); }
.tkx-side .tk-pil { transition: transform .15s; }
.tkx-side .tk-sektion[open] .tk-pil { transform: rotate(90deg); }
.tkx-side .tk-maerke { font: 700 10px/18px var(--font-head); padding: 0 6px; border-radius: var(--r-tag); background: var(--info-soft); color: var(--ink-700); }
.tkx-side .tk-resume { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--gold-text); }
.tkx-side .tk-resume span { background: var(--gold-soft); border-radius: var(--r-tag); padding: 1px 8px; }
.tkx-side .tk-resume span.ok { background: var(--green-soft); color: var(--green-text); }
.tkx-side .tk-sektion-krop { display: grid; gap: var(--sp-3); padding: 0 var(--sp-5) var(--sp-5); }

/* felterne side om side */
.tkx-side .tk-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--sp-3); }
.tkx-side .tk-celle { display: grid; gap: 8px; align-content: start; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); min-width: 0; }
.tkx-side .tk-celle.ref { background: var(--surface-panel); border-style: dashed; }
.tkx-side .tk-celle.tk-aendret { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.tkx-side .tk-celle-hoved { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tkx-side .tk-celle-navn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.tkx-side .tk-celle-hoved .ui-status { margin-left: auto; flex: none; }
.tkx-side .tk-celle input, .tkx-side .tk-celle textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-900);
  font: 14px/1.45 var(--font-ui); padding: 8px 10px; resize: vertical; min-width: 0; }
.tkx-side .tk-celle input:focus, .tkx-side .tk-celle textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.tkx-side .tk-celle textarea.tkx-html { font: 12.5px/1.5 var(--font-mono); }
.tkx-side .tk-celle-fod { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 28px; }
.tkx-side .tk-taeller { font-size: 12px; color: var(--ink-500); }
.tkx-side .tk-taeller.over { color: var(--danger-text); font-weight: 700; }
.tkx-side .tk-knapper { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }

/* fast bund med forhåndsvisning */
.tkx-side .tk-bund { position: sticky; bottom: 52px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-pop); }
.tkx-side .tk-bund-tekst { font-size: 14px; color: var(--ink-700); }
.tkx-side .tk-bund-knapper { display: flex; flex-wrap: wrap; gap: 8px; }
.tkx-side .tk-bund .btn[disabled] { opacity: .5; cursor: default; }
.tkx-side .tkx-advar { color: var(--danger-text); font-weight: 700; }

/* skriveplanen i sidepanelet: før og efter pr. felt, præcis tekst */
.tkx-panel .tkx-planpanel { display: grid; gap: var(--sp-3); }
.tkx-panel h3 { margin: 0; font-size: 16px; }
.tkx-panel .tk-pv-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.tkx-panel .tk-pv { display: grid; gap: 6px; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.tkx-panel .tk-pv-hoved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tkx-panel .tkx-udfald { margin-left: auto; font-size: 12px; color: var(--ink-500); }
.tkx-panel .tk-pv-foer, .tkx-panel .tk-pv-efter { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 13px; min-width: 0; }
.tkx-panel .tk-pv-foer { color: var(--ink-500); }
.tkx-panel .tkx-pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.5 var(--font-mono); max-height: 240px; overflow: auto; }
.tkx-panel .tkx-kvittering { margin: 0; font-weight: 700; }
.tkx-panel .tkx-raekke { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.tkx-panel .tkx-raekke input { min-height: 38px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink-900); font: 14px var(--font-ui); padding: 0 12px; }
.tkx-panel .tkx-handlinger { display: flex; flex-wrap: wrap; gap: 8px; }
