/* 관리자 대시보드 전역 스타일 — 공개 사이트와 동일한 브랜드 팔레트를 쓰되,
 * 관리 UI답게 기본 서체는 Sans, 사이드바 + 데이터 테이블 중심의 앱 레이아웃. */

:root {
  --ink: #1A1A1A;
  --ink-soft: #2E2E2E;
  --ink-mute: #6A6A68;
  --ink-light: #9A9A97;
  --line: #E4E4E1;
  --line-soft: #F0F0EE;
  --paper: #FFFFFF;
  --paper-deep: #F6F5F3;
  --paper-card: #FCFBF9;
  --orange: #FF5A00;
  --orange-deep: #C2410C;
  --orange-bg: #FFF3EA;
  --good: #1F5F3F;
  --good-bg: #EAF3ED;
  --warn: #9A6A00;
  --warn-bg: #FBF4E4;
  --bad: #A23A2A;
  --bad-bg: #FBF0EE;
  --sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Noto Serif KR', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Roboto Mono', monospace;
  --sidebar-w: 240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper-deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── 앱 골격 ── */
.dash { display: flex; min-height: 100vh; }

/* ── 사이드바 ── */
.sidebar {
  position: sticky; top: 0; align-self: flex-start;
  flex: 0 0 var(--sidebar-w); width: var(--sidebar-w); height: 100vh;
  background: var(--paper); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow-y: auto;
}
.sb-brand { padding: 22px 22px 18px; border-bottom: 1px solid var(--line-soft); }
.sb-brand .bk {
  font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.2;
  color: var(--ink); letter-spacing: .01em;
}
.sb-brand .bk span { color: var(--orange); }
.sb-brand .bs { font-size: 11px; color: var(--ink-light); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

.nav { padding: 12px 0; }
.nav-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-light); padding: 14px 22px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 22px; font-size: 13.5px; font-weight: 500; color: var(--ink-mute);
  border-left: 2.5px solid transparent; cursor: pointer; transition: color .12s, background .12s;
}
.nav-item .ico { flex: 0 0 auto; width: 18px; height: 18px; color: var(--ink-light); }
.nav-item .ico svg { width: 18px; height: 18px; display: block; }
.nav-item:hover { color: var(--ink); background: var(--paper-deep); }
.nav-item.router-link-active {
  color: var(--ink); font-weight: 700;
  background: var(--orange-bg); border-left-color: var(--orange);
}
.nav-item.router-link-active .ico { color: var(--orange); }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--ink-light); font-variant-numeric: tabular-nums; }

/* ── 메인 ── */
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 0 32px; height: 60px; background: var(--paper);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.topbar .tb-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.topbar .tb-spacer { flex: 1; }
.topbar .tb-user {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-mute);
}
.topbar .tb-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink);
  color: var(--paper); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.content { padding: 28px 32px 48px; flex: 1; }

/* ── 페이지 헤더 ── */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.page-head .ph-main { min-width: 0; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.page-head .ph-en { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 5px; }
.page-head .ph-sub { font-size: 13px; color: var(--ink-mute); margin-top: 6px; line-height: 1.6; }
.page-head .ph-actions { margin-left: auto; display: flex; gap: 8px; flex: 0 0 auto; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .01em;
  padding: 9px 16px; border-radius: 4px; border: 1px solid transparent; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-deep); }

/* ── 통계 카드 (개요) ── */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.stat .st-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-mute); font-weight: 500; }
.stat .st-label .ico { width: 16px; height: 16px; color: var(--ink-light); }
.stat .st-value { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat .st-value .unit { font-size: 14px; font-weight: 500; color: var(--ink-light); margin-left: 4px; }
.stat .st-foot { font-size: 12px; color: var(--ink-light); margin-top: 6px; }
.stat .st-foot .up { color: var(--good); font-weight: 700; }

/* ── 데이터 테이블 카드 ── */
.table-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.table-tools { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.table-search {
  flex: 1 1 320px; max-width: 360px;
  font-family: var(--sans); font-size: 13px; color: var(--ink);
  background: var(--paper-deep); border: 1px solid transparent; border-radius: 6px;
  padding: 9px 12px;
}
.table-search::placeholder { color: var(--ink-light); }
.table-search:focus { outline: none; border-color: var(--orange); background: var(--paper); }
.table-count { margin-left: auto; font-size: 12.5px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }

.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data thead th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-mute); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--paper-card);
}
table.data thead th.num, table.data td.num { text-align: right; }
table.data tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); vertical-align: middle; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--paper-deep); }
table.data tbody tr.clickable { cursor: pointer; }
table.data td.strong { color: var(--ink); font-weight: 700; }
table.data td.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
table.data td.muted { color: var(--ink-light); }

