/* ============================================================
   Cleanroom Console — 반도체 IDM ERP
   Light base + Process Cyan + Mono data + Approval-native UX
   CRM의 Midnight Gold 와 정반대 컨셉
   ============================================================ */

/* ===== 0. 토큰 ===== */
:root {
  /* Surfaces — light, 5 levels */
  --bg:           #f6f8fa;
  --surface:      #ffffff;
  --surface-2:    #f1f5f9;
  --surface-3:    #e2e8f0;
  --overlay:      rgba(15, 23, 42, 0.32);

  /* Inset Dark — 실시간 측정 위젯 전용 */
  --inset-bg:        #0b1620;
  --inset-bg-2:      #15212d;
  --inset-text:      #e2e8f0;
  --inset-text-dim:  #94a3b8;
  --inset-grid:      rgba(34, 211, 238, 0.06);
  --inset-cyan:      #22d3ee;
  --inset-cyan-glow: 0 0 8px rgba(34, 211, 238, 0.65);
  --inset-border:    rgba(255, 255, 255, 0.06);

  /* Process Cyan System */
  --cyan:         #0891b2;
  --cyan-deep:    #0e7490;
  --cyan-light:   #22d3ee;
  --cyan-glow:    rgba(8, 145, 178, 0.12);
  --cyan-soft:    rgba(8, 145, 178, 0.08);
  --cyan-line:    rgba(8, 145, 178, 0.22);
  --cyan-grad:    linear-gradient(135deg, #22d3ee 0%, #0891b2 50%, #0e7490 100%);

  /* Text — slate */
  --text:         #0f172a;
  --text-muted:   #475569;
  --text-dim:     #64748b;
  --text-faint:   #94a3b8;

  /* Borders */
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;
  --border-cyan:   rgba(8, 145, 178, 0.32);

  /* Signal Colors — fab status */
  --run:    #65a30d;  --run-soft:    rgba(101,163,13,0.12);
  --idle:   #64748b;  --idle-soft:   rgba(100,116,139,0.10);
  --warn:   #d97706;  --warn-soft:   rgba(217,119,6,0.12);
  --crit:   #dc2626;  --crit-soft:   rgba(220,38,38,0.12);
  --info:   #2563eb;  --info-soft:   rgba(37,99,235,0.10);
  --hold:   #7c3aed;  --hold-soft:   rgba(124,58,237,0.10);

  /* Line color mapping */
  --line-24:#6366f1; --line-24-soft:rgba(99,102,241,0.12);
  --line-18:#0891b2; --line-18-soft:rgba(8,145,178,0.12);
  --line-16:#0d9488; --line-16-soft:rgba(13,148,136,0.12);
  --line-12:#d946ef; --line-12-soft:rgba(217,70,239,0.12);
  --line-10:#f59e0b; --line-10-soft:rgba(245,158,11,0.12);

  /* Data viz */
  --viz-1:#0891b2; --viz-2:#22d3ee; --viz-3:#65a30d; --viz-4:#d97706;
  --viz-5:#dc2626; --viz-6:#2563eb; --viz-7:#7c3aed; --viz-8:#0d9488;

  /* Radii — sharper than CRM */
  --r-xs:3px; --r-sm:5px; --r:8px; --r-md:12px; --r-lg:16px; --r-pill:999px;

  /* Shadows */
  --shadow-xs:    0 1px 1px rgba(15,23,42,0.04);
  --shadow-sm:    0 1px 3px rgba(15,23,42,0.06);
  --shadow-md:    0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg:    0 16px 40px rgba(15,23,42,0.14);
  --shadow-cyan:  0 8px 28px rgba(8,145,178,0.16);
  --ring-cyan:    0 0 0 3px rgba(8,145,178,0.20);

  /* Motion — industrial */
  --ease:     cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --t-fast:100ms; --t-base:160ms; --t-slow:280ms;

  /* Type stacks */
  --kr:   'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
  --en:   'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --side-w:        220px;
  --topbar-h:      48px;
  --statusbar-h:   32px;
  --bottombar-h:   56px;
  --content-pad:   20px;
}

/* ===== 1. Reset / Base typography (CRM 동일 패턴) ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: var(--kr);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* 숫자/데이터 — Inter + tabular-nums (CRM과 동일) */
.num, [data-num], .c-table td.num, .c-kpi__num, .u-num {
  font-family: var(--en);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* 모노 — 식별자(Lot/WO/Recipe/EQ ID) 및 터미널 프롬프트 전용 */
.mono, .erp-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* ===== 2. Layout (Operations Console) ===== */
.erp-wrap {
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  grid-template-rows: 1fr;
  min-height: 100vh;
}

/* ===== 3. Sidebar (항상 펼침 220px) ===== */
.erp-side {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 200;
}
.erp-side__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-h);
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.erp-side__logo i {
  font-size: 18px;
  color: var(--cyan);
}
.erp-side__logo-text {
  font-family: var(--kr);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.erp-side__logo-badge {
  font-family: var(--en);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border: 1px solid var(--border-cyan);
  border-radius: var(--r-xs);
  color: var(--cyan);
  background: var(--cyan-soft);
  letter-spacing: 0.06em;
}
.erp-side__nav {
  flex: 1 1 0;
  min-height: 0;
  padding: 12px 8px 18px;
  overflow-y: auto;
  /* 스크롤 가능 시 하단 fade — 가려짐 인식 방지 */
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 24px), transparent 100%);
}
.erp-side__nav::-webkit-scrollbar { width: 6px; }
.erp-side__nav::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 3px;
}
.erp-side__nav:hover::-webkit-scrollbar-thumb { background: var(--border-strong); }
.erp-side__group-label {
  font-family: var(--en);
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 12px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.erp-side__group-label::before { content: '·'; color: var(--cyan); font-weight: 700; }
.erp-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.erp-nav-item i { width: 16px; text-align: center; font-size: 13px; color: var(--text-dim); }
.erp-nav-item:hover {
  background: var(--cyan-soft);
  color: var(--text);
  border-left-color: var(--cyan);
}
.erp-nav-item:hover i { color: var(--cyan); }
.erp-nav-item.active {
  background: var(--cyan-soft);
  color: var(--cyan-deep);
  border-left-color: var(--cyan);
  font-weight: 600;
}
.erp-nav-item.active i { color: var(--cyan); }
.erp-nav-item__badge {
  margin-left: auto;
  font-family: var(--en);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-muted);
}
.erp-nav-item__badge--crit { background: var(--crit); color: #fff; }
.erp-nav-item__badge--warn { background: var(--warn); color: #fff; }

/* 사이드바 하단 액션 — 결재 인박스 + 알림 (topbar에서 이전) */
.erp-side__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.erp-side__action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}
.erp-side__action-btn:hover {
  color: var(--cyan);
  border-color: var(--border-cyan);
  background: var(--cyan-soft);
}
.erp-side__action-btn--inbox {
  color: var(--cyan-deep);
  border-color: var(--border-cyan);
  background: var(--cyan-soft);
}
.erp-side__action-btn--inbox:hover { background: var(--cyan-glow); }
.erp-side__action-btn i { font-size: 13px; }
.erp-side__action-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--crit);
  color: #fff;
  font-family: var(--en);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}

