.fee-estimate-page{border-top:7px solid #0f766e}.estimate-patient{display:flex;justify-content:space-between;gap:16px;margin:18px 0;padding:16px 18px;background:#e8f7f3;border-radius:14px}.estimate-patient div{display:grid}.estimate-patient small{color:#57736f;font-size:14px}.estimate-patient strong{font-size:22px}.estimate-month-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.estimate-month{border:2px solid #d5e7e3;border-radius:16px;overflow:hidden;background:#fff}.estimate-month header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;background:#e9f7f4}.estimate-month.later header{background:#eef4fc}.estimate-month header small{color:#5f7773}.estimate-month h3{margin:0;font-size:21px}.estimate-month header>strong{color:#0f766e;font-size:clamp(24px,4vw,32px);white-space:nowrap}.estimate-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid #e1ecea}.estimate-row strong{font-size:15px}.estimate-row small{display:block;color:#6a7f7c}.estimate-row span{font-size:13px;color:#607672}.estimate-row b{white-space:nowrap}.estimate-month footer{display:flex;justify-content:space-between;padding:14px 16px;background:#f7faf9}.empty-estimate{padding:18px;color:#667d79}.estimate-basis{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;margin:18px 0;background:#f0f7ff;border-radius:12px}.estimate-warning{display:grid;gap:2px;margin:10px 0;padding:12px 15px;background:#fff8e7;border-left:5px solid #e7a91a;border-radius:9px}.estimate-warning span{font-size:14px;color:#705c2c}.estimate-notice{font-size:14px;color:#654f1d;background:#fff8e7;padding:14px;border-radius:12px}.estimate-actions{grid-template-columns:1fr 1fr 1fr}.estimate-actions button{min-height:54px;font-size:18px}@media(max-width:760px){.estimate-month-grid{grid-template-columns:1fr}.estimate-patient,.estimate-basis{display:grid}.estimate-row{grid-template-columns:minmax(0,1fr) auto}.estimate-row span{grid-column:1}.estimate-actions{grid-template-columns:1fr}}@media print{body{background:#fff}.topbar,.page-indicator,.fee-estimate-page~*,.estimate-actions{display:none!important}main{max-width:none;margin:0;padding:0}.fee-estimate-page{display:block!important;box-shadow:none;border:0;margin:0;padding:0}.estimate-month-grid{grid-template-columns:1fr 1fr}.estimate-notice{color:#333}.estimate-warning{break-inside:avoid}}

@page{size:A4 portrait;margin:8mm}
@media print{
  html,body{width:194mm;min-height:281mm;background:#fff;font-size:9pt;line-height:1.25}
  .topbar,.page-indicator,.fee-estimate-page~*,.estimate-actions,#estimateWarnings{display:none!important}
  main{width:194mm;max-width:none;margin:0;padding:0}
  .fee-estimate-page{display:block!important;width:194mm;box-shadow:none;border:0;margin:0;padding:0;color:#111}
  .fee-estimate-page .section-title{margin-bottom:2mm}
  .fee-estimate-page .section-title span{width:7mm;height:7mm;font-size:9pt}
  .fee-estimate-page .section-title h2{font-size:16pt}
  .estimate-patient{display:flex;margin:0 0 2.5mm;padding:2mm 3mm;border-radius:2mm;break-inside:avoid}
  .estimate-patient small{font-size:8pt}.estimate-patient strong{font-size:11pt}
  .estimate-month-grid{grid-template-columns:1fr 1fr;gap:3mm;margin-top:0;align-items:start}
  .estimate-month{border-width:.4mm;border-radius:2mm;break-inside:avoid}
  .estimate-month header{padding:2.5mm 3mm}
  .estimate-month header small{font-size:7.5pt}.estimate-month h3{font-size:12pt}
  .estimate-month header>strong{font-size:15pt}
  .estimate-row{grid-template-columns:minmax(0,1fr) auto;padding:1.5mm 2.5mm;gap:1mm;min-height:0}
  .estimate-row strong{font-size:8pt;line-height:1.18}.estimate-row small,.estimate-row span{font-size:7pt;line-height:1.15}
  .estimate-row b{font-size:8.5pt}.estimate-row span{grid-column:1}
  .estimate-month footer{padding:2mm 2.5mm;font-size:8.5pt}
  .estimate-basis{margin:2.5mm 0 1.5mm;padding:2mm 3mm;border-radius:2mm;font-size:8pt;break-inside:avoid}
  .estimate-notice{margin:0;padding:2mm 3mm;border-radius:2mm;color:#333;font-size:7.5pt;line-height:1.25;break-inside:avoid}
}
.frequent-visit-explanation{margin-top:14px;padding:16px 18px;border:2px solid #bfd9cf;border-radius:12px;background:#f5fbf8;color:#203d34}.frequent-visit-explanation>p:first-child{margin:0 0 10px;font-size:17px}.frequent-visit-conditions{margin:0 0 12px;padding-left:1.6em;font-size:16px;line-height:1.7}.frequent-visit-conditions li+li{margin-top:5px}.frequent-visit-examples{margin:12px 0 0;padding:12px 14px;border-radius:9px;background:#fff;font-size:14px;line-height:1.6}.frequent-visit-explanation .urgent-fee-note{margin-top:10px}@media print{.frequent-visit-explanation{margin-top:1.5mm;padding:2mm;border-width:.4mm}.frequent-visit-explanation>p:first-child{margin-bottom:1mm;font-size:7.2pt}.frequent-visit-conditions{margin-bottom:1mm;font-size:6.8pt;line-height:1.25}.frequent-visit-conditions li+li{margin-top:.5mm}.frequent-visit-examples{margin-top:1mm;padding:1.5mm;font-size:6.4pt;line-height:1.25}}

.urgent-fee-section{margin:22px 0;padding:18px;border:2px solid #cddfea;border-radius:16px;background:#f7fbfd}.urgent-fee-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:12px}.urgent-fee-heading small{color:#526d7a}.urgent-fee-heading h3{margin:2px 0 0;font-size:22px}.urgent-fee-heading>strong{font-size:18px;color:#0f6574}.urgent-table-wrap{overflow-x:auto}.urgent-fee-table{width:100%;border-collapse:collapse;background:#fff}.urgent-fee-table th,.urgent-fee-table td{padding:11px 10px;border:1px solid #ccdde4;text-align:left;vertical-align:middle}.urgent-fee-table thead th{background:#dcecf2;font-size:14px}.urgent-fee-table tbody th{min-width:145px;font-size:14px;background:#f0f7fa}.urgent-fee-table td{font-size:13px}.urgent-fee-table td:nth-child(3),.urgent-fee-table td:nth-child(4){white-space:nowrap}.urgent-fee-table td strong,.urgent-fee-table td small{display:block}.urgent-fee-note{margin:12px 0 0;font-size:14px;line-height:1.55;color:#654f1d}
.terminal-fee-block{margin-top:24px;padding-top:20px;border-top:3px solid #9bc5c0}.terminal-fee-heading{margin-bottom:12px}.terminal-fee-heading small{color:#526d7a}.terminal-fee-heading h3{margin:2px 0 0;font-size:22px}.terminal-fee-table tbody th{min-width:330px}.terminal-caution{margin:10px 0 0;padding:11px 13px;border-radius:10px;background:#fff4d6;color:#654f1d;font-size:13px;line-height:1.5}
.urgent-fee-table td:nth-child(3) strong{font-size:13px;font-weight:700;color:#607672}.urgent-fee-table td:nth-child(3) small{font-size:11px}.urgent-fee-table td:nth-child(4) strong{font-size:24px;color:#0f766e;line-height:1.2}.terminal-fee-table td:nth-child(3) strong{font-size:22px}
.terminal-fee-table .terminal-total-row th,.terminal-fee-table .terminal-total-row td{border-top:3px solid #0f766e;background:#e8f7f3}.terminal-fee-table .terminal-total-row th{font-size:16px}.terminal-fee-table .terminal-total-row th small,.terminal-fee-table .terminal-total-row td small{display:block;margin-top:3px;font-size:12px}.terminal-fee-table .terminal-total-row td:last-child strong{font-size:26px;color:#0f766e}
.estimate-patient>div:last-child{text-align:right}.estimate-month header>strong,.estimate-row b,.estimate-month footer b{text-align:right;font-variant-numeric:tabular-nums}.urgent-fee-table thead th:last-child,.urgent-fee-table tbody td:last-child{text-align:right}.urgent-fee-table tbody td:last-child strong,.urgent-fee-table tbody td:last-child small{text-align:right;font-variant-numeric:tabular-nums}.terminal-fee-table thead th:nth-child(3),.terminal-fee-table tbody td:nth-child(3),.terminal-fee-table tbody td:nth-child(3) strong{text-align:right;font-variant-numeric:tabular-nums}
.section-burden-label{padding:7px 12px;border-radius:999px;background:#dff5ef;color:#0f655e;font-size:18px;white-space:nowrap}.terminal-fee-heading{display:flex;align-items:end;justify-content:space-between;gap:14px}.estimate-row b{min-width:76px;color:#0f766e;font-size:18px}.estimate-month footer span{font-weight:750}
.estimate-row.rounding-adjustment{background:#fff8e7}.estimate-row.rounding-adjustment strong{color:#705c2c}.estimate-row.rounding-adjustment b{color:#705c2c}
.estimate-month header{align-items:end}.estimate-month header>div{display:flex;flex-direction:column;justify-content:flex-end;min-height:60px}.estimate-month header>strong{align-self:flex-end;line-height:1.1}.estimate-burden{align-items:center}.estimate-burden-badge{display:inline-grid!important;place-items:center;width:92px;height:92px;margin-top:7px;border:4px solid #0f766e;border-radius:50%;background:#e7f8f3;color:#0f655e;font-size:30px!important;line-height:1!important;white-space:nowrap}.section-burden-label{font-size:18px}
.document-fee-table td:nth-child(3) strong{font-size:22px;color:#0f766e;line-height:1.2}.document-fee-table td:nth-child(3){text-align:right}.document-fee-table td:nth-child(3) strong,.document-fee-table td:nth-child(3) small{display:block;text-align:right;font-variant-numeric:tabular-nums}
.additional-fee-block .urgent-fee-table tbody td:last-child strong,.document-fee-table tbody td:last-child strong{font-size:24px!important;color:#0f766e;line-height:1.2}
.urgent-burden-circle{display:grid!important;place-items:center;width:92px;height:92px;min-width:92px;padding:6px;border:4px solid #0f766e;border-radius:50%;background:#e7f8f3;color:#0f655e!important;font-size:24px!important;line-height:1.15!important;text-align:center}.urgent-fee-heading>.urgent-burden-circle{align-self:center}@media(max-width:760px){.urgent-burden-circle{width:84px;height:84px;min-width:84px;font-size:22px!important}}

@media(max-width:760px){.urgent-fee-heading{display:grid}.urgent-fee-section{padding:13px}.urgent-fee-table{min-width:720px}}

@media print{
  .urgent-fee-section{break-before:page;break-inside:avoid;margin:0;padding:3mm;border-radius:2mm;box-sizing:border-box}
  .urgent-fee-heading{margin-bottom:2mm}.urgent-fee-heading h3{font-size:14pt}
  .urgent-fee-table th,.urgent-fee-table td{padding:1.2mm 1.6mm;font-size:7pt;line-height:1.15}.urgent-fee-table thead th,.urgent-fee-table tbody th{font-size:7pt}
  .urgent-fee-table td:nth-child(4) strong{font-size:12pt}.terminal-fee-table td:nth-child(3) strong{font-size:11pt}
  .urgent-fee-note{font-size:6.6pt;line-height:1.25;margin-top:1.5mm}.terminal-fee-block{margin-top:2.5mm;padding-top:2.5mm}.terminal-fee-heading{margin-bottom:1.5mm}.terminal-fee-heading h3{font-size:12pt}.terminal-caution{margin-top:1.5mm;padding:1.5mm;font-size:6.4pt;line-height:1.25}.estimate-notice{display:none!important}
}
.care-management-fee-section{margin-top:24px;padding:20px 18px;border:2px solid #d9c9e6;border-radius:16px;background:#fbf8fd}.care-management-note{font-size:14px;line-height:1.55;color:#5d5366;margin:10px 0}.care-management-table th{background:#f1e9f7}.care-management-table td{text-align:right;white-space:nowrap}.care-management-table tbody th{min-width:290px}.care-management-table tbody th small{display:inline;color:#6d6276;font-size:12px;font-weight:500}.care-management-table tbody td{font-size:15px;font-weight:700}@media print{.care-management-fee-section{break-before:page;margin:0;padding:3mm;border-radius:2mm}.care-management-note{font-size:6.6pt;line-height:1.25;margin:1.5mm 0}.care-management-table th,.care-management-table td{padding:1.2mm 1.6mm;font-size:7pt;line-height:1.15}.care-management-table tbody th{min-width:45mm}.care-management-table tbody th small{font-size:6pt}.care-management-table tbody td{font-size:8pt}}
.urgent-fee-table tbody th{line-height:1.35}.urgent-fee-table tbody td:nth-child(2){line-height:1.45;min-width:260px}
.care-management-monthly-note{margin-top:18px;padding:16px 18px;border:3px solid #b985d1;border-radius:14px;background:#fff8ff;color:#4d3159;font-size:18px;line-height:1.65;font-weight:700}.care-management-monthly-note strong{display:block;margin-bottom:4px;font-size:19px;color:#7a3c9b}.care-management-monthly-condition{display:block;font-size:19px}.care-management-monthly-calc{display:grid;grid-template-columns:repeat(3,max-content);justify-content:space-between;align-items:center;gap:10px;margin:8px 0;overflow-x:auto}.care-management-monthly-calc b{font-size:clamp(13px,1.55vw,17px);color:#3f2550;white-space:nowrap}.care-management-monthly-note small{display:block;font-size:14px;font-weight:500;line-height:1.5;color:#66576f}
.same-household-calculation{display:block;margin-top:12px;padding:12px 14px;border:2px solid #5b9eb0;border-radius:10px;background:#f1fbfd;color:#164e5a;font-weight:700;line-height:1.7}.same-household-calculation b{font-size:1.15em;color:#0f766e}
@media print{.care-management-monthly-note{margin-top:3mm;padding:2.5mm 3mm;border-width:.5mm;font-size:9pt;line-height:1.35}.care-management-monthly-note strong{font-size:9pt;margin-bottom:1mm}.care-management-monthly-condition{font-size:9pt}.care-management-monthly-calc{gap:1mm 3mm;margin:1mm 0}.care-management-monthly-calc b{font-size:9pt}.care-management-monthly-note small{font-size:6.5pt;line-height:1.25}}
