/* ============================================================
   서식 화면 — 콘솔(index-v2)과 같은 디자인 언어
   토큰은 dkj-tokens.css 에 있다. 클래스 이름은 엔진이 생성하므로 보존한다.
   기준: 12인치 태블릿 가로 1280x800, 장갑 터치
   ============================================================ */

.dkj-form-page {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 48px;
  font-family: "Noto Sans KR", "맑은 고딕", "Malgun Gothic", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.dkj-form-page * { box-sizing: border-box; }

/* ---------- 헤더 ---------- */
.dkj-form-header {
  background: var(--nh-green);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dkj-form-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.dkj-form-header h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.dkj-form-header p {
  margin: 3px 0 0;
  font-size: 12.5px;
  opacity: .85;
}

/* 헤더 안의 ghost 버튼은 녹색 위에 얹히므로 반전 */
.dkj-form-header .pill-btn.ghost {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.dkj-form-header .pill-btn.ghost:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

/* ---------- 본문 ---------- */
.dkj-form-body { padding: 20px 0 0; }

.dkj-form-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
  position: sticky;
  top: 72px;
  z-index: 30;
  background: var(--bg);
  padding: 10px 0;
}

.dkj-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-right: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
}

.dkj-status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--nh-yellow);
  flex: 0 0 9px;
}

.dkj-status.saved { border-color: var(--st-done-line); color: var(--st-done); }
.dkj-status.saved .dot { background: var(--st-done); }

/* ---------- 패널 ---------- */
.dkj-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.dkj-panel h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
  color: var(--nh-green-ink);
  letter-spacing: -.02em;
  border-bottom: 2px solid var(--nh-green-50);
  padding-bottom: 10px;
}

.dkj-panel.history { background: #fbfcfb; }

/* ---------- 입력 필드 ---------- */
.dkj-field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.dkj-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dkj-field.full { grid-column: 1 / -1; }

.dkj-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.dkj-field input,
.dkj-field select,
.dkj-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  min-height: 46px;
}

.dkj-field input:focus,
.dkj-field select:focus,
.dkj-field textarea:focus {
  outline: 2px solid var(--nh-green);
  outline-offset: -1px;
  border-color: var(--nh-green);
}

.dkj-field textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.6;
}

.dkj-field input:disabled,
.dkj-field select:disabled,
.dkj-field textarea:disabled {
  background: #f6f8f7;
  color: var(--ink-3);
}

/* ---------- O/X 터치 (구 ox 엔진) ---------- */
.ox-grid { display: flex; flex-direction: column; gap: 10px; }

.ox-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fbfcfb;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
}

.ox-row label { font-size: 15px; font-weight: 600; line-height: 1.45; }

.ox-row small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
  margin-top: 3px;
}

.ox-btns { display: flex; gap: 8px; }

.ox-btn {
  min-width: 58px;
  min-height: var(--tap);
  border: 2px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink-3);
  font-family: inherit;
  transition: background .12s, border-color .12s, color .12s;
}

.ox-btn[data-v="O"].on {
  background: var(--st-done-bg);
  border-color: var(--st-done);
  color: var(--st-done);
}

.ox-btn[data-v="X"].on {
  background: var(--st-ng-bg);
  border-color: var(--st-ng);
  color: var(--st-ng);
}

.ox-btn[data-v="-"].on {
  background: var(--st-off-bg);
  border-color: var(--st-off);
  color: var(--st-off);
}

/* ---------- 종합판정 ---------- */
.judge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.judge-btn {
  min-height: 60px;
  border: 2px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  font-size: 17px;
  font-weight: 800;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
}

.judge-btn.ok.on {
  background: var(--st-done);
  border-color: var(--st-done);
  color: #fff;
}

.judge-btn.ng.on {
  background: var(--st-ng);
  border-color: var(--st-ng);
  color: #fff;
}

