:root {
  --primary: #2563eb;
  --ink: #17243b;
  --muted: #68778d;
  --line: #e3e9f0;
  --background: #f4f7fb;
  --sidebar: #14233f;
  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: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--sidebar);
  color: #d2daea;
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  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: #3c68e5;
  color: white;
  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;
}
.nav-item.active {
  background: #2a3b5b;
  color: white;
}
.nav-item .icon {
  width: 19px;
  font-size: 16px;
  text-align: center;
}
.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;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  background: #e7edfc;
  color: #3d5ca2;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.user-meta {
  font-size: 12px;
}
.user-meta small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.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;
}
.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);
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #193453;
  color: white;
  padding: 14px 21px;
  border-radius: 10px;
  box-shadow: 0 8px 25px #0002;
  font-size: 13px;
  z-index: 100;
  display: none;
  max-width: 420px;
}
.mobile-menu {
  display: none;
}
.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;
  }
  .sidebar {
    width: 220px;
  }
  .app {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .app {
    display: block;
  }
  .sidebar {
    display: none;
    width: 245px;
    z-index: 20;
  }
  .sidebar.open {
    display: flex;
    box-shadow: 0 0 0 100vw #10203c60;
  }
  .workspace {
    width: 100%;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 68px;
    padding: 0 16px;
  }
  .user-meta {
    display: none;
  }
  .top-actions {
    gap: 6px;
  }
  .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;
  }
  .top-actions .quiet {
    font-size: 11px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .footer-line {
    line-height: 1.7;
  }
}
@media print {
  body {
    background: white;
  }
  .sidebar,
  .topbar,
  .page-heading button,
  .toolbar,
  .form-actions,
  #toast,
  .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;
}

/* Første opsætning og licensforbindelse: samme gule disclaimer i alle ProTechie-produkter. */
.setup-notice { background: #fff6e0; border: 1px solid #f0dca8; border-radius: 6px; padding: 12px 16px; color: #16392f; font-size: 13px; line-height: 1.55; text-align: left; flex-basis: 100%; }
.setup-notice p { margin: 6px 0; }
.setup-notice ul { margin: 6px 0; padding-left: 20px; }
.setup-notice li { margin: 4px 0; }
