/**
 * MemoSurfaceChrome — 메모창 박스선 SSOT (0630-51)
 * outer-only: A(DualColumn/외곽) 1회 border, 내부 B border 제거
 * standalone: 독립 메모(참고자료 단독·팝업) — wrap border 유지
 * edit-focus: TeDAI 카드 편집 강조(2px blue) 유지 — inner border 제거 대상 아님
 */
.yoromis-memo-chrome-outer-only .yoromis-pre-ref-editor-wrap,
.yoromis-memo-chrome-outer-only .yoromis-exec-editor-wrap {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.yoromis-memo-chrome-outer-only .yoromis-rich-editor,
.yoromis-memo-chrome-outer-only .yoromis-memo-cell,
.yoromis-memo-chrome-outer-only .yoromis-detail-notes {
  border: none !important;
  box-shadow: none !important;
}
.yoromis-memo-chrome-outer-only .trumbowyg-box,
.yoromis-memo-chrome-outer-only .trumbowyg-editor {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
/* 0630-52: B박스 flush-fit — inner를 outer(A)에 맞춰 이중선·여백 제거 */
.yoromis-memo-chrome-outer-only .yoromis-editor-flexfill .yoromis-rich-editor {
  padding: 0 !important;
}
.yoromis-memo-chrome-outer-only .yoromis-editor-flexfill .trumbowyg-box {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}
.yoromis-memo-chrome-outer-only .yoromis-editor-flexfill .trumbowyg-editor {
  padding: 1px 2px !important;
}
/* 붙여넣기 래퍼 div/table 외곽 border — 테이블 셀(th/td) 제외 */
.yoromis-memo-chrome-outer-only .trumbowyg-editor > div:not(.yoromis-table-scroll-wrap),
.yoromis-memo-chrome-outer-only .trumbowyg-editor > section,
.yoromis-memo-chrome-outer-only .trumbowyg-editor > article {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.yoromis-memo-chrome-outer-only .yoromis-tedai-editor-host {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* linked A-B: 하단 참고자료 wrap — 외곽(A)에 포함, 자체 border 제거 */
.yoromis-detail-panel[data-yoromis-linked-vertical-resize="1"] .yoromis-memobox-wrap.yoromis-memo-chrome-outer-only,
.yoromis-detail-panel[data-yoromis-linked-vertical-resize="1"] .yoromis-detail-notes-wrap.yoromis-memo-chrome-outer-only {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0;
}
/* standalone — column3.css border 유지(명시 리셋 없음) */
.yoromis-memo-chrome-standalone.yoromis-detail-notes-wrap {
  /* SSOT=column3.css .yoromis-detail-notes-wrap */
}
/* 0630-53 MSG5482: 3열 DualColumn·탭바디 외곽 OSB 폐기 — A(좌목록)·B(에디터 inner)만 */
.yoromis-dual-col-inner-scroll,
.yoromis-memo-tab-inner-scroll {
  overflow: hidden !important;
}
.yoromis-dual-col-inner-scroll.yoromis-auto-scrollbar,
.yoromis-memo-tab-inner-scroll.yoromis-auto-scrollbar {
  scrollbar-width: auto !important;
}
/* 0630-57 MSG5484a: WYSIWYG a영역(Trumbowyg)만 — b폰트·짙은청색그레이. 나머지 메모=원래대로 */
.trumbowyg-editor,
.trumbowyg-textarea,
.yoromis-rich-editor .trumbowyg-editor {
  font-family: var(--yoromis-wysiwyg-editor-font-family) !important;
  color: var(--yoromis-wysiwyg-editor-text-color) !important;
}
.trumbowyg-editor pre,
.trumbowyg-editor code,
.trumbowyg-editor kbd,
.trumbowyg-editor samp {
  font-family: var(--yoromis-code-font-family) !important;
}
/* 0816 답변 상단메타 1표 — 셀 여백 절반 */
.yoromis-answer-meta th,
.yoromis-answer-meta td,
.yoromis-memo-cell h2 + table th,
.yoromis-memo-cell h2 + table td,
.trumbowyg-editor h2 + table th,
.trumbowyg-editor h2 + table td {
  padding: 2px 6px !important;
  line-height: 1.25 !important;
}
/* 0816 D135: 팝업·양식 표 헤더 세로붙음·겹침 방지 */
.trumbowyg-editor table,
.yoromis-rich-editor table,
.yoromis-md-preview table,
.yoromis-memo-cell table {
  display: table !important;
}
.trumbowyg-editor thead,
.yoromis-rich-editor thead,
.yoromis-md-preview thead,
.yoromis-memo-cell thead { display: table-header-group !important; }
.trumbowyg-editor tbody,
.yoromis-rich-editor tbody,
.yoromis-md-preview tbody,
.yoromis-memo-cell tbody { display: table-row-group !important; }
.trumbowyg-editor tr,
.yoromis-rich-editor tr,
.yoromis-md-preview tr,
.yoromis-memo-cell tr { display: table-row !important; }
.trumbowyg-editor th,
.trumbowyg-editor td,
.yoromis-rich-editor th,
.yoromis-rich-editor td,
.yoromis-md-preview th,
.yoromis-md-preview td,
.yoromis-memo-cell th,
.yoromis-memo-cell td { display: table-cell !important; }
.trumbowyg-editor th,
.yoromis-rich-editor th,
.yoromis-md-preview th,
.yoromis-memo-cell th,
.yoromis-answer-meta th {
  white-space: nowrap !important;
  min-width: 2.4em !important;
  word-break: keep-all !important;
}
