/* KLS-FPMS Web */
:root {
  --bg: #eef1f6;
  --panel: #ffffff;
  --ink: #1e293b;
  --mute: #64748b;
  --line: #d6dce6;
  --line2: #e7ebf1;
  --top: #1f3a5f;
  --top-ink: #e8eef7;
  --acc: #2563eb;
  --acc-ink: #ffffff;
  --head: #e4eaf3;
  --head2: #edf1f7;
  --head-ink: #23344d;
  --sel: #dbe8ff;
  --on: #fff7d6;
  --act: #f3f8f1;
  --d1: #e8f0ff;
  --d1-ink: #1d4ed8;
  --d2: #fde8e8;
  --d2-ink: #c81e1e;
  --d5: #f1ecff;
  --err: #c81e1e;
  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1623; --panel: #151e2d; --ink: #e2e8f0; --mute: #94a3b8; --line: #2a374b; --line2: #223044;
    --top: #0b1220; --top-ink: #dbe4f0; --acc: #3b82f6; --head: #1d2a3d; --head2: #192537; --head-ink: #cfdaea;
    --sel: #1e3a66; --on: #3a3316; --act: #16241b; --d1: #172a4d; --d1-ink: #93b4ff; --d2: #3d1b1b; --d2-ink: #ff9b9b;
    --d5: #2a2145; --err: #ff8080; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1623; --panel: #151e2d; --ink: #e2e8f0; --mute: #94a3b8; --line: #2a374b; --line2: #223044;
  --top: #0b1220; --top-ink: #dbe4f0; --acc: #3b82f6; --head: #1d2a3d; --head2: #192537; --head-ink: #cfdaea;
  --sel: #1e3a66; --on: #3a3316; --act: #16241b; --d1: #172a4d; --d1-ink: #93b4ff; --d2: #3d1b1b; --d2-ink: #ff9b9b;
  --d5: #2a2145; --err: #ff8080; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); overflow: hidden; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }

.btn {
  border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 5px 14px;
  cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; line-height: 1.4;
}
.btn:hover { border-color: var(--acc); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }
.btn.sm { padding: 3px 10px; font-size: 12px; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .25); color: var(--top-ink); }
.btn.ghost:hover { border-color: #fff; }
input, select { border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; background: var(--panel); }
input:focus, select:focus, .fg:focus { outline: 2px solid color-mix(in srgb, var(--acc) 45%, transparent); outline-offset: -1px; }

/* 로그인 화면은 css/login.css (KaiLabsPlatform 로그인 창 복사) */
.login-msg { color: var(--err); min-height: 1em; font-size: 12px; }

/* 틀 */
.app { height: 100%; display: flex; flex-direction: column; }
.top { background: var(--top); color: var(--top-ink); display: flex; align-items: center; gap: 22px; padding: 0 14px; height: 58px; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; font-size: 19.5px; }
.brand img { width: 33px; height: 33px; }
.is-release .brand img { display: none; }   /* Release : 메뉴 탭 왼쪽 타이틀에 회사 로고 뺌 (창 제목줄 · 리본에 이미 있음, 2026-11-03 사용자 지정) */
.brand-t { display: inline-flex; gap: 5px; }   /* 타이틀 뒤 배포버전 - [v202610-0001] (app.js FPMSVersion) */
@media (max-width: 1680px) {                    /* 폭이 모자라면 타이틀 밑 작은 글자로 — 리본 탭이 밀려 줄바꿈되지 않게 */
  .brand-t { flex-direction: column; gap: 0; line-height: 1.2; }
  #brandVer { font-size: 13px; font-weight: 400; }
}
/* Release : 타이틀 없이 "배포버전 - v…" 만, 화면 폭과 상관없이 타이틀 글자 크기로 (2026-11-05 사용자 지정) */
.brand-t.ver-only [data-bind=title] { display: none; }
.brand-t.ver-only #brandVer { font-size: inherit; font-weight: inherit; }
.ribbon-tabs { display: flex; gap: 2px; align-self: flex-end; }
.ribbon-tabs button { background: transparent; border: 0; color: var(--top-ink); font-size: 19.5px; padding: 9px 22px 11px; border-radius: 7px 7px 0 0; cursor: pointer; opacity: .8; }
.ribbon-tabs button:hover { opacity: 1; }
.ribbon-tabs button.on { background: var(--panel); color: var(--ink); opacity: 1; font-weight: 700; }
/* 상단 [조직도] (2026-11-19) : 리본 탭 오른쪽, 탭과 같은 글자 · 테두리 단추 */
.ochart-btn { align-self: center; background: transparent; color: var(--top-ink); border: 1.5px solid currentColor; border-radius: 7px; font-size: 18px; font-weight: 700; padding: 5px 16px; cursor: pointer; opacity: .85; white-space: nowrap; }
.ochart-btn:hover { opacity: 1; background: rgba(255,255,255,.12); }
.top-right { margin-left: auto; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.me { font-size: 12px; opacity: .9; }

.ribbon { background: var(--panel); border-bottom: 1px solid var(--line); display: flex; padding: 4px 6px 0; flex: none; overflow-x: auto; }
.rg { display: flex; flex-direction: column; border-right: 1px solid var(--line2); padding: 0 8px; }
.rg-items { display: flex; gap: 2px; }
.rg-cap { text-align: center; font-size: 16.5px; color: var(--mute); padding: 2px 0 4px; }
.rb { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 114px; padding: 5px 9px; border: 1px solid transparent;
  background: transparent; border-radius: 6px; cursor: pointer; font-size: 18px; white-space: nowrap; }
.rb .ico { font-size: 30px; line-height: 36px; }
.rb:hover { background: var(--head2); border-color: var(--line); }
.rb.soon { opacity: .55; }
.rb:disabled { cursor: default; opacity: .45; }
.rb:disabled:hover { background: transparent; border-color: transparent; }
.rb.cur, .rb.cur:disabled, .rb.cur:disabled:hover { background: var(--sel); border-color: color-mix(in srgb, var(--acc) 45%, transparent); opacity: 1; font-weight: 700; }

.doc-tabs { display: flex; gap: 2px; padding: 6px 8px 0; flex: none; overflow-x: auto; }
.dt { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; background: var(--head2); border: 1px solid var(--line);
  border-bottom: 0; border-radius: 6px 6px 0 0; cursor: pointer; white-space: nowrap; color: var(--mute); font-size: 19.5px; }
.dt.on { background: var(--sel); color: var(--ink); font-weight: 700; box-shadow: inset 0 2px 0 var(--acc); }
.x { border: 0; background: transparent; cursor: pointer; color: var(--mute); font-size: 20px; line-height: 1; padding: 0 3px; border-radius: 4px; }
.x:hover { background: var(--line2); color: var(--ink); }

.docs { flex: 1; min-height: 0; background: var(--panel); border-top: 1px solid var(--line); position: relative; }
.doc { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 8px 10px 10px; gap: 8px; }
.doc-head { display: flex; align-items: center; gap: 10px; margin: 1px 0 0.3px; }   /* 제목 위 1px (+ 화면 안쪽 8px = 9px, 2026-10-23 모든 화면 : 18px → 1/2) · 아래 0.3px (+ 줄 간격 8px = 8.3px — 2026-10-22) */
.doc-head h2 { margin: 0; font-size: 24px; }
.status { flex: none; display: flex; justify-content: space-between; gap: 10px; padding: 3px 10px; font-size: 12px; color: var(--mute);
  background: var(--head2); border-top: 1px solid var(--line); }
.status .err { color: var(--err); font-weight: 600; }
#statusMsg.err { color: var(--err); font-weight: 600; }

/* 조회 줄 */
.tb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 4px 11px; border-right: 1px solid var(--line); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--acc); color: var(--acc-ink); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: -2px; }
/* 비활성 옵션 (2026-11-12 생산부품공정 opt_by_topt) : 흐리게 · 누를 수 없음 */
.seg label.off { pointer-events: none; cursor: default; }
.seg label.off span { opacity: .35; }
.fld { display: inline-flex; gap: 5px; align-items: center; color: var(--mute); }
.fld select, .fld input { color: var(--ink); }
label.chk { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.cnt { color: var(--mute); font-size: 12px; }
.note { color: var(--mute); font-size: 12px; }
.legend { display: inline-flex; gap: 6px; align-items: center; color: var(--mute); font-size: 12px; }
.legend i { width: 12px; height: 12px; border: 1px solid var(--line); border-radius: 2px; display: inline-block; margin-left: 6px; }
.legend i.d1 { background: var(--d1); } .legend i.d2 { background: var(--d2); } .legend i.d5 { background: var(--d5); }

.panes { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pane { min-height: 0; display: flex; flex-direction: column; }
.pane.main { flex: 1 1 60%; }
.pane.sub { flex: 1 1 40%; }
/* 아래 영역 숨김 (계획수립 ☐수동계획일정 미체크, 2026-10-27) — 위 그리드가 끝까지 */
.panes.detail-off > .split, .panes.detail-off > .pane.sub { display: none; }
.panes.detail-off > .pane.main { flex: 1 1 auto !important; }
/* 계획수립 3단 (2026-11-11) : 위 그리드 | [| 공정일자별 투입계획] (늘 보임) | ☑수동계획일정 아래 영역 */
.panes.has-pd > .pane.pdaily { flex: 1 1 40%; min-height: 0; }
.panes.has-pd.detail-off > .split.pd-split { display: block; }
.panes.has-pd.detail-off > .pane.pdaily { flex: 1 1 auto !important; }
.pd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; white-space: nowrap; padding: 0 0 6px; font-size: var(--fs-title); }   /* 조건 줄 = 제목 아래 (2026-11-11), 조회줄과 같은 글자 */
.pd-head input, .pd-head select, .pd-head .btn { font-size: var(--fs-title); }
.pd-title > span { font-size: 1.3em; }                        /* 제목 1.3배 (2026-11-11) */
.pd-head .cnt { font-size: 15.6px; }                          /* 조회건수 1.3배 (12px → 15.6px, 2026-11-11) */
.pd-head .pd-today { padding-left: 8px; padding-right: 8px; }
.pd-head .pd-f { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }
.pd-head select, .pd-head input[type=date] { font-size: var(--fs-cell); }
.pd-grid { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.pd-grid th.pd-off, .pd-grid td.pd-off { background: #f3f4f6; color: #6b7280; }
.pd-grid tr.pd-total td { background: #e8eef8 !important; color: #1d4ed8 !important; font-weight: 800 !important; border-top: 2px solid #9fb3d1; }   /* 일자별 전체 공정 합계 행 = 파랑 굵게 (2026-11-11) */
.pd-grid tr.pd-total td:nth-child(5) { text-align: center; }                      /* 부하율 칸 = "전체합계" */   /* 쉬는 날 (주말 · 공휴일) */
/* 계획수립 [| 공정일자별 투입계획] 수량 · 시간 옵션 · 밑줄 칸 · 투입계획물량 팝업 (2026-11-17) */
.pd-title .pd-unit { display: inline-flex; gap: 12px; margin-left: 14px; font-size: var(--fs-title); font-weight: 700; color: #d32f2f; }
.pd-title .pd-unit label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.pd-title .pd-unit input { accent-color: #d32f2f; width: 16px; height: 16px; }
.pd-grid .pd-lnk { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pd-grid .pd-lnk:hover { color: #1d4ed8; }
.win.pdi-pop { width: min(820px, calc(100vw - 16px)); height: auto !important; max-height: calc(100vh - 16px); overflow: auto; resize: horizontal; }
.pdi-body .pdi-r .gjc-f input { min-width: 0; width: 100%; }
.pdi-body .pdi-r .gjc-f:first-child { flex: 1.6; }
.gjc-grid.pdi-grid { height: auto; max-height: 628px; }   /* 머리 + 20줄 (30px) 넘으면 수직 스크롤 */
.pdi-grid td { padding: 0 8px; text-align: center; color: var(--d1-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdi-grid td.r { text-align: right; }
.gjc-grid.pdi-grid th:first-child { width: 140px; }
.pdi-grid th:nth-child(4) { width: 130px; }   /* 생산품목 (2026-11-17) */
.pdi-grid th:nth-child(6), .pdi-grid th:nth-child(7), .pdi-grid th:nth-child(8) { width: 90px; }
.pdi-grid td.pdi-ct { color: #d32f2f; font-weight: 700; }                 /* 사이클(sec) = 표준사이클 (2026-11-17) */
.pdi-grid th { white-space: nowrap; }
.pdi-grid th:nth-child(2), .pdi-grid th:nth-child(3) { width: 64px; }
.pdi-grid tr.pdi-sum td { position: sticky; bottom: 0; background: #e8eef8; color: #1d4ed8; font-weight: 800; }
.panes.pane-lr { flex-direction: row; }                    /* s.detail_side : 왼쪽 목록 | 오른쪽 detail (2026-11-04) */
.panes.pane-lr > .pane { min-width: 0; }
.panes.pane-lr > .pane.main { flex: 1 1 45%; }
.panes.pane-lr > .pane.sub { flex: 1 1 55%; }
.panes.pane-lr > .edit-pane { margin-left: 10px; }         /* 편집창 = 왼쪽 그리드 바로 오른쪽 */
.panes.d2-side { flex-direction: row; }                    /* s.detail2_side : 왼쪽(메인 | detail 상하) | 오른쪽 detail2 (2026-11-04) */
/* 생산부품공정 [부품복사] · 선택부품복사 팝업창 (2026-11-04) */
.sub-head .sub-cpy { margin-left: auto; padding: 2px 12px; font-size: var(--fs-cell); font-weight: 700; color: #d32f2f; background: #ffe3e3; border-color: #f2b8b8; align-self: center; }
.sub-head .sub-cpy:hover { background: #ffd2d2; }
.sub-head .sub-cpy[hidden] { display: none; }
.sub-head .sub-cpy:disabled { opacity: .45; cursor: default; background: #ffe3e3; }
.win.gjc-pop { width: min(640px, calc(100vw - 16px)) !important; height: auto !important; resize: none; }
.gjc-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 14px; font-size: 15px; }
.gjc-cap { font-weight: 700; color: var(--d1-ink); }
.gjc-r { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.gjc-r.gjc-r3 { display: flex; gap: 14px; }
.gjc-f { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gjc-f span { flex: none; width: 90px; font-weight: 700; }                    /* 칸 앞 글자 폭 같게 = 입력박스 왼쪽 끝 맞춤 */
.gjc-r3 .gjc-f:first-child { flex: 1; }
.gjc-r3 .gjc-f:not(:first-child) { flex: none; }
.gjc-r3 .gjc-f:not(:first-child) span { width: auto; }
.gjc-r3 .gjc-f:nth-child(2) input { flex: none; width: 133px; }               /* 사이즈리스트 : 1/3 늘림 */
.gjc-r3 .gjc-f:nth-child(3) input { flex: none; width: 78px; }                /* 규격 : 1/2 로, 오른쪽 끝에 맞음 */
.gjc-foot-clr { color: #d32f2f; font-weight: 700; border-color: #f2b8b8; background: #ffe3e3; }
.gjc-foot-clr:hover { background: #ffd2d2; }
.gjc-f input { flex: 1; min-width: 0; font-size: 15px; padding: 4px 6px; box-sizing: border-box; background: #f3f4f6; text-align: center; }
/* 구분2 콤보 (2026-11-12) : 입력박스와 같은 크기 · 흰 바탕 (고를 수 있음) */
.gjc-f select { flex: 1; min-width: 0; font-size: 15px; padding: 3px 6px; box-sizing: border-box; background: #fff; text-align: center; text-align-last: center; }
.gjc-hr { width: 100%; margin: 2px 0; border: 0; border-top: 1px solid var(--line); }
/* | 설비별 부하배정 품목 규격 밑줄 · '생산품목 표준공정' 팝업창 (2026-11-17) */
.wr-spec { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wr-spec:hover { color: #1d4ed8; }
.win.wsp-pop { width: min(560px, calc(100vw - 16px)); }
.wsp-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 12px; font-size: 15px; }
.wsp-body .gjc-r { display: flex; gap: 12px; }
.wsp-body .gjc-f { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.wsp-body .gjc-f > span { flex: none; font-weight: 700; white-space: nowrap; }
.wsp-sp { font-size: 13px; color: var(--mute); }
.wsp-body .gjc-f input.wsp-in { background: #fff; }                      /* 작업시간 = 입력박스 (흰 바탕) */
.win.wsp-pop { width: min(640px, calc(100vw - 16px)); }                  /* 둘째 줄 세 칸 (작업수량 · 작업시간 · 사이클타임) */
/* 높이 = 내용만큼 (2026-11-17) : 전에 저장된 창 높이가 작으면 아래 [닫기] 줄이 창 밖으로 나가던 것 — 저장 높이를 쓰지 않음 */
.win.wsp-pop { height: auto !important; max-height: calc(100vh - 16px); overflow: auto; resize: horizontal; }
.gjc-grid.wsp-grid { height: auto; max-height: 340px; }   /* 표준공정 줄 수만큼 (10줄까지 한 번에) */
.wsp-grid th:nth-child(3) { width: 90px; }
.wsp-grid th:nth-child(4) { width: 80px; }
.wsp-grid td.wsp-sh { text-align: right; padding-right: 10px; color: #1d4ed8; font-weight: 700; }   /* 표준시간 (2026-11-17) */
.wsp-grid td { padding: 0 8px; color: var(--d1-ink); }
.wsp-grid td:nth-child(2) { color: #1d4ed8; font-weight: 700; }
.wsp-grid .wsp-ct { text-align: center; background: #fdecec; color: #d32f2f; font-weight: 700; }
.wsp-grid tr.on td { background: #fff7cc; }
.wsp-grid .wsp-none { text-align: center; color: var(--mute); }
.gjc-grid { height: 177px; overflow-y: auto; border: 1px solid var(--line); }   /* 5줄 높이 (머리 + 5줄), 10줄까지 스크롤 */
.gjc-grid table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.gjc-grid th { position: sticky; top: 0; height: 27px; background: var(--head2); font-weight: 700; border-bottom: 1px solid var(--line); }
.gjc-grid th:first-child { width: 52px; }
.gjc-grid td { height: 30px; padding: 0; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); box-sizing: border-box; }
.gjc-grid td:first-child { border-left: 0; }
.gjc-grid .gjc-no { text-align: center; }
.gjc-grid td input { width: 100%; height: 29px; box-sizing: border-box; border: 0; padding: 0 6px; font-size: 15px; text-align: center; background: #fff; color: var(--d1-ink); font-weight: 700; }
.gjc-grid td input:focus { outline: 2px solid var(--acc); outline-offset: -2px; }
.gjc-grid td input::placeholder { font-weight: 400; }
.panes.d2-side > .d2-left { flex: 1 1 64%; min-width: 0; min-height: 0; display: flex; }
.d2-left > .d2-grids { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.panes.d2-side > .sub-col.sub2 { flex: 1 1 36%; }
.d2-left > .edit-pane { margin-left: 10px; }               /* 편집창 = 좌측영역 안 오른쪽 — 열어도 우측 그리드 폭은 그대로 */
/* s.right_blank (2026-11-10 자재(재고)관리) : 우측 빈 영역 "| 야드 레이아웃" (내용은 나중에) */
.panes.d2-side > .rb-right { flex: 1 1 36%; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.rb-right > .rb-body { flex: 1 1 0; min-height: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; }
.d2-grids > .tb { flex: none; margin-bottom: 8px; }           /* 조회 줄 = 좌측영역 그리드 위 (우측영역은 조회 줄 높이부터) */
/* s.right_cells (2026-11-10) : 우측영역 = 좌2 야드 레이아웃 | 우2 셀번지 그리드 (js/yard.js) */
.rb-right > .rb-split { flex: 1 1 0; min-height: 0; display: flex; }
.rb-split > .rb-lay { flex: 1 1 60%; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.rb-split > .rb-cells { flex: 1 1 40%; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.rb-cells > .rb-grid { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }   /* 셀번지 줄이 많아도 그리드 안에서 스크롤 — 화면 아래까지 맞춤 (2026-11-17) */
.rb-cells > .sub-head .rb-cellbtn { margin-left: 6px; }   /* [셀창고편집] · [위치감지] = 셀번지 그리드 머리 (2026-11-17) */
.rb-cells > .sub-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; row-gap: 4px; }   /* 좁으면 단추가 다음 줄로 (2026-11-17) */
.rb-cells > .sub-head .sp { flex: 1; }
.rb-cells > .sub-head .btn { font-weight: 700; align-self: center; }
.rb-cells > .sub-head .btn:disabled { opacity: .45; cursor: default; }   /* [저장] · [초기화] (2026-11-13) — 고치기 전 비활성 */
.rb-cells > .sub-head .rb-detbtn { margin-left: 0; }   /* [위치감지] (2026-11-13) — [셀창고편집] 앞, 둘이 맨 오른쪽 */
.rb-lay > .sub-head .sub-imgat { margin-left: 10px; }
/* ☐셀번지위치 (2026-11-16) = [이미지생성] 옆, Debug + admin 만 (Release 숨김) */
.rb-lay > .sub-head .yd-cellsw { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 14px; font-weight: 700; color: #d32f2f; white-space: nowrap; cursor: pointer; align-self: center; }
.rb-lay > .sub-head .yd-cellsw input { width: 16px; height: 16px; margin: 0; cursor: pointer; }
body.is-release .sub-head [data-ydcellsw] { display: none !important; }
/* 자재(재고)관리 위 영역 좌우 (s.top_cells, 2026-11-12) : 좌 창고 목록 | Splitterbar | 우 | 셀-디지털창고 */
.pane.main.tc-lr { flex-direction: row; }
.tc-lr > .tc-l { flex: 1 1 55%; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tc-lr > .tc-r { flex: 1 1 45%; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tc-lr > .tc-r > .tc-g { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.tc-lr > .edit-pane { margin-left: 10px; }                 /* 편집창 = 위 영역 오른쪽만 (2026-11-16) — 아래 입·출고 이력은 좌측영역 전체 폭 */
.pane.main.tc-lr { min-width: 0; overflow: hidden; }
/* 편집창이 열려 있으면 창고 목록 폭 = 남는 폭 안에서만 (편집창 440 + 간격 + 셀-디지털창고 최소 120px) — Splitterbar 로 정한 폭이 커도 밀려나지 않게 */
.tc-lr:has(> .edit-pane:not([hidden])) > .tc-l { max-width: calc(100% - 590px); }
.tc-lr > .tc-r { min-width: 120px; }
/* 자재(재고)관리 입·출고 이력 조회 줄 (2026-11-17) : ◉전체(분류) ○구역창고 · 조회기간 ~ · [조회] = 그리드 위 왼쪽 */
.dh-bar { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.dh-bar label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.dh-bar input[type="radio"] { width: 16px; height: 16px; margin: 0; }
.dh-bar .dh-cap { margin-left: 8px; color: #d32f2f; }
.dh-bar input[type="date"] { font-size: 15px; padding: 2px 4px; color: #1d4ed8; font-weight: 700; }
.tc-lr > .tc-r > .sub-head .tc-name { margin-left: 10px; color: #1d4ed8; font-weight: 700; }
.tc-lr > .tc-r > .sub-head .tc-name::after { content: attr(data-cap); }   /* [ A: ROUNDBAR ] (app.js tcLoad, 2026-11-13) */   /* | 야드 레이아웃 [이미지생성] · [X] (2026-11-12) = 제목 옆 */
.rb-lay > .rb-body { flex: 1 1 0; min-height: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; }
.yd-wrap { position: relative; }
.yd-wrap > .rb-img { width: 100%; height: 100%; max-width: none; max-height: none; }
.yd-ov { position: absolute; inset: 0; }
.yd-box { position: absolute; box-sizing: border-box; cursor: pointer; border: 1px solid transparent; }   /* 투명한 클릭 칸 */
.yd-box:hover { border-color: #2563eb; background: rgba(37, 99, 235, .12); }
.yd-box.sel { border: 2px solid #e11d48; background: rgba(225, 29, 72, .18); }
.yd-box.tmp { border: 2px dashed #e11d48; background: rgba(225, 29, 72, .12); }
.yd-picking { cursor: crosshair; }
.yd-picking .yd-box { pointer-events: none; }
.win.yd-pop { width: min(430px, calc(100vw - 16px)) !important; height: auto !important; resize: none; }
.yd-form { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 14px; font-size: 15px; }
.yd-mode { display: flex; gap: 10px; align-items: baseline; color: var(--d1-ink); }
.yd-practice { margin-left: auto; font-size: 12px; color: #d32f2f; }
.yd-mode b[data-ymode]::after, .yd-mode b[data-cno]::after { content: attr(data-cap); }
.rb-grid td.yd-c-red { color: #e00000 !important; }  .rb-grid td.yd-c-blue { color: #0000cc !important; }   /* 구역코드 = 야드 그림 도형 선 색 (yard.js, 2026-12-03) */   /* 셀창고 팝업 '수정 : 구역코드 A1' (yard.js, 2026-12-03) */
.yd-f { display: flex; align-items: center; gap: 6px; }
.yd-f > span { flex: none; width: 80px; font-weight: 700; }
.yd-f > input, .yd-f > select { flex: 1; min-width: 0; font-size: 15px; padding: 4px 6px; box-sizing: border-box; }
.yd-f > input[readonly] { background: #f3f4f6; }
.yd-f .btn.on { background: #e11d48; border-color: #e11d48; color: #fff; }
.yd-msg { min-height: 18px; font-size: 13px; color: #1d4ed8; white-space: pre-wrap; }
.yd-msg.bad { color: #d32f2f; }
.rb-body > .rb-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }   /* 그림 = 왼쪽 위 (Left-Top), 비율 그대로 */
.split { flex: none; height: 8px; cursor: row-resize; position: relative; }
.split::after { content: ""; position: absolute; left: 50%; top: 3px; width: 46px; height: 2px; margin-left: -23px; background: var(--line); border-radius: 2px; }
.sub-head { font-weight: 700; padding: 0 0 5px; display: flex; gap: 8px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.sub-head .hint { color: var(--mute); font-weight: 400; font-size: 12px; }
.sub-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* 설비공정능력 아래 영역 = 타입 작업순서 그림 (2026-10-28) : 원본 1.5배 (app.js imgShow), 왼쪽 맞춤 · 위아래 가운데, 넘치면 스크롤 */
.sub-grid.sub-img { align-items: flex-start; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.sub-grid.sub-img img { flex: none; margin: auto 0; max-width: none; }
/* 생산부품공정 (2026-11-09 사용자 지정) : 그림 = 상단 좌측, 제목 바로 뒤 [이미지첨부] (옅은 파랑) */
.doc[data-id="gongjung"] .sub-grid.sub-img img { margin: 0; }
.sub-head .sub-imgat { padding: 2px 12px; font-size: var(--fs-cell); font-weight: 700; color: #1d4ed8; background: #e0ecff; border-color: #b6ccf5; align-self: center; }
.sub-head .sub-imgat:hover { background: #cfe0ff; }
.sub-head .sub-imgat[hidden] { display: none; }
.sub-head .sub-imgat:disabled { opacity: .45; cursor: default; }
/* 생산부품공정 [이미지생성] 뒤 고른 표준부품 레이블 (2026-11-12) : "BW - [대표부품]" · "BW - [50*25]" — 빨강 굵게 */
.sub-head .sub-imgnm { align-self: center; margin-left: 6px; font-size: var(--fs-cell); font-weight: 700; color: #dc2626; white-space: nowrap; }
.sub-head .sub-imgnm[hidden] { display: none; }
.sub-head .sub-imgnm::after { content: attr(data-cap); }   /* 레이블 글자 (app.js imgShow) */
/* [X] = 만든 그림 지우기 (2026-11-12) : [이미지생성] 바로 옆, 빨강 */
.sub-head .sub-imgdel { padding: 2px 8px; margin-left: -2px; font-size: var(--fs-cell); font-weight: 800; color: #dc2626; background: #fff; border-color: #f0b4b4; align-self: center; }
.sub-head .sub-imgdel:hover { background: #fee2e2; }
.sub-head .sub-imgdel[hidden] { display: none; }
.sub-head .sub-imgdel:disabled { opacity: .45; cursor: default; }
/* Release(나스) = [이미지생성]/[이미지저장] · [X] 숨김 — PowerPoint 가 있는 Debug(로컬)에서만 (2026-11-12 사용자 지정) */
body.is-release .sub-head [data-imggen], body.is-release .sub-head [data-imgdel] { display: none !important; }
.sub-head .sub-imgat[data-imggen]::after { content: attr(data-cap); }   /* [이미지생성] ↔ [이미지저장] 글자 (app.js imgGenCap) */

/* 그리드 */
.fg { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); position: relative; overscroll-behavior: contain; }
.fg-t { border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.fg-t th, .fg-t td { height: 27px; padding: 0 6px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fg-t thead th { position: sticky; z-index: 2; background: var(--head); color: var(--head-ink); font-weight: 600; text-align: center;
  border-right-color: var(--line); border-bottom-color: var(--line); }
.fg-t thead th.grp { background: var(--head2); }
.fg-t thead tr.sub th { background: var(--panel); font-weight: 500; color: var(--mute); font-size: 12px; text-align: center; }
.fg-t th.chk, .fg-t td.chk { position: sticky; left: 0; text-align: center; padding: 0; }
/* 입력 칸 (col.inp, 2026-10-28 생산부품공정 설비작업/규격리스트) : 칸을 꽉 채우는 입력 상자, 고친 칸 = 옅은 주황 */
.fg-t td.inp { padding: 1px 2px; }
.fg-t td.inp input.fg-inp { width: 100%; box-sizing: border-box; height: 24px; padding: 0 5px; font: inherit; color: var(--d1-ink);
  border: 1px solid var(--line2); border-radius: 3px; background: #fff; text-align: left; }
.fg-t td.inp input.fg-inp:focus { outline: none; border-color: var(--acc); }
.fg-t td.inp input.fg-inp.dirty { background: #fff3e0; }
.fg-t td.inp input.fg-inp[readonly] { background: transparent; border-color: transparent; }
/* 콤보 칸 (col.sel, 2026-11-12 견적 프로젝트 물량 적용모듈) : 입력 칸과 같은 모양, 글자 가운데 */
.fg-t td.inp select.fg-inp { width: 100%; box-sizing: border-box; height: 24px; padding: 0 2px; font: inherit; color: var(--d1-ink);
  border: 1px solid var(--line2); border-radius: 3px; background: #fff; text-align: center; text-align-last: center; cursor: pointer; }
.fg-t td.inp select.fg-inp:focus { outline: none; border-color: var(--acc); }
.fg-t td.inp select.fg-inp.dirty { background: #fff3e0; }
.fg-t td.inp select.fg-inp:disabled { background: transparent; border-color: transparent; cursor: default; }
/* 카렌다 칸 (col.date, 2026-11-12) · 머리 카렌다 [납기일][투입예상일] */
.fg-t td.inp input.fg-date { text-align: center; padding: 0 2px; }
.sub-head .sub-tools .sub-dt { display: inline-flex; align-items: center; gap: 4px; color: #d32f2f; font-weight: 700; white-space: nowrap; }
.sub-head .sub-tools .sub-dt input { font: inherit; font-weight: 400; color: var(--ink); padding: 2px 4px; border: 1px solid var(--line); border-radius: 4px; }
.fg-t thead th.chk { z-index: 4; }
.fg-t td.chk { z-index: 1; background: var(--panel); }
.fg-t th.chk input, .fg-t td.chk input { margin: 0; vertical-align: middle; cursor: pointer; }
.fg-t tbody tr:hover td { background: color-mix(in srgb, var(--sel) 45%, var(--panel)); }
.fg-t tbody tr.on td { background: var(--on); }
.fg-t tbody tr.sel td { background: var(--sel); }
.fg-t tbody tr.act td { background: var(--act); }
.fg-t tbody tr.act.sel td { background: var(--sel); }
.fg-t tbody tr.plan td { border-bottom-style: dashed; }
.fg-t tbody tr.act td:not(.chk) { color: color-mix(in srgb, var(--ink) 85%, #15803d); }
.fg-t tr.empty td { text-align: center; color: var(--mute); padding: 18px; height: auto; }
.fg-t .a-l { text-align: left; }
.fg-t .a-c { text-align: center; font-variant-numeric: tabular-nums; } .fg-t .a-r { text-align: right; font-variant-numeric: tabular-nums; }
.fg-t td.d1 { background: var(--d1); color: var(--d1-ink); }
.fg-t td.d2 { background: var(--d2); color: var(--d2-ink); }
.fg-t td.d5 { background: var(--d5); }

/* 데시보드 */
.dash { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: linear-gradient(180deg, var(--head2), var(--panel)); }
.kpi-t { color: var(--mute); font-size: 12px; }
.kpi-v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }   /* 숫자 = 가운데 (2026-11-03 사용자 지정) */
/* 생산량 칸 "계획 / 실적" (2026-11-11) : "/" = 가운데, 계획 = 파랑 · 오른쪽정렬, 실적 = 빨강 · 왼쪽정렬 */
.kpi-v.kpi-pa { font-size: 28.8px; display: grid;   /* 숫자 1.2배 (24 → 28.8px, 2026-11-11) */ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline; column-gap: 8px; }
.kpi-pa .kp-p { text-align: right; color: #1d4ed8; }
.kpi-pa .kp-s { color: var(--ink); }
.kpi-pa .kp-a { text-align: left; color: #d32f2f; }
.kpi-v.fc-blue { color: var(--d1-ink); }   /* 프로젝트 · 견적 건수 = 파랑 (2026-11-06 사용자 지정) */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 10px; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.dash { overflow-x: hidden; }
.card h3 { margin: 0 0 6px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.card > div { height: 100%; display: flex; flex-direction: column; }
.c-week > div, .c-stock > div { height: 200px; }
.dash .fg-t th, .dash .fg-t tbody td { font-size: 16px; }   /* 통합데시보드 : 모든 그리드(금주 · 창고 · 프로젝트 · 견적) 16px (2026-10-26 사용자 지정, 금주 색 · 굵게는 app.js cellClass) */
.c-proj > div, .c-est > div { height: 0; flex: 1 1 auto; min-height: 300px; }   /* 아래 줄은 화면 끝까지 (2026-10-26) */
/* 금주 생산 계획 / 실적 : 글자 1.5배 (2026-10-30 사용자 지정) — 제목 14 → 21px, 그리드 16 → 24px, 줄 높이 34 → 46px (칸 폭 1.5배 = app.js) */
.dash .c-week h3 { font-size: 21px; }
.dash .c-week .fg-t th, .dash .c-week .fg-t tbody td { font-size: 24px; height: 46px; }
.dash .c-week .fg-t tbody td.a-ctr { text-align: center; }   /* 계획(A) · 실적(B) 숫자 = 가운데 (2026-10-30, app.js cellClass) */
.c-week > div { height: 240px; }
/* 금주 : 그리드 위 오른쪽 [전주] [당주] · 당일 칸 빨간 박스 (2026-11-03 사용자 지정, app.js weekPaint) */
.c-week .wk-btns { margin-left: auto; display: inline-flex; gap: 4px; align-self: center; font-weight: 400; }
.c-week .wk-btns .btn.on { background: var(--acc); color: var(--acc-ink, #fff); border-color: var(--acc); }
.dash .c-week .fg-t th.wk-today { box-shadow: inset 3px 0 0 #e00, inset -3px 0 0 #e00, inset 0 3px 0 #e00; }
.dash .c-week .fg-t tbody td.wk-today { box-shadow: inset 3px 0 0 #e00, inset -3px 0 0 #e00; }
.dash .c-week .fg-t tbody td.wk-today.wk-last { box-shadow: inset 3px 0 0 #e00, inset -3px 0 0 #e00, inset 0 -3px 0 #e00; }
/* 데시보드 [사업부문] : 두 영역 다음 세 번째 칸 (위 · 아래 두 줄을 차지) — 조직도 모양, 출근 · 로그인 점 */
.dash-grid.has-org { grid-template-columns: 1fr 1fr minmax(300px, 360px); grid-template-rows: auto minmax(300px, 1fr); flex: 1 0 auto; }   /* 남은 높이를 다 씀 → 프로젝트 · 견적 · 사업부문이 화면 아래 끝까지 */
.has-org .c-org { grid-column: 3; grid-row: 1 / span 2; }
/* 좌우 Splitterbar (2026-10-30) : 왼쪽(금주 · 프로젝트) | 막대 10px | 오른쪽(창고 · 견적) | 사업부문 — 왼쪽 폭 = --dlw (끌면 px, 처음엔 반반) */
.dash-grid.has-org { grid-template-columns: var(--dlw, minmax(0, 1fr)) 10px minmax(0, 1fr) minmax(300px, 360px); column-gap: 0; }
/* 왼쪽 (2026-10-30) = 금주 | 위아래 Splitterbar | 프로젝트 — 한 칸으로, 금주 그리드 높이 = --dwh (처음 240px), 프로젝트 = 나머지 */
.has-org .dash-left { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dash-left .kpis { flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 10px; }   /* 집계 = 왼쪽 영역 위 한 줄 — 2026-11-11 생산량 3칸 같은 폭 (프로젝트 · 견적 칸 뺌) */
.dash-left .c-week > div { height: var(--dwh, 240px); }
.dash-left .c-proj { flex: 1 1 auto; }
/* 오른쪽 (2026-10-30) = 창고 | 위아래 Splitterbar 10px | 견적 — 위 · 아래 줄을 한 칸으로, 창고 그리드 높이 = --dsh (처음 200px), 견적 = 나머지 */
.has-org .dash-right { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dash-right .c-stock > div { height: auto; }
.st-l > .g-stock, .st-r > .g-cell { height: var(--dsh, 200px); flex: none; min-width: 0; display: flex; flex-direction: column; }
/* 디지털 창고 안 (2026-10-30) = 창고 목록 | 좌우 Splitterbar | 셀 (금일 입고 · 출고 · 잔고), 처음엔 반반 */
.c-stock .stock-split { flex-direction: row; }
.stock-split > .st-l, .stock-split > .st-r { flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; }
/* 왼쪽 머리 = 제목 · [Refresh] 오른쪽 끝, 오른쪽 머리 = 가운데 [ 창고: 창고명 ] — 두 그리드 위 끝이 맞게 같은 높이 (2026-11-03) */
.st-l > h3 { height: 28px; box-sizing: border-box; align-items: center; white-space: nowrap; }
.st-l .st-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-l .st-refresh { flex: none; }
.st-title { height: 28px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; color: var(--err); font-weight: 700; font-size: var(--fs-title); white-space: nowrap; overflow: hidden; }
.dash-right .c-est { flex: 1 1 auto; }
.c-est h3 { flex-wrap: wrap; row-gap: 2px; }
.est-opts { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 2px 12px; font-size: 18.2px; font-weight: 400; color: #dc2626; }   /* 전체[견+수] · 견적상태 · 수주상태 (2026-11-03) */
.est-opts label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.est-opts input { margin: 0; accent-color: #dc2626; cursor: pointer; }
.dash-hs { flex: none; height: 10px; cursor: row-resize; position: relative; touch-action: none; }
.dash-hs::after { content: ""; position: absolute; left: 50%; top: 4px; width: 46px; height: 2px; margin-left: -23px; background: var(--line); border-radius: 2px; }
.dash-hs:hover::after, .dash-hs.on::after { background: var(--acc); }
.has-org .c-org { grid-column: 4; margin-left: 10px; }
.dash-vs { grid-column: 2; grid-row: 1 / span 2; cursor: col-resize; position: relative; touch-action: none; }
.dash-vs::after { content: ""; position: absolute; top: 50%; left: 4px; height: 46px; width: 2px; margin-top: -23px; background: var(--line); border-radius: 2px; }
.dash-vs:hover::after, .dash-vs.on::after { background: var(--acc); }
.dash-grid:not(.has-org) .dash-vs { display: none; }
/* 제목 줄 : 글자는 꺾지 않고, 폭이 모자라면 덩어리(제목 · 인원 수 · 일자 조회)째 다음 줄로 */
.c-org h3 { font-size: var(--fs-title); align-items: center; flex-wrap: wrap; row-gap: 4px; }
.c-org h3 > span { white-space: nowrap; }
.c-org .org-q { margin-left: auto; display: flex; gap: 6px; align-items: center; font-weight: 400; }
.c-org .org-q input { font-size: var(--fs-cell); padding: 2px 4px; }
.c-org .org-legend { height: auto; flex-direction: row; gap: 12px; align-items: center; color: var(--mute); font-size: 13px; margin-bottom: 6px; }
.c-org .org-list { height: 0; min-height: 300px; flex: 1 1 auto; display: block; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 4px 0; }
.org-dept { font-size: var(--fs-cell); }
.org-dept > summary { cursor: pointer; padding: 4px 8px; font-weight: 700; background: var(--head2); list-style: none; display: flex; gap: 6px; }
.org-dept > summary::before { content: "⊖"; color: var(--mute); }
.org-dept:not([open]) > summary::before { content: "⊕"; }
.org-dept > summary .cnt { margin-left: auto; font-weight: 400; color: var(--mute); }
/* 이름 · 직위는 한 줄로 다 보이게 (칸이 좁으면 전화번호가 … 으로 줄어든다) */
.org-person { display: grid; grid-template-columns: 12px 12px 24px max-content minmax(0, 1fr); gap: 4px; align-items: center; padding: 3px 6px 3px 8px; }
.org-person.off { color: #9aa1ad; }
.org-dot { width: 12px; height: 12px; border-radius: 50%; background: #b8bec9; display: inline-block; }
.org-dot.on { background: #22c55e; }
.org-dot.out { background: #f59e0b; }   /* 세콤 판정 퇴근(정상) — 2026-11-06 */
.org-dot.chk { background: #ef4444; }   /* 세콤 판정 확인필요 · 24시간 초과 · 퇴근만 */
.org-dot.lg.on { background: #3b82f6; }   /* 로그인 점 — 클래스 이름 login 은 login.css 의 .login(로그인 화면)과 겹쳐 lg 로 */
.org-face { width: 24px; height: 24px; }
.org-person .nm { white-space: nowrap; }
.org-person .nm b { font-weight: 700; }
.org-person .nm span { margin-left: 4px; font-size: 13px; }
.org-person .ph { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-empty { padding: 12px; color: var(--mute); text-align: center; }

.erd { flex: 1; border: 1px solid var(--line); border-radius: 4px; width: 100%; background: #fff; }
.soon-box { margin: 40px auto; text-align: center; color: var(--mute); font-size: 15px; line-height: 1.9; }

/* 팝업 (제목 위·아래 갭 좁게) */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }   /* 확인창 = 모든 팝업창(.win 55~70) 위 (2026-10-29, 로그인 150 · 콤보 목록 10050 아래) */
.modal-box { width: min(360px, 100%); background: var(--panel); border-radius: 10px; box-shadow: 0 18px 48px rgba(0, 0, 0, .3); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 6px 14px; font-weight: 700; border-bottom: 1px solid var(--line); }
.modal-body { padding: 8px 14px; display: grid; gap: 8px; }
.modal-body label { display: grid; gap: 3px; font-size: 12px; color: var(--mute); }
.modal-body input { color: var(--ink); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 14px 12px; }

@media (max-width: 900px) {
  .top { height: auto; flex-wrap: wrap; padding: 6px 12px 0; gap: 6px 12px; }
  .brand span { display: none; }
  .me { display: none; }
  .dash-grid, .dash-grid.has-org { grid-template-columns: 1fr; grid-template-rows: none; flex: none; column-gap: 10px; }
  .has-org .c-org, .has-org .dash-left, .has-org .dash-right { grid-column: auto; grid-row: auto; margin-left: 0; }
  .dash-vs { display: none; }
  .doc { padding: 8px 16px 10px; }
}

/* ---------------------------------------------------------------- 글자 크기 규칙 (모든 화면)
 * --fs-title : 리본 버튼 이름(거래처현황) 크기 — 메뉴 탭 · 화면 탭 · 화면 제목 · 제목 아래 조회 줄(옵션 · 콤보 · 입력 · 조회)
 *              조회 버튼 · 화면 제목만 굵게, 나머지는 보통
 * --fs-grid  : 리본 그룹명(표준데이타관리) 크기 — 그리드 머리(굵게) · 그리드 자료(보통)
 */
:root { --fs-title: 18px; --fs-grid: 16.5px; --fs-cell: 16.5px; }   /* --fs-cell = 그리드 · 목록 표 칸 (2026-10-24 15px → 2026-10-29 사용자 지정 16.5px, 모든 화면) */
.ribbon-tabs button, .dt { font-size: var(--fs-title); }
.doc-head h2, .sub-head, .card h3 { font-size: var(--fs-title); font-weight: 700; }
.doc-head h2 { font-size: calc(var(--fs-title) * 1.2); }   /* 화면 제목 = 1.2배 21.6px (2026-10-23 사용자 지정, 모든 화면 — 조회 줄은 18px 그대로) */
.doc-head .btn, .doc-head .cnt { font-size: var(--fs-title); font-weight: 400; }
.tb, .tb input, .tb select, .tb .btn, .tb .cnt, .tb .note, .tb .legend, .sub-head .cnt, .sub-head .hint { font-size: var(--fs-title); font-weight: 400; }
.seg input:checked + span { font-weight: 400; }
.tb .btn[data-run], .doc-head .btn[data-run] { font-weight: 700; }
.tb .cnt[data-cnt], .sub-head .cnt[data-dcnt] { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.fg-t th, .fg-t td, .fg-t thead tr.sub th { font-size: var(--fs-cell); height: 34px; }
.fg-t thead th { font-weight: 700; }
.fg-t thead tr.sub th { font-weight: 400; }
.fg-t tbody td { font-weight: 400; }
.fg-t tbody td.b { font-weight: 700; }
.fg-t tbody tr td.fc-blue:not(.chk) { color: var(--d1-ink); }   /* 실적 줄(tr.act) 색보다 우선 */
.fg-t tbody tr td.fc-red:not(.chk) { color: var(--d2-ink); }
.fg-t thead th.b { font-weight: 800; color: var(--ink); -webkit-text-stroke: .35px currentColor; }
.fg-t th.chk input, .fg-t td.chk input { width: 16px; height: 16px; }
/* ---------------------------------------------------------------- 화면 제목 앞 그림 (리본 버튼과 같은 그림) */
.doc-head h2 { display: flex; align-items: center; gap: 8px; }
.t-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; font-size: 18px;
  background: var(--sel); box-shadow: inset 3px 0 0 var(--acc); }

/* ---------------------------------------------------------------- 즐겨찾기 (왼쪽 목록) */
.work { flex: 1; min-height: 0; display: flex; position: relative; border-top: 1px solid var(--line); }
.work .docs { border-top: 0; }
.fav { flex: none; width: 210px; display: flex; flex-direction: column; background: var(--head2); border-right: 1px solid var(--line); overflow: hidden; }
.fav-off .fav { width: 0; border-right: 0; }
.fav-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 30px 8px 12px; font-size: var(--fs-title); font-weight: 700; white-space: nowrap; }
.fav-list { list-style: none; margin: 0; padding: 0 6px 10px; overflow-y: auto; flex: 1; }
.fav-list button { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid transparent; background: transparent;
  border-radius: 6px; padding: 6px 8px; cursor: pointer; font-size: var(--fs-grid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-list button:hover { background: var(--panel); border-color: var(--line); }
.fav-list .ico, .fw-item .ico { width: 22px; text-align: center; flex: none; }
.fav-empty { color: var(--mute); font-size: 14px; line-height: 1.6; padding: 14px 8px; text-align: center; }
.fav-fold { position: absolute; z-index: 5; top: 8px; left: 199px; width: 22px; height: 30px; padding: 0; border: 1px solid var(--line);
  border-radius: 5px; background: var(--panel); color: var(--mute); cursor: pointer; font-size: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.fav-fold:hover { color: var(--acc); border-color: var(--acc); }
.fav-off .fav-fold { left: 0; border-radius: 0 5px 5px 0; }

/* 즐겨찾기 편집 창 (끌어서 이동) */
/* 팝업창 안 스크롤이 끝나도 뒤 화면으로 넘기지 않음 (2026-11-12 사용자 지정, app.js POP_SEL 휠 처리와 같이) */
.win, .win *, .modal, .modal * { overscroll-behavior: contain; }
.win { position: fixed; z-index: 60; width: min(680px, calc(100vw - 16px)); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 18px 48px rgba(0, 0, 0, .3); display: flex; flex-direction: column; max-height: calc(100vh - 16px); }
.win-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 6px 14px; font-weight: 700;
  font-size: var(--fs-title); border-bottom: 1px solid var(--line); cursor: move; user-select: none; background: var(--head2); border-radius: 10px 10px 0 0; }
.win-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 10px 14px; min-height: 0; flex: 1; }
.fw-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fw-cap { font-weight: 700; margin-bottom: 4px; } .fw-cap small { color: var(--mute); font-weight: 400; }
.fw-list { border: 1px solid var(--line); border-radius: 6px; height: 340px; overflow-y: auto; padding: 4px; user-select: none; }
.fw-grp { font-size: 12px; color: var(--mute); padding: 6px 6px 2px; }
.fw-item { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 5px; cursor: pointer; font-size: 15px; user-select: none; }
.fw-item:hover { background: var(--head2); }
.fw-item.on { background: var(--sel); font-weight: 700; }
.fw-item.has { color: var(--mute); }
.fw-tag { margin-left: auto; font-size: 11px; color: var(--acc); }
.fw-no { width: 20px; text-align: right; color: var(--mute); font-size: 12px; }
.fw-mid { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.fw-order { display: flex; gap: 6px; margin-top: 6px; }
.fw-msg { color: var(--err); margin-right: auto; font-size: 13px; }
.win .modal-foot { align-items: center; }
@media (max-width: 640px) {
  .win-body { grid-template-columns: 1fr; } .fw-mid { flex-direction: row; } .fw-list { height: 180px; }
  .fav { width: 170px; } .fav-fold { left: 159px; }
}.fav-off .doc { padding-left: 30px; }   /* 접혔을 때 ▶ 단추가 제목을 가리지 않게 */

/* ---------------------------------------------------------------- 리본 왼쪽 회사 로고 · 회사명 */
.ribbon-bar { display: flex; flex: none; background: var(--panel); border-bottom: 1px solid var(--line); min-width: 0; }
.ribbon-bar .ribbon { flex: 1; min-width: 0; border-bottom: 0; }
.corp { flex: none; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  padding: 6px 18px; border-right: 1px solid var(--line); white-space: nowrap; }
.corp-top { display: flex; align-items: center; gap: 10px; }
.corp-top img { width: 40px; height: 40px; }
.corp-en { font-size: 22px; font-weight: 800; letter-spacing: .28em; color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; }
.corp-ko { font-size: 18px; font-weight: 700; color: var(--ink); }
.corp.corp-link { cursor: pointer; }                                         /* 누르면 홈페이지 (2026-10-30) */
.corp.corp-link:hover .corp-ko { text-decoration: underline; }
/* 시스템설정 제목 줄 맨 오른쪽 : 홈페이지 [주소][저장] (2026-10-30) */
.doc-head .sys-home { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-body, 18px); }
.doc-head .sys-home b { color: #dc2626; font-weight: 700; }
.doc-head .sys-home input { width: 320px; font: inherit; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; }
.doc-head .sys-home input[readonly] { background: #f3f4f6; }
.doc-head .sys-home .btn { font-weight: 700; }
@media (max-width: 640px) { .corp { display: none; } }
/* ---------------------------------------------------------------- 상단 오른쪽 (로그인 정보 · PW변경 · 로그아웃) = 리본 그룹명 글자 */
.me { font-size: var(--fs-grid); font-weight: 400; opacity: 1; font-family: inherit; }
.top-btn { background: #fff; color: #000; border-color: #fff; font-size: var(--fs-grid); font-weight: 400; padding: 3px 12px; font-family: inherit; }
.top-btn:hover { background: #f1f5f9; border-color: #fff; color: #000; }
/* 위 [출근] / [퇴근] : 기록하면 시각이 붙고 막힘 */
.att-btn { color: #15803d; font-weight: 700; }
.att-btn[data-act=att-out] { color: #b91c1c; }
.att-btn:disabled { opacity: 1; cursor: default; background: #e2e8f0; border-color: #e2e8f0; color: #475569; font-weight: 400; }
/* ---------------------------------------------------------------- 오른쪽 편집 창 ([편집설정]) */
.tb .tb-edit { margin-left: auto; font-weight: 700; }
/* 그리드 위 오른쪽 단추 (s.top_btn, 예 : [설비업데이트]) — 편집설정 바로 앞, 설비가 바뀌었으면 빨간 테두리 (2026-10-22) */
.tb .tb-top { margin-left: auto; font-weight: 700; }
.tb .tb-top ~ .tb-edit { margin-left: 0; }
/* [복사-추가] (2026-10-23 설비공정능력) : [설비업데이트] 왼쪽, 보일 때만 오른쪽 끝으로 밀기 */
.tb .tb-copy { margin-left: auto; font-weight: 700; color: #d32f2f; background: #ffe3e3; border-color: #f2b8b8; }   /* 옅은 빨강 바탕 */
.tb .tb-copy:not(:disabled):hover { background: #ffd2d2; }
.tb .tb-copy[hidden] { display: none; }
.tb .tb-copy:not([hidden]) + .tb-top { margin-left: 0; }
.tb .tb-copy:disabled { opacity: .45; cursor: default; }
.tb .chk.tb-tgtop { margin-left: auto; margin-right: 6px; }   /* toggles top : 오른쪽 단추 묶음 바로 앞 (2026-11-04) */
.tb .tb-tgtop ~ .tb-copy, .tb .tb-tgtop ~ .tb-top { margin-left: 0; }
.tb .chk.tb-tgtop ~ .chk.tb-tgtop { margin-left: 0; }      /* 체크 둘 : 정의공정만 · 작업지시명 나란히 */
.doc[data-id="equipdata"] .fg-t thead tr.sub th.hm { background: var(--head); color: var(--head-ink); font-weight: 700; }   /* 덧붙임 줄부터 병합된 칸 제목 = 보통 머리 색 (opt.extraFirst) */
.tb .tb-top.stale { color: var(--err); border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); background: #fff5f5; }
.tb .tb-top:disabled { opacity: .5; }
.tb .tb-top.tb-off { opacity: 1; color: #9aa3ad; border-color: #c9ced4; box-shadow: none; background: #f1f3f5; cursor: not-allowed; }   /* 편집설정 중 비활성 */
.tb .tb-edit.on { background: #fff; color: var(--acc); border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }   /* 편집모드 = 흰 바탕, 해제 = 원래 색 */
.tb .tb-edit.red { background: #dc2626; border-color: #dc2626; color: #fff; }                    /* [견적설정] · [발주설정] = 빨강 바탕 (2026-10-30) */
.tb .tb-edit.red:hover { background: #b91c1c; border-color: #b91c1c; }
.tb .tb-edit.red.on { background: #fff; color: #dc2626; border-color: #dc2626; box-shadow: inset 0 0 0 1px #dc2626; }
.work-row { flex: 1; min-height: 0; display: flex; gap: 10px; }
/* 줄을 고르면 그리드 위 한 줄 (계획수립 "품명: …  공정: G01 -> …", 2026-10-27) — 고른 줄이 없으면 자리도 없앰 (원래 모양) */
.sel-line:empty { display: none; }
/* 아래 오른쪽 자리만 있는 영역 (계획수립 "미정", 2026-10-27) */
.sub-blank { flex: 1; display: grid; place-items: center; color: var(--mute); border: 1px dashed var(--line); border-radius: 4px; min-height: 80px; }
.sel-line { flex: none; line-height: 1.5; color: #dc2626; font-size: var(--fs-title); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.work-row > .panes { flex: 1; min-width: 0; }
.edit-pane { flex: 0 0 440px; display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 6px;
  background: var(--head2); overflow: hidden; font-size: var(--fs-grid); }
.ep-head { background: var(--top); color: var(--top-ink); text-align: center; font-weight: 700; font-size: var(--fs-title); padding: 6px 8px; }
.ep-code { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ep-code span { flex: 1; color: var(--acc); font-weight: 700; white-space: nowrap; }
.ep-code b { color: var(--ink); }
.ep-add { display: inline-flex; align-items: center; gap: 4px; color: var(--acc); white-space: nowrap; cursor: pointer; }
.ep-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.ep-row { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 8px; }
.ep-lbl { color: var(--acc); font-weight: 700; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-lbl.req::after { content: " *"; color: var(--err); }
.ep-in { display: flex; gap: 6px; min-width: 0; }
.ep-in input, .ep-in select { flex: 1 1 0; min-width: 0; font-size: var(--fs-grid); padding: 4px 7px; text-align: center; }
.ep-in input[readonly] { background: var(--line2); color: var(--mute); }
.ep-sec { margin: 6px 0 2px; padding: 4px; text-align: center; font-weight: 700; background: var(--line2); border-radius: 4px; }
.ep-msg { min-height: 1.4em; padding: 2px 10px; font-size: 14px; color: var(--acc); }
.ep-msg.bad { color: var(--err); font-weight: 600; }
.ep-foot { display: flex; justify-content: space-between; padding: 8px 10px 10px; border-top: 1px solid var(--line); }
.ep-btn { font-size: var(--fs-grid); font-weight: 700; color: var(--acc); background: var(--sel); border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.ep-btn.del { color: var(--err); background: var(--d2); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.ep-btn:disabled { opacity: .45; cursor: default; }
.cf-text { font-size: 15px; line-height: 1.6; padding: 12px 14px; overflow-wrap: anywhere; }   /* 긴 문자열(예 : 공정 목록)도 줄바꿈 */
@media (max-width: 900px) { .work-row { flex-direction: column; } .edit-pane { flex: 0 0 auto; max-height: 60vh; } }
/* 편집 창 — 여러 칸 종류 · 덧붙임 영역 */
.edit-pane .ep-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
/* 편집 창 4 구역 (2026-10-23) : 제목 · 위(관리코드) · 아래(안내 · 선택삭제 · 편집저장)는 고정, 가운데(.ep-scroll)만 세로 스크롤 */
.edit-pane > .ep-head, .edit-pane > .ep-code, .edit-pane > .ep-bottom { flex: none; }
.edit-pane > .ep-bottom { border-top: 1px solid var(--line); background: var(--head2); }
.edit-pane > .ep-bottom .ep-foot { border-top: 0; padding-top: 4px; }
.edit-pane > .ep-bottom > .ep-upd { flex: none; overflow: visible; padding: 8px 10px 2px; }   /* 업데이트정보 = 고정 하단부 맨 위 (2026-11-04, 모든 화면) */
.eqe-host .ep-upd { display: none; }                       /* 설비 기본정보 팝업 : 업데이트정보 숨김 그대로 */
.doc[data-id="company"] .edit-pane .ep-body { gap: 3px; }   /* 거래처현황만 : 입력 줄 사이 6 → 3px (2026-10-23) */
.edit-pane .ep-scroll > .ep-body { flex: none; overflow: visible; }
.ep-row.wide { grid-template-columns: 1fr; }
.ep-in input.ep-nfmt { text-align: right; }                                 /* 숫자 글자칸 (edits F nfmt) = 오른쪽 정렬 + 콤마 (2026-10-29) */
.ep-row.ind { padding-left: 28px; }                                          /* 안으로 들여쓴 줄 (edits ">제목", 2026-10-29 배차 시간 ~ 장축2) */
.ep-heads span { color: var(--mute); font-size: 13px; text-align: center; flex: 1 1 0; }
.ep-chk { display: inline-flex; align-items: center; gap: 4px; color: var(--acc); white-space: nowrap; cursor: pointer; font-size: 14px; flex: none; }
.ep-chk input { width: 16px; height: 16px; }
.ep-radio { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; flex: 1 1 auto; }
.ep-radio label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 15px; white-space: nowrap; }
/* 구분타입 묶음 옵션 (2026-11-18) : ○[ 백관 · 흑관 | NOPAD · PAD ] — 묶음이 아닐 때 흐리게 */
.ep-r2box { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; row-gap: 2px;
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.ep-radio label.ep-off { opacity: .4; cursor: default; }   /* gate 로 막힌 옵션 (2026-11-18 구분타입) */
.ep-ilbl { flex: 0 0 auto; align-self: center; font-weight: 700; white-space: nowrap; }   /* 줄 안 캡션 (2026-11-18 투입대수) */
.ep-r2box > input { grid-row: 1 / span 2; margin: 0; cursor: pointer; }     /* 묶음 ○ = 왼쪽, 오른쪽 위 = 메인(구분) · 아래 = 서브(구분2) */
.ep-r2m, .ep-r2s { display: inline-flex; gap: 10px; }
.ep-r2s { border-top: 1px dashed var(--line); padding-top: 2px; }
.ep-r2box.off .ep-r2m, .ep-r2box.off .ep-r2s { opacity: .45; }
.ep-in select:disabled, .ep-in input:disabled { background: var(--line2); color: var(--mute); }
.ep-gj { width: 100%; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); overflow: hidden; }
.ep-gj .gj-h, .ep-gj .gj-r { display: grid; grid-template-columns: 34px 1.3fr .62fr 1.1fr; gap: 4px; align-items: center; padding: 3px 4px; }
.ep-gj .gj-h { background: var(--top); color: var(--top-ink); font-size: 13px; text-align: center; }
.ep-gj .gj-r { border-top: 1px solid var(--line2); }
.ep-gj .gj-r > span { text-align: center; color: var(--mute); font-size: 13px; }
.ep-gj select, .ep-gj input { font-size: 14px; padding: 2px 3px; min-width: 0; color: var(--d1-ink); }   /* 표준공정 편집 값 = 파랑 (2026-10-28) */
.ep-gj select:disabled, .ep-gj input:disabled { color: var(--d1-ink); opacity: .75; }
.ep-gj input[data-g=name] { text-align: left; text-align-last: left; }   /* 작업명 = 고르기 + 직접 입력, 왼쪽 정렬 (2026-10-28) */
.ep-gj select[data-g=grp] { text-align: left; text-align-last: left; }   /* 표준공정 = 왼쪽 정렬 (2026-11-09), 폭 1.55fr → 1.3fr 로 줄임 (2026-11-09 사용자 지정) */
.ep-gj input[data-g=cyc], .ep-gj input[data-g=cyc]:disabled { font-weight: 700; background: #ffe1e1; }   /* 타임(sec) = 굵게 · 옅은 빨강 바탕 (2026-11-09) */
.ep-extra { border-top: 1px solid var(--line); padding: 4px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.ep-extra > .ep-body { padding: 0; }
.ep-xbar { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ep-info { margin-right: auto; color: var(--mute); font-size: 14px; }
.ep-grid { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.ep-grid table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ep-grid th { position: sticky; top: 0; background: var(--top); color: var(--top-ink); font-weight: 700; padding: 4px 6px; white-space: nowrap; }
.ep-grid td { padding: 3px 6px; border-top: 1px solid var(--line2); text-align: center; white-space: nowrap; }
.ep-grid tr[data-i] { cursor: pointer; }
.ep-grid tr[data-i]:hover td { background: var(--head2); }
.ep-grid tr.on td { background: var(--sel); }
.ep-grid tr.empty td { color: var(--mute); padding: 10px; }
.ep-code .ep-btn { padding: 3px 10px; }.ep-grid tr.pend td { color: var(--acc); font-weight: 600; }

/* 편집 창 강조 구역 (예: 포장/출하 실적처리) — 제목 · 실행 단추 = 검은 글씨 / 살구색 바탕, 구역 안 칸 = 빨간 글씨 */
.ep-sec.hot { background: rgb(246, 182, 155); color: #000; }
.ep-btn.hot { background: rgb(246, 182, 155); color: #000; border-color: rgb(222, 150, 120); }
.ep-btn.hot:disabled { opacity: .55; }
.ep-row.hot-in, .ep-row.hot-in .ep-lbl, .ep-row.hot-in label, .ep-row.hot-in .ep-chk,
.ep-row.hot-in input, .ep-row.hot-in select { color: #f00; }
.ep-row.hot-in input::placeholder { color: rgba(255, 0, 0, .5); }
.ep-row.hot-in input[type=radio], .ep-row.hot-in input[type=checkbox] { accent-color: #f00; }
/* 강조 구역 – 줄 전체 살구색 바탕 · 검은 글씨 (예: 실적 › 공정검사 및 실적) */
.ep-row.hotbg-in { background: rgb(246, 182, 155); margin: 0 -10px; padding: 3px 10px; }
.ep-row.hotbg-in, .ep-row.hotbg-in .ep-lbl, .ep-row.hotbg-in label, .ep-row.hotbg-in .ep-chk,
.ep-row.hotbg-in input, .ep-row.hotbg-in select { color: #000; }
.ep-body > .ep-row.hotbg-in + .ep-row.hotbg-in { margin-top: -6px; }
/* 편집 창 보조 그리드 열 글꼴 */
.ep-grid td.b { font-weight: 700; }
.ep-grid td.fc-blue { color: var(--d1-ink); }
.ep-grid td.fc-red { color: #f00; }
/* 실적 편집창 : 불합격 수량 입력칸 = 글자 2배 · 굵게 · 가운데 */
.doc[data-id="action"] .ep-in input[data-f="E0"] { font-size: calc(var(--fs-grid) * 2); font-weight: 700; text-align: center; padding: 0 4px; line-height: 1.2; }
/* 그리드 열 고정 (opt.freeze) : 왼쪽 칸들이 가로 스크롤해도 그 자리에 */
.fg-t td.fz { position: sticky; z-index: 1; background: var(--panel); }
.fg-t thead th.fz { z-index: 4; }
.fg-t .fz-last { box-shadow: inset -2px 0 0 var(--line); }
/* 조회 줄 오른쪽 끝 단추 (예: 공정보기) */
.tb .tb-end { margin-left: auto; font-weight: 700; }
.tb .tb-dtg { margin-left: auto; margin-right: 6px; color: #dc2626; }      /* ☐수동계획일정 = 빨강, [공정보기] 바로 앞 */
.tb .tb-dtg ~ .tb-end { margin-left: 0; }
.tb .tb-ctg { margin-left: auto; margin-right: 6px; }      /* s.col_toggle 체크 = 맨 오른쪽 [편집설정] 바로 앞 (2026-11-04) */
.tb .tb-ctg ~ .tb-edit, .tb .tb-ctg ~ .tb-ro { margin-left: 0; }
.tb .tb-rgrp { margin-left: auto; display: inline-flex; align-items: center; }   /* 체크 + [편집설정] 묶음 */
.tb .tb-rgrp .tb-ctg { margin-left: 0; margin-right: 18px; }
.tb .tb-edit:disabled { opacity: .4; cursor: not-allowed; }                 /* ☑수동계획일정 중 [편집설정] 막힘 */
.tb .tb-end ~ .tb-edit { margin-left: 0; }/* 생산계획 편집창 : 납기 · 투입예상일 = 파란 굵은 글씨 */
.doc[data-id="plan"] .ep-in input[data-f="Delivery"], .doc[data-id="plan"] .ep-in input[data-f="P_PDate"] { color: var(--d1-ink); font-weight: 700; }/* [공정보기] 토글 켜짐 = 흰 바탕 (편집설정과 같은 모양) */
.tb .tb-end.on { background: #fff; color: var(--acc); border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }.ep-grid td.a-r { text-align: right; font-variant-numeric: tabular-nums; }

/* 리본 오른쪽 위 [데시보드] [단축키] + 단축키 창 */
.ribbon-bar .keys-btn { align-self: flex-start; flex: none; margin: 8px 10px 0 6px; background: #fff; color: var(--acc); border: 2px solid var(--acc); font-size: var(--fs-grid); font-weight: 700; padding: 3px 10px; }
.ribbon-bar .keys-btn:hover { background: var(--acc); color: #fff; }
.keys-box { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }   /* 줄이 많아도 [닫기]는 화면 안에, 표만 스크롤 (2026-11-05) */
.keys-box .modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.keys-t { width: 100%; border-collapse: collapse; font-size: var(--fs-grid); }
.keys-t th, .keys-t td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.keys-t th { background: var(--head, #eef2f7); font-weight: 700; text-align: center; }
.keys-t td:first-child { white-space: nowrap; font-weight: 700; width: 1%; }
.keys-t kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid #94a3b8; border-bottom-width: 2px; border-radius: 4px; background: #f8fafc; font: inherit; font-size: .9em; text-align: center; }
.keys-note { margin: 4px 0 0; font-size: 13px; color: var(--mute); }
/* 그리드 열폭 조정 · 저장 : 제목 줄 오른쪽 ☐ + [열저장], ☑ 일 때만 머리 칸 오른쪽 끝 손잡이로 폭 조정 */
.doc-head .cw-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.doc-head .cw-tools input[type=checkbox] { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.doc-head .cw-tools .btn { font-weight: 700; }
.doc-head .cw-tools .btn:disabled { opacity: .45; cursor: default; }
.fg-t .fg-rz { display: none; position: absolute; top: 0; right: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 6; touch-action: none; }
.fg.rz-on .fg-t .fg-rz { display: block; }
.fg.rz-on .fg-t .fg-rz:hover, .fg.rz-drag .fg-t .fg-rz { background: var(--acc); opacity: .55; }
.fg.rz-on .fg-t thead th { box-shadow: inset -1px 0 0 var(--acc); }
.fg.rz-drag, .fg.rz-drag * { cursor: col-resize !important; user-select: none; }
/* 아래 그리드 제목 줄의 기간 (거래처실적현황 : 시작일 ~ 종료일) */
.sub-head .sub-range { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; font-size: var(--fs-title); font-weight: 400; }
.sub-head .sub-range input { font: inherit; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; }.sub-head .sub-range select { font: inherit; padding: 2px 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; }
.sub-head .sub-range .btn { font-size: var(--fs-title); font-weight: 700; padding: 3px 14px; }/* 거래처현황 : 거래처실적현황 제목 아래 간격 (5 → 12px) */
.doc[data-id="company"] .sub-head { padding-bottom: 12px; }
.doc[data-id="dispatch"] .ep-radio[data-f=CarGubun] label { font-size: 17px; }   /* 배차 구분 (자차 · 용차) 글자 조금 크게 (15 → 17px, 2026-10-29) */
.doc[data-id="dispatch"] .ep-row.ind { padding-left: 44px; }                       /* 배차 시간 ~ 장축2 : 조금 더 들여쓰기 (28 → 44px) — 기타사항 입력칸 끝은 맨 끝 (2026-10-29) */
/* 설비공정능력 : 머리 3~4행 (설비그룹명 · 생산규격/대수) = 파란 굵은 글씨 */
.doc[data-id="equipdata"] .fg-t thead tr.sub th { color: var(--d1-ink); font-weight: 700; }
/* 설비공정능력 ☑작업지시명 : 글자 1.2배 · 빨강 (2026-10-22) */
.tb .chk.chk-wo { font-size: var(--fs-title); color: #d32f2f; }   /* 글자 = 조회 줄과 같게 18px (2026-10-23, 1.2em → 18px) */
.tb .chk.chk-wo input[type=checkbox] { width: 18px; height: 18px; margin: 0 2px 0 0; accent-color: #d32f2f; cursor: pointer; }   /* 체크박스만 크게 (2026-10-23) */
/* 설비공정능력 머리 3 · 4행 (작업지시구분 · 생산대수) 바탕 = 옅은 노랑 (2026-10-22) */
.doc[data-id="equipdata"] .fg-t thead tr.sub th { background: #fff9db; }
/* 공정카렌다 편집 창 : 캡션을 왼쪽으로 당기고(칸 112 → 74px, 오른쪽 끝 맞춤) 입력 칸은 넓게, 줄 간격 6 → 12px */
.doc[data-id="pcalendar"] .edit-pane .ep-body { gap: 12px; padding: 12px 10px 12px 8px; }
.doc[data-id="pcalendar"] .edit-pane .ep-row { grid-template-columns: 74px 1fr; gap: 6px; }
.doc[data-id="pcalendar"] .edit-pane .ep-lbl { text-align: right; }
.doc[data-id="pcalendar"] .edit-pane .ep-in { gap: 8px; }
.doc[data-id="pcalendar"] .edit-pane .ep-sec { margin: 4px 0 0; }/* 조회 줄 옵션 단추 ([전체] · 정상 · 고장 …) = 모든 화면 굵게 (2026-10-16 사용자 지정, 고른 것 · 안 고른 것 모두) */
.tb .seg span, .tb .seg input:checked + span { font-weight: 700; }
/* 하단 좌우 분할 (견적관리 : 견적 물량 | 견적 프로젝트 물량) */
.sub-split { flex: 1; min-height: 0; display: flex; }
.sub-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; flex: 1 1 64%; }
.sub-col.sub2 { flex: 1 1 36%; }
/* 열변경 체크가 꺼져 있으면 Splitterbar 를 끌 수 없음 (2026-11-03 사용자 지정, 모든 화면 — app.js colWidths) */
.sp-lock .split, .sp-lock .vsplit, .sp-lock .dash-vs, .sp-lock .dash-hs { pointer-events: none; }
.vsplit { flex: none; width: 8px; cursor: col-resize; position: relative; }
.vsplit::after { content: ""; position: absolute; top: 50%; left: 3px; height: 46px; width: 2px; margin-top: -23px; background: var(--line); border-radius: 2px; }
.vsplit:hover::after { background: var(--acc); }
/* 같은 값 병합 칸 (grid.js col.merge) : 가운데 세로 맞춤, 여러 줄에 걸쳐 있으므로 줄 선택 색을 받지 않음 */
.fg-t tbody td.mg { vertical-align: middle; background: var(--panel) !important; border-bottom: 1px solid var(--line); }/* 칸 배경색 (STYLE "cls") — 병합 칸 흰 바탕보다 우선 */
.fg-t tbody td.bg-blue, .fg-t tbody td.mg.bg-blue { background: #e3edff !important; }
/* 프로젝트 - 편집 창 (2026-10-16) : 구분 · 투입계획일 = 파랑 굵게, 납기일 = 빨강 굵게, 프로젝트명 · 비고 = 파랑 */
.doc[data-id="project"] .ep-in [data-f="PGubun"], .doc[data-id="project"] .ep-in input[data-f="P_PDate"] { color: var(--d1-ink); font-weight: 700; }
.doc[data-id="project"] .ep-in input[data-f="Delivery"] { color: #e00; font-weight: 700; }
.doc[data-id="project"] .ep-in input[data-f="ProjectName"], .doc[data-id="project"] .ep-in input[data-f="Remark"] { color: var(--d1-ink); }
/* 리본 단추 사이 구분선 (screens.py MENU 의 "|") */
.rg-items .rb-sep { flex: none; width: 2px; align-self: stretch; margin: 4px 6px; background: #94a3b8; border-radius: 1px; }
/* 빈 화면 (kind blank — 생산작업일보 등 구상 중) */
.blank-box { flex: 1; min-height: 320px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
/* 생산작업일보 : 오른쪽 기계(직원)별 배정 표 */
.wr-split { flex: 1; min-width: 0; }
.wr-info { font-size: 14px; color: var(--mute); padding: 0 0 6px; }
.wr-mwrap { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.wr-mt { width: 100%; border-collapse: collapse; font-size: var(--fs-cell); }
.wr-mt th { position: sticky; top: 0; background: var(--head2); font-weight: 700; padding: 6px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wr-mt td { padding: 3px 4px; border-bottom: 1px solid var(--line2); text-align: center; white-space: nowrap; }
.wr-mt td.n { text-align: right; padding-right: 8px; }
.wr-mt td.b { font-weight: 700; }
.wr-mt input { width: 100%; min-width: 70px; font-size: var(--fs-cell); padding: 2px 6px; color: var(--d1-ink); font-weight: 700; }
.wr-mt input.n { text-align: right; }
.wr-mt tr.off td { color: var(--mute); }
.wr-mt tfoot td { background: var(--head2); font-weight: 700; padding: 6px 4px; position: sticky; bottom: 0; }
.wr-mt td.empty { color: var(--mute); padding: 18px; }
.wr-btns { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 0 0; }
.wr-btns .btn { font-size: var(--fs-grid); }
.wr-msg { font-size: 14px; color: var(--d1-ink); min-height: 20px; padding-top: 4px; white-space: pre-line; }
.wr-msg.bad { color: var(--err); font-weight: 700; }.wr-split > .sub-col { flex: 1 1 56%; }
.wr-split > .sub-col.sub2 { flex: 1 1 44%; }.wr-mt tr.sec td { background: #eef3fb; text-align: left; padding: 5px 8px; border-top: 2px solid var(--line); font-size: 14px; }
.wr-mt tr.sec td.n { text-align: right; font-weight: 700; }
.wr-mt tr.sec td:last-child { text-align: center; font-weight: 700; }
.wr-btns { padding: 0 0 6px; }
.wr-msg { padding: 0 0 4px; }.wr-mt td.off-q { color: var(--err); font-size: 14px; font-weight: 700; }
/* 생산작업일보 오른쪽 : 기계(직원)별 배정 ‖ 설비현황 및 상태 */
.wr-split2 { flex: 1; min-height: 0; min-width: 0; }
.wr-split2 > .wr-mcol { flex: 1 1 calc(66% + 20px); }   /* 설비별 부하배정 = 기본 폭 + 20px (2026-10-22, 10px 두 번) */
.wr-split2 > .wr-eqcol { flex: 1 1 34%; min-width: 0; }
.fg-t tbody tr.hl td { background: #fff4cc; }.wr-split > .sub-col { flex: 1 1 46%; }
.wr-split > .sub-col.sub2 { flex: 1 1 54%; min-width: 0; }/* 기계(직원)별 배정 : 단추를 제목 줄로 */
.wr-mhead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wr-mhead .wr-btns { display: inline-flex; padding: 0; margin-left: 10px; font-weight: 400; }
.wr-info:empty { display: none; }.wr-sel { padding: 0 0 6px; }
.wr-sel .cnt { font-weight: 700; color: var(--ink); }
.wr-sel .wr-info { padding: 0; }
.wr-sel:has(.cnt:empty) { display: none; }.wr-mhead .wr-btns { gap: 4px; margin-left: 6px; }
.wr-mhead .wr-btns .btn { font-size: 14px; padding: 3px 9px; }/* 생산작업일보 : 주간 콤보 뒤 [ … ] = 금일 기준 주 */
.tb .wr-rbtns { margin-left: auto; display: inline-flex; gap: 6px; white-space: nowrap; }
.tb .wr-rbtns .wr-goweek { margin-left: 0; }
.tb .wr-xlup { color: #e00; border-color: #e00; font-weight: 700; background: #ffe5e5; }   /* [주간엑셀업로드] (admin, 2026-10-23) · 옅은 빨강 바탕 (2026-11-04) */
.tb .wr-xlup:hover { background: #ffd6d6; }
/* 생산작업일보 | 설비현황 및 상태 장비명 = 파랑 굵게 · 옅은 파랑 바탕, 더블클릭 = 설비 기본정보 팝업창 (2026-11-04) */
.fg-t tbody tr td.eq-nm { color: #1d4ed8; font-weight: 700; cursor: pointer; }
.win.eqe-pop { width: min(460px, calc(100vw - 16px)) !important; height: auto !important; resize: none; }
.eqe-host .edit-pane { border: 0; border-radius: 0; max-height: calc(100vh - 80px); }
.eqe-host .ep-head, .eqe-host .ep-extra, .eqe-host .ep-add, .eqe-host [data-do="add"], .eqe-host [data-do="del"] { display: none; }
.eqe-host .ep-foot { justify-content: flex-end; }
/* 설비 기본정보 팝업 : 주/야 작업자 · 주요작업 = 파랑 굵게 (2026-11-04) */
.eqe-host .ep-in input:is([data-f="OperatorA"], [data-f="OperatorB"], [data-f="SetDate"], [data-f="GoodsSize"]) { color: #1d4ed8; font-weight: 700; }
.eqe-host .ep-in input:is([data-f="OperatorA"], [data-f="OperatorB"], [data-f="GoodsSize"])::placeholder { font-weight: 400; }
/* [주간엑셀업로드] 팝업창 (2026-11-04) : 크기 고정 (makeWin 이 기억한 크기는 무시), 위치만 이동 */
.win.xlw-pop { width: min(535px, calc(100vw - 16px)) !important; height: auto !important; resize: none; font-size: 18px; }
.xlw-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 12px 14px 4px; }
.xlw-cap { font-weight: 700; text-align: center; }
.xlw-row { display: flex; gap: 8px; min-width: 0; }
.xlw-row select { width: 96px; font-size: 18px; }
.xlw-row input { flex: 1; min-width: 0; font-size: 18px; background: #f3f4f6; }
.xlw-save { grid-column: 1 / -1; min-width: 0; font-size: 18px; background: #f3f4f6; }
.xlw-bar { grid-column: 1 / -1; margin-top: 14px; position: relative; height: 24px; border: 1px solid var(--line); border-radius: 4px; background: #f3f4f6; overflow: hidden; }
.xlw-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: #7aa7f0; transition: width .25s; }
.xlw-bar.ok i { background: #5fbf7f; }
.xlw-bar span { position: relative; display: block; text-align: center; font-size: 14px; line-height: 22px; }
.xlw-bar.bad span { color: var(--err); font-weight: 700; }
.xlw-note { grid-column: 1 / -1; min-height: 44px; font-size: 14px; color: var(--mute); overflow-wrap: anywhere; }
.xlw-note.bad { color: var(--err); font-weight: 700; }
.xlw-pop .btn:disabled, .xlw-pop .x:disabled { opacity: .45; cursor: default; }
/* "생산계획 엑셀생성" 팝업창 (2026-11-11) : 저장폴더 = 입력 (흰 바탕), 구분선 = 두 칸 다 */
.plx-pop .xlw-row input[data-pdir] { background: #fff; }
.plx-pop .plx-hr { grid-column: 1 / -1; width: 100%; margin: 4px 0 0; border: 0; border-top: 1px solid var(--line); }
.plx-pop .xlw-note { grid-column: 1 / -1; }
.plx-pop .xlw-row select:disabled, .xlw-pop .xlw-row select:disabled { background: #f3f4f6; color: var(--ink); opacity: 1; }
/* 생산작업일보 [생산계획엑셀] (2026-11-11, admin 만 켜짐) */
.sub-head .wr-plxl { margin-left: 6px; padding: 1px 10px; font-weight: 700; align-self: center; }
.sub-head .wr-plxl:disabled { opacity: .45; cursor: not-allowed; }
.sub-head .wr-wsum { margin-left: 6px; padding: 1px 10px; font-weight: 700; align-self: center; }   /* [주간계획실적] (2026-11-11) */
/* "공정별 물량현황" 팝업 (2026-11-11) : 그리드 = 20줄 높이 + 세로 스크롤 */
.win.wsum-pop { width: min(860px, calc(100vw - 16px)) !important; }   /* 투입설비명 칸 추가 (2026-11-11) */
.wsum-pop .wsum-grid { grid-column: 1 / -1; height: calc(29px * 20 + 34px); min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); }
.wsum-pop .wsum-cnt { grid-column: 1 / -1; font-size: 14px; color: var(--mute); display: flex; align-items: baseline; gap: 12px; }
.wsum-pop .wsum-tot { font-size: 18px; font-weight: 700; color: var(--ink); }   /* 물량합계 (2026-11-11) */
.wsum-pop .wsum-n { margin-left: auto; }
.sub-head .wr-actchk { margin-left: 8px; font-weight: 700; color: #d32f2f; display: inline-flex; align-items: center; gap: 4px; align-self: center; }   /* ☐실적반영 (2026-11-11) */
.tb .wr-reset { color: #fff; background: #e00; border-color: #e00; font-weight: 700; }   /* 생산작업일보 [디비초기화] = [주간생산 계획/실적] 뒤 (admin, 2026-10-23) */
.tb .wr-goweek { margin-left: auto; color: #e00; font-weight: 700; border-color: #e00; }   /* 생산작업일보 오른쪽 끝 [주간생산 계획/실적] (2026-10-21) */
.tb .wr-today { padding: 2px 8px; margin: 0 4px; font-weight: 700; letter-spacing: 1px; line-height: 1.2; }/* 생산작업일보 조회 줄 : 레이블 · 콤보 · [ … ] · 체크박스 = 파란 굵은 글씨 (2026-10-20, [조회] 와 날짜 칸은 그대로) */
.doc[data-id="workreport"] .tb label.fld, .doc[data-id="workreport"] .tb label.chk,
.doc[data-id="workreport"] .tb select, .doc[data-id="workreport"] .tb .wr-today { color: var(--d1-ink); font-weight: 700; }
.doc[data-id="workreport"] .tb input[type=date] { color: var(--ink); font-weight: 400; }
.doc[data-id="workreport"] .tb input[type=checkbox] { accent-color: var(--d1-ink); }
/* 타이틀 뒤 옵션 (생산설비관리 작업구분 : 전체 · CUT · CNC · MCT) — 검정 굵게 */
.t-opts { display: inline-flex; align-items: center; gap: 16px; margin-left: 22px; }
.t-opts label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: #111; font-weight: 700; font-size: 17px; }
.t-opts input { width: 15px; height: 15px; margin: 0; accent-color: #111; cursor: pointer; }
.t-combo { display: inline-flex; align-items: center; gap: 8px; margin-left: 22px; color: #1d4ed8; font-weight: 700; font-size: var(--fs-title); }   /* 제목 뒤 콤보 (2026-10-24) */
.t-combo select { font-size: var(--fs-title); font-weight: 400; color: var(--ink); min-width: 160px; }
/* 생산설비관리만 (2026-10-23) : 작업구분 옵션 · 설비상태 · 정렬 · 검색 = 파란 굵은 글씨 (고른 설비상태는 파란 바탕 흰 글씨 그대로) */
.doc[data-id="equip"] .t-opts label { color: #1d4ed8; }
.doc[data-id="equip"] .t-opts input { accent-color: #1d4ed8; }
.doc[data-id="equip"] .tb .seg span { color: #1d4ed8; font-weight: 700; }
.doc[data-id="equip"] .tb .seg input:checked + span { color: var(--acc-ink); }
.doc[data-id="equip"] .tb .tb-sort select,
.doc[data-id="equip"] .tb .fld select,
.doc[data-id="equip"] .tb .fld input { color: #1d4ed8; font-weight: 700; }
.doc[data-id="equip"] .tb .fld input::placeholder { color: #1d4ed8; opacity: .6; font-weight: 700; }
.doc[data-id="equip"] .tb .tb-sort input { accent-color: #1d4ed8; }

/* 조회 줄 체크박스 빨강 굵게 (생산설비관리 ☐폐기설비포함 — 건수 뒤) */
.tb label.chk.tg-red { color: #dc2626; font-weight: 700; font-size: 18px; margin-left: 14px; }
.tb label.chk.tg-red input { width: 17px; height: 17px; margin: 0; accent-color: #dc2626; }

/* 탭 줄 + 화면 배율 (오른쪽) : 화면 배율  [−] [100%] [+] [초기화] — 휠 · Ctrl+휠 동기화 */
.doc-bar { display: flex; align-items: flex-end; flex: none; min-width: 0; }
.doc-bar .doc-tabs { flex: 1; min-width: 0; }
/* 크기 : 처음 × 1.5 × 0.8 = 1.2배 (2026-10-20 사용자 요청) */
.zoom-box { flex: none; display: flex; align-items: center; gap: 5px; padding: 4px 10px 3px; font-size: 15.6px; color: var(--mute); }
.zoom-box[hidden] { display: none; }
.zb-lbl { margin-right: 2px; }
.zb-btn { width: 29px; height: 29px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  color: var(--ink); font-size: 19px; line-height: 1; cursor: pointer; }
.zb-btn:hover, .zb-reset:hover { background: var(--line2); }
.zb-in { width: 70px; height: 29px; box-sizing: border-box; text-align: center; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; font-size: 15.6px; }
.zb-reset { height: 29px; padding: 0 11px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); color: var(--ink);
  font-size: 14.4px; cursor: pointer; }

/* 설비공정능력 편집 창 (2026-10-20) : 캡션 칸 112 → 138px (공정명 + 공정번호가 다 보이게, 그룹명 칸이 안쪽으로)
   머리(그룹명 · 대수 · 시간) 글자 13 → 15.5px · 대수 칸 폭 1/2, 줄인 만큼 그룹명 칸에 */
.doc[data-id="equipdata"] .edit-pane .ep-row { grid-template-columns: 138px 1fr; }
/* 위 6줄 (구분 · 타입 · 원자재규격 · 부품타입 · 생산부품규격 · 그룹명 편집) = 머리 칸을 좁혀 앞으로 (2026-10-28) */
.doc[data-id="equipdata"] .edit-pane .ep-row:is(:has([data-f=SPGubun]), :has([data-f=SPType]), :has([data-f=SPGubun2]), :has([data-f=RawSize]),
  :has([data-f=SizeUnit]), :has([data-f=GJEdit])) { grid-template-columns: 114px 1fr; }   /* 114 = "표준부품타입 *" 이 다 보이는 폭 */
/* 타입/원자재 줄 (2026-10-28) : 부품타입 콤보 + 원자재 콤보 나란히 — 처음 34% · 40% 에서 각각 1/4 늘림 */
.doc[data-id="equipdata"] .edit-pane [data-f=SPType] { flex: 0 0 42.5%; min-width: 0; }
.doc[data-id="equipdata"] .edit-pane input[data-f=RawSize] { flex: 0 0 50%; min-width: 0; }
.doc[data-id="equipdata"] .edit-pane [data-f=SPGubun2] { flex-wrap: nowrap; white-space: nowrap; }
/* 생산부품공정 편집 창 : 부품타입 콤보 넓게 + ◉백관 ○흑관 은 줄 오른쪽 끝으로 (2026-10-28) */
.doc[data-id="gongjung"] .edit-pane input[data-f=SPType] { flex: 0 0 48%; min-width: 0; }
.doc[data-id="gongjung"] .edit-pane [data-f=SPGubun] { margin-left: auto; }
/* 생산부품공정 편집 창 : "편집 ☐" (표준공정 편집) 줄 = 오른쪽 끝 정렬 (2026-10-28) */
.doc[data-id="gongjung"] .edit-pane .ep-row:has([data-f=GJEdit]) { display: flex; justify-content: flex-end; gap: 6px; }
.doc[data-id="gongjung"] .edit-pane .ep-row:has([data-f=GJEdit]) > .ep-in { flex: none; }
.doc[data-id="equipdata"] .edit-pane .ep-heads span { font-size: 15.5px; font-weight: 700; }
.doc[data-id="equipdata"] .edit-pane .ep-heads .ep-in span:nth-child(1),
.doc[data-id="equipdata"] .edit-pane .ep-in input[data-f^="grp_"] { flex: 1.5 1 0; }
.doc[data-id="equipdata"] .edit-pane .ep-heads .ep-in span:nth-child(2),
.doc[data-id="equipdata"] .edit-pane .ep-in input[data-f^="qty_"] { flex: .5 1 0; }
/* 설비공정능력 편집 창 : [선택삭제] · [편집저장] 은 늘 맨 아래, 세로 스크롤은 입력 칸 영역만 */
.doc[data-id="equipdata"] .edit-pane .ep-scroll { overflow: hidden; }
.doc[data-id="equipdata"] .edit-pane .ep-scroll > .ep-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.doc[data-id="equipdata"] .edit-pane .ep-msg:empty { display: none; }

/* 리본 맨 오른쪽 : [데시보드] [단축키] + (admin 만) [직원선택] — 고른 직원으로 결재선 · 도장 테스트, 고르면 빨강 */
.ribbon-bar .rb-btns { display: flex; gap: 6px; }
.ribbon-bar .keys-btn[hidden] { display: none; }
.ribbon-bar .keys-btn.manual-btn { background: color-mix(in srgb, var(--acc) 18%, #fff); }   /* [메뉴얼] = 옅은 파랑 바탕 (2026-11-03 사용자 지정, 화면 색상을 따라감) */
.ribbon-bar .keys-btn.manual-btn:hover { background: var(--acc); }
/* 신버전 안내창의 안내문구 ([나스배포] 때 적은 글, 2026-11-05) */
.upd-note { margin: 10px 0; padding: 8px 10px; border-radius: 6px; background: color-mix(in srgb, var(--acc) 12%, #fff); font-weight: 700; word-break: break-word; }
/* 메뉴얼 뷰 팝업창 : A4 세로가 보기 좋은 폭, 오른쪽 아래 모서리로 크기 조절 (js/pptxview.js 가 쪽을 그림) */
.win.mv-pop { z-index: 75; display: flex; flex-direction: column; width: min(960px, calc(100vw - 16px)); height: calc(100vh - 110px); min-width: 420px; min-height: 300px; resize: both; overflow: hidden; }
.mv-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; background: #e5e7eb; padding: 12px 0; box-sizing: border-box; text-align: left; line-height: normal; color: #000; }
.pv-slide { position: relative; overflow: hidden; margin: 0 auto 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); font-size: 18pt; }
.pv-slide:last-child { margin-bottom: 0; }
.pv-slide [data-pv-link], .pv-slide [data-pv-back] { cursor: pointer; }
.pv-slide table { margin: 0; font-size: inherit; background: transparent; }
.pv-slide td { line-height: normal; }
.pv-unk { position: absolute; display: flex; align-items: center; justify-content: center; border: 1px dashed #9ca3af; background: #f3f4f6; color: #6b7280; font-size: 12px; text-align: center; }
.pv-wait { padding: 24px; text-align: center; color: #374151; font-size: 15px; }
.ribbon-bar .rb-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin: 8px 10px 4px 6px; }
.ribbon-bar .rb-right .keys-btn { margin: 0; align-self: flex-end; }   /* [메뉴얼] = 맨 오른쪽 */
.actas[hidden] { display: none; }
.actas label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.actas select { height: 30px; padding: 0 6px; font: inherit; font-weight: 400; min-width: 170px; }
.actas.on label { color: var(--err); }
.actas.on select { border-color: var(--err); color: var(--err); font-weight: 700; }

/* 초기 비밀번호 로그인 : 비밀번호 변경 창을 닫을 수 없게 (닫기 · 취소 숨김) */
#pwModal.forced [data-close] { display: none; }
.pw-note { margin: 0 0 10px; padding: 8px 10px; border-radius: 6px; background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); font-weight: 700; font-size: 14px; line-height: 1.5; }
.pw-note[hidden] { display: none; }

/* 비밀번호 변경 창 : 사용자ID 줄 (있으면 표시만, 없으면 입력 + [확인] 중복 확인) */
.pw-idrow { display: flex; align-items: center; gap: 8px; margin: 2px 0 2px; }
.pw-idlbl { flex: none; font-weight: 700; color: var(--ink); }
.pw-idrow input { flex: 1; min-width: 0; height: 32px; padding: 0 8px; font: inherit; }
.pw-idrow input[readonly] { background: var(--line2); color: var(--ink); font-weight: 700; }
#pwModal.need-id .pw-idrow input { border-color: var(--err); }
.pw-idrow .btn[hidden] { display: none; }
.pw-idmsg { min-height: 18px; font-size: 13px; margin-bottom: 6px; color: var(--mute); }
.pw-idmsg.need, .pw-idmsg.bad { color: var(--err); font-weight: 700; }
.pw-idmsg.ok { color: #16a34a; font-weight: 700; }
#pwForm input:disabled { background: var(--line2); }

/* [직원선택] 테스트 중 : 위 로그인 표시를 노랑으로 (Ctrl+U 복귀 안내) */
#meLabel.testing { color: #fde047; font-weight: 700; }

/* 프로그램 사용권한 R (읽기만) : [편집설정] 자리에 표시 */
.tb .tb-ro { margin-left: auto; padding: 4px 12px; border: 1px dashed var(--mute); border-radius: 6px; color: var(--mute); font-weight: 700; font-size: 14px; }

/* 생산작업일보 | 설비현황 및 상태 : 오른쪽 ☑작업지시장비 (빨강 굵게) */
.wr-eqcol .sub-head { display: flex; align-items: center; gap: 8px; }
.wr-wo { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: #e00; font-weight: 700; font-size: var(--fs-title); cursor: pointer; white-space: nowrap; }
.wr-wo input { width: 17px; height: 17px; margin: 0; accent-color: #e00; cursor: pointer; }
.wr-eqcol .sub-head { white-space: nowrap; overflow: hidden; }

/* 생산작업일보 | 설비별 부하배정 (2026-10-20) : 머리 2줄 (작업자 · 배정수량 = 주간 / 야간 / 합계), 그리드 위 오른쪽 단추 */
.wr-mt thead { position: sticky; top: 0; z-index: 2; }
.wr-mt thead th { position: static; border: 1px solid var(--line); }
.wr-mt thead tr.sub th { font-size: 14px; padding: 3px 4px; }
.wr-gbtns { justify-content: flex-end; padding: 0 0 6px; }
.wr-gbtns .btn { font-size: 17.5px; padding: 4px 13px; }   /* [재계산] = 1/4 크게 (14 → 17.5px) */
/* 생산작업일보 [인원현황] · [설비현황] 팝업창 (2026-10-21) : 끌어서 옮기는 창, 안에 그리드 */
.wr-gbtns .btn.wr-popbtn { background: #e3edff; }                      /* [인원현황] · [설비현황] 단추 = 옅은 파랑 바탕 (2026-10-21) */
.wr-gbtns .btn.wr-popbtn:hover { background: #d3e2ff; }
.win.wr-pop { width: min(820px, calc(100vw - 16px)); height: min(70vh, 640px); min-width: 420px; min-height: 240px; resize: both; overflow: hidden; }   /* 오른쪽 아래 모서리로 크기 조절 (2026-10-21) */
.wr-pop-body { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px 12px; flex: 1; min-height: 0; }
.wr-pop-info { color: var(--mute); font-size: 14px; }
/* 작업지시서 미리보기 (2026-10-21) : 문서 모양 — 제목 · 결재란(오른쪽 위) · 작업일자 · 표 (색은 그리드와 같게) */
.win.wo-pop { width: min(900px, calc(100vw - 16px)); height: min(80vh, 760px); min-width: 480px; min-height: 300px; resize: both; overflow: hidden; }
.wo-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px; background: #fff; color: #111; }
/* 제목 · 작업일자 = 왼쪽 (작업일자는 아래쪽), 결재란 = 오른쪽 — 결재란 아래 끝이 표 바로 위 (2026-10-21) */
.wo-top { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.wo-head { display: flex; flex-direction: column; justify-content: space-between; }
.wo-top h1 { font-size: 26px; font-weight: 800; letter-spacing: 6px; margin: 14px 0 0; }
.wo-sign { border-collapse: collapse; font-size: 13px; }
.wo-sign th, .wo-sign td { border: 1px solid #555; padding: 2px 6px; text-align: center; min-width: 70px; }
.wo-sign th { background: var(--head2); font-weight: 700; }                       /* 위 : 작성 · 검토 · 승인 */
.wo-sign .wo-sign-cap { min-width: 22px; width: 22px; line-height: 1.3; }
.wo-sign .wo-sign-box { height: 66px; vertical-align: bottom; padding-bottom: 2px; } /* 가운데 : 도장 칸, 아래에 직책 (작게) */
.wo-sign .wo-sign-pos { font-size: 11px; color: #666; display: block; }
.wo-sign .wo-stamp { display: block; width: 50px; height: 50px; object-fit: contain; margin: 0 auto 1px; }   /* 도장 · 서명 (상신 · 승인 때) */
.wo-sign .wo-sign-name { font-weight: 700; height: 24px; }   /* 비어 있어도(결재선 없음) 칸 높이 유지 (2026-11-10) */                                       /* 아래 : 이름 */
.wo-meta { display: flex; gap: 24px; font-size: 14px; margin: 6px 0 0; }
.wo-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.wo-tbl th, .wo-tbl td { border: 1px solid #999; padding: 4px 6px; text-align: center; }
.wo-tbl th { background: var(--head2); font-weight: 700; }
.wo-tbl td.l { text-align: left; } .wo-tbl td.r { text-align: right; } .wo-tbl td.b { font-weight: 700; }
.wo-tbl td.wo-eq { font-weight: 700; }
.wo-tbl tr.wo-sum td, .wo-tbl tr.wo-total td { background: var(--head2); font-weight: 700; }
.wo-tbl tr.wo-total td { border-top: 2px solid #555; }
.wo-doc + .wo-doc { margin-top: 26px; padding-top: 18px; border-top: 2px dashed #999; }   /* [전체] 미리보기 : 양식 사이 구분 */
.wo-foot { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line); }
.wo-foot .sp { flex: 1; } .wo-foot .mute { color: var(--mute); font-size: 13px; }
.wo-foot .mute.bad { color: var(--err); font-weight: 700; }
.wo-foot .btn[hidden] { display: none; }
.wr-pop-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wr-pop-bar .sp { flex: 1; }
.wr-appr { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }   /* 설비별현황 : 결재선 [콤보] [작업지시서 상신] */
.wr-appr select { min-width: 160px; font-size: 14px; padding: 2px 4px; }
.wr-pop-bar .btn:disabled { opacity: .45; cursor: default; }
.wr-mt select[data-w=shift] { font-size: var(--fs-cell); padding: 2px 4px; color: var(--d1-ink); font-weight: 700; }
/* 물량 머리 맨 오른쪽 : 미배정 · 완료 + [저장] (고친 물량만) */
.wr-mt tr.sec td.wr-sleft { white-space: nowrap; }
.wr-mt tr.sec td:first-child { color: #1d4ed8; font-weight: 700; font-size: 18.2px; }   /* 물량 머리 정보 (공정 · 프로젝트 · 규격 · 계획) = 파랑 굵게 (2026-10-22) · 글자 1.3배 14 → 18.2px (2026-10-23) */
.wr-mt tr.sec td.wr-sleft span.fc-red { color: var(--d2-ink); }    /* 물량 머리 상태 : 완료 = 빨강 (왼쪽 목록과 같은 색) */
.wr-mt tr.sec td.wr-sleft span.fc-blue { color: var(--d1-ink); }
/* 설비별 부하배정 설비 상태 : 상태 글자색 규칙 (고장 · 폐기 = 빨강, 수리 · 점검 = 파랑, 정상 = 검정) — 제외 줄(회색)보다 우선 */
.wr-mt tr td.fc-red { color: var(--d2-ink); }
.wr-mt tr td.fc-blue { color: var(--d1-ink); }
.wr-mt .wr-gsave { margin-left: 6px; padding: 1px 10px; font-size: 13px; font-weight: 700; }
/* 투입선택 글자색 (2026-10-21) : 주간 = 파랑 · 주/야간 · 야간 = 빨강 · 취소 = 검정 (콤보 · 목록 둘 다) */
.wr-mt select[data-w=shift].sh-day, .wr-mt select[data-w=shift] option.sh-day { color: #1d4ed8; }
.wr-mt select[data-w=shift].sh-night, .wr-mt select[data-w=shift] option.sh-night { color: #e00; }
.wr-mt select[data-w=shift].sh-cx, .wr-mt select[data-w=shift] option.sh-cx { color: #000; }
.wr-mt input[data-w=worker], .wr-mt input[data-w=workerB] { min-width: 80px; }
.wr-mt input[data-w=day], .wr-mt input[data-w=night] { min-width: 72px; }
.wr-mt input:disabled { background: var(--line2); border-color: var(--line2); }
.wr-mt td.wr-tot { color: var(--d1-ink); font-weight: 700; }
.wr-mt td.wr-goods { min-width: 120px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; text-align: left; }   /* 생산부품 (GoodsSize, 25자까지) */

/* 설비별 부하배정 : 고른 물량 요약 줄 · 안내 줄 없음 (2026-10-20 사용자 지정) — 안내 · 오류는 아래 상태줄에 */
.doc[data-id="workreport"] .wr-sel, .doc[data-id="workreport"] .wr-msg { display: none !important; }

/* 생산작업일보 (2026-10-20) : 일자 칸 연노랑 · 확정일자 표시 (그리드 위 왼쪽, 빨강 레이블 + 굵은 일자) */
.fg-t tbody td.bg-yellow, .fg-t tbody td.mg.bg-yellow { background: #fff8d1 !important; cursor: pointer; }
/* 옅은 노랑 칸 = 파란 굵은 글씨 (2026-10-23 사용자 지정, 모든 화면) — 빨강으로 정한 칸(fc-red)은 빨강 그대로 */
.fg-t tbody tr td.bg-yellow:not(.chk):not(.fc-red) { color: var(--d1-ink); font-weight: 700; }
.fg-t tbody tr td.bg-yellow.fc-red:not(.chk) { font-weight: 700; }
.wr-gbtns { align-items: center; }
.wr-gbtns .sp { flex: 1; }
.wr-cdate { font-size: 17px; font-weight: 700; color: #e00; white-space: nowrap; }
.wr-cdate[hidden] { display: none; }
/* 배정 결과 (완료 물량 / 물량 수) — 확정일자와 같은 빨간 꾸밈 (2026-10-21) */
/* 주간생산 계획/실적 조회줄 ☑주말포함 · ☐일요일포함 = 빨간 굵은 글씨 (작업지시장비 체크와 같은 꾸밈) */
.tb .wp-day-opt { display: inline-flex; align-items: center; gap: 5px; color: #e00; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tb .wp-day-opt input { width: 17px; height: 17px; margin: 0; accent-color: #e00; cursor: pointer; }
/* 주간생산 계획/실적 (2026-10-21) : 공정 계 · 합계 줄 = 머리 바탕 · 굵게, 일자 경계 = 굵은 세로줄 · 야간 경계 = 가는 세로줄 */
.fg-t tbody tr.wp-sum td, .fg-t tbody tr.wp-total td { background: var(--head2); font-weight: 700; }
.fg-t tbody tr.wp-total td { border-top: 2px solid var(--line); }
.fg-t tbody td.wp-day { border-left: 2px solid var(--line); }
.fg-t tbody td.wp-act { background: #f3f7ff; }                     /* 생산수량 바탕 = 아주 옅은 파랑 (bg-blue #e3edff 보다 옅게, 선택 · 계 줄 색이 위) */
.fg-t thead th.grp.wp-off { background: #ffe1e1; }
/* 금일 근무 (2026-10-21) = 파란 외곽선, 머리는 빼고 자료 줄만 : 첫 줄 위 · 첫 칸 왼쪽 · 끝 칸 오른쪽 · 합계 줄 아래
   (선택 · 칸 바탕색과 상관없이 보이게 box-shadow, 변마다 변수 → 모서리 칸은 두 변이 함께) */
.fg-t tbody td.wp-now { --nl: 0 0 #0000; --nr: 0 0 #0000; --nt: 0 0 #0000; --nb: 0 0 #0000; box-shadow: var(--nl), var(--nr), var(--nt), var(--nb); }
.fg-t tbody td.wp-now-l { --nl: inset 2px 0 0 #1d4ed8; }
.fg-t tbody td.wp-now-r { --nr: inset -2px 0 0 #1d4ed8; }
.fg-t tbody td.wp-now-t { --nt: inset 0 2px 0 #1d4ed8; }
.fg-t tbody td.wp-now-b { --nb: inset 0 -2px 0 #1d4ed8; }
/* [금일] 단추 : 조회줄(그리드 위) 맨 오른쪽, 파란 테두리 */
.tb .wp-now-btn { margin-left: auto; color: #1d4ed8; border-color: #1d4ed8; font-weight: 700; }                  /* 휴무일(공휴일 · 국경일 · 회사휴가 등) 머리 = 옅은 빨강 */
.tb .wp-assign-btn { color: #e00; border-color: #e00; font-weight: 700; }   /* [배정화면] = [금일] 뒤, 생산작업일보 [주간생산 계획/실적] 과 같은 모양 (2026-10-23) */
.fg-t tbody td.wp-night { border-left: 1px dashed var(--line); }
.wr-result { font-size: 17px; font-weight: 700; color: #e00; white-space: nowrap; }
.wr-result[hidden] { display: none; }
/* [자동배정] 진행 표시 (2026-10-22) = 배정 결과 자리 : "자동배정 1 / 20" … "20 / 20 처리완료" (파랑) */
.wr-result.run, .wr-result.run b { color: #1d4ed8; }
.wr-result b { color: #c00; font-size: 21px; margin-left: 8px; font-family: Georgia, 'Times New Roman', serif; }
.wr-cdate b { color: #c00; font-size: 21px; margin-left: 4px; font-family: Georgia, 'Times New Roman', serif; }

/* 조회 줄 [☐][기본정렬 ▼] (생산설비관리) — 체크 = 역순 */
.tb .tb-sort { display: inline-flex; align-items: center; gap: 4px; }
.tb .tb-sort input[type=checkbox] { width: 17px; height: 17px; margin: 0; cursor: pointer; }

/* 칸 배경 밝은 회색 (생산설비관리 작업지시명 · 작업구분) */
.fg-t tbody td.bg-gray, .fg-t tbody td.mg.bg-gray { background: #eef0f3 !important; }
.fg-t tbody td.bg-lred, .fg-t tbody td.mg.bg-lred { background: #ffe1e1 !important; }   /* 옅은 빨강 = 일정 넘김 (2026-10-30 프로젝트관리) */

/* 그리드 선택바 · 체크한 줄은 언제나 칸 배경색(연노랑 · 회색 · 파랑 · 고정 칸)보다 위에 (2026-10-21, 모든 화면) */
/* 마우스가 올라간 줄도 칸 배경색 · 고정 칸보다 위 (선택 · 체크 색보다는 아래 — 아래 규칙이 뒤에 있어 우선) */
.fg-t tbody tr:hover td, .fg-t tbody tr:hover td.bg-yellow, .fg-t tbody tr:hover td.bg-gray, .fg-t tbody tr:hover td.bg-blue,
.fg-t tbody tr:hover td.fz, .fg-t tbody tr:hover td.mg { background: color-mix(in srgb, var(--sel) 45%, var(--panel)) !important; }
.fg-t tbody tr.on td, .fg-t tbody tr.on td.bg-yellow, .fg-t tbody tr.on td.bg-gray, .fg-t tbody tr.on td.bg-blue,
.fg-t tbody tr.on td.fz { background: var(--on) !important; }
.fg-t tbody tr.sel td, .fg-t tbody tr.sel td.bg-yellow, .fg-t tbody tr.sel td.bg-gray, .fg-t tbody tr.sel td.bg-blue,
.fg-t tbody tr.sel td.fz { background: var(--sel) !important; }
/* 병합 칸 : 덮은 줄 중 하나라도 체크 · 선택이면 그 색 (grid.js paintMerged) */
.fg-t tbody td.m-on, .fg-t tbody td.mg.m-on { background: var(--on) !important; }
.fg-t tbody td.m-sel, .fg-t tbody td.mg.m-sel { background: var(--sel) !important; }

/* [설비업데이트] 공정 칸 대조 팝업 (2026-10-22) */
.fc-box { width: 560px; max-width: calc(100vw - 32px); }
.fc-sum { margin: 0 0 8px; padding-left: 18px; line-height: 1.7; }
.fc-red { color: #d32f2f; font-weight: 600; }
.fc-wrap { max-height: 52vh; overflow: auto; border: 1px solid #c9d3e0; }
.fc-tbl { border-collapse: collapse; width: 100%; text-align: center; }
.fc-tbl th { position: sticky; top: 0; background: #eef3fa; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid #c9d3e0; }
.fc-tbl th small { font-weight: 400; color: #666; }
.fc-tbl td { padding: 2px 6px; border-bottom: 1px solid #eef0f3; }
.fc-tbl td.fc-c { font-weight: 600; }
.fc-tbl td.fc-n { text-align: left; white-space: nowrap; }
.fc-tbl tr.fc-bad td { background: #fff1f1; }
.fc-tbl td.fc-no { color: #d32f2f; font-weight: 700; }
.fc-note { margin-top: 6px; color: #555; font-size: 13px; }

/* 실적관리 [실적입력] (2026-10-22) — 그리드 위 오른쪽 [작업일자][ … ][실적입력], 창 = 계획(확정) 설비별 작업지시 + 실적 */
.tb .tb-ar { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.tb .tb-ar ~ .tb-edit { margin-left: 0; }
.tb .ar-open { font-weight: 700; background: #e3edff; }
/* 주간생산 계획/실적 : 공정 · 조회기간 (콤보 · [ … ] · 날짜) 글자 = 파랑 · 굵게 (2026-10-22) */
.doc[data-id="weekplan"] .tb .fld, .doc[data-id="weekplan"] .tb .fld select, .doc[data-id="weekplan"] .tb .fld input[type=date],
.doc[data-id="weekplan"] .tb .fld .wr-today { color: #1d4ed8; font-weight: 700; }
/* 실적관리 [작업일자][날짜][ … ][실적입력] 글자 = 빨강 (2026-10-22) */
.tb .tb-ar, .tb .tb-ar .fld, .tb .tb-ar input[type=date], .tb .tb-ar .btn { color: #d32f2f; font-weight: 700; }   /* 빨강 · 굵게 */
.btn.ar-savebtn { background: #ffe3e3; color: #d32f2f; font-weight: 700; border-color: #f2b8b8; }   /* [실적저장] = 옅은 빨강 바탕 · 빨강 굵게 */
.btn.ar-savebtn:hover { background: #ffd2d2; }
.win.ar-pop { width: min(1180px, calc(100vw - 16px)); height: min(78vh, 720px); min-width: 560px; min-height: 260px; resize: both; overflow: hidden; }
.ar-date { font-size: 16px; }
.ar-bar .ar-r { min-width: 30px; padding: 2px 8px; font-weight: 700; color: #1d4ed8; }   /* [R] 새로 고침 (2026-11-04) */
.ar-esc { color: #d32f2f; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ar-esc[hidden] { display: none; }
.ar-bar { position: relative; }
.ar-bar .btn[data-arprint] { margin-left: 14px; }
.ar-done { margin-left: auto; font-size: 17px; font-weight: 700; color: #e00; white-space: nowrap; }   /* 실적처리 n / N (배정 결과와 같은 모양) */
.ar-done b { color: #c00; font-size: 21px; margin-left: 8px; font-family: Georgia, 'Times New Roman', serif; }
.ar-done i { font-style: normal; color: #1d4ed8; margin-left: 6px; }
.ar-done.all, .ar-done.all b { color: #1d4ed8; }                                                      /* 다 되면 파랑 + 완료 */
.ar-mid { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; }   /* 고른 작업지시명 + [물량추가] (2026-11-04) */
.ar-bar .ar-addq:disabled { opacity: .45; cursor: default; }
.win.ar-p.ar-q { z-index: 80; }                                                                            /* [물량추가] 팝업창 = 맨 위 (확인 창 100 아래) */
.ar-qgap { height: 10px; }
.ar-qrow { display: flex; gap: 6px; }
.ar-f .ar-qrow select { flex: 0 0 50%; width: 50%; }
.ar-f .ar-qrow input { flex: 1; min-width: 0; }
.ar-qlist { min-height: 110px; max-height: 240px; overflow: auto; border: 1px solid var(--line); margin-top: 4px; }
.ar-qlist .ar-t { width: 100%; }
.ar-f input[readonly] { background: #f3f4f6; }
.ar-selname { color: #d32f2f; font-size: 16px; font-weight: 700; white-space: nowrap;
  padding: 2px 14px; border: 1.5px solid #e57373; border-radius: 14px; background: #ffecec; }   /* 고른 작업지시명 = 위 가운데 · 둥근 테두리 · 옅은 빨강 바탕 (2026-10-22) */
.ar-selname[hidden] { display: none; }
.ar-selname b { font-size: 19px; margin-left: 4px; }
.ar-wrap { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); }
.ar-t { width: 100%; border-collapse: collapse; font-size: 15px; }
.ar-t th { position: sticky; top: 0; z-index: 1; background: var(--head2); font-weight: 700; padding: 5px 6px; border: 1px solid var(--line); white-space: nowrap; }
.ar-t td { border: 1px solid var(--line); padding: 4px 6px; text-align: center; vertical-align: middle; }
.ar-t td.l { text-align: left; } .ar-t td.r { text-align: right; } .ar-t td.b { font-weight: 700; }
.ar-t td.ar-wo { font-weight: 700; color: #1d4ed8; cursor: pointer; background: #fff8d1; min-width: 110px; }   /* 파랑 굵게 · 옅은 노랑 바탕 (2026-11-04) */
.ar-t td.ar-wo:hover { background: #fff2a8; }
.ar-t td.ar-wo.sel { background: #dbe8ff; color: #1d4ed8; box-shadow: inset 3px 0 0 #2563eb; }
.ar-t tr.ar-on td { background: #f7faff; }
.ar-t .sh-day { color: #1d4ed8; font-weight: 700; } .ar-t .sh-night { color: #d32f2f; font-weight: 700; }
.ar-t td.ar-issue { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b45309; }
.ar-t td.ar-ok { color: #1d4ed8; font-weight: 700; } .ar-t td.ar-bad { color: #d32f2f; font-weight: 700; } .ar-t td.ar-wait { color: var(--mute); }
.ar-t td.ar-res { color: #d32f2f; }
/* 실적입력 글자 (2026-11-04) : (물량) = 빨강 · 작지수량 = 검정 굵게 · 생산수량 = 파랑 굵게 · 실적수량 = 빨강 굵게 (td.b) */
.ar-t td.ar-c-add { color: #d32f2f; }
.ar-t td.ar-c-qty { color: #000; font-weight: 700; }
.ar-t td.ar-c-prod { color: #1d4ed8; font-weight: 700; }
.ar-t td.ar-c-prod .ar-btn { color: var(--ink); }
.ar-t th.ar-h-insp { color: #1d4ed8; } .ar-t th.ar-h-res { color: #d32f2f; }   /* 공정검사 = 파랑 · 실적수량 = 빨강 (2026-10-22) */
.ar-t td.ar-wait { color: #1d4ed8; font-weight: 400; }                          /* 검사대기도 파랑 (불량만 빨강) */
.ar-t tr.ar-sum td:nth-last-child(2), .ar-t tr.ar-total td:nth-last-child(2) { color: #1d4ed8; }   /* 계 · 합계 줄 : 검사 n/N = 파랑 */
.ar-t tr.ar-sum td:last-child, .ar-t tr.ar-total td:last-child { color: #d32f2f; }               /* 계 · 합계 줄 : 실적수량 = 빨강 */
.ar-t tr.ar-sum td, .ar-t tr.ar-total td { background: var(--head2); font-weight: 700; }
.ar-t tr.ar-total td { border-top: 2px solid #555; }
.ar-t td.ar-empty { padding: 24px; color: var(--mute); }
.ar-t .ar-btn { display: block; margin: 3px auto 0; padding: 1px 8px; font-size: 13px; font-weight: 700; background: #fff3cd; border-color: #e0c060; }
.ar-t td.r .ar-btn { margin-right: 0; }
.wr-pop-info.bad { color: var(--err); font-weight: 700; }
/* 1단계 · 2단계 팝업 */
.win.ar-p { width: min(440px, calc(100vw - 16px)); z-index: 70;
  height: auto !important; max-height: calc(100vh - 16px); overflow: auto; }   /* 높이 = 내용 (저장된 창 높이 무시, 2026-10-22 — 아래 [검사완료] 잘림) */
.ar-pbody { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 16px; }
.ar-pinfo { display: grid; grid-template-columns: 92px 1fr; gap: 3px 8px; font-size: 14px; padding: 6px 8px; background: var(--head2); border-radius: 6px; }
.ar-pinfo span { color: var(--mute); }
.ar-f { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; font-size: 15px; }
.ar-f span { font-weight: 700; }
.ar-f input, .ar-f select, .ar-f textarea { font-size: 15px; padding: 4px 6px; width: 100%; box-sizing: border-box; }
.ar-f select:disabled, .ar-f input:disabled { background: #eee; color: #999; }
.ar-pfoot { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.ar-prodrow { display: grid; grid-template-columns: 1fr 76px 1fr; gap: 6px; }                      /* 생산수량 [정상 ▼][수량] (2026-10-22) */
.ar-prodrow select:disabled, .ar-prodrow input:disabled { background: #eee; color: #999; }
.btn.ar-closebtn { color: #d32f2f; font-weight: 700; background: #ffecec; border-color: #e57373; }   /* [실적처리] = 당일 완료 (빨강) */
.btn.ar-closebtn[hidden] { display: none; }
.ar-t .ar-xq { display: block; font-size: 11.5px; color: #b45309; }                                 /* 생산수량 아래 : 연장 500 등 */
.ar-pfoot .btn:disabled { opacity: .45; cursor: default; }
.ar-pfoot .sp { flex: 1; } .ar-pfoot .mute { color: var(--err); font-size: 13px; }

/* 체크박스 크기 (2026-10-27 사용자 규칙, 모든 화면) : 글자에 맞게 크게 — 상단 · 조건 줄(18px 글자) = 20px,
   편집 창 · 팝업 = 18px, 그리드 = 17px (화면마다 따로 정한 15 ~ 18px 를 덮어씀, 로그인 비밀번호 기억 22px 은 그대로) */
input[type=checkbox]:not(.pw-remember) { width: 20px !important; height: 20px !important; vertical-align: middle; cursor: pointer; }
.edit-pane input[type=checkbox], .modal input[type=checkbox], .win input[type=checkbox] { width: 18px !important; height: 18px !important; }
.fg-t input[type=checkbox] { width: 17px !important; height: 17px !important; }

/* 계획수립 [| 공정일정] 머리 줄 (2026-10-27) : [카렌다일] 확정일 [계획시작일] ~ [계획완료일] [확정] */
.sub-head:has(.sub-plan) { flex-wrap: wrap; row-gap: 4px; }   /* 왼쪽 칸이 좁으면 줄을 바꿔 다 보이게 */
.sub-head .sub-plan { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-weight: 400; }
.sub-head .sub-plan input { font: inherit; font-size: var(--fs-cell); padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; }
.sub-head .sub-plan input[readonly] { background: #f3f4f6; color: var(--d1-ink); font-weight: 700; width: 92px; text-align: center; }   /* 계획일정 시작 · 완료 = 좁게 (날짜 글자만) */
.sub-head .sub-plan .sub-precalc { font-weight: 700; padding: 2px 10px; }
.sub-head .sub-plan .sub-precalc:disabled { opacity: .45; cursor: default; }
.sub-head .sub-plan select { font: inherit; font-size: var(--fs-cell); padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; }
.sub-head [data-dcnt][hidden] { display: none; }
/* 계획수립 [| 공정부하] (2026-10-27) : 일수 콤보 · 날짜별 그래프 · 부하율 · 합계 / 계획 / 확정 */
.sub-head .sub-days { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-weight: 400; }
.sub-head .sub-days select { font: inherit; font-size: var(--fs-cell); padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; }
.pl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 4px; }
.pl-wrap > .sub-blank { border: 0; height: 100%; }
.pl-chart { border-collapse: collapse; font-size: var(--fs-cell); min-width: 100%; }
.pl-chart th, .pl-chart td { border: 1px solid #c8ced8; padding: 2px 6px; white-space: nowrap; }
.pl-chart th { position: sticky; left: 0; z-index: 1; background: var(--head2); min-width: 78px; font-weight: 700; text-align: center; }
.pl-chart td { min-width: 104px; }
.pl-chart td.off { background: #f3f4f6; }                                   /* 쉬는 날 (공정카렌다 평일 아님) */
.pl-chart .pl-g td { height: 130px; padding: 4px 18px 0; vertical-align: bottom; }
.pl-bar { position: relative; height: 100%; border-bottom: 1px solid #94a3b8; }
.pl-bar i { position: absolute; left: 0; right: 0; display: block; }
.pl-bar .pl-c { bottom: 0; background: #ef4444; z-index: 1; }              /* 확정 몫 */
.pl-bar .pl-p { background: #3b82f6; z-index: 1; }                         /* 계획 몫 */
.pl-bar .pl-line { height: 0; border-top: 1px dashed #c3c8d0; z-index: 0; left: -18px; right: -18px; }   /* 50 · 100 · 150% = 얇은 회색 점선, 막대 뒤 */
.pl-bar .pl-line.pl-l100 { border-top-color: #ef4444; }                     /* 가운데(100%) 참조선 = 빨강 (2026-10-27) */
.pl-bar .pl-line.pl-l100[data-p]::before { color: #ef4444; }
/* 통합데시보드 [전체 | 공정] (2026-10-27) : 제목 가운데 [◀ 44주 ▶], 맨 오른쪽 스위치 · [공정] = 4행 × 5열 칸을 화면에 꽉 차게 (축소) */
.dash-head .dp-wrap { margin: 0 auto; display: inline-flex; align-items: center; gap: 14px; }
.dash-head .dp-wrap[hidden] { display: none; }
.dash-head .dp-week { display: inline-flex; align-items: center; gap: 4px; border: 2px solid #dc2626; border-radius: 4px; padding: 1px 6px; }
.dash-head .dp-range { color: #dc2626; font-size: var(--fs-title); }        /* 그 주 날짜 (월 ~ 토) */
.dash-head .dp-week b { color: #dc2626; font-size: var(--fs-title); min-width: 52px; text-align: center; border: 1px solid #dc2626; padding: 0 6px; }
.dash-head .dp-today { border: 0; background: none; color: #dc2626; font-size: var(--fs-title); font-family: inherit; cursor: pointer; padding: 0 2px; margin-right: -8px; }   /* 당일 주차 (클릭 = 금주) */
.dash-head .dp-today:hover { text-decoration: underline; }
.dash-head .dp-arr { border: 0; background: none; color: #dc2626; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
/* 스위치 = [열저장] 앞 (2026-10-30) : 스위치가 오른쪽으로 밀고 [열저장] 은 그 뒤 10px, 주 이동이 보이면 그쪽이 가운데를 잡음 */
.dash-head .dp-sw { margin-left: auto; display: inline-flex; border: 2px solid #dc2626; border-radius: 16px; overflow: hidden; }
.dash-head .dp-wrap:not([hidden]) ~ .dp-sw { margin-left: 0; }
.dash-head .dp-sw ~ .cw-tools { margin-left: 10px; }
.dash-head .dp-sw { box-sizing: border-box; height: 37px; align-items: stretch; border-radius: 19px; }   /* [열저장] 단추 높이 (2026-10-27) */
.dash-head .dp-sw button { border: 0; background: #fff; color: #dc2626; font: inherit; font-size: var(--fs-title); padding: 0 16px; cursor: pointer; }
.dash-head .dp-sw button.on { background: #dc2626; color: #fff; font-weight: 700; }
.dash-proc { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dash-proc[hidden], .dash[hidden] { display: none; }
.dash-proc > .sub-blank { grid-column: 1 / -1; grid-row: 1 / -1; }
.dp-cell { min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.dp-chart { width: 100%; height: 100%; min-width: 0; table-layout: fixed; font-size: 11px; }
.dp-chart th, .dp-chart td { padding: 0 3px; line-height: 1.25; }
.dp-chart th { width: 46px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dp-chart td { min-width: 0; overflow: hidden; }
.dp-chart .pl-g { height: 100%; }                                          /* 남는 높이는 물량 막대 줄로 */
.dp-chart .pl-g td { height: auto; padding: 0; position: relative; }
.dp-chart .dp-bar { position: absolute; top: 4px; bottom: 0; left: 4px; right: 4px; height: auto; }   /* 칸 높이에 맞춰 늘고 줄어듦 */
.dp-chart th small { display: block; }
.dp-chart th small span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* 수동 · 자동 · 축관 = 2줄 */
.dp-chart th b { display: block; font-size: 12px; }
.dp-chart .pl-p1 td, .dp-chart .pl-c1 td { text-align: right; }
.dp-chart .pl-v { float: none; }
.dp-chart .dp-ach { color: #dc2626; }
.dash-proc .dp-cell { cursor: pointer; user-select: none; }                /* 더블클릭 때 글자 선택 안 됨 */
.dash-proc .dp-cell:hover { border-color: #dc2626; }
/* 공정 칸 5주 팝업창 (2026-10-28) : 표는 더블클릭한 칸의 1.3배 (글자도 11 → 14.3px) · 길이는 5주, 넘치면 가로 스크롤 */
.dp-pop-body .dp-chart { font-size: 14.3px; }
.dp-pop-body .dp-chart th b { font-size: 15.6px; }
.win.dp-pop { width: auto; max-width: calc(100vw - 16px); min-width: 360px; resize: horizontal; overflow: hidden; }   /* 오른쪽 아래 모서리 = 가로로만 크기 조절 (2026-10-28) */
.dp-pop-body .dp-cell { flex: none; position: relative; }
.dp-pop-body { display: flex; align-items: flex-start; gap: 0; overflow: hidden; padding: 10px 12px; }
.dp-pop-left { flex: 1; min-width: 160px; overflow-x: auto; overflow-y: hidden; }
.dp-pop-split { flex: none; width: 7px; align-self: stretch; margin: 0 4px; cursor: col-resize; border-radius: 3px; background: #e2e8f0; }
.dp-pop-split:hover { background: #94a3b8; }
.dp-pop-right { flex: none; min-width: 220px; display: flex; flex-direction: column; }
.dp-pop-right[hidden], .dp-pop-split[hidden] { display: none; }            /* 처음 뜰 때 = 표만 (계획 · 실적 클릭 때 나타남) */
.dp-il-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px; font-size: 15px; }
.dp-il-head span { color: var(--mute); font-size: 13px; }
.dp-il-grid { display: flex; flex-direction: column; min-height: 120px; }
.dp-pop-body .pl-p1 td, .dp-pop-body .pl-c1 td, .dp-pop-body .pl-p1 th, .dp-pop-body .pl-c1 th { cursor: pointer; }
.dp-pop-body .pl-v.has { text-decoration: underline; }                    /* 계획 · 실적 수량이 있으면 밑줄 (2026-10-28) */
.dp-pop-body .dp-pick { background: #fef08a !important; }                  /* 물량 List 로 고른 칸 */
.dp-selbox { position: absolute; top: 0; bottom: 0; border: 3px solid #dc2626; pointer-events: none; z-index: 3; box-sizing: border-box; }   /* 고른 주 */
.dp-pop-body .sub-blank { min-width: 300px; padding: 30px; }
.dp-chart td.dp-mon { border-left: 2px solid #64748b; }                   /* 5주 팝업 : 주가 바뀌는 월요일 */
.dp-bar .pl-line { left: -4px; right: -4px; }
.dp-bar .dp-p, .dp-bar .dp-c { position: absolute; bottom: 0; width: 42%; z-index: 1; }
.dp-bar .dp-p { left: 6%; background: #3b82f6; }                           /* 계획 */
.dp-bar .dp-c { right: 6%; background: #ef4444; }                          /* 확정 */
.sub-head .sub-days input[type=number] { width: 64px; font: inherit; font-size: var(--fs-cell); padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; text-align: right; }
.pl-bar .pl-line[data-p]::before { content: attr(data-p); position: absolute; left: 1px; top: -12px; font-size: 10px; color: #9aa1ad; }   /* 첫 날 칸에만 % 표시 */
.pl-chart .pl-r td { text-align: center; font-weight: 700; }
.pl-chart .pl-s td, .pl-chart .pl-p1 td, .pl-chart .pl-c1 td { display: table-cell; }
.pl-chart .pl-k { float: left; } .pl-chart .pl-v { float: right; font-variant-numeric: tabular-nums; }
.pl-chart .pl-p1 td { color: #1d4ed8; } .pl-chart .pl-c1 td { color: #dc2626; }
.pl-chart .pl-d td { text-align: center; font-weight: 700; }
.pl-chart th small { font-weight: 400; color: var(--mute); }
.sub-head .sub-pok { margin-left: auto; font-weight: 700; padding: 3px 16px; }                    /* [확정] = 오른쪽 영역 머리 맨 오른쪽 */
.sub-head .sub-pok:disabled { opacity: .45; cursor: default; }
/* 생산부품공정 [| 표준공정/설비정보] 머리 오른쪽 [▶]/[◀] · [저장] (2026-10-28) */
.sub-head .sub-tools { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.sub-head .sub-tools .btn { padding: 3px 12px; font-weight: 700; }
.sub-head .sub-tools .sub-exp { min-width: 34px; padding: 3px 8px; }
/* 생산부품공정 [◀][□][▶] 두 칸 보기 (2026-11-12) : 붙여서 한 묶음, 고른 것 = 파랑 */
.sub-head .sub-cv { display: inline-flex; }
.sub-head .sub-cv .sub-exp { border-radius: 0; margin: 0 0 0 -1px; }
.sub-head .sub-cv .sub-exp:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
.sub-head .sub-cv .sub-exp:last-child { border-radius: 0 4px 4px 0; }
.sub-head .sub-cv .sub-exp.on { background: #e0ecff; color: #1d4ed8; border-color: #b6ccf5; font-weight: 700; position: relative; }
.sub-head .sub-tools .btn:disabled { opacity: .45; cursor: default; }
/* 전체목록 콤보 (2026-10-28, 모든 화면의 입력 콤보 — app.js FC) : 칸 오른쪽 ▼ 표시 + 직접 그린 목록 */
input.fc-in { padding-right: 20px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23596579'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 9px 6px; }
input.fc-in:focus { cursor: text; }
/* [전체목록R] (data-combo="allR", 2026-10-29) = 고르기만 : 읽기 전용이지만 회색이 아닌 입력 칸 모양, 누르면 목록 */
input.fc-in[data-combo="allR"][readonly]:not(:disabled), .ep-in input.fc-in[data-combo="allR"][readonly]:not(:disabled) {
  background-color: #fff; color: var(--ink); cursor: pointer; }
.fc-pop { position: fixed; z-index: 10050; max-height: 260px; overflow-y: auto; background: #fff; color: #1f2937;
  border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 6px 18px rgba(15, 23, 42, .18); padding: 3px 0; }
.fc-pop[hidden] { display: none; }
.fc-pop .fc-it { padding: 4px 10px; white-space: nowrap; cursor: pointer; text-align: left; }
.fc-pop .fc-it:hover { background: #eef3fb; }
.fc-pop .fc-it.on { background: var(--sel, #dbe7fb); font-weight: 700; }
/* 팝업 콤보 [전체목록R] (2026-11-25) : 팝업 안 <select> 목록 — 행 간격 좁게 */
.fs-pop { padding: 2px 0; }
.fs-pop .fc-it { padding: 1px 10px; line-height: 1.3; min-height: 1.3em; }
.sub-head .sub-plan .sp-cap { color: #dc2626; font-weight: 700; }

/* 포장/출하관리 아래 오른쪽 | 납품물량관리 (2026-10-29) : 머리 = 제목 [전체 · 완료 · 진행], 아래 줄 = 조건 [조회] 건수(밑줄) … [배차설정] */
.sub-head.sub-qh { align-items: center; gap: 14px; padding-bottom: 3px; }
.sub-head .sub-qopt { display: inline-flex; gap: 12px; font-weight: 400; }
.sub-head .sub-qopt label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.sub-head.sub-q { align-items: center; gap: 6px; font-weight: 400; }
.sub-head.sub-q select, .sub-head.sub-q input { font: inherit; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; }
.sub-head.sub-q .btn { font-size: var(--fs-title); }
.sub-head.sub-q .cnt[data-dcnt2] { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); margin-left: 4px; }
.sub-head.sub-q .sub-qbtn { margin-left: auto; }

/* 납품물량 운송차량 관리 팝업 (2026-10-29, js/delivery.js) : 크기 고정 · 머리를 끌어 옮김 · 마지막 위치 기억
   글자 = 1.3배 (15 → 19.5px, 2026-10-29 사용자 지정) */
.win.dlv-win { width: 1000px; max-width: calc(100vw - 16px); resize: none; font-size: 19.5px; }
.dlv-win .win-head { font-size: 23.4px; }
.dlv-body { padding: 8px 14px 4px; overflow-y: auto; }
.dlv-title { text-align: center; font-weight: 700; font-size: 23.4px; padding: 6px; background: #eaf6e6; border: 1px solid #b7d9ad; border-radius: 4px; margin-bottom: 8px; }
.dlv-top { display: flex; gap: 14px; align-items: stretch; }
/* 머리 칸 : [제목][상차][상차 입력][경유지][경유지 입력][하차][하차 입력] — 줄마다 칸 끝이 맞음 */
.dlv-flds { flex: 1; min-width: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto minmax(0, 1.25fr) auto minmax(0, 1fr);
  column-gap: 8px; row-gap: 6px; align-items: center; white-space: nowrap; }
.dlv-flds .dlv-l { grid-column: 1; }
.dlv-flds .dlv-code, .dlv-flds .dlv-date { grid-column: 2 / 4; }             /* 납품코드 · 납품일자 끝 = 상차 입력 끝 */
.dlv-flds .dlv-st { grid-column: 4 / 8; justify-self: end; display: inline-flex; align-items: center; gap: 8px; }   /* 상태 = 맨 오른쪽 */
.dlv-flds .dlv-c4 { grid-column: 4; justify-self: end; }                       /* 프로젝트 · 경유지 제목 = 입력 바로 앞 */
.dlv-flds .dlv-c5 { grid-column: 5; }
.dlv-flds .dlv-pname { grid-column: 6 / 8; color: #1d4ed8; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.dlv-win b { font-weight: 700; }
.dlv-win input, .dlv-win select { font: inherit; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; min-width: 0; }
.dlv-flds input { width: 100%; box-sizing: border-box; }
.dlv-win input:disabled { background: #f3f4f6; color: var(--mute); }
.dlv-win input[readonly] { background: #f3f4f6; }
.dlv-code { font-weight: 700; color: var(--acc); }
.dlv-qr { width: 124px; flex: 0 0 124px; border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 4px; color: #dc2626; font-weight: 700; font-size: 15px; text-align: center; word-break: break-all; }
.dlv-qr img { width: 92px; height: 92px; }
.dlv-items { margin-top: 10px; max-height: 230px; overflow-y: auto; border: 1px solid var(--line); }
.dlv-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dlv-t th { background: var(--head2); font-weight: 700; padding: 4px; border: 1px solid var(--line); position: sticky; top: 0; }
.dlv-t td { border: 1px solid var(--line); padding: 3px; }
.dlv-t td input, .dlv-t td select { width: 100%; box-sizing: border-box; border-color: transparent; }
.dlv-t td input:focus, .dlv-t td select:focus { border-color: var(--acc); }
.dlv-items .dlv-t { border: 0; }
.dlv-win input.num { text-align: right; }
.dlv-win input.fare { color: #1d4ed8; font-weight: 700; }
.dlv-sec { margin-top: 12px; padding: 4px 8px; font-weight: 700; background: #eaf6e6; border: 1px solid #b7d9ad; border-bottom: 0; }
/* 차량 : [자차/용차] 소속사 · 납품차량 · 운전자 · 운송비합계 · 기본운임 (두 운임 칸 = 좁게, 2026-10-29) */
.dlv-car col.c-g { width: 92px; } .dlv-car col.c-co { width: 21%; } .dlv-car col.c-car { width: 19%; }
.dlv-car col.c-f { width: 15%; }
.dlv-car td.dlv-gb { background: #fff; padding: 2px 8px; }
.dlv-car td.dlv-gb label { display: flex; align-items: center; gap: 6px; cursor: pointer; line-height: 1.6; }
.dlv-car td input, .dlv-car td select { border-color: var(--line); }
.dlv-ext { margin-top: 8px; }
.dlv-ext th label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.dlv-ext td input { border-color: var(--line); }
.dlv-win input[type=checkbox], .dlv-win input[type=radio] { width: 20px !important; height: 20px !important; }
.dlv-rm { display: flex; align-items: center; gap: 10px; margin-top: 10px; } .dlv-rm input { flex: 1; }
.dlv-foot { justify-content: flex-end; gap: 10px; }
.dlv-foot .btn { min-width: 124px; font-size: 19.5px; font-weight: 700; }
.dlv-msg { margin-right: auto; font-size: 17px; color: var(--mute); }
.dlv-msg.bad { color: var(--err); font-weight: 700; }
.dlv-mode { font-weight: 400; color: var(--mute); font-size: 18px; }

/* 포장/출하관리 포장 → 배차 흐름 (2026-10-29, js/packout.js) — 위 · 아래 모두 좌우 4칸 */
.pk-split > .sub-col { flex: 1 1 58%; }
.pk-split > .sub-col.sub2 { flex: 1 1 42%; }
.qd-split > .sub-col { flex: 1 1 50%; }                                     /* 외주관리 4영역 (2026-11-18) */
.qd-tb .fld { white-space: nowrap; }                                         /* 영역 조건 줄 '조회기간' 이 세로로 꺾이지 않게 (2026-11-18) */
.qd-box { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.qd-rup, .qd-rdn { display: flex; flex-direction: column; min-height: 0; min-width: 0; }   /* 외주관리 위 오른쪽 상 · 하 (2026-11-19) */
.qd-rup { flex: 1 1 60%; }
.qd-rdn { flex: 1 1 40%; }
.qd-tb[hidden] { display: none; }
.qd-lrow { flex: 1; min-height: 0; display: flex; gap: 10px; }              /* 외주관리 좌측영역 = 그리드 + 편집창 (2026-11-19) */
.qd-lrow > .qd-box { flex: 1 1 auto; min-width: 0; }
/* 외주 - 화물출고/입고 (2026-11-19) : 구분 · 출고/입고정보 칸 = 출고 · 입고 모두 파란 글자, 입고 줄은 옅은 빨강 바탕 */
.qd-tr .fg-t tbody tr:is(.qd-out, .qd-in) > td[data-ci="5"],.qd-tr .fg-t tbody tr:is(.qd-out, .qd-in) > td[data-ci="6"],.qd-tr .fg-t tbody tr:is(.qd-out, .qd-in) > td[data-ci="7"],.qd-tr .fg-t tbody tr:is(.qd-out, .qd-in) > td[data-ci="8"],.qd-tr .fg-t tbody tr:is(.qd-out, .qd-in) > td[data-ci="9"],.qd-tr .fg-t tbody tr:is(.qd-out, .qd-in) > td[data-ci="10"],.qd-tr .fg-t tbody tr:is(.qd-out, .qd-in) > td[data-ci="11"],.qd-tr .fg-t tbody tr:is(.qd-out, .qd-in) > td[data-ci="12"],.qd-tr .fg-t tbody tr:is(.qd-out, .qd-in) > td[data-ci="13"] { color: #1d4ed8; }
.qd-tr .fg-t tbody tr.qd-in:not(.sel) > td[data-ci="5"],.qd-tr .fg-t tbody tr.qd-in:not(.sel) > td[data-ci="6"],.qd-tr .fg-t tbody tr.qd-in:not(.sel) > td[data-ci="7"],.qd-tr .fg-t tbody tr.qd-in:not(.sel) > td[data-ci="8"],.qd-tr .fg-t tbody tr.qd-in:not(.sel) > td[data-ci="9"],.qd-tr .fg-t tbody tr.qd-in:not(.sel) > td[data-ci="10"],.qd-tr .fg-t tbody tr.qd-in:not(.sel) > td[data-ci="11"],.qd-tr .fg-t tbody tr.qd-in:not(.sel) > td[data-ci="12"],.qd-tr .fg-t tbody tr.qd-in:not(.sel) > td[data-ci="13"] { background: #ffe4e4; }
.qd-rbody { flex: 1; min-height: 0; display: flex; gap: 6px; }                 /* 화물출고증 부품목록 : 그리드 + 주소/특이사항 (2026-11-19) */
.qd-rbody > .qd-box { flex: 1 1 auto; min-width: 0; }
.qd-rbody:has(> .qd-mvs) { gap: 0; }
.qd-tb .qd-act { margin-left: auto; font-weight: 700; color: #fff; background: #dc2626; border-color: #dc2626; }   /* [외주물량입고] (2026-11-19) */
.qd-tb .qd-act:disabled { opacity: .4; cursor: default; }
.osin-pop { width: 560px; }
.osin-body { padding: 8px 12px 10px; overflow: auto; max-height: calc(100vh - 120px); }
.osin-body .ep-body { display: flex; flex-direction: column; gap: 6px; }
.osin-gh { font-weight: 700; margin: 8px 0 4px; }
.osin-grid { max-height: 180px; }
.osin-grid td.l { text-align: left; } .osin-grid td.r { text-align: right; }
.osin-foot { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.osin-foot .ep-msg { margin-right: auto; }
.osin-foot .osin-cf { font-weight: 700; color: #fff; background: #dc2626; border-color: #dc2626; }   /* [배차완료] (2026-11-19) */
.osin-foot .btn:disabled { opacity: .4; cursor: default; }
.osin-body .ep-in input.osin-num { text-align: right; }   /* 수량 · 중량 = 오른쪽 + 콤마 (2026-11-19) */
.qd-rbody > .qd-box[style*="flex"] ~ .qd-memo { flex: 1 1 auto; min-width: 120px; }   /* Splitterbar 로 왼쪽 폭을 정하면 메모 = 나머지 (2026-11-19) */
.qd-memo { flex: 0 0 240px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); min-height: 0; }
.qd-memo-h { padding: 4px 8px; font-weight: 700; font-size: var(--fs-cell); color: #d32f2f; border-bottom: 1px solid var(--line); background: #f3f6fb; }
.qd-memo textarea { flex: 1; min-height: 0; border: 0; resize: none; padding: 6px 8px; font: inherit; font-size: var(--fs-cell); background: transparent; outline: none; }
.qd-rbody > .qd-box .fg-t tbody td { color: #1d4ed8; }   /* 화물출고증 배차목록 그리드 글자 파랑 (2026-11-20) */
.qd-ci { flex: 0 0 420px; overflow: auto; border-radius: 0; border: 0; background: transparent; }   /* 배차정보 고정 그리드 (2026-11-20) */
.qd-rbody > .qd-box[style*="flex"] ~ .qd-ci { min-width: 240px; }
.ci-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--fs-cell); background: #fff; }
.ci-t th, .ci-t td { border: 1px solid #8f99a8; padding: 0; height: 30px; }
.ci-t .ci-h { background: #ffff66; font-weight: 700; text-align: center; padding: 4px 6px; height: 34px; }
.ci-t .ci-l { text-align: center; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-t .ci-l[rowspan] { white-space: normal; word-break: keep-all; line-height: 1.3; }   /* 배차 일자/시간 = 2줄 칸, 좁으면 줄바꿈 (2026-11-20) */
.ci-t .ci-v input { width: 100%; box-sizing: border-box; border: 0; padding: 4px 8px; font: inherit; background: transparent; outline: none; }
.ci-t .ci-v input:focus { background: #fffbe0; }
.ci-t tr.nb td.ci-v { border-bottom: 0; }
.ci-t tr.nt td.ci-v { border-top: 0; }
.qd-trb > .sub-head { position: relative; }
.sub-head .qd-cibar { position: absolute; top: 0; bottom: 0; right: 0; left: auto; display: flex; align-items: center; gap: 8px; }   /* left = 배차정보 그리드 왼쪽 (app.js ciPos) */
.sub-head .qd-cibar .qd-ciio + * { margin-left: auto; }   /* 옵션 = 왼쪽, 편집 체크 · [편집저장] = 오른쪽 (admin 아니면 [편집저장] 만) */
.ci-t .ci-v input[readonly] { cursor: default; }
.ci-t .ci-v input[readonly]:focus { background: transparent; }   /* 출고 · 입고 옵션 · 편집 체크 · [편집저장] (2026-11-20) */
.sub-head .qd-ciio { margin: 0; }
.sub-head .qd-ciedit { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.sub-head .qd-cisave { align-self: center; padding: 2px 12px; font-size: var(--fs-cell); }
.sub-head .qd-print { margin-left: 12px; align-self: center; padding: 2px 12px; font-size: var(--fs-cell); font-weight: 700; color: #d32f2f; background: #ffe3e3; border-color: #f2b8b8; }
.sub-head .qd-print:hover { background: #ffd2d2; }
/* 외주관리 [외주물량편집] 편집창 (2026-11-19) : 화물 그리드 = 5줄 + 합계 (높이 고정), 구분선 · | 배차정보 */
.ose-gbar { display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--acc); margin-top: 2px; }
.ose-grid { border: 1px solid var(--line); border-radius: 5px; background: var(--panel); overflow-x: auto; overflow-y: hidden; flex: none; }   /* 열폭을 넓히면 가로 스크롤 (2026-11-19) */
.ose-grid table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.ose-grid th { background: var(--top); color: var(--top-ink); font-weight: 700; padding: 0 4px; height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ose-grid td { border-top: 1px solid var(--line2); padding: 0 2px; height: 30px; text-align: center; }
.ose-grid td + td { border-left: 1px solid var(--line2); }
.ose-grid input { width: 100%; box-sizing: border-box; border: 0; background: transparent; padding: 2px 4px; font: inherit; }
.ose-grid input:focus { background: #fff8d6; outline: none; }
.ose-grid .r { text-align: right; }
.ose-grid tr.sum td { background: #eef3fb; font-weight: 700; padding: 0 6px; }
.ose-sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0 2px; }
.ose-sec { font-weight: 700; color: var(--acc); }
.ose-chk { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #d32f2f; cursor: pointer; }   /* ☐배차물량편집 */
.ose-grid.ro input { color: var(--ink); cursor: default; }
.ose-grid.ro input:focus { background: transparent; }
.sub-head.pk-th { align-items: center; padding-bottom: 3px; }
.sub-head .cnt.pk-cnt { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); margin-left: 4px; }
.sub-head .pk-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.sub-head .pk-only { display: inline-flex; align-items: center; cursor: pointer; }
.sub-head .pk-only input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.sub-head .pk-tools .btn { font-size: var(--fs-title); }
/* 2층 그리드 : 위 줄(포장 · 납품) = 옅은 파랑 · 굵게, 아래 줄(견적 물량) = 작게 · 회색, 체크 없음 */
.fg-t tbody tr.pk-h td { background: #eef3fb; font-weight: 700; border-top: 1px solid var(--line); }
.fg-t tbody tr.pk-d td { color: #475569; font-size: calc(var(--fs-cell) * .9); height: 30px; }
.fg-t tbody tr.pk-d td.chk { background: var(--panel); }
/* 팝업 물량 (세로 스크롤) : 묶음 줄 = 옅은 파랑, 아래 줄 = 들여쓰기 */
.win.pk-win { width: 940px; }
.dlv-flds .pk-name { grid-column: 2 / 6; }
.dlv-items.pk-items { max-height: none; overflow-y: auto; }   /* 높이 = 머리 + 10줄 자리 늘 (fitRows, 2026-10-30), 넘으면 세로 스크롤 */
.pk-t td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-t tr.pk-g td { background: #e8eef9; font-weight: 700; padding: 0 6px; }
.pk-t tr.pk-i td { padding: 0 6px; }
.pk-t tbody td { height: 34px; box-sizing: border-box; }   /* 모든 줄 34px (fitRows 의 10 × 34 와 같게) */
.pk-t tbody td input { height: 30px; box-sizing: border-box; }
.pk-t td.pk-ty { padding-left: 24px !important; }
.pk-t td.pk-po { color: var(--mute); }
.pk-t td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pk-t td.pk-none { text-align: center; color: var(--mute); padding: 14px; white-space: normal; }
.pk-t .pk-x { border: 0; background: none; color: var(--err); font-weight: 700; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.dlv-foot .btn.pk-del { color: var(--err); order: -1; }   /* [삭제] = 아래 줄 맨 왼쪽 (2026-10-30), 안내 글은 그 뒤 */
/* 차량정보 및 등록 [저장] (2026-10-29) = 새 차량 등록, 머리 줄 맨 오른쪽 */
.dlv-sec { display: flex; align-items: center; }
.dlv-sec .dlv-carsave { margin-left: auto; padding: 1px 14px; font-size: 18px; font-weight: 700; color: var(--err); }
/* [포장편집] · [배차편집] (2026-10-30) = 옅은 빨강, 고른 줄 상태가 맞을 때만 활성 · 납품설정 팝업 = 포장 빼기(×) 없음 */
.sub-head .pk-tools .btn.pk-edit { background: #ffe1e1; border-color: #f3b4b4; color: #b91c1c; font-weight: 700; }
.sub-head .pk-tools .btn.pk-edit.on { background: #fff; }
.sub-head .pk-tools .btn.pk-edit:disabled { opacity: .5; cursor: default; }
.dlv-win.dlv-deliver .pk-x { display: none; }

/* 생산작업일보 | 공정별 작업물량 리스트 : 일자(병합 칸) 아래 줄 요일 (app.js cellHtml, 2026-11-10) */
.fg-t td .wd-day { font-weight: 700; }
.fg-t td .wd-day.sat { color: #1a56db; }
.fg-t td .wd-day.sun { color: #dc2626; }

/* 주간생산 계획/실적 : 타이틀 옆 옵션 ●공정별 ○설비별 (2026-11-10) */
.doc-head .wp-by { display: inline-flex; align-items: center; gap: 16px; margin-left: 22px; font-size: 17px; font-weight: 700; color: var(--d1-ink); }   /* 글자 1.3배 (13 → 17px, 2026-11-10) = 다른 화면 타이틀 옵션(.t-opts 17px)과 같은 크기 */
.doc-head .wp-by label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.doc-head .wp-by input { width: 15px; height: 15px; margin: 0; accent-color: var(--d1-ink); }

/* [주간엑셀업로드] 생산배정 ●수동배정 ○자동배정 · [엑셀/설비 매핑테이블] (자동배정일 때만, 2026-11-10) */
.xlw-mode { gap: 22px; align-items: center; font-weight: 700; }
.xlw-mode label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.xlw-mode input { width: 16px; height: 16px; margin: 0; }
.xlw-map { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.xlw-map[hidden] { display: none; }
.xlw-map-h { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.xlw-map-n { color: var(--mute); font-size: 13px; }
.xlw-map-h .btn { margin-left: auto; }
.xlw-map-gw { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 4px; }
.xlw-map-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.xlw-map-t th { position: sticky; top: 0; background: var(--head); color: var(--head-ink); padding: 4px 6px; border: 1px solid var(--line); white-space: nowrap; }
.xlw-map-t th small { font-weight: 400; }
.xlw-map-t td { padding: 2px 6px; border: 1px solid var(--line2); white-space: nowrap; }
.xlw-map-t td.c { text-align: center; } .xlw-map-t td.b { font-weight: 700; } .xlw-map-t td.bad { color: var(--err); }
.xlw-map-t td input { width: 100%; box-sizing: border-box; font-size: 14px; padding: 2px 4px; }

/* 생산작업일보 [작업지시서발행] 단추 (테스트물량적용 옆) · 팝업창 (2026-11-10) */
.sub-head .wr-woissue { margin-left: 10px; align-self: center; font-weight: 700; color: #1d4ed8; background: #e0ecff; border-color: #b6ccf5; white-space: nowrap; }
.win.woi-pop { width: min(560px, calc(100vw - 16px)) !important; height: auto !important; resize: none; font-size: 18px; }
.woi-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 6px; }
.woi-info { display: flex; gap: 28px; }
.woi-info b { color: var(--d1-ink); }
.woi-cap { font-weight: 700; margin-top: 4px; }
.woi-row { display: flex; align-items: center; gap: 14px; padding-left: 10px; }
.woi-chk { display: inline-flex; align-items: center; gap: 6px; width: 90px; font-weight: 700; cursor: pointer; }
.woi-chk input { width: 17px; height: 17px; margin: 0; }
.woi-line { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; white-space: nowrap; }
.woi-line select { flex: 1; min-width: 0; font-size: 16px; }
.woi-msg { min-height: 24px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }   /* 구분줄 */
.woi-msg.bad { color: var(--err); font-weight: 700; }
.sub-head .wr-woissue:disabled { opacity: .45; cursor: default; }   /* 일자를 고르기 전 (2026-11-10) */
.woi-date { color: var(--err); font-weight: 400; }   /* [작업지시서발행] - 작업일자 : 고른 일자 (빨강, 2026-11-10) */
.woi-date b { font-weight: 700; }

/* 작업지시서 QR 코드 (결재란 왼쪽, [작업지시서발행] 2026-11-10) : 값 = 작업일자;WO-CUT;출력일시 */
.wo-top .wo-qr { margin-left: auto; align-self: center; line-height: 0; }
.wo-top .wo-qr svg { display: block; width: 84px; height: 84px; }
.wo-top .wo-qr + .wo-sign { margin-left: 0; }

/* 생산부품공정 편집 창 [시간산출] (2026-11-10 사용자 지정) : 작업공정별 표준작업 줄 왼쪽 단추 + 시간산출 팝업창 */
.doc[data-id="gongjung"] .edit-pane .gj-tcalc { margin-right: auto; color: #d32f2f; font-weight: 700; border-color: #f2b8b8; background: #ffe3e3; }
.doc[data-id="gongjung"] .edit-pane .gj-tcalc:hover { background: #ffd2d2; }
.win.tc-pop { width: min(760px, calc(100vw - 16px)) !important; height: auto !important; resize: none; }
.tc-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 14px; font-size: 15px; }
.tc-cond { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tc-cond th, .tc-cond td { border: 1px solid var(--line); padding: 3px 5px; }
.tc-cond th { width: 72px; background: var(--head2); font-weight: 700; white-space: nowrap; }
.tc-cond input, .tc-cond select { width: 100%; box-sizing: border-box; font-size: 15px; padding: 3px 5px; text-align: center; color: var(--d1-ink); font-weight: 700; }
.tc-cond input[readonly] { background: #f3f4f6; }
.tc-cond input.ok { color: #1d4ed8; } .tc-cond input.bad { color: #d32f2f; }
/* 여유일 두 칸 (투입일 여유 · 납기일 여유) : 기본 파랑 */
.tc-cond .tc-gap { display: flex; gap: 4px; }
.tc-cond .tc-gap input { flex: 1 1 0; min-width: 0; color: #1d4ed8; }
.tc-cond .tc-gap input.bad { color: #d32f2f; }
.tc-gbar { display: flex; align-items: center; gap: 10px; }
.tc-gbar .sp { flex: 1; }
.tc-only { display: flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.tc-rule { color: var(--mute); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tc-grid { max-height: 330px; overflow-y: auto; border: 1px solid var(--line); }
.tc-grid table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14.5px; }
.tc-grid th { position: sticky; top: 0; height: 27px; background: var(--head2); font-weight: 700; border-bottom: 1px solid var(--line); }
.tc-grid th:nth-child(1) { width: 40px; } .tc-grid th:nth-child(2) { width: 22%; } .tc-grid th:nth-child(3) { width: 74px; }
.tc-grid th:nth-child(4) { width: 76px; } .tc-grid th:nth-child(5) { width: 76px; } .tc-grid th:nth-child(8) { width: 76px; }
.tc-grid td.pw { color: #1d4ed8; font-weight: 700; }   /* 일-능력 = 능력시간 합 (대수), 2026-11-10 */
.tc-grid td { height: 27px; border-top: 1px solid var(--line2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-grid td.l { text-align: left; padding-left: 6px; } .tc-grid td.r { text-align: right; padding-right: 6px; }
.tc-grid td.ct { font-weight: 700; background: #ffe1e1; }
.tc-grid tr[title] { cursor: help; }
.tc-grid td.ok { color: #1d4ed8; font-weight: 700; } .tc-grid td.bad { color: #d32f2f; font-weight: 700; }
.tc-msg { min-height: 18px; font-size: 13px; color: var(--d1-ink); white-space: pre-line; }
.tc-msg.bad { color: var(--err); }

/* 설비 편집 창 능력시간 (2026-11-10) : 빨강 · 굵게 · 오른쪽 */
.doc[data-id="equip"] .edit-pane input[data-f=EQPowerHR] { color: #d32f2f; font-weight: 700; text-align: right; }

/* 생산부품공정 | 표준공정/설비정보 [Refresh] (2026-11-10) : 건수 뒤, 빨강 굵게 */
.sub-head .sub-refresh { margin-left: 8px; padding: 1px 10px; color: #d32f2f; font-weight: 700; border-color: #f2b8b8; background: #fff; align-self: center; }
.sub-head .sub-refresh:hover { background: #ffe3e3; }
.sub-head .sub-refresh:disabled { opacity: .45; cursor: default; }
.c-week h3 .wk-refresh { margin-left: 8px; padding: 1px 10px; color: #d32f2f; font-weight: 700; border-color: #f2b8b8; background: #fff; vertical-align: middle; }   /* 금주 [Refresh] (2026-11-11) */
.c-week h3 .wk-refresh:hover { background: #ffe3e3; }
.c-week h3 .wk-refresh:disabled { opacity: .45; cursor: default; }

/* 시간산출 팝업 ☐토요일 · ☐일요일 (2026-11-10) : [공정시간 및 일정산출] 줄 오른쪽, 빨강 */
.tc-caprow { display: flex; align-items: center; gap: 12px; }
.tc-caprow .sp { flex: 1; }
.tc-wk { display: flex; align-items: center; gap: 4px; color: #d32f2f; font-weight: 700; white-space: nowrap; cursor: pointer; }
/* | 설비별 부하배정 열폭 조정 (2026-11-11) : ☑열저장 체크 때 머리 칸 오른쪽 끝 손잡이, 끌면 칸 폭 고정 (cw-fixed) */
.wr-mt thead th[data-ci] { position: relative; }
.wr-mt .wm-rz { display: none; position: absolute; top: 0; right: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 6; touch-action: none; }
.wr-mt.rz-on .wm-rz { display: block; }
.wr-mt.rz-on .wm-rz:hover, .wr-mt.rz-drag .wm-rz { background: var(--acc); opacity: .55; }
.wr-mt.cw-fixed { table-layout: fixed; }
.wr-mt.cw-fixed th, .wr-mt.cw-fixed td { overflow: hidden; text-overflow: ellipsis; }
.wr-mt.cw-fixed input, .wr-mt.cw-fixed select, .wr-mt.cw-fixed input[data-w=worker], .wr-mt.cw-fixed input[data-w=workerB], .wr-mt.cw-fixed input[data-w=day], .wr-mt.cw-fixed input[data-w=night] { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.wr-mt.cw-fixed tr.sec td { overflow: visible; }

/* 팝업창 열편집 · 열저장 (2026-11-17, 모든 팝업창, admin 만) — app.js pcw* */
.pcw-tools { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 8px; font-size: 14px; font-weight: 400; }
.pcw-tools + .dd-ptg { margin-left: 0 !important; }   /* [열저장] 바로 뒤 [🎨] · × (오른쪽에 모아서) */
.pcw-tools input { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.pcw-tools .btn { height: 26px; padding: 0 10px; font-size: 13px; }
.pcw-tools .btn:disabled { opacity: .45; }
table.pcw-on thead th { box-shadow: inset -1px 0 0 var(--acc); }
.pcw-rz { position: absolute; top: 0; right: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 6; touch-action: none; }
.pcw-rz:hover { background: var(--acc); opacity: .55; }

/* 계획수립 [대기] 일 때만 [▼] [▲] [계획실행] (2026-11-17) */
.tb-optbtns { display: inline-flex; gap: 4px; margin-left: 10px; }
.tb-optbtns[hidden] { display: none; }
.tb-optbtns .tb-arrow { min-width: 30px; padding: 0 6px; color: #fff; background: #d32f2f; border-color: #d32f2f; font-weight: 800; }
.tb-optbtns .tb-run { color: #d32f2f; border-color: #d32f2f; font-weight: 800; }
.tb-optbtns .tb-run::after { content: attr(data-cap); }                  /* [계획실행] ↔ [계획확정] */
.tb-optbtns .tb-run.on { color: #fff; background: #d32f2f; }
.tb-optbtns .tb-psave { color: #d32f2f; border-color: #d32f2f; font-weight: 800; }   /* [대기] [저장] 우선순위 (2026-11-17) */
.pl-sp { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }   /* 계획수립 생산품목 (2026-11-17) */
.pl-sp:hover { color: #1d4ed8; }
.fg td select.pl-om { display: block; width: 100%; max-width: 100%; box-sizing: border-box; margin: 0; }   /* 적용모듈 콤보 = 칸 폭 (2026-11-17) */
.fg td:has(> select.pl-om) { padding: 0 2px; }

/* 계획수립 [대기] 대수 입력 칸 (2026-11-17) */
.doc[data-id="plan"] input.pl-eq { width: 100%; box-sizing: border-box; text-align: center; font-weight: 700; color: var(--d1-ink); }
.pd-grid td.pd-c, .pd-grid td.pd-c .pd-lnk { color: #1d4ed8; }   /* 공정일자별 확정 = 파랑 · 계획 = 검정 (구분 · 일자 칸, 2026-11-17) */
.pd-grid td.pd-p, .pd-grid td.pd-p .pd-lnk { color: #111; }
