/* Match the existing indicator chart: 1px solid #2d2d39, 15px corners.
   Scope this to clinical screen cards; controls and document designs keep
   their own interaction and print styles. */
.gyn-workspace {
  --gyn-card-border: #2d2d39;
  --gyn-card-radius: 15px;
}
.gyn-workspace .gyn-unified :is(
  .gyn-panel,
  .gyn-note,
  .gyn-record,
  .gyn-summary-panel,
  .gyn-summary-documents,
  .gyn-eval__patient-card,
  .gyn-eval__summary-copy,
  .gyn-eval__priority,
  .gyn-eval__exploration,
  .gyn-eval__detail,
  .gyn-eval__antecedents,
  .gyn-followup__card,
  .gtr-card,
  .gtr-plan,
  .gtr-medication,
  .gtr-document,
  .gtr-other-plans,
  .gtr-management,
  .gyn-tools,
  .gyn-care,
  .gyn-care__record,
  .gyn-care__record.is-overdue,
  .gyn-photo-tools,
  .gync-panel,
  .gync-row,
  .gync-templates,
  .gyn-archive-panel,
  .gyn-coordination-referral,
  .gyn-coordination-referral.is-pending,
  .gyn-coordination-file,
  .gyn-coordination-file.is-selected,
  .gyn-coordination-drop,
  .gyn-coordination-detail__cover,
  .gyn-coordination-linked
),
.gyn-workspace .gyn-treatment .gyn-labs > button,
.gyn-workspace .gync .gync-personal-previews > button {
  border: 1px solid var(--gyn-card-border);
  border-radius: var(--gyn-card-radius);
}

/* Remove the extra canvas/inset so treatment shares the other sections' edges. */
.gyn-workspace .gyn-treatment {
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.gyn-workspace .gyn-treatment :is(.gyn-panel, .gyn-note, .gyn-record, .gyn-labs > button) {
  background: #101113;
  background-image: none;
}

@media (max-width: 760px) {
  .gyn-workspace .gyn-treatment .gyn-record {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }
  .gyn-workspace .gyn-treatment .gyn-record > .gyn-icon {
    grid-column: 1;
    grid-row: 1;
  }
  .gyn-workspace .gyn-treatment .gyn-record > div:not(.gyn-actions) {
    grid-column: 2;
    grid-row: 1;
  }
  .gyn-workspace .gyn-treatment .gyn-record > .gyn-badge {
    grid-column: 2;
    justify-self: start;
  }
  .gyn-workspace .gyn-treatment .gyn-record > .gyn-actions {
    grid-column: 2;
    margin-left: 0;
    justify-content: flex-end;
  }
}

@media (forced-colors: active) {
  .gyn-workspace { --gyn-card-border: CanvasText; }
}
