:root {
  --bg: #f4f6f9; --panel: #fff; --ink: #1d2330; --muted: #6b7280; --line: #d9dde3;
  --brand-blue: #1565c0; --brand-red: #d32027; --steel-900: #0d1a2b; --steel-700: #1a3150;
  --accent: var(--brand-blue); --accent-ink: #fff; --warn: #b45309; --bad: #b91c1c; --ok: #15803d;
  --head: #eef1f5; --adj: #fff4d6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.45 "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { padding: 16px 20px 40px; }
h1 { font-size: 20px; margin: 4px 0 12px; }
h2 { font-size: 16px; margin: 20px 0 8px; }

/* 상단 바: 흰 바탕 + 로고 + 로고의 빨간 밑줄 */
.top { display: flex; align-items: center; gap: 24px; background: #fff; color: var(--ink); padding: 0 20px;
  min-height: 56px; flex-wrap: wrap; border-bottom: 3px solid var(--brand-red); box-shadow: 0 1px 4px rgba(13,26,43,.08); }
.top a { color: var(--ink); }
.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--steel-900); }
.top .brand img { height: 30px; display: block; }
.top .brand span { font-size: 13px; color: var(--muted); font-weight: 600; padding-left: 10px; border-left: 1px solid var(--line); }
.top .brand:hover { text-decoration: none; }
.top nav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; align-items: stretch; align-self: stretch; }
.top .modules-nav a { display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 15px;
  border-bottom: 3px solid transparent; margin-bottom: -3px; }
.top .modules-nav a:hover { color: var(--brand-blue); text-decoration: none; }
.top .modules-nav a.active { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }
.top .who { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.top .who a { color: var(--muted); }
.top button.link { color: var(--brand-blue); }
.subnav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding: 9px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.subnav a { color: var(--ink); }
.subnav a.active { font-weight: 700; color: var(--brand-blue); }
.subnav .sep { width: 1px; height: 16px; background: var(--line); }

/* 메인 */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px;
  align-items: center; padding: 28px 32px; margin: -16px -20px 24px; color: #fff;
  background: linear-gradient(120deg, var(--steel-900), var(--steel-700)); }
