/* Covrlink design system — inspireret af covrlink.com */

html {
  font-family: Figtree, system-ui, -apple-system, sans-serif;
}

body {
  font-family: Figtree, system-ui, -apple-system, sans-serif;
}

button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
}

[data-dropdown].open > [data-dropdown-menu] {
  display: block;
}

[data-modal].open {
  display: flex !important;
}

[data-collapse].open,
[data-collapse]:not(.hidden) {
  display: block;
}

.covr-card {
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 12px;
  box-shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.15);
}

.covr-card-flat {
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 12px;
}

.covr-stat-accent {
  border-color: hsl(0 0% 9% / 0.2);
  background: linear-gradient(180deg, hsl(0 0% 96%) 0%, #fff 100%);
}

.covr-stat-card {
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 12px;
  padding: 1rem;
}

.covr-stat-card .covr-eyebrow {
  margin-bottom: 0.5rem;
}

.covr-stat-value {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  margin: 0;
}

.covr-stat-hint {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(215 16% 47%);
  margin: 0.25rem 0 0;
}

/* Entitetstemaer – tilbud, police, skade, betaling */
.covr-entity-tilbud {
  --entity-h: 199;
  --entity-s: 89%;
  --entity-l: 48%;
  --entity-bg-h: 204;
  --entity-bg-s: 100%;
  --entity-bg-l: 97%;
}
.covr-entity-police {
  --entity-h: 262;
  --entity-s: 83%;
  --entity-l: 58%;
  --entity-bg-h: 250;
  --entity-bg-s: 100%;
  --entity-bg-l: 98%;
}
.covr-entity-skade {
  --entity-h: 25;
  --entity-s: 95%;
  --entity-l: 53%;
  --entity-bg-h: 48;
  --entity-bg-s: 100%;
  --entity-bg-l: 96%;
}
.covr-entity-betaling {
  --entity-h: 160;
  --entity-s: 84%;
  --entity-l: 39%;
  --entity-bg-h: 152;
  --entity-bg-s: 76%;
  --entity-bg-l: 96%;
}
.covr-entity-opgave {
  --entity-h: 217;
  --entity-s: 91%;
  --entity-l: 60%;
  --entity-bg-h: 214;
  --entity-bg-s: 100%;
  --entity-bg-l: 97%;
}
.covr-entity-kunde {
  --entity-h: 222;
  --entity-s: 47%;
  --entity-l: 11%;
  --entity-bg-h: 220;
  --entity-bg-s: 27%;
  --entity-bg-l: 98%;
}

.covr-entity-aktivitet {
  --entity-h: 215;
  --entity-s: 16%;
  --entity-l: 40%;
  --entity-bg-h: 220;
  --entity-bg-s: 14%;
  --entity-bg-l: 97%;
}

.covr-entity-dyrelaege {
  --entity-h: 173;
  --entity-s: 72%;
  --entity-l: 36%;
  --entity-bg-h: 166;
  --entity-bg-s: 76%;
  --entity-bg-l: 96%;
}

.covr-entity-flow {
  --entity-h: 271;
  --entity-s: 81%;
  --entity-l: 56%;
  --entity-bg-h: 270;
  --entity-bg-s: 100%;
  --entity-bg-l: 98%;
}

.covr-entity-kommunikation {
  --entity-h: 199;
  --entity-s: 89%;
  --entity-l: 38%;
  --entity-bg-h: 204;
  --entity-bg-s: 94%;
  --entity-bg-l: 96%;
}

[class*="covr-entity-"] .covr-tab.is-active {
  color: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
  border-bottom-color: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
}

[class*="covr-entity-"] .covr-timeline-dot {
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
}

.covr-entity-nav {
  --covr-nav-gap: 0.25rem;
  --covr-nav-pad: 0.35rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--covr-nav-gap);
  padding: var(--covr-nav-pad);
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: hsl(214 20% 80%) transparent;
  scroll-snap-type: x proximity;
}

.covr-entity-nav::-webkit-scrollbar {
  height: 6px;
}

.covr-entity-nav::-webkit-scrollbar-thumb {
  background: hsl(214 20% 80%);
  border-radius: 999px;
}

.covr-entity-nav::-webkit-scrollbar-track {
  background: transparent;
}

