/* 신버전 화면(테스트 서버 전용). 디자인은 시안(preview-lite.html)과 같게 맞춘다.
 * 지금 화면(index.css) 위에 덮어쓰기만 한다. 버튼·입력칸 id와 동작은 그대로.
 */

/* ---------- 색·글꼴 (시안 토큰) ---------- */
html.v2{
  --bg:#eef1f5; --surface:#ffffff; --surface-2:#f6f8fb; --line:#dde3ec;
  --ink:#1c2533; --muted:#5f6b7c; --faint:#8a95a5;
  --accent:#2f52d4; --accent-soft:#e7ecfc; --on-accent:#ffffff;
  --good:#17703f; --good-soft:#e5f4ec; --good-line:#bfe3cd;
  --info:#1f5fbf; --info-soft:#e6effb;
  --v2-warn:#9a5b00; --v2-warn-soft:#fdf1dc;
  --bad:#b42323; --bad-soft:#fbe9e9; --bad-line:#f0c4c4;
  --f-body:"IBM Plex Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --r:14px; --r-s:10px;
  /* 지금 화면 변수도 시안 색으로 */
  --panel:var(--surface); --panel2:var(--surface-2); --text:var(--ink);
  --chip:var(--surface-2); --btn:var(--surface); --btn2:var(--surface-2);
  --input:var(--surface); --input-focus:var(--accent);
  --input-readonly:var(--surface-2); --input-readonly-border:var(--line); --input-readonly-text:var(--muted);
  --control-h:40px; --control-h-sm:32px; --radius-sm:10px; --radius-md:10px;
  background:var(--bg);
}
body.v2{ background:var(--bg); color:var(--ink); font-family:var(--f-body); font-size:15px; line-height:1.55; }
body.v2 button, body.v2 input, body.v2 select, body.v2 textarea{ font-family:inherit; }
body.v2 .mono, body.v2 .fm-mono{ font-family:var(--f-mono); font-variant-numeric:tabular-nums; }
body.v2 .muted{ color:var(--muted); }
body.v2 .v2-off{ display:none !important; }
body.v2 .v2-hidden{ display:none !important; }

/* ---------- 틀: 왼쪽 레일 + 본문 ---------- */
body.v2 .top{ display:none !important; }
body.v2 #appRoot.wrap{
  margin-left:220px; width:auto; max-width:none;
  padding:28px clamp(16px,4vw,48px) 96px;
}
.v2-rail{
  position:fixed; left:0; top:var(--v2-top,0px); bottom:0; width:220px; z-index:900;
  background:var(--surface); border-right:1px solid var(--line);
  padding:20px 14px; display:flex; flex-direction:column; gap:18px; overflow-y:auto;
}
.v2-brand{ display:flex; align-items:center; gap:10px; padding:0 6px; }
.v2-brand-mark{ width:30px; height:30px; border-radius:9px; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; flex:none; }
.v2-brand-mark svg{ width:18px; height:18px; }
.v2-brand-text{ display:flex; flex-direction:column; min-width:0; }
body.v2 .v2-brand #brandHomeBtn{
  all:unset; cursor:pointer; font-size:16px; font-weight:700; letter-spacing:-.01em; color:var(--ink);
}
body.v2 .v2-brand #appVersionBadge{
  display:block; padding:0; border:0; background:none; min-height:0;
  color:var(--faint); font-size:11px; font-weight:400; font-family:var(--f-mono);
}
body.v2 .v2-rail .nav{
  position:static; display:flex; flex-direction:column; align-items:stretch; gap:4px;
  width:auto; padding:0; margin:0; border:0; background:none; overflow:visible;
}
body.v2 .v2-rail .navbtn{
  all:unset; box-sizing:border-box; display:flex; align-items:center; gap:12px;
  padding:11px 12px; border-radius:var(--r-s); color:var(--muted); font-size:15px; font-weight:500; cursor:pointer;
}
body.v2 .v2-rail .navbtn[hidden]{ display:none !important; }
body.v2 .v2-rail .navbtn svg{ width:20px; height:20px; flex:none; margin:0; opacity:1; }
body.v2 .v2-rail .navbtn:hover{ background:var(--surface-2); color:var(--ink); }
body.v2 .v2-rail .navbtn.active{ background:var(--accent-soft); color:var(--accent); font-weight:600; }
body.v2 .v2-rail .navbtn:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
body.v2 .v2-rail .navbtn .v2-nav-badge{ margin-left:auto; font-size:11px; font-weight:600; background:var(--v2-warn-soft); color:var(--v2-warn); border-radius:999px; padding:1px 7px; }
.v2-rail-foot{ margin-top:auto; padding:10px 8px; border-top:1px solid var(--line); font-size:13px; color:var(--muted); display:flex; align-items:center; gap:10px; }
.v2-avatar{ width:30px; height:30px; border-radius:50%; background:var(--surface-2); border:1px solid var(--line); display:grid; place-items:center; font-weight:600; color:var(--ink); font-size:13px; flex:none; }
.v2-who{ display:flex; flex-direction:column; min-width:0; line-height:1.35; }
.v2-who b{ font-weight:500; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.v2-who small{ font-size:12px; color:var(--faint); }
body.v2 .v2-rail-foot #sessionUser{ display:none; }
body.v2 .v2-rail-foot #btnLogout{
  margin-left:auto; min-width:0; min-height:30px; height:30px; padding:0 10px;
  border:0; background:transparent; color:var(--muted); font-size:12px; font-weight:600;
}
body.v2 .v2-rail-foot #btnLogout:hover{ background:var(--surface-2); color:var(--ink); }

