/* Staff-only relation view. No public portal or grant rules are changed. */
.portal-matter-register.portal-relation-register{padding:0!important;min-width:0;color:#183b59}
.pr-heading{padding:20px 22px 12px}.pr-heading h2{margin:0;font-size:20px!important;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.pr-heading>p{margin:6px 0 0;font-size:14px;line-height:1.5}.pr-heading>.pr-status{display:inline-block;margin-top:8px}
.pr-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);gap:10px;padding:4px 22px 12px}
.pr-toolbar input,.pr-toolbar select{box-sizing:border-box;width:100%;min-width:0;max-width:none;margin:0;min-height:40px!important;font-size:14px!important;border-radius:6px}
.pr-count{padding:0 22px;margin:0 0 12px;font-size:13px;color:#62758a}
.pr-table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:14px;line-height:1.45}
.pr-table th{padding:10px 16px;text-align:left;font-size:13px!important;font-weight:600;color:#62758a;background:#f7f9fc;border-bottom:1px solid #dce5ee}
.pr-table td{padding:12px 16px;border-bottom:1px solid #e3eaf2;vertical-align:middle;overflow-wrap:anywhere;min-width:0}
.pr-table th:first-child{width:44%}.pr-table th:last-child:empty{width:120px}
.pr-table td>a,.pr-matter-links a{color:#234e78;text-decoration:none;font-weight:600;line-height:1.5}
.pr-table tbody tr:hover{background:#f6f9fc}.pr-table td>small{display:block;color:#62758a;font-size:13px;line-height:1.4;margin-top:3px}
.pr-table td>strong{font-size:14px;font-weight:600}
.pr-table button{white-space:nowrap;min-width:80px;min-height:36px!important;margin:0;padding:7px 12px;border-radius:6px;font-size:14px!important}
.pr-table a:focus-visible,.pr-tabs button:focus-visible{outline:2px solid #285e8b;outline-offset:3px}
.pr-status{font-size:13px;font-weight:500;color:#526b81;line-height:1.4}.pr-status-active{color:#234e78}.pr-status-pending{color:#785a20}
.pr-tabs{display:flex;gap:4px;border-bottom:1px solid #dce5ee;margin:0 22px}
.pr-tabs button{min-height:40px!important;margin:0;border:0;border-radius:5px 5px 0 0;padding:9px 14px;font-size:14px!important;background:transparent;color:#526b81}
.pr-tabs button[aria-pressed=true]{background:#edf3f9;color:#234e78;box-shadow:inset 0 -2px #285e8b;font-weight:600}
.pr-back{margin:16px 22px 0!important;min-height:36px!important;padding:7px 10px;font-size:14px!important}
.pr-detail{min-width:0}.pr-detail>p{margin:16px 22px;font-size:14px;line-height:1.5}.pr-matter-links{display:flex;flex-wrap:wrap;gap:4px 12px}.pr-matter-links a{font-size:13px;min-height:36px;display:flex;align-items:center;max-width:100%}
.pr-loading,.pr-empty{padding:20px 22px;font-size:14px;color:#62758a}
@media(max-width:1100px),(pointer:coarse){.pr-toolbar input,.pr-toolbar select,.pr-table button,.pr-tabs button,.pr-back,.pr-matter-links a{min-height:44px!important}}
@media(max-width:650px){.pr-heading{padding:16px}.pr-toolbar{grid-template-columns:minmax(0,1fr);padding:0 16px 12px}.pr-toolbar input,.pr-toolbar select{font-size:16px!important}.pr-count{padding:0 16px}.pr-tabs{margin:0 16px}.pr-back{margin-left:16px!important}.pr-table,.pr-table tbody{display:block;width:100%}.pr-table thead{display:none}.pr-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:14px 16px;border-top:1px solid #e3eaf2}.pr-table td{display:block;padding:0;border:0;grid-column:1;min-width:0}.pr-table td:last-child:has(button){grid-column:2;grid-row:1/4;align-self:center}.pr-table td[data-label]::before{content:attr(data-label) ' · ';color:#62758a;font-size:13px}.pr-table td:has(.pr-matter-links){grid-column:1/-1}.pr-detail>p{margin:16px}.pr-matter-links{gap:4px 10px}}