.covr-entity-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 0.45rem 0.8rem;
  font-size: 13px;
  font-weight: 500;
  color: hsl(215 16% 40%);
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  scroll-snap-align: start;
  transition: background 0.12s, color 0.12s;
}

.covr-entity-nav-link:hover {
  background: hsl(214 32% 96%);
  color: hsl(222 47% 11%);
}

.covr-entity-nav-link.is-active {
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.12);
  color: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
  font-weight: 600;
}

.covr-entity-nav-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}

.covr-entity-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: 0.1rem;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  border-radius: 9999px;
  background: hsl(214 32% 93%);
  color: hsl(215 16% 47%);
}

.covr-entity-nav-link.is-active .covr-entity-nav-count {
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.2);
  color: hsl(var(--entity-h) var(--entity-s) calc(var(--entity-l) - 8%));
}

.covr-entity-nav-link:hover .covr-entity-nav-count {
  background: hsl(214 32% 88%);
}

.covr-page-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.25rem;
  background: hsl(var(--entity-bg-h) var(--entity-bg-s) var(--entity-bg-l));
  border: 1px solid hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.18);
  border-left: 4px solid hsl(var(--entity-h) var(--entity-s) var(--entity-l));
  border-radius: 12px;
}

.covr-page-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.15);
  color: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.covr-page-hero-icon svg {
  width: 22px;
  height: 22px;
}

.covr-page-hero-body {
  flex: 1;
  min-width: min(100%, 240px);
}

.covr-page-hero > nav {
  flex: 1;
  min-width: min(100%, 200px);
}

.covr-page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
}

.covr-page-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
  margin-bottom: 0.35rem;
}

.covr-copilot {
  background: hsl(0 0% 9% / 0.04);
  border: 1px solid hsl(0 0% 9% / 0.08);
  border-radius: 12px;
}

.covr-copilot-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #FFE600;
}

.covr-copilot-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.covr-copilot-scores {
  padding-top: 0.125rem;
}

@media (min-width: 1024px) {
  .covr-copilot-scores {
    border-left: 1px solid hsl(0 0% 9% / 0.08);
    padding-left: 1.25rem;
  }
}

.covr-copilot-score-value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.covr-copilot-score-max {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-left: 0.1rem;
}

.covr-copilot-meter {
  height: 4px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: hsl(0 0% 9% / 0.08);
  overflow: hidden;
}

.covr-copilot-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: hsl(var(--primary));
}

.covr-copilot-score {
  position: relative;
  cursor: help;
  border-radius: 8px;
  padding: 0.25rem 0.35rem;
  margin: -0.25rem -0.35rem;
  outline: none;
  transition: background 0.15s ease;
}

.covr-copilot-score:hover,
.covr-copilot-score:focus-visible {
  background: hsl(0 0% 9% / 0.04);
}

.covr-copilot-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 40;
  width: min(280px, 72vw);
  padding: 0.875rem 1rem;
  border-radius: 10px;
  background: #fff;
  color: hsl(0 0% 9%);
  box-shadow: 0 12px 28px hsl(0 0% 9% / 0.14);
  border: 1px solid hsl(0 0% 9% / 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

.covr-copilot-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 1.25rem;
  border: 6px solid transparent;
  border-top-color: #fff;
}

.covr-copilot-score:hover .covr-copilot-tooltip,
.covr-copilot-score:focus-visible .covr-copilot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.covr-copilot-tooltip-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.covr-copilot-tooltip ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.covr-copilot-tooltip li {
  position: relative;
  padding-left: 0.75rem;
  font-size: 12px;
  line-height: 1.45;
  color: hsl(0 0% 9% / 0.72);
}

.covr-copilot-tooltip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: hsl(0 0% 9% / 0.35);
}

.covr-live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: hsl(0 0% 9% / 0.06);
  color: hsl(0 0% 9%);
}

.covr-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(16 185 129);
  flex-shrink: 0;
}

.covr-eyebrow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(215 16% 40%);
}

.covr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 13px;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.covr-btn-primary {
  background: hsl(0 0% 9%);
  color: #fff;
}

.covr-btn-primary:hover {
  background: hsl(0 0% 9% / 0.9);
}

