/* ── 회사 서류함(#/docs — views/docs*.js, 사용자 결정 2026-10-04 · 시안 '회사 서류함') ─────────────────
   PC: 목록(검색 · 분류 칩 · 선택 띠) + 오른쪽 상세(미리보기 · 정보 · 버튼 · 버전 이력 · 묶음). 휴대폰(720px 아래): 목록 + 아래에서 올라오는 창(nas-kit.js#sheet).
   앱 색은 갈색(--docs) — 빠른 메뉴 · 앱 전환의 그림 칸에만. 화면의 버튼은 포털의 기본(짙은 잉크)을 쓴다. 누르는 곳은 44px 이상. */
:root { --docs: #8A5A2B; --docs-d: #6F4518; --docs-t: #F6EEE4; }
.appicon.docs { background: var(--docs); }
.tile.docs { background: var(--docs-t); color: var(--docs-d); }
.quick-app i.docs { background: var(--docs); }

.dx-page { max-width: 1360px; gap: 16px; }
.dx-crumb { font-size: 13px; color: var(--ink3); }
.dx-crumb a { color: var(--npms-d); }
.dx-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 8px; }
.dx-head > .grow { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dx-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.dx-head p { font-size: 14px; color: var(--ink2); }
.dx-head p b { color: var(--ink); }
.dx-head .btn { height: 44px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.dx-head .btn .ic { width: 16px; height: 16px; }

.dx-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 16px; border-radius: 12px; background: #FEF3C7; color: #78350F; font-size: 14px; line-height: 1.5; }
.dx-banner.dgr { background: var(--dgr-t); color: #8E241E; }
.dx-banner .grow { flex: 1 1 300px; min-width: 0; }
.dx-banner .dx-note { font-size: 13px; }
.dx-banner .linkbtn { color: inherit; text-decoration: underline; min-height: 32px; }

.dx-body { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.dx-list { flex: 999 1 640px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.dx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #EEF1F5; }
.dx-tools .input { flex: 1 1 220px; height: 40px; border-radius: 10px; }
.dx-chips { display: flex; flex-wrap: wrap; flex: 1 1 100%; gap: 8px; } /* 검색 칸 아래 한 줄 전체 — 옆에 끼우면 칩이 줄바꿈될 때 높이를 못 잡고 표 머리글 위에 겹친다(제보 #40) */
.dx-chip { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-size: 13px; white-space: nowrap; }
.dx-chip:hover { background: var(--soft); }
.dx-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.dx-chip b { margin-left: 4px; }
.dx-chip.soon[aria-pressed="false"] { border-color: #F2C76E; color: #78350F; }

.dx-scroll { overflow-x: auto; }
.dx-table { min-width: 760px; }
.dx-tr { display: grid; grid-template-columns: 36px minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr) 104px; gap: 12px; align-items: center;
  padding: 12px 16px; border-top: 1px solid #EEF1F5; }
.dx-tr.head { padding: 10px 16px; border-top: none; background: #F7F9FB; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.dx-tr.head > :last-child { text-align: right; }
.dx-tr.row { cursor: pointer; }
.dx-tr.row:hover { background: var(--soft); }
.dx-tr.row.on { background: #EEF5FF; }
.dx-tr.row:focus-visible { outline-offset: -2px; }
.dx-check { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -6px 0; cursor: pointer; }
.dx-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.dx-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dx-name b { font-size: 14.5px; overflow-wrap: anywhere; }
.dx-name span { font-size: 12.5px; color: var(--ink3); }
.dx-name .dx-meta-m { display: none; }
.dx-cell { min-width: 0; font-size: 13.5px; color: var(--ink2); overflow-wrap: anywhere; }
.dx-cell.scope { font-size: 13px; }
.badge.dx-valid { padding: 3px 9px; font-size: 12.5px; white-space: normal; }
.dx-acts { display: flex; justify-content: flex-end; gap: 6px; }
.dx-acts .iconbtn { width: 44px; height: 36px; border: 1px solid var(--line2); border-radius: 8px; background: var(--surface); color: var(--ink); }
.dx-acts .iconbtn:hover { background: var(--soft); }
.dx-chev { display: none; color: #8A96A6; }
.dx-empty { padding: 36px 20px; text-align: center; font-size: 13.5px; color: var(--ink3); }
.dx-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; border-top: 1px solid #EEF1F5; background: #F7F9FB; font-size: 14px; }
.dx-selbar .grow { flex: 1 1 200px; min-width: 0; color: var(--ink3); overflow-wrap: anywhere; }
.dx-selbar .btn { height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; }

/* 오른쪽 상세 */
.dx-aside { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.dx-aside-head { display: flex; align-items: flex-start; gap: 8px; }
.dx-aside-head h2 { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.dx-preview { position: relative; height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px;
  border-radius: 10px; background: #F2F5F8; border: 1px dashed #C5CDD8; color: var(--ink3); font-size: 13px; text-align: center; }
.dx-preview canvas, .dx-preview img { display: block; max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 1px 4px rgba(23, 33, 46, .2); }
.dx-preview .dx-pages { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(23, 33, 46, .7); color: #fff; font-size: var(--fs-min); }
.dx-dl { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px 10px; margin: 0; font-size: 13.5px; }
.dx-dl dt { color: var(--ink3); }
.dx-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.dx-dl dd.path { font-size: 12.5px; color: var(--ink2); }
.dx-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dx-btns .btn { height: 44px; border-radius: 10px; font-size: 14px; }
.dx-btns .full { grid-column: 1 / -1; }
.dx-hint { font-size: 12.5px; color: var(--ink3); line-height: 1.55; }
.dx-hint b { color: var(--ink2); }
.dx-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid #EEF1F5; }
.dx-sec > b { font-size: 14px; }
.dx-ver { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dx-ver .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.dx-ver .grow span { font-size: 12px; color: var(--ink3); }
.dx-ver b.now { color: var(--ok); margin-left: 4px; }
.dx-ver .linkbtn { min-height: 36px; padding: 0 4px; }
.dx-bundle { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #F7F9FB; font-size: 13px; }
.dx-bundle .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.dx-bundle .grow span { color: var(--ink3); overflow-wrap: anywhere; }
.dx-bundle .linkbtn { min-height: 36px; }
.dx-manage { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-manage .btn { height: 36px; }
.dx-aside .notice { font-size: 12.5px; }

/* 휴대폰 — 아래에서 올라오는 창(nas-kit.js#sheet 의 nas-sheet 모양 그대로, 안만 서류함의 것) */
.dx-sheet { display: flex; flex-direction: column; gap: 12px; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); }
.dx-sheet .nas-grip { align-self: center; }
.dx-sheet-head { display: flex; flex-direction: column; gap: 2px; }
.dx-sheet-head b { font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.dx-sheet-head span { font-size: 13px; color: var(--ink3); line-height: 1.5; }
.dx-sheet .btn { height: 48px; border-radius: 12px; font-size: 14.5px; }
.dx-sheet .btn.lg { height: 52px; font-size: 15px; }
.dx-sheet-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dx-sheet-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; }
.dx-sheet-more .linkbtn { min-height: 44px; padding: 0 6px; color: var(--ink2); font-size: 13.5px; }
.dx-sheet-close { height: 48px; border: none; border-radius: 12px; background: #F2F5F8; color: var(--ink2); font-size: 14.5px; font-weight: 700; }

/* 제출처 표시 · 메일 발송 창 */
.dx-dlg { display: flex; flex-direction: column; gap: 14px; }
.dx-field { display: flex; flex-direction: column; gap: 6px; }
.dx-field > label, .dx-field > .label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.dx-field .hint { font-size: 12.5px; color: var(--ink3); }
.dx-field textarea.input { height: auto; min-height: 104px; padding: 10px 12px; line-height: 1.6; resize: vertical; font-family: inherit; }
.dx-attach { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-attach .dx-pill { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 0 4px 0 10px; border-radius: 999px; background: #EEF1F5; font-size: 13px; }
.dx-attach .dx-pill .iconbtn { width: 28px; height: 28px; }
.dx-attach .dx-add { min-height: 32px; padding: 0 12px; border: 1px dashed #A9B4C2; border-radius: 999px; background: var(--surface); font-size: 13px; }
.dx-to { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); }
.dx-to:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 33, 46, .12); }
.dx-to .dx-pill { display: inline-flex; align-items: center; gap: 2px; min-height: 30px; padding: 0 2px 0 10px; border-radius: 999px; background: #E3EEFB; color: #0B4A8F; font-size: 13px; }
.dx-to .dx-pill .iconbtn { width: 28px; height: 28px; color: inherit; }
.dx-to input { flex: 1 1 200px; min-width: 120px; height: 34px; border: 0; outline: none; background: transparent; font-size: 14px; font-family: inherit; }
.dx-suggest { position: absolute; left: -1px; right: -1px; top: calc(100% + 4px); z-index: 5; display: flex; flex-direction: column; max-height: 260px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); }
.dx-suggest button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 48px; padding: 6px 12px; border: none; border-top: 1px solid var(--line); background: none; text-align: left; }
.dx-suggest button:first-child { border-top: none; }
.dx-suggest button:hover, .dx-suggest button[aria-selected="true"] { background: var(--soft); }
.dx-suggest b { font-size: 13.5px; }
.dx-suggest span { font-size: 12px; color: var(--ink3); }
.dx-suggest .dx-src { font-size: var(--fs-min); font-weight: 700; color: var(--ink3); }
.dx-opts { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #F7F9FB; }
.dx-opts .check { min-height: 36px; color: var(--ink); font-size: 14px; }
.dx-opts .check span b { font-weight: 700; }
.dx-stamp-row { display: flex; align-items: center; gap: 8px; padding-left: 26px; font-size: 13.5px; }
.dx-stamp-row label { flex: none; color: var(--ink2); }
.dx-stamp-row .input { flex: 1; height: 38px; }
.dx-recent { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-recent .dx-chip { height: 32px; }
.dx-preview-text { padding: 10px 12px; border-radius: 10px; background: #F7F9FB; color: #6B7280; font-size: 14px; font-weight: 700; text-align: center; }
.dx-sender { font-size: 12.5px; color: var(--ink3); line-height: 1.6; }
.dx-sender.warn { color: var(--wrn-ink); }
.dx-result { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--ok-t); color: #0F5C2C; font-size: 13.5px; }
.dx-result a { color: inherit; font-weight: 700; overflow-wrap: anywhere; }
dialog.dlg.dx-wide { width: 760px; }

/* 등록 · 수정 · 새 버전 */
.dx-form { max-width: 880px; }
.dx-form .panel-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; }
.dx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.dx-grid .full { grid-column: 1 / -1; }
.dx-drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line2); border-radius: 12px; background: #F7F9FB; }
.dx-drop.over { border-color: var(--ink); background: #EEF2F6; }
.dx-drop .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink3); }
.dx-drop .grow b { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.dx-drop .btn { height: 44px; }
.dx-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dx-bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.dx-radios { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.dx-radios .check { min-height: 40px; color: var(--ink); }
.dx-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink2); }
.dx-inline .input { width: auto; min-width: 0; }
.dx-inline .input.n { width: 84px; }
.dx-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-picked .dx-pill { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 0 2px 0 10px; border-radius: 999px; background: #EEF1F5; font-size: 13px; }
.dx-picked .dx-pill i { font-style: normal; font-size: var(--fs-min); font-weight: 700; color: var(--ink3); margin-right: 4px; }
.dx-picked .dx-pill .iconbtn { width: 28px; height: 28px; }
.dx-search { position: relative; }
.dx-search .dx-suggest { left: 0; right: 0; }
.dx-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.dx-foot .btn { height: 44px; padding: 0 20px; }
.dx-foot .btn.start { margin-right: auto; }

/* 묶음 · 설정 · 사용 기록 */
.dx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dx-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.dx-card h2 { font-size: 16px; font-weight: 700; }
.dx-card ol { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--ink2); line-height: 1.7; }
.dx-card .dx-hint { margin-top: -4px; }
.dx-card .dx-row-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.dx-card .dx-row-btns .btn { height: 40px; }
.dx-order { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; }
.dx-order > div { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 2px 6px 2px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.dx-order > div:first-child { border-top: none; }
.dx-order .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dx-order .iconbtn { width: 40px; height: 40px; }
.dx-order .iconbtn:disabled { opacity: .3; }
.dx-order .input { flex: 1; height: 38px; }
.dx-set { display: flex; flex-direction: column; gap: 16px; max-width: 920px; }
.dx-set .panel-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 20px; }
.dx-kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; font-size: 13.5px; }
.dx-kv dt { color: var(--ink3); }
.dx-kv dd { margin: 0; overflow-wrap: anywhere; }
.dx-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dx-filters .field { min-width: 0; }
.dx-filters .input { height: 38px; }
.dx-log .table { border: none; border-radius: 0; }
.tr.dx-logcols { grid-template-columns: 116px 96px 132px minmax(0, 1.1fr) minmax(0, 2.2fr) 112px; min-width: 900px; }
.tr.dx-logcols span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.tr.dx-logcols .muted { font-size: 12px; }
.tr.dx-logcols .badge { font-size: var(--fs-min); }

@media (max-width: 1100px) {
  .dx-aside { flex-basis: 100%; }
}
@media (max-width: 719px) {
  .dx-page { gap: 12px; }
  .dx-crumb { display: none; }
  .dx-head h1 { font-size: 20px; }
  .dx-head p { display: none; }
  .dx-head .btn { flex: 1 1 auto; height: 44px; padding: 0 12px; }
  .dx-banner { font-size: 13.5px; padding: 12px 14px; }
  .dx-banner .dx-note { display: none; }
  .dx-aside, .dx-tr.head, .dx-selbar, .dx-check, .dx-cell.cat, .dx-cell.scope, .dx-acts { display: none; }
  .dx-list { border-radius: 14px; }
  .dx-tools { padding: 12px; gap: 10px; }
  .dx-tools .input { flex-basis: 100%; height: 44px; font-size: 15px; }
  .dx-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; scrollbar-width: none; }
  .dx-chip { flex: none; height: 36px; }
  .dx-table { min-width: 0; }
  .dx-tr.row { grid-template-columns: minmax(0, 1fr) auto 14px; gap: 10px; min-height: 60px; padding: 8px 14px; }
  .dx-tr.row.on { background: var(--surface); }
  .dx-name b { font-size: 15px; }
  .dx-name .dx-meta-pc { display: none; }
  .dx-name .dx-meta-m { display: inline; }
  .dx-chev { display: block; }
  .dx-grid { grid-template-columns: minmax(0, 1fr); }
  .dx-form .panel-body { padding: 14px 16px 16px; }
  .dx-foot .btn { flex: 1; }
  .dx-foot .btn.start { flex-basis: 100%; margin-right: 0; }
  .dx-stamp-row { padding-left: 0; flex-wrap: wrap; }
  .dx-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dx-kv dd { margin-bottom: 8px; }
  .dx-log .table-scroll { overflow-x: auto; }
}
