/* Shared fillable sheets: medication list and caregiver agreement. */
.fill-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 1.5rem}
.fill-controls h2{margin:0 0 .5rem}
.fill-controls p{margin:0}
.fill-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.fill-status{min-height:1.4em;font-size:.92rem;margin:.75rem 0 0;color:#2f5b4b}
.fill-sheet{background:#fffef9!important;border:1px solid #9aa99b!important}
.fill-sheet-brand{font:700 .78rem/1.4 Arial,sans-serif;letter-spacing:.04em;text-transform:uppercase;margin:0}
[data-public-renewal] .fill-sheet h2{font-size:2rem;margin:.4rem 0 .8rem}
[data-public-renewal] .fill-sheet h3{font:700 1rem/1.4 Arial,sans-serif;margin:1.3rem 0 .5rem}
.fill-sheet label{display:block;font:600 .82rem/1.35 Arial,sans-serif;color:#33443b}
.fill-sheet input[type=text],.fill-sheet input[type=date],.fill-sheet input:not([type]),.fill-sheet textarea{display:block;width:100%;box-sizing:border-box;margin-top:.2rem;padding:.4rem .2rem;border:0;border-bottom:1px solid #718377;border-radius:0;background:transparent;font:400 1rem/1.35 Arial,sans-serif;color:#111}
.fill-sheet textarea{resize:vertical;min-height:2.6rem}
.fill-sheet input:focus,.fill-sheet textarea:focus{outline:2px solid #2f6f5a;outline-offset:1px;background:#f4f7ef}
.fill-sheet ::placeholder{color:#8b958d}
.fill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem 1.5rem}
.fill-grid .span-2{grid-column:1/-1}
.fill-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:.5rem 0}
.fill-table th{font:700 .8rem/1.3 Arial,sans-serif;text-align:left;padding:.4rem;border-bottom:2px solid #718377;color:#33443b}
.fill-table td{padding:.15rem .4rem;vertical-align:bottom}
.fill-table td input{margin:0}
.fill-add{margin:.6rem 0 0}
.fill-note{font-size:.88rem;line-height:1.5;margin:.6rem 0}
.fill-footer{font-size:.8rem;line-height:1.45;margin:1.2rem 0 0;color:#33443b}
.fill-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem 1.5rem;margin:.4rem 0}
.fill-checks label{display:flex;gap:.55rem;align-items:flex-start;font-weight:400;font-size:.95rem;color:#111}
.fill-checks input{width:1.1rem;height:1.1rem;margin:.15rem 0 0;flex:0 0 auto;accent-color:#2f6f5a}
.fill-inline{display:flex;flex-wrap:wrap;align-items:baseline;gap:.3rem .6rem;font-size:.98rem;line-height:1.5;margin:.6rem 0}
.fill-inline input{display:inline-block!important;width:auto!important;min-width:7rem;flex:1 1 9rem;margin:0!important}
.fill-inline input.short{flex:0 1 6rem;min-width:4.5rem}
.fill-sign{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.6rem 1.5rem;margin-top:1.2rem}
.fill-sign .sign-line{display:block;height:2.2rem;border-bottom:1px solid #111}
.fill-clause{margin:.4rem 0;font-size:.98rem;line-height:1.55}
.fill-section{counter-increment:fillsection}
.fill-sheet{counter-reset:fillsection}
.fill-section>h3::before{content:counter(fillsection) ". "}

@media screen{
 [data-public-renewal] .fill-sheet{max-width:900px;padding:2rem 2.5rem;border-radius:6px;box-shadow:0 5px 20px #203f3509}
 [data-public-renewal] .fill-sheet>p{max-width:none}
 .fill-sheet [id]{scroll-margin-top:1.5rem}
 @media(max-width:700px){
  [data-public-renewal] .fill-sheet{padding:1.25rem}
  .fill-controls{flex-direction:column;align-items:stretch}
  .fill-actions .button{flex:1 1 100%}
  .fill-grid,.fill-checks,.fill-sign{grid-template-columns:minmax(0,1fr)}
  .fill-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .fill-table,.fill-table tbody,.fill-table tr,.fill-table td{display:block;width:100%}
  .fill-table tr{padding:.6rem 0 .8rem;border-bottom:2px solid #c9d2c4}
  .fill-table td{padding:.25rem 0}
  .fill-table td::before{content:attr(data-label);display:block;font:600 .78rem/1.3 Arial,sans-serif;color:#33443b}
  .fill-table tr>td:first-child::before{content:"Medicine " counter(fillrow) ": name and strength";font-weight:700}
  .fill-table tbody{counter-reset:fillrow}
  .fill-table tr{counter-increment:fillrow}
 }
}

@media print{
 @page{size:letter portrait;margin:.45in}
 body[data-public-renewal]{background:#fff!important;color:#111!important}
 body.fill-page .site-nav,body.fill-page .footer,body.fill-page .skip-link,body.fill-page .fep-email-box{display:none!important}
 body.fill-page .content-main>:not(.fill-sheet){display:none!important}
 body.fill-page .content-main{display:block!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
 body.fill-page .fill-sheet{display:block!important;border:0!important;box-shadow:none!important;background:#fff!important;margin:0!important;padding:0!important}
 body.fill-page .fill-sheet h2{font-size:20pt!important;margin:2pt 0 6pt!important}
 body.fill-page .fill-sheet h3{font-size:10.5pt!important;margin:9pt 0 3pt!important}
 body.fill-page .fill-sheet label{font-size:8pt}
 body.fill-page .fill-sheet input,body.fill-page .fill-sheet textarea{font-size:10pt!important;padding:2pt 1pt!important;min-height:0!important}
 body.fill-page .fill-sheet ::placeholder{color:transparent!important}
 body.fill-page .fill-add,body.fill-page [data-screen-only]{display:none!important}
 body.fill-page .fill-table td{padding:1pt 3pt}
 body.fill-page .fill-table th{font-size:8pt;padding:3pt}
 body.fill-page .fill-clause,body.fill-page .fill-inline,body.fill-page .fill-checks label{font-size:9.5pt}
 body.fill-page .fill-note,body.fill-page .fill-footer{font-size:8pt;margin:4pt 0}
 body.fill-page .fill-section{break-inside:avoid}
}
.fill-table .w24{width:24%}.fill-table .w21{width:21%}.fill-table .w19{width:19%}.fill-table .w16{width:16%}.fill-table .w20{width:20%}
/* Win over the site-wide form and table styles inside the sheet. */
[data-public-renewal] .fill-sheet input:not([type=checkbox]),[data-public-renewal] .fill-sheet textarea{border:0!important;border-bottom:1px solid #8a998d!important;border-radius:0!important;box-shadow:none!important;background:transparent}
[data-public-renewal] .fill-sheet .fill-table{background:transparent!important;border-radius:0!important}
[data-public-renewal] .fill-sheet .fill-table td{border:0!important;border-bottom:1px solid #8a998d!important}
[data-public-renewal] .fill-sheet .fill-table td+td{border-left:1px solid #d5dcd0!important}
[data-public-renewal] .fill-sheet .fill-table td input{border-bottom:0!important}
@media screen and (max-width:700px){
 [data-public-renewal] .fill-sheet .fill-table td{border-bottom:0!important}
 [data-public-renewal] .fill-sheet .fill-table td+td{border-left:0!important}
 [data-public-renewal] .fill-sheet .fill-table td input{border-bottom:1px solid #8a998d!important}
}
/* Fill-in-the-blank sentences flow like normal text. */
.fill-sheet .fill-inline{display:block}
[data-public-renewal] .fill-sheet .fill-inline input{display:inline-block!important;width:13rem!important;max-width:100%;min-width:0;vertical-align:baseline;padding:.1rem .2rem!important}
[data-public-renewal] .fill-sheet .fill-inline input.short{width:5.5rem!important}
[data-public-renewal] .fill-sheet p{max-width:none}
.fill-sign p{font-size:.9rem;line-height:1.4;margin:0}
.fill-sign .sign-line{margin-bottom:.25rem}
@media print{
 [data-public-renewal] .fill-sheet .fill-inline input{width:1.8in!important}
 [data-public-renewal] .fill-sheet .fill-inline input.short{width:.85in!important}
 body.fill-page .fill-checks{gap:2pt 16pt}
 body.fill-page .fill-checks input{width:10pt;height:10pt}
 body.fill-page .fill-sign{gap:14pt 16pt;margin-top:8pt}
 body.fill-page .fill-sign p{font-size:9pt}
 body.fill-page .fill-sign .sign-line{height:22pt}
}
/* With the script running, print shows wrapping text copies of each box (see fillable-sheet.js).
   Without it, the boxes themselves print, so the browser Print menu still works. */
.fill-print{display:none}
@media print{
 body.fill-page .fill-sheet.has-print-copies input:not([type=checkbox]),body.fill-page .fill-sheet.has-print-copies textarea{display:none!important}
 body.fill-page .fill-sheet .fill-print{display:block;min-height:15pt;padding:2pt 1pt;border-bottom:1px solid #8a998d;font:400 10pt/1.3 Arial,sans-serif;color:#111;white-space:pre-wrap;overflow-wrap:anywhere}
 body.fill-page .fill-sheet .fill-table .fill-print{border-bottom:0;min-height:14pt}
 body.fill-page .fill-sheet .fill-inline .fill-print{display:inline-block;width:1.8in;vertical-align:bottom}
 body.fill-page .fill-sheet .fill-inline .fill-print.short{width:.85in}
}