/* 하단 사용자 블록 — statusbar와 정보 중복 방지로 컴팩트하게 */
.erp-side__bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease);
}
.erp-side__bottom:hover { background: var(--surface-2); }
.erp-side__avatar {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--cyan-soft);
  border: 1px solid var(--border-cyan);
  color: var(--cyan-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  font-family: var(--kr);
}
.erp-side__user {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.erp-side__user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.erp-side__user-role {
  font-family: var(--kr);
  font-size: 11px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.erp-side__backdrop {
  position: fixed; inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 199;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base) var(--ease);
}

/* ===== 4. Main column ===== */
.erp-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

/* ===== 5. Topbar (48px) ===== */
.erp-topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.erp-topbar__hamburger {
  display: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.erp-topbar__breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.erp-topbar__breadcrumb i { color: var(--text-faint); font-size: 9px; }
.erp-topbar__breadcrumb b { color: var(--text); font-weight: 600; }

.erp-line-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border-cyan);
  border-radius: var(--r-pill);
  background: var(--cyan-soft);
  font-family: var(--kr);
  font-size: 12px;
  color: var(--cyan-deep);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.erp-line-picker:hover { background: var(--cyan-glow); }
.erp-line-picker__chip {
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: var(--surface);
  font-size: 11px;
  font-family: var(--en);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.erp-topbar__spacer { flex: 1; }

.erp-topbar__search {
  position: relative;
  width: 280px;
  max-width: 32vw;
}
.erp-topbar__search input {
  width: 100%;
  height: 32px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-family: var(--kr);
  font-size: 13px;
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.erp-topbar__search input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: var(--ring-cyan);
}
.erp-topbar__search i {
  position: absolute;
  left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 12px;
}
.erp-topbar__search kbd {
  position: absolute;
  right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--en);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--text-dim);
}

.erp-topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.erp-topbar__btn {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-muted);
  transition: all var(--t-fast) var(--ease);
}
.erp-topbar__btn:hover { color: var(--cyan); border-color: var(--border-cyan); background: var(--cyan-soft); }
.erp-topbar__btn--inbox { color: var(--cyan-deep); border-color: var(--border-cyan); background: var(--cyan-soft); }
.erp-topbar__btn--inbox:hover { background: var(--cyan-glow); }
.erp-topbar__badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--crit);
  color: #fff;
  font-family: var(--en);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}

/* ===== 6. Status bar (하단 32px sticky) ===== */
.erp-statusbar {
  height: var(--statusbar-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  /* PC: 사이드바 너비만큼 좌측 패딩으로 밀어 사이드바와 겹치지 않게 */
  padding: 0 16px 0 calc(var(--side-w) + 16px);
  gap: 16px;
  font-family: var(--kr);
  font-size: 12px;
  color: var(--text-muted);
  position: sticky;
  bottom: 0;
  z-index: 90;
}
@media (max-width: 1024px) {
  .erp-statusbar { padding: 0 16px; }
}

/* 모바일에서 데스크톱 전용 메뉴/버튼 숨김 (안돈 보드 등 키오스크용) */
@media (max-width: 1024px) {
  .erp-nav-item--desktop-only,
  .erp-feed--desktop-only { display: none !important; }
}

/* erp/lines/ 캐파 할당 테이블 — 모바일에서는 고객사 / 할당 WPM / 할당일 3열만 노출 */
@media (max-width: 768px) {
  .erp-alloc-table th:nth-child(1),
  .erp-alloc-table td:nth-child(1),
  .erp-alloc-table th:nth-child(3),
  .erp-alloc-table td:nth-child(3),
  .erp-alloc-table th:nth-child(5),
  .erp-alloc-table td:nth-child(5) { display: none; }
}

/* erp/equipment/ 상태 필터 + 검색 (items와 동일한 결합 인풋 디자인) */
.erp-eq-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.erp-eq-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.erp-eq-filter__search {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  width: 260px;
}
.erp-eq-filter__search .c-input {
  height: 34px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  flex: 1;
  min-width: 0;
}
.erp-eq-filter__search .c-btn {
  height: 34px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .erp-eq-filter__search { width: 100%; order: -1; }
  .erp-eq-filter__chips { width: 100%; }
}

/* erp/lots/ — 모바일에서 검색바 다음 줄로 내림 */
@media (max-width: 768px) {
  .lots-filter-form .c-dropdown { flex: 1 1 auto; }
  .lots-filter-form .lots-search { flex: 1 0 100%; max-width: none; order: 2; }
}
.erp-statusbar__group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.erp-statusbar__group--right { margin-left: auto; }
.erp-statusbar__sep { width: 1px; height: 14px; background: var(--border); }
.erp-statusbar__clock {
  font-family: var(--en);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}
.erp-statusbar__shift {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 600;
}
.erp-statusbar__shift--swing { background: var(--cyan-soft); color: var(--cyan-deep); }
.erp-statusbar__shift--night { background: var(--hold-soft); color: var(--hold); }
.erp-statusbar__shift--pulse { animation: shift-pulse 1.0s ease-in-out infinite; }
@keyframes shift-pulse {
  0%, 100% { background: var(--warn-soft); }
  50%      { background: rgba(217,119,6,0.30); }
}
.erp-statusbar__leds {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.erp-statusbar__led {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.erp-statusbar__led-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--idle);
}
.erp-statusbar__led-dot--run  { background: var(--run); box-shadow: 0 0 6px rgba(101,163,13,0.6); }
.erp-statusbar__led-dot--idle { background: var(--idle); }
.erp-statusbar__led-dot--warn { background: var(--warn); box-shadow: 0 0 6px rgba(217,119,6,0.6); }
.erp-statusbar__led-dot--crit { background: var(--crit); box-shadow: 0 0 6px rgba(220,38,38,0.6); animation: led-pulse 1.6s ease-in-out infinite; }
@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

/* ===== 7. Bottom tab bar (모바일) ===== */
.erp-bottombar {
  display: none;
  height: var(--bottombar-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  z-index: 95;
  box-shadow: 0 -4px 12px rgba(15,23,42,0.05);
}
.erp-bottombar__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 500;
  position: relative;
}
.erp-bottombar__tab i { font-size: 16px; }
.erp-bottombar__tab.active { color: var(--cyan); }
.erp-bottombar__tab.active i { color: var(--cyan); }
.erp-bottombar__tab__badge {
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--crit);
  color: #fff;
  font-family: var(--en);
  font-variant-numeric: tabular-nums;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 8. Content ===== */
.erp-content {
  flex: 1;
  padding: var(--content-pad);
  min-width: 0;
}

.erp-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.erp-page-head__title {
  font-family: var(--kr);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.erp-page-head__sub { display: none; }
.erp-page-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 9. Card ===== */
.c-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.c-card--interactive { cursor: pointer; }
.c-card--interactive:hover {
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-md);
}
.c-card--inset {
  background: var(--inset-bg);
  border-color: var(--inset-border);
  color: var(--inset-text);
  background-image:
    linear-gradient(var(--inset-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--inset-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.c-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  row-gap: 8px;
  margin-bottom: 12px;
}
.c-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.c-card__title i { color: var(--cyan); font-size: 12px; }

/* ===== 10. KPI card (가로 + 게이지 바) ===== */
.c-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.c-kpi {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  color: inherit;
  text-decoration: none;
}
.c-kpi:hover { border-color: var(--border-cyan); box-shadow: var(--shadow-sm); }
a.c-kpi { cursor: pointer; }
.c-kpi__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.c-kpi__label {
  font-family: var(--kr);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.c-kpi__num {
  font-family: var(--en);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.c-kpi__unit {
  font-family: var(--kr);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 500;
}
.c-kpi__sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.c-kpi__gauge {
  margin-top: 10px;
  height: 4px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.c-kpi__gauge-fill {
  height: 100%;
  background: var(--cyan-grad);
  border-radius: var(--r-pill);
  transition: width var(--t-slow) var(--ease);
}
.c-kpi--line { border-left: 4px solid var(--cyan); }
.c-kpi--line-24 { border-left-color: var(--line-24); }
.c-kpi--line-18 { border-left-color: var(--line-18); }
.c-kpi--line-16 { border-left-color: var(--line-16); }
.c-kpi--line-12 { border-left-color: var(--line-12); }
.c-kpi--line-10 { border-left-color: var(--line-10); }
.c-kpi--crit { border-left: 4px solid var(--crit); }
.c-kpi--crit .c-kpi__num { color: var(--crit); }
.c-kpi--warn { border-left: 4px solid var(--warn); }

/* ===== 11. Buttons ===== */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--kr);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.c-btn i { font-size: 12px; }
.c-btn:hover { background: var(--surface-2); }
.c-btn:active { transform: scale(0.98); }
.c-btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}
.c-btn--primary:hover { background: var(--cyan-deep); border-color: var(--cyan-deep); }
.c-btn--ghost {
  background: transparent;
  border-color: var(--border-cyan);
  color: var(--cyan-deep);
}
.c-btn--ghost:hover { background: var(--cyan-soft); }
.c-btn--approve {
  background: var(--run);
  border-color: var(--run);
  color: #fff;
}
.c-btn--approve:hover { filter: brightness(1.08); }
.c-btn--reject {
  background: var(--crit);
  border-color: var(--crit);
  color: #fff;
}
.c-btn--reject:hover { filter: brightness(1.08); }
.c-btn--sm { height: 26px; padding: 0 10px; font-size: 12px; }
.c-btn--icon { width: 32px; padding: 0; }
.c-btn--icon.c-btn--sm { width: 26px; }

/* ===== 12. Inputs ===== */
.c-input, .c-select, .c-textarea {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--kr);
  font-size: 13px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.c-input--mono { font-family: var(--mono); }
.c-input--num  { font-family: var(--en); font-variant-numeric: tabular-nums; }
.c-textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.c-input:focus, .c-select:focus, .c-textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--surface);
  box-shadow: var(--ring-cyan);
}
.c-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: var(--kr);
}

/* ===== 13. Table ===== */
.c-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.c-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.c-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  font-family: var(--kr);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--border-strong);
  white-space: nowrap;
}
.c-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
  vertical-align: middle;
  font-size: 13px;
}
.c-table tbody tr:nth-child(even) td { background: var(--surface-2); }
.c-table tbody tr:hover td { background: var(--cyan-soft); }
.c-table tbody tr:last-child td { border-bottom: none; }
.c-table .mono { font-family: var(--mono); }
.c-table__id { font-family: var(--mono); color: var(--cyan-deep); font-weight: 600; font-size: 12px; white-space: nowrap; }