/* 작업 중 표시: 오른쪽 아래 */
body.v2 .global-busy{
  position:fixed; right:24px; bottom:24px; top:auto; left:auto; margin:0; z-index:950;
  min-height:0; padding:10px 16px; border:0; border-radius:12px;
  background:var(--ink); color:var(--surface); font-size:13px; box-shadow:0 8px 24px rgba(0,0,0,.2);
}
body.v2 .global-busy *{ color:inherit; }

/* ---------- 화면 ---------- */
body.v2 .view.active{
  display:flex; flex-direction:column; gap:18px;
  max-width:1180px; margin:0 auto;
}
body.v2 .view > .grid{ gap:18px; }
body.v2.workflow-mode #workflowSubtabs{
  display:flex; flex-direction:column; gap:18px;
  max-width:1180px; margin:0 auto 18px;
}
body.v2.workflow-mode #view-rules.view.active,
body.v2.workflow-mode #view-mapping.view.active,
body.v2.workflow-mode #view-run.view.active{ margin:0 auto; }

.v2-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.v2-head h1{ margin:0; font-size:26px; line-height:1.3; letter-spacing:-.02em; font-weight:700; color:var(--ink); }
.v2-head p{ margin:2px 0 0; color:var(--muted); font-size:14px; }
.v2-head-tools{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }

.v2-cols{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:18px; align-items:start; }
.v2-side{ display:flex; flex-direction:column; gap:18px; min-width:0; }

/* 화면 안 탭 */
body.v2 .v2-tabs{ display:grid; grid-template-columns:repeat(var(--v2-n,4),minmax(0,1fr)); gap:10px; margin:0; }
body.v2 .v2-tabs button{
  all:unset; box-sizing:border-box; position:relative; cursor:pointer;
  display:flex; flex-direction:column; align-items:flex-start; gap:0; min-width:0;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:12px 16px;
}
body.v2 .v2-tabs button b{ display:block; font-size:15px; font-weight:700; color:var(--ink); }
body.v2 .v2-tabs button small{ display:block; color:var(--muted); font-size:12px; }
body.v2 .v2-tabs button[aria-selected="true"]{ border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset; }
body.v2 .v2-tabs button[aria-selected="true"] b{ color:var(--accent); }
body.v2 .v2-tabs button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
body.v2 .v2-tabs button[hidden]{ display:none; }
body.v2 .v2-tabs .v2-tab-badge{ position:absolute; top:10px; right:12px; font-size:11px; font-weight:600; background:var(--info-soft); color:var(--info); border-radius:999px; padding:1px 8px; }
body.v2 .v2-tabs .v2-tab-badge:empty{ display:none; }
body.v2 #workflowSubtabs .workflow-subtab{ min-height:0; height:auto; font-size:inherit; color:inherit; }

/* ---------- 카드 ---------- */
body.v2 .card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
}
body.v2 .card > .hd{ padding:20px 20px 0; border-bottom:0; min-height:0; gap:12px; flex-wrap:wrap; }
body.v2 .card > .hd h2{ font-size:16px; font-weight:700; letter-spacing:-.01em; color:var(--ink); }
body.v2 .card > .bd{ padding:14px 20px 20px; }
body.v2 .card-toggle{ display:none !important; }
body.v2 .card.collapsed .bd{ display:block !important; }
body.v2 .card .card{ border-radius:var(--r-s); }
body.v2 .erp-subcard{ background:var(--surface-2); border:0; }
body.v2 .hr{ margin:14px 0; }

/* 안쪽 묶음 상자는 시안처럼 테두리 없이 */
body.v2 .google-source-panel{ padding:0; border:0; background:transparent; }
body.v2 .dashboard-source-card{ border:0; border-radius:var(--r-s); background:var(--surface-2); min-height:0; padding:12px 14px; }
body.v2 .dashboard-source-title{ font-weight:600; }

