/* Prisopslag – bruger portalens farvetokens (css/app.css). Alt er afgrænset til .po. */
.po { --po-hair: var(--line); }
.po .po-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.po .right { text-align: right; }

.po-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.po-top h1 { margin-bottom: 4px; }
.po-desc { margin: 0; }
.po-status { margin: 8px 0 0; }

.po-subnav { display: flex; gap: 24px; margin: 24px 0 0; border-bottom: 1px solid var(--po-hair); }
.po-subnav a {
  padding: 8px 0; margin-bottom: -1px; border-bottom: 2px solid transparent;
  color: var(--ink-muted); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.02em;
}
.po-subnav a:hover { color: var(--ink); }
.po-subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Formular */
.po-form { display: grid; gap: 24px; padding: 32px 0 8px; }
.po-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; max-width: 840px; align-items: start; }
.po-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.po-pc { position: relative; }
.po input[type="number"], .po input.po-loc, .po-field input {
  appearance: none; -moz-appearance: textfield;
  width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--border-control); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 16px;
}
.po input.po-loc { font-size: 18px; }
.po input:focus-visible { outline: none; border-bottom-width: 2px; margin-bottom: -1px; }
.po input::-webkit-outer-spin-button, .po input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.po-swap {
  margin-top: 24px; width: 40px; height: 40px; border: 1px solid var(--border-control); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
}
.po-hint { min-height: 18px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.po-hint.bad::before { content: "! "; font-weight: 700; }

.po-sugg {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 2px 0 0; padding: 4px 0; list-style: none;
  max-height: 300px; overflow: auto; background: var(--surface); border: 1px solid var(--border-control); border-radius: var(--radius-sm);
}
.po-sugg li { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; cursor: pointer; font-size: 14px; line-height: 20px; }
.po-sugg li b { min-width: 64px; font-weight: 600; font-variant-numeric: tabular-nums; }
.po-sugg li b.k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.po-sugg li span { margin-left: auto; text-align: right; font-size: 12px; color: var(--ink-muted); }
.po-sugg li[aria-selected="true"], .po-sugg li:hover { background: var(--surface-raised); }
.po-sugg.busy::after { content: "Søger …"; display: block; padding: 8px 12px; font-size: 13px; color: var(--ink-muted); }

.po-linesbox { display: grid; gap: 8px; }
.po-lines { display: grid; gap: 6px; }
.po-line { display: grid; grid-template-columns: 72px 120px repeat(3, minmax(56px, 90px)) 36px; gap: 14px; align-items: end; }
.po-line.head .short { display: none; }
.po-x { padding: 6px 0; border: 0; background: none; color: var(--ink-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.po-x:hover { color: var(--ink); }
.po-addline {
  justify-self: start; padding: 2px 0; border: 0; border-bottom: 1px solid var(--ink); background: none;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.po-summary { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.po-summary strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.po-opts { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.po-opt { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; user-select: none; }
.po-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }

.po-more { border-top: 1px solid var(--po-hair); padding-top: 12px; }
.po-more > summary { cursor: pointer; font-weight: 600; }
.po-cnt { font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.po-og { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 28px; margin-top: 16px; }
.po-ogrp { display: grid; gap: 8px; align-content: start; }
.po-field.mini input { font-size: 15px; padding: 4px 0; }
.po-note { margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.po-row2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.po-chips { display: flex; flex-wrap: wrap; border: 1px solid var(--border-control); border-radius: var(--radius-sm); overflow: hidden; }
.po-chips button {
  padding: 9px 16px; border: 0; border-right: 1px solid var(--border-control); background: transparent;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer;
}
.po-chips button:last-child { border-right: 0; }
.po-chips button[aria-pressed="true"] { background: var(--surface-inverse); color: var(--ink-inverse); }
.po-go { min-width: 180px; }

/* Sektioner */
.po-block { padding: 32px 0 8px; }
.po-sechead {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--ink);
}
.po-sechead h2 { margin: 0; font-size: 24px; line-height: 32px; }
.po-meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.po-empty { margin: 0; padding: 24px 0; color: var(--ink-muted); }
.po-empty.po-pickup { padding: 14px 0; font-size: 14px; border-bottom: 1px solid var(--po-hair); }
.po-empty.po-pickup strong { color: var(--ink); font-weight: 600; }
.po-notice {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--error-bg); color: var(--error-ink);
}
.po-notice strong { display: block; }

/* Resultater */
.po-r {
  display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 0.6fr) minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 1.4fr);
  gap: 16px; align-items: center; padding: 16px 12px; border-bottom: 1px solid var(--po-hair);
}
.po-r.head { padding: 12px 12px 8px; border-bottom: 0; }
.po-r.best { background: var(--surface-raised); }
.po-sup { font-weight: 600; }
.po-svc { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.po .po-tag {
  display: inline-block; margin-top: 4px; padding: 1px 8px; border: 1px solid var(--border-control); border-radius: 999px;
  font-size: 12px; line-height: 16px; font-weight: 500;
}
.po-flag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px;
}
.po-flag.solid { background: var(--surface-inverse); color: var(--ink-inverse); border-color: var(--surface-inverse); }
.c-zone, .po-price, .po-speclist, .po-fr .p { font-variant-numeric: tabular-nums; }
.po-bar { position: relative; height: 6px; background: var(--po-hair); }
.po-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.po-price { text-align: right; font-size: 20px; line-height: 28px; font-weight: 600; }
.po-price small { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-muted); }
.po-warnline { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; line-height: 18px; }
.po-warnline span::before { content: "! "; font-weight: 700; }
.po-spec { grid-column: 1 / -1; font-size: 14px; }
.po-spec summary { cursor: pointer; width: max-content; max-width: 100%; font-size: 13px; color: var(--ink-muted); }
.po-speclist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; max-width: 580px; margin: 10px 0 4px; }
.po-speclist .d { grid-column: 1 / -1; margin-top: -4px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.po-speclist .tot { padding-top: 6px; border-top: 1px solid var(--ink); font-weight: 600; }
.po-speclist .amt { text-align: right; }
.po-speclist .miss::before { content: "! "; font-weight: 700; }
.po-notes { max-width: 90ch; margin: 6px 0 0; font-size: 13px; color: var(--ink-muted); }

.po-na .po-r { grid-template-columns: minmax(0, 2.4fr) minmax(0, 3fr); }
.po-why { font-size: 14px; color: var(--error-ink); }
.po-why div + div { margin-top: 2px; }

/* Brændstof og gebyrer */
.po-fhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--po-hair); }
.po-ftab { display: grid; }
.po-fr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--po-hair); align-items: baseline; }
.po-fr .p { text-align: right; font-size: 18px; font-weight: 600; }