/* 셀 정렬 + 폭 — short-content 컬럼은 컨텐츠 너비로 shrink-wrap */
/* th specificity 우회 — `.c-table thead th { text-align: left }`보다 명시도 높임 */
.c-table th.c-cell--end,
.c-table td.c-cell--end {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}
.c-table th.c-cell--center,
.c-table td.c-cell--center {
  text-align: center;
  white-space: nowrap;
}
.c-table th.c-cell--num,
.c-table td.c-cell--num {
  font-family: var(--en);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
  width: 1%;
}
/* main 컬럼 — 이름·설명처럼 넓어져야 하는 셀 */
.c-table th.c-cell--main,
.c-table td.c-cell--main { width: auto; }
/* 컴팩트 코드 셀 */
.c-table th.c-cell--code,
.c-table td.c-cell--code {
  white-space: nowrap;
  width: 1%;
}
/* 하위 호환 — 클래스 단독으로도 동작 */
.c-cell--end    { text-align: right;  white-space: nowrap; width: 1%; }
.c-cell--center { text-align: center; white-space: nowrap; }
.c-cell--num    { font-family: var(--en); text-align: right; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; white-space: nowrap; width: 1%; }
.c-cell--main   { width: auto; }
.c-cell--code   { white-space: nowrap; width: 1%; }

/* ===== 14. Status chips ===== */
.c-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-family: var(--en);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.c-chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.c-chip--run     { background: var(--run-soft);  color: var(--run); }
.c-chip--idle    { background: var(--idle-soft); color: var(--idle); }
.c-chip--warn    { background: var(--warn-soft); color: var(--warn); }
.c-chip--crit, .c-chip--down { background: var(--crit-soft); color: var(--crit); }
.c-chip--info    { background: var(--info-soft); color: var(--info); }
.c-chip--hold, .c-chip--pending { background: var(--hold-soft); color: var(--hold); }
.c-chip--approved { background: var(--run-soft); color: var(--run); }
.c-chip--rejected { background: var(--crit-soft); color: var(--crit); }
.c-chip--live .c-chip__dot { animation: chip-pulse 1.6s ease-in-out infinite; }
@keyframes chip-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.c-chip--line {
  background: var(--cyan-soft);
  color: var(--cyan-deep);
}
.c-chip--line-24 { background: var(--line-24-soft); color: var(--line-24); }
.c-chip--line-18 { background: var(--line-18-soft); color: var(--line-18); }
.c-chip--line-16 { background: var(--line-16-soft); color: var(--line-16); }
.c-chip--line-12 { background: var(--line-12-soft); color: var(--line-12); }
.c-chip--line-10 { background: var(--line-10-soft); color: var(--line-10); }

/* SLA d-N badge */
.c-d-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  font-family: var(--en);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text-muted);
}
.c-d-badge--warn { background: var(--warn-soft); color: var(--warn); }
.c-d-badge--crit { background: var(--crit-soft); color: var(--crit); }

/* ===== 15. Modal / Sheet ===== */
.c-modal-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base) var(--ease);
}
.c-modal-overlay.open { opacity: 1; visibility: visible; }
.c-modal {
  background: var(--surface);
  border-radius: var(--r-md);
  width: 480px;
  max-width: 92vw;
  max-height: 88vh;
  box-shadow: var(--shadow-lg);
  transform: scale(0.98);
  transition: transform var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
}
.c-modal-overlay.open .c-modal { transform: scale(1); }
.c-modal__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.c-modal__title { font-size: 14px; font-weight: 700; color: var(--text); margin: 0; }
.c-modal__close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-muted);
}
.c-modal__body { padding: 18px; overflow-y: auto; flex: 1; }
.c-modal__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--surface-2);
}

