/* STRUCTURE and FUNCTIONAL block (works in default app with new-look switch off) */
.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-card,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-card,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-card,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-card,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-card,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-card {
  margin: 0.75rem 0;
  padding: 0.85rem;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-card h4,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-card h4,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-card h4,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-card h4,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-card h4,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-card p,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-card p,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-card p,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-card p,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-card p,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-card p {
  margin: 0.35rem 0;
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-filters,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-filters,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-filters,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-filters,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-filters,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-goldnote-meta,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-goldnote-meta,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-goldnote-meta,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-goldnote-meta,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-goldnote-meta,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-goldnote-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-goldnote-tag,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-goldnote-tag,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-goldnote-tag,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-goldnote-tag,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-goldnote-tag,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-goldnote-tag {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent);
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-delivery-date,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-delivery-date,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-delivery-date,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-delivery-date,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-delivery-date,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-delivery-date {
  font-weight: 600;
  color: var(--muted);
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-measurements-text,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-measurements-text,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-measurements-text,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-measurements-text,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-measurements-text,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-measurements-text {
  white-space: pre-wrap;
  padding: 0.6rem 0.75rem;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  border: 1px dashed var(--line);
  background: var(--field);
  color: var(--ink);
}

.dc-lerp-section[data-lerp-plugin="parcels"] a.dc-lerp-btn,
.dc-lerp-section[data-lerp-plugin="lowstock"] a.dc-lerp-btn,
.dc-lerp-section[data-lerp-plugin="goldnotes"] a.dc-lerp-btn,
.dc-lerp-section[data-lerp-plugin="measurements"] a.dc-lerp-btn,
.dc-lerp-section[data-lerp-plugin="appointments"] a.dc-lerp-btn,
.dc-lerp-section[data-lerp-plugin="repairs"] a.dc-lerp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  min-width: 48px;
  padding: 0.7rem 1rem;
  margin: 0.35rem 0.35rem 0.35rem 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 1px solid var(--profit);
  background: var(--card);
  color: var(--profit);
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-received,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-received,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-received,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-received,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-received,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-received {
  font-weight: 600;
  color: var(--profit);
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-status-badge,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-status-badge,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-status-badge,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-status-badge,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-status-badge,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card);
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-status-delivered,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-status-delivered,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-status-delivered,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-status-delivered,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-status-delivered,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-status-delivered,
.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-status-completed,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-status-completed,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-status-completed,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-status-completed,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-status-completed,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-status-completed {
  border-color: var(--profit);
  color: var(--profit);
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-status-returned,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-status-returned,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-status-returned,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-status-returned,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-status-returned,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-status-returned,
.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-status-cancelled,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-status-cancelled,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-status-cancelled,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-status-cancelled,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-status-cancelled,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-status-cancelled {
  border-color: var(--danger);
  color: var(--danger);
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-status-sent,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-status-sent,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-status-sent,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-status-sent,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-status-sent,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-status-sent,
.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-status-in_progress,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-status-in_progress,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-status-in_progress,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-status-in_progress,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-status-in_progress,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-status-in_progress,
.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-status-ready,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-status-ready,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-status-ready,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-status-ready,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-status-ready,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-status-ready {
  border-color: var(--accent);
  color: var(--accent);
}

.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-status-booked,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-status-booked,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-status-booked,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-status-booked,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-status-booked,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-status-booked,
.dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-status-received,
.dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-status-received,
.dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-status-received,
.dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-status-received,
.dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-status-received,
.dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-status-received {
  border-color: var(--muted);
  color: var(--muted);
}

/* LOOK block (scoped under html.ui-v2, decoration only: border-radius) */
html.ui-v2 .dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-card,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-card,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-card,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-card,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-card,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-card {
  border-radius: 16px;
}

html.ui-v2 .dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-goldnote-tag,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-goldnote-tag,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-goldnote-tag,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-goldnote-tag,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-goldnote-tag,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-goldnote-tag {
  border-radius: 8px;
}

html.ui-v2 .dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-measurements-text,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-measurements-text,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-measurements-text,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-measurements-text,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-measurements-text,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-measurements-text {
  border-radius: 14px;
}

html.ui-v2 .dc-lerp-section[data-lerp-plugin="parcels"] a.dc-lerp-btn,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="lowstock"] a.dc-lerp-btn,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="goldnotes"] a.dc-lerp-btn,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="measurements"] a.dc-lerp-btn,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="appointments"] a.dc-lerp-btn,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="repairs"] a.dc-lerp-btn {
  border-radius: 16px;
}

html.ui-v2 .dc-lerp-section[data-lerp-plugin="parcels"] .dc-lerp-status-badge,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="lowstock"] .dc-lerp-status-badge,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="goldnotes"] .dc-lerp-status-badge,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="measurements"] .dc-lerp-status-badge,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="appointments"] .dc-lerp-status-badge,
html.ui-v2 .dc-lerp-section[data-lerp-plugin="repairs"] .dc-lerp-status-badge {
  border-radius: 8px;
}