.covr-btn-secondary {
  background: #fff;
  color: hsl(222 47% 11%);
  border: 1px solid hsl(214 32% 91%);
}

.covr-btn-secondary:hover {
  background: hsl(220 27% 98%);
}

.covr-btn-danger {
  background: hsl(0 84% 60%);
  color: #fff;
}

.covr-btn-danger:hover {
  background: hsl(0 84% 55%);
}

.covr-nav-active {
  background: hsl(0 0% 9%);
  color: #fff;
}

.covr-nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: hsl(215 16% 40%);
  transition: background 0.12s, color 0.12s;
}

.covr-nav-item:hover {
  background: hsl(220 27% 98%);
  color: hsl(222 47% 11%);
}

.covr-sidebar {
  width: 15rem;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid hsl(214 32% 91%);
  position: sticky;
  top: 0;
  height: 100vh;
  display: none;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .covr-sidebar {
    display: flex;
  }
}

.covr-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem 1rem;
}

.covr-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.625rem 1.25rem;
}

.covr-sidebar-tenant {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.25rem 0.75rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 10px;
  background: hsl(220 27% 98%);
  color: hsl(222 47% 11%);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, border-color 0.12s;
}

.covr-sidebar-tenant:hover {
  background: #fff;
  border-color: hsl(214 32% 84%);
}

.covr-sidebar-tenant-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #22c55e;
  flex-shrink: 0;
}

.covr-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.covr-sidebar-list + .covr-sidebar-list {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(214 32% 91%);
}

.covr-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
  color: hsl(215 16% 40%);
  transition: background 0.12s, color 0.12s;
}

.covr-sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.covr-sidebar-link:hover {
  background: hsl(220 27% 98%);
  color: hsl(222 47% 11%);
}

.covr-sidebar-link.is-active {
  background: hsl(220 14% 96%);
  color: hsl(222 47% 11%);
  font-weight: 500;
}

.covr-sidebar-link.is-active svg {
  opacity: 1;
}

.quote-toggle {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.quote-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.quote-toggle-track {
  position: absolute;
  inset: 0;
  background: hsl(214 32% 91%);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}
.quote-toggle-track::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.quote-toggle input:checked + .quote-toggle-track {
  background: hsl(0 0% 9%);
}
.quote-toggle input:checked + .quote-toggle-track::before {
  transform: translateX(20px);
}

.expand-row.is-expanded .expand-btn svg {
  transform: rotate(90deg);
}

/* Fold-ud sektioner (lead overblik) */
.covr-collapse-section {
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 12px;
  overflow: hidden;
}

.covr-collapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.covr-collapse-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  color: inherit;
}

.covr-collapse-trigger:hover .covr-collapse-heading h2 {
  color: hsl(0 0% 9%);
}

.covr-collapse-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: hsl(215 16% 47%);
  transition: transform 0.15s;
}

.covr-collapse-section.is-open .covr-collapse-chevron {
  transform: rotate(90deg);
}

.covr-collapse-heading h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.covr-collapse-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  font-size: 11px;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: hsl(214 32% 96%);
  color: hsl(215 16% 40%);
}

.covr-collapse-summary {
  margin-top: 0.25rem;
}

.covr-collapse-actions {
  flex-shrink: 0;
}

.covr-collapse-panel {
  display: none;
  border-top: 1px solid hsl(214 32% 91%);
}

.covr-collapse-section.is-open .covr-collapse-panel {
  display: block;
}

/* Kommunikation – indbakke */
.covr-comm-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  min-height: min(72vh, 720px);
  border: 1px solid hsl(214 32% 91%);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px hsl(222 47% 11% / 0.04), 0 8px 24px hsl(222 47% 11% / 0.04);
}

.covr-comm-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid hsl(214 32% 91%);
  background: hsl(220 27% 99%);
}

.covr-comm-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  border-bottom: 1px solid hsl(214 32% 91%);
  background: #fff;
}

.covr-comm-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0 0.7rem;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 8px;
  background: hsl(220 27% 98%);
}

