/* KP2027 V10 — typography, growable fields and A4 print safeguards. */
#entryForm .field textarea, .opr-controls .field textarea{
  width:100%; box-sizing:border-box; min-height:104px; height:auto; padding:15px 17px;
  resize:vertical; overflow:hidden; white-space:pre-wrap;
  text-align:justify; text-align-last:left; line-height:1.8;
  hyphens:auto; overflow-wrap:anywhere; word-break:normal; font-size:13px;
}
#entryForm #fSk, #entryForm #fSp{min-height:92px;}
#entryForm #fActivity{min-height:190px;}
#entryForm #fReflection{min-height:150px;}
#entryForm #fObjective{min-height:115px;}
#entryForm textarea:focus,.opr-controls textarea:focus{outline-offset:2px;}
#entryForm .field,.opr-controls .field{min-width:0;}
#entryForm .field small{line-height:1.65;}
/* Readability: non-editable previews and reports */
.opr-sheet{overflow:visible!important;overflow-wrap:anywhere;hyphens:auto;}
.opr-sheet p,.opr-sheet li,.opr-sheet .opr-ribbon b,
.opr-sheet .opr-section,.opr-sheet .opr-sign span{text-align:justify;text-align-last:left;line-height:1.53;overflow-wrap:anywhere;white-space:normal;}
.opr-sheet .opr-ribbon{align-items:flex-start;}
.opr-sheet .opr-ribbon b{min-width:0;flex:1;}
.opr-sheet .opr-ribbon span{flex:none;}
.opr-sheet .opr-list li{padding-left:1px;}
.opr-health-note{margin:11px 0 13px;padding:12px 16px;border-radius:12px;
 border:1px solid #dbb96c88;background:linear-gradient(115deg,#2c2924,#1c2940);
 color:#ffebbb;line-height:1.6;font-size:12px;}
/* Complete appendix: no truncation, works for arbitrary number of records. */
.opr-appendix{color:#1e3046;background:white;font-family:Arial,sans-serif;font-size:10px;line-height:1.55;}
.opr-appendix-header{border-bottom:3px solid #d3aa59;display:flex;gap:13px;align-items:center;margin:0 0 14px;padding:0 0 11px;}
.opr-appendix-header img{width:55px;height:58px;object-fit:contain;}
.opr-appendix-header strong{font-size:16px;display:block;color:#173a65;}
.opr-appendix-header span{font-size:11px;display:block;color:#56718a;margin-top:3px;}
.opr-record-detail{margin:0 0 13px;padding:12px 14px;border:1px solid #ccdce8;border-left:4px solid #d6a74c;background:#fff;}
.opr-record-detail h3{font-size:12px;line-height:1.35;color:#143b69;margin:0 0 9px;border-bottom:1px solid #e7edf3;padding-bottom:7px;}
.opr-detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin:7px 0 10px;}
.opr-detail-meta p{margin:0;font-size:10px;line-height:1.55;}
.opr-detail-block{margin:7px 0;min-width:0;}
.opr-detail-block b{display:block;color:#184977;margin-bottom:2px;font-size:10px;}
.opr-detail-body{white-space:pre-wrap;text-align:justify;text-align-last:left;overflow-wrap:anywhere;
  word-break:normal;font-size:10.1px;line-height:1.55;}
.opr-appendix-note{margin:0 0 11px;color:#4a6680;font-size:9px;line-height:1.55;}
@media(max-width:560px){
 #entryForm .field textarea,.opr-controls .field textarea{font-size:14px;line-height:1.7;padding:14px;}
 .opr-health-note{font-size:11px;}
 .opr-preview-shell{overflow-x:auto;}
}
@media print{
 html,body{background:#ffffff!important;background-color:#ffffff!important;min-height:auto!important;}
 .print-area{background:#ffffff!important;}
 body[data-print-mode='opr'] .print-area .opr-sheet,
 body[data-print-mode='opr-full'] .print-area .opr-sheet{
    overflow:visible!important;height:auto!important;max-height:none!important;
    break-after:auto;word-break:normal;}
 .print-area .opr-sheet p,.print-area .opr-sheet li,
 .print-area .opr-sheet .opr-ribbon b{text-align:justify!important;text-align-last:left!important;
    overflow-wrap:anywhere!important;hyphens:auto!important;}
 body[data-print-mode='opr-full'] .opr-appendix{
    break-before:page;page-break-before:always;display:block!important;}
 body[data-print-mode='opr-full'] .opr-record-detail{break-inside:auto;page-break-inside:auto;}
 body[data-print-mode='opr-full'] .opr-record-detail h3{break-after:avoid;page-break-after:avoid;}
 body[data-print-mode='opr-full'] .opr-detail-block b{break-after:avoid;page-break-after:avoid;}
 body[data-print-mode='opr-full'] .opr-detail-body{text-align:justify!important;
    text-align-last:left!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;}
 body[data-print-mode='opr-full'] .opr-appendix-header{break-after:avoid;}
 .print-area table{table-layout:fixed;}
 .print-area table thead{display:table-header-group;}
 .print-area table tr{break-inside:auto!important;page-break-inside:auto!important;}
 .print-area table td,.print-area table td div,.print-area .print-note{word-break:normal;
   white-space:pre-wrap;overflow-wrap:anywhere;text-align:justify;text-align-last:left;}
}
