/* ══════════════════════════════════════════════════════════════
   🗂 발주 취합 파일함 — orderfiles.css  (v675 · 설계 «스윔레인 칸반 보드 설계4» export-of order-files.css 이식 · 접두사 of-* · 공용 hd-* = shipdoc.css)
   ══════════════════════════════════════════════════════════════ */
#orderfiles { color:var(--text, #1c2430); font-size:13.5px; background:#eef0e6; min-height:100%;
  --panel:#ffffff; --panel-sub:#fbfaf2; --panel-alt:#f6f5ec; --accent:#5a6636; --accent-hover:#4d5434; --accent-fg:#4d5434;
  --accent-bg:#ecead7; --accent-bg-2:#f5f4e7; --accent-line:#c9c5a1; --line:#dcd8c0; --line-soft:#e8e5d1; --line-faint:#edebdb; --line-strong:#cbd5e1;
  --text:#1c2430; --text-mid:#33415c; --sub:#6b7686; --muted:#98a2b3; --faint:#cbd5e1; --slate:#475467;
  --ok-bg:#e7f6ec; --ok-fg:#15803d; --warn-bg:#fef3e2; --warn-fg:#b4530a; --warn-line:#f2d3ae; --neutral-bg:#eef2f7; }
#orderfiles * { box-sizing:border-box; }
#orderfiles .page-header { position:sticky; top:var(--oftop, 0px); z-index:40; background:#fff; border-bottom:1px solid #dcd8c0; }
#orderfiles .page-header__row { display:flex; align-items:flex-end; gap:14px; padding:11px 16px 10px; flex-wrap:wrap; }
#orderfiles .crumb { display:flex; align-items:center; gap:6px; font-size:11.5px; color:#98a2b3; font-weight:600; }
#orderfiles .page-title { margin:0; font-size:19px; font-weight:800; letter-spacing:-.4px; }
#orderfiles .chip { border-radius:0 !important; padding:2px 8px; font-size:11.5px; font-weight:700; margin:0; }
#orderfiles .chip--accent { background:#ecead7; color:#4d5434; }
#orderfiles .hd-in { height:30px; }
.of-wrap { display:grid; grid-template-columns:248px minmax(0,1fr); gap:12px; align-items:start; max-width:1560px; margin:0 auto; padding:12px 16px 34px; }
@media (max-width:980px) { .of-wrap { grid-template-columns:minmax(0,1fr); } }

/* 왼쪽 — 날짜 목록 */
.of-days { border:1px solid var(--line); background:var(--panel); position:sticky; top:calc(var(--oftop, 0px) + 70px); max-height:calc(100vh - var(--oftop, 0px) - 90px); display:flex; flex-direction:column; }
@media (max-width:980px) { .of-days { position:static; max-height:260px; } }
.of-days__h { flex:none; display:flex; align-items:center; gap:4px; padding:8px 10px; border-bottom:1px solid var(--line-soft); background:var(--panel-sub); }
.of-days__h button { height:24px; padding:0 8px; border:0; background:none; font:inherit; font-size:11px; font-weight:700; color:var(--muted); cursor:pointer; }
.of-days__h button.is-on { background:var(--accent-bg); color:var(--accent-fg); font-weight:800; }
.of-days__b { flex:1; min-height:0; overflow:auto; }
.of-mo { padding:8px 12px 4px; font-size:10px; font-weight:800; color:var(--faint); letter-spacing:.3px; }
.of-day { display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:8px; align-items:center; width:100%; padding:8px 12px; border:0; border-top:1px solid var(--line-faint);
          background:var(--panel); font:inherit; text-align:left; color:var(--text); cursor:pointer; }
