:root{font:16px/1.55 system-ui,sans-serif;color:#17372e;background:#f4f6f3}*{box-sizing:border-box}body{margin:0}main{max-width:960px;margin:2.5rem auto;padding:2rem;background:white;border:1px solid #d7dfda;border-radius:8px}header,.actions,.range{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}header{justify-content:space-between;border-bottom:1px solid #d7dfda;padding-bottom:1rem}h1{font-size:1.65rem}label{display:inline-grid;gap:.25rem;margin:.5rem .5rem .8rem 0}input,select,button{font:inherit;border:1px solid #a9b9af;border-radius:4px;padding:.45rem .65rem;max-width:100%}button{background:#205640;color:white;cursor:pointer}.secondary{background:#fff;color:#205640}form{margin:.45rem 0}a{color:#185439}.login{max-width:360px;margin:2rem auto}.login label{display:grid}.range label{flex:1}table{width:100%;border-collapse:collapse}td,th{border:1px solid #a9b9af;padding:.4rem;text-align:left}th{background:#edf3ed}@media(max-width:620px){main{margin:.5rem;padding:.75rem}td,th{padding:.2rem;font-size:.84rem}}@media print{.actions{display:none}main,body{border:0;margin:0;padding:0;background:white;color:black}tr{break-inside:avoid}thead{display:table-header-group}td,th{overflow-wrap:anywhere}}

progress { width: 100%; height: 10px; accent-color: #205640; }
@media print { progress { display: none; } }

#print-guard { display: none; }
main:has(#custom-paper) { max-width: none; width: fit-content; max-width: 100%; }
#custom-paper { overflow: auto; }
@media print {
  main:has(#sheet-data) { width: auto; max-width: none; overflow: visible; }
  #custom-paper { overflow: visible; }
  body:not([data-print-approved]) :is(#custom-paper, #legacy-paper) { display: none; }
  body:not([data-print-approved]) #print-guard { display: block; }
  #print-status, #print-progress { display: none; }
}