.covr-comm-search:focus-within {
  border-color: hsl(222 47% 11% / 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px hsl(222 47% 11% / 0.06);
}

.covr-comm-search svg {
  width: 15px;
  height: 15px;
  color: hsl(215 16% 47%);
  flex-shrink: 0;
}

.covr-comm-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.covr-comm-filters {
  display: inline-flex;
  width: 100%;
  padding: 3px;
  border-radius: 10px;
  background: hsl(214 32% 94%);
  gap: 2px;
}

.covr-comm-filters [data-comm-filter],
.covr-comm-filters [data-inbox-filter] {
  flex: 1;
  border: 0;
  background: transparent;
  color: hsl(215 16% 40%);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.covr-comm-filters [data-comm-filter].is-active,
.covr-comm-filters [data-inbox-filter].is-active {
  background: #fff;
  color: hsl(222 47% 11%);
  box-shadow: 0 1px 2px hsl(222 47% 11% / 0.08);
}

.covr-comm-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem;
}

.covr-comm-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.65rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.12s;
}

.covr-comm-item:hover {
  background: hsl(214 32% 96%);
}

.covr-comm-item.is-active {
  background: hsl(214 32% 94%);
}

.covr-comm-item-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: hsl(204 90% 92%);
  color: hsl(199 89% 30%);
  flex-shrink: 0;
}

.covr-comm-item-avatar.is-out {
  background: hsl(222 47% 11%);
  color: #fff;
}

.covr-comm-item-avatar.is-case {
  border-radius: 8px;
  background: hsl(142 76% 36% / 0.12);
  color: hsl(142 72% 30%);
}

.covr-comm-item-main {
  min-width: 0;
}

.covr-comm-item-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.covr-comm-item-name {
  font-size: 13px;
  font-weight: 600;
  color: hsl(222 47% 11%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.covr-comm-item-channel {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(215 16% 47%);
  flex-shrink: 0;
}

.covr-comm-item-snippet {
  font-size: 12px;
  line-height: 1.35;
  color: hsl(215 16% 40%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.covr-comm-item-time {
  font-size: 11px;
  color: hsl(215 16% 47%);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.covr-comm-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: #fff;
}

.covr-comm-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(214 32% 91%);
}

.covr-comm-detail-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: hsl(222 47% 11%);
}

.covr-comm-detail-sub {
  margin-top: 0.25rem;
  font-size: 12px;
  color: hsl(215 16% 47%);
}

.covr-comm-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.covr-comm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 8px;
  background: #fff;
  color: hsl(215 16% 40%);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.covr-comm-icon-btn:hover {
  background: hsl(220 27% 98%);
  color: hsl(222 47% 11%);
}

.covr-comm-icon-btn svg {
  width: 15px;
  height: 15px;
}

.covr-comm-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: hsl(220 20% 97.5%);
}

.covr-comm-mail {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.covr-comm-mail-card {
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 2px hsl(222 47% 11% / 0.03);
}

.covr-comm-mail-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(214 32% 93%);
}

.covr-comm-mail-head .covr-comm-item-avatar {
  margin-top: 0.1rem;
}

.covr-comm-mail-from {
  font-size: 13px;
  font-weight: 600;
  color: hsl(222 47% 11%);
}

.covr-comm-mail-meta {
  margin-top: 0.15rem;
  font-size: 12px;
  color: hsl(215 16% 47%);
}

.covr-comm-mail-content {
  font-size: 0.9rem;
  line-height: 1.55;
  color: hsl(222 47% 11%);
}

.covr-comm-mail-content p + p {
  margin-top: 0.65rem;
}

.covr-comm-detail-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid hsl(214 32% 91%);
  background: #fff;
}

.covr-ai-panel {
  border-top: 1px solid hsl(0 0% 9% / 0.08);
  background: hsl(0 0% 9% / 0.04);
  padding: 1rem 1.25rem;
}

.covr-ai-panel[hidden] {
  display: none;
}

.covr-ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.covr-ai-panel-head h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.covr-ai-panel-head .covr-copilot-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
}

.covr-ai-panel-body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: hsl(215 25% 27%);
  white-space: pre-wrap;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border: 1px solid hsl(0 0% 9% / 0.08);
  border-radius: 10px;
  min-height: 4.5rem;
}

.covr-ai-loading {
  color: hsl(215 16% 47%);
  font-style: italic;
}

.covr-ai-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.covr-btn.covr-btn-ai .covr-copilot-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
}

.covr-compose-vars {
  margin-top: 0.5rem;
}

