#personRelations { width: min(46rem, calc(100% - 2rem)); max-height: 85dvh; overflow: auto; padding: 1.25rem; }
#personRelations .dialog-heading { align-items: center; margin-bottom: 1rem; }
#statementAccessDialog label {display:flex; align-items:center; gap:.6rem; margin-block:.5rem;}
#statementAccessDialog input[type=checkbox] {width:1.15rem; height:1.15rem; accent-color:#087650;}
#statementAccessDialog fieldset {border:1px solid #d4e2da; border-radius:.7rem; padding:.7rem 1rem;}
.work-block {background:white;border:1px solid var(--line);border-radius:1rem;padding:1rem;margin-block:1rem;}
.work-block h2,.work-block h3 {margin:.25rem 0 .7rem;}
.billing-queue {list-style:none;padding:0;margin:0;}
.billing-queue li,.billing-review-row > summary,.work-form {display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;padding:.6rem 0;}
.billing-queue li,.billing-review-row > summary {display:grid;grid-template-columns:minmax(0,1fr) auto;border-top:1px solid var(--line);}
.billing-queue li > div:last-of-type,.billing-review-row > summary > strong {text-align:right;}
.billing-queue a,.billing-review-name,.work-block details a {color:#076047;font-weight:650;}
.billing-queue small {color:#4d6359;overflow-wrap:anywhere;}
@media(max-width:600px){.billing-queue li,.billing-review-row > summary {grid-template-columns:1fr;gap:.25rem}.billing-queue li > div:last-of-type,.billing-review-row > summary > strong {text-align:left}}
.billing-queue small,.billing-queue strong {display:block;}
.work-form label {display:grid;gap:.25rem;}
.work-block details {padding:.45rem 0;}
.work-block .billing-review-row {padding:0;}
.billing-review-row > summary {cursor:pointer;list-style:none;overflow-wrap:anywhere;}
.billing-review-row > summary::-webkit-details-marker {display:none;}
.billing-review-name {text-decoration:underline;}
.billing-review-row > summary:focus-visible {outline:2px solid currentColor;outline-offset:-2px;}
.statement-filters, .statement-filters form {display:flex;align-items:flex-end;gap:.8rem;flex-wrap:wrap;}
.statement-filters [hidden] {display:none;}
[data-bill=content] section + section {margin-top:1.6rem;}
.statement-filters label {display:grid;gap:.35rem;}
.statement-filters :is(select,input) {font:inherit;padding:.55rem;border:1px solid #bed0c7;border-radius:.55rem;max-width:100%;}
[data-bill=content] .scroll {background:white;border:1px solid #d4e2da;border-radius:.75rem;}
[data-bill=content] {container-type:inline-size;min-width:0;}
[data-bill=content] :is(th,td) {white-space:normal;overflow-wrap:normal;word-break:normal;}
[data-bill=content] td {font-variant-numeric:tabular-nums;}
[data-bill=content] .cell-label {display:none;}
@container (max-width:38rem) {
  .statement-wide thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
  .statement-wide, .statement-wide tbody, .statement-wide tr {display:block;}
  .statement-wide tr + tr {border-top:1px solid var(--line);}
  [data-bill=content] .statement-wide td {display:grid;grid-template-columns:minmax(6.5rem,.85fr) minmax(0,1.4fr);align-items:baseline;gap:.65rem;padding:.3rem .7rem;border:0;}
  [data-bill=content] .statement-wide td:first-child {padding-top:.75rem;}
  [data-bill=content] .statement-wide td:last-child {padding-bottom:.75rem;}
  [data-bill=content] .statement-wide td > div {min-width:0;overflow-wrap:break-word;}
  [data-bill=content] .statement-wide .cell-label {display:block;font-weight:600;color:var(--muted);}
}
.portal-relations article, .portal-relations details { margin-block: 1rem; }
.portal-relations label { display: grid; gap: .35rem; font-weight: 600; }
.portal-relations select, [data-bill=month] { max-width: 100%; padding: .55rem; border: 1px solid #bed0c7; border-radius: .55rem; background: white; font: inherit; }
.portal-relations .edit { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; }
.portal-relations .split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem,100%),1fr)); gap: 1rem; }
.portal-relations .scroll, [data-view-panel=billing] .scroll { overflow-x: auto; }
.portal-relations input[type=checkbox] { width: 1.2rem; height: 1.2rem; accent-color: #087650; }
.portal-relations table, [data-view-panel=billing] table { width: 100%; border-collapse: collapse; }
.portal-relations :is(td,th), [data-view-panel=billing] :is(td,th) { padding: .65rem; text-align: left; border-bottom: 1px solid #dce6e0; }
[data-bill=content] article, [data-bill=excluded] .excluded { margin-block: 1rem; padding: 1.25rem; border: 1px solid #d4e2da; border-radius: 1rem; background: white; }
[data-bill=content] .sheet { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
[data-bill=content] .totals { text-align: right; font-variant-numeric: tabular-nums; }
[data-bill=content] .totals strong { display: block; }
[data-bill=excluded] details { margin-block: .65rem; }
[data-bill=content] .sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }

