/* hidden skal altid skjule, også på elementer med display:grid/flex (fx label). */
[hidden] { display: none !important; }
:root {
  --primary: #2563eb;
  --ink: #17243b;
  --muted: #68778d;
  --line: #e3e9f0;
  --background: #f4f7fb;
  --sidebar: #0d1117;
  /* Produktfarve (KONTO-STANDARD afsnit 5): DataCapture D, rosa med hvid tekst. */
  --product: #ec4899;
  --product-ink: #ffffff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: #2056b0;
}
button {
  border: 0;
  border-radius: 9px;
  padding: 11px 17px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 14px;
  transition: filter 0.15s;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 6px 9px;
}
.danger {
  color: #b42318;
}
.destructive {
  background: #b42318;
  color: white;
}
.app {
  display: grid;
  grid-template-columns: fit-content(320px) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--sidebar);
  color: #d2daea;
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  width: max-content;
  min-width: 248px;
  max-width: 320px;
  overflow-x: hidden;
  overflow-y: auto;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 10px 28px;
}
.brand-icon {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--product);
  color: var(--product-ink);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-title {
  font-size: 19px;
  letter-spacing: -0.5px;
  color: white;
  font-weight: 700;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #9faeca;
  margin-top: 4px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #7e91b3;
  margin: 20px 15px 10px;
}
.nav-item {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #b9c7df;
  font-weight: 500;
  padding: 12px 14px;
  margin: 3px 0;
  font-size: 13px;
  align-items: center;
}
.nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
}
.nav-item.active {
  background: #2a3b5b;
  color: white;
}
.nav-item .icon {
  width: 20px;
  display: grid;
  place-items: center;
  flex: none;
}
.nav-item .icon .svg-icon {
  margin: 0;
  vertical-align: 0;
  display: block;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 10px 0;
}
.selfhost {
  font-size: 11px;
  color: #94a7c7;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #55c99b;
}
.product-foot {
  font-size: 10px;
  color: #90a2c0;
  line-height: 1.8;
  margin-top: 12px;
}
.workspace {
  grid-column: 2;
}
.topbar {
  height: 80px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 16px;
}
.company {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}
.company-logo {
  max-width: 100px;
  height: 32px;
  object-fit: contain;
}
.avatar {
  background: var(--product);
  color: var(--product-ink);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.content {
  max-width: 1480px;
  margin: 0 auto;
  padding: 34px 38px 50px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading h1 {
  font-size: 28px;
  letter-spacing: -0.9px;
  font-weight: 650;
  margin: 0 0 9px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 26px;
}
.stat,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 3px #14233f02;
}
.stat {
  padding: 22px;
  position: relative;
}
.stat .metric {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 13px 0 7px;
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
}
.stat .stat-icon {
  position: absolute;
  right: 19px;
  top: 18px;
  color: #4d72bb;
  background: #eef3fd;
  border-radius: 8px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.panel-header h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 650;
}
.panel-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}
.panel-body {
  padding: 23px;
}
.panel + .panel {
  margin-top: 22px;
}
.dashboard-grid > .panel + .panel {
  margin-top: 0;
}
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.empty-mark {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  background: #f1f5fb;
  border-radius: 14px;
  margin: 0 auto 13px;
  color: #5e7fae;
  font-size: 22px;
}
.empty strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}
.empty button {
  margin-top: 15px;
}
.row-item {
  padding: 16px 23px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #f0f3f7;
}
.row-item:last-child {
  border-bottom: 0;
}
.row-item .grow {
  min-width: 0;
  flex: 1;
}
.row-item strong {
  display: block;
  font-size: 13px;
}
.row-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  background: #eef2f8;
  color: #546780;
}
.pill.green {
  background: #e9f7ef;
  color: #237347;
}
.pill.amber {
  background: #fff5df;
  color: #96631a;
}
.pill.red {
  background: #fceceb;
  color: #a43c35;
}
.pill.blue {
  background: #eaf1ff;
  color: #315fa8;
}
.welcome {
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(110deg, #eaf0fd, #f2f5fd);
  margin-bottom: 25px;
  border: 1px solid #dfe7f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.welcome h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0 0 9px;
}
.welcome p {
  font-size: 12px;
  color: #63728b;
  line-height: 1.7;
  margin: 0;
  max-width: 650px;
}
.welcome-symbol {
  font-size: 36px;
  color: #567dd0;
  padding-right: 14px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.toolbar input {
  max-width: 340px;
  padding: 9px 12px;
}
.count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  color: #7a8799;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #fafbfd;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 22px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.person {
  display: flex;
  gap: 11px;
  align-items: center;
}
.record-title {
  max-width: 400px;
}
.record-title strong {
  overflow-wrap: anywhere;
}
.table-action {
  padding: 7px 11px;
  font-size: 11px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-stack {
  display: grid;
  gap: 17px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #42516a;
}
input,
select,
textarea {
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
  font-size: 13px;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
input[type="checkbox"] {
  width: auto;
}
input[type="color"] {
  height: 42px;
  padding: 5px;
}
.check-label {
  display: flex;
  gap: 9px;
  align-items: center;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.help {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.notice {
  background: #f1f5fc;
  border: 1px solid #dfe7f4;
  color: #526783;
  padding: 15px 17px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.8;
}
.notice.warning {
  background: #fff9ed;
  border-color: #f3e5c7;
  color: #8b6c30;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 24px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  font-size: 13px;
}
.setting-row:last-child {
  border: 0;
}
.setting-row span {
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(700px, calc(100vw - 28px));
  padding: 0;
  color: var(--ink);
  box-shadow: 0 30px 80px #12213b35;
  max-height: 90vh;
}
dialog::backdrop {
  background: #0e1b3280;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.modal-head h2 {
  margin: 0;
  font-size: 18px;
}
.modal-body {
  padding: 25px 26px;
}
.modal-body h3 {
  font-size: 13px;
  margin: 24px 0 15px;
}
.modal-body .notice {
  margin-bottom: 20px;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 23px 0;
}
.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.login-new {
  margin-top: 26px;
}
.file-list {
  margin: 12px 0;
}
.file-link {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  font-size: 12px;
}
.file-link span {
  color: var(--muted);
}
.error {
  color: #a63131;
  font-size: 12px;
  line-height: 1.7;
}
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: var(--sidebar);
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story .brand {
  padding: 0;
}
.login-story h1 {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -2px;
  max-width: 500px;
  font-weight: 600;
}
.login-story p {
  font-size: 15px;
  color: #a6b7d4;
  line-height: 1.8;
  max-width: 430px;
}
.login-story .product-foot {
  color: #a6b7d4;
}
.login-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
  background: #fff;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin: 0 0 10px;
}
.login-form > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 30px;
  line-height: 1.7;
}
.login-form form {
  display: grid;
  gap: 20px;
}
.login-form button {
  margin-top: 4px;
  padding: 13px;
}
.login-footer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 30px;
}
.login-form .company-logo {
  height: 45px;
  max-width: 180px;
  margin-bottom: 25px;
}
.login-error {
  min-height: 15px;
}
.loading {
  display: grid;
  place-items: center;
  height: 100vh;
  color: var(--muted);
}
.mobile-menu {
  display: none; /* vises i Skjult og på mobil, se blokken Menuvisning nederst */
}
.print-content {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 14px;
}
.text-muted {
  color: var(--muted);
}
.break {
  overflow-wrap: anywhere;
}
.section-gap {
  margin-top: 22px;
}
.status-line {
  display: flex;
  gap: 10px;
  align-items: center;
}
.version-tag {
  font-size: 10px;
  color: #8b99ae;
  border: 1px solid #e2e8f1;
  border-radius: 5px;
  padding: 4px 7px;
}
.onboarding-steps {
  display: grid;
  gap: 17px;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.step-num {
  height: 26px;
  width: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3fc;
  color: #4164a2;
  font-weight: 700;
}
.footer-line {
  font-size: 10px;
  color: #94a0b1;
  text-align: center;
  margin-top: 35px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tabs button {
  font-size: 11px;
  padding: 8px 12px;
}
.preview-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.preview-brand .company-logo {
  height: 45px;
  max-width: 130px;
}
.license-code {
  font-size: 11px;
  background: #f4f6fa;
  padding: 10px;
  border-radius: 7px;
  overflow-wrap: anywhere;
  display: block;
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
}
@media (max-width: 760px) {
  .workspace {
    width: 100%;
  }
  .topbar {
    height: 68px;
    padding: 0 16px;
  }
  .company {
    font-size: 12px;
  }
  .company-logo {
    max-width: 70px;
  }
  .content {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    max-width: 320px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat .stat-icon {
    display: none;
  }
  .stat .metric {
    font-size: 29px;
  }
  .welcome {
    padding: 20px;
  }
  .welcome-symbol {
    display: none;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-form-area {
    min-height: 100vh;
  }
  .modal-body {
    padding: 20px;
  }
  .panel-header {
    padding: 18px;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 14px 16px;
  }
  .settings-grid {
    gap: 18px;
  }
  .toolbar {
    padding: 13px 16px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .footer-line {
    line-height: 1.7;
  }
}
@media print {
  body {
    background: white;
  }
  .sidebar,
  .topbar,
  .page-heading button,
  .toolbar,
  .form-actions,
  .no-print {
    display: none !important;
  }
  .app {
    display: block;
  }
  .content {
    padding: 0;
  }
  .panel {
    border: 0;
    box-shadow: none;
  }
  .panel-body {
    padding: 0;
  }
  .footer-line {
    color: black;
  }
  .print-content {
    white-space: pre-wrap;
  }
  dialog {
    position: static;
    border: 0;
    box-shadow: none;
    width: 100%;
    max-height: none;
  }
  dialog::backdrop {
    background: transparent;
  }
  body:has(dialog[open]) #app {
    display: none;
  }
  .modal-head {
    position: static;
  }
  .modal-head button {
    display: none;
  }
}
.release-notes {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.release-notes h3 small {
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}
.release-notes ul {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}
.update-log {
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 11px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}
.button-link {
  display: inline-block;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.panel details {
  margin: 14px 0;
}
.panel details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Kundens branding øverst i sidebaren; ProTechie-blokken står mindre nederst. */
.brand-icon.has-logo {
  background: #ffffff;
  overflow: hidden;
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-title {
  overflow-wrap: anywhere;
}
.sidebar-bottom {
  padding: 18px 0 0;
}
.sidebar-bottom .brand-mini {
  padding: 0 10px 10px;
  gap: 9px;
}
.brand-mini .brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 16px;
}
.brand-mini .brand-title {
  font-size: 14px;
}
.brand-mini small {
  font-size: 9px;
  margin-top: 2px;
}
.sidebar-bottom .product-foot {
  padding: 0 10px;
  line-height: 1.6;
}
.logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-preview img {
  max-width: 120px;
  max-height: 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
}

/* Fejl og kvitteringer ved knappen (ProTechies UI-regel, public/feedback.js) */
.anchored-notice-host { margin: 10px 0; }
.notice.anchored { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.notice.anchored:focus { outline: 2px solid var(--primary, #ec4899); outline-offset: 2px; }
.notice.anchored.error { background: #fdf1f1; border-color: #f0c8c8; color: #a63131; }
.notice.anchored .notice-fix { margin-left: auto; flex: none; white-space: nowrap; }
.notice-close { background: transparent; border: 0; color: inherit; font-size: 18px; line-height: 1; padding: 0 4px; cursor: pointer; min-height: 0; width: auto; box-shadow: none; }
.notice.flash { animation: notice-flash 0.45s ease-in-out 3; }
@keyframes notice-flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 4px #e5484d66; background: #fbd9d9; } }
@media (prefers-reduced-motion: reduce) { .notice.flash { animation: none; } }

/* Produktskifter (Skift produkt) i venstremenuen */
.product-switcher { margin-bottom: 8px; }
.sidebar-bottom .ps-trigger,
.sidebar-bottom .ps-item,
.sidebar-bottom .ps-toggle {
  display: flex;
  align-items: center;
  background: transparent;
  color: #b9c7df;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.sidebar-bottom .ps-trigger { border-color: #2a3a58; }
.sidebar-bottom .ps-trigger .ps-chevron { margin-left: auto; }
.sidebar-bottom .ps-trigger:hover,
.sidebar-bottom .ps-item:hover,
.sidebar-bottom .ps-toggle:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sidebar-bottom .ps-trigger:focus-visible,
.sidebar-bottom .ps-item:focus-visible,
.sidebar-bottom .ps-toggle:focus-visible,
.sidebar-bottom .ps-notice a:focus-visible { outline: 2px solid var(--product, #ec4899); outline-offset: 2px; }
.ps-menu ul { list-style: none; margin: 6px 0 0; padding: 0; }
.ps-menu .ps-item span { min-width: 0; }
.sidebar-bottom .ps-menu small { display: block; margin: 1px 0 0; font-size: 11px; font-weight: 500; color: #8ea0c2; }
.sidebar-bottom .ps-inactive { opacity: 0.6; }
.sidebar-bottom .ps-inactive:hover { opacity: 0.85; }
.sidebar-bottom .ps-notice { margin: 2px 0 6px 36px; padding: 0; font-size: 12px; line-height: 1.5; color: #b9c7df; }
.sidebar-bottom .ps-notice a { color: #fff; font-weight: 700; white-space: nowrap; text-decoration: underline; }
@media (max-width: 760px) { .sidebar-bottom .ps-trigger, .sidebar-bottom .ps-item, .sidebar-bottom .ps-toggle { min-height: 44px; } }

/* ===== Menuvisning (konto-standard afsnit 7): Lodret, Kun ikoner og Skjult. Mobil (højst 900 px) bruger altid Skjult (data-menu sættes af koden). ===== */
/* Ét punkt, én linje: aldrig ombrydning; for lang tekst afkortes med "…" og har title med hele teksten. */
.one-line { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .brand > div:last-child { min-width: 0; }
.sidebar .brand-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.sidebar .brand small, .sidebar .profile-text strong, .sidebar .profile-text small, .sidebar .product-foot { white-space: nowrap; }
.sidebar .ps-trigger, .sidebar .ps-item { white-space: nowrap; }
.sidebar .nav-item { min-height: 44px; flex: none; }
.sidebar > :not(nav) { flex-shrink: 0; }
.sidebar nav > * { flex-shrink: 0; }
.sidebar :is(a, button):focus-visible { outline: 2px solid var(--product, #ec4899); outline-offset: -2px; }
.sidebar-bottom .menuvis-button { margin: 3px 0; padding: 12px 14px; }
.sidebar .new-dot { flex: none; }
.menuvis { margin: 0 0 6px; }
.menuvis[hidden] { display: none; }

/* Valget (Min profil og menuen) */
.placement-choice { display: grid; gap: 8px; margin: 12px 0; }
.placement-option { display: flex; justify-content: flex-start; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: #fff; color: #17243b; border: 1px solid var(--line, #dce3ee); border-radius: 9px; padding: 10px 12px; font-weight: 500; }
.placement-option.on { border-color: var(--product, #ec4899); box-shadow: 0 0 0 1px var(--product, #ec4899) inset; }
.placement-dot { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 2px solid #7e8ea6; margin-top: 2px; }
.placement-option.on .placement-dot { border-color: var(--product, #ec4899); background: radial-gradient(var(--product, #ec4899) 45%, transparent 50%); }
.placement-text strong { display: block; white-space: nowrap; }
.placement-text small { display: block; color: #54627a; font-weight: 400; margin-top: 2px; }
.placement-choice.compact { gap: 2px; margin: 4px 0 6px; }
.sidebar .placement-choice.compact .placement-option { background: transparent; color: #b9c7df; border-color: transparent; box-shadow: none; padding: 9px 12px; font-size: 12px; min-height: 40px; align-items: center; }
.sidebar .placement-choice.compact .placement-option:hover { background: rgba(255, 255, 255, 0.06); }
.sidebar .placement-choice.compact .placement-option.on { background: #2a3b5b; color: #fff; }
.sidebar .placement-choice.compact .placement-dot { border-color: #7e91b3; margin-top: 0; }
.sidebar .placement-choice.compact .placement-option.on .placement-dot { border-color: var(--product, #ec4899); background: radial-gradient(var(--product, #ec4899) 45%, transparent 50%); }
.placement-option:focus-visible { outline: 2px solid var(--product, #ec4899); outline-offset: 2px; }

/* Lodret: menuen i venstre side, bredden følger den længste tekst (248-320 px) (se .app og .sidebar ovenfor). */
/* Kun ikoner og Skjult: menuen ligger over indholdet (fixed) og skubber det aldrig. */
.app[data-menu="ikoner"], .app[data-menu="skjult"] { display: block; }
.app[data-menu="ikoner"] .workspace { margin-left: 64px; }
.app[data-menu="skjult"] .workspace { margin-left: 0; }
/* Skinnen har præcis samme opbygning og lodrette placering som den udfoldede menu; kun det, der ikke skal ses, skjules (visibility). Så flytter punkterne sig ikke, når man peger på skinnen. */
.app[data-menu="ikoner"] > .sidebar { position: fixed; inset: 0 auto 0 0; height: auto; align-self: auto; width: 64px; min-width: 64px; max-width: 64px; padding: 28px 8px 20px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; z-index: 30; }
.app[data-menu="ikoner"] > .sidebar::-webkit-scrollbar { display: none; }
.app[data-menu="ikoner"][data-rail="open"] > .sidebar { width: max-content; min-width: 248px; max-width: 320px; scrollbar-width: thin; box-shadow: 0 0 40px #0008; }
.app[data-menu="ikoner"] > .sidebar .brand.customer-brand { padding-left: 4px; }
.app[data-menu="ikoner"] > .sidebar .brand-icon { width: 40px; height: 40px; }
.app[data-menu="ikoner"] > .sidebar .sidebar-bottom { padding-left: 0; padding-right: 0; }
.app[data-menu="ikoner"] > .sidebar .profile-card { padding-left: 6px; padding-right: 6px; }
.app[data-menu="ikoner"] > .sidebar .nav-item { position: relative; }
.app[data-menu="ikoner"] > .sidebar :is(.product-foot, #product-switcher-slot) { margin-left: 14px; }
.app[data-menu="ikoner"][data-rail="closed"] > .sidebar :is(.brand > div:last-child, .nav-text, .profile-text, .product-foot, #product-switcher-slot, .menuvis, .pwa-install-hint) { visibility: hidden; }
.app[data-menu="ikoner"][data-rail="closed"] > .sidebar .nav-label { color: transparent; background: linear-gradient(#ffffff1f, #ffffff1f) center / 100% 1px no-repeat; overflow: hidden; white-space: nowrap; }
.app[data-menu="ikoner"][data-rail="closed"] > .sidebar .new-dot { position: absolute; top: 8px; right: 6px; margin: 0; }
/* Skjult (og mobil): menuknap i topbaren åbner menuen som skuffe over indholdet. */
.app[data-menu="skjult"] > .sidebar {
  position: fixed; inset: 0 auto 0 0; height: auto; align-self: auto; width: max-content; min-width: 248px; max-width: min(320px, 90vw); z-index: 40;
  transform: translateX(-100%); visibility: hidden; transition: transform 0.2s, visibility 0s 0.2s;
}
.app[data-menu="skjult"].menu-open > .sidebar { transform: none; visibility: visible; transition: transform 0.2s; box-shadow: 0 0 40px #0008; }
.menu-scrim { position: fixed; inset: 0; z-index: 35; padding: 0; border: 0; border-radius: 0; background: #0b111888; cursor: default; }
.menu-scrim[hidden] { display: none; }
.mobile-menu { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; font-size: 18px; line-height: 1; padding: 0 10px; }
.app[data-menu="skjult"] .mobile-menu { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .app[data-menu="skjult"] > .sidebar { transition: none; } }

/* Mobil (højst 900 px) gælder straks i CSS, også før koden har nået at sætte data-menu="skjult" (fx når vinduet gøres smalt): ingen vandret rul og ingen synlig menu midt i skiftet. */
@media (max-width: 900px) {
  .app[data-menu="lodret"], .app[data-menu="ikoner"] { display: block; }
  .app[data-menu="lodret"] .workspace, .app[data-menu="ikoner"] .workspace { margin-left: 0; }
  .app[data-menu="lodret"] > .sidebar, .app[data-menu="ikoner"] > .sidebar {
    position: fixed; inset: 0 auto 0 0; height: auto; align-self: auto; width: max-content; min-width: 248px; max-width: min(320px, 90vw); z-index: 40;
    transform: translateX(-100%); visibility: hidden; padding: 28px 16px 20px; overflow-x: hidden; overflow-y: auto;
  }
  .app[data-menu="lodret"] .mobile-menu, .app[data-menu="ikoner"] .mobile-menu { display: inline-flex; }
  .app[data-menu="lodret"].menu-open > .sidebar, .app[data-menu="ikoner"].menu-open > .sidebar { transform: none; visibility: visible; box-shadow: 0 0 40px #0008; }
}
.topbar .company { min-width: 0; flex: 1 1 auto; }
.topbar .company .one-line { flex: 0 1 auto; }
.topbar .ask-techies { flex: none; white-space: nowrap; }

.startup-page { --accent: #a81c63; --text: var(--ink); --border: var(--line); --bg: var(--background); }
.startup-bootstrap { max-width: 520px; margin: 24px auto; width: calc(100% - 32px); }

/* ===== Favoritter (gemte visninger): menupunktet i venstremenuen med en udfoldelig liste (flyout i "Kun ikoner"). Punkter brydes aldrig; kun forklaringen uden favoritter er en tekst, der må ombrydes. ===== */
.fav-group { margin: 0 0 6px; }
.fav-toggle .fav-caret { margin-left: auto; display: grid; place-items: center; flex: none; transition: transform 0.15s; }
.fav-toggle[aria-expanded="true"] .fav-caret { transform: rotate(90deg); }
.fav-list { margin: 0 0 6px; }
.fav-list[hidden] { display: none; }
.fav-sub { padding-left: 26px; }
.fav-sub:disabled { opacity: 0.5; cursor: default; }
.fav-sub:disabled:hover { background: transparent; }
.fav-label { margin: 8px 0 2px 14px; }
.fav-note { margin: 4px 10px 8px 14px; font-size: 12px; line-height: 1.5; color: #b9c7df; white-space: normal; }
.app[data-menu="ikoner"] > .sidebar .fav-list { position: fixed; z-index: 60; width: 280px; overflow-y: auto; padding: 8px; background: var(--sidebar); border-radius: 12px; box-shadow: 0 8px 40px #000a; margin: 0; }
.app[data-menu="ikoner"] .fav-sub { padding-left: 14px; }
.app[data-menu="ikoner"][data-rail="closed"] > .sidebar .fav-caret { visibility: hidden; }
.fav-actions { display: flex; flex-wrap: wrap; gap: 4px; white-space: normal; }
.fav-actions button { white-space: nowrap; }
.fav-nowrap { white-space: nowrap; }

/* Sprogvælger: etiketten "Sprog:" med en dropdown (som kundeportalen). Ingen faste bredder, så teksten må ombrydes. */
.language-choice { display: grid; gap: 7px; max-width: 360px; margin: 12px 0; overflow-wrap: anywhere; }
.language-choice select { width: 100%; min-width: 0; }

.help-q {
  width: 20px;
  height: 20px;
  padding: 0;
  margin-left: 4px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 18px;
  vertical-align: middle;
}
