/* relations.css v1.0: Client > Demographics > Relations (relations.js). Uses record-screen.css for the list + detail layout. */
.relations-workspace .rel-group{border:1px solid var(--t-line,rgba(127,127,127,.25));border-radius:8px;padding:10px 14px 14px;margin:0 0 14px}
.relations-workspace .rel-group legend{padding:0 6px;font-weight:600}
.relations-workspace .rel-group textarea{width:100%;resize:vertical}
.relations-workspace .rel-flags{display:flex;flex-wrap:wrap;gap:6px 18px}
.relations-workspace .rel-flags .rs-check{margin-top:0}
.relations-workspace .rel-head-actions{display:flex;align-items:center;gap:8px}
.relations-workspace .rel-linkbar{display:flex;gap:8px;max-width:560px}
.relations-workspace .rel-linkbar input{flex:1}
.relations-workspace .rel-found{display:flex;flex-direction:column;gap:4px;margin-top:8px;max-height:220px;overflow:auto}
.relations-workspace .rel-found button{text-align:left}
.relations-workspace .rel-found small{color:var(--t-muted)}
.relations-workspace .rel-subhead{display:flex;align-items:center;justify-content:space-between;margin:14px 0 6px}
.relations-workspace .rel-subhead h3{margin:0;font-size:14px}
.relations-workspace .rel-subtable td{vertical-align:middle}
.relations-workspace .rel-subact{text-align:right;white-space:nowrap}
.relations-workspace .rel-subact button{margin-left:6px}
.relations-workspace .rel-subact button.danger{color:var(--t-bad);border-color:var(--t-bad-border)}
.relations-workspace .rel-subform{border:1px dashed var(--t-line,rgba(127,127,127,.35));border-radius:8px;padding:10px 12px;margin:6px 0}
.relations-workspace .rel-subform .buttonrow{display:flex;gap:8px;align-items:center}
.relations-workspace .rel-subform .buttonrow .spacer{flex:1}
.relations-workspace #relError:empty,.relations-workspace #subError:empty{display:none}
@media(max-width:760px){.relations-workspace .rel-linkbar{flex-direction:column}}
