#report-print-root{display:none}
@media screen{
  #report-dialog{max-width:1120px;width:calc(100% - 32px);max-height:calc(100dvh - 32px)}
  .report-layout{display:grid;grid-template-columns:240px minmax(0,1fr);min-width:0;background:#f3f5f5}
  .report-controls{padding:18px;background:white;border-right:1px solid var(--line);min-width:0;font-size:13px}
  .report-subject{margin:0 0 18px;overflow-wrap:anywhere}.report-subject strong{font-size:17px}.report-subject span{display:block;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.7}
  .report-controls fieldset{margin:18px 0;padding:12px}.report-controls fieldset label{display:flex;align-items:center;gap:8px;min-height:32px;line-height:1.6}.report-controls fieldset input{width:18px;height:18px;min-height:18px}
  .report-controls button{width:100%;min-height:44px}.report-preview-scroll{padding:18px;overflow:auto;min-width:0}
  .report-preview{width:210mm;max-width:100%;min-height:297mm;background:white;padding:12mm 14mm 15mm;border:1px solid #dbe3e7;box-shadow:0 3px 15px #17354812}
}
/* Documents have their own typography, hierarchy and tables. */
.report-document{font-family:"BIZ UDPGothic","Yu Gothic",Meiryo,sans-serif;color:#111;font-size:9pt;line-height:1.65;overflow-wrap:anywhere}.doc-head{border-bottom:2px solid #333;padding:0 0 8px;margin-bottom:10px}.doc-top{display:flex;align-items:center;justify-content:space-between;font-size:8pt;margin-bottom:7px;color:#444}.doc-top strong{letter-spacing:.06em;font-size:8pt}.doc-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.doc-title h1{font-size:18pt;font-weight:700;margin:0;line-height:1.3;letter-spacing:.05em}.doc-title span{font-size:8pt;color:#444}.doc-person{display:grid;grid-template-columns:1fr 24mm;gap:12px;align-items:center;padding:9px 0 10px;border-bottom:1px solid #999;margin-bottom:10px}.doc-person h2{font-size:17pt;line-height:1.5;margin:0}.doc-person small{font-size:8pt;display:block}.doc-person p{font-size:9pt;margin:4px 0 0}.photo-placeholder{height:29mm;border:1px solid #aaa;display:grid;place-items:center;line-height:1.6;text-align:center;font-size:8pt;color:#666}.doc-section{margin-bottom:9px}.doc-section h3{font-size:10pt;border-left:3px solid #333;border-bottom:1px solid #777;margin:0 0 6px;padding:3px 7px;line-height:1.4;break-after:avoid}.doc-section>p{margin:4px 0;white-space:pre-wrap}.doc-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.doc-fields{display:grid;margin:0}.doc-fields dt,.doc-fields dd{border-bottom:1px solid #ddd;line-height:1.5;margin:0}.doc-fields dt{font-weight:500;color:#333;background:#f4f4f4}.doc-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:8.5pt}.doc-table th,.doc-table td{border:1px solid #aaa;vertical-align:top;line-height:1.6;overflow-wrap:anywhere}.doc-table th{background:#f2f2f2;font-size:8pt;text-align:left;font-weight:600}.doc-footnote{font-size:7.5pt;color:#555;border-top:1px solid #aaa;margin-top:10px;padding-top:6px;line-height:1.7}.record-document{width:100%;border-collapse:collapse;table-layout:fixed}.record-document>thead>tr>td{padding:0;border:0}.record-document .doc-head{margin-bottom:8px}.doc-record-subject{margin:0 0 6px;font-size:10pt}.doc-filter-note{font-size:7.5pt;font-weight:400;line-height:1.6;margin:0 0 9px;color:#444}.record-document>thead>tr.column-head>th{border:1px solid #999;background:#f2f2f2;text-align:left;padding:5px 6px;font-size:8pt}.record-document>tbody>tr>td{border:1px solid #aaa;padding:7px 6px;vertical-align:top;line-height:1.65;overflow-wrap:anywhere}.record-document .kind-col{width:21mm}.record-document .staff-col{width:29mm}.record-document p{white-space:pre-wrap;margin:0 0 4px}.record-document small{display:block;font-size:7.5pt;color:#444;line-height:1.6}.doc-response{margin:6px 0 0;border-top:1px dashed #aaa;padding-top:5px}.doc-response b{font-weight:600;font-size:8pt}.doc-empty{padding:12px!important;text-align:center}

.doc-fields{font-size:9.5pt;grid-template-columns:26mm minmax(0,1fr)}.doc-fields dt,.doc-fields dd{padding:3px 5px}.doc-table th,.doc-table td{padding:4px 5px}.doc-fields dd,.doc-table td{white-space:pre-wrap}.doc-section>p{font-size:9.5pt}.record-document{font-size:9.5pt}.record-document .date-col{width:30mm}
.record-document>tbody>tr>td:first-child{font-size:8.5pt;white-space:nowrap}.record-document>tbody>tr>td:first-child small{white-space:normal}
.doc-person.without-photo{grid-template-columns:minmax(0,1fr)}.doc-grid.single{grid-template-columns:minmax(0,1fr)}.doc-grid>div{min-width:0}.doc-item{margin-bottom:8px}.doc-item b{font-size:9pt}.doc-item .doc-fields{margin-top:4px}
.doc-photo{height:29mm;width:24mm;border:1px solid #aaa;position:relative;display:grid;place-items:center;text-align:center;font-size:8pt;color:#666}.doc-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}
.doc-table+.doc-table{margin-top:8px}.doc-item+.doc-item{margin-top:8px}
/* Empty values: the same thin dash as the web screens (.kv .empty-value), dark enough to survive printing. */
.report-document .empty-value{color:#777}.report-subject .empty-value{color:#a3b0bd}
@media screen and (max-width:900px){.report-layout{grid-template-columns:minmax(0,1fr)}.report-controls{border-right:0;border-bottom:1px solid var(--line)}.report-controls .small{margin:10px 0}.report-preview-scroll{padding:12px}.report-preview{padding:18px;min-height:0}.report-controls fieldset label{min-height:44px}}
@media screen and (max-width:600px){#report-dialog{width:calc(100% - 16px)}.report-preview .doc-grid{grid-template-columns:1fr}.report-preview .doc-top{flex-wrap:wrap;gap:5px}.report-preview .doc-title{align-items:flex-start;flex-direction:column;gap:5px}.report-preview .doc-title h1{font-size:19px}.report-preview .doc-table col{width:auto!important}.report-preview .record-document .date-col{width:56px}.report-preview .record-document .kind-col{width:42px}.report-preview .record-document .staff-col{width:55px}.report-preview .record-document{font-size:10px}.report-preview .record-document>tbody>tr>td{padding:5px 3px}.report-preview .record-document>tbody>tr>td:first-child{font-size:9px;white-space:normal}.report-preview .record-document>thead>tr.column-head>th{padding:5px 3px}.report-preview .record-document small{font-size:8px}.report-preview .doc-fields{grid-template-columns:75px minmax(0,1fr);font-size:11px}}
@media print{
  :root{background:white}body.printing-report{margin:0;min-height:0}
  @page{size:A4 portrait;margin:12mm 14mm 15mm;@bottom-left{content:"Caremado / 個人情報・取扱注意";font:7pt "Yu Gothic",Meiryo,sans-serif;color:#555}@bottom-right{content:counter(page) " / " counter(pages);font:8pt "Yu Gothic",Meiryo,sans-serif;color:#444}}
  body.printing-report{background:white;color:black}body.printing-report #app,body.printing-report .skip,body.printing-report #modal,body.printing-report #toast,body.printing-report dialog{display:none!important}
  body.printing-report #report-print-root{display:block!important}.report-document{font-size:9pt}.doc-table thead,.record-document>thead{display:table-header-group}.doc-table tr{break-inside:avoid}.doc-section{break-inside:auto}.doc-section h3{break-after:avoid}.doc-fields dt,.doc-fields dd,.doc-item{break-inside:avoid}.doc-person{break-inside:avoid;break-after:avoid}.record-document>tbody>tr{break-inside:avoid}.record-document>tbody>tr.long-record{break-inside:auto}.record-document .doc-head{break-inside:avoid}.doc-grid{grid-template-columns:1fr 1fr}.doc-footnote{break-inside:avoid}.report-document a{color:black;text-decoration:none}
}
