.risk-editor-scroll {
  height: min(62vh, 680px);
  min-height: 260px;
  overflow: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.risk-editor-xscroll {
  height: 20px;
  overflow-x: scroll;
  overflow-y: hidden;
  background: #f3f6fa;
  border-bottom: 1px solid #dce3ed;
}
.risk-editor-xscroll > div {
  height: 1px;
}
.risk-editor-scroll .risk-input-table {
  table-layout: fixed;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.risk-editor-scroll .risk-input-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f3f6fa;
  white-space: normal;
  padding-right: 16px;
}
.risk-editor-scroll .risk-input-table th:first-child {
  left: 0;
  z-index: 4;
}
.risk-editor-scroll .risk-input-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: white;
}
.risk-editor-scroll .risk-input-table td {
  vertical-align: top;
  overflow: hidden;
  white-space: normal;
}
.risk-editor-scroll .risk-input-table input,
.risk-editor-scroll .risk-input-table textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0 !important;
  font: inherit;
  font-size: 12px;
  padding: 8px;
}
.risk-editor-scroll .risk-input-table textarea {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  resize: vertical;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  min-height: 54px;
  line-height: 1.5;
}
.risk-editor-scroll textarea:focus {
  outline: 2px solid #adcaf5;
  background: white;
}
.risk-column-resize {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 9px;
  padding: 0;
  border: 0;
  border-right: 2px solid #ccd6e5;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}
.risk-column-resize:hover,
.risk-column-resize:focus {
  background: #a9cbff;
}
.risk-column-move {
  border: 1px solid #d5dfec;
  border-radius: 4px;
  background: white;
  color: #3263a1;
  cursor: pointer;
  margin: 4px 2px 0;
  padding: 1px 6px;
  font-size: 12px;
}
.risk-column-move[data-direction='-1']::before {
  content: '←';
}
.risk-column-move[data-direction='1']::before {
  content: '→';
}
@media print {
  .risk-column-move {
    display: none;
  }
}
@media print {
  .risk-editor-xscroll,
  .risk-column-resize {
    display: none;
  }
  .risk-editor-scroll {
    height: auto;
    overflow: visible !important;
  }
}
