:root{color-scheme:light;font:100%/1.5 system-ui,sans-serif;color:#281f25;background:#fbf6f9}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
main{width:min(100% - 2rem,70rem);margin:0 auto;padding:1rem 0 2rem}
header,.actions{display:flex;gap:.55rem;flex-wrap:wrap}
header{justify-content:space-between;margin-bottom:1.5rem}
button,.button{font:inherit;font-weight:650;border:1px solid #e6d9df;border-radius:10px;padding:.55rem .8rem;background:white;color:inherit;text-decoration:none;cursor:pointer}
button:disabled{opacity:.55;cursor:default}
.primary{background:#76546d;color:white;border-color:#76546d}
h1,p{margin:0}
h1{font-size:clamp(1.8rem,5vw,2.7rem);line-height:1.2}
.brand{font-weight:700;color:#76546d}
.summary{margin:.4rem 0}
#status,.printed-at{font-size:.87rem;color:#59535a;margin:.5rem 0}
.table-wrap{overflow-x:auto;border:1px solid #e6d9df;border-radius:12px;background:white}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;border-bottom:1px solid #e6d9df;padding:.6rem .75rem;overflow-wrap:anywhere}
th{background:#f5eaf1;font-size:.88rem}
td:nth-last-child(-n+2),th:nth-last-child(-n+2){text-align:right;font-variant-numeric:tabular-nums}
td:last-child{font-weight:700}
.report-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin:.9rem 0}
.report-controls label{font-weight:650}
.report-controls input{flex:1 1 15rem;min-width:0;font:inherit;padding:.55rem .7rem;border:1px solid #e6d9df;border-radius:8px}
.selection-count{font-size:.88rem}
td input[type=checkbox]{width:1.1rem;height:1.1rem;accent-color:#76546d}
.print-only{display:none}
@media print{
  @page{size:A4;margin:12mm}
  :root{background:white;font-size:9pt}
  main{width:auto;padding:0}
  header,#status,#summary,.report-controls,.table-wrap{display:none!important}
  .print-only{display:block}
  .table-wrap{overflow:visible;border:0}
  thead{display:table-header-group}
  tr{break-inside:avoid}
}
