/* Produkter › Ekstra felter (JJ's prototype, ægte data 23-11-2026). Filteret (tk-vaelg, tk-felt, tk-dd, pf) kommer fra ui.css,
   søgefeltet, bunden og planpanelet fra static/enkeltvare.css; her kun sidens eget indhold, afgrænset til .ef-side.
   Kun cockpittets tokens fra app.css, så lyst og mørkt tema følger med. */
.ef-side .ef-vare { min-width: min(360px, 100%); }
.ef-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; }
.ef-side .pf-grp { margin: 8px 8px 2px; font: 700 11px var(--font-head); color: var(--ink-500); }
.ef-side .ef-feltpop { width: min(460px, calc(100vw - 32px)); }

/* sektion pr. felt */
.ef-side .ef-sektioner { display: grid; gap: var(--sp-3); }
.ef-side .tk-sektion { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); min-width: 0; }
.ef-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); }
.ef-side .tk-sektion > summary::-webkit-details-marker { display: none; }
.ef-side .tk-sektion > summary:hover { background: var(--surface-hover); }
.ef-side .tk-sektion > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ef-side .tk-sektion-titel { display: inline-flex; align-items: center; gap: 8px; font: 15px var(--font-head); color: var(--ink-900); }
.ef-side .tk-pil { transition: transform .15s; }
.ef-side .tk-sektion[open] .tk-pil { transform: rotate(90deg); }
.ef-side .tk-resume { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--gold-text); }
.ef-side .tk-resume span { background: var(--gold-soft); border-radius: var(--r-tag); padding: 1px 8px; }
.ef-side .tk-resume span.ok { background: var(--green-soft); color: var(--green-text); }
.ef-side .tk-sektion-krop { display: grid; gap: var(--sp-3); padding: 0 var(--sp-5) var(--sp-5); }

/* felterne side om side (kun desktop) */
.ef-side .tk-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--sp-3); }
.ef-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; }
.ef-side .tk-celle.ref { background: var(--surface-panel); border-style: dashed; }
.ef-side .tk-celle.tk-aendret { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.ef-side .tk-celle-hoved { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ef-side .tk-celle-navn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ef-side .tk-celle-hoved [data-ef-st] { margin-left: auto; flex: none; }
.ef-side .tk-celle textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-900);
  font: 12px/1.5 var(--font-mono, monospace); padding: 8px 10px; resize: vertical; min-width: 0; }
.ef-side .tk-celle textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.ef-side .tk-celle textarea[readonly] { color: var(--ink-500); background: var(--surface-panel); }
.ef-side .tk-celle-fod { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 28px; }
.ef-side .tk-knapper { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.ef-side .ef-link { font-size: 12px; }

/* variablerne: én tabel pr. felt i et kort uden indre luft, som JJ's prototype (produkter.css + valuta.css .vl-tabel) */
.ef-side .ef-gruppe { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: var(--sp-2); }
.ef-side .ef-gruppe h2 { margin: 0; font-size: 16px; }
.ef-side .ef-vartabeller { display: grid; gap: var(--sp-4); }
.ef-side .ef-var { padding: 0; min-width: 0; }
.ef-side .ef-var-titel { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px var(--sp-5); font: 600 15px var(--font-head); color: var(--ink-900);
  border-bottom: 1px solid var(--line-soft); }
.ef-side .ef-wrap { overflow-x: auto; overflow-y: hidden; }
.ef-side .ef-tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.ef-side .ef-tabel th, .ef-side .ef-tabel td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; vertical-align: middle; color: var(--ink-900); }
.ef-side .ef-tabel thead th { font: 600 12px var(--font-head); color: var(--ink-500); background: var(--surface-head); border-bottom-color: var(--line); }
.ef-side .ef-tabel thead th.num { text-align: center; }
.ef-side .ef-tabel tbody th { font: 600 12px var(--font-head); color: var(--ink-500); }
.ef-side .ef-tabel tbody tr:last-child > * { border-bottom: 0; }
/* Kolonnen Variabel står fast, når tabellen rulles vandret */
.ef-side .ef-tabel th:first-child { position: sticky; left: 0; z-index: 1; min-width: 120px; background: var(--card); box-shadow: 1px 0 0 var(--line-soft); }
.ef-side .ef-tabel thead th:first-child { background: var(--surface-head); }
.ef-side .ef-tabel tr.ef-grp th { background: var(--surface-panel); font: 700 13px var(--font-head); color: var(--ink-900); padding-top: 12px; }
.ef-side .ef-tabel tr.ef-grp th span { position: sticky; left: 12px; }
.ef-side .ef-tabel tr.ef-under th { padding-left: 26px; }
.ef-side .ef-tabel td.ef-v { padding: 6px; }
.ef-side .ef-v input { width: 76px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-900);
  font: 14px var(--font-ui); padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.ef-side .ef-v.tekst input { width: 128px; text-align: left; }
.ef-side .ef-v input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.ef-side .ef-v.afv input { background: var(--info-soft); }
.ef-side .ef-v.aen input { border-color: var(--gold); background: var(--gold-soft); }
.ef-side .ef-handl { white-space: nowrap; }
.ef-side .ef-handl .btn + .btn { margin-left: 6px; }
/* Stationær vandret rullebjælke (JJ 13-11): tabellens egen er skjult, kopien står fast lige over gem-bunden og er altid synlig */
.ef-side .ef-wrap { scrollbar-width: none; }
.ef-side .ef-wrap::-webkit-scrollbar { display: none; }
.ef-side .ef-rul { position: sticky; z-index: 25; overflow-x: auto; overflow-y: hidden; height: 16px; background: var(--card); border-radius: 0 0 var(--r-card) var(--r-card); }
.ef-side .ef-rul > div { height: 1px; }
.ef-side .ef-rul[hidden] { display: none; }
.ef-side .ef-rul::-webkit-scrollbar { height: 12px; }
.ef-side .ef-rul::-webkit-scrollbar-track { background: var(--line-soft); border-radius: 6px; }
.ef-side .ef-rul::-webkit-scrollbar-thumb { background: var(--ink-500); border-radius: 6px; border: 2px solid var(--line-soft); }
@supports not selector(::-webkit-scrollbar) { .ef-side .ef-rul { scrollbar-color: var(--ink-500) var(--line-soft); } }