.covr-compose-vars-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(215 16% 47%);
  margin-bottom: 0.4rem;
}

.covr-compose-vars-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.covr-compose-var {
  font-size: 11px;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid hsl(214 32% 88%);
  background: hsl(220 27% 98%);
  color: hsl(215 25% 35%);
  transition: background 0.12s, border-color 0.12s;
}

.covr-compose-var:hover {
  background: hsl(214 32% 94%);
  border-color: hsl(214 32% 82%);
}

.covr-compose-var code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  color: hsl(262 45% 45%);
}

.covr-comm-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(215 16% 40%);
}

.covr-comm-channel svg {
  width: 11px;
  height: 11px;
  opacity: 0.8;
}

.covr-comm-preview {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.covr-comm-preview-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid hsl(214 32% 91%);
  font-size: 0.875rem;
  transition: background 0.12s;
}

.covr-comm-preview-row:hover {
  background: hsl(220 27% 98%);
}

.covr-comm-preview-row:last-child {
  border-bottom: 0;
}

.covr-comm-preview-row .covr-comm-channel {
  margin-top: 0.15rem;
  min-width: 3.5rem;
}

@media (max-width: 900px) {
  .covr-comm-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .covr-comm-sidebar {
    border-right: 0;
    border-bottom: 1px solid hsl(214 32% 91%);
    max-height: 280px;
  }
}

.covr-trend-up {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 11px;
  font-weight: 600;
  color: rgb(5 150 105);
}

.covr-task-comments {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
}

.covr-task-comment {
  padding: 0.85rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(220 27% 98%);
}

.covr-task-comment-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.covr-task-comment-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.15);
  color: hsl(var(--entity-h) var(--entity-s) calc(var(--entity-l) - 8%));
  flex-shrink: 0;
}

.covr-task-comment-body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: hsl(var(--foreground));
  white-space: pre-wrap;
}

.covr-task-comment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.covr-agent-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.12);
  color: hsl(var(--entity-h) var(--entity-s) calc(var(--entity-l) - 10%));
}

.covr-agent-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.covr-agent-pick {
  font-size: 12px;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: #fff;
  color: hsl(var(--foreground));
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.covr-agent-pick:hover {
  background: hsl(var(--muted));
}

.covr-agent-pick.is-selected,
.covr-agent-pick[aria-pressed="true"] {
  border-color: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.35);
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.12);
  color: hsl(var(--entity-h) var(--entity-s) calc(var(--entity-l) - 10%));
}

.covr-task-activity {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.covr-task-activity li {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid hsl(var(--border));
}

.covr-task-activity li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* Detaljesider – overskueligt layout */
.covr-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem 1.5rem;
}
.covr-detail-grid dt {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(215 16% 40%);
  margin-bottom: 0.2rem;
}
.covr-detail-grid dd {
  font-size: 14px;
  font-weight: 500;
  color: hsl(222 47% 11%);
}

.covr-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsl(214 32% 91%);
}
.covr-section:last-child {
  border-bottom: none;
}
.covr-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(215 16% 40%);
  margin-bottom: 0.75rem;
}

.covr-coverage-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.covr-coverage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: hsl(220 27% 98%);
  border-radius: 8px;
  font-size: 14px;
}

.covr-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.covr-timeline li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid hsl(214 32% 91%);
}
.covr-timeline li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.covr-timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(0 0% 9%);
  margin-top: 0.4rem;
  flex-shrink: 0;
}
.covr-timeline-time {
  font-size: 11px;
  color: hsl(215 16% 40%);
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

.covr-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid hsl(214 32% 91%);
  padding: 0 1.25rem;
  overflow-x: auto;
}
.covr-tab {
  padding: 0.65rem 0.85rem;
  font-size: 13px;
  font-weight: 500;
  color: hsl(215 16% 40%);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.covr-tab.is-active {
  color: hsl(222 47% 11%);
  border-bottom-color: hsl(0 0% 9%);
}
.covr-tab-panel {
  display: none;
}
.covr-tab-panel.is-active {
  display: block;
}

.covr-related-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s, border-color 0.12s;
}
.covr-related-link:hover {
  background: hsl(220 27% 98%);
  border-color: hsl(214 32% 91%);
}

