.pv-valg { margin-bottom: 12px; }
.pv-valg .uv-art, .pv-soeg, .pv-vagt, .pv-plan .uv-nyt { min-height: var(--tap); }
.pv-plan { min-width: 0; max-width: 100%; }
.pv-soeg { width: min(100%, 360px); margin: 12px 0; padding: 10px; border: 1px solid var(--felt-kant); border-radius: var(--radius); background: var(--surface); color: inherit; }
.pv-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.pv-tabel { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
.pv-tabel th, .pv-tabel td { padding: 6px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; text-align: left; }
.pv-tabel th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); width: 150px; }
.pv-tabel thead th:first-child { z-index: 2; }
.pv-tabel .pv-total-hoved { width: 80px; z-index: 3; }
.pv-tabel .pv-total-hoved, .pv-tabel td.pv-total { position: sticky; right: 0; background: var(--surface); border-left: 1px solid var(--line); }
.pv-tabel td.pv-total { z-index: 1; }
.pv-tabel td:hover .uv-nyt { opacity: 1; }
.pv-navn { display: flex; align-items: center; gap: 7px; overflow-wrap: break-word; hyphens: auto; }
.pv-total { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv-plan .idag { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.pv-vagt { position: relative; display: block; width: 100%; margin-bottom: 5px; padding: 7px 8px; text-align: left; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); color: inherit; overflow-wrap: break-word; hyphens: auto; }
.pv-vagt strong, .pv-vagt > span { display: block; }
/* Lange kundenavne afkortes hellere end at blive delt midt i ordet; hele teksten står i title og aria-label. */
.pv-vagt > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-vagt > .pv-mangler { white-space: normal; }
.pv-hvor { color: var(--muted); font-size: 12px; }
.pv-firma { display: block; color: var(--muted); font-size: 12px; font-weight: normal; }
.pv-dagoverskrift { margin: 0 0 4px; font-size: 15px; }
.pv-vagt strong { white-space: nowrap; }
.pv-vagt.kladde { border: 1px dashed var(--muted); border-left-width: 3px; background: color-mix(in srgb, var(--surface) 90%, var(--muted) 10%); }
.pv-tabel th { text-transform: none; letter-spacing: normal; color: inherit; }
.pv-vagt:hover { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.pv-mangler { color: var(--warn-text); }
.pv-telefon { display: none; }
.pv-indsaet { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pv-indsaet-knap { min-height: var(--tap); padding: 8px 12px; border: 1px solid var(--felt-kant); border-radius: var(--radius); background: var(--surface); color: var(--accent-text); }
.pv-indsaet-knap:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
@media (min-width: 768px) {
  .view:has(.pv-plan) .uv-strimmel { display: none; }
}
@media (max-width: 767px) {
  .view:has(.pv-plan) .uv-strimmel { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
  .pv-indsaet [data-pvdag]:not(.valgt) { display: none; }
  .pv-wrap { display: none; }
  .pv-telefon { display: block; }
  .pv-person { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .pv-person[hidden] { display: none; }
  .pv-person-hoved { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
  .pv-dag { display: none; }
  .pv-dag.valgt { display: block; }
}