.po-collapse > summary { cursor: pointer; list-style: none; }
.po-collapse > summary::-webkit-details-marker { display: none; }
.po-collapse > summary h2::after { content: " +"; color: var(--ink-muted); }
.po-collapse[open] > summary h2::after { content: " –"; }
.po-tabs { display: flex; flex-wrap: wrap; gap: 24px; margin: 14px 0 4px; }
.po-tabs button {
  padding: 6px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-muted);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.po-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.po-scroll { overflow-x: auto; }
.po table { min-width: 560px; }
.po th.amt, .po td.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.po td .d { font-size: 13px; color: var(--ink-muted); }

/* Ændringslog */
.po-clog { display: grid; margin-top: 8px; }
.po-cl { display: grid; grid-template-columns: 130px 150px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--po-hair); font-size: 14px; }
.po-cl .t { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.po-cl .a { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.po-cl .a .p { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; }
.po-cl .s small { display: block; font-size: 13px; color: var(--ink-muted); overflow-wrap: anywhere; }

.po-footer { padding: 40px 0 0; }
.po-footer p { max-width: 80ch; }

.po :is(button, summary, a):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (max-width: 900px) {
  .po-r { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .po-r.head { display: none; }
  .po-r .c-zone, .po-r .c-bar { display: none; }
  .po-r .c-transit { grid-column: 1; font-size: 13px; color: var(--ink-muted); }
  .po-r .po-price { grid-row: 1 / 3; grid-column: 2; }
  .po-na .po-r { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .po-route { grid-template-columns: 1fr; }
  .po-swap { margin: 0; justify-self: start; transform: rotate(90deg); }
  .po-line { grid-template-columns: 40px minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) 22px; gap: 6px; }
  .po-line.head { font-size: 10px; letter-spacing: 0.04em; }
  .po-line.head .long { display: none; }
  .po-line.head .short { display: inline; }
  .po-chips { width: 100%; }
  .po-chips button { flex: 1 1 auto; padding: 9px 8px; }
  .po-go { width: 100%; }
  .po-r { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
  .po-cl { grid-template-columns: 1fr; gap: 2px; }
  .po-fr { grid-template-columns: 1fr auto; }
  .po-fr .po-svc { grid-column: 1; grid-row: 2; }
  .po-fr .p { grid-row: 1 / 3; grid-column: 2; }
}
@media (prefers-reduced-motion: no-preference) { .po-bar i { transition: width 0.4s ease; } }
