/* erhverv.css — Erhverv (B2B-bestilling). Indlæses kun når klienten har WebShopErhverv slået til.
   Bruger webshoppens tokens (tokens.inc.asp), så klientens farver slår igennem. */

/* Skiftet i toppen */
.v2-erhverv-skift { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(var(--brand-rgb, 69, 80, 70), .12); }
.v2-erhverv-skift[hidden] { display: none; }
.v2-erhverv-skift a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--text); text-decoration: none; white-space: nowrap; }
.v2-erhverv-skift a.aktiv { background: var(--brand); color: #fff; font-weight: 600; }
.v2-erhverv-skift a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 640px) { .v2-erhverv-skift a { padding: 7px 10px; font-size: 13px; } }

/* Siden */
.v2-erhverv { padding-top: 16px; padding-bottom: 48px; }
.v2-erhverv-tom { max-width: 560px; margin: 48px auto; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.v2-erhverv-subnav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.v2-erhverv-subnav a { padding: 12px 14px; color: var(--text-muted); text-decoration: none; font-size: 15px; }
.v2-erhverv-subnav a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom: 3px solid var(--brand); }
.v2-erhverv-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; justify-content: space-between; margin-bottom: 16px; }
.v2-erhverv-head h1 { margin: 0 0 4px; }
.v2-erhverv-head .v2-sub { margin: 0; color: var(--text-muted); }
.v2-erhverv-frist { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: var(--radius-md, 12px);
    background: var(--warning-soft-bg, #fff7e8); border: 1px solid var(--warning-soft-border, #ecd3a0); color: var(--warning-soft-text, #3d2a00); min-width: 260px; }
.v2-erhverv-frist[hidden] { display: none; }
.v2-erh-frist-titel { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }

.v2-erhverv-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-md, 12px); background: var(--surface, #fff); margin-bottom: 10px; }
.v2-erhverv-periode { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.v2-erhverv-periode .v2-btn { min-width: 44px; min-height: 44px; font-size: 20px; line-height: 1; }
.v2-erhverv-soeg { flex: 1 1 220px; display: flex; }
.v2-erhverv-soeg input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--border-strong, var(--border)); border-radius: var(--radius-sm, 8px); font: inherit; }
.v2-erhverv-kunmine { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 14px; }
.v2-erhverv-kunmine input { width: 18px; height: 18px; accent-color: var(--brand); }
.v2-erhverv-forklaring { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-muted); margin: 0 2px 10px; }
.v2-erhverv-forklaring span { display: inline-flex; gap: 6px; align-items: center; }
.v2-erh-prik { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.v2-erh-prik-aendret { background: #fff3dc; border: 1px solid #d9a441; }
.v2-erh-prik-laast { background: var(--bg-2, #f1f2f0); border: 1px solid var(--border); }

.v2-erhverv-tabel { border: 1px solid var(--border); border-radius: var(--radius-md, 12px); background: var(--surface, #fff); overflow-x: auto; }
.v2-erhverv-tabel[aria-busy="true"] { opacity: .6; }
.v2-erhverv-henter { padding: 24px; color: var(--text-muted); margin: 0; }
.v2-erh-grid { min-width: 940px; }
.v2-erh-row { display: grid; gap: 6px; padding: 4px 12px; align-items: center; border-bottom: 1px solid rgba(var(--shadow-rgb, 0, 0, 0), .06); }
.v2-erh-hoved { align-items: start; padding-top: 12px; padding-bottom: 10px; position: sticky; top: 0; background: var(--surface, #fff); z-index: 2; }
.v2-erh-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.v2-erh-hoejre, .v2-erh-sum { text-align: right; font-variant-numeric: tabular-nums; }
.v2-erh-dag { display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: center; }
.v2-erh-dagnavn { font-weight: 700; }
.v2-erh-dagnavn span { font-weight: 400; color: var(--text-muted); }
.v2-erh-frist { font-size: 11px; color: var(--warning-soft-text, #6b4300); }
.v2-erh-lev, .v2-erh-nylev { font: inherit; font-size: 12px; min-height: 28px; padding: 2px 8px; border-radius: 999px; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-erh-lev { background: var(--surface, #fff); border: 1px solid var(--border-strong, var(--border)); color: var(--text); }
.v2-erh-lev.valgt { background: var(--brand); border-color: var(--brand); color: #fff; }
.v2-erh-lev.laast { border-style: dashed; color: var(--text-muted); }
.v2-erh-lev.laast.valgt { background: var(--bg-2, #f1f2f0); color: var(--text); border-color: var(--text-muted); }
.v2-erh-nylev { background: transparent; border: 1px dashed var(--border-strong, var(--border)); color: var(--brand); }
.v2-erh-grp { padding: 14px 12px 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--brand); }
.v2-erh-vcell { display: flex; flex-direction: column; min-width: 0; }
.v2-erh-varenavn { all: unset; cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: transparent; }
.v2-erh-varenavn:hover, .v2-erh-varenavn:focus-visible { text-decoration-color: currentColor; }
.v2-erh-varenavn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.v2-erh-meta { font-size: 12px; color: var(--text-muted); }
.v2-erh-celle { display: flex; flex-direction: column; align-items: stretch; position: relative; }
.v2-erh-input { width: 100%; min-height: 42px; text-align: center; font: inherit; font-size: 15px; font-variant-numeric: tabular-nums;
    border: 1px solid var(--border-strong, var(--border)); border-radius: var(--radius-sm, 8px); background: var(--surface, #fff); color: var(--text); padding: 0 4px; }
.v2-erh-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.v2-erh-input.aendret { background: #fff3dc; border-color: #d9a441; font-weight: 700; }
.v2-erh-input.forslag { border-style: dashed; }
.v2-erh-input.forslag::placeholder { color: var(--text-muted); opacity: 1; }
.v2-erh-input.laast, .v2-erh-input:disabled { background: var(--bg-2, #f1f2f0); color: var(--text-muted); cursor: not-allowed; }
.v2-erh-input.ugyldig { border-color: var(--alert-danger-border, #c0392b); outline-color: var(--alert-danger-border, #c0392b); }
.v2-erh-input.gemmer { opacity: .6; }
.v2-erh-fast { font-size: 10px; color: #8a5a00; text-align: center; }
.v2-erh-ialt { font-size: 10px; color: var(--text-muted); text-align: center; }
.v2-erh-total { background: var(--bg-2, #f1f2f0); padding-top: 12px; padding-bottom: 12px; font-weight: 600; }
.v2-erhverv-status { min-height: 1.4em; margin: 10px 2px 0; font-size: 14px; color: var(--text-muted); }
.v2-erhverv-status.fejl { color: var(--alert-danger-text, #a12a1f); font-weight: 600; }

/* Dialoger */
.v2-erhverv-dialog { border: 0; border-radius: var(--radius-lg, 16px); padding: 0; max-width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-2); }
.v2-erhverv-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.v2-erhverv-dialog-form { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.v2-erhverv-dialog-form h2 { margin: 0; font-size: 22px; }
.v2-erhverv-dialog-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.v2-erhverv-dialog-form input { min-height: 44px; padding: 0 12px; border: 1px solid var(--border-strong, var(--border)); border-radius: var(--radius-sm, 8px); font: inherit; font-size: 15px; color: var(--text); }
.v2-erhverv-dialog-knapper { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.v2-erhverv-fejl { color: var(--alert-danger-text, #a12a1f); margin: 0; }
.v2-erhverv-fejl[hidden] { display: none; }
.v2-erh-infofoto { width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--radius-sm, 8px); }
.v2-erh-indhold { font-size: 13px; color: var(--text-muted); }

/* Fast ugebestilling */
.v2-erhverv-auto { display: flex; flex-direction: column; gap: 4px; max-width: 380px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md, 12px); background: var(--surface, #fff); }
.v2-erhverv-auto .v2-sub { margin: 0; font-size: 13px; }
.v2-erhverv-kontakt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.v2-erhverv-kontakt input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--border-strong, #ccc); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.v2-erhverv-kontakt input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: left .15s; }
.v2-erhverv-kontakt input:checked { background: var(--brand); }
.v2-erhverv-kontakt input:checked::after { left: 23px; }
.v2-erhverv-kontakt input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Historik */
.v2-erh-hist { display: flex; flex-direction: column; }
.v2-erh-hist-row { border-bottom: 1px solid rgba(var(--shadow-rgb, 0, 0, 0), .06); }
.v2-erh-hist-knap { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1.5fr) 90px 90px; gap: 12px; padding: 12px 16px; cursor: pointer; min-height: 44px; align-items: center; }
.v2-erh-hist-knap span:nth-child(3), .v2-erh-hist-knap span:nth-child(4) { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.v2-erh-hist-knap:hover { background: var(--bg-2, #f6f6f4); }
.v2-erh-hist-knap:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.v2-erh-hist-knap[aria-expanded="true"] { background: var(--bg-2, #f6f6f4); }
.v2-erh-hist-detaljer { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.v2-erh-hist-detaljer table { border-collapse: collapse; font-size: 14px; }
.v2-erh-hist-detaljer td { padding: 3px 10px 3px 0; }
@media (max-width: 640px) { .v2-erh-hist-knap { grid-template-columns: 1fr auto; } .v2-erh-hist-knap span:nth-child(2) { grid-column: 1 / -1; order: 3; color: var(--text-muted); } }

/* Mobil: én dag ad gangen (js/erhverv.js tegnMobil, under 768 px) */
@media (max-width: 767px) {
    .v2-erhverv-tabel { overflow-x: visible; border: 0; background: transparent; }
    .v2-erhverv-head { flex-direction: column; }
    .v2-erhverv-frist { min-width: 0; }
    .v2-erhverv-forklaring { display: none; }
}
.v2-erh-m { display: flex; flex-direction: column; gap: 8px; }
.v2-erh-m-dage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.v2-erh-m-dag { font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 64px; padding: 4px 0;
    border-radius: var(--radius-md, 12px); border: 1px solid var(--border); background: var(--surface, #fff); color: var(--text); cursor: pointer; }
.v2-erh-m-dag span { font-size: 12px; }
.v2-erh-m-dag b { font-size: 18px; line-height: 1.1; }
.v2-erh-m-dag i { font-style: normal; font-size: 10px; font-weight: 700; min-height: 13px; color: #6b4300; }
.v2-erh-m-dag.forbi { opacity: .55; }
.v2-erh-m-dag.valgt { background: var(--brand); border-color: var(--brand); color: #fff; opacity: 1; }
.v2-erh-m-dag.valgt i { color: #fff; }
.v2-erh-m-banner { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radius-md, 12px);
    background: rgba(var(--brand-rgb, 69, 80, 70), .1); font-size: 14px; }
.v2-erh-m-lev { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-erh-m-lev .v2-erh-lev, .v2-erh-m-lev .v2-erh-nylev { min-height: 40px; padding: 4px 14px; font-size: 13px; }
.v2-erh-m .v2-erh-grp { padding: 10px 2px 0; }
.v2-erh-m-vare { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md, 12px); background: var(--surface, #fff); }
.v2-erh-m-vare.aendret { background: #fff3dc; border-color: #ecd3a0; }
.v2-erh-m-navn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v2-erh-m-navn .v2-erh-varenavn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-erh-m-stepper { display: flex; align-items: center; gap: 4px; }
.v2-erh-m-stepper .v2-erh-input { width: 52px; min-height: 44px; font-size: 17px; font-weight: 700; }
.v2-erh-m-knap { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--border-strong, var(--border)); background: var(--surface, #fff);
    color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.v2-erh-m-knap.plus { background: var(--brand); border-color: var(--brand); color: #fff; }
.v2-erh-m-knap:disabled { opacity: .35; cursor: not-allowed; }
.v2-erh-m-total { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px;
    margin-top: 4px; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: var(--radius-md, 12px); box-shadow: var(--shadow-1); }
.v2-erh-m-total b { font-size: 18px; }

/* Levering (fase 3) */
.v2-erh-levknap { font: inherit; font-size: 12px; min-height: 28px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--border-strong, var(--border));
    background: var(--bg-2, #f4f6f1); color: var(--text); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.v2-erh-levknap.laast { cursor: default; color: var(--text-muted); border-style: dashed; display: inline-block; }
.v2-erh-m-levvalg .v2-erh-levknap { min-height: 40px; font-size: 14px; width: 100%; }
.v2-erh-levformer { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-erh-levform { flex-direction: row !important; align-items: center; gap: 8px !important; padding: 10px 12px; min-height: 44px; border: 1px solid var(--border-strong, var(--border));
    border-radius: var(--radius-sm, 8px); color: var(--text) !important; font-weight: 600; cursor: pointer; }
.v2-erh-levform input { width: 18px; height: 18px; min-height: 0 !important; accent-color: var(--brand); }
.v2-erhverv-dialog-form select { min-height: 44px; padding: 0 10px; border: 1px solid var(--border-strong, var(--border)); border-radius: var(--radius-sm, 8px); font: inherit; font-size: 15px; }
.v2-erhverv-fastlev { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius-md, 12px); background: var(--surface, #fff); }
.v2-erhverv-fastlev[hidden] { display: none; }
.v2-erhverv-fastlev .v2-sub { margin: 0; font-size: 13px; color: var(--text-muted); }
.v2-erh-fl-std { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.v2-erh-fl-std > div { display: flex; flex-direction: column; }
.v2-erh-fl-dage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.v2-erh-fl-dag { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; min-height: 60px; border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--border-strong, var(--border)); background: var(--surface, #fff); color: var(--text); cursor: pointer; }
.v2-erh-fl-dag span { font-size: 12px; color: var(--text-muted); }
.v2-erh-fl-dag b { font-size: 12px; }
.v2-erh-fl-dag i { font-style: normal; font-size: 11px; min-height: 13px; }
.v2-erh-fl-dag.afviger { background: #e8eef7; border-color: #9db3d6; }
/* ---------- Bestillingslister (fase 4) ---------- */
.v2-erh-lister { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.v2-erh-listekort { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: var(--radius-lg, 14px); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.v2-erh-listekort-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; }
.v2-erh-listekort-top > div { flex: 1 1 160px; min-width: 0; }
.v2-erh-listekort-top h2 { margin: 0 0 2px; font-size: 18px; overflow-wrap: anywhere; }
.v2-erh-listetag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg-2, #f6f6f4); color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.v2-erh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-erh-chip { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--bg-2, #f6f6f4); border: 1px solid var(--border); }
.v2-erh-listekort-knapper { display: flex; gap: 8px; margin-top: auto; }
.v2-erh-listekort-knapper .v2-btn-primary { flex: 1; }
.v2-erhverv-dialog.v2-erh-listedlg { width: min(640px, calc(100vw - 32px)); max-width: none; }
.v2-erh-forslag { display: flex; flex-direction: column; gap: 2px; }
.v2-erh-forslag:empty { display: none; }
.v2-erh-forslag-knap { all: unset; box-sizing: border-box; padding: 10px 12px; min-height: 44px; border-radius: var(--radius-sm, 8px); cursor: pointer; }
.v2-erh-forslag-knap small { color: var(--text-muted); }
.v2-erh-forslag-knap:hover, .v2-erh-forslag-knap:focus-visible { background: var(--bg-2, #f6f6f4); outline: none; }
.v2-erh-listelinjer { display: flex; flex-direction: column; max-height: 45vh; overflow-y: auto; border-top: 1px solid var(--border); }
.v2-erh-listelinje { display: grid; grid-template-columns: 1fr 96px 44px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.v2-erh-listelinje span { display: flex; flex-direction: column; min-width: 0; }
.v2-erh-listelinje small { color: var(--text-muted); font-size: 12px; }
.v2-erhverv-dialog-form .v2-erh-listelinje input { text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.v2-erh-slet { margin-right: auto; color: var(--alert-danger-text, #a12a1f); }
.v2-erh-dagvalg, .v2-erh-maal { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.v2-erh-dagvalg legend, .v2-erh-maal legend { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.v2-erh-dagvalg > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.v2-erhverv-dialog-form label.v2-erh-dagchip { flex-direction: row; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1px solid var(--border-strong, var(--border)); border-radius: var(--radius-sm, 8px); color: var(--text); font-weight: 500; cursor: pointer; }
.v2-erhverv-dialog-form label.v2-erh-dagchip input { min-height: 0; }
.v2-erh-dagchip:has(input:checked) { border-color: var(--brand); background: var(--bg-2, #f6f6f4); font-weight: 700; }
.v2-erh-dagchip.laast { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.v2-erhverv-dialog-form .v2-erh-maal label { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 15px; }
.v2-erhverv-dialog-form .v2-erh-maal input[type="radio"] { min-height: 0; width: 18px; height: 18px; }
.v2-erhverv-dialog-form .v2-erh-maal input[type="time"] { min-height: 40px; }
.v2-erh-hist-knapper { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .v2-erh-listelinje { grid-template-columns: 1fr 80px 44px; } }

/* ---------- Leveringssted + bemærkning pr. vare ---------- */
.v2-erh-leveringssted { margin-top: 4px; font-weight: 600; }
.v2-erh-bemknap { all: unset; box-sizing: border-box; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; color: var(--text-muted); cursor: pointer; opacity: 0; transition: opacity .15s; }
.v2-erh-celle:hover .v2-erh-bemknap, .v2-erh-celle:focus-within .v2-erh-bemknap, .v2-erh-bemknap:focus-visible { opacity: 1; }
.v2-erh-bemknap:hover { background: var(--bg-2, #f6f6f4); color: var(--text); }
.v2-erh-bemknap:focus-visible { outline: 2px solid var(--brand); }
.v2-erh-bemknap.har { opacity: 1; color: #fff; background: var(--brand); }
.v2-erh-bemknap.laast { cursor: default; opacity: .7; }
@media (hover: none) { .v2-erh-bemknap { opacity: .7; } }
.v2-erh-m-bem { all: unset; box-sizing: border-box; display: block; max-width: 100%; margin-top: 2px; font-size: 13px; color: var(--text-muted); text-decoration: underline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; min-height: 24px; }
.v2-erh-m-bem.har { color: var(--text); font-style: italic; text-decoration: none; }
span.v2-erh-m-bem { cursor: default; font-style: italic; text-decoration: none; }
.v2-erhverv-dialog-form textarea { padding: 10px 12px; border: 1px solid var(--border-strong, var(--border)); border-radius: var(--radius-sm, 8px); font: inherit; font-size: 15px; color: var(--text); resize: vertical; }

/* ---------- Fase 5: ønsket tid, dagværktøjer, retur, kontoudtog, udskrift ---------- */
.v2-erh-levtid { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 11px; color: var(--text-muted); }
.v2-erh-levtid input { min-height: 32px; padding: 0 6px; border: 1px solid var(--border-strong, var(--border)); border-radius: var(--radius-sm, 8px); font: inherit; font-size: 13px; color: var(--text); width: 100%; box-sizing: border-box; }
.v2-erh-levtid-txt { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.v2-erh-dagmenu { all: unset; box-sizing: border-box; display: block; width: 100%; margin-top: 4px; padding: 4px 6px; min-height: 28px; font-size: 12px; color: var(--text-muted); text-align: center; border-radius: var(--radius-sm, 8px); cursor: pointer; }
.v2-erh-dagmenu:hover, .v2-erh-dagmenu:focus-visible { background: var(--bg-2, #f6f6f4); color: var(--text); outline: none; }
.v2-erh-m-levvalg .v2-erh-levtid, .v2-erh-m-levvalg .v2-erh-dagmenu { margin-top: 8px; }
.v2-erh-hist-detaljer table { width: 100%; max-width: 720px; }
.v2-erh-hist-detaljer th { text-align: left; font-size: 12px; color: var(--text-muted); font-weight: 600; padding: 3px 10px 3px 0; }
.v2-erh-hist-detaljer tfoot td { border-top: 1px solid var(--border); padding-top: 6px; }
.v2-erh-hist-detaljer small { color: var(--text-muted); }
.v2-erh-printtitel { display: none; }
.v2-erh-retur { width: 64px; min-height: 34px; text-align: right; padding: 0 8px; border: 1px solid var(--border-strong, var(--border)); border-radius: var(--radius-sm, 8px); font: inherit; }
.v2-erh-retur.ugyldig { border-color: var(--alert-danger-text, #a12a1f); }
.v2-erh-saldo { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--radius-lg, 14px); background: var(--warning-soft-bg, #fff7e8); min-width: 200px; }
.v2-erh-saldo.tilgode { background: var(--bg-2, #f1f2f0); }
.v2-erh-saldo b { font-size: 26px; font-variant-numeric: tabular-nums; }
.v2-erh-saldo-titel { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); font-weight: 600; }
.v2-erh-konto { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.v2-erh-konto th { text-align: left; font-size: 12px; color: var(--text-muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.v2-erh-konto td { padding: 8px 10px; border-bottom: 1px solid rgba(var(--shadow-rgb, 0, 0, 0), .06); vertical-align: top; }
.v2-erh-konto td:first-child { white-space: nowrap; }
.v2-erh-konto-linje { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-muted); }
.v2-erh-konto th.v2-erh-hoejre, .v2-erh-hist-detaljer th.v2-erh-hoejre, .v2-erh-hist-detaljer td.v2-erh-hoejre { text-align: right; }
@media (max-width: 640px) { .v2-erh-konto th:nth-child(4), .v2-erh-konto td:nth-child(4) { display: none; } }
@media print {
  body.v2-erh-udskriver * { visibility: hidden !important; }
  body.v2-erh-udskriver .v2-erh-printomr, body.v2-erh-udskriver .v2-erh-printomr * { visibility: visible !important; }
  body.v2-erh-udskriver .v2-erh-printomr { position: absolute; left: 0; top: 0; width: 100%; }
  body.v2-erh-udskriver .v2-erh-printomr button, body.v2-erh-udskriver .v2-erh-hist-knapper { display: none !important; }
  body.v2-erh-udskriver .v2-erh-printtitel { display: block; }
}

/* ---------- Mine oplysninger ---------- */
.v2-erh-oplys { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.v2-erh-oplys fieldset { border: 1px solid var(--border); border-radius: var(--radius-lg, 14px); padding: 16px 18px; margin: 0; background: var(--surface, #fff); display: flex; flex-direction: column; gap: 10px; }
.v2-erh-oplys legend { font-weight: 700; font-size: 16px; padding: 0 6px; }
.v2-erh-oplys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.v2-erh-oplys-felt { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.v2-erh-oplys-felt.bred { grid-column: 1 / -1; }
.v2-erh-oplys-felt input, .v2-erh-oplys-felt textarea, .v2-erh-oplys-felt select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-strong, var(--border)); border-radius: var(--radius-sm, 8px); font: inherit; font-size: 15px; font-weight: 400; color: var(--text); background: var(--surface, #fff); box-sizing: border-box; width: 100%; }
.v2-erh-oplys-felt small { font-weight: 400; }
.v2-erh-oplys-laes { min-height: 24px; font-size: 15px; font-weight: 400; color: var(--text); padding-top: 4px; }
.v2-erh-oplys-valg { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; color: var(--text); min-height: 32px; }
.v2-erh-oplys-valg input { width: 18px; height: 18px; }
.v2-erh-oplys-valg small { color: var(--text-muted); }
.v2-erh-oplys-valgliste { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.v2-erh-oplys-h { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15px; }
.v2-erh-oplys .v2-erhverv-dialog-knapper { justify-content: flex-start; }
