/* Build 439 — treatment report safety link, ERA wording and compact enlarged signatures */

#report-form .guard-report-actions-grid-v438{
  grid-template-columns:minmax(0,1fr)!important;
}
#report-form .guard-report-actions-full-v438{
  grid-column:1/-1!important;
  width:100%!important;
}
#report-form .guard-report-actions-full-v438 textarea{
  width:100%!important;
  min-height:96px!important;
  box-sizing:border-box!important;
}

.guard-safety-link-v438{
  margin:4px 0!important;
  font-size:9px!important;
  line-height:1.45!important;
  overflow-wrap:anywhere;
}
.guard-safety-link-v438 a{
  color:var(--green2,#286454)!important;
  font-weight:700;
  text-decoration:underline;
}
.guard-rodent-era-text-v438{
  white-space:pre-line!important;
  line-height:1.55!important;
}

#report-form .signature-wrap{
  position:relative;
}
#report-form .signature-wrap.guard-signature-locked-v438 canvas{
  pointer-events:none!important;
  cursor:pointer!important;
  opacity:.28;
}
.guard-signature-launch-v438{
  position:absolute;
  inset:0;
  z-index:3;
  width:100%;
  min-height:54px;
  border:0;
  background:linear-gradient(180deg,rgba(247,250,246,.94),rgba(239,246,241,.97));
  color:var(--green,#12372d);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  padding:8px;
  border-radius:9px;
  cursor:pointer;
  text-align:center;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.guard-signature-launch-v438 strong{
  font-size:11px;
  line-height:1.2;
}
.guard-signature-launch-v438 span{
  color:var(--muted,#70776f);
  font-size:8px;
  line-height:1.2;
}
.guard-signature-done-v438{
  height:30px;
  min-width:72px;
  margin-left:4px;
  border:0;
  border-radius:8px;
  padding:0 14px;
  background:var(--green,#12372d);
  color:#fff;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.guard-signature-backdrop-v438{
  position:fixed;
  inset:0;
  z-index:390;
  background:rgba(19,37,30,.44);
  backdrop-filter:blur(2px);
}
body.guard-signature-open-v438{
  overflow:hidden!important;
  touch-action:none;
}
#report-form .job-collapse-half.guard-signature-expanded-v438{
  position:fixed!important;
  z-index:400!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  left:50%!important;
  transform:translate(-50%,-50%)!important;
  width:min(640px,calc(100vw - 32px))!important;
  max-width:640px!important;
  height:auto!important;
  max-height:calc(100dvh - 40px)!important;
  margin:0!important;
  padding:14px!important;
  border:1px solid var(--line,#e3e5de)!important;
  border-radius:16px!important;
  background:var(--card,#fffefa)!important;
  box-shadow:0 20px 60px rgba(16,39,30,.32)!important;
  display:flex!important;
  flex-direction:column!important;
  box-sizing:border-box!important;
}
#report-form .job-collapse-half.guard-signature-expanded-v438 .sig-head{
  min-height:36px;
  flex:none;
  margin-bottom:10px;
}
#report-form .job-collapse-half.guard-signature-expanded-v438 .sig-head label{
  font-size:14px!important;
  color:var(--ink,#20251f)!important;
}
#report-form .job-collapse-half.guard-signature-expanded-v438 .sig-date{
  font-size:11px!important;
}
#report-form .job-collapse-half.guard-signature-expanded-v438 .sig-clear-link{
  font-size:11px!important;
  padding:6px!important;
}
#report-form .job-collapse-half.guard-signature-expanded-v438 .signature-wrap{
  flex:0 0 auto!important;
  width:100%!important;
  height:220px!important;
  min-height:220px!important;
  border:2px solid var(--green2,#286454)!important;
  border-radius:12px!important;
  background:#fff!important;
  display:flex!important;
  overflow:hidden!important;
}
#report-form .job-collapse-half.guard-signature-expanded-v438 .signature-wrap canvas{
  display:block!important;
  width:100%!important;
  height:220px!important;
  min-height:220px!important;
  max-height:220px!important;
  flex:0 0 auto!important;
  opacity:1!important;
  pointer-events:auto!important;
  cursor:crosshair!important;
  touch-action:none!important;
  background:#fff!important;
}

@media(max-width:760px){
  #report-form .guard-report-actions-full-v438 textarea{
    min-height:120px!important;
  }
  .guard-signature-launch-v438{
    min-height:62px;
  }
  .guard-signature-launch-v438 strong{
    font-size:12px;
  }
  .guard-signature-launch-v438 span{
    font-size:9px;
  }
  #report-form .job-collapse-half.guard-signature-expanded-v438{
    top:50%!important;
    right:auto!important;
    bottom:auto!important;
    left:50%!important;
    width:calc(100vw - 20px)!important;
    max-width:520px!important;
    max-height:calc(100dvh - 20px)!important;
    padding:10px!important;
    border-radius:12px!important;
  }
  #report-form .job-collapse-half.guard-signature-expanded-v438 .signature-wrap,
  #report-form .job-collapse-half.guard-signature-expanded-v438 .signature-wrap canvas{
    height:240px!important;
    min-height:240px!important;
    max-height:240px!important;
  }
}

@media(max-width:420px) and (max-height:620px){
  #report-form .job-collapse-half.guard-signature-expanded-v438 .signature-wrap,
  #report-form .job-collapse-half.guard-signature-expanded-v438 .signature-wrap canvas{
    height:200px!important;
    min-height:200px!important;
    max-height:200px!important;
  }
}

@media print{
  .guard-signature-launch-v438,
  .guard-signature-done-v438,
  .guard-signature-backdrop-v438{
    display:none!important;
  }
}

/* Build 634 — increase completed ERA title-bar text only. */
.guard-era-report-sheet-v621 .report-section > h3,
.guard-era-report-sheet-v621 .era-section-heading,
.guard-era-report-sheet-v621 .era-green-toggle{
  font-size:10px!important;
}


/* Build 635 — match treatment and invoice title bars to the approved ERA size. */
.guard-treatment-report-sheet-v621 .report-section > h3,
.guard-invoice-sheet-v622 .report-section > h3{
  font-size:10px!important;
}


/* Build 636 — match invoice details to the approved payment-method body size. */
.guard-invoice-sheet-v622 .guard-invoice-customer-v622,
.guard-invoice-sheet-v622 .guard-invoice-customer-v622 span,
.guard-invoice-sheet-v622 .guard-invoice-section-v622 .report-pairs,
.guard-invoice-sheet-v622 .guard-invoice-section-v622 .report-pairs span,
.guard-invoice-sheet-v622 .guard-invoice-section-v622 > p{
  font-size:16px!important;
  line-height:1.35!important;
}
