/* 가맹 원장: 카드 단말기 가맹점 업무 도구 시연 (merchant) */

.mc {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F7F8FA;
  --text: #1A1D29;
  --muted: #5E6472;
  --faint: #8A90A0;
  --line: #DDE0E6;
  --line-strong: #B9BECA;
  --primary: #2B3A8C;
  --primary-press: #222F75;
  --primary-soft: #E8EBF8;
  --hl: #FFE45C;
  --hl-soft: #FFFBE0;
  --ok: #1E7B4A;
  --ok-soft: #E6F4EC;
  --warn: #9A5B00;
  --warn-line: #D9A21B;
  --warn-soft: #FFF1D6;
  --danger: #B3261E;
  --danger-soft: #FCE8E6;
  --violet: #5B3E9E;
  --violet-soft: #EFE9FA;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --r: 8px;
  --r-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
.mc {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:where(.mc) :where(p, h1, h2, h3, ol, ul, dl, dd) { margin: 0; }
:where(.mc) :where(ol, ul) { padding: 0; list-style: none; }
:where(.mc) :where(button, input, select) { font: inherit; color: inherit; }
.mc [hidden] { display: none !important; }
.mc :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mc-num { font-variant-numeric: tabular-nums; }
.mc-muted { color: var(--faint); font-weight: 500; }
.mc-ok { color: var(--ok); }
.mc-warn { color: var(--warn); }

/* 형광펜: 기본 정보에서 자동으로 채운 값 */
.mc-hl {
  padding: 0 2px;
  color: inherit;
  background: linear-gradient(transparent 50%, rgba(255, 228, 92, 0.95) 50%, rgba(255, 228, 92, 0.95) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.mc .demo-notice {
  order: -1;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #E9EBF0;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 머리 ─────────────────────────── */
.mc-head { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.mc-head__inner { display: flex; align-items: center; gap: 28px; max-width: 1240px; height: 60px; margin: 0 auto; padding: 0 24px; }
.mc-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; flex: none; }
.mc-nav { display: flex; align-self: stretch; gap: 4px; }
.mc-nav__item {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.mc-nav__item:hover { color: var(--text); }
.mc-nav__item.is-on { color: var(--primary); border-bottom-color: var(--primary); }
.mc-head__right { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.mc-people { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.mc-people__dots { display: inline-flex; }
.mc-people__dots i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-left: -6px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.mc-people__dots i:nth-child(1) { margin-left: 0; background: #DDE3F6; color: var(--primary); }
.mc-people__dots i:nth-child(2) { background: var(--ok-soft); color: var(--ok); }
.mc-people__dots i:nth-child(3) { background: var(--warn-soft); color: var(--warn); }

.mc-main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 24px 104px; }

/* ── 공통 ─────────────────────────── */
.mc-h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 26px; line-height: 34px; font-weight: 800; letter-spacing: -0.02em; }
.mc-h2 { font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.mc-lead { margin-top: 4px; color: var(--muted); }
.mc-meta { font-size: 12.5px; line-height: 18px; color: var(--muted); }
.mc-page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.mc-page__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.mc-btn--primary { background: var(--primary); color: #fff; }
.mc-btn--primary:hover { background: var(--primary-press); }
.mc-btn--secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.mc-btn--secondary:hover { background: var(--surface-2); border-color: var(--muted); }
.mc-btn--ghost { background: transparent; color: var(--primary); }
.mc-btn--ghost:hover { background: var(--primary-soft); }
.mc-btn--sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.mc-icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.mc-icon-btn:hover { background: var(--surface-2); color: var(--text); }
.mc-link { margin-right: auto; align-self: center; color: var(--primary); font-size: 13.5px; font-weight: 600; }

.mc-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mc-badge--ok { background: var(--ok-soft); color: var(--ok); }
.mc-badge--warn { background: var(--warn-soft); color: var(--warn); }
.mc-badge--danger { background: var(--danger-soft); color: var(--danger); }
.mc-badge--info { background: var(--primary-soft); color: var(--primary); }
.mc-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: middle;
  white-space: nowrap;
}
.mc-tag--ok { background: var(--ok-soft); color: var(--ok); }
.mc-tag--info { background: var(--primary-soft); color: var(--primary); }
.mc-tag--violet { background: var(--violet-soft); color: var(--violet); }
.mc-tag--new { background: var(--hl); color: var(--text); }

.mc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.mc-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.mc-card__foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; line-height: 18px; color: var(--muted); }
.mc-card__actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 16px; }
.mc-sub { padding: 14px 18px 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* ── 가맹점 조회 ─────────────────────────── */
.mc-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}
.mc-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(43, 58, 140, 0.12); }
.mc-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.mc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mc-chip {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.mc-chip span { margin-left: 2px; color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.mc-chip:hover { border-color: var(--text); }
.mc-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.mc-chip.is-on span { color: rgba(255, 255, 255, 0.75); }
.mc-count { margin: 16px 0 8px; font-size: 13px; color: var(--muted); }

.mc-list { display: flex; flex-direction: column; gap: 8px; }
.mc-row__link {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr) 104px;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.mc-row__link:hover { border-color: var(--primary); }
.mc-row.is-new .mc-row__link { background: var(--hl-soft); border-color: var(--warn-line); }
.mc-row__name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 16px; font-weight: 700; }
.mc-row__sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.mc-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.mc-stages li { padding: 6px 8px 7px; border-top: 3px solid #A8D5BA; border-radius: 4px; background: var(--surface-2); min-width: 0; }
.mc-stages span { display: block; font-size: 11.5px; line-height: 16px; color: var(--muted); }
.mc-stages b { display: block; font-size: 13px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-stages .is-warn { border-top-color: var(--warn-line); background: #FFF9EA; }
.mc-stages .is-warn b { color: var(--warn); }
.mc-row__last { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.mc-row__type { font-size: 13.5px; font-weight: 700; }
.mc-row__date { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mc-empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.mc-empty__title { color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 4px; }

/* ── 가맹점 화면 ─────────────────────────── */
.mc-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.mc-back:hover { color: var(--text); }
.mc-mhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.mc-mhead__biz { font-size: 13.5px; color: var(--muted); margin-bottom: 2px; }
.mc-presence { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 9px 12px; border-radius: var(--r); background: var(--primary-soft); font-size: 13.5px; }
.mc-presence__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(30, 123, 74, 0.18); flex: none; }
.mc-legend { margin: 6px 0 16px; font-size: 13px; color: var(--muted); }
.mc-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.mc-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mc-col .mc-card { scroll-margin-top: 80px; }

.mc-info > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 10px 18px; border-bottom: 1px dashed var(--line); }
.mc-info > div:last-child { border-bottom: 0; }
.mc-info dt { font-size: 13px; color: var(--muted); }
.mc-info dd { font-weight: 500; }
.is-flash { animation: mc-flash 1.8s ease-out; }

.mc-life { position: relative; padding: 14px 18px 14px 40px; }
.mc-life::before { content: ""; position: absolute; left: 24px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.mc-life__item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 6px 0; }
.mc-life__item::before { content: ""; position: absolute; left: -21px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--surface); }
.mc-life__item--close::before { background: var(--danger); }
.mc-life__item--reopen::before { background: var(--ok); }
.mc-life__label { font-weight: 700; }
.mc-life__item--close .mc-life__label { color: var(--danger); }
.mc-life__item--reopen .mc-life__label { color: var(--ok); }
.mc-life__date { color: var(--muted); font-size: 13.5px; }
.mc-life__note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.mc-sib__lead { padding: 14px 18px 8px; font-size: 13.5px; color: var(--muted); }
.mc-sib { display: block; margin: 0 18px 16px; padding: 12px 14px; border: 1px solid var(--violet-soft); border-radius: var(--r); background: #FAF8FE; color: inherit; text-decoration: none; }
.mc-sib:hover { border-color: var(--violet); }
.mc-sib strong { display: block; }
.mc-sib span { font-size: 13px; color: var(--muted); }

.mc-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 8px; padding: 16px 18px; }
.mc-doc {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-areas: "m l" "m s";
  align-items: center;
  column-gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.mc-doc__mark { grid-area: m; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; }
.mc-doc__label { grid-area: l; font-size: 14px; font-weight: 700; line-height: 20px; }
.mc-doc__state { grid-area: s; font-size: 12.5px; line-height: 18px; color: var(--muted); }
.mc-doc.is-got .mc-doc__mark { background: var(--ok); border-color: var(--ok); }
.mc-doc.is-got .mc-doc__mark::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mc-doc.is-got .mc-doc__state { color: var(--ok); }
.mc-doc.is-miss { border-style: dashed; border-color: #E2A29C; background: #FFF8F7; }
.mc-doc.is-miss .mc-doc__mark { border-color: var(--danger); }
.mc-doc.is-miss .mc-doc__state { color: var(--danger); font-weight: 700; }
.mc-doc.is-na { background: var(--surface-2); }
.mc-doc.is-na .mc-doc__label { color: var(--faint); }
.mc-doc.is-added .mc-doc__label::after { content: "추가"; margin-left: 6px; padding: 1px 5px; border-radius: 3px; background: var(--hl); font-size: 11px; }

.mc-alert { margin: 14px 18px 0; padding: 10px 12px; border: 1px solid #F1DDB0; border-radius: var(--r); background: #FFF9EA; font-size: 13.5px; }
.mc-regs { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 6px; padding: 0 18px; }
.mc-regs--pay { padding-bottom: 16px; }
.mc-reg {
  width: 100%;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
}
.mc-reg__name { font-size: 13.5px; font-weight: 700; }
.mc-reg__state { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.mc-reg.is-done { background: #F2F9F5; border-color: #C5E3D1; }
.mc-reg.is-done .mc-reg__state { color: var(--ok); font-weight: 600; }
.mc-reg.is-req { background: #FFF9EA; border-color: #F1DDB0; }
.mc-reg.is-req .mc-reg__state { color: var(--warn); font-weight: 700; }
.mc-reg:hover { border-color: var(--primary); }

.mc-works > li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.mc-works > li:last-child { border-bottom: 0; }
.mc-work__date { padding-top: 2px; font-size: 13px; color: var(--muted); }
.mc-work__body p { margin-top: 3px; }
.mc-work__auto { font-size: 12.5px; color: var(--muted); }
.mc-work__staff { padding-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.mc-work.is-new { animation: mc-newrow 2.4s ease-out; }
.mc-wtype { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; }

.mc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mc-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 18px; }
.mc-kv dt { font-size: 12.5px; color: var(--muted); }
.mc-kv dd { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mc-paperform { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mc-paperform select { height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); max-width: 100%; }
.mc-paper li { display: grid; grid-template-columns: 92px 56px minmax(0, 1fr); gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mc-paper li:last-child { border-bottom: 0; }
.mc-paper li.is-new { animation: mc-newrow 2.4s ease-out; }
.mc-paper__note { color: var(--muted); }
.mc-paper__empty { padding: 16px 18px; color: var(--warn); font-size: 13.5px; font-weight: 600; }

/* ── 대화상자·폼 ─────────────────────────── */
.mc-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(26, 29, 41, 0.3);
  overflow: auto;
}
.mc-dialog::backdrop { background: rgba(26, 29, 41, 0.45); }
.mc-dialog--map { width: min(680px, calc(100vw - 32px)); }
.mc-dialog--paper { width: min(640px, calc(100vw - 32px)); }
.mc-dialog__body { padding: 20px 24px; }
.mc-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mc-dialog__title { font-size: 19px; line-height: 27px; font-weight: 800; }
.mc-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.mc-dialog__note { margin-top: 14px; font-size: 12.5px; line-height: 18px; color: var(--muted); }
.mc-map li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mc-map a { color: var(--primary); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mc-map a:hover { text-decoration: underline; }

.mc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.mc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mc-field--wide { grid-column: 1 / -1; }
.mc-field__label { font-size: 13px; font-weight: 700; }
.mc-field__label em { margin-left: 4px; font-style: normal; font-size: 11.5px; color: var(--danger); }
.mc-field input, .mc-field select, .mc-select, .mc-input-sm, .mc-additem input, .mc-inline-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
}
.mc-field input:disabled { background: var(--surface-2); color: var(--muted); }
.mc-field input:focus, .mc-field select:focus, .mc-select:focus, .mc-input-sm:focus, .mc-additem input:focus, .mc-inline-input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43, 58, 140, 0.14); }
.mc-field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12); }
.mc-field__help { font-size: 12.5px; line-height: 18px; color: var(--muted); margin-top: 8px; }
.mc-field .mc-field__help { margin-top: 0; }
.mc-form__err { margin-top: 12px; color: var(--danger); font-size: 13.5px; font-weight: 700; }

.mc-dup { padding: 12px 14px; border: 1px solid #D8CCF0; border-radius: var(--r-lg); background: #F8F5FD; }
.mc-dup--ok { border-color: #C5E3D1; background: #F2F9F5; }
.mc-dup__title { font-weight: 800; font-size: 14px; }
.mc-dup p { font-size: 13px; }
.mc-dup__list { margin-top: 6px; }
.mc-dup__list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 3px 0; }
.mc-dup__list span { color: var(--muted); }
.mc-dup__list a { margin-left: auto; color: var(--primary); font-weight: 700; }
.mc-dup__opts { display: grid; gap: 6px; margin-top: 10px; }
.mc-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; }
.mc-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.mc-opt strong { display: block; font-size: 14px; }
.mc-opt small { display: block; font-size: 12.5px; line-height: 18px; color: var(--muted); }
.mc-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.mc-autofill { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface-2); }
.mc-autofill__title { margin-bottom: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mc-autofill__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.mc-autofill__list div { display: flex; gap: 8px; font-size: 13.5px; min-width: 0; }
.mc-autofill__list dt { flex: none; width: 70px; color: var(--muted); }

.mc-sheet { padding: 26px 28px; border: 1px solid var(--line-strong); background: #fff; box-shadow: 0 2px 10px rgba(26, 29, 41, 0.08); }
.mc-sheet__title { margin-bottom: 16px; text-align: center; font-size: 18px; font-weight: 800; letter-spacing: 0.02em; }
.mc-sheet__table { width: 100%; border-collapse: collapse; }
.mc-sheet__table th, .mc-sheet__table td { padding: 8px 10px; border: 1px solid var(--line-strong); text-align: left; font-size: 14px; }
.mc-sheet__table th { width: 116px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; }
.mc-sheet__text { margin: 14px 0; font-size: 12.5px; color: var(--muted); }
.mc-sheet__sign { display: flex; justify-content: flex-end; gap: 28px; flex-wrap: wrap; }
.mc-sheet__sign span { display: block; font-size: 12px; color: var(--muted); }
.mc-sheet__sign strong { font-size: 14px; }

/* ── 엑셀 불러오기 ─────────────────────────── */
.mc-steps { display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; margin-bottom: 20px; }
.mc-steps li { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 14px; font-weight: 700; }
.mc-steps li + li::before { content: ""; width: 32px; height: 2px; margin: 0 10px; background: var(--line); }
.mc-steps span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-strong); font-size: 12.5px; }
.mc-steps .is-done { color: var(--text); }
.mc-steps .is-done span { background: var(--primary); border-color: var(--primary); color: #fff; }
.mc-steps .is-cur { color: var(--primary); }
.mc-steps .is-cur span { border-color: var(--primary); background: var(--primary-soft); }

.mc-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 20px;
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
}
.mc-drop:hover, .mc-drop:focus-within { border-color: var(--primary); background: #FBFCFF; }
.mc-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mc-drop__title { font-size: 17px; font-weight: 800; }
.mc-drop__text { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.mc-step > .mc-sub { padding: 24px 0 10px; }
.mc-files { display: grid; gap: 8px; }
.mc-file { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.mc-file__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 800; }
.mc-file__body { flex: 1; min-width: 0; }
.mc-file__name { font-weight: 700; }
.mc-file__meta { font-size: 12.5px; color: var(--muted); }

.mc-banner { margin-bottom: 12px; padding: 12px 16px; border: 1px solid #C9D0EE; border-radius: var(--r-lg); background: var(--primary-soft); font-size: 14px; }
.mc-xl { overflow-x: auto; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mc-xl__grid { border-collapse: collapse; background: #fff; font-size: 12.5px; }
.mc-xl__grid th, .mc-xl__grid td { padding: 5px 10px; border: 1px solid #D3D7DF; white-space: nowrap; }
.mc-xl__grid th { min-width: 30px; background: #ECEEF2; color: var(--muted); font-size: 11.5px; font-weight: 700; text-align: center; }
.mc-xl__head { font-weight: 700; }
.mc-xl__grid .is-focus { background: #FFF5BF; }
.mc-xl__grid th.is-focus { background: var(--hl); color: var(--text); }
.mc-maptable { width: 100%; border-collapse: collapse; }
.mc-maptable th, .mc-maptable td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mc-maptable thead th { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.mc-maptable__col { width: 48px; text-align: center !important; color: var(--muted); font-weight: 800; }
.mc-maptable strong { display: block; font-size: 14px; }
.mc-maptable__sample { display: block; font-size: 12.5px; color: var(--muted); }
.mc-maptable td:nth-child(3) { width: 220px; }
.mc-maptable .mc-select { height: 38px; }
.mc-fixval { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.mc-maptable__why { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--primary-soft); font-size: 11.5px; color: var(--primary); }
.mc-maptable tr.is-unmapped td { background: #FFF9EA; }
.mc-mapfoot { display: grid; gap: 10px; }
.mc-mapfoot p { font-size: 13px; }
.mc-check { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--text); font-size: 13.5px; font-weight: 700; }
.mc-check input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.mc-inline-input { width: 180px; height: 34px; padding: 0 8px; }
.mc-stepnav { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.mc-analyzing { padding: 56px 20px; text-align: center; font-weight: 700; }
.mc-spinner { display: inline-block; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; border: 3px solid var(--primary-soft); border-top-color: var(--primary); animation: mc-spin 0.8s linear infinite; }
.mc-checklead { margin-bottom: 12px; color: var(--muted); }
.mc-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.mc-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.mc-tile__n { font-size: 24px; line-height: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mc-tile__label { font-size: 13px; font-weight: 700; color: var(--muted); }
.mc-tile--ok { border-left-color: var(--ok); }
.mc-tile--info { border-left-color: var(--primary); }
.mc-tile--warn { border-left-color: var(--warn-line); }
.mc-tile--danger { border-left-color: var(--danger); }
.mc-tile.is-on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: #FBFCFF; }
.mc-tile.is-on.mc-tile--ok { border-left-color: var(--ok); }
.mc-tile.is-on.mc-tile--warn { border-left-color: var(--warn-line); }
.mc-tile.is-on.mc-tile--danger { border-left-color: var(--danger); }
.mc-hint { margin: 12px 18px 0; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.mc-chk { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mc-chk__id strong { display: block; font-size: 14.5px; }
.mc-chk__id span { font-size: 12.5px; color: var(--muted); }
.mc-chk__info { font-size: 13.5px; color: var(--muted); }
.mc-chk__info--err { color: var(--danger); font-weight: 700; }
.mc-chk__diff { grid-column: 2 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mc-chk__field { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 56px; }
.mc-opt--inline { align-items: center; padding: 7px 10px; font-size: 13px; }
.mc-opt--inline input { margin: 0; }
.mc-chk__dup p { font-size: 13.5px; }
.mc-chk__select { width: 200px; height: 38px; }
.mc-chk__fix { display: flex; align-items: center; gap: 8px; }
.mc-input-sm { width: 170px; height: 36px; }
.mc-more { padding: 12px 18px; font-size: 13px; color: var(--muted); }

.mc-result { padding: 20px 22px; }
.mc-result__head { display: flex; align-items: center; gap: 14px; }
.mc-result__big { margin: 18px 0 8px; font-size: 18px; font-weight: 700; }
.mc-result__list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mc-result__list dt { font-weight: 700; }
.mc-result__list strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.mc-result__list span { font-size: 13px; color: var(--muted); }
.mc-result__preset { margin-top: 8px; padding: 10px 12px; border-radius: var(--r); background: var(--primary-soft); font-size: 13.5px; }

/* ── 항목 관리 ─────────────────────────── */
.mc-setgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.mc-card--wide { grid-column: 1 / -1; }
.mc-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.mc-item__label { display: block; font-weight: 700; }
.mc-item__meta { display: block; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mc-item.is-off .mc-item__label { color: var(--faint); }
.mc-item.is-new { background: var(--hl-soft); }
.mc-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; flex: none; }
.mc-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mc-switch__track { position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--line-strong); transition: background-color 0.15s; }
.mc-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.mc-switch input:checked + .mc-switch__track { background: var(--primary); }
.mc-switch input:checked + .mc-switch__track::after { transform: translateX(16px); }
.mc-switch input:focus-visible + .mc-switch__track { outline: 2px solid var(--primary); outline-offset: 2px; }
.mc-switch__text { width: 28px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mc-additem { display: flex; gap: 8px; padding: 12px 18px 16px; }
.mc-additem input { flex: 1; min-width: 0; height: 38px; }
.mc-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px 4px; }
.mc-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 17px; background: var(--surface); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.mc-pill__kind { font-size: 11px; font-weight: 600; color: var(--faint); }
.mc-pill.is-off { background: var(--surface-2); color: var(--faint); text-decoration: line-through; }
.mc-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; padding: 14px 18px 18px; }
.mc-preset { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.mc-preset div { flex: 1; min-width: 0; }
.mc-preset strong { display: block; font-size: 14px; }
.mc-preset span { font-size: 12.5px; color: var(--muted); }
.mc-log li { display: grid; grid-template-columns: 96px 64px minmax(0, 1fr); gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mc-log li:last-child { border-bottom: 0; }
.mc-log li > :first-child { color: var(--muted); }
.mc-log li.is-new { background: var(--hl-soft); }

/* ── 떠 있는 것 ─────────────────────────── */
.mc-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(26, 29, 41, 0.16);
  cursor: pointer;
}
.mc-fab:hover { border-color: var(--text); }
.mc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px 18px 12px 16px;
  border-left: 4px solid var(--hl);
  border-radius: var(--r-lg);
  background: var(--text);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 12px 32px rgba(26, 29, 41, 0.3);
  transform: translate(-50%, 8px);
  opacity: 0;
}
.mc-toast.is-in { transform: translate(-50%, 0); opacity: 1; transition: transform 0.2s, opacity 0.2s; }
.mc-toast[data-tone="info"] { border-left-color: #9AA6E0; }
.mc-toast[data-tone="warn"] { border-left-color: #F2B544; }
.mc-toast[data-tone="danger"] { border-left-color: #F2766E; }

@keyframes mc-flash { 0%, 30% { background: var(--hl); } 100% { background: transparent; } }
@keyframes mc-newrow { 0%, 40% { background: var(--hl-soft); } 100% { background: transparent; } }
@keyframes mc-spin { to { transform: rotate(360deg); } }

/* ── 좁은 화면 ─────────────────────────── */
@media (max-width: 1080px) {
  .mc-row__link { grid-template-columns: minmax(0, 1fr) 104px; }
  .mc-stages { grid-column: 1 / -1; grid-row: 2; }
  .mc-grid { grid-template-columns: minmax(0, 1fr); }
  .mc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mc-head__inner { flex-wrap: wrap; height: auto; gap: 0 12px; padding: 10px 16px 0; }
  .mc-nav { order: 3; width: calc(100% + 32px); margin: 6px -16px 0; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
  .mc-nav__item { height: 44px; padding: 0 10px; }
  .mc-people__n, .mc-people { display: none; }
  .mc-main { padding: 20px 16px 104px; }
  .mc-h1 { font-size: 23px; line-height: 31px; }
  .mc-page__actions { width: 100%; }
  .mc-page__actions .mc-btn { flex: 1; }
  .mc-btn { min-height: 44px; }
  .mc-btn--sm { min-height: 38px; }
  .mc-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }

  .mc-row__link { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px; }
  .mc-row__name { font-size: 15.5px; }
  .mc-stages { gap: 3px; }
  .mc-stages li { padding: 5px 6px 6px; }
  .mc-stages b { font-size: 12px; }
  .mc-stages span { font-size: 11px; }

  .mc-pair, .mc-form, .mc-setgrid, .mc-autofill__list { grid-template-columns: minmax(0, 1fr); }
  .mc-docs { grid-template-columns: 1fr 1fr; padding: 14px; }
  .mc-regs { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 14px; }
  .mc-works > li { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .mc-work__date { grid-column: 1; grid-row: 1; }
  .mc-work__staff { grid-column: 2; grid-row: 1; }
  .mc-work__body { grid-column: 1 / -1; }
  .mc-card__head { padding: 12px 14px; }
  .mc-card__foot { padding: 12px 14px; }

  .mc-dialog { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .mc-dialog__body { padding: 18px 16px 20px; }
  .mc-dialog__foot .mc-btn { flex: 1; }
  .mc-link { width: 100%; margin: 0 0 4px; }
  .mc-map li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mc-sheet { padding: 16px 14px; }
  .mc-sheet__table th { width: 84px; }

  .mc-steps li { font-size: 12.5px; gap: 5px; }
  .mc-steps li + li::before { width: 10px; margin: 0 5px; }
  .mc-steps li:not(.is-cur) { font-size: 0; gap: 0; }
  .mc-steps li:not(.is-cur) span { font-size: 12.5px; }
  .mc-file { flex-wrap: wrap; }
  .mc-file .mc-btn { width: 100%; }
  .mc-maptable thead { display: none; }
  .mc-maptable tr { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .mc-maptable td { padding: 0; border: 0; }
  .mc-maptable td:nth-child(3), .mc-maptable td:nth-child(4) { grid-column: 2; width: auto; }
  .mc-maptable tr.is-unmapped { background: #FFF9EA; }
  .mc-maptable tr.is-unmapped td { background: transparent; }
  .mc-inline-input { width: 100%; }
  .mc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-tile:first-child { grid-column: 1 / -1; }
  .mc-chk { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
  .mc-chk__info { grid-column: 1 / -1; grid-row: 2; }
  .mc-chk__diff, .mc-chk__dup { grid-column: 1 / -1; }
  .mc-chk__select { grid-column: 1 / -1; width: 100%; }
  .mc-chk__fix { grid-column: 1 / -1; }
  .mc-input-sm { flex: 1; width: auto; }
  .mc-stepnav .mc-btn { flex: 1; }
  .mc-result { padding: 18px 16px; }
  .mc-result__list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mc-log li { grid-template-columns: 88px minmax(0, 1fr); padding: 10px 14px; }
  .mc-log li > :last-child { grid-column: 1 / -1; }
  .mc-item, .mc-additem { padding-left: 14px; padding-right: 14px; }
  .mc-toast { bottom: 76px; }
  .mc-fab { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .mc *, .mc *::before, .mc *::after { animation: none !important; transition: none !important; }
}