/* 행 액션 */
.row-act { display: inline-flex; gap: 4px; }
.row-act button {
  border: none; background: none; cursor: pointer; color: var(--ink-light);
  padding: 4px; border-radius: 4px; line-height: 0; transition: color .12s, background .12s;
}
.row-act button:hover { color: var(--ink); background: var(--line-soft); }
.row-act button.del:hover { color: var(--bad); background: var(--bad-bg); }
.row-act svg { width: 15px; height: 15px; }

/* 뱃지 */
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; }
.badge.b-good { color: var(--good); background: var(--good-bg); }
.badge.b-warn { color: var(--warn); background: var(--warn-bg); }
.badge.b-bad { color: var(--bad); background: var(--bad-bg); }
.badge.b-mute { color: var(--ink-mute); background: var(--paper-deep); }

/* 썸네일(이미지 페이지) */
.thumb-cell { display: flex; align-items: center; gap: 10px; }
.thumb-cell .th {
  width: 44px; height: 32px; border-radius: 4px; object-fit: cover; background: var(--paper-deep);
  border: 1px solid var(--line);
}

.empty-row td { text-align: center; color: var(--ink-light); padding: 40px 0; font-size: 13px; }

/* ── 반응형 ── */
@media (max-width: 860px) {
  :root { --sidebar-w: 60px; }
  .sb-brand .bk, .sb-brand .bs, .nav-sec, .nav-item span.lbl, .nav-count { display: none; }
  .nav-item { justify-content: center; padding: 12px 0; gap: 0; }
  .content { padding: 20px 16px 40px; }
  .topbar { padding: 0 16px; }
}

/* ── erp 전용 보강 (dashboard 컴포넌트 .vue 안의 scoped 스타일을 전역으로 옮긴 것) ── */
.nav-item { background: none; border-top: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; font-family: var(--sans); }
.nav-item.on { color: var(--ink); font-weight: 700; background: var(--orange-bg); border-left-color: var(--orange); }
.nav-item.on .ico { color: var(--orange); }
.tb-user-name { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-mute); }
.tb-logout { border: none; background: none; cursor: pointer; font-family: var(--sans); font-size: 12.5px; color: var(--ink-light); margin-left: 12px; }
.tb-logout:hover { color: var(--ink); }

.table-select {
  font-family: var(--sans); font-size: 13px; color: var(--ink);
  background: var(--paper-deep); border: 1px solid transparent; border-radius: 6px; padding: 9px 12px;
}
.table-select:focus { outline: none; border-color: var(--orange); background: var(--paper); }
.table-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-mute); cursor: pointer; }
.table-check input { width: 15px; height: 15px; accent-color: var(--orange); }
.low { color: var(--bad); font-weight: 700; }

/* 우측 드로어 (DetailDrawer.vue 와 같은 모양) — <dialog> 로 구현 */
dialog.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; height: 100vh; max-height: 100vh;
  width: min(960px, 96vw); background: var(--paper); color: var(--ink);
  border: 0; border-left: 1px solid var(--line); box-shadow: -18px 0 50px rgba(26, 26, 26, .12);
}
dialog.drawer.wide { width: min(1480px, 98vw); }
dialog.drawer[open] { display: flex; flex-direction: column; }
dialog.drawer::backdrop { background: rgba(26, 26, 26, .34); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 16px; font-weight: 700; color: var(--ink); }
.drawer-x { border: none; background: none; cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink-light); }
.drawer-x:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field-label { font-size: 12px; font-weight: 700; color: var(--ink-mute); }
.field-input {
  font-family: var(--sans); font-size: 13.5px; color: var(--ink); width: 100%;
  background: var(--paper-deep); border: 1px solid transparent; border-radius: 6px; padding: 9px 11px;
}
.field-input:focus { outline: none; border-color: var(--orange); background: var(--paper); }
textarea.field-input { resize: vertical; line-height: 1.6; min-height: 96px; }
.field-hint { font-size: 12px; color: var(--ink-light); }
.drawer-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-mute); }
.drawer-logs { grid-column: 1 / -1; font-size: 12px; color: var(--ink-light); border-top: 1px solid var(--line-soft); padding-top: 10px; line-height: 1.8; }
.drawer-err { grid-column: 1 / -1; font-size: 13px; color: var(--bad); min-height: 18px; }
.drawer-foot { display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); }
.drawer-foot .sp { flex: 1; }
.btn-danger { background: var(--bad-bg); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }

