main {max-width:1200px;padding-top:clamp(1rem,4vw,3rem)}
.heading,#filters,#paging,.actions {display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.heading {justify-content:space-between}
.heading h1 {margin:.3em 0;font-size:clamp(2.4rem,6vw,3.8rem)}
#feedback:empty,#payment-feedback:empty {display:none}
#filters {align-items:end;margin:1.25rem 0}
#filters label {flex:1 1 200px;margin:0}
#filters label:first-child {flex:2 1 280px}
#filters button {margin:0}
#totals {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid #bacab6;padding:1rem 0;margin:1.5rem 0}
#totals div {padding:0 1rem;border-right:1px solid #cbd6c7}
#totals div:first-child {padding-left:0}
#totals div:last-child {border:0}
dt {font-size:.9rem;color:#44614d}
dd {margin:.2rem 0 0;overflow-wrap:anywhere}
#totals dd {font-size:clamp(1.15rem,3vw,1.8rem);font-weight:700}
.table-wrap {overflow-x:auto}
table {width:100%;border-collapse:collapse;background:#fffdf6;font-size:.96rem}
th,td {text-align:left;border-bottom:1px solid #d4dece;padding:.8rem .65rem;vertical-align:top}
th {background:#e7efdf;font-size:.9rem;font-weight:700}
td a {display:inline-block;padding:.15rem 0}
.money {white-space:nowrap;font-variant-numeric:tabular-nums}
.billing {display:block;font-size:.85rem;font-weight:650;color:#455d4f}
.billing[data-state="Outstanding"] {color:#865011}
.billing[data-state="Paid"] {color:#176524}
#paging {justify-content:center;margin:1rem}
button:disabled {opacity:.55;cursor:default}
.detail-grid {display:grid;grid-template-columns:1fr 1.25fr;gap:1rem}
.detail-grid .panel {margin-bottom:0}
#detail .panel h2 {margin-top:0}
#detail dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:0}
#detail dl .wide {grid-column:1/-1}
#detail dd {white-space:pre-line}
.actions {margin-top:1rem}
#issued {overflow-wrap:anywhere}
#issued input {max-width:48rem}
#cash-receipt {margin-top:1rem;border-top:1px solid #cbd6c7}
#cash-receipt summary {padding:.75rem 0;min-height:44px;width:fit-content;cursor:pointer;color:#197021;font-weight:700}
#cash-match {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.5rem 1rem;max-width:54rem}
#cash-match p,#cash-match button {grid-column:1/-1;justify-self:start;margin:.25rem 0}
#cash-match label {align-content:end;margin:0}
#cash-match input {min-width:0}
.count {font-weight:400;color:#526957}
@media (max-width:760px) {
 .detail-grid {grid-template-columns:1fr;gap:0}
 .table-wrap {overflow:visible}
 table,tbody {display:block;background:transparent}
 thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem .8rem;background:#fffdf6;border:1px solid #cbd2bd;border-radius:8px;padding:1rem;margin:.8rem 0}
 td {display:block;padding:0;border:0;overflow-wrap:anywhere}
 td::before {content:attr(data-label);display:block;font-size:.84rem;color:#48604c}
 td:first-child a {min-height:44px;display:inline-flex;align-items:center}
 td:first-child .billing {margin-top:-.35rem}
 #totals div {padding:0 .55rem}
}
@media (max-width:440px) {
 #filters button {width:100%}
 #detail dl {grid-template-columns:1fr}
}