/* ---------- 저장 이력 ---------- */
.dkj-history-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  margin-bottom: 10px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.dkj-history-item strong { font-weight: 700; }
.dkj-history-item .meta { font-size: 13px; }
.dkj-history-item .meta strong { display: block; font-size: 15px; margin-bottom: 4px; }

.dkj-link-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- 공정 흐름 바 (CCP 화면) ---------- */
.process-bar-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
  padding-bottom: 4px;
}

.process-bar { display: flex; gap: 5px; min-width: max-content; padding: 4px 0; }

.process-step {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 10px 8px;
  border-radius: var(--r-s);
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
}

.process-step.active {
  background: var(--nh-green-50);
  border-color: var(--nh-green);
  color: var(--nh-green-ink);
  font-weight: 700;
}

.process-step.ccp { border-style: dashed; }

.process-step.ccp.active {
  background: var(--st-ng-bg);
  border-color: var(--st-ng);
  color: var(--st-ng);
}

.process-num { display: block; font-size: 10px; opacity: .7; }
.process-label { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; }

.process-ccp {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: var(--st-ng);
  margin-top: 2px;
}

/* ---------- 프리셋 칩 ---------- */
.preset-row,
.product-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.preset-chip,
.product-chip {
  padding: 0 16px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
}

.preset-chip:hover,
.product-chip:hover { border-color: var(--nh-green); color: var(--nh-green-dark); }

.product-chip.on,
.preset-chip:active {
  background: var(--nh-green);
  color: #fff;
  border-color: var(--nh-green);
}

.linked-products { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.linked-products .tag {
  font-size: 11.5px;
  padding: 4px 10px;
  background: var(--nh-green-50);
  color: var(--nh-green-ink);
  border-radius: 6px;
  font-weight: 600;
}

.btn-lot {
  margin-top: 4px;
  font-size: 12px;
  padding: 8px 12px;
  border: 1px dashed var(--nh-green);
  background: var(--nh-green-50);
  color: var(--nh-green-dark);
  border-radius: var(--r-s);
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

/* ---------- CCP 모니터링 표 ---------- */
.mon-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.mon-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
}

.mon-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 13.5px;
}

.mon-table th {
  background: var(--nh-green-50);
  color: var(--nh-green-ink);
  padding: 10px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}

.mon-table td {
  padding: 7px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: center;
}

.mon-table .mon-in {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  font-size: 14.5px;
  font-family: inherit;
  box-sizing: border-box;
}

.mon-table .mon-in.bad {
  border-color: var(--st-ng);
  background: var(--st-ng-bg);
  color: var(--st-ng);
  font-weight: 700;
}

.mon-judge { font-weight: 800; font-size: 17px; }
.mon-judge.ok { color: var(--st-done); }
.mon-judge.ng { color: var(--st-ng); }

/* ---------- 잠금 상태 ---------- */
.dkj-form-body.is-locked .dkj-panel { background: #fbfcfb; }

.dkj-form-body.is-locked .dkj-panel:first-of-type::after {
  content: "작성완료 — 잠긴 기록입니다";
  display: block;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: var(--r-s);
  background: var(--st-done-bg);
  color: var(--st-done);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
  .dkj-field-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .dkj-field-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 14px; }
  .dkj-form-toolbar { top: 0; }
}

@media (max-width: 640px) {
  .dkj-field-grid { grid-template-columns: 1fr; }
  .ox-row { grid-template-columns: 1fr; }
  .ox-btns { justify-content: flex-end; }
  .judge-row { grid-template-columns: 1fr; }
}

@media print {
  /* 실제 인쇄는 dkj-print.css 의 screen-only / print-sheet 규칙을 따른다 */
  .dkj-form-header .pill-btn,
  .dkj-form-toolbar,
  .dkj-panel.history,
  .site-header {
    display: none !important;
  }
}

/* ---------- 공통 네비게이션 (주기별 서식 이동) ---------- */
#dkjNav {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--nh-green-dark);
}

.nv-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}

.nv-home {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
}

.nv-home:hover { background: rgba(255, 255, 255, .28); }