.of-day:hover { background:var(--panel-sub); }
.of-day.is-on { background:var(--accent-bg-2); box-shadow:inset 3px 0 0 var(--accent); }
.of-day__d { display:flex; flex-direction:column; align-items:center; line-height:1.1; }
.of-day__d b { font-size:17px; font-weight:800; font-variant-numeric:tabular-nums; }
.of-day__d small { font-size:9.5px; font-weight:700; color:var(--muted); }
.of-day__d.is-today b { color:var(--accent-fg); }
.of-day__m { min-width:0; display:flex; flex-direction:column; gap:3px; }
.of-day__m > span { font-size:11px; color:var(--sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.of-day__s { display:flex; gap:3px; }
.of-day__s i { width:16px; height:4px; background:var(--line); }
.of-day__s i.is-cp { background:#8a6a2e; } .of-day__s i.is-nv { background:#4f6b3a; } .of-day__s i.is-etc { background:#5d6470; } .of-day__s i.is-man { background:#98a2b3; }
.of-day__n { font-size:11px; font-weight:800; color:var(--muted); font-variant-numeric:tabular-nums; }

/* 오른쪽 — 날짜 요약 */
.of-main { min-width:0; display:flex; flex-direction:column; gap:11px; }
.of-sum { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:11px 14px; border:1px solid var(--line); background:var(--panel); }
.of-sum__d { display:flex; flex-direction:column; }
.of-sum__d b { font-size:16px; font-weight:800; }
.of-sum__d small { font-size:11px; color:var(--muted); }

/* 차수 카드 */
.of-run { border:1px solid var(--line); background:var(--panel); }
.of-run.is-cx { opacity:.72; }
.of-run__h { display:flex; align-items:center; gap:9px; flex-wrap:wrap; padding:10px 14px; border-bottom:1px solid var(--line-soft); background:var(--panel-sub); }
.of-run__no { font-family:'SFMono-Regular',Menlo,monospace; font-size:13px; font-weight:800; }
.of-run__m { font-size:11px; color:var(--muted); }
.of-run__st { font-size:10.5px; font-weight:800; padding:2px 7px; }
.of-run__st.is-ok { background:var(--ok-bg); color:var(--ok-fg); }
.of-run__st.is-wait { background:var(--warn-bg); color:var(--warn-fg); }
.of-run__st.is-man { background:#eef2f7; color:#475467; }
.of-seq { flex:none; font-size:11px; font-weight:800; padding:2px 8px; background:#2a3020; color:#f2eeda; }
.of-site { display:inline-flex; align-items:center; gap:4px; font-size:10px; font-weight:800; padding:1px 6px; background:var(--panel); border:1px solid var(--line); color:var(--sub); white-space:nowrap; }
.of-site::before { content:''; width:6px; height:6px; background:var(--pc, var(--slate)); }

/* 파일 줄 */
.of-f__k { height:22px; display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:800; letter-spacing:.3px; background:var(--panel-alt); color:var(--muted); width:42px; flex:none; }
.of-f__k.is-xls { background:#e6ecdc; color:#3f5a2b; }
.of-f__k.is-pdf { background:#f5e3dd; color:#9a3412; }
.of-f__k.is-csv { background:#e4ebf3; color:#2d5a85; }
.of-f__b { min-width:0; display:flex; flex-direction:column; gap:2px; }
.of-f__n { display:flex; align-items:center; gap:6px; min-width:0; }
.of-f__n b { font-size:12px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.of-f__v { flex:none; font-size:9.5px; font-weight:800; padding:0 5px; background:var(--accent-bg); color:var(--accent-fg); }
.of-f__v.is-old { background:var(--panel-alt); color:var(--muted); }
.of-f__m { font-size:10.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.of-f__a { display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
.of-ib { height:26px; padding:0 8px; border:1px solid var(--line); background:var(--panel); font:inherit; font-size:11px; font-weight:700; color:var(--sub); cursor:pointer; white-space:nowrap; display:inline-flex; align-items:center; gap:3px; text-decoration:none; }
.of-ib:hover { border-color:var(--accent-line); color:var(--text); }
.of-ib:disabled { opacity:.45; cursor:default; }
.of-ib.is-pri { background:var(--accent); border-color:var(--accent-hover); color:#f2eeda; font-weight:800; }
.of-ck { width:15px; height:15px; accent-color:var(--accent); margin:0; cursor:pointer; }
.of-fl { border-top:1px solid var(--line-faint); }
.of-fl:first-child { border-top:0; }
.of-fl.is-old { opacity:.55; }
.of-fl__r { display:grid; grid-template-columns:auto auto minmax(0,1fr) auto auto; gap:9px; align-items:center; padding:8px 12px; }
.of-fl.is-final > .of-fl__r { padding:10px 12px; }
.of-fl:hover > .of-fl__r { background:var(--panel-sub); }
.of-final { flex:none; font-size:9.5px; font-weight:800; padding:1px 6px; background:#2a3020; color:#f2eeda; letter-spacing:.3px; }
.of-final.is-fb { background:#b4530a; }
.of-man { flex:none; font-size:9.5px; font-weight:800; padding:0 5px; background:#eef2f7; color:#475467; }
.of-man.is-miss { background:#fdecec; color:#b0413e; }
.of-ver { flex:none; border:0; font:inherit; font-size:9.5px; font-weight:800; padding:0 5px; background:var(--accent-bg); color:var(--accent-fg); cursor:pointer; }
.of-ver:hover { text-decoration:underline; }
.of-cmb.has { color:var(--accent-fg); border-color:var(--accent-line); font-weight:800; }
.of-cmb.is-on { background:var(--accent-bg-2); }
.of-mvs { font-size:10.5px; font-weight:800; padding:2px 7px; background:var(--ok-bg); color:var(--ok-fg); white-space:nowrap; font-variant-numeric:tabular-nums; }
.of-mvs.is-warn { background:var(--warn-bg); color:var(--warn-fg); }
.of-mvs.is-man { background:#eef2f7; color:#475467; }
.of-fin { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px 12px; }
.of-fin.is-wait { background:repeating-linear-gradient(135deg, #fbf8ee 0 6px, #f6f2e2 6px 12px); }
.of-fin.is-wait .of-f__n b { color:var(--muted); }

/* 교체 이력 · 댓글 */
.of-hist { margin:0 12px 9px 52px; border:1px solid var(--line-soft); background:var(--panel-sub); }
.of-hist__r { display:grid; grid-template-columns:28px minmax(0,1fr) auto auto; gap:8px; align-items:center; padding:5px 9px; border-top:1px solid var(--line-faint); font-size:11px; }
.of-hist__r:first-child { border-top:0; }
.of-hist__r b { font-size:10.5px; color:var(--muted); }
.of-hist__r span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--sub); }
.of-hist__r small { font-size:10px; color:var(--faint); white-space:nowrap; }
.of-hist__r.is-cur b, .of-hist__r.is-cur span { color:var(--accent-fg); font-weight:800; }
.of-cm { margin:0 12px 10px 52px; padding:9px 11px; border:1px solid var(--line-soft); background:var(--panel-sub); display:flex; flex-direction:column; gap:8px; }
.of-cm__r { display:grid; grid-template-columns:22px minmax(0,1fr); gap:8px; }
.of-cm__a { width:22px; height:22px; display:flex; align-items:center; justify-content:center; background:var(--accent-bg); color:var(--accent-fg); font-size:10.5px; font-weight:800; }
.of-cm__r b { font-size:11.5px; margin-right:6px; }
.of-cm__r small { font-size:10px; color:var(--faint); }
.of-cm__t { display:block; font-size:12px; line-height:1.55; white-space:pre-wrap; margin-top:1px; }
.of-cm0 { font-size:11px; color:var(--faint); }
.of-cm__in { display:flex; flex-direction:column; align-items:stretch; gap:6px; }
.of-cm__in textarea { width:100%; box-sizing:border-box; min-height:54px; resize:vertical; border:1px solid var(--line); background:var(--panel); padding:7px 10px; font:inherit; font-size:12px; line-height:1.5; }
.of-cm__in textarea:focus { outline:none; border-color:var(--accent); }
.of-cm__in .of-ib { align-self:flex-end; }

/* 사이트 줄 — 최종 파일 + 더보기 추적 */
.of-sr { display:grid; grid-template-columns:200px minmax(0,1fr); border-top:1px solid var(--line-faint); }
.of-sr:first-of-type { border-top:0; }
.of-sr__l { padding:11px 14px; display:flex; flex-direction:column; gap:5px; border-right:1px solid var(--line-faint); background:#fcfbf7; box-shadow:inset 3px 0 0 var(--pc); }
.of-sr__l > b { font-size:12.5px; font-weight:800; }
.of-sr__l > small { font-size:10px; color:var(--muted); }
.of-accs { display:flex; flex-wrap:wrap; gap:3px; }
.of-acc { flex:none; font-size:10px; font-weight:800; padding:1px 6px; background:var(--panel); border:1px solid var(--line); color:var(--sub); white-space:nowrap; }
.of-sr__r { min-width:0; display:flex; flex-direction:column; }
.of-more { align-self:flex-start; display:inline-flex; align-items:baseline; gap:6px; margin:0 12px 9px 64px; padding:0; border:0; background:none; font:inherit; font-size:11px; font-weight:800; color:var(--accent-fg); cursor:pointer; }
.of-more small { font-size:10px; font-weight:600; color:var(--muted); }
.of-more:hover { text-decoration:underline; }
.of-cxb { margin:0 0 2px 2px; color:var(--muted); }
.of-trace { margin:0 12px 12px 64px; border:1px solid var(--line-soft); background:var(--panel-sub); }
.of-tr { display:grid; grid-template-columns:110px minmax(0,1fr); gap:0; border-top:1px solid var(--line-faint); }
.of-tr:first-child { border-top:0; }
.of-tr__l { padding:9px 10px; font-size:11px; font-weight:800; color:var(--sub); }
.of-tr__b { min-width:0; display:flex; flex-direction:column; padding:3px 0; }
.of-tr--ex { border-top:1px solid var(--line-soft); background:#fcfbf7; }
.of-tf { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:9px; align-items:center; padding:6px 10px 6px 0; }
.of-tf.is-wait { grid-template-columns:1fr; font-size:11px; color:var(--warn-fg); }
.of-mv { display:grid; grid-template-columns:auto 120px auto auto; gap:9px; align-items:center; padding:5px 10px 5px 0; font-size:11px; }
.of-mv b { font-variant-numeric:tabular-nums; }
.of-mv em { font-style:normal; font-size:10px; font-weight:800; color:var(--warn-fg); }
.of-mv em.is-ok { color:var(--ok-fg); }
.of-mv em.is-wait { color:var(--faint); }
.of-bar2 { height:6px; background:var(--line); position:relative; }
.of-bar2 i { position:absolute; inset:0 auto 0 0; background:var(--accent); }
.of-trace .of-fl__r { padding:6px 10px 6px 0; }
.of-trace .of-hist, .of-trace .of-cm { margin-left:0; }
@media (max-width:1100px) { .of-sr { grid-template-columns:minmax(0,1fr); } .of-sr__l { border-right:0; border-bottom:1px solid var(--line-faint); } .of-more, .of-trace { margin-left:12px; } }

/* 검색 결과 (모든 날짜) */
.of-hit { display:grid; grid-template-columns:auto auto auto 42px minmax(0,1fr) auto; gap:9px; align-items:center; padding:7px 12px; border-top:1px solid var(--line-faint); font-size:11.5px; }
.of-hit:first-of-type { border-top:0; }
.of-hit b { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.of-hit small { font-size:10.5px; color:var(--muted); white-space:nowrap; }
.of-hit__d { border:1px solid var(--line); background:var(--panel-sub); font:inherit; font-size:11px; font-weight:800; color:var(--accent-fg); padding:2px 7px; cursor:pointer; white-space:nowrap; }
.of-hit__d:hover { border-color:var(--accent-line); }
@media (max-width:760px) { .of-hit { grid-template-columns:auto minmax(0,1fr) auto; } .of-hit small, .of-hit .of-site, .of-hit .of-f__k { display:none; } }

/* 선택 바 · 미리보기 · 올리기 · 공유 */
.of-bar { position:sticky; bottom:12px; z-index:20; display:flex; align-items:center; gap:9px; padding:9px 14px; background:#2a3020; color:#f2eeda; box-shadow:0 12px 30px rgba(16,24,40,.25); }
.of-bar b { font-size:12.5px; }
.of-bar .of-ib { background:transparent; border-color:rgba(242,238,218,.35); color:#f2eeda; }
.of-bar .of-ib.is-pri { background:#c9a34e; border-color:#c9a34e; color:#1c2430; font-weight:800; }
.of-pv { position:fixed; inset:0; z-index:150; background:rgba(16,24,40,.38); display:flex; align-items:center; justify-content:center; padding:24px; }
.of-pv__m { width:min(880px,100%); max-height:86vh; display:flex; flex-direction:column; background:var(--panel); border:1px solid var(--line); box-shadow:0 24px 48px rgba(16,24,40,.24); }
.of-pv__h { flex:none; display:flex; align-items:center; gap:9px; padding:12px 16px; border-bottom:1px solid var(--line); }
.of-pv__h b { flex:1; min-width:0; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.of-pv__t { flex:none; display:flex; gap:2px; padding:6px 16px 0; background:var(--panel-sub); border-bottom:1px solid var(--line); overflow-x:auto; }
.of-pv__t button { height:28px; padding:0 12px; border:1px solid transparent; border-bottom:0; background:none; font:inherit; font-size:11.5px; font-weight:700; color:var(--muted); cursor:pointer; margin-bottom:-1px; white-space:nowrap; }
.of-pv__t button.is-on { background:var(--panel); border-color:var(--line); color:var(--text); font-weight:800; box-shadow:inset 0 2px 0 var(--accent); }
.of-pv__b { flex:1; min-height:0; overflow:auto; }
.of-pv__b table { width:100%; border-collapse:collapse; min-width:680px; }
.of-pv__b th { position:sticky; top:0; background:var(--panel-alt); font-size:10.5px; font-weight:800; color:var(--sub); text-align:left; padding:7px 10px; border-bottom:1px solid var(--line-soft); white-space:nowrap; }
.of-pv__b td { font-size:11.5px; padding:7px 10px; border-bottom:1px solid var(--line-faint); white-space:nowrap; font-variant-numeric:tabular-nums; }
.of-pv__f { flex:none; display:flex; align-items:center; gap:8px; padding:10px 16px; border-top:1px solid var(--line); background:var(--panel-sub); font-size:11px; color:var(--muted); }
.of-up { width:min(640px, 100%); }
.of-up__b { flex:1; min-height:0; overflow:auto; padding:14px 16px; display:flex; flex-direction:column; gap:12px; }
.of-up__g { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:9px; }
@media (max-width:640px) { .of-up__g { grid-template-columns:1fr 1fr; } }
.of-up__g label { display:flex; flex-direction:column; gap:4px; min-width:0; }
.of-up__g label > span { font-size:10.5px; font-weight:800; color:var(--sub); }
.of-up__g label small { font-weight:600; color:var(--faint); }
.of-up__g .hd-in { width:100%; box-sizing:border-box; }
.of-req { font-style:normal; font-size:9.5px; font-weight:800; color:var(--warn-fg); margin-left:3px; }
.of-up__drop { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:92px; padding:12px; border:1.5px dashed #c9c5a1; background:var(--panel-sub); cursor:pointer; font:inherit; color:inherit; width:100%; text-align:left; }
.of-up__drop.is-over { border-color:var(--accent); background:var(--accent-bg-2); }
.of-up__drop b { font-size:12.5px; }
.of-up__drop small { font-size:10.5px; color:var(--muted); }
.of-up__drop.is-set { align-items:stretch; justify-content:flex-start; border-style:solid; border-color:var(--accent-line); background:var(--accent-bg-2); }
.of-up__f { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:9px; align-items:center; padding:3px 0; text-align:left; }
.of-up__f b { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.of-up__x { color:var(--faint); font-size:11px; padding:2px 6px; cursor:pointer; }
.of-up__x:hover { color:var(--warn-fg); }
.of-up__k { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:6px; }
.of-up__k > span, .of-up__k > small { grid-column:1 / -1; font-size:10.5px; font-weight:800; color:var(--sub); }
.of-up__k > small { font-weight:600; color:var(--muted); }
.of-up__k button { display:flex; flex-direction:column; gap:2px; padding:8px 10px; border:1px solid var(--line); background:var(--panel); font:inherit; text-align:left; cursor:pointer; color:var(--text); }
.of-up__k button b { font-size:12px; }
.of-up__k button small { font-size:10.5px; color:var(--muted); line-height:1.45; }
.of-up__k button.is-on { border-color:var(--accent); background:var(--accent-bg-2); box-shadow:inset 3px 0 0 var(--accent); }
.of-up__warn { padding:8px 10px; background:var(--warn-bg); color:var(--warn-fg); font-size:11.5px; font-weight:700; }
.of-drop { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; margin:12px; width:calc(100% - 24px); min-height:84px; border:1.5px dashed #c9c5a1; background:var(--panel-sub); cursor:pointer; font:inherit; color:inherit; }
.of-drop.is-sm { min-height:42px; flex-direction:row; gap:8px; margin-top:8px; }
.of-drop.is-over { border-color:var(--accent); background:var(--accent-bg-2); }
.of-drop b { font-size:12px; color:var(--accent-fg); }
.of-drop small { font-size:10.5px; color:var(--muted); }
.of-empty { display:flex; flex-direction:column; gap:5px; padding:30px 20px; border:1px dashed var(--line); background:var(--panel); text-align:center; }
.of-empty b { font-size:13px; }
.of-empty span { font-size:11.5px; color:var(--muted); line-height:1.6; }
