/* Minside list cards */
.covr-minside-list-card {
  display: block;
  padding: 1rem 1.125rem;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.covr-minside-list-card:hover {
  border-color: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.3);
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.12);
}

.covr-minside-list-card + .covr-minside-list-card {
  margin-top: 0.75rem;
}

.covr-minside-list-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.covr-minside-list-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .covr-minside-list-card-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.covr-minside-list-card-meta dt {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(215 16% 47%);
  margin-bottom: 0.15rem;
}

.covr-minside-list-card-meta dd {
  font-weight: 500;
  margin: 0;
}

.covr-minside-status {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.covr-minside-status.is-active {
  background: hsl(142 76% 96%);
  color: hsl(142 71% 35%);
}

.covr-minside-status.is-pending {
  background: hsl(48 96% 89%);
  color: hsl(32 95% 35%);
}

.covr-minside-status.is-paid {
  background: hsl(220 14% 96%);
  color: hsl(215 16% 40%);
}

.covr-minside-status.is-done {
  background: hsl(142 76% 96%);
  color: hsl(142 71% 35%);
}

.covr-minside-status.is-open {
  background: hsl(var(--entity-bg-h) var(--entity-bg-s) var(--entity-bg-l));
  color: hsl(var(--entity-h) var(--entity-s) calc(var(--entity-l) - 8%));
}

.covr-minside-status.is-accepted {
  background: hsl(142 76% 96%);
  color: hsl(142 71% 35%);
}

.covr-minside-status.is-expired {
  background: hsl(220 14% 96%);
  color: hsl(215 16% 40%);
}

.covr-minside-status.is-cancelled {
  background: hsl(0 72% 97%);
  color: hsl(0 72% 42%);
}

.covr-police-cancel-section h2 {
  margin-bottom: 0.35rem;
}

.covr-police-cancel-intro {
  font-size: 0.8125rem;
  color: hsl(215 16% 47%);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.covr-police-cancel-form {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid hsl(214 32% 91%);
}

.covr-police-cancel-form[hidden] {
  display: none;
}

.covr-police-payment-change {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid hsl(214 32% 91%);
}

.covr-payment-receipt {
  border: 1px solid hsl(214 32% 91%);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

#policePaymentSection.is-disabled .covr-police-payment-change {
  opacity: 0.55;
  pointer-events: none;
}

.covr-police-cancel-field {
  margin-bottom: 0.875rem;
}

.covr-police-cancel-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(215 16% 47%);
  margin-bottom: 0.35rem;
}

.covr-police-cancel-field select {
  width: 100%;
  max-width: 24rem;
  font-size: 0.8125rem;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: #fff;
}

.covr-police-cancel-confirm-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.covr-police-cancel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.covr-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  border: 1px solid hsl(0 72% 51% / 0.35);
  background: hsl(0 72% 51%);
  color: #fff;
  cursor: pointer;
}

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

.covr-btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.covr-police-cancel-notice {
  font-size: 0.8125rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: hsl(0 72% 97%);
  border: 1px solid hsl(0 72% 51% / 0.2);
  color: hsl(0 72% 35%);
  line-height: 1.5;
}

.covr-police-cancel-notice[hidden],
.covr-police-cancel-section.is-done {
  display: none;
}

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

.covr-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.covr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.covr-modal-panel {
  position: relative;
  width: min(100%, 42rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid hsl(214 32% 91%);
  box-shadow: 0 24px 64px -32px rgba(15, 23, 42, 0.5);
}

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

.covr-modal-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.covr-modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid hsl(214 32% 91%);
  background: #fff;
  color: hsl(215 16% 40%);
  font-size: 1.25rem;
  line-height: 1;
}

.covr-modal-content {
  padding: 1rem 1.125rem 1.125rem;
}

.covr-modal-columns {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .covr-modal-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.covr-modal-columns h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.covr-modal-columns ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8125rem;
  color: hsl(215 16% 30%);
}

.covr-modal-columns li + li {
  margin-top: 0.3rem;
}

.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-tilbud-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .covr-tilbud-layout {
    grid-template-columns: 1fr 18rem;
    align-items: start;
  }
}

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

@media (min-width: 1024px) {
  .covr-tilbud-summary {
    position: sticky;
    top: 4.5rem;
  }
}

.covr-tilbud-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(214 32% 91%);
}

.covr-tilbud-summary-row:last-of-type {
  border-bottom: 0;
}

.covr-tilbud-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid hsl(214 32% 91%);
}

.covr-tilbud-notice {
  font-size: 0.8125rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  margin-top: 0.75rem;
}

.covr-tilbud-notice.is-success {
  background: hsl(142 76% 96%);
  border: 1px solid hsl(142 71% 35% / 0.2);
  color: hsl(142 71% 30%);
}

.covr-tilbud-notice.is-info {
  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.15);
  color: hsl(var(--entity-h) var(--entity-s) calc(var(--entity-l) - 8%));
}

.covr-tilbud-notice[hidden] {
  display: none;
}

.covr-tilbud-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.covr-tilbud-header-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.covr-tilbud-accept-box {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: 0;
}

.covr-tilbud-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(214 32% 91%);
}

.covr-tilbud-status-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
}

.covr-tilbud-status-label > span:first-child {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(215 16% 47%);
}

.covr-tilbud-status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 12rem;
}

.covr-tilbud-status-buttons .covr-btn {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
}

.covr-tilbud-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .covr-tilbud-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.covr-tilbud-form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(215 16% 47%);
  margin-bottom: 0.35rem;
}

.covr-tilbud-form-field input,
.covr-tilbud-form-field select {
  width: 100%;
  font-size: 0.8125rem;
  border: 1px solid hsl(214 32% 91%);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  outline: none;
}