.nv-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-width: 0;
}

.nv-tab {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-s);
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.nv-tab:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nv-tab.on { background: #fff; color: var(--nh-green-dark); }

.nv-toggle {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: var(--r-s);
  background: transparent;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.nv-drop {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(5, 67, 31, .1);
}

.nv-drop.open { display: block; }

.nv-panel {
  display: none;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px 18px;
  gap: 8px;
  flex-wrap: wrap;
}

.nv-panel.on { display: flex; }

.nv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nv-link:hover { border-color: var(--nh-green); color: var(--nh-green-dark); }

.nv-link.here {
  background: var(--nh-green-50);
  border-color: var(--nh-green);
  color: var(--nh-green-ink);
  font-weight: 800;
}

.nv-ccp {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: var(--st-ng);
  border-radius: 999px;
  padding: 2px 7px;
}

/* 네비가 생겼으므로 폼 헤더/툴바 고정 위치를 내린다 */
.dkj-form-header { top: 52px; }
.dkj-form-toolbar { top: 124px; }

@media (max-width: 900px) {
  .nv-bar { padding: 0 14px; }
  .nv-panel { padding: 12px 14px 16px; }
  .dkj-form-toolbar { top: 52px; }
}

@media print {
  #dkjNav { display: none !important; }
}

/* ---------- 전자결재 · 감사이력 ---------- */
.apv-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.apv-stage {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 118px;
}

.apv-stage.done {
  border-color: var(--st-done-line);
  background: var(--st-done-bg);
}

.apv-lab { font-size: 12.5px; font-weight: 800; color: var(--ink-3); }
.apv-name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
/* 로그인 서명자와 폼 결재란에 적힌 이름이 다를 때만 나온다 — 심사에서 확인할 수 있게 */
.apv-claimed { font-size: 11px; color: #b45309; margin-top: 2px; }
/* 결재 권한이 없어 단계가 잠겼을 때의 사유 */
.apv-deny { font-size: 11px; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }
.apv-at { font-size: 12.5px; color: var(--ink-3); margin-bottom: auto; }

.apv-mark {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--st-done);
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
}

.apv-btn { align-self: flex-start; min-height: 42px; }

.apv-verify {
  border-radius: var(--r-s);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.apv-verify.ok { background: var(--st-done-bg); color: var(--st-done); }
.apv-verify.ng { background: var(--st-ng-bg); color: var(--st-ng); }

.apv-log summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 8px 0;
}

.apv-log-list {
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}

.apv-log-row {
  display: grid;
  grid-template-columns: 116px 58px 90px 1fr 72px;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.apv-log-row:last-child { border-bottom: 0; }
.apv-log-at { color: var(--ink-3); }

.apv-log-act {
  font-weight: 800;
  color: var(--nh-green-dark);
  font-size: 11.5px;
}

.apv-log-by { font-weight: 700; }
.apv-log-dt { color: var(--ink-2); }

.apv-log-h {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
}

@media (max-width: 900px) {
  .apv-stages { grid-template-columns: 1fr; }
  .apv-log-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phase 1: 빠른 작성 도구 & 상용구 칩 스타일 ---------- */
.dkj-btn-all-pass {
  background: var(--nh-green, #009a44) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(0, 154, 68, 0.28);
}
.dkj-btn-all-pass:hover {
  background: var(--nh-green-dark, #008239) !important;
}

.dkj-btn-clone-prev {
  font-weight: 700 !important;
}

.dkj-preset-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 2px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 2px;
}

.dkj-preset-chips::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.dkj-chips-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-3, #72808c);
  margin-right: 2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.dkj-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f6f3;
  border: 1px solid #cde0d5;
  color: #1e5237;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.dkj-chip:hover {
  background: #deeee4;
  border-color: var(--nh-green, #009a44);
  color: #00662d;
  transform: translateY(-1px);
}

.dkj-chip:active {
  background: #c8e4d2;
  transform: scale(0.96);
}

.dkj-chip.active {
  background: var(--nh-green, #009a44) !important;
  color: #fff !important;
  border-color: var(--nh-green-dark, #007a34) !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(0, 154, 68, 0.28);
}

/* 모바일, 아이폰, iPad, 안드로이드 태블릿 정렬 최적화 */
@media (max-width: 640px) {
  .dkj-preset-chips {
    gap: 4px;
    margin-top: 4px;
  }
  .dkj-chip {
    padding: 4px 9px;
    font-size: 11px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .dkj-preset-chips {
    gap: 5px;
  }
}

/* 플로팅 토스트 알림 */
.dkj-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: rgba(23, 36, 50, 0.95);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.dkj-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dkj-toast__icon {
  font-size: 15px;
}

/* ---------- 공통 빠른 이동 플로팅 버튼 (이전 / 홈) ---------- */
.dkj-quick-nav {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482000;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(0, 107, 63, .22);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(12, 55, 33, .2);
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
}
.dkj-quick-nav__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  background: #fff;
  color: #17633f;
  font: 800 13px/1 inherit;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.dkj-quick-nav__button + .dkj-quick-nav__button {
  border-left: 1px solid #dbe8e0;
}
.dkj-quick-nav__button:hover,
.dkj-quick-nav__button:focus-visible {
  background: #edf8f1;
  color: #005b35;
  outline: none;
}
.dkj-quick-nav__icon {
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.dkj-quick-nav__home .dkj-quick-nav__icon {
  font-size: 17px;
}
.dkj-quick-nav__reload {
  padding: 0 10px;
  color: #17633f;
}
.dkj-quick-nav__reload:hover {
  color: #008744;
  background: #eef8f2;
}
.dkj-quick-nav__reload.is-spinning svg {
  animation: dkj-spin .6s linear infinite;
}
@keyframes dkj-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 640px) {
  .dkj-quick-nav {
    right: 12px;
    bottom: 12px;
    border-radius: 12px;
  }
  .dkj-quick-nav__button {
    height: 38px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }
  .dkj-quick-nav__reload {
    padding: 0 8px;
  }
}
@media print {
  .dkj-quick-nav {
    display: none !important;
  }
}

/* ---------- DKJ-H-01-01 입력 편의 및 시간 모달 ---------- */
.dkj-time-modal {
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  max-width: min(500px, calc(100vw - 24px));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}
.dkj-time-modal::backdrop {
  background: rgba(14, 31, 24, .55);
  backdrop-filter: blur(2px);
}
.dkj-time-modal__card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  overflow: hidden;
}
.dkj-time-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.dkj-time-modal__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--nh-green-ink);
}
.dkj-time-modal__close {
  border: 0;
  background: #f0f4f2;
  color: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dkj-time-modal__close:hover {
  background: #e0e8e4;
}
.dkj-time-modal__body {
  padding: 8px 0 16px;
}
.dkj-time-auto-box {
  background: #f4f8f5;
  border: 1px solid #cde0d5;
  border-radius: var(--r-s);
  padding: 12px;
  margin-bottom: 14px;
}
.dkj-time-auto-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--nh-green-ink);
  margin-bottom: 8px;
}
.dkj-time-select {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}
.dkj-time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 2px;
}
@media (max-width: 480px) {
  .dkj-time-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.dkj-time-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid #d0dcd4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.dkj-time-chip-btn:hover {
  border-color: var(--nh-green);
  background: #f0f7f3;
}
.dkj-time-chip-btn.active {
  background: var(--nh-green);
  border-color: var(--nh-green-dark);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 154, 68, .3);
}
.dkj-time-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* 테이블 내 콤보 선택기 (유효염소, 침지) */
.mon-select-group {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  width: 100%;
}
.mon-select-group .mon-in {
  flex: 1;
  min-width: 0;
}
.mon-select-group .mon-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: #f8faf9;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.mon-select-group .mon-mode-btn:hover {
  background: #eef5f1;
  border-color: var(--nh-green);
}