.covr-price-highlight {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: hsl(0 0% 96%);
  border-radius: 8px;
  margin-top: 0.5rem;
}

[data-dropdown-menu] {
  display: none;
}

[data-dropdown].open > [data-dropdown-menu] {
  display: block;
}

[data-dropdown-menu][hidden] {
  display: none !important;
}

.covr-tools-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 220px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 10px;
  box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.25);
}

.covr-tools-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}

.covr-tools-item:hover {
  background: hsl(220 27% 98%);
}

.covr-tools-item--primary {
  font-weight: 600;
}

.covr-tools-item.is-following {
  color: hsl(217 91% 40%);
}

.covr-tools-item.is-following .covr-tools-item-icon {
  background: hsl(217 91% 60% / 0.12);
  color: hsl(217 91% 40%);
}

.covr-tools-item--danger {
  color: hsl(0 72% 45%);
}

.covr-tools-item--danger:hover {
  background: hsl(0 86% 97%);
}

.covr-tools-item--danger .covr-tools-item-icon {
  background: hsl(0 86% 95%);
  color: hsl(0 72% 45%);
}

.covr-lead-follow-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: hsl(217 91% 60% / 0.1);
  color: hsl(217 91% 40%);
}

.covr-tools-item-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: hsl(220 27% 96%);
  color: hsl(215 16% 40%);
}

.covr-tools-item-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.covr-tools-divider {
  height: 1px;
  margin: 0.25rem 0.35rem;
  background: hsl(214 32% 91%);
}

.covr-notifications-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: hsl(0 84% 60%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.covr-notifications-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(380px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 12px;
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.covr-notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid hsl(214 32% 91%);
}

.covr-notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
}

.covr-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid hsl(214 32% 96%);
  transition: background 0.12s;
}

.covr-notification-item:hover {
  background: hsl(220 27% 98%);
}

.covr-notification-item.is-unread {
  background: hsl(214 100% 97% / 0.55);
}

.covr-notification-item.is-unread:hover {
  background: hsl(214 100% 97%);
}

.covr-notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.covr-notification-icon svg {
  width: 16px;
  height: 16px;
}

.covr-notification-icon--tilbud {
  background: hsl(199 89% 48% / 0.12);
  color: hsl(199 89% 40%);
}

.covr-notification-icon--opgave {
  background: hsl(217 91% 60% / 0.12);
  color: hsl(217 91% 50%);
}

.covr-notification-icon--betaling {
  background: hsl(160 84% 39% / 0.12);
  color: hsl(160 84% 32%);
}

.covr-notification-icon--skade {
  background: hsl(25 95% 53% / 0.12);
  color: hsl(25 95% 45%);
}

.covr-notification-icon--flow {
  background: hsl(271 81% 56% / 0.12);
  color: hsl(271 81% 48%);
}

.covr-notification-time {
  flex-shrink: 0;
  font-size: 11px;
  color: hsl(215 16% 47%);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.covr-notifications-footer {
  padding: 0.75rem 1rem;
  text-align: center;
  border-top: 1px solid hsl(214 32% 91%);
  background: hsl(220 27% 98%);
}

/* Internal inbox dropdown */
.covr-inbox-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(380px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 12px;
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.covr-inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid hsl(214 32% 91%);
}

.covr-inbox-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid hsl(214 32% 96%);
}

.covr-inbox-tabs button {
  flex: 1;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: hsl(215 16% 47%);
  cursor: pointer;
}

.covr-inbox-tabs button.is-active {
  background: hsl(214 100% 97%);
  color: hsl(217 91% 45%);
}

.covr-inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}

.covr-inbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid hsl(214 32% 96%);
  transition: background 0.12s;
}

.covr-inbox-item:hover {
  background: hsl(220 27% 98%);
}

.covr-inbox-item.is-unread {
  background: hsl(214 100% 97% / 0.55);
}

.covr-inbox-item.is-unread:hover {
  background: hsl(214 100% 97%);
}

.covr-inbox-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(217 91% 60% / 0.12);
  color: hsl(217 91% 40%);
  font-size: 11px;
  font-weight: 700;
}

.covr-inbox-avatar.is-case {
  background: hsl(142 76% 36% / 0.12);
  color: hsl(142 72% 30%);
  border-radius: 8px;
}

