*{box-sizing:border-box}body{margin:0;background:#eef3ef;color:#15232b;font:14px/1.4 Arial,Helvetica,sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.appbar{background:#111b1f;color:#fff;display:flex;align-items:center;gap:18px;padding:10px max(18px,calc((100vw - 1100px)/2));min-height:64px}.appbar img{width:74px;height:41px;object-fit:contain}.appbar a{margin-left:auto;text-decoration:none;border:1px solid #62736b;padding:7px 12px;border-radius:9px}main{max-width:1120px;margin:22px auto 60px;padding:0 14px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:10px}.toolbar h1{font-size:23px;margin:0 0 2px}.toolbar p{margin:0;color:#597067}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions button,.add-page,.saved-record button{border:1px solid #abb9ae;border-radius:8px;background:#fff;padding:10px 13px;font-weight:700}.actions #saveForm,.actions #printForm{background:#438934;border-color:#438934;color:#fff}.actions #printForm{background:#17252a;border-color:#17252a}.status{min-height:22px;color:#356b25;font-weight:600;margin:6px 0}.status.error{color:#b32727}.records{background:#fff;border:1px solid #d4dfd4;border-radius:10px;padding:10px 14px;margin-bottom:22px}.records summary{cursor:pointer;font-weight:700}.saved-record{display:flex;align-items:center;gap:8px;border-top:1px solid #e5ece5;padding:8px 0}.saved-record span{flex:1;overflow-wrap:anywhere}.saved-record .danger{color:#a22}#commissionForm{display:flex;align-items:center;flex-direction:column;gap:22px}.sheet{background:white;width:210mm;min-height:297mm;padding:15mm 16mm 11mm;box-shadow:0 3px 22px #152b2622;color:#212526;font-size:8.4pt;display:flex;flex-direction:column}.sheet h2,.sheet h3,.sheet p{margin:0}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10mm;border-bottom:1px solid #29302e;padding-bottom:4mm;margin-bottom:3mm}.sheet-head img{width:43mm;height:16mm;object-fit:contain;object-position:left center}.sheet-head div{text-align:right}.sheet-head small{font-size:8pt;letter-spacing:1px;color:#528c36}.sheet-head h2{font-size:13pt}.sheet-head span{font-size:9pt}.checkline{display:flex;justify-content:flex-end;gap:8mm;background:#eef2ee;border:1px solid #999;padding:1.4mm 3mm;margin-bottom:4mm;font-size:8pt}.checkline label{display:flex;align-items:center;gap:2mm}.checkline input{width:3.2mm;height:3.2mm;accent-color:#4e9436}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:7mm;margin-bottom:4mm}.stack{border:1px solid #8a8e8b}.fieldrow{min-height:9mm;display:grid;grid-template-columns:36% 64%;border-bottom:1px solid #a4aaa6;align-items:stretch}.stack .fieldrow:last-child{border-bottom:0}.fieldrow>*{padding:2mm}.fieldrow>*:first-child{border-right:1px solid #a4aaa6;display:flex;align-items:center}.fieldrow input,.fieldrow textarea{min-width:0;width:100%;height:100%;border:0;background:transparent;outline-offset:-2px;resize:none}.fieldrow.tall{min-height:34mm}.fieldrow.medium{min-height:22mm}.refs .fieldrow{min-height:11mm}.second-row .fieldrow.tall{min-height:34mm}.declaration{border:1px solid #888}.declaration h3{text-align:center;background:#eef2ee;border-bottom:1px solid #888;font-size:9pt;padding:2mm}.declaration p{padding:2mm 2.5mm;line-height:1.37;text-align:justify}.sign-grid{display:grid;grid-template-columns:1fr 2fr;border:1px solid #8a8e8b;border-top:0;min-height:53mm}.sign-block{padding:2mm;min-width:0}.sign-block:first-child{border-right:1px solid #8a8e8b}.sign-block label{display:block}.sign-block canvas{width:100%;height:17mm;border-bottom:1px dotted #777;touch-action:none;cursor:crosshair;background:#fff}.sign-block .fieldrow{grid-template-columns:26% 74%;min-height:8mm}.sign-block small{font-size:7pt}.sign-block>textarea{width:100%;height:30mm;border:1px solid #cad1cb;resize:none;margin-top:1mm}.sign-block .fieldrow span{display:flex!important;gap:1mm;align-items:center}.sign-block .fieldrow span input{width:24mm;height:6mm;border-bottom:1px solid #8a8e8b}.small{font-size:8pt;padding:1px 5px;background:none;border:1px solid #aaa}.sheet footer{margin-top:auto;padding-top:3mm;text-align:right;border-top:1px solid #d1d8d3;font-size:7pt;color:#606963}.test-details{border:2px solid #454b48;display:grid;grid-template-columns:72% 28%;grid-template-rows:21mm 16mm;margin-bottom:4mm}.test-details>label,.test-details>div{border-right:1px solid #8b938c;border-bottom:1px solid #8b938c;padding:1.5mm 2mm;min-width:0}.test-details>div{border-right:0;padding:0}.test-details>label:nth-child(3),.test-details>div:nth-child(4){border-bottom:0}.test-details label{font-size:7.6pt}.test-details>div label{display:flex;align-items:center;border-bottom:1px solid #a0a9a2;height:50%;padding:0 1.5mm;gap:1mm}.test-details>div label:last-child{border-bottom:0}.test-details textarea{display:block;resize:none;border:0;width:100%;height:70%;font-size:8pt}.test-details input{border:0;min-width:0;width:100%;height:100%;font-size:8pt}.grid-scroll{width:100%;overflow-x:auto}.test-grid{width:100%;border-collapse:collapse;table-layout:fixed;border:2px solid #353d38;font-size:7.2pt}.test-grid col.category{width:20%}.test-grid col.parameter{width:24%}.test-grid col.reading{width:9.333%}.test-grid tr{height:6.25mm}.test-grid tr.group-start{border-top:2px solid #363b38}.test-grid th,.test-grid td{border:1px solid #858b86;padding:0 1mm;text-align:left;font-weight:normal}.test-grid th.group{vertical-align:middle}.test-grid th.metric{vertical-align:middle}.test-grid td{padding:0}.test-grid input{display:block;width:100%;height:5.9mm;border:0;text-align:center;background:transparent;font-size:7.1pt;min-width:0}.test-grid input:focus,.fieldrow input:focus,.fieldrow textarea:focus,.test-details input:focus,.test-details textarea:focus{outline:2px solid #65a63d;outline-offset:-2px}.test-grid input::placeholder{color:#5a5e5a;opacity:1}.comments-label{display:block;border:2px solid #434a44;margin-top:4mm;padding:1.5mm 2mm;font-size:8pt}.comments-label textarea{display:block;border:0;width:100%;height:12mm;resize:none}.remove-page{align-self:flex-end;margin-top:3mm;border:0;background:none;color:#a22}.add-page{margin:0 auto 35px;border:1px dashed #558b47;color:#356b25}
@media(max-width:800px){.toolbar{display:block}.actions{margin-top:12px}.sheet{width:100%;min-height:unset;padding:18px 12px}.sheet-head{gap:10px}.sheet-head img{width:110px}.sheet-head h2{font-size:12pt}.two-col{grid-template-columns:1fr;gap:10px}.test-sheet .test-details{grid-template-columns:60% 40%}.test-grid{min-width:740px}.saved-record{flex-wrap:wrap}.saved-record span{flex-basis:100%}.sign-grid{grid-template-columns:1fr 1fr}}
@media print{@page{size:A4;margin:0}html,body{width:210mm;margin:0;background:white;color:#111;-webkit-print-color-adjust:exact;print-color-adjust:exact}.appbar,.toolbar,.status,.records,.screen-only{display:none!important}main{width:210mm;padding:0;margin:0;max-width:none}#commissionForm{display:block}.sheet{width:210mm;height:297mm;min-height:297mm;max-height:297mm;box-shadow:none;margin:0;padding:15mm 16mm 11mm;page-break-after:always;break-after:page;overflow:hidden}.sheet:last-child{page-break-after:auto;break-after:auto}.grid-scroll{width:100%;min-width:0;overflow:visible}.test-grid{width:100%;min-width:0;max-width:100%}.test-grid input::placeholder{color:#555}.sheet input,.sheet textarea{outline:0!important}.sheet textarea{overflow:hidden}.sheet input[type="date"]::-webkit-calendar-picker-indicator{display:none}}