/* 로그인 */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--paper-deep); padding: 24px; }
.auth-card { width: 340px; max-width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-card .bk { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.auth-card .bk span { color: var(--orange); }
.auth-card .bs { font-size: 11px; color: var(--ink-light); letter-spacing: .12em; text-transform: uppercase; margin-top: -8px; }
.auth-err { font-size: 13px; color: var(--bad); min-height: 18px; }

.table-foot { padding: 10px 18px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-mute); }
@media (max-width: 860px) { .drawer-body { grid-template-columns: 1fr; } }

/* 이미지 셀 · 업로드 */
.cell-img { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: 4px; background: var(--paper-deep); border: 1px solid var(--line); }
.cell-img.empty { display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--ink-light); }
.img-field { display: flex; align-items: center; gap: 14px; }
.img-field .cell-img { width: 96px; height: 96px; flex: none; }
.img-field .img-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.img-field input[type=file] { font-size: 12.5px; max-width: 100%; }
.thumb-cell { display: flex; align-items: center; gap: 10px; }

/* ── 작업관리: 좌측 주문 목록 + 우측 일정표 ── */
.sch { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; height: calc(100vh - 60px - 56px - 8px); min-height: 520px; }
.sch-left, .sch-right { display: flex; flex-direction: column; min-height: 0; }
.sch-orders { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.sch-order { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: var(--paper); cursor: grab; user-select: none; }
.sch-order:hover { border-color: var(--ink-light); }
.sch-order.dragging { opacity: .45; }
.sch-order .so-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.sch-order .so-top b { font-variant-numeric: tabular-nums; }
.sch-order .so-q { margin-left: auto; font-size: 12px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.sch-order .so-title { font-size: 13px; font-weight: 600; margin-top: 4px; line-height: 1.35; word-break: break-all; }
.sch-order .so-sub { font-size: 11.5px; color: var(--ink-light); margin-top: 3px; }
.sch-order .so-sub.late { color: var(--bad); font-weight: 700; }
.sch-order .so-sub.soon { color: var(--orange-deep); font-weight: 700; }
.sch-order .so-bar { height: 4px; background: var(--line-soft); border-radius: 2px; margin-top: 7px; overflow: hidden; }
.sch-order .so-bar i { display: block; height: 100%; background: var(--orange); }
.sch-order.full .so-bar i { background: var(--good); }

.sch-bar { flex-wrap: wrap; }
.sch-label { font-size: 15px; font-weight: 700; min-width: 140px; }
.sch-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sch-seg button, .sch-nav button { border: 0; background: var(--paper); font-family: var(--sans); font-size: 12.5px; padding: 7px 12px; cursor: pointer; color: var(--ink-mute); }
.sch-seg button + button { border-left: 1px solid var(--line); }
.sch-seg button.on { background: var(--orange-bg); color: var(--ink); font-weight: 700; }
.sch-nav { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sch-nav button + button { border-left: 1px solid var(--line); }
.sch-nav button:hover, .sch-seg button:hover { background: var(--paper-deep); }

.sch-cal { flex: 1; overflow: auto; }
.sch-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sch-dow { padding: 8px; font-size: 11px; font-weight: 700; text-align: center; color: var(--ink-mute); background: var(--paper-card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.sch-dow.sun, .sch-day .sun { color: var(--bad); }
.sch-cell { min-height: 118px; padding: 6px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sch-grid.week .sch-cell { min-height: 420px; }
.sch-cell.out { background: var(--paper-card); }
.sch-cell.out .sch-daynum { color: var(--ink-light); }
.sch-cell.over { background: var(--orange-bg); outline: 2px dashed var(--orange); outline-offset: -2px; }
.sch-day { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.sch-daynum { font-weight: 700; min-width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 11px; }
.sch-cell.today .sch-daynum { background: var(--orange); color: #fff; }
.sch-sum { font-size: 11px; color: var(--ink-light); font-variant-numeric: tabular-nums; }
.sch-chip { font-size: 12px; line-height: 1.3; padding: 4px 7px; border-radius: 5px; cursor: grab; border: 1px solid transparent; font-variant-numeric: tabular-nums; overflow: hidden; }
.sch-chip b { font-weight: 700; }
.sch-chip .sub { display: block; font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-chip[data-st="지시"] { background: var(--warn-bg); color: var(--warn); }
.sch-chip[data-st="진행"] { background: #E8F0FE; color: #1A4FA3; }
.sch-chip[data-st="완료"] { background: var(--good-bg); color: var(--good); text-decoration: line-through; text-decoration-thickness: 1px; }
.sch-chip:hover { border-color: currentColor; }
.sch-due { font-size: 11px; color: var(--bad); padding: 1px 4px; border-radius: 4px; background: var(--bad-bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sch-dayview { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.sch-dayview.over { background: var(--orange-bg); outline: 2px dashed var(--orange); outline-offset: -6px; }
.sch-entry { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; gap: 14px; align-items: center; background: var(--paper); cursor: pointer; }
.sch-entry .qty { font-size: 18px; font-weight: 700; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.sch-entry .meta { flex: 1; min-width: 0; }
.sch-entry .meta .t { font-weight: 700; }
.sch-entry .meta .s { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.sch-hint { color: var(--ink-light); font-size: 12.5px; text-align: center; padding: 28px 0; }

@media (max-width: 1100px) {
  .sch { grid-template-columns: 1fr; height: auto; }
  .sch-orders { max-height: 300px; }
  .sch-cal { min-height: 480px; }
}

/* 작업배정 상태 · 임시(저장 전) 배정 */
.badge.b-info { color: #1A4FA3; background: #E8F0FE; }
.sch-chip.draft { border: 1px dashed currentColor; }
.sch-entry.draft { border-style: dashed; }
.sch-left.over { outline: 2px dashed var(--orange); outline-offset: -2px; background: var(--orange-bg); }
.sch-save { display: inline-flex; gap: 8px; align-items: center; }
.sch-save .msg { font-size: 12px; color: var(--orange-deep); font-weight: 700; }
.btn:disabled { opacity: .45; cursor: default; }

/* 공정(로고 · 이니셜) 표시 */
.sch-chip[data-task="로고"] { border-left: 3px solid #1A4FA3; }
.sch-chip[data-task="이니셜"] { border-left: 3px solid #7B3FA0; }
.sch-chip .task { font-weight: 700; margin-left: 2px; }
.sch-entry[data-task="로고"] { border-left: 4px solid #1A4FA3; }
.sch-entry[data-task="이니셜"] { border-left: 4px solid #7B3FA0; }

/* 작업 진행 (시작 · 완료) */
.sch.solo { grid-template-columns: 1fr; }
.sch-wmsg { font-size: 12px; font-weight: 700; color: var(--good); }
.sch-entry { flex-wrap: wrap; }
.sch-actions { display: flex; gap: 6px; margin-left: auto; }
.sch-actions .btn { padding: 8px 14px; font-size: 13px; }
.sch-entry .prog { font-size: 11.5px; color: var(--ink-light); margin-top: 2px; }
@media (max-width: 720px) { .sch-actions { width: 100%; } .sch-actions .btn { flex: 1; justify-content: center; padding: 12px; } }

/* 납기 초과 강조 */
.sch-order.overdue { border-color: var(--bad); background: var(--bad-bg); box-shadow: inset 4px 0 0 var(--bad); }
.sch-order.overdue .so-title { color: var(--bad); }
.sch-order .so-late { font-size: 11px; font-weight: 700; color: #fff; background: var(--bad); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.sch-chip.late[data-st] { background: var(--bad); color: #fff; border-color: var(--bad); font-weight: 700; }
.sch-chip.late[data-st] .sub, .sch-chip.late[data-st] .task { color: #fff; }
.sch-entry.late { border-color: var(--bad); background: var(--bad-bg); box-shadow: inset 4px 0 0 var(--bad); }
.late-txt { color: var(--bad); font-weight: 700; }

/* 하루 한도 · 기간 배정 · 완료 시 이월 */
.sch-sum.over { color: var(--bad); font-weight: 700; }
.sch-sum.off { color: var(--orange-deep); font-weight: 700; }
.sch-sum.faint { opacity: .55; }
.sch-over { color: var(--bad); font-weight: 700; font-size: 12.5px; }
.sch-dayhead { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-card); font-size: 13.5px; }
.sch-dayhead.over { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); font-weight: 700; }
.so-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.so-actions .btn { padding: 4px 10px; font-size: 12px; }
.c-opt { display: flex; gap: 8px; align-items: center; padding: 8px 2px; font-size: 14px; flex-wrap: wrap; }
.pl-table { width: 100%; }
.pl-table td.over { color: var(--bad); font-weight: 700; }
.cp-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.cp-row .sp { flex: 1; }

/* 설정 페이지 */
.set-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; max-width: 880px; }
.set-card > header { padding: 16px 20px 4px; }
.set-card > header h2 { font-size: 15px; font-weight: 700; }
.set-card > header p { font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; line-height: 1.6; }
.set-body { padding: 14px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.set-body .full { grid-column: 1 / -1; }
.set-card > footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-soft); }
.set-msg { font-size: 12.5px; color: var(--good); font-weight: 700; margin-right: auto; }
.set-msg.err { color: var(--bad); }
@media (max-width: 720px) { .set-body { grid-template-columns: 1fr; } }

/* 작업 상태 버튼 (지시 · 진행 · 완료) */
.sch-statusbtn { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.sch-statusbtn button { border: 0; background: none; font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 9px 16px; cursor: pointer; color: var(--ink-mute); }
.sch-statusbtn button + button { border-left: 1px solid var(--line); }
.sch-statusbtn button:hover { background: var(--paper-deep); }
.sch-statusbtn button.on { cursor: default; font-weight: 700; }
.sch-statusbtn button.on[data-wkst="지시"] { background: var(--warn-bg); color: var(--warn); }
.sch-statusbtn button.on[data-wkst="진행"] { background: #E8F0FE; color: #1A4FA3; }
.sch-statusbtn button.on[data-wkst="완료"] { background: var(--good-bg); color: var(--good); }
@media (max-width: 720px) { .sch-statusbtn { width: 100%; } .sch-statusbtn button { flex: 1; padding: 14px 8px; font-size: 15px; } }

/* 디자인 */
.dz-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.dz-row:last-child { border-bottom: 0; }
.dz-main { flex: 1; min-width: 220px; font-size: 13.5px; }
.dz-main a { color: var(--orange-deep); }
.dz-ctl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dz-ctl .field-input { width: auto; padding: 6px 8px; font-size: 12.5px; }
.so-design { font-size: 11.5px; margin-top: 3px; font-weight: 700; }
.so-design.none { color: var(--ink-light); font-weight: 500; }
.so-design.working { color: var(--orange-deep); }
.so-design.ready { color: var(--good); }
.sch-dz { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--ink-mute); flex-wrap: wrap; }
.sch-dz .cell-img { width: 36px; height: 36px; }
.sch-dz a { color: var(--orange-deep); font-weight: 700; }

/* 디자인 필요 · 업무 권한 */
.dzflag { margin-left: 4px; font-size: 10px; font-weight: 700; background: var(--orange); color: #fff; border-radius: 3px; padding: 0 4px; vertical-align: 1px; }
.sch-order[data-dq] { border-left: 4px solid var(--orange); }
.sch-seg button b { font-weight: 700; color: var(--orange-deep); }

/* 작업지시서 — 화면 밖에 그려 두고 PDF(이미지)·인쇄에 쓴다. A4 한 장에 2개 */
#ws_render { position: fixed; left: -12000px; top: 0; width: 794px; background: #fff; z-index: -1; }
.ws-page { width: 794px; height: 1123px; background: #fff; position: relative; overflow: hidden; color: #111; font-family: var(--sans); box-sizing: border-box; page-break-after: always; break-after: page; }
.ws-cut { position: absolute; left: 0; right: 0; top: 561px; border-top: 1.5px dashed #777; }
.ws-sheet { position: absolute; left: 0; width: 794px; height: 561px; padding: 24px 28px 14px; display: flex; gap: 20px; box-sizing: border-box; }
.ws-sheet.top { top: 0; } .ws-sheet.bottom { top: 562px; }
.ws-left { width: 400px; flex: none; }
.ws-right { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ws-t { width: 100%; border-collapse: collapse; margin-bottom: 6px; font-size: 12.5px; table-layout: fixed; }
.ws-t th, .ws-t td { border: 1px solid #111; height: 23px; padding: 0 5px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ws-t th { font-weight: 700; }
.ws-t th:first-child, .ws-t td.l { width: 24%; text-align: left; }
.ws-t td.l { font-weight: 400; }
.ws-t td.n { text-align: center; }
.ws-head td { border: 0; height: 26px; text-align: left; padding-left: 2px; }
.ws-head .no { width: 24%; font-size: 14px; }
.ws-head .ti { font-size: 15px; font-weight: 700; white-space: normal; line-height: 1.25; }
.ws-head .l2 { font-size: 13.5px; }
.ws-head .sub { font-size: 11.5px; color: #333; }
.ws-img { height: 318px; border: 1px solid #bbb; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.ws-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ws-img span { color: #999; font-size: 13px; }
.ws-cap { font-size: 11px; color: #444; height: 18px; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ws-memo-l { font-size: 13px; margin: 6px 0 3px; }
.ws-memo { flex: 1; border: 1px solid #111; padding: 6px 8px; font-size: 11.5px; line-height: 1.45; white-space: pre-wrap; overflow: hidden; }
.ws-detail { padding: 34px 32px; }
.ws-dh { font-size: 15px; margin-bottom: 12px; }
.ws-dh span { font-size: 12px; color: #444; }
.ws-dt { font-size: 11.5px; }
.ws-dt th, .ws-dt td { height: 24px; }
.ws-dt th, .ws-dt td { white-space: normal; line-height: 1.25; padding: 2px 4px; }
.ws-dt th:nth-child(1) { width: 5%; text-align: center; }
.ws-dt th:nth-child(2) { width: 12%; } .ws-dt th:nth-child(3) { width: 8%; } .ws-dt th:nth-child(4) { width: 7%; }
.ws-dt th:nth-child(5) { width: 10%; } .ws-dt th:nth-child(6) { width: 13%; } .ws-dt th:nth-child(7) { width: 13%; }
.ws-dt th:nth-child(8) { width: 9%; } .ws-dt th:nth-child(9) { width: 16%; } .ws-dt th:nth-child(10) { width: 7%; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  body > *:not(#ws_render) { display: none !important; }
  #ws_render { position: static !important; left: 0 !important; z-index: auto; }
  html, body { background: #fff !important; }
}

/* PDF 로 캡처하는 동안만: html2canvas 가 표 셀 글자를 아래로 밀어 그려서, 아래쪽 여백으로 보정해 가운데에 오게 한다
   (인쇄·화면 렌더링에는 적용하지 않는다) */
#ws_render.pdfmode .ws-t th, #ws_render.pdfmode .ws-t td { overflow: visible; text-overflow: clip; line-height: 1.2; padding-top: 0; padding-bottom: 9px; vertical-align: middle; }
#ws_render.pdfmode .ws-head td { padding-bottom: 6px; }
#ws_render.pdfmode .ws-dt th, #ws_render.pdfmode .ws-dt td { padding-bottom: 8px; }
#ws_render.pdfmode .ws-cap { height: 22px; line-height: 1.2; padding-bottom: 6px; overflow: visible; }
#ws_render.pdfmode .ws-memo-l { padding-bottom: 4px; }
.ws-seq { margin-left: 10px; font-size: 17px; font-weight: 700; white-space: nowrap; }
.ws-pr { display: flex; justify-content: space-between; gap: 8px; }
.ws-pr b { font-weight: 700; white-space: nowrap; }
.ws-t td.cc { font-weight: 700; font-size: 11px; }
.ws-t td.cim { padding: 2px 5px; }
.ws-t td.cim img { display: block; width: 100%; height: 19px; object-fit: fill; border: 1px solid #bbb; box-sizing: border-box; }
#ws_render.pdfmode .ws-t td.cim { padding: 2px 5px; }
#ws_render.pdfmode .ws-t td.cc { padding-bottom: 7px; }
.ws-ci { display: flex; align-items: center; gap: 6px; }
.ws-ci span { font-weight: 700; font-size: 11px; white-space: nowrap; }
.ws-ci img { flex: 1; min-width: 0; height: 19px; object-fit: fill; border: 1px solid #bbb; box-sizing: border-box; }
#ws_render.pdfmode .ws-ci span { position: relative; top: -4px; }
.ws-t td.cap .ws-ci img { flex: none; width: auto; height: 32px; max-width: 70%; object-fit: contain; border: 0; }
.ws-t td.cim .ws-ci img.sm { flex: none; width: auto; height: 19px; object-fit: contain; border: 0; }
#ws_render.pdfmode .ws-t td.cap .ws-ci span { top: 0; }
/* 침별 컬러 표 (디자인 · 컬러) */
.cmx-wrap { max-width: 100%; }
.cmx { border-collapse: collapse; background: var(--paper); }
.cmx th, .cmx td { border: 1px solid var(--line); padding: 0; text-align: center; }
.cmx th { padding: 8px 6px; font-size: 13px; font-weight: 600; background: var(--paper-2, #faf9f7); }
.cmx-h { display: flex; align-items: center; gap: 4px; }
.cmx-x { border: none; background: none; cursor: pointer; font-size: 16px; color: var(--ink-light); }
.cmx-x:hover { color: var(--bad); }
.cmx-in { width: 100%; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13px; padding: 6px 8px; color: var(--ink); }
.cmx-in:focus { outline: 2px solid var(--ink); outline-offset: -2px; background: #fff; }
.cmx-in.num { width: 74px; text-align: right; font-family: var(--mono, monospace); }
.cmx-caps .cmx-in { text-align: center; font-size: 12px; }
.cmx-sw { width: 88px; height: 46px; padding: 0; position: relative; overflow: hidden; }
.cmx-sw img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0; object-fit: fill; border-radius: 0 !important; border: 0 !important; }
.cmx-add { background: transparent; border: 1px solid var(--line); min-width: 90px; }
/* 자수기 */
.mchip { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 600; line-height: 16px; background: #e8f3ec; color: #1d6b3b; white-space: nowrap; }
.mchip.warn { background: var(--bad-bg); color: var(--bad); }
.mc-table td { vertical-align: middle; }
.mc-table .cmx-in { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.sch-order { position: relative; }
.so-chk { position: absolute; right: 10px; bottom: 8px; display: inline-flex; padding: 2px; cursor: pointer; }
.so-chk input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--orange); }
/* 작업배정 — 7일 생산 계획(간트) */
.plan { display: flex; flex-direction: column; gap: 12px; height: calc(100vh - 60px - 56px - 8px); min-height: 560px; }
.plan-bar { flex-direction: row; display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex: none; }
.plan-stale { font-size: 12.5px; color: var(--ink-light); }
.plan-stale.warn { color: var(--bad); font-weight: 600; }
.plan-stale.ok { color: #1d6b3b; font-weight: 600; }
.plan-metrics { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.pm { flex: 1; min-width: 150px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.pm.bad { border-color: var(--bad); }
.pm-t { font-size: 11.5px; color: var(--ink-light); }
.pm-v { font-size: 17px; font-weight: 700; }
.pm.bad .pm-v { color: var(--bad); }
.pm-s { font-size: 11.5px; color: var(--ink-mute, #999); }
.pm-d { display: block; font-size: 11px; margin-top: 2px; color: var(--ink-light); }
.pm-d.good { color: #1d6b3b; } .pm-d.bad { color: var(--bad); }
.plan-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 12px; }
.plan-orders, .plan-gantt { display: flex; flex-direction: column; min-height: 0; }
.plan-olist, .plan-gscroll { flex: 1; min-height: 0; overflow: auto; }
.po { border-bottom: 1px solid var(--line-soft); padding: 8px 12px; cursor: pointer; font-size: 12.5px; }
.po:hover, .po.on { background: var(--orange-bg); }
.po.late { border-left: 3px solid var(--bad); }
.po-s { font-size: 11.5px; color: var(--ink-light); }
.pg-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line-soft); }
.pg-name { width: 110px; flex: none; padding: 6px 10px; font-size: 12.5px; position: sticky; left: 0; background: var(--paper); z-index: 3; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.pg-name small { color: var(--ink-light); font-size: 10.5px; }
.pg-track { position: relative; height: 44px; flex: none; }
.pg-head { position: sticky; top: 0; z-index: 4; background: var(--paper); }
.pg-head .pg-track { height: 28px; }
.pg-day { position: absolute; top: 0; height: 100%; border-left: 1px solid var(--line); font-size: 11.5px; padding: 6px 6px; box-sizing: border-box; white-space: nowrap; overflow: hidden; }
.pg-day.off { background: #f3f1ed; color: var(--ink-mute, #999); padding: 6px 4px; }
.pg-lunch { position: absolute; top: 0; height: 100%; background: repeating-linear-gradient(135deg, #f3f1ed, #f3f1ed 4px, #fff 4px, #fff 8px); opacity: .8; z-index: 0; }
.pg-job { position: absolute; top: 6px; height: 32px; border: 1px solid; border-radius: 5px; box-sizing: border-box; overflow: hidden; font-size: 11px; line-height: 30px; padding: 0 4px; cursor: pointer; white-space: nowrap; z-index: 1; }
.pg-job span { pointer-events: none; font-weight: 600; }
.pg-job:hover { filter: brightness(.95); outline: 2px solid var(--ink); z-index: 2; }
.pg-job.locked { border-style: dashed; border-width: 2px; }
.pg-job.dim { opacity: .25; }
.pg-thread { position: absolute; top: 6px; height: 32px; background: repeating-linear-gradient(45deg, rgba(200, 40, 40, .75), rgba(200, 40, 40, .75) 3px, rgba(255, 255, 255, .6) 3px, rgba(255, 255, 255, .6) 6px); border-radius: 3px; z-index: 2; pointer-events: none; }
.pg-wait { position: absolute; top: 34px; height: 5px; background: #8a8f98; border-radius: 3px; z-index: 2; pointer-events: none; }
.pg-wk { position: absolute; height: 9px; background: #4b6a9b; border-radius: 3px; }
.pg-un { padding: 8px 12px; border-bottom: 1px dashed var(--line); font-size: 12.5px; background: var(--bad-bg); }
.pg-chip { display: inline-block; margin: 2px 4px; padding: 1px 8px; border: 1px solid var(--bad); border-radius: 10px; cursor: pointer; background: #fff; }
.pg-legend { display: flex; gap: 14px; align-items: center; padding: 8px 12px; font-size: 11.5px; position: sticky; left: 0; }
.pg-legend .k { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.pg-legend .k.job { background: hsl(210 55% 80%); border: 1px solid hsl(210 45% 55%); }
.pg-legend .k.th { background: repeating-linear-gradient(45deg, rgba(200, 40, 40, .75), rgba(200, 40, 40, .75) 3px, #fff 3px, #fff 6px); }
.pg-legend .k.wt { background: #8a8f98; height: 5px; }
@media (max-width: 1100px) { .plan { height: auto; } .plan-body { grid-template-columns: 1fr; } }
/* 작업배정 — 일별 보기 (자수기 카드 한 줄에 6개) */
.pd-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; padding: 12px; align-content: start; }
.pd-card { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-job { border: 1px solid var(--line); border-left-width: 4px; border-radius: 7px; padding: 6px 8px; font-size: 12px; cursor: pointer; line-height: 1.45; }
.pd-job:hover { outline: 2px solid var(--ink); }
.pd-job.locked { border-style: dashed; border-left-style: solid; }
.pd-job.dim { opacity: .3; }
.pd-t { font-size: 11.5px; color: var(--ink-light); }
.pd-th { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 3px; }
.pd-th img { width: 16px; height: 16px; border-radius: 3px; object-fit: cover; border: 1px solid var(--line); }
.asg-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; }
.asg-load { font-size: 11px; color: var(--ink-light); }
@media (max-width: 1500px) { .pd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 작업지시서 — 자수기 번호 (작업자 아래, 크게) */
.ws-mach { margin-bottom: 0; }
.ws-mach td { height: 36px; }
.ws-mach td.l { font-weight: 700; }
.ws-mach td.mno { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
#ws_render.pdfmode .ws-mach td.mno { padding-bottom: 8px; }
/* 작업배정 — 주문 우선 체크 */
.po-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.po-sel { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-light); cursor: pointer; }
.po-sel input { width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; }
.po-prio { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-light); cursor: pointer; }
.po-prio input { width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; }
.po-prio.on { color: var(--orange-deep, #c2410c); font-weight: 700; }
/* 작업배정 — priority 숫자 */
.po-prio { gap: 4px; }
.po-prio span { font-size: 11px; }
.po-prio button { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); cursor: pointer; font-size: 14px; line-height: 1; color: var(--ink); }
.po-prio button:hover { background: var(--orange-bg); }
.po-prio input[type=number] { width: 38px; height: 22px; padding: 0 2px; text-align: center; border: 1px solid var(--line); border-radius: 5px; font-size: 12.5px; font-weight: 700; background: #fff; accent-color: unset; }
.plan-start { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-light); }
.plan-start input { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13px; color: var(--ink); background: var(--paper); }
/* .emb 에서 읽은 색 */
.cmx-in.cmx-auto { outline: 1.5px dashed var(--orange); outline-offset: -2px; }
.cmx-in.cmx-auto.far { outline-color: var(--bad); }
.cmx-rgb { position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); z-index: 2; }
/* 도움말 아이콘 · 자수사 컬러 모달 */
.help-btn { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink-light); background: var(--paper); color: var(--ink-light); font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; }
.help-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--orange-bg); }
dialog.mdl { position: fixed; inset: 0; margin: auto; height: fit-content; border: 0; border-radius: 14px; padding: 0; width: min(980px, 94vw); max-height: 86vh; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, .3); }
dialog.mdl::backdrop { background: rgba(26, 26, 26, .42); }
dialog.mdl[open] { display: flex; flex-direction: column; }
.mdl-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mdl-head h2 { flex: 1; font-size: 15px; font-weight: 700; }
.mdl-body { overflow: auto; padding: 16px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; align-content: start; }
/* 작업현황 일별 — 자수기별 칸 (한 줄 6대) */
.sch-mgrid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; align-items: start; }
.sch-mcol { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); min-width: 0; }
.sch-mcol.none { border-style: dashed; }
.sch-mhead { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; padding: 0 2px; }
.sch-mhead span { font-size: 12px; color: var(--ink-light); }
.sch-mempty { font-size: 12px; color: var(--ink-mute); text-align: center; padding: 14px 0; }
.sch-mcol .sch-entry { flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; align-items: flex-start; }
.sch-mcol .sch-entry .qty { min-width: 0; font-size: 15px; text-align: left; }
.sch-mcol .sch-entry .meta { flex-basis: 100%; }
@media (max-width: 1500px) { .sch-mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .sch-mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .sch-mgrid { grid-template-columns: 1fr; } }
/* 작업지시서 — 실 교체 표시 */
.ws-sw { font-size: 9px; font-weight: 800; color: #fff; background: #1a1a1a; border-radius: 3px; padding: 0 3px; margin-left: 3px; vertical-align: 1px; }
/* 작업현황 — 주 · 월 보기에서 선택한 날짜 */
.sch-cell { cursor: pointer; }
.sch-cell.sel { background: var(--orange-bg); box-shadow: inset 0 0 0 2px var(--orange); }
.sch-cell.sel .sch-daynum { font-weight: 800; }
/* 작업현황 왼쪽 주문 — 납기 줄 오른쪽 끝 [+] */
.so-due { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.so-add { flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; }
.so-add:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
/* 작업현황 — 배정 취소 [×] (칸 오른쪽 아래) */
.sch-chip, .sch-entry { position: relative; }
.ent-x { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink-light); font-size: 12px; line-height: 1; cursor: pointer; opacity: .75; }
.ent-x:hover { background: var(--bad); border-color: var(--bad); color: #fff; opacity: 1; }
.sch-chip:has(.ent-x) { padding-right: 24px; }
.sch-entry:has(.ent-x) { padding-bottom: 30px; }