.hero-text .eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: 3px; color: #8fb8e8; font-weight: 700; }
.hero-text h1 { font-size: 26px; margin: 0 0 6px; }
.hero-text .date { color: #b6c4d6; margin: 0 0 20px; }
.hero-art { width: 100%; aspect-ratio: 410 / 208; max-height: 240px; object-fit: cover; object-position: 58% 50%;
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px 14px; }
.kpi-label { display: block; font-size: 12px; color: #b6c4d6; }
.kpi-value { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi-value small { font-size: 12px; font-weight: 600; color: #b6c4d6; margin-left: 2px; }

.section-title { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 16px; background: var(--brand-red); border-radius: 2px; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 28px; }
.module-card.locked { opacity: .7; background: #fafbfc; }
.top .modules-nav a.locked { color: #9aa4b2; }
.module-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px; background: var(--panel);
  border: 1px solid var(--line); border-top: 4px solid #9aa4b2; border-radius: 10px; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.module-card.ready { border-top-color: var(--brand-blue); }
.module-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13,26,43,.12); }
.module-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #e8f0fb; color: var(--brand-blue); }
.module-card:not(.ready) .module-icon { background: #eef1f5; color: #6b7280; }
.module-icon svg { width: 26px; height: 26px; }
.module-title { font-size: 20px; font-weight: 800; }
.module-desc { color: var(--muted); }
.module-go { margin-top: auto; font-weight: 700; color: var(--brand-blue); }
.module-card:not(.ready) .module-go { color: var(--muted); }
.badge { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #fef3c7; color: var(--warn); }
.module-card .badge { position: absolute; top: 18px; right: 18px; }

.flow-board { display: flex; gap: 0; align-items: stretch; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.flow-step { flex: 1 1 0; min-width: 120px; padding: 16px 18px; position: relative; }
.flow-step + .flow-step { border-left: 1px solid var(--line); }
.flow-step + .flow-step::before { content: "›"; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--brand-red); font-weight: 800; font-size: 18px; line-height: 1; }
.flow-name { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.flow-qty { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.flow-step.fin { background: #f0f6ff; }
.flow-step.fin .flow-qty { color: var(--brand-blue); }
.help-note { color: var(--muted); font-size: 12px; margin-top: 8px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 22px 16px; margin: -16px -16px 20px; }
  .hero-art { max-height: 180px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modules { grid-template-columns: 1fr; }
  main { padding: 16px 16px 40px; }
}

/* 로그인 */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); background: #fff; }
.login-visual { position: relative; overflow: hidden; background: var(--steel-900); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.login-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 40%; }
.login-art.photo { object-position: 58% 50%; filter: saturate(1.05) contrast(1.05); }
.login-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,26,43,0) 35%, rgba(13,26,43,.92) 100%); }
.login-copy { position: relative; z-index: 1; padding: 40px 48px 48px; max-width: 640px; }
.login-copy .eyebrow { margin: 0 0 10px; letter-spacing: 4px; font-size: 12px; font-weight: 700; color: #8fb8e8; }
.login-copy h1 { font-size: 36px; line-height: 1.25; margin: 0 0 12px; }
.login-copy .lead { margin: 0 0 22px; color: #c9d5e4; font-size: 15px; }
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.flow li { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 13px; font-weight: 600; }
.flow li + li::before { content: "→"; margin-right: 8px; color: #ff8a80; }
.login-panel { display: grid; place-items: center; padding: 40px 24px; border-top: 6px solid var(--brand-red); }
.login-box { width: 100%; max-width: 380px; }
.login-logo { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 0 28px; }
.login-box h2 { font-size: 22px; margin: 0 0 4px; }
.login-box > .muted { margin: 0 0 24px; }
.login-form { display: flex; flex-direction: column; gap: 6px; }
.login-form label { font-weight: 600; font-size: 13px; margin-top: 8px; }
.login-form input { width: 100%; padding: 11px 12px; font-size: 15px; border: 1px solid #c8ced6; border-radius: 6px; }
.login-form input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(21,101,192,.15); }
.login-btn { margin-top: 18px; padding: 12px; font-size: 16px; font-weight: 700; border-radius: 6px; }
.login-btn:hover { background: #0f4f99; }
.login-error { background: #fdecec; color: var(--bad); border: 1px solid #f5c2c2; padding: 10px 12px; border-radius: 6px; margin-bottom: 4px; }
.login-foot { margin-top: 28px; color: var(--muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 860px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 300px; }
  .login-visual::after { background: linear-gradient(180deg, rgba(13,26,43,.45) 0%, rgba(13,26,43,.92) 70%); }
  .login-copy { padding: 24px 20px 28px; }
  .login-copy h1 { font-size: 26px; }
  .login-panel { padding: 32px 16px 40px; }
}

.pid { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.pid b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.steps { display: flex; flex-wrap: wrap; gap: 4px; }
.step { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; font-size: 13px; }
.step-name { background: var(--head); padding: 1px 6px; }
.step-qty { padding: 1px 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.step.zero .step-qty { color: #b6bcc5; font-weight: 400; }
.step.fin { border-color: #93c5fd; }
.step.fin .step-name { background: #dbeafe; }
.step.bad .step-qty { color: var(--bad); }
/* 공정별 현재 재고 (엑셀형): 공정 열 너비 고정, 옆으로 길면 가로 스크롤, 차종·부품명·품번은 고정 */
.sheet-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); margin-bottom: 8px; }
table.sheet { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
table.sheet th, table.sheet td { border-width: 0 1px 1px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.sheet col.c-vehicle { width: 90px; } table.sheet col.c-name { width: 170px; } table.sheet col.c-code { width: 130px; }
table.sheet col.c-proc { width: 76px; } table.sheet col.c-total { width: 90px; }
table.sheet th.proc-group { text-align: center; }
table.sheet th.proc { white-space: normal; word-break: keep-all; font-size: 12px; line-height: 1.25; height: 40px; text-align: center; padding: 2px 3px; }
table.sheet th.proc.fin { background: #dbeafe; }
table.sheet .fix { position: sticky; z-index: 1; background: var(--panel); }
table.sheet th.fix { background: var(--head); z-index: 2; }
table.sheet .f1 { left: 0; } table.sheet .f2 { left: 90px; } table.sheet .f3 { left: 260px; box-shadow: 2px 0 0 #9aa3af; }
table.sheet td.zero { color: #b6bcc5; }
table.sheet td.has { background: #eff6ff; font-weight: 700; }
table.sheet td.has.fin { background: #dbeafe; }
table.sheet td.bad { color: var(--bad); font-weight: 700; }
table.sheet td.na, .legend .swatch.na { background: repeating-linear-gradient(135deg, #d1d5db 0 1px, #f3f4f6 1px 6px); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.detail-grid h2 { margin-top: 0; }
/* 매출·매입 거래처 화면: 왼쪽 줄 목록을 넓게, 오른쪽 품명 요약·단가표 */
.detail-grid.wide-left { grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr); }
@media (max-width: 1000px) { .detail-grid.wide-left { grid-template-columns: 1fr; } }
.entry-form { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 14px 0; }
.entry-form h2 { margin: 0 0 8px; }
.entry-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.entry-row label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); font-weight: 600; gap: 2px; }
.entry-row input { width: 110px; }
.entry-row .entry-item_name input { width: 230px; }
.entry-row .entry-memo input { width: 180px; }
.entry-row .entry-qty input, .entry-row .entry-unit_price input, .entry-row .entry-amount input { width: 100px; text-align: right; }
.month-strip td.num { min-width: 80px; }
.neg-row td { color: #c62828; }
.summary-table .info-col { min-width: 380px; white-space: normal; line-height: 1.3; }
.summary-table td.name-col, .summary-table tr.sum td { white-space: nowrap; }
.summary-table tr.grand td { font-weight: 800; }
.calc-note { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.pay-table td.allow { white-space: nowrap; }
.pay-table td.allow input.money { width: 90px; text-align: right; }
.pay-table td.allow input.reason { width: 120px; display: block; margin-top: 2px; }
.att-sheet input.h.auto { background: #e8f1ff; color: #1d4ed8; }
.att-sheet input.h.manual { color: var(--bad); font-weight: 700; background: #fff; }
.att-sheet input.need-reason { outline: 2px solid var(--bad); background: #fff1f2; }
.top .who form { margin: 0; }
button.link { background: none; border: 0; color: #93c5fd; cursor: pointer; padding: 0; font: inherit; }

.msg { padding: 8px 12px; border-radius: 4px; margin-bottom: 10px; background: #e0ecff; }
.msg.success { background: #dcfce7; }
.msg.warning { background: #fef3c7; }
.msg.error { background: #fee2e2; }
/* 저장이 끝나면 화면 가운데 위에 '저장되었습니다.' 가 2초쯤 떴다가 사라짐 (안내 줄은 그대로 남음) */
.save-toast { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 1000;
  background: #166534; color: #fff; font-weight: 700; font-size: 16px; padding: 12px 26px; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); pointer-events: none; animation: save-toast 2.6s ease forwards; }
@keyframes save-toast { 0% { opacity: 0; margin-top: -8px; } 10%, 75% { opacity: 1; margin-top: 0; }
  100% { opacity: 0; visibility: hidden; } }
.errorlist { color: var(--bad); margin: 4px 0; padding-left: 18px; }
.errorlist.nonfield { background: #fee2e2; padding: 8px 8px 8px 26px; border-radius: 4px; }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
input, select, textarea { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
input.qty { width: 90px; text-align: right; }
button, .btn { font: inherit; padding: 5px 12px; border: 1px solid var(--line); background: #fff; border-radius: 3px; cursor: pointer; color: var(--ink); display: inline-block; }
button.danger { background: #fff; color: var(--bad); border-color: #f1b5b5; }
button.danger:hover { background: #fdecec; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.muted { color: var(--muted); }
.bad { color: var(--bad); font-weight: 600; }

table.grid { border-collapse: collapse; background: var(--panel); }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 3px 6px; }
table.grid th { background: var(--head); font-weight: 600; white-space: nowrap; }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.grid td.bal { background: #f8fafc; font-weight: 600; }
table.grid td.remark { white-space: nowrap; }
table.grid td.adj { background: var(--adj); }
table.grid tr.sum td { background: var(--head); font-weight: 700; }
table.grid tr.weekend td.date { color: var(--bad); }
table.grid .group-start { border-left: 2px solid #9aa3af; }
.scroll { overflow: auto; max-height: calc(100vh - 160px); }
.scroll thead th { position: sticky; top: 0; z-index: 1; }
.scroll thead tr:nth-child(2) th { top: 27px; }
table.list { width: 100%; }

.scroll-x { overflow-x: auto; }
.year-table td.num { min-width: 82px; }
.year-table th, .year-table td:first-child { white-space: nowrap; }
.period-pick { display: flex; gap: 6px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg a { padding: 5px 12px; color: var(--ink); background: #fff; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a.on { background: var(--brand-blue); color: #fff; font-weight: 700; }
.seg a:hover { text-decoration: none; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f0f6ff; }
tr.cancelled td { color: var(--muted); text-decoration: line-through; }
tr.cancelled td .badge { text-decoration: none; }
.ship-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .ship-layout { grid-template-columns: 1fr; } }
small.vendor { color: var(--brand-blue); font-weight: 600; }
small.vendor.implied { color: var(--muted); font-weight: 400; }
.dir { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.dir-입고 { background: #e3f0ff; color: var(--brand-blue); }
.dir-출고 { background: #e7f6ec; color: var(--ok); }
.dir-폐기 { background: #fdecec; color: var(--bad); }
td.stock-left { color: var(--brand-blue); }
tr.muted-row td { color: var(--muted); }
select.vendor { max-width: 150px; }
/* 근태표: 토·일·법정공휴일은 빨간색 */
.att-sheet { margin-bottom: 10px; }
.att-sheet th { text-align: center; }
.att-sheet td { padding: 2px 4px; }
.att-sheet td.date { white-space: nowrap; font-weight: 600; min-width: 92px; }
.att-sheet .dow { font-weight: 400; color: var(--muted); }
.att-sheet .hname { display: block; font-size: 11px; font-weight: 600; }
.att-sheet input.t { width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.att-sheet input.h { width: 58px; text-align: right; font-variant-numeric: tabular-nums; }
.att-sheet td.memo { white-space: nowrap; }
.att-sheet td.memo select { width: 74px; }
.att-sheet td.memo input { width: 170px; }
.att-sheet tr.red-day td { background: #fff1f1; }
.att-sheet tr.red-day td.date, .att-sheet tr.red-day .dow, .att-sheet tr.red-day .hname { color: #d32027; }
.att-sheet tr.row-error td { background: #fde2e2; }
.att-sheet .err { display: block; color: var(--bad); font-size: 11px; font-weight: 600; }
.red-text { color: #d32027; font-weight: 700; }
.toolbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.perm-table td.center { text-align: center; }
.perm-table input[type=checkbox] { width: 18px; height: 18px; }
.perm-table tr.inactive td { color: var(--muted); background: #f7f7f8; }
table.lines td { vertical-align: top; }
table.lines select { max-width: 320px; }
table.lines input[type=number] { width: 110px; text-align: right; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand-blue); border-radius: 8px; padding: 12px 16px; }
.stat-label { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-value { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.stat-sub { display: block; color: var(--muted); font-size: 12px; }
.stat.warn { border-left-color: var(--brand-red); }
.menu-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 24px; }
.menu-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.menu-card:hover { border-color: var(--brand-blue); text-decoration: none; box-shadow: 0 4px 14px rgba(13,26,43,.08); }
.menu-card b { font-size: 16px; color: var(--brand-blue); }
.menu-card span { color: var(--muted); font-size: 13px; }
.sectioned fieldset { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px 18px; margin: 0 0 14px; max-width: 980px; }
.sectioned legend { font-weight: 700; padding: 0 6px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 18px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field.wide { grid-column: 1 / -1; }
.field-grid.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .field-grid.cols3 { grid-template-columns: 1fr; } .field.spacer { display: none; } }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; }
.field input[type=checkbox] { align-self: flex-start; width: 18px; height: 18px; }
.form-table th { text-align: left; padding-right: 12px; vertical-align: top; font-weight: 600; }
.form-table td { padding: 3px 0; }
.helptext { color: var(--muted); font-size: 12px; }


.legend { font-size: 12px; color: var(--muted); }
.legend .swatch { display: inline-block; width: 12px; height: 12px; background: var(--adj); border: 1px solid var(--line); vertical-align: middle; }

/* ---- 인쇄 ----------------------------------------------------------------------------
   가로(폭)는 한 장, 세로는 여러 장. static/js/print.js 가 인쇄 직전에 html.printing 을 붙여
   이 모양으로 폭을 재고, A4 세로에 안 들어가면 가로 방향 + 필요하면 축소 배율을 정한다. */
.print-only { display: none; }
@media print {
  .top, .subnav, .no-print, .print-hide { display: none !important; }
}
html.printing, html.printing body { background: #fff !important; }
html.printing body { margin: 0; font-size: 11px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html.printing .top, html.printing .subnav, html.printing .no-print, html.printing .print-hide,
html.printing button, html.printing .btn, html.printing .msg, html.printing .asm-nav,
html.printing p.helptext, html.printing span.helptext { display: none !important; }
html.printing select:has(option[value=""]:checked) { visibility: hidden; }   /* 고르지 않은 칸('—', '전체')은 빈칸으로 */
html.printing .print-only { display: block; }
html.printing .print-head { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 3px; margin-bottom: 6px; }
html.printing main { padding: 0; }
html.printing h1 { font-size: 16px; margin: 0 0 6px; }
html.printing h2 { font-size: 13px; margin: 10px 0 4px; }
html.printing a { color: inherit; text-decoration: none; }
html.printing .toolbar { margin: 0 0 6px; gap: 6px; }
html.printing .seg { border: 0; }
html.printing .seg a:not(.on) { display: none; }
html.printing input:not([type=checkbox]):not([type=radio]), html.printing select, html.printing textarea {
  border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0;
  color: inherit; font: inherit; -webkit-appearance: none; appearance: none; }
html.printing input::placeholder, html.printing textarea::placeholder { color: transparent; }
html.printing input[type=date]::-webkit-calendar-picker-indicator,
html.printing input[type=month]::-webkit-calendar-picker-indicator,
html.printing input[type=time]::-webkit-calendar-picker-indicator { display: none; }
html.printing .scroll, html.printing .scroll-x, html.printing .flow-board { max-height: none !important; overflow: visible !important; }
html.printing .scroll thead th { position: static; }
html.printing thead { display: table-header-group; }   /* 다음 장에도 머리글 */
html.printing tr, html.printing .stat, html.printing .menu-card, html.printing .module-card,
html.printing fieldset { break-inside: avoid; }
html.printing table.grid th, html.printing table.grid td { padding: 2px 4px; }
html.printing .stat, html.printing .menu-card, html.printing .module-card, html.printing .sectioned fieldset { box-shadow: none; }
html.printing .hero-art { display: none; }
