.history-cell-preview { display:none!important; }
.history-text-dialog {box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:20px;border:1px solid var(--line,#cbd1dc);border-radius:18px;background:var(--card,#fff);color:var(--text,#182238);box-shadow:0 16px 60px #0004;overflow:auto;}
.history-text-dialog::backdrop {background:#15213b66;}
.history-text-dialog header {display:flex;align-items:center;justify-content:space-between;gap:16px;}
.history-text-dialog :is(strong,button) {font:inherit;}
.history-text-dialog strong {font-weight:800;}
.history-text-dialog button {padding:8px 14px;border:1px solid var(--line,#cbd1dc);border-radius:10px;cursor:pointer;background:var(--card,#fff);color:inherit;}
.history-text-context {overflow-wrap:anywhere;}
.history-text-content {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;padding:16px;border:1px solid var(--line,#cbd1dc);border-radius:12px;user-select:text;}
@media screen and (max-width:1400px) {
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout]:is([data-inout-mode=out],[data-inout-mode=prd]) .history-cell-original {display:none!important;}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout]:is([data-inout-mode=out],[data-inout-mode=prd]) .history-cell-preview {display:block!important;box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:3px 0;border:0;border-radius:5px;background:transparent;color:inherit;font:inherit;line-height:1.35;text-align:inherit;cursor:pointer;}
 .history-cell-excerpt {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:normal;}
 .history-cell-more {display:block;margin-top:3px;text-decoration:underline;text-underline-offset:3px;color:var(--brand,#6343ad);white-space:nowrap;}
 .history-cell-preview:focus-visible {outline:2px solid var(--brand,#6343ad);outline-offset:2px;}
}
@media print {.history-cell-preview,.history-text-dialog {display:none!important;}.history-cell-original {display:contents!important;}}
/* A product label is one unit; allocate its column independently of adjacent descriptions. */
@media screen {
  html:is(html,#erp-pc-theme) body.inout-page .inout-history #thead th[data-filter-source="fPum"] {
    width:8.25rem!important;
    min-width:8.25rem!important;
  }
  html:is(html,#erp-pc-theme) body.inout-page .inout-history #rows td:has(> .tag) {
    padding-inline:4px!important;
  }
  html:is(html,#erp-pc-theme) body.inout-page .inout-history #rows td > .tag {
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:keep-all!important;
    padding-inline:6px!important;
  }
}
