.hr-document-editor { border: 1px solid var(--line, #ddd); border-left: 4px solid var(--hino, #c00); border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; background: var(--canvas, #f7f7f6); }
.hr-document-editor h2 { margin-bottom: 6px; }
.hr-document-editor p { font-size: 13px; margin: 0 0 10px; }
.hr-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-editor-actions button { min-height: 42px; padding: 8px 12px; border: 1px solid var(--hino, #c00); color: var(--hino, #c00); background: #fff; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hr-editor-actions button:hover { background: var(--hino, #c00); color: #fff; }
.hr-draft-status { min-height: 1.4em; margin: 8px 0 0 !important; color: var(--mut, #555); }
.hr-edit-field { display: inline; min-width: 2ch; border-bottom: 1px dashed var(--hino, #c00); background: #fff3f3; padding: 1px 2px; border-radius: 2px; overflow-wrap: anywhere; white-space: pre-wrap; }
.hr-edit-field:focus { outline: 2px solid var(--hino, #c00); outline-offset: 2px; }
#payslip .doc-body { overflow-x: auto; }
#payslip .doc-tbl { display: table; width: 100%; table-layout: fixed; }
#payslip .doc-tbl td, #payslip .doc-tbl th { overflow-wrap: normal; word-break: normal; }
#payslip .doc-tbl:first-of-type td:first-child { width: 24%; font-weight: 600; }
#payslip .doc-tbl:nth-of-type(2) th:nth-child(2), #payslip .doc-tbl:nth-of-type(2) th:nth-child(4),
#payslip .doc-tbl:nth-of-type(2) td:nth-child(2), #payslip .doc-tbl:nth-of-type(2) td:nth-child(4) { width: 17%; white-space: nowrap; }
@media (max-width: 600px) {
  #payslip .doc-tbl { min-width: 560px; }
  #payslip .doc-tbl:nth-of-type(2) { min-width: 620px; }
  #payslip .doc-body { -webkit-overflow-scrolling: touch; }
}
@media print {
  #hr-reference-panel > :not(article.doc) { display: none !important; }
  body.printing-doc > .hr-shell-header, body.printing-doc > .hr-shell-nav, body.printing-doc > #hr-updates-dialog,
  body.printing-doc .hr-main > :not(article.doc) { display: none !important; }
  .hr-document-editor { display: none !important; }
  .hr-edit-field { border: 0; background: none; padding: 0; }
  #payslip .doc-body { overflow: visible; }
  #payslip .doc-tbl { min-width: 0 !important; }
}