.covr-tilbud-form-field input:focus,
.covr-tilbud-form-field select:focus {
  border-color: hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.45);
  box-shadow: 0 0 0 3px hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.12);
}

.covr-tilbud-form-field.is-full {
  grid-column: 1 / -1;
}

.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: 173;
  --entity-s: 58%;
  --entity-l: 39%;
  --entity-bg-h: 173;
  --entity-bg-s: 45%;
  --entity-bg-l: 96%;
}

.covr-minside-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

.covr-minside-detail-section + .covr-minside-detail-section {
  margin-top: 0.75rem;
}

.covr-minside-detail-section + .covr-modal + .covr-minside-detail-section {
  margin-top: 0.75rem;
}

.covr-minside-detail-section h2 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.covr-minside-detail-section > h2 + .text-sm.text-muted-foreground {
  margin-top: 0;
  margin-bottom: 0;
}

.covr-minside-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem 1.5rem;
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .covr-minside-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.covr-minside-detail-grid dt {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(215 16% 47%);
  margin-bottom: 0.15rem;
}

.covr-minside-detail-grid dd {
  font-weight: 500;
  margin: 0;
}

.covr-minside-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0.8125rem;
}

.covr-minside-timeline-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid hsl(214 32% 91%);
}

.covr-minside-timeline-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.covr-minside-timeline-date {
  font-size: 0.75rem;
  color: hsl(215 16% 47%);
  font-variant-numeric: tabular-nums;
}

.covr-minside-timeline-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.covr-minside-timeline-item p {
  color: hsl(215 16% 47%);
  margin: 0;
  font-size: 0.8125rem;
}

.covr-minside-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(214 32% 91%);
}

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

.covr-skade-progress-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.8125rem;
}

.covr-skade-progress-stat dt {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(215 16% 47%);
  margin-bottom: 0.15rem;
}

.covr-skade-progress-stat dd {
  font-weight: 600;
  margin: 0;
}

.covr-skade-progress-stat dd.is-muted {
  font-weight: 500;
  color: hsl(215 16% 47%);
}

.covr-skade-progress-track {
  height: 6px;
  border-radius: 999px;
  background: hsl(220 14% 92%);
  overflow: hidden;
  margin-bottom: 0.875rem;
}

.covr-skade-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
  transition: width 0.35s ease;
}

.covr-skade-progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  color: hsl(215 16% 47%);
  text-align: center;
}

@media (max-width: 639px) {
  .covr-skade-progress-steps {
    font-size: 0.625rem;
  }
}

.covr-skade-progress-steps li {
  position: relative;
  padding-top: 0.625rem;
}

.covr-skade-progress-steps li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: hsl(220 14% 88%);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px hsl(220 14% 88%);
}

.covr-skade-progress-steps li.is-done {
  color: hsl(222 47% 11%);
}

.covr-skade-progress-steps li.is-done::before {
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
  box-shadow: 0 0 0 1px hsl(var(--entity-h) var(--entity-s) var(--entity-l));
}

.covr-skade-progress-steps li.is-current {
  color: hsl(var(--entity-h) var(--entity-s) calc(var(--entity-l) - 8%));
  font-weight: 600;
}

.covr-skade-progress-steps li.is-current::before {
  background: #fff;
  box-shadow: 0 0 0 2px hsl(var(--entity-h) var(--entity-s) var(--entity-l));
}

.covr-skade-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.covr-skade-follow h2 {
  margin-bottom: 0.25rem;
}

.covr-skade-follow > div > p {
  font-size: 0.8125rem;
  color: hsl(215 16% 47%);
  margin: 0;
}

.covr-skade-follow-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  user-select: none;
}

.covr-skade-follow-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.covr-skade-follow-switch {
  width: 2.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: hsl(220 14% 86%);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.covr-skade-follow-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s;
}

.covr-skade-follow-toggle input:checked + .covr-skade-follow-switch {
  background: hsl(var(--entity-h) var(--entity-s) var(--entity-l));
}

.covr-skade-follow-toggle input:checked + .covr-skade-follow-switch::after {
  transform: translateX(1rem);
}

.covr-skade-follow-toggle input:focus-visible + .covr-skade-follow-switch {
  outline: 2px solid hsl(var(--entity-h) var(--entity-s) var(--entity-l) / 0.45);
  outline-offset: 2px;
}

.covr-skade-follow-status {
  margin: 0.75rem 0 0;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  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.15);
  color: hsl(var(--entity-h) var(--entity-s) calc(var(--entity-l) - 8%));
}

.covr-skade-follow-status[hidden] {
  display: none;
}

.covr-overview-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .covr-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .covr-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.covr-overview-card {
  border: 1px solid hsl(214 32% 91%);
  border-radius: 10px;
  padding: 0.75rem;
  background: hsl(0 0% 100%);
}

.covr-overview-card dt {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(215 16% 47%);
  margin-bottom: 0.2rem;
}

.covr-overview-card dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

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

.covr-disclosure > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--entity-h) var(--entity-s) calc(var(--entity-l) - 8%));
}

.covr-disclosure > summary::-webkit-details-marker {
  display: none;
}

.covr-disclosure > summary::before {
  content: "▸";
  font-size: 0.75rem;
  transform: translateY(-1px);
  transition: transform 0.15s ease;
}

.covr-disclosure[open] > summary::before {
  transform: rotate(90deg);
}

.covr-disclosure-content {
  margin-top: 0.75rem;
}

.covr-disclosure-content .covr-skade-progress-stats {
  margin-bottom: 0.875rem;
}

.covr-disclosure-content .covr-skade-follow > div > p {
  font-size: 0.8125rem;
  color: hsl(215 16% 47%);
  margin: 0;
}