.covr-inbox-item-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.covr-inbox-time {
  flex-shrink: 0;
  font-size: 11px;
  color: hsl(215 16% 47%);
  font-variant-numeric: tabular-nums;
}

.covr-inbox-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 11px;
  color: hsl(217 91% 45%);
}

.covr-inbox-footer {
  padding: 0.75rem 1rem;
  text-align: center;
  border-top: 1px solid hsl(214 32% 91%);
  background: hsl(220 27% 98%);
}

.covr-inbox-list [hidden] {
  display: none !important;
}

/* Internal inbox full page */
.covr-inbox-case-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.65rem 1rem;
  background: hsl(214 100% 97% / 0.6);
  border-bottom: 1px solid hsl(214 32% 91%);
  font-size: 13px;
}

.covr-inbox-case-banner a {
  color: hsl(217 91% 45%);
  font-weight: 500;
  text-decoration: none;
}

.covr-inbox-case-banner a:hover {
  text-decoration: underline;
}

.covr-inbox-messages {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 40rem;
}

.covr-inbox-msg {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: min(88%, 32rem);
}

.covr-inbox-msg.is-mine {
  align-self: flex-end;
  align-items: flex-end;
  max-width: min(82%, 28rem);
}

.covr-inbox-msg-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.covr-inbox-msg.is-mine .covr-inbox-msg-head {
  justify-content: flex-end;
  padding-right: 0.15rem;
}

.covr-inbox-msg-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(217 91% 60% / 0.12);
  color: hsl(217 91% 40%);
  font-size: 10px;
  font-weight: 700;
}

.covr-inbox-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.covr-inbox-msg-author {
  font-size: 13px;
  font-weight: 600;
  color: hsl(222 47% 11%);
}

.covr-inbox-msg-head time {
  font-size: 11px;
  color: hsl(215 16% 47%);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.covr-inbox-msg-body {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  font-size: 0.875rem;
  line-height: 1.55;
  box-shadow: 0 1px 2px hsl(222 47% 11% / 0.03);
}

.covr-inbox-msg:not(.is-mine) .covr-inbox-msg-body {
  margin-left: 2.25rem;
}

.covr-inbox-msg.is-mine .covr-inbox-msg-body {
  background: hsl(217 91% 60%);
  border-color: hsl(217 91% 55%);
  color: #fff;
}

.covr-inbox-msg-body .covr-mention {
  color: hsl(217 91% 45%);
  font-weight: 500;
}

.covr-inbox-msg.is-mine .covr-inbox-msg-body .covr-mention {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.covr-inbox-compose {
  padding: 1rem 1.15rem;
  border-top: 1px solid hsl(214 32% 91%);
  background: hsl(220 27% 99%);
}

.covr-inbox-compose textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
}

.covr-inbox-compose textarea:focus {
  border-color: hsl(217 91% 60%);
  box-shadow: 0 0 0 3px hsl(217 91% 60% / 0.12);
}

.covr-inbox-compose-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.covr-inbox-follow-btn.is-following {
  color: hsl(217 91% 45%);
  border-color: hsl(217 91% 60% / 0.35);
  background: hsl(217 91% 60% / 0.08);
}

[data-inbox-page] .covr-comm-item.is-active {
  background: hsl(214 100% 97%);
}

[data-inbox-page] .covr-comm-item.is-unread .covr-comm-item-name {
  font-weight: 700;
}

[data-inbox-page] .covr-comm-item.is-unread .covr-comm-item-snippet {
  color: hsl(222 47% 11% / 0.72);
}

[data-inbox-page] .covr-comm-item-channel--sag {
  color: hsl(142 72% 28%);
}

[data-inbox-page] .covr-comm-item-channel--follow {
  color: hsl(217 91% 45%);
}

[data-inbox-page] .covr-comm-detail-body {
  display: flex;
  flex-direction: column;
}

[data-inbox-page] .covr-inbox-messages {
  flex: 1;
}

[data-inbox-page] .covr-inbox-compose .covr-agent-picker {
  flex: 1;
  min-width: 0;
}

[data-inbox-page] .covr-comm-list [data-inbox-thread][hidden] {
  display: none;
}
.covr-search {
  position: relative;
}

.covr-search.open .covr-search-input-wrap {
  border-color: hsl(217 91% 60%);
  box-shadow: 0 0 0 3px hsl(217 91% 60% / 0.15);
}

.covr-search-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px -10px hsl(215 25% 27% / 0.2);
  overflow: hidden;
}