/* ---------- 버튼·입력 ---------- */
body.v2 .btn{
  min-height:44px; height:auto; padding:0 18px; border-radius:12px;
  border:1px solid var(--line); background:var(--surface); color:var(--ink);
  font-size:14px; font-weight:600; gap:8px; min-width:0;
}
body.v2 .btn:hover{ background:var(--surface-2); border-color:var(--line); }
body.v2 .btn.primary{ background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
body.v2 .btn.primary:hover{ filter:brightness(1.07); background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
body.v2 .btn:disabled{ opacity:.45; filter:none; }
body.v2 .btn.small{ min-height:32px; height:32px; padding:0 12px; font-size:13px; border-radius:9px; }
body.v2 .btn.v2-ghost{ border-color:transparent; background:transparent; color:var(--accent); padding:0 10px; }
body.v2 .btn.v2-ghost:hover{ background:var(--accent-soft); }
body.v2 .btn:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; box-shadow:none; }

body.v2 .input, body.v2 select, body.v2 textarea{
  min-height:40px; border-radius:10px; border-color:var(--line); padding:0 12px; font-size:14px; color:var(--ink);
}
body.v2 textarea{ padding:10px 12px; }
body.v2 .input:focus, body.v2 select:focus, body.v2 textarea:focus{ border-color:var(--accent); box-shadow:0 0 0 2px rgba(47,82,212,.14); }
body.v2 label{ font-size:13px; color:var(--muted); font-weight:500; }
/* 노란 강조칸 → 시안처럼 흰 칸 */
body.v2 .label-file-search-highlight,
body.v2 .input[readonly].daily-upload-path,
body.v2 .asset-path-wrap .input[readonly].daily-upload-path,
body.v2 .asset-path-wrap .input[readonly].daily-upload-path.is-empty{ background:var(--surface); color:var(--ink); }

/* 표 */
body.v2 .pane{ border-radius:var(--r-s); border-color:var(--line); background:var(--surface); }
body.v2 table th{ color:var(--muted); font-weight:600; }
body.v2 .cfg-table th{ background:var(--surface-2); }

/* 알약·로그 */
body.v2 .pill{ border:0; background:var(--surface-2); color:var(--muted); font-size:12px; font-weight:600; padding:3px 10px; min-height:0; }
body.v2 .log{ background:var(--surface-2); border:0; border-radius:var(--r-s); color:var(--muted); font-size:12px; }

/* 접기 (+ / −) */
body.v2 details.v2-more{ margin:4px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; padding-top:12px; }
body.v2 details.v2-more > summary{
  cursor:pointer; list-style:none; display:flex; align-items:center; gap:8px; min-height:32px;
  padding:0; color:var(--muted); font-size:14px; font-weight:500;
}
body.v2 details.v2-more > summary::-webkit-details-marker{ display:none; }
body.v2 details.v2-more > summary::before{
  content:"+"; width:20px; height:20px; border-radius:6px; border:1px solid var(--line);
  display:grid; place-items:center; font-size:13px; color:var(--muted); flex:none;
}
body.v2 details.v2-more[open] > summary::before{ content:"−"; }
body.v2 details.v2-more > .v2-more-body{ padding:10px 0 0; display:flex; flex-direction:column; gap:10px; }
body.v2 details.v2-more.v2-inline{ border-top:0; padding-top:0; margin:4px 0 0; }
body.v2 details.v2-more.v2-rule-group > summary{ font-size:15px; color:var(--ink); font-weight:600; }
body.v2 .v2-settings-row{ display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }
body.v2 .v2-settings-row .asset-path-wrap{ flex:1 1 320px; }
body.v2 .v2-note{ margin-top:8px; font-size:13px; color:var(--muted); }
body.v2 .v2-notice{ border-radius:var(--r-s); padding:14px 16px; font-size:14px; background:var(--info-soft); color:var(--info); }

/* ---------- 파일 고르기: 점선 칸 ---------- */
.v2-drop{
  border:1.5px dashed var(--line); border-radius:var(--r-s); background:var(--surface-2);
  padding:16px 18px; display:flex; align-items:center; gap:14px; min-width:0;
}
.v2-drop > svg{ width:26px; height:26px; color:var(--faint); flex:none; }
.v2-drop-txt{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
body.v2 .v2-drop-txt > b, body.v2 .v2-drop-txt > label{ display:block; margin:0; font-size:14px; font-weight:700; color:var(--ink); }
body.v2 .v2-drop .input[readonly]{
  min-height:0; height:auto; padding:0; border:0; background:transparent !important; box-shadow:none !important;
  color:var(--muted); font-size:13px; text-overflow:ellipsis;
}
body.v2 .v2-drop .input[readonly]:not(.is-empty){ color:var(--ink); }
body.v2 .v2-drop > .btn, body.v2 .v2-drop > label.btn{ margin:0 0 0 auto; flex:none; }
.v2-req{ font-size:11px; font-weight:600; color:var(--bad); background:var(--bad-soft); border-radius:999px; padding:1px 7px; margin-left:6px; vertical-align:middle; }
body.v2 .asset-path-toolbar{ flex-direction:column; align-items:stretch; }
body.v2 .asset-path-wrap{ min-width:0; }
body.v2 .asset-path-actions{ justify-content:flex-start; flex-wrap:wrap; }
body.v2 .dashboard-daily-compare-bar{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:0; }
body.v2 .dashboard-daily-actions{ grid-column:1 / -1; justify-content:flex-start; }
body.v2 .dashboard-daily-actions > label{ display:none; }
body.v2 .dashboard-daily-actions .btn.primary{ order:-1; }
body.v2 .transfer-head{ flex-wrap:wrap; }

/* ---------- 오늘 ---------- */
.v2-today-list{ display:flex; flex-direction:column; }
.v2-task{ display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:14px; padding:14px 0; border-top:1px solid var(--line); }
.v2-task:first-child{ border-top:0; padding-top:4px; }
.v2-task:last-child{ padding-bottom:0; }
.v2-task-num{ width:32px; height:32px; border-radius:50%; display:grid; place-items:center; font-weight:700; font-size:14px; background:var(--surface-2); color:var(--muted); }
.v2-task-num svg{ width:16px; height:16px; }
.v2-task-body{ display:flex; flex-direction:column; min-width:0; }
.v2-task-body b{ font-size:15px; color:var(--ink); }
.v2-task-meta{ color:var(--muted); font-size:13px; }
.v2-task.is-done .v2-task-num{ background:var(--good-soft); color:var(--good); }
.v2-task.is-done .v2-task-body b{ color:var(--muted); }
.v2-task.is-now .v2-task-num{ background:var(--accent); color:var(--on-accent); }
.v2-task-check{ display:flex; align-items:center; gap:10px; margin:0; font-size:14px; color:var(--muted); cursor:pointer; }
.v2-task-check input{ width:20px; height:20px; accent-color:var(--accent); margin:0; }
.v2-task-check.is-disabled{ opacity:.5; cursor:not-allowed; }
.v2-today-msg:empty{ display:none; }
.v2-mini{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.v2-mini .sub{ color:var(--muted); font-size:13px; }
body.v2 .v2-side .card > .hd{ justify-content:space-between; }
.v2-status{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; border-radius:999px; padding:3px 10px; white-space:nowrap; background:var(--surface-2); color:var(--muted); }
.v2-status::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.v2-status.ok{ background:var(--good-soft); color:var(--good); }
.v2-status.warn{ background:var(--v2-warn-soft); color:var(--v2-warn); }
.v2-status.info{ background:var(--info-soft); color:var(--info); }
.v2-status.bad{ background:var(--bad-soft); color:var(--bad); }
.v2-distribution-check[hidden]{ display:none !important; }
.v2-distribution-check{ grid-column:1 / -1; }
.v2-status.record{ background:var(--surface-2); color:var(--muted); }
.v2-dc-summary{ line-height:1.6; margin-bottom:12px; }
.v2-dc-section{ border-top:1px solid var(--line); padding:12px 0; }
.v2-dc-section > summary{ display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; font-size:13px; font-weight:600; }
.v2-dc-section > summary > span:first-child::before{ content:"▸"; margin-right:6px; color:var(--muted); }
.v2-dc-section[open] > summary > span:first-child::before{ content:"▾"; }
.v2-dc-content{ margin-top:10px; font-size:13px; overflow-wrap:anywhere; }
.v2-dc-content p{ margin:0 0 10px; }
.v2-dc-group{ margin:10px 0; }
.v2-dc-group ul{ list-style:none; margin:6px 0; padding:0; }
.v2-dc-group li{ padding:8px 0; border-bottom:1px solid var(--line); line-height:1.6; }
.v2-dc-review-row{ display:flex; align-items:flex-start; gap:8px; }
.v2-dc-review-row .v2-dc-check{ flex:0 0 auto; width:18px; height:18px; margin:3px 0 0; accent-color:var(--accent); }
.v2-dc-row-body{ flex:1; min-width:0; }
.v2-dc-review-row.is-checked .v2-dc-row-text{ color:var(--muted); }
.v2-dc-stamp{ color:var(--muted); overflow-wrap:anywhere; }
.v2-dc-edit{ display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
.v2-dc-edit[hidden]{ display:none; }
.v2-dc-edit select,.v2-dc-edit .input{ flex:1 1 180px; min-width:0; width:100%; max-width:100%; box-sizing:border-box; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:4px; padding:6px; font:inherit; }
.v2-dc-review-message{ color:var(--v2-warn); overflow-wrap:anywhere; }
.v2-dc-review-message:not(:empty){ margin-bottom:10px; }
.v2-dc-section > summary .v2-status{ flex-shrink:0; white-space:normal; text-align:right; max-width:50%; }
@media(max-width:480px){
  .v2-dc-section > summary{ align-items:flex-start; }
  .v2-dc-edit select,.v2-dc-edit .input{ flex-basis:100%; }
}
body.v2 #dashboardReferenceCheck .refchk-head .small{ flex:1 1 100%; }
body.v2 #dashboardReferenceCheck .refchk-head .btn{ order:-1; }
body.v2 .v2-src .dashboard-source-grid{ grid-template-columns:minmax(0,1fr); }

/* ---------- 사용 안내 (기준 파일 지도) ---------- */
body.v2 #dashboardFileMap{ border:0; background:transparent; border-radius:0; overflow:visible; }
body.v2 #dashboardFileMap > summary{ display:none; }
body.v2 #dashboardFileMap > .fm-bd{ padding:0; gap:18px; font-size:14px; }
body.v2 #dashboardFileMap .v2-fm-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:20px; display:flex; flex-direction:column; gap:12px; }
body.v2 #dashboardFileMap .v2-fm-card h3{ margin:0; font-size:16px; }
body.v2 #dashboardFileMap details.v2-fm-card{ gap:0; }
body.v2 #dashboardFileMap details.v2-fm-card > summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; font-size:16px; font-weight:700; }
body.v2 #dashboardFileMap details.v2-fm-card > summary::-webkit-details-marker{ display:none; }
body.v2 #dashboardFileMap details.v2-fm-card > summary::after{ content:"펼치기"; font-size:12px; font-weight:500; color:var(--muted); border:1px solid var(--line); border-radius:8px; padding:3px 9px; }
body.v2 #dashboardFileMap details.v2-fm-card[open] > summary::after{ content:"접기"; }
body.v2 #dashboardFileMap details.v2-fm-card[open] > summary{ margin-bottom:14px; }
body.v2 #dashboardFileMap .fm-job, body.v2 #dashboardFileMap .fm-file, body.v2 #dashboardFileMap .fm-steps li{ border:0; background:var(--surface-2); border-radius:var(--r-s); }
body.v2 #dashboardFileMap .fm-file{ border-top:3px solid var(--fc); }
body.v2 #dashboardFileMap .fm-fact{ background:var(--info-soft); color:var(--info); border-radius:var(--r-s); padding:14px 16px; }
body.v2 #dashboardFileMap .fm-fact b{ color:var(--ink); }

/* ---------- 출고 정리 · 재고 분배 ---------- */
body.v2 .v2-rule-summary{
  display:flex; flex-wrap:wrap; gap:6px 14px; align-items:baseline;
  padding:14px 16px; margin-bottom:4px; border-radius:var(--r-s); background:var(--info-soft); color:var(--info); border:0;
}
body.v2 .v2-rule-summary b{ font-size:14px; color:var(--ink); }
body.v2 .v2-rule-summary span{ font-size:13px; }
body.v2 .v2-rule-summary small{ width:100%; color:var(--muted); font-size:12px; }
body.v2 .v2-ro{ margin-left:10px; padding:2px 8px; border-radius:999px; background:var(--surface-2); color:var(--muted); font-size:12px; font-weight:600; vertical-align:middle; }
body.v2 .v2-actions-left{ display:flex; gap:10px; justify-content:flex-start; align-items:center; flex-wrap:wrap; margin-top:12px; }
body.v2 .run-exec-layout{ display:flex; flex-direction:column; align-items:stretch; gap:10px; }
body.v2 .run-exec-submit{ justify-content:flex-start !important; }
body.v2 .run-exec-status-below{ text-align:left !important; justify-content:flex-start !important; }
body.v2 .actions-row{ justify-content:flex-start; }

/* ---------- 라벨 ---------- */
body.v2 .label-grid{ grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); align-items:start; }
body.v2 .v2-label-side{ display:flex; flex-direction:column; gap:18px; min-width:0; }
body.v2 .label-preview-stage{ min-height:260px; border-radius:var(--r-s); background:var(--surface-2); }
body.v2 .label-jobs-card{ min-height:0; }
body.v2 .v2-label-upload-card{ grid-column:1 / -1; }
body.v2 .v2-label-settings .label-print-options{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; margin:0; }
body.v2 .v2-label-settings .label-print-options > *{ min-width:0; }
body.v2 .label-library-controls{ grid-template-columns:minmax(0,1fr) auto auto auto; }

/* ---------- 신상품 등록 진행 ---------- */
body.v2 .v2-np-form{ display:flex; gap:8px; margin-top:4px; }
body.v2 .v2-np-form .input{ flex:1; min-height:48px; border-radius:12px; padding:0 16px; font-size:15px; }
body.v2 .v2-np-form .btn{ min-height:48px; }
body.v2 .v2-np-recent{ margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
body.v2 .v2-chip{ border:1px solid var(--line); background:var(--surface); border-radius:10px; padding:6px 12px; font-size:13px; cursor:pointer; }
body.v2 .v2-np-status{ margin-top:10px; color:var(--muted); }
body.v2 .v2-np-prod{ margin-top:14px; display:flex; flex-direction:column; gap:12px; }
body.v2 .v2-np-head{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; background:var(--surface-2); border-radius:var(--r-s); padding:12px 14px; }
body.v2 .v2-np-head b{ font-size:16px; }
body.v2 .v2-pill-ok{ background:var(--good-soft); color:var(--good); border:0; padding:3px 10px; border-radius:999px; font-weight:600; }
body.v2 .v2-pill-warn{ background:var(--v2-warn-soft); color:var(--v2-warn); border:0; padding:3px 10px; border-radius:999px; font-weight:600; }
body.v2 .v2-np-next{ padding:14px 16px; border-radius:var(--r-s); background:var(--v2-warn-soft); color:var(--v2-warn); font-size:14px; }
body.v2 .v2-np-next b{ color:var(--ink); }
body.v2 .v2-np-tablewrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--r-s); }
body.v2 .v2-np-table{ width:100%; border-collapse:collapse; }
body.v2 .v2-np-table td, body.v2 .v2-np-table th{ white-space:nowrap; padding:9px 12px; }
body.v2 .v2-np-table tr.is-gap td.v2-np-bad{ background:var(--bad-soft); }
body.v2 .v2-np-ok{ color:var(--good); font-weight:600; }
body.v2 .v2-np-bad{ color:var(--bad); font-weight:600; }
body.v2 .v2-np-na{ color:var(--faint); }

/* ---------- 사용자 · 권한 ---------- */
body.v2 .v2-perm .cfg-table td, body.v2 .v2-perm .cfg-table th{ text-align:center; white-space:nowrap; }
body.v2 .v2-perm .cfg-table input[type=checkbox]{ width:18px; height:18px; accent-color:var(--accent); }
body.v2 #view-users .actions-row{ justify-content:flex-start; }

/* ---------- 업로드 양식 칸별 ---------- */
body.v2 .v2-slots{ display:flex; flex-direction:column; gap:10px; margin-bottom:8px; }
body.v2 .v2-slots-head{ display:flex; flex-direction:column; gap:2px; }
body.v2 .v2-slots-list{ display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--r-s); overflow:hidden; }
body.v2 .v2-slot{ display:grid; grid-template-columns:200px auto minmax(0,1fr); gap:12px; align-items:center; padding:12px 14px; border-top:1px solid var(--line); background:var(--surface); }
body.v2 .v2-slot:first-child{ border-top:0; }
body.v2 .v2-slots-list > .small{ padding:10px 14px; border-top:1px solid var(--line); background:var(--surface-2); }
body.v2 .v2-ok{ color:var(--good); font-weight:600; }
body.v2 .v2-bad{ color:var(--bad); font-weight:600; }

/* ---------- 좁은 창: 레일은 아이콘만 ---------- */
@media (max-width:1100px){
  .v2-rail{ width:72px; padding:16px 10px; align-items:center; }
  .v2-brand-text, body.v2 .v2-rail .navbtn .v2-nav-label, .v2-who, body.v2 .v2-rail-foot #btnLogout{ display:none; }
  .v2-brand{ padding:0; }
  body.v2 .v2-rail .navbtn{ justify-content:center; padding:12px; position:relative; }
  body.v2 .v2-rail .navbtn .v2-nav-badge{ position:absolute; top:4px; right:4px; padding:0 5px; }
  .v2-rail-foot{ padding:10px 0; justify-content:center; }
  body.v2 #appRoot.wrap{ margin-left:72px; padding-inline:24px; }
  body.v2 .v2-tabs{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px){
  .v2-cols, body.v2 .label-grid{ grid-template-columns:minmax(0,1fr); }
}
body.v2 .v2-rail .navbtn[data-v2-inner]{ display:none !important; }

/* ---------- 다듬기 ---------- */
body.v2 .global-busy{ max-width:min(620px, calc(100vw - 288px)); }
body.v2 .global-busy.is-ok{ background:var(--surface); color:var(--good); border:1px solid var(--good-line); }
body.v2 .global-busy.is-bad{ background:var(--bad-soft); color:var(--bad); border:1px solid var(--bad-line); }
body.v2 .global-busy-dot{ background:var(--v2-warn); box-shadow:none; }
body.v2 .global-busy.is-ok .global-busy-dot{ background:var(--good); }
body.v2 .global-busy.is-bad .global-busy-dot{ background:var(--bad); box-shadow:none; }
body.v2 .global-busy-elapsed{ color:inherit; opacity:.7; }
body.v2 .v2-drop .input{ min-width:0; width:100%; }
body.v2 .run-exec-actions{ flex-direction:column; align-items:stretch; gap:12px; }
body.v2 .run-cm29-file, body.v2 .run-pending-file-block{ min-width:0; flex:1 1 auto; width:100%; }
body.v2 .run-cm29-file{ display:block; }
body.v2 .run-pending-order-check{ font-size:14px; margin-left:2px; }
body.v2 .run-pending-order-check input{ width:20px; height:20px; accent-color:var(--accent); }
body.v2 .inv-pull-status{ text-align:left; margin-top:0; }
body.v2 .asset-path-actions .btn.primary{ order:-1; }

/* 단계 흐름 (1 → 2 → 3 → 4) */
.v2-flow{ list-style:none; counter-reset:v2f; margin:0; padding:0; display:flex; flex-direction:column; }
.v2-flow > li{ counter-increment:v2f; position:relative; margin-left:15px; padding:4px 0 22px 30px; border-left:2px solid var(--line); display:flex; flex-direction:column; gap:10px; min-width:0; }
.v2-flow > li:last-child{ border-left-color:transparent; padding-bottom:0; }
.v2-flow > li::before{ content:counter(v2f); position:absolute; left:-16px; top:0; width:30px; height:30px; border-radius:50%; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; font-weight:700; font-size:13px; }
.v2-flow > li > .v2-flow-title{ font-size:15px; font-weight:700; line-height:30px; margin-top:-4px; color:var(--ink); }
.v2-flow > li > .v2-flow-title small{ font-weight:400; color:var(--muted); font-size:13px; margin-left:8px; }
body.v2 .v2-fields3{ display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 16px !important; }
body.v2 .v2-fields3 > *{ min-width:0; }
body.v2 .v2-label-settings .label-print-options .input,
body.v2 .v2-label-settings .label-print-options select{ width:100%; min-width:0; max-width:none; }
body.v2 .policy-color-legend{ font-size:13px; }
body.v2 .v2-flow .asset-path-toolbar{ margin-top:0 !important; }
body.v2 .v2-slot{ grid-template-columns:200px minmax(0,1fr) auto; }
body.v2 .v2-slot > .btn,
body.v2 .v2-slot > .v2-slot-btns{ order:3; }
body.v2 .v2-slot-btns{ display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
body.v2 .v2-slot-btns .btn{ display:inline-flex; align-items:center; gap:6px; }
body.v2 .v2-slot-btns .btn svg{ width:18px; height:18px; flex:none; }
body.v2 .v2-label-settings .label-print-options > div{ width:auto !important; flex:none; }
body.v2 .label-library-panel{ border:0; padding:0; margin:0; background:transparent; }

/* 오늘: 아래 기준 파일 (가로로 넓게) */
body.v2 .v2-refchk-wide > .hd{ align-items:center; }
body.v2 .v2-refchk-wide .v2-refchk-sub{ margin-right:auto; }
body.v2 .v2-refchk-wide .refchk-head{ display:none; }
body.v2 .v2-refchk-wide .v2-src-main .dashboard-source-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
body.v2 .v2-refchk-wide .v2-src-recent .dashboard-source-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
body.v2 .v2-refchk-wide .dashboard-source-card{ gap:4px; position:relative; }
body.v2 .v2-refchk-wide .dashboard-source-title{ font-size:14px; padding-right:48px; }
body.v2 .v2-refchk-wide .dashboard-source-meta{ font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.v2 .v2-refchk-wide .dashboard-source-actions{ position:absolute; top:6px; right:6px; margin:0; }
body.v2 .v2-refchk-wide #referenceCheckResult:empty{ display:none; }
body.v2 .v2-side .card{ height:auto; }
@media (max-width:1100px){
  body.v2 .v2-refchk-wide .v2-src-main .dashboard-source-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
body.v2 .v2-refchk-wide .v2-src-use{ display:block; font-size:12px; font-weight:400; color:var(--faint); }
body.v2 .v2-refchk-wide .v2-src-main .dashboard-source-meta.is-id{ display:none; }

/* ---------- 버튼 색: 파일 고르기·실행은 파란색, 나머지도 파란 계열 ---------- */
body.v2 .btn{ background:var(--accent-soft); border-color:#c9d4f6; color:var(--accent); }
body.v2 .btn:hover{ background:#dbe3fb; border-color:#b7c6f3; color:var(--accent); }
body.v2 .btn.primary,
body.v2 label.btn[for],
body.v2 .btn.v2-pick{ background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
body.v2 .btn.primary:hover,
body.v2 label.btn[for]:hover,
body.v2 .btn.v2-pick:hover{ background:#2846bb; border-color:#2846bb; color:var(--on-accent); filter:none; }
body.v2 .btn.v2-pick svg, body.v2 label.btn[for] svg{ width:18px; height:18px; flex:none; }
body.v2 .btn:disabled{ opacity:.45; }
body.v2 .btn.v2-ghost{ background:transparent; border-color:transparent; }
body.v2 .btn.v2-ghost:hover{ background:var(--accent-soft); }
body.v2 .btn.danger{ background:var(--bad-soft); border-color:var(--bad-line); color:var(--bad); }
body.v2 .btn.danger:hover{ background:#f6d9d9; color:var(--bad); }
body.v2 .btn.good{ background:var(--good-soft); border-color:var(--good-line); color:var(--good); }
body.v2 .btn.copy-error, body.v2 .btn.copy-error:disabled{ background:var(--bad-soft); border-color:var(--bad-line); color:var(--bad); opacity:1; }
body.v2 .run-pending-file-block.is-disabled label[for="runPendingOrderFile"]{ opacity:.45; }

/* ---------- 오늘 › 기준 파일 점검 결과 표: 칸 너비 ---------- */
body.v2 .refchk-issue{ border-radius:var(--r-s); border:1px solid var(--line); border-left-width:4px; background:var(--surface); }
body.v2 .refchk-issue > summary{ padding:12px 14px; font-size:14px; }
body.v2 .refchk-fix{ padding:0 14px 10px; font-size:13px; }
body.v2 .refchk-table{ padding:0 14px 14px; }
body.v2 .refchk-table table{ table-layout:fixed; min-width:0; font-size:13px; }
body.v2 .refchk-table th:nth-child(1){ width:260px !important; }
body.v2 .refchk-table th:nth-child(2){ width:150px !important; }
body.v2 .refchk-table th:nth-child(3){ width:auto !important; }
body.v2 .refchk-table td{ word-break:keep-all; overflow-wrap:anywhere; padding:8px 10px; }
body.v2 .refchk-table td:nth-child(2){ font-family:var(--f-mono); font-size:12px; white-space:normal; word-break:normal; overflow-wrap:normal; }
body.v2 .refchk-table td:nth-child(1){ white-space:normal; }
body.v2 .refchk-table table.v2-no-bc th:nth-child(2),
body.v2 .refchk-table table.v2-no-bc td:nth-child(2){ display:none; }
body.v2 .refchk-table table.v2-no-bc th:nth-child(1){ width:340px !important; }
@media (max-width:1100px){
  body.v2 .refchk-table th:nth-child(1){ width:200px !important; }
  body.v2 .refchk-table table.v2-no-bc th:nth-child(1){ width:260px !important; }
}
body.v2 .refchk-issue.is-error{ border-left-color:var(--bad); }
body.v2 .refchk-issue.is-warn{ border-left-color:#e0a422; }
body.v2 .refchk-issue.is-info{ border-left-color:#8aa4c8; }
body.v2 .v2-refchk-wide .v2-src-when{ font-size:13px; font-weight:600; color:var(--ink); margin-top:2px; }
body.v2 .v2-refchk-wide .v2-src-when.is-stale{ color:var(--v2-warn); }
body.v2 .v2-refchk-wide .v2-src-note{ font-size:12px; color:var(--faint); }
body.v2 .v2-send-result{ border-radius:var(--r-s); padding:12px 14px; font-size:14px; background:var(--surface-2); color:var(--muted); }
body.v2 .v2-send-result.ok{ background:var(--good-soft); color:var(--good); font-weight:600; }
body.v2 .v2-send-result.bad{ background:var(--bad-soft); color:var(--bad); }
body.v2 .v2-send-result.warn{ background:var(--v2-warn-soft); color:var(--v2-warn); }
body.v2 .v2-send-result .v2-send-head{ font-weight:600; }
body.v2 .v2-send-tabs{ margin:8px 0 0; padding-left:18px; font-weight:400; color:var(--ink); font-size:13px; }
body.v2 .v2-send-tabs li{ margin:2px 0; }
body.v2 .v2-send-tabs li.bad{ color:var(--bad); font-weight:600; }
.v2-old-link{ display:block; margin:-8px 8px 0; font-size:12px; color:var(--faint); text-decoration:none; }
.v2-old-link:hover{ color:var(--accent); text-decoration:underline; }
@media (max-width:1100px){ .v2-old-link{ display:none; } }

/* 판매가 기간 정리 카드 */
body.v2 .v2-pr-detail{ margin-top:10px; display:flex; flex-direction:column; gap:8px; }
body.v2 .v2-pr-tools{ display:flex; gap:8px; }
body.v2 .v2-pr-body{ max-height:340px; overflow:auto; display:flex; flex-direction:column; gap:6px; }
body.v2 .v2-pr-list{ list-style:none; margin:0; padding:0; font-size:12px; }
body.v2 .v2-pr-list li{ padding:6px 2px; border-bottom:1px solid var(--line); line-height:1.45; }
body.v2 .v2-pr-list li .muted{ font-size:11px; word-break:break-all; }
body.v2 .v2-pr-warn{ color:var(--v2-warn); }
body.v2 .v2-pr-bad{ color:var(--bad); }
body.v2 .v2-pr-skip{ margin:0; padding-left:18px; }

/* 신상품 붙여넣기 줄 */
body.v2 .v2-np-lines{ grid-column:1 / -1; }
body.v2 .v2-npl-tools{ display:flex; flex-wrap:wrap; gap:8px; }
body.v2 .v2-npl-status{ margin:12px 0; }
body.v2 .v2-npl-table{ overflow-x:auto; margin-bottom:12px; }
body.v2 .v2-npl-table table{ width:100%; min-width:640px; border-collapse:collapse; }
body.v2 .v2-npl-table th, body.v2 .v2-npl-table td{ padding:8px 10px; border-bottom:1px solid var(--line); text-align:left; }
body.v2 .v2-npl-table td:first-child{ font-family:var(--f-mono); }
body.v2 .v2-npl-result li{ margin:6px 0; overflow-wrap:anywhere; }
body.v2 .v2-npl-order{ margin:16px 0 0; line-height:1.7; }
