.conditional-section {
  margin-top: 8px;
  padding: 16px;
  border: 1px solid #d8e5ed;
  border-radius: 12px;
  background: #f8fbfd;
}

.conditional-section h4 {
  margin-top: 0;
}

.section-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.legacy-note {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f8fb;
  color: var(--muted);
  font-size: 13px;
}

.tracking-list {
  display: grid;
  gap: 14px;
}

.tracking-card {
  padding: 14px;
  border: 1px solid #d8e5ed;
  border-radius: 10px;
  background: #fff;
}

.tracking-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tracking-card-title strong {
  color: var(--navy);
  font-size: 14px;
}

.tracking-delivered {
  color: #137a4d;
  font-size: 12px;
  font-weight: 700;
}

.add-tracking-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px dashed #82a8be;
  border-radius: 10px;
  background: #f4f9fc;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.add-tracking-btn:hover {
  border-color: var(--navy);
  background: #eaf4f9;
}

.action-group + .action-group {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e1eaf0;
}

.action-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.action-group-title h4 {
  margin: 0;
  font-size: 15px;
}

.action-group-title span {
  color: var(--muted);
  font-size: 12px;
}

.overdue-item.inspection-overdue,
.recent-item.inspection-overdue,
tr.inspection-overdue {
  background: #fff1f1;
  border-color: #d83a3a;
}

.overdue-item.inspection-overdue b,
.inspection-age-note {
  color: #b42318;
}

.claim-list-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 15px;
  padding: 5px;
  border: 1px solid #d8e5ed;
  border-radius: 12px;
  background: #eaf1f5;
}

.claim-list-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.claim-list-tab span {
  min-width: 25px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(11,47,75,.1);
  color: var(--navy);
  font-size: 12px;
  text-align: center;
}

.claim-list-tab.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(17,45,68,.1);
}

.claim-list-tab.active span {
  background: var(--navy);
  color: #fff;
}

@media(max-width:640px) {
  .claim-list-tabs {
    display: flex;
    width: 100%;
  }

  .claim-list-tab {
    flex: 1;
    justify-content: center;
    padding-inline: 10px;
  }
}

.inspection-age-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

.ownership-panel {
  max-width: 1050px;
  margin: 18px auto 0;
}

.ownership-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ownership-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
}

.ownership-details div {
  display: grid;
  gap: 4px;
}

.ownership-details span {
  color: var(--muted);
  font-size: 12px;
}

.ownership-details strong {
  color: var(--navy);
  font-size: 14px;
}

.assignment-editor {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.assignment-actions {
  display: flex;
  gap: 8px;
}

@media(max-width:640px) {
  .ownership-layout,
  .assignment-editor {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ownership-layout .btn,
  .assignment-actions {
    width: 100%;
  }

  .assignment-actions .btn {
    flex: 1;
  }
}