/* 데모 안내 모달 — 비활성 버튼 클릭 시 노출 */
.erp-demo-modal { width: 460px; max-width: 92vw; padding: 30px 26px 22px; text-align: center; }
.erp-demo-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-deep);
  font-size: 26px;
  border: 1px solid var(--cyan-line);
}
.erp-demo-modal__title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}
.erp-demo-modal__msg {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.erp-demo-modal__foot { display: flex; justify-content: center; }
.erp-demo-modal__foot .c-btn { min-width: 120px; }

/* Sheet (PC=우측 / 모바일=하단) */
.c-sheet {
  position: fixed; inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base) var(--ease);
}
.c-sheet.open { opacity: 1; visibility: visible; }
.c-sheet__backdrop {
  position: absolute; inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(2px);
}
.c-sheet__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease);
}
.c-sheet.open .c-sheet__panel { transform: translateX(0); }
.c-sheet__head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.c-sheet__title { font-size: 14px; font-weight: 700; }
.c-sheet__body { flex: 1; padding: 18px; overflow-y: auto; }
.c-sheet__foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); }

/* ===== 16. Toast ===== */
.c-toast-wrap {
  position: fixed;
  top: 60px; right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
}
.c-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  color: var(--text);
  min-width: 260px;
  max-width: 380px;
}
.c-toast i { font-size: 14px; color: var(--cyan); }
.c-toast--success { border-left-color: var(--run); }
.c-toast--success i { color: var(--run); }
.c-toast--error { border-left-color: var(--crit); }
.c-toast--error i { color: var(--crit); }
.c-toast--warn { border-left-color: var(--warn); }
.c-toast--warn i { color: var(--warn); }
.c-toast--leaving { opacity: 0; transform: translateX(20px); transition: all 320ms var(--ease); }

/* ===== 17. OEE 반원 게이지 ===== */
.c-oee {
  position: relative;
  width: 220px;
  height: 130px;
  margin: 0 auto;
}
.c-oee svg { width: 100%; height: 100%; display: block; }
.c-oee__bg { fill: none; stroke: var(--surface-3); stroke-width: 14; }
.c-oee__fill { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dasharray var(--t-slow) var(--ease); }
.c-oee__num {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--en);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.c-oee__label {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--kr);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== 18. Util classes ===== */
.u-flex { display: flex; }
.u-flex-1 { flex: 1; }
.u-gap-4 { gap: 4px; } .u-gap-8 { gap: 8px; } .u-gap-12 { gap: 12px; } .u-gap-16 { gap: 16px; }
.u-mt-4 { margin-top: 4px; } .u-mt-8 { margin-top: 8px; } .u-mt-12 { margin-top: 12px; } .u-mt-16 { margin-top: 16px; }
.u-mb-4 { margin-bottom: 4px; } .u-mb-8 { margin-bottom: 8px; } .u-mb-12 { margin-bottom: 12px; } .u-mb-16 { margin-bottom: 16px; }
.u-text-muted { color: var(--text-muted); }
.u-text-dim   { color: var(--text-dim); }
.u-text-faint { color: var(--text-faint); }
.u-text-cyan  { color: var(--cyan); }
.u-text-run   { color: var(--run); }
.u-text-warn  { color: var(--warn); }
.u-text-crit  { color: var(--crit); }
.u-num {
  font-family: var(--en);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.u-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.u-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.u-grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.u-grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
@media (max-width: 1024px) {
  .u-grid-2-1, .u-grid-1-2 { grid-template-columns: 1fr; gap: 16px; }
}
.u-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* Partner card hover — 거래처 그리드 */
.partner-card {
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.partner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-base) var(--ease);
}
.partner-card:hover::before { transform: scaleY(1); }

/* ===== 18.4 Filter bar (드랍다운 + 토글 + 검색) ===== */
.c-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.c-filter-bar__search {
  display: flex;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 320px;
}
.c-filter-bar__search .c-input {
  height: 34px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  min-width: 0;
}
.c-filter-bar__search .c-btn {
  height: 34px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.c-filter-bar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 0 10px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
.c-filter-bar__toggle input { margin: 0; }
.c-filter-bar__toggle--crit {
  border-color: var(--crit);
  background: var(--crit-soft);
  color: var(--crit);
}
.c-filter-bar__toggle--warn {
  border-color: var(--warn);
  background: var(--warn-soft);
  color: var(--warn);
}
@media (max-width: 768px) {
  .c-filter-bar__search { flex-basis: 100%; max-width: none; }
}

/* ===== 18.5 Custom Dropdown ===== */
.c-dropdown {
  position: relative;
  display: inline-flex;
  font-family: var(--kr);
}
.c-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  min-width: 180px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.c-dropdown__toggle:hover {
  border-color: var(--cyan);
  background: var(--surface);
}
.c-dropdown.is-open .c-dropdown__toggle {
  border-color: var(--cyan);
  background: var(--surface);
  box-shadow: var(--ring-cyan);
}
.c-dropdown__label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-dropdown__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  background: var(--cyan-soft);
  color: var(--cyan-deep);
  font-family: var(--en);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.c-dropdown__caret {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform var(--t-fast) var(--ease);
}
.c-dropdown.is-open .c-dropdown__caret { transform: rotate(180deg); color: var(--cyan); }

.c-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 360px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18), 0 4px 12px -4px rgba(15, 23, 42, 0.10);
  padding: 4px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.c-dropdown.is-open .c-dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.c-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
  user-select: none;
}
.c-dropdown__item:hover,
.c-dropdown__item.is-active {
  background: var(--cyan-soft);
  color: var(--cyan-deep);
}
.c-dropdown__item.is-selected {
  background: var(--cyan-soft);
  color: var(--cyan-deep);
  font-weight: 600;
}
.c-dropdown__item-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.c-dropdown__item-label i {
  font-size: 11px;
  width: 14px;
  color: var(--text-dim);
}
.c-dropdown__item.is-selected .c-dropdown__item-label i,
.c-dropdown__item:hover .c-dropdown__item-label i {
  color: var(--cyan);
}
.c-dropdown__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-family: var(--en);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.c-dropdown__item:hover .c-dropdown__badge,
.c-dropdown__item.is-selected .c-dropdown__badge,
.c-dropdown__item.is-active .c-dropdown__badge {
  background: var(--cyan);
  color: #fff;
}
.c-dropdown__item-check {
  width: 14px;
  font-size: 11px;
  color: var(--cyan);
  opacity: 0;
}
.c-dropdown__item.is-selected .c-dropdown__item-check { opacity: 1; }

.c-dropdown__divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

/* ===== 19a. 공장 평면도 (Factory Floorplan SVG) ===== */
.erp-floorplan-card .c-card__head {
  flex-wrap: wrap;
  gap: 12px;
}
.erp-floor-legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--kr);
}
.erp-floor-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.erp-floor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.erp-floor-dot.is-running { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,.6); }
.erp-floor-dot.is-warn    { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.6); }
.erp-floor-dot.is-down    { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.6); }
.erp-floor-dot.is-idle    { background: #94a3b8; }

.erp-floorplan {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 14px;
  border-radius: var(--r);
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(99,102,241,0.04), transparent),
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255,255,255,0.018) 19px, rgba(255,255,255,0.018) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255,255,255,0.018) 19px, rgba(255,255,255,0.018) 20px),
    var(--surface);
  border: 1px solid var(--border);
}

