/* Produkter › Ribbons (B74), bygget som Tillæg & Gebyrer. Kun cockpittets tokens fra app.css, så lyst og mørkt tema følger med.
   Søgefeltet, bunden og forhåndsvisningen genbruger Teksters klasser (tk-vaelg, tk-felt, pf, tk-bund, tk-pv); her er kun sidens
   eget indhold, afgrænset til .rbn-side og .rbn-panel. */
.rbn-side { padding-bottom: 72px; }

/* søgefelt med forslag (som Priser) */
.rbn-side .tk-vaelg { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; }
.rbn-side .rbn-mange { margin-left: auto; font-size: 14px; }
.rbn-side .pf-soeg { position: relative; }
.rbn-side .pf-soeg input { width: 100%; 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; }
.rbn-side .pf-soeg input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.rbn-side .pf-forslag { position: absolute; z-index: 45; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; max-height: 340px; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-pop); }
.rbn-side .pf-forslag li { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: 14px var(--font-ui); color: var(--ink-900); }
.rbn-side .pf-forslag li .sub { margin-left: auto; }
.rbn-side .pf-forslag li[aria-selected="true"], .rbn-side .pf-forslag li:hover { background: var(--hover); }
.rbn-side .pf-forslag li.pf-ingen { cursor: default; color: var(--ink-500); }

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

/* varens overskrift og landekode */
.rbn-side .tk-vare { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.rbn-side .tk-vare h2 { margin: 0; font-size: 18px; }
.rbn-side .tk-vare .btn { margin-left: auto; }
.rbn-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; }

/* tabellen: båndene nu og redigering */
.rbn-side td.rbn-ret { min-width: 380px; }
.rbn-side .rbn-baand { display: flex; flex-wrap: wrap; gap: 6px; }
.rbn-side .rbn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-tag); font-size: 13px; font-weight: 700;
  background: var(--line-soft); color: var(--ink-900); overflow-wrap: anywhere; }
.rbn-side .rbn-chip.rbn-gul { background: var(--gold-soft); color: var(--gold-text); }
.rbn-side .rbn-chip.rbn-grøn { background: var(--green-soft); color: var(--green-text); }
.rbn-side .rbn-chip.rbn-mostPopular { background: var(--info-soft); color: var(--ink-900); }
.rbn-side .rbn-chip .sub { font-weight: 400; }
.rbn-side .rbn-linjer { display: grid; gap: 6px; }
.rbn-side .rbn-linje { display: grid; grid-template-columns: 110px minmax(180px, 1fr) auto; align-items: center; gap: 4px 10px; font-size: 14px; }
.rbn-side .rbn-linje .rbn-hvorfor { grid-column: 2 / 4; font-size: 12px; }

.rbn-side .rbn-fjern { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.rbn-side .rbn-fjern input { width: auto; margin: 0; }
.rbn-side .rbn-type { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-900); font: 14px var(--font-ui); }
.rbn-side .rbn-fjernet { text-decoration: line-through; color: var(--ink-500); }
.rbn-side .rbn-ref td { background: var(--surface-panel); }
.rbn-side .rbn-in { width: 100%; min-height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-900);
  font: 14px var(--font-ui); padding: 4px 10px; font-variant-numeric: tabular-nums; }
.rbn-side .rbn-in:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.rbn-side .rbn-advar { color: var(--danger-text); font-weight: 700; font-size: 12px; }
.rbn-side .rbn-raa, .rbn-panel .rbn-raa { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.45 var(--font-mono, monospace); color: var(--ink-900); }

/* fast bund (som Tekster) */
.rbn-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); }
.rbn-side .tk-bund-tekst { font-size: 14px; color: var(--ink-700); }
.rbn-side .tk-bund-knapper { display: flex; flex-wrap: wrap; gap: 8px; }
.rbn-side .tk-bund .btn[disabled] { opacity: .5; cursor: default; }

/* skriveplan i sidepanelet */
.rbn-panel .rbn-planpanel { display: grid; gap: var(--sp-3); }
.rbn-panel h3 { margin: 0; font-size: 16px; }
.rbn-panel .tk-pv-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.rbn-panel .tk-pv { display: grid; gap: 6px; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.rbn-panel .tk-pv-hoved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rbn-panel .rbn-udfald { margin-left: auto; font-size: 12px; color: var(--ink-500); }
.rbn-panel .rbn-note { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.rbn-panel .rbn-hele summary { cursor: pointer; font-size: 13px; color: var(--ink-500); }
.rbn-panel .tk-pv-foer, .rbn-panel .tk-pv-efter { display: grid; grid-template-columns: 44px 1fr; gap: 8px; margin-top: 6px; font-size: 14px; }
.rbn-panel .tk-pv-foer { color: var(--ink-500); }
.rbn-panel .rbn-kvittering { margin: 0; font-weight: 700; }
