/* Clinical paper: decorative only; form controls remain native and editable. */
#section-content.record-sheet {
  --sheet-rule: #d8c9ec;
  position: relative;
  isolation: isolate;
  padding: 30px 34px 38px 54px;
  border: 1px solid #e8dfe7;
  border-radius: 15px 4px 15px 15px;
  background: linear-gradient(115deg, #fffdfa, #fffaf5);
  box-shadow: 0 5px 12px #3925400b, 0 6px 0 -2px #fffaf5, 0 7px 0 -2px #dfd4d5;
}
.record-sheet::before {
  content: "";
  position: absolute;
  inset: 25px auto 25px 27px;
  width: 2px;
  background: #c8ace5;
  pointer-events: none;
}
.record-sheet::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 27px;
  height: 27px;
  border-radius: 0 0 0 10px;
  background: linear-gradient(45deg, #eee3dc, #fffdf9 48%, var(--paper) 51%);
  filter: drop-shadow(-2px 3px 2px #39254012);
  pointer-events: none;
}
.record-sheet-heading { margin-bottom: 18px; }
.record-sheet-kicker { display:flex; align-items:center; gap:14px; color:var(--ink); font-size:.7rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.record-sheet-kicker span { flex-shrink:0; }
.record-sheet-kicker i { height:2px; flex:1; background:linear-gradient(to right,#bda1df 0%,#bda1df 92%,#f45d64 92%); }
.record-sheet-heading p { margin:16px 0 0; color:var(--ink-soft); font-size:.9rem; overflow-wrap:anywhere; }
#section-content.record-sheet > .card,
#section-content.record-sheet > .readonly-fields > .card {
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  margin-bottom:28px;
}
.record-sheet h2 { line-height:1.22; margin-top:0; padding-right:6px; }
.record-sheet .schema-fields > [data-field-wrapper] { margin-bottom:26px; }
.record-sheet .checkbox-group { gap:0; }
.record-sheet .checkbox-group .chk-option {
  border:0;
  border-bottom:1px solid var(--sheet-rule);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  margin:0;
  padding:12px 8px;
  min-height:48px;
  align-items:center;
}
.record-sheet .checkbox-group .chk-option:has(input:checked) { background:#eee5fa66; }
.record-sheet .checkbox-group .chk-option:hover { background:#eee5fa88; }
.record-sheet .chk-option input { accent-color:var(--purple); }
.record-sheet textarea:not(.document-editor) {
  line-height:30px;
  padding:10px 14px;
  min-height:120px;
  background-color:#fffdf9;
  background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 29px,var(--sheet-rule) 29px,var(--sheet-rule) 30px);
  background-origin:content-box;
  background-clip:content-box;
  border:1px solid #b9a6c9;
  border-radius:10px;
}
.record-sheet :is(input,select,textarea):focus-visible { outline:3px solid #7450cf; outline-offset:3px; }
@media (max-width:760px) {
  #section-content.record-sheet { padding:23px 16px 26px 27px; border-radius:12px 3px 12px 12px; }
  .record-sheet::before { left:12px; top:20px; bottom:20px; width:1px; }
  .record-sheet::after { width:20px; height:20px; }
  .record-sheet-kicker { font-size:.6rem; letter-spacing:.04em; gap:8px; padding-right:6px; }
  .record-sheet-kicker span { flex-shrink:1; }
  .record-sheet h2 { font-size:1.5rem; }
  .record-sheet .checkbox-group .chk-option { padding:12px 3px; }
  .record-sheet .chk-option span { min-width:0; overflow-wrap:anywhere; }
}
@media print {
  #section-content.record-sheet { box-shadow:none; background:white; border:0; }
  .record-sheet::after { display:none; }
}