/* Cleanroom outline */
.erp-floor-room {
  fill: rgba(99,102,241,0.025);
  stroke: rgba(99,102,241,0.18);
  stroke-width: 1;
  stroke-dasharray: 0;
}
.erp-floor-room-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  fill: var(--text-dim);
  letter-spacing: 3px;
}

/* 진입/물류 영역 */
.erp-floor-zone {
  fill: rgba(99,102,241,0.04);
  stroke: rgba(99,102,241,0.10);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.erp-floor-zone--bottom {
  fill: rgba(34,197,94,0.04);
  stroke: rgba(34,197,94,0.10);
}
.erp-floor-zone-text {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  fill: var(--text-faint);
  letter-spacing: 2px;
}

/* Bay (라인 베이) */
.erp-floor-bay {
  cursor: pointer;
  transition: transform .18s ease, filter .2s ease;
  text-decoration: none;
}
.erp-floor-bay:hover .erp-floor-bay__rect {
  filter: brightness(1.18);
  stroke-width: 2.5;
}
.erp-floor-bay__rect {
  fill: rgba(15,23,42,0.30);
  stroke: var(--bay-color, #6366f1);
  stroke-width: 1.5;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.18));
  transition: filter .2s ease, stroke-width .18s ease;
}
.erp-floor-bay--down    .erp-floor-bay__rect { fill: rgba(239,68,68,0.07); }
.erp-floor-bay--warn    .erp-floor-bay__rect { fill: rgba(251,191,36,0.06); }
.erp-floor-bay--running .erp-floor-bay__rect { fill: rgba(16,185,129,0.05); }
.erp-floor-bay--idle    .erp-floor-bay__rect { fill: rgba(148,163,184,0.05); }

