@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --paper: #ffffff;
  --desk: #e9e7e2;       /* 문서 바깥 */
  --sub: #f4f3f0;
  --line: #cfccc5;
  --line-2: #e2dfd9;
  --ink: #1f1f1d;
  --ink-2: #55534e;
  --ink-3: #8a877f;
  --wf: #f7f7f5;         /* 와이어 면 */
  --wf-2: #dcdcd8;
  --wf-3: #a9a9a4;
  --field: #2f5d3a;      /* 주 색: 들판 녹색 */
  --field-2: #e4ede5;
  --mark: #c2410c;       /* 설명 번호 */
  --mark-2: #fdebe2;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Pretendard', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--desk); }
body { font-family: var(--sans); color: var(--ink); font-size: 13px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* 산출물 문서 틀 (화면설계서·ERD·내역서 공통) */
.doc { width: 1440px; background: var(--paper); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.dochead { display: grid; grid-template-columns: 220px 1fr 150px 150px 120px; border-bottom: 2px solid var(--ink); flex: none; }
.dochead > div { padding: 8px 14px; border-right: 1px solid var(--line); min-width: 0; }
.dochead > div:last-child { border-right: 0; }
.dochead small { display: block; font-size: 10.5px; color: var(--ink-3); letter-spacing: .02em; }
.dochead b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dochead .t b { font-size: 15px; font-weight: 700; }

.stamp { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: var(--ink-3); background: rgba(255,255,255,.92); padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 3px; z-index: 50; }

/* 설명 번호 */
.n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mark); color: #fff; font: 600 11px var(--mono); flex: none; }
