/* 문서발급 화면 모양: 왼쪽 문서 종류, 가운데 쓰기, 오른쪽 미리보기 */
.docs { display: flex; flex-direction: column; min-height: 0; }
.docs > .tabs { flex: 1 1 auto; min-height: 0; }
.docs > .tabs > .tabs-body { display: flex; flex-direction: column; padding: 6px; overflow: hidden; }
.docs > .tabs > .tabs-body > * { flex: 1 1 auto; min-height: 0; }
.docs-edit { display: grid; grid-template-columns: 150px 440px minmax(0, 1fr); gap: 6px; min-height: 0; }
.docs-edit.docs-in-modal { height: 640px; max-height: 76vh; }
.docs-types { border: 1px solid var(--line); background: #fff; overflow-y: auto; }
.docs-types-head { background: var(--head); border-bottom: 1px solid var(--line); padding: 3px 6px; min-height: 26px; font-weight: 700; display: flex; align-items: center; }
.docs-types button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-soft); background: #fff; padding: 3px 8px; min-height: 26px; cursor: pointer; }
.docs-types button:hover { background: var(--hover); }
.docs-types button.on { background: var(--sel); font-weight: 700; }
.docs-mid { border: 1px solid var(--line); background: #fff; padding: 6px; overflow-y: auto; min-height: 0; }
.docs-fields { align-items: start; }
.docs-fields > .lbl { align-self: start; line-height: 24px; }
.docs-fields input[type=date].inp { width: 124px; }
.docs-actions { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.docs-kcd { border: 1px solid var(--line-soft); max-height: 104px; overflow-y: auto; padding: 2px 4px; }
.docs-kcd-row { display: block; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.docs-kcd-row input { vertical-align: -2px; margin: 0 4px 0 0; }
.docs-kcd-found { display: flex; flex-wrap: wrap; gap: 3px; max-height: 72px; overflow-y: auto; }
.docs-kcd-found .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.docs-items td { padding: 1px; }
.docs-items .inp { border: 0; }
.docs-thumb img { max-width: 100%; max-height: 120px; border: 1px solid var(--line); display: block; }
.docs-right { display: flex; flex-direction: column; min-height: 0; min-width: 0; border: 1px solid var(--line); background: #fff; }
.docs-right-head { display: flex; align-items: center; gap: 6px; padding: 3px 6px; min-height: 26px; background: var(--head); border-bottom: 1px solid var(--line); }
.docs-paper-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; background: #dfe3ea; padding: 8px; }
.docs-paper { background: #fff; border: 1px solid #8f98a8; width: 100%; max-width: 720px; min-height: 100%; margin: 0 auto; padding: 22px 28px; line-height: 1.55; }
.docs-paper h1 { font-size: 19px; text-align: center; letter-spacing: 6px; margin: 4px 0 12px; }
.docs-paper h2 { font-size: 13px; margin: 10px 0 4px; }
.docs-paper table { border-collapse: collapse; width: 100%; }
.docs-paper th, .docs-paper td { border: 1px solid #333; padding: 3px 6px; vertical-align: top; }
.docs-paper th { background: #f0f0f0; font-weight: 400; white-space: nowrap; text-align: center; }
.docs-paper .center { text-align: center; }
.docs-paper .small { font-size: 11px; color: #555; }
.docs-paper .sign { margin-top: 22px; text-align: right; line-height: 1.9; }
.docs-paper .box { border: 1px solid #333; padding: 6px 8px; min-height: 60px; white-space: pre-wrap; }
.docs-hist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; min-height: 0; }
.docs-hist-left { display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; }
.docs-hist-table { flex: 1 1 auto; min-height: 0; }
.docs-wide { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 3px; }
/* 내용 높이가 화면 틀의 높이 계산에 번지지 않게 한다(번지면 맨 위 제목 줄이 눌린다) */
.docs { contain: size; }