/* 상태등 + 펄스 */
.erp-floor-bay__light {
  fill: #94a3b8;
}
.erp-floor-bay--running .erp-floor-bay__light {
  fill: #10b981;
  animation: erp-floor-pulse-green 2s ease-in-out infinite;
}
.erp-floor-bay--warn .erp-floor-bay__light {
  fill: #fbbf24;
  animation: erp-floor-pulse-amber 1.5s ease-in-out infinite;
}
.erp-floor-bay--down .erp-floor-bay__light {
  fill: #ef4444;
  animation: erp-floor-pulse-red 0.9s ease-in-out infinite;
}
@keyframes erp-floor-pulse-green {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(16,185,129,0.5)); }
  50%      { filter: drop-shadow(0 0 9px rgba(16,185,129,1)); }
}
@keyframes erp-floor-pulse-amber {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(251,191,36,0.5)); }
  50%      { filter: drop-shadow(0 0 10px rgba(251,191,36,1)); }
}
@keyframes erp-floor-pulse-red {
  0%, 100% { fill: #ef4444; filter: drop-shadow(0 0 4px rgba(239,68,68,0.7)); }
  50%      { fill: #fca5a5; filter: drop-shadow(0 0 13px rgba(239,68,68,1)); }
}

/* 텍스트 */
.erp-floor-bay__code {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.erp-floor-bay__node {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  fill: var(--text-dim);
}
.erp-floor-bay__status {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.erp-floor-bay--running .erp-floor-bay__status { fill: #10b981; }
.erp-floor-bay--warn    .erp-floor-bay__status { fill: #fbbf24; }
.erp-floor-bay--down    .erp-floor-bay__status { fill: #ef4444; }
.erp-floor-bay--idle    .erp-floor-bay__status { fill: #94a3b8; }
.erp-floor-bay__wip {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 900;
  fill: var(--text);
}
.erp-floor-bay__wip-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  fill: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.erp-floor-bay__eq-title {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  fill: var(--text-faint);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.erp-floor-bay__meta {
  font-family: var(--kr);
  font-size: 11px;
  fill: var(--text-muted);
}
.erp-floor-bay__num { font-family: var(--mono); font-weight: 700; fill: var(--text); }
.erp-floor-bay__warn { fill: #fbbf24; font-weight: 700; }
.erp-floor-bay__down { fill: #ef4444; font-weight: 700; }
.erp-floor-bay__bar-bg {
  fill: rgba(148,163,184,0.18);
}
.erp-floor-bay__bar {
  fill: var(--bay-color, #6366f1);
  filter: drop-shadow(0 0 4px var(--bay-color, #6366f1));
}

/* 장비 슬롯 */
.erp-floor-eq {
  opacity: 0.85;
  transition: opacity .2s;
}
.erp-floor-eq--running { fill: #10b981; }
.erp-floor-eq--warn    { fill: #fbbf24; animation: erp-floor-eq-blink 1.4s ease-in-out infinite; }
.erp-floor-eq--down    { fill: #ef4444; animation: erp-floor-eq-blink 0.7s ease-in-out infinite; }
.erp-floor-eq--pm      { fill: #a855f7; }
.erp-floor-eq--idle    { fill: #64748b; opacity: 0.5; }
@keyframes erp-floor-eq-blink {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 0.35; }
}

/* 모바일 — 평면도는 가로 스크롤 가능하게 */
@media (max-width: 768px) {
  .erp-floorplan-card { overflow-x: auto; padding: 14px 12px; }
  .erp-floorplan {
    min-width: 760px;
  }
  .erp-floor-legend { font-size: 10px; gap: 10px; }
}

/* ===== 19b. 장비 이슈 / PM 임박 row ===== */
.erp-eq-issue-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background var(--t-fast) var(--ease);
}
.erp-eq-issue-row:last-child { border-bottom: none; }
.erp-eq-issue-row:hover {
  background: var(--surface-2);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: var(--r-sm);
}
.erp-eq-issue-row__main {
  flex: 1;
  min-width: 0;
}
.erp-eq-issue-row__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.erp-eq-issue-row__sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.erp-eq-issue-row__arrow {
  font-size: 10px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}
.erp-eq-issue-row:hover .erp-eq-issue-row__arrow {
  transform: translateX(2px);
  color: var(--cyan);
}

/* ===== 19c. 공정·레시피 카드 그리드 ===== */
.erp-pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.erp-pr-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
a.erp-pr-card { cursor: pointer; }
a.erp-pr-card:hover {
  border-color: var(--card-accent, var(--cyan));
  box-shadow: 0 6px 18px -8px rgba(0,0,0,0.18), 0 2px 6px -2px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.erp-pr-card__rail {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--card-accent, var(--cyan));
  opacity: 0.85;
}
.erp-pr-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.erp-pr-card__head-l, .erp-pr-card__head-r {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.erp-pr-card__line {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.erp-pr-card__id {
  font-family: var(--mono);
  color: var(--cyan-deep);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.erp-pr-card__title {
  font-family: var(--kr);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Process — stats grid */
.erp-pr-card__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 8px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  background:
    linear-gradient(90deg, transparent, transparent),
    linear-gradient(90deg, transparent, transparent);
}
.erp-pr-stat {
  text-align: center;
  position: relative;
}
.erp-pr-stat + .erp-pr-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: var(--border);
}
.erp-pr-stat__num {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.erp-pr-stat__unit {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 1px;
}
.erp-pr-stat__lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 2px;
}

.erp-pr-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
}
.erp-pr-card__ver,
.erp-pr-card__author,
.erp-pr-card__yield {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-weight: 600;
}
.erp-pr-card__ver i,
.erp-pr-card__author i { color: var(--text-faint); font-size: 10px; }
.erp-pr-card__yield {
  padding: 2px 7px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.erp-pr-card__yield i { font-size: 10px; }
.erp-pr-card__yield--run  { color: var(--run);  background: var(--run-soft); }
.erp-pr-card__yield--warn { color: var(--warn); background: var(--warn-soft); }
.erp-pr-card__yield--crit { color: var(--crit); background: var(--crit-soft); }
.erp-pr-card__yield--idle { color: var(--text-dim); background: var(--surface-2); }
.erp-pr-card__yield-lbl {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  opacity: 0.8;
}

/* Recipe — version badge + step location + params */
.erp-pr-ver-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--cyan-soft), var(--cyan-soft));
  color: var(--cyan-deep);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid var(--border-cyan);
}
.erp-pr-ver-badge i { font-size: 9px; opacity: 0.7; }
.erp-pr-card__loc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.erp-pr-card__loc i { color: var(--cyan); font-size: 11px; }
.erp-pr-card__loc-proc {
  font-family: var(--mono);
  color: var(--cyan-deep);
  font-weight: 700;
}
.erp-pr-card__loc-step {
  font-family: var(--kr);
  color: var(--text-dim);
  font-size: 11px;
}
.erp-pr-card__params {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.erp-pr-param {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
}
.erp-pr-param__k {
  padding: 2px 6px;
  background: var(--cyan-soft);
  color: var(--cyan-deep);
  border-right: 1px solid var(--border);
}
.erp-pr-param__v {
  padding: 2px 7px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.erp-pr-param--more {
  padding: 2px 8px;
  background: transparent;
  border-style: dashed;
  color: var(--text-dim);
}

/* Mask — exposure gauge */
.erp-pr-mask-layer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px -2px rgba(99,102,241,0.5);
}
.erp-pr-mask-gauge {
  padding: 10px 0 6px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.erp-pr-mask-gauge__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.erp-pr-mask-gauge__lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.erp-pr-mask-gauge__pct {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.erp-pr-mask-gauge__pct--run  { color: var(--run); }
.erp-pr-mask-gauge__pct--warn { color: var(--warn); }
.erp-pr-mask-gauge__pct--crit { color: var(--crit); }
.erp-pr-mask-gauge__track {
  position: relative;
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.erp-pr-mask-gauge__fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--t-base) var(--ease);
  box-shadow: 0 0 8px -2px currentColor;
}
.erp-pr-mask-gauge__tick {
  position: absolute;
  top: -2px; bottom: -2px;
  width: 1px;
  background: var(--text-faint);
  opacity: 0.45;
}
.erp-pr-mask-gauge__nums {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.erp-pr-mask-gauge__rem {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 10.5px;
}
.erp-pr-mask-gauge__rem .u-num { color: var(--text); font-weight: 700; }

/* 카드 그리드 — 모바일 1열 */
@media (max-width: 640px) {
  .erp-pr-grid { grid-template-columns: 1fr; }
  .erp-pr-card { padding: 12px 14px 10px 16px; }
  .erp-pr-stat__num { font-size: 16px; }
  .erp-pr-mask-gauge__pct { font-size: 20px; }
}

/* ===== 19d. 공정 상세 — KPI / 차트 ===== */
.erp-pr-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.erp-pr-kpi__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.erp-pr-kpi__card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.erp-pr-kpi__card--yield::before { background: linear-gradient(180deg, #10b981, #059669); }
.erp-pr-kpi__card--cycle::before { background: linear-gradient(180deg, #6366f1, #4338ca); }
.erp-pr-kpi__card--steps::before { background: linear-gradient(180deg, #06b6d4, #0e7490); }
.erp-pr-kpi__card--spec::before  { background: linear-gradient(180deg, #f59e0b, #d97706); }
.erp-pr-kpi__icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 16px;
}
.erp-pr-kpi__card--yield .erp-pr-kpi__icon { color: #10b981; background: rgba(16,185,129,0.10); }
.erp-pr-kpi__card--cycle .erp-pr-kpi__icon { color: #6366f1; background: rgba(99,102,241,0.10); }
.erp-pr-kpi__card--steps .erp-pr-kpi__icon { color: #0e7490; background: rgba(14,116,144,0.10); }
.erp-pr-kpi__card--spec  .erp-pr-kpi__icon { color: #d97706; background: rgba(217,119,6,0.10); }
.erp-pr-kpi__body { flex: 1; min-width: 0; }
.erp-pr-kpi__lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.erp-pr-kpi__num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.erp-pr-kpi__unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 2px;
}
.erp-pr-kpi__sub {
  font-family: var(--kr);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

/* 수율 추이 차트 */
.erp-pr-chart {
  width: 100%;
  height: 200px;
  display: block;
  font-family: var(--mono);
}
.erp-pr-chart__grid {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.6;
}
.erp-pr-chart__tick {
  fill: var(--text-faint);
  font-size: 9px;
  font-weight: 600;
}
.erp-pr-chart__xlbl {
  fill: var(--text-dim);
  font-size: 9.5px;
  font-weight: 600;
}
.erp-pr-chart__target {
  stroke: #10b981;
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
  opacity: 0.7;
}
.erp-pr-chart__target-lbl {
  fill: #10b981;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.erp-pr-chart__line {
  fill: none;
  stroke: #0e7490;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.erp-pr-chart__pt {
  stroke: var(--surface);
  stroke-width: 1.5;
  cursor: pointer;
  transition: r var(--t-fast) var(--ease);
}
.erp-pr-chart__pt:hover { r: 5; }
.erp-pr-chart__pt--run  { fill: #10b981; }
.erp-pr-chart__pt--warn { fill: #f59e0b; }
.erp-pr-chart__pt--crit { fill: #dc2626; }

/* 장비 타입 도넛 */
.erp-pr-donut {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
}
.erp-pr-donut__svg {
  width: 160px;
  height: 160px;
}
.erp-pr-donut__seg {
  transition: opacity var(--t-fast) var(--ease);
  stroke: var(--surface);
  stroke-width: 1;
}
.erp-pr-donut__seg:hover { opacity: 0.8; }
.erp-pr-donut__center-num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  fill: var(--text);
  font-variant-numeric: tabular-nums;
}
.erp-pr-donut__center-lbl {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  fill: var(--text-faint);
  letter-spacing: 1.4px;
}
.erp-pr-donut__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}
.erp-pr-donut__legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  padding: 3px 0;
}
.erp-pr-donut__dot {
  width: 10px; height: 10px;
  border-radius: 3px;
}
.erp-pr-donut__type {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
}
.erp-pr-donut__cnt {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.erp-pr-donut__pct {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 36px;
  text-align: right;
}

/* Layer별 시간/수율 */
.erp-pr-layers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.erp-pr-layer {
  display: grid;
  grid-template-columns: 36px 1fr 140px;
  align-items: center;
  gap: 10px;
}
.erp-pr-layer__lbl {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12.5px;
  color: var(--cyan-deep);
  text-align: center;
  padding: 4px 0;
  background: var(--cyan-soft);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-cyan);
}
.erp-pr-layer__bar-wrap {
  position: relative;
  height: 22px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.erp-pr-layer__bar {
  height: 100%;
  border-radius: 3px 0 0 3px;
  transition: width var(--t-base) var(--ease);
}
.erp-pr-layer__time {
  position: absolute;
  top: 50%; right: 8px;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.erp-pr-layer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.erp-pr-layer__steps { color: var(--text-dim); }
.erp-pr-layer__yield {
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.erp-pr-layer__yield--run  { background: var(--run-soft);  color: var(--run); }
.erp-pr-layer__yield--warn { background: var(--warn-soft); color: var(--warn); }
.erp-pr-layer__yield--crit { background: var(--crit-soft); color: var(--crit); }

@media (max-width: 1024px) {
  .erp-pr-kpi { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .erp-pr-kpi { grid-template-columns: 1fr 1fr; gap: 8px; }
  .erp-pr-kpi__num { font-size: 18px; }
  .erp-pr-donut { grid-template-columns: 1fr; }
  .erp-pr-donut__svg { margin: 0 auto; }
  .erp-pr-layer { grid-template-columns: 28px 1fr 110px; gap: 8px; }
}

/* ===== 19g. 결재 인박스 카드 (approvals) ===== */
.erp-appr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.erp-appr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
.erp-appr-card:hover {
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.erp-appr-card--mine {
  border-left: 3px solid var(--cyan);
  padding-left: 14px;
}
.erp-appr-card__check {
  display: none;
  position: absolute;
  top: 14px; left: 12px;
  width: 16px; height: 16px;
}

.erp-appr-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.erp-appr-card__top-l {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}
.erp-appr-card__action {
  font-size: 11px;
  font-weight: 700;
}
.erp-appr-card__pri {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.erp-appr-card__sla {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}
.erp-appr-card__sla i { font-size: 10px; }
.erp-appr-card__sla--ok   { background: var(--surface-2);  color: var(--text-dim); }
.erp-appr-card__sla--warn { background: var(--warn-soft);  color: var(--warn); }
.erp-appr-card__sla--crit { background: var(--crit-soft);  color: var(--crit); animation: erp-appr-sla-pulse 2s ease-in-out infinite; }
@keyframes erp-appr-sla-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

.erp-appr-card__title {
  font-family: var(--kr);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-top: 2px;
}
.erp-appr-card__ref {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan-deep);
  letter-spacing: 0.02em;
  margin-top: -2px;
}

.erp-appr-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 11.5px;
  color: var(--text-dim);
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}
.erp-appr-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.erp-appr-card__meta-item i {
  font-size: 10px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.erp-appr-card__route {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.erp-appr-card__meta-item .u-num {
  color: var(--text);
  font-weight: 700;
}

.erp-appr-card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.erp-appr-card__progress {
  flex: 1;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.erp-appr-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-deep));
  border-radius: 2px;
  transition: width var(--t-base) var(--ease);
}
.erp-appr-card__foot-r {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.erp-appr-card__due {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  font-weight: 600;
}
.erp-appr-card__mine-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px -2px rgba(14,116,144,0.5);
}
.erp-appr-card__mine-chip i { font-size: 9px; }

@media (max-width: 640px) {
  .erp-appr-card {
    padding: 12px 12px;
    gap: 7px;
  }
  .erp-appr-card--mine { padding-left: 11px; }
  .erp-appr-card__title {
    font-size: 13.5px;
    line-height: 1.35;
  }
  .erp-appr-card__action {
    font-size: 10.5px;
    padding: 2px 7px;
  }
  .erp-appr-card__sla {
    font-size: 11px;
    padding: 2px 8px;
  }
  .erp-appr-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 5px;
  }
  .erp-appr-card__meta-item {
    width: 100%;
  }
  .erp-appr-card__route {
    font-size: 10px;
  }
  .erp-appr-card__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .erp-appr-card__foot-r {
    justify-content: space-between;
  }
}

/* ===== 19f. 수주/구매 카드 (sales/purchase) ===== */
.erp-sales-kpi a.erp-sales-kpi__card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.erp-sales-kpi a.erp-sales-kpi__card:hover {
  transform: translateY(-1px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-sm);
}
.erp-sales-kpi__card--crit::before { background: linear-gradient(180deg, #f43f5e, #dc2626) !important; }
.erp-sales-kpi__card--crit .erp-pr-kpi__icon { color: var(--crit) !important; background: var(--crit-soft) !important; }
.erp-sales-kpi__overdue {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--crit);
  color: #fff;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  vertical-align: 4px;
}

/* 수주/구매 카드 공통 — erp-pr-card 위에 얹는 부속 */
.erp-sales-card .erp-pr-card__head { gap: 6px; }
.erp-sales-card__partner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.erp-sales-card__partner-name {
  font-family: var(--kr);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.erp-sales-card__partner-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  font-weight: 600;
}
.erp-sales-card__partner-meta i { font-size: 9px; opacity: 0.7; }

.erp-sales-card__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-size: 12px;
}
.erp-sales-card__item-code {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--cyan-deep);
  white-space: nowrap;
}
.erp-sales-card__item-name {
  font-family: var(--kr);
  color: var(--text);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erp-sales-card__alloc {
  padding: 8px 0 4px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.erp-sales-card__alloc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 5px;
}
.erp-sales-card__alloc-lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.erp-sales-card__alloc-lbl i { color: var(--cyan); margin-right: 4px; }
.erp-sales-card__alloc-pct {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.erp-sales-card__alloc-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.erp-sales-card__alloc-fill {
  height: 100%;
  border-radius: 2px;
  transition: width var(--t-base) var(--ease);
}
.erp-sales-card__alloc-meta {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.erp-sales-card__alloc-lots {
  margin-left: auto;
  padding: 1px 6px;
  background: var(--cyan-soft);
  color: var(--cyan-deep);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.erp-sales-card__money {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.erp-sales-card__money-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  font-size: 11.5px;
}
.erp-sales-card__money-row--total {
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 2px;
}
.erp-sales-card__money-lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.erp-sales-card__money-val {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.erp-sales-card__money-row--total .erp-sales-card__money-lbl {
  color: var(--text);
  font-weight: 800;
}
.erp-sales-card__money-row--total .erp-sales-card__money-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.erp-purchase-card__krw {
  margin-top: -2px;
  opacity: 0.85;
}
.erp-purchase-card__krw .erp-sales-card__money-val {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

/* ===== 19e. 데모 미제공 모달 (Inbound/Outbound/Inventory 등) ===== */
.erp-demo-unavail__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-faint);
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}
.erp-demo-unavail__placeholder i {
  font-size: 56px;
  opacity: 0.3;
  margin-bottom: 12px;
}
.erp-demo-unavail__placeholder p {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.erp-demo-unavail {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: erp-demo-fade .25s var(--ease);
}
.erp-demo-unavail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 36, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.erp-demo-unavail__dialog {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.45), 0 8px 16px -4px rgba(0,0,0,0.18);
  text-align: center;
  animation: erp-demo-pop .28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.erp-demo-unavail__icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-soft), rgba(99,102,241,0.18));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-cyan);
}
.erp-demo-unavail__icon i {
  font-size: 28px;
  color: var(--cyan-deep);
}
.erp-demo-unavail__title {
  font-family: var(--kr);
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.erp-demo-unavail__module {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 14px;
  padding: 5px 12px;
  background: var(--cyan-soft);
  border: 1px solid var(--border-cyan);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan-deep);
  letter-spacing: 0.02em;
}
.erp-demo-unavail__module i { font-size: 10px; opacity: 0.7; }
.erp-demo-unavail__detail {
  font-family: var(--kr);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 22px;
}
.erp-demo-unavail__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.erp-demo-unavail__actions .c-btn {
  min-width: 120px;
}

@keyframes erp-demo-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes erp-demo-pop {
  from { transform: scale(0.9) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

@media (max-width: 640px) {
  .erp-demo-unavail__dialog {
    padding: 28px 22px 22px;
    border-radius: var(--r-md);
  }
  .erp-demo-unavail__title { font-size: 17px; }
  .erp-demo-unavail__detail { font-size: 12px; }
  .erp-demo-unavail__actions .c-btn { min-width: 0; flex: 1; }
}

/* ===== 19. Empty state ===== */
.c-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}
.c-empty i { font-size: 28px; color: var(--text-faint); margin-bottom: 10px; }
.c-empty__msg {
  font-family: var(--kr);
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 20. Mobile breakpoints ===== */
@media (max-width: 1024px) {
  :root { --side-w: 240px; }
  .erp-wrap { grid-template-columns: 1fr; }
  .erp-side {
    position: fixed;
    top: 0; left: 0;
    width: var(--side-w);
    transform: translateX(-100%);
    transition: transform var(--t-base) var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .erp-side.open { transform: translateX(0); }
  .erp-side.open + .erp-main .erp-side__backdrop,
  body.side-open .erp-side__backdrop {
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  body.side-open .erp-side__backdrop { display: block; }
  .erp-topbar__hamburger { display: inline-flex; }
  .erp-topbar__breadcrumb { display: none; }
  .erp-topbar__search { display: none; }
  .c-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .u-grid-3, .u-grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* 1024px 이하: statusbar 숨기고 bottombar로 대체 (사이드바 햄버거 접근) */
  .erp-bottombar { display: flex; }
  .erp-statusbar { display: none; }
}

@media (max-width: 640px) {
  :root { --content-pad: 12px; }
  /* 모바일: 하단 탭바 + 사이드바 드로어. statusbar는 가려서 탭바와 겹치지 않게. */
  .erp-bottombar { display: flex; }
  .erp-statusbar { display: none; }

  .erp-page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .erp-page-head__title { font-size: 20px; }
  .erp-page-head__sub { font-size: 11px; }
  .erp-page-head__actions { width: 100%; flex-wrap: wrap; }
  .erp-page-head__actions .c-btn { flex: 1; }
  .erp-line-picker { padding: 4px 8px; font-size: 11px; }

  /* KPI — 모바일 2열 + 패딩/타이포 축소 */
  .c-kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .c-kpi { padding: 12px; }
  .c-kpi__num { font-size: 22px; }
  .c-kpi__label { font-size: 13px; }

  /* 카드/테이블/그리드 — 1열 */
  .u-grid-2, .u-grid-3, .u-grid-4 { grid-template-columns: 1fr; }

  /* 테이블 모바일 카드 변환 (필요 페이지에 .c-table--mobile-cards 부여) */
  .c-table--mobile-cards thead { display: none; }
  .c-table--mobile-cards tbody,
  .c-table--mobile-cards tr,
  .c-table--mobile-cards td { display: block; width: 100%; }
  .c-table--mobile-cards tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  .c-table--mobile-cards td { border-bottom: none; padding: 4px 0; }

  /* 일반 테이블도 폰트/패딩 축소 */
  .c-table thead th { padding: 8px 10px; font-size: 11px; }
  .c-table tbody td { padding: 8px 10px; font-size: 12px; }

  /* 상태바 컴팩트 */
  .erp-statusbar { gap: 8px; padding: 0 10px; font-size: 11px; }
  .erp-statusbar__clock { font-size: 11px; }

  /* iOS 자동확대 방지 */
  .c-input, .c-select, .c-textarea { font-size: 16px; }

  /* 모바일 시트는 하단에서 솟아오름 */
  .c-sheet__panel {
    top: auto;
    width: 100%;
    max-height: 92vh;
    transform: translateY(100%);
    border-top-left-radius: var(--r-md);
    border-top-right-radius: var(--r-md);
  }
  .c-sheet.open .c-sheet__panel { transform: translateY(0); }

  /* 토스트 */
  .c-toast-wrap { top: 50px; right: 8px; left: 8px; }
  .c-toast { min-width: 0; max-width: none; width: 100%; }

  .erp-content { padding-bottom: var(--content-pad); }

  .u-hide-sm { display: none !important; }
}

/* ===== 20.5 모바일 스와이프 결재 ===== */
.approval-swipe-card {
  touch-action: pan-y;  /* 가로 스와이프는 JS가 처리, 세로는 페이지 스크롤 허용 */
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.approval-swipe-card:active { cursor: grabbing; }
.approval-swipe-card[data-swipe-action="approve"]::after,
.approval-swipe-card[data-swipe-action="reject"]::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.approval-swipe-card[data-swipe-action="approve"]::after {
  left: 16px;
  background: var(--run);
  content: '✓';
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.approval-swipe-card[data-swipe-action="reject"]::after {
  right: 16px;
  background: var(--crit);
  content: '×';
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}

/* 모바일에서만 swipe 힌트 */
@media (max-width: 640px) {
  .approval-swipe-card::before {
    content: '← 거부  ·  스와이프  ·  승인 →';
    display: block;
    font-family: var(--en);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
  }
  /* 일괄 결재 / 큰 결재는 스와이프 비활성 — 힌트 숨김 */
  .approval-swipe-card[data-can-swipe="0"]::before { display: none; }
  .approval-swipe-card[data-can-swipe="0"] { cursor: pointer; touch-action: auto; }
}

/* ===== 20.6 PC 권장 안내 (D-grade 모바일) ===== */
.erp-pc-only {
  display: none;
}
@media (max-width: 640px) {
  .erp-pc-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-md);
    margin: 16px 0;
  }
  .erp-pc-only i {
    font-size: 36px;
    color: var(--cyan);
    margin-bottom: 14px;
  }
  .erp-pc-only h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
  }
  .erp-pc-only p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 14px;
    line-height: 1.5;
  }
  .erp-pc-only__hint {
    font-family: var(--en);
    font-size: 11px;
    color: var(--text-dim);
    background: var(--surface-2);
    padding: 6px 12px;
    border-radius: var(--r-pill);
  }
  /* PC 전용 UI는 모바일에서 숨김 (선택적) */
  .erp-mobile-hide { display: none !important; }
}

/* ===== 21. prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== 22. Print ===== */
@media print {
  .erp-side, .erp-topbar, .erp-statusbar, .erp-bottombar,
  .erp-line-picker, .c-btn, .c-toast { display: none !important; }
  .erp-wrap { display: block; }
  .erp-content { padding: 0; }
  body { background: #fff; color: #000; }
  .c-card { border: 1px solid #999; box-shadow: none; }
  .c-table { border-collapse: collapse; }
  .c-table th, .c-table td { border: 1px solid #aaa; }
}