.covr-search-panel[hidden] {
  display: none !important;
}

.covr-search-hint {
  padding: 0.75rem 0.5rem 0.25rem;
}

.covr-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.covr-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  margin: 0 0.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.covr-search-item:hover,
.covr-search-item.is-active {
  background: hsl(220 27% 98%);
}

.covr-search-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.covr-search-icon svg {
  width: 1rem;
  height: 1rem;
}

.covr-search-icon--kunde {
  background: hsl(262 83% 58% / 0.12);
  color: hsl(262 83% 48%);
}

.covr-search-icon--tilbud {
  background: hsl(199 89% 48% / 0.12);
  color: hsl(199 89% 40%);
}

.covr-search-icon--police {
  background: hsl(142 71% 45% / 0.12);
  color: hsl(142 71% 35%);
}

.covr-search-icon--opgave {
  background: hsl(217 91% 60% / 0.12);
  color: hsl(217 91% 50%);
}

.covr-search-icon--skade {
  background: hsl(25 95% 53% / 0.12);
  color: hsl(25 95% 45%);
}

.covr-search-icon--betaling {
  background: hsl(160 84% 39% / 0.12);
  color: hsl(160 84% 32%);
}

.covr-search-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(215 16% 47%);
  padding: 0.125rem 0.375rem;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 0.25rem;
  background: hsl(220 27% 98%);
}

.covr-search-mark {
  background: hsl(48 96% 89%);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.covr-search-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.625rem 1rem;
  border-top: 1px solid hsl(214 32% 91%);
  background: hsl(220 27% 98%);
  font-size: 11px;
  color: hsl(215 16% 47%);
}

.covr-search-footer kbd {
  display: inline-block;
  font-size: 10px;
  padding: 0.125rem 0.375rem;
  margin-right: 0.25rem;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 0.25rem;
  background: white;
  font-family: inherit;
}

/* Rapport-modul */
.covr-entity-rapport {
  --entity-h: 173;
  --entity-s: 58%;
  --entity-l: 39%;
  --entity-bg-h: 166;
  --entity-bg-s: 76%;
  --entity-bg-l: 97%;
}

.covr-report-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.covr-report-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  font-size: 13px;
  font-weight: 500;
  color: hsl(215 16% 40%);
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.covr-report-nav-link:hover {
  background: hsl(214 32% 96%);
  color: hsl(222 47% 11%);
}

.covr-report-nav-link.is-active {
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.12);
  color: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
  font-weight: 600;
}

.covr-report-card {
  display: block;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.covr-report-card:hover {
  border-color: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.35);
  box-shadow: 0 12px 32px -20px hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.35);
}

.covr-report-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.1);
  color: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
  margin-bottom: 0.75rem;
}

.covr-report-card-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.covr-chart-panel {
  padding: 1rem 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 12px;
}

.covr-chart-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.covr-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 168px;
  padding-top: 0.5rem;
}

.covr-chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.covr-chart-bar {
  width: 100%;
  max-width: 2.5rem;
  border-radius: 6px 6px 2px 2px;
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.75);
}

.covr-chart-bar--muted {
  background: hsl(214 32% 88%);
}

.covr-chart-bar-label {
  font-size: 10px;
  color: hsl(215 16% 47%);
  font-variant-numeric: tabular-nums;
}

.covr-chart-line-wrap {
  height: 168px;
  padding: 0.25rem 0;
}

.covr-chart-line-wrap svg {
  width: 100%;
  height: 100%;
}

.covr-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-size: 11px;
  color: hsl(215 16% 47%);
}

.covr-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.covr-chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
}

.covr-chart-donut {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.covr-chart-donut-ring {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.covr-chart-donut-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}

.covr-chart-donut-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 13px;
  border-bottom: 1px solid hsl(214 32% 94%);
}

.covr-chart-donut-list li:last-child {
  border-bottom: 0;
}

.covr-report-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.covr-report-filter select,
.covr-report-filter input {
  font-size: 13px;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  background: #fff;
}
