/* MASTER-OPS → MC-P(2026-11-12): 마스터 콘솔(회사 · 요금제 · 공지 · 기기 승인 · 모든 회사 공통 설정 · 기록)과 공지사항 화면의 운영 공지. 왼쪽 세로 막대 없음.
   새 화면 틀은 맨 아래 「MC-P」 블록(.mcp-*), 아래 .mc-* 규칙은 공지 편집기·이력·확인창 사유칸·운영 공지에 그대로 쓴다. */
html body #masterConsolePanel.admin-tab-content { padding: 24px 32px 192px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
#masterConsolePanel .mc-toolbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
#masterConsolePanel .mc-card { margin: 0 0 16px; overflow: hidden; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 12px; background: var(--sxr-card, #fff); box-shadow: var(--sxr-card-shadow, none); }
#masterConsolePanel .mc-card h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
#masterConsolePanel .mc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--sxr-line-soft, #ebebeb); }
#masterConsolePanel .mc-list { margin: 0; padding: 0; list-style: none; }
#masterConsolePanel .mc-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 20px; box-sizing: border-box; }
#masterConsolePanel .mc-row + .mc-row { border-top: 1px solid var(--sxr-line-soft, #ebebeb); }
#masterConsolePanel .mc-main { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
#masterConsolePanel .mc-main strong { font-size: 14px; font-weight: 600; word-break: keep-all; overflow-wrap: anywhere; }
#masterConsolePanel .mc-sub,
.mc-feed .mc-sub { font-size: 13px; font-weight: 400; color: var(--sxr-sub, #636a76); overflow-wrap: anywhere; }
#masterConsolePanel .mc-row-actions { display: flex; flex: none; flex-wrap: wrap; gap: 6px; }
#masterConsolePanel select,
#masterConsolePanel input[type="text"],
#masterConsolePanel textarea {
  min-height: 40px; margin: 0; padding: 8px 12px; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 8px;
  background-color: var(--sxr-card, #fff); color: inherit; font: inherit; font-size: 14px; box-sizing: border-box;
}
#masterConsolePanel .mc-row select { flex: 0 0 200px; width: 200px; max-width: 100%; }
#masterConsolePanel .mc-editor { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
#masterConsolePanel .mc-field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; font-size: 13px; font-weight: 600; }
#masterConsolePanel .mc-field legend { padding: 0; margin: 0 0 6px; font-weight: 600; }
#masterConsolePanel .mc-field textarea { resize: vertical; line-height: 1.5; }
#masterConsolePanel .mc-inline { display: flex; flex-wrap: wrap; gap: 8px 20px; }
#masterConsolePanel .mc-check { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; font-weight: 400; cursor: pointer; }
#masterConsolePanel .mc-tenant-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; max-height: 240px; overflow: auto; padding: 8px 0 0; }
#masterConsolePanel .mc-tenant-list[hidden] { display: none; }
#masterConsolePanel .mc-actions { display: flex; justify-content: flex-end; gap: 8px; }
#masterConsolePanel .mc-error:empty { display: none; }
#masterConsolePanel .mc-error { margin: 0; font-size: 13px; color: var(--ui-danger, #dc2626); }
#masterConsolePanel .mc-status { padding: 32px 20px; text-align: center; color: var(--sxr-sub, #636a76); font-size: 14px; }
#masterConsolePanel .mc-status button { margin-top: 12px; }
.mc-chip { display: inline-flex; flex: none; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.mc-chip-published { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.mc-chip-draft { background: #f2f4f7; border-color: #e4e7ec; color: #475467; }
.mc-chip-withdrawn { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.mc-chip-platform { background: #fff1e8; border-color: #ffd6b8; color: #b64000; }
html[data-theme="dark"] .mc-chip-published { background: rgba(34, 197, 94, .14); border-color: rgba(34, 197, 94, .32); color: #86efac; }
html[data-theme="dark"] .mc-chip-draft { background: rgba(148, 163, 184, .14); border-color: rgba(148, 163, 184, .28); color: #cbd5e1; }
html[data-theme="dark"] .mc-chip-withdrawn { background: rgba(248, 113, 113, .14); border-color: rgba(248, 113, 113, .3); color: #fca5a5; }
html[data-theme="dark"] .mc-chip-platform { background: rgba(251, 146, 60, .14); border-color: rgba(251, 146, 60, .3); color: #fdba74; }
#confirmModal .mc-reason-field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; font-size: 13px; font-weight: 600; }
#confirmModal .mc-reason-field small { font-size: 12px; font-weight: 400; color: var(--sxr-sub, #636a76); }
#confirmModal #confirmOkBtn:disabled { opacity: .5; cursor: not-allowed; }
#confirmModal .mc-reason-field input { min-height: 40px; padding: 0 12px; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 8px; font: inherit; font-size: 14px; background: var(--sxr-card, #fff); color: inherit; }
/* 공지사항 화면 맨 위 운영 공지 */
.mc-feed { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.mc-feed-item { border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 12px; background: var(--sxr-card, #fff); }
.mc-feed-item summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 48px; padding: 10px 16px; cursor: pointer; list-style: none; }
.mc-feed-item summary::-webkit-details-marker { display: none; }
.mc-feed-item summary strong { flex: 1 1 200px; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.mc-feed-item summary:focus-visible { outline: 2px solid var(--ui-focus-color, #b64000); outline-offset: -2px; border-radius: 12px; }
html[data-theme="dark"] .mc-feed-item summary:focus-visible { outline-color: #fff; }
.mc-feed-item p { margin: 0; padding: 0 16px 14px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  html body #masterConsolePanel.admin-tab-content { padding: 16px 16px 192px !important; }
  #masterConsolePanel .mc-row { flex-wrap: wrap; padding-left: 16px; padding-right: 16px; }
  #masterConsolePanel .mc-row select { flex: 1 1 100%; width: 100%; }
  #masterConsolePanel .mc-row-actions { width: 100%; }
  #masterConsolePanel .mc-head { padding-left: 16px; padding-right: 16px; }
}
/* r4 (VQA B M1): 전역 입력칸 규칙(높이 40·폭 100%·flex)이 라디오·체크박스에 걸려 라벨이 한 글자씩 꺾였다. */
html body #masterConsolePanel .mc-check { flex: 0 0 auto; align-self: flex-start; width: auto; max-width: 100%; }
html body #masterConsolePanel .mc-check > span { white-space: nowrap; }
html body #masterConsolePanel .mc-check input[type="radio"],
html body #masterConsolePanel .mc-check input[type="checkbox"] {
  flex: 0 0 auto !important; width: 18px !important; height: 18px !important; min-width: 18px !important; min-height: 18px !important;
  max-width: 18px !important; margin: 0 !important; padding: 0 !important; accent-color: var(--sxr-check, #374151); /* MC-P: HQ와 같은 진회색 체크 */
}
html body #masterConsolePanel .mc-tenant-list .mc-check > span { white-space: normal; overflow-wrap: anywhere; }
/* r4 (VQA B advisory): 확인창이 열려 있으면 떠 있는 「조회 스코프」 카드가 scrim 위로 올라오지 않게 한다. */
html body:has(#confirmModal:not(.hidden)) #myProfileScopeShell.soc-global-scope-overlay { z-index: 1 !important; }
/* PLANS B: 회사 수백 곳 — 공지 받는 회사 검색·칩, 출퇴근 연동 목록 검색. */
#masterConsolePanel .mc-tenant-picker { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 0; }
#masterConsolePanel .mc-tenant-picker[hidden] { display: none; }
#masterConsolePanel .mc-tenant-picker input[type="search"], #masterConsolePanel .mc-search-row input[type="search"] { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 8px; background: var(--sxr-card, #fff); color: inherit; font: inherit; font-size: 14px; box-sizing: border-box; }
#masterConsolePanel .mc-search-row { padding: 12px 20px; border-bottom: 1px solid var(--sxr-line-soft, #ebebeb); }
#masterConsolePanel .mc-pick-hits { margin: 0; padding: 4px; max-height: 240px; overflow: auto; list-style: none; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 8px; }
#masterConsolePanel .mc-pick-hits button { width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 400; text-align: left; cursor: pointer; }
#masterConsolePanel .mc-pick-hits button:hover { background: var(--sxr-line-soft, #f2f2f2); }
#masterConsolePanel .mc-pick-hits .mc-sub { display: block; padding: 8px 12px; }
#masterConsolePanel .mc-pick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
#masterConsolePanel .mc-pick-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 32px; padding: 0 4px 0 12px; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 999px; font-size: 13px; font-weight: 400; }
#masterConsolePanel .mc-pick-chip span { overflow-wrap: anywhere; }
#masterConsolePanel .mc-pick-chip button { min-width: 28px; min-height: 28px; border: 0; border-radius: 999px; background: none; color: inherit; font-size: 16px; cursor: pointer; }
#masterConsolePanel .mc-pick-hits button:focus-visible, #masterConsolePanel .mc-pick-chip button:focus-visible { outline: 2px solid var(--ui-focus-color, #b64000); outline-offset: 2px; }
@media (max-width: 767px) { #masterConsolePanel .mc-search-row { padding: 12px 16px; } }
/* PLANS F (N1): 플랜에서 꺼진 기능의 홈 카드는 빠진다 — 넓은 칸(660px 이상)에서는 남은 카드 수만큼 칸을 나눠 빈 자리를 두지 않는다
   (좁은 칸의 2열 규칙은 그대로). 꺼진 지점 표 열은 hidden 칸이라 열 폭 규칙(위치 기준)이 그대로 맞는다. */
@container sxrhome (min-width: 660px) {
  html body #homeView#homeView#homeView#homeView#homeView#homeView .sentrix-home-kpi-grid[data-kpi-count] { grid-template-columns: repeat(var(--sx-kpi-count, 4), minmax(0, 1fr)) !important; }
}
html body #homeView .sentrix-home-table :is(th, td)[hidden] { display: none !important; }

/* EVENT-GUEST 앱 설치 링크 카드: 긴 주소는 줄바꿈, 입력칸 옆 저장 */
#masterConsolePanel .mc-break { overflow-wrap: anywhere; word-break: break-all; }
#masterConsolePanel .mc-install-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#masterConsolePanel .mc-install-row input[type="url"] { flex: 1 1 240px; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 8px; background: var(--sxr-card, #fff); color: inherit; font: inherit; font-size: 14px; box-sizing: border-box; }

/* ==== MC-P (Mark 2026-11-12): 마스터 콘솔 P안 — 가운데 한 열, 줄 하나에 할 일 하나, 요금제 칩(막대 칸 = 등급) ====
   틀: 목록은 가운데 960px 한 열(.mcp-col), 테두리는 목록 하나(.mcp-list), 줄 높이 64px(.mcp-row), 소제목은 회색 한 줄(.mcp-sub).
   선택 표시는 바탕 채움 + 글자 색(왼쪽 막대 없음). 체크박스·스위치·버튼은 HQ 화면과 같은 부품(soc-switch-input, ds-btn). */
html body #masterConsolePanel.admin-tab-content { padding: 32px 32px 160px !important; }
#masterConsolePanel .mcp-col { width: 100%; max-width: 960px; margin: 0 auto; }
#masterConsolePanel .mcp-ic { width: 16px; height: 16px; flex: none; }
#masterConsolePanel .mcp-ic-lg { width: 22px; height: 22px; flex: none; }
#masterConsolePanel .mcp-list { margin: 0; overflow: hidden; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 12px; background: var(--sxr-card, #fff); box-shadow: var(--sxr-card-shadow, none); }
#masterConsolePanel .mcp-gap { margin-top: 16px; }
#masterConsolePanel .mcp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 300px) 132px; align-items: center; gap: 16px; min-height: 64px; padding: 10px 24px; box-sizing: border-box; border-bottom: 1px solid var(--sxr-line-soft, #ebebeb); color: var(--sxr-ink, #111827); }
#masterConsolePanel .mcp-list > .mcp-row:last-child, #masterConsolePanel .mcp-list > :last-child > .mcp-row:last-child { border-bottom: 0; }
#masterConsolePanel .mcp-head { min-height: 40px; padding-top: 0; padding-bottom: 0; background: var(--sxr-head, #f6f6f6); font-size: 13px; font-weight: 600; color: var(--sxr-sub, #6b7280); }
#masterConsolePanel .mcp-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#masterConsolePanel .mcp-name strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; line-height: 22px; overflow-wrap: anywhere; word-break: keep-all; }
#masterConsolePanel .mcp-name small { font-size: 13px; line-height: 18px; color: var(--sxr-sub, #6b7280); overflow-wrap: anywhere; }
#masterConsolePanel .mcp-state { font-size: 14px; font-weight: 600; color: var(--sxr-ink-2, #374151); overflow-wrap: anywhere; }
#masterConsolePanel .mcp-wrap .mcp-state { word-break: break-all; font-weight: 500; }
#masterConsolePanel .mcp-ctl { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
#masterConsolePanel .mcp-ctl .ds-btn { white-space: nowrap; }
#masterConsolePanel a.ds-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
#masterConsolePanel .mcp-ctl-pair { flex-wrap: wrap; }
#masterConsolePanel .mcp-fixed { font-size: 13px; font-weight: 600; color: var(--sxr-sub, #6b7280); white-space: nowrap; }
#masterConsolePanel .mcp-sub { padding: 10px 24px 8px; background: var(--sxr-head, #f6f6f6); border-bottom: 1px solid var(--sxr-line-soft, #ebebeb); font-size: 13px; font-weight: 600; color: var(--sxr-sub, #6b7280); }
#masterConsolePanel .mcp-sub[data-tone="mine"] { color: var(--sxr-accent-ink, #b64000); }
#masterConsolePanel .mcp-empty { padding: 28px 24px; text-align: center; font-size: 14px; color: var(--sxr-sub, #6b7280); border-bottom: 1px solid var(--sxr-line-soft, #ebebeb); }
#masterConsolePanel .mcp-status { padding: 40px 24px; text-align: center; font-size: 14px; color: var(--sxr-sub, #6b7280); border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 12px; background: var(--sxr-card, #fff); }
#masterConsolePanel .mcp-status .ds-btn { margin-top: 12px; }
#masterConsolePanel .mcp-note { margin: 12px 0 0; font-size: 13px; line-height: 20px; color: var(--sxr-sub, #6b7280); }
#masterConsolePanel .mcp-row .mcp-note, #masterConsolePanel .mcp-pager .mcp-note, #masterConsolePanel .mcp-bar .mcp-note { margin: 0; }
#masterConsolePanel .mcp-stale { margin: 0 0 12px; color: var(--sxr-sub, #6b7280); font-weight: 500; } /* r2: 조용한 한 줄 */
#masterConsolePanel .mcp-warn-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--sxr-warn-line, #f3cf86); border-radius: 12px; background: var(--sxr-warn-fill, #fffbf2); color: var(--sxr-ink-2, #374151); }
#masterConsolePanel .mcp-ok { color: var(--sxr-green, #15803d); }
#masterConsolePanel .mcp-act { color: var(--sxr-attention, #c2410c); }
#masterConsolePanel .mcp-risk { color: var(--sxr-red, #dc2626); }
#masterConsolePanel .mcp-muted { font-size: 13px; color: var(--sxr-sub, #6b7280); }
#masterConsolePanel .mcp-num { font-variant-numeric: tabular-nums; }
#masterConsolePanel .mcp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#masterConsolePanel .mcp-mine { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--sxr-accent-fill, #fff7ed); color: var(--sxr-accent-ink, #b64000); font-size: 12px; font-weight: 800; white-space: nowrap; }
html[data-theme="dark"] #masterConsolePanel .mcp-mine { background: rgba(251, 146, 60, .16); }
/* 찾기 칸 + 오른쪽 주 버튼 */
#masterConsolePanel .mcp-tools { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
#masterConsolePanel .mcp-tools-end { justify-content: flex-end; }
#masterConsolePanel .mcp-search { position: relative; display: flex; flex: 1 1 auto; align-items: center; min-width: 0; }
#masterConsolePanel .mcp-search .mcp-ic { position: absolute; left: 14px; color: var(--sxr-sub, #6b7280); pointer-events: none; }
html body #masterConsolePanel .mcp-search input[type="search"] { width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0 14px 0 40px; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 10px; background: var(--sxr-card, #fff); color: var(--sxr-ink, #111827); font: inherit; font-size: 15px; box-sizing: border-box; }
#masterConsolePanel .mcp-add { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; white-space: nowrap; text-decoration: none; }
/* 필터 칩: 고른 칩 = 주황 테두리 + 주황 글자 + 옅은 바탕 */
#masterConsolePanel .mcp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
#masterConsolePanel .mcp-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 999px; background: var(--sxr-card, #fff); color: var(--sxr-ink-2, #374151); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
#masterConsolePanel .mcp-chip b { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sxr-ink, #111827); }
#masterConsolePanel .mcp-chip.on { border-color: var(--sxr-accent, #ff6b00); background: var(--sxr-accent-fill, #fff7ed); color: var(--sxr-accent-ink, #b64000); }
#masterConsolePanel .mcp-chip.on b { color: inherit; }
#masterConsolePanel .mcp-chip:hover { border-color: var(--sxr-line-strong, #c8c8c8); }
/* 회사 목록 줄 */
#masterConsolePanel .mcp-list-row { grid-template-columns: minmax(0, 1fr) 76px 150px 130px 112px; }
#masterConsolePanel .mcp-cell { display: flex; align-items: center; min-width: 0; }
/* 쪽 번호(M16과 같은 모양) */
#masterConsolePanel .mcp-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 24px; }
#masterConsolePanel .mcp-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
#masterConsolePanel .mcp-pg { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--sxr-line-soft, #ebebeb); border-radius: 8px; background: var(--sxr-card, #fff); color: var(--sxr-ink, #111827); font: inherit; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; box-sizing: border-box; }
#masterConsolePanel .mcp-pg.on { border-color: var(--sxr-accent, #ff6b00); background: var(--sxr-accent, #ff6b00); color: #fff; }
#masterConsolePanel .mcp-pg:disabled { opacity: .45; cursor: default; }
#masterConsolePanel .mcp-pg-gap { color: var(--sxr-sub, #6b7280); }
/* 요금제 칩: 글자 + 막대 4칸(채운 칸 수 = 등급, A1·B2·C3·D4). 없음 = 빨간 점선. */
#masterConsolePanel .mcp-pb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 8px 0 9px; border: 1.5px solid var(--sxr-ink, #111827); border-radius: 8px; background: var(--sxr-card, #fff); color: var(--sxr-ink, #111827); font-size: 15px; font-weight: 800; line-height: 1; white-space: nowrap; box-sizing: border-box; }
#masterConsolePanel .mcp-pb-lg { height: 40px; gap: 8px; padding: 0 11px 0 12px; border-radius: 10px; font-size: 20px; }
#masterConsolePanel .mcp-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 15px; }
#masterConsolePanel .mcp-pb-lg .mcp-bars { height: 20px; gap: 3px; }
#masterConsolePanel .mcp-bars i { width: 3px; border-radius: 1px; background: var(--sxr-line-strong, #c8c8c8); }
#masterConsolePanel .mcp-pb-lg .mcp-bars i { width: 4px; }
#masterConsolePanel .mcp-bars i:nth-child(1) { height: 40%; } #masterConsolePanel .mcp-bars i:nth-child(2) { height: 60%; }
#masterConsolePanel .mcp-bars i:nth-child(3) { height: 80%; } #masterConsolePanel .mcp-bars i:nth-child(4) { height: 100%; }
#masterConsolePanel .mcp-bars i.on { background: var(--sxr-ink, #111827); }
#masterConsolePanel .mcp-pb-none { gap: 0; padding: 0 8px; border: 1.5px dashed var(--sxr-red, #dc2626); color: var(--sxr-red, #dc2626); font-size: 13px; }
#masterConsolePanel .mcp-pb-lg.mcp-pb-none { padding: 0 12px; font-size: 16px; }
/* 회사 상세: 뒤로 · 요금제 띠 · 탭 */
#masterConsolePanel .mcp-back { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin: 0 0 12px; padding: 0 4px; border: 0; background: none; color: var(--sxr-ink-2, #374151); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
#masterConsolePanel .mcp-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 0 0 16px; padding: 20px 24px; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 12px; background: var(--sxr-card, #fff); }
#masterConsolePanel .mcp-band h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--sxr-ink, #111827); overflow-wrap: anywhere; word-break: keep-all; }
#masterConsolePanel .mcp-band-meta { margin-top: 2px; word-break: keep-all; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; color: var(--sxr-ink-2, #374151); }
#masterConsolePanel .mcp-band-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--sxr-sub, #6b7280); }
#masterConsolePanel .mcp-band-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
#masterConsolePanel .mcp-band.warn { border-color: #fdba74; background: #fff7ed; }
#masterConsolePanel .mcp-band.warn .mcp-band-line { color: #9a3412; font-weight: 600; }
html[data-theme="dark"] #masterConsolePanel .mcp-band.warn { border-color: rgba(251, 146, 60, .45); background: rgba(251, 146, 60, .12); }
html[data-theme="dark"] #masterConsolePanel .mcp-band.warn .mcp-band-line { color: #fdba74; }
#masterConsolePanel .mcp-tabs { display: flex; gap: 4px; margin: 0 0 16px; overflow-x: auto; border-bottom: 1px solid var(--sxr-line, #dcdcdc); scrollbar-width: none; }
#masterConsolePanel .mcp-tab { flex: none; height: 44px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--sxr-sub, #6b7280); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
#masterConsolePanel .mcp-tab.on { border-bottom-color: var(--sxr-accent, #ff6b00); color: var(--sxr-ink, #111827); }
/* 요금제 기능 줄: 기능 | 요금제 기본 | 지금 | 버튼 */
#masterConsolePanel .mcp-feature-row { grid-template-columns: minmax(0, 1fr) 140px 200px 150px; }
#masterConsolePanel .mcp-base { font-size: 14px; color: var(--sxr-sub, #6b7280); white-space: nowrap; }
#masterConsolePanel .mcp-now { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
#masterConsolePanel .mcp-now.same { font-weight: 600; color: var(--sxr-ink-2, #374151); }
#masterConsolePanel .mcp-hr { text-decoration: none; }
/* 공지·기기 줄: 이름 | 칩 | 버튼 여럿 */
#masterConsolePanel .mcp-notice-row { grid-template-columns: minmax(0, 1fr) auto auto; }
#masterConsolePanel .mcp-device-row { grid-template-columns: minmax(0, 1fr) auto; }
/* 요금제 표 */
#masterConsolePanel .mcp-matrix { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 120px); align-items: stretch; }
#masterConsolePanel .mcp-matrix > div { display: flex; align-items: center; justify-content: center; min-height: 56px; border-bottom: 1px solid var(--sxr-line-soft, #ebebeb); font-size: 14px; }
#masterConsolePanel .mcp-matrix > .mcp-mx-f { justify-content: flex-start; padding-left: 24px; font-size: 15px; font-weight: 600; }
#masterConsolePanel .mcp-matrix > .mcp-mx-h { flex-direction: column; gap: 4px; min-height: 80px; padding: 10px 0; background: var(--sxr-head, #f6f6f6); }
#masterConsolePanel .mcp-matrix > .mcp-mx-f.mcp-mx-h { flex-direction: row; padding-left: 24px; font-size: 13px; color: var(--sxr-sub, #6b7280); } /* r8(VQA B L1): 머리 칸 「기능」도 줄 이름과 같은 x */
#masterConsolePanel .mcp-matrix > .mcp-mx-sub { grid-column: 1 / -1; justify-content: flex-start; min-height: 36px; padding-left: 24px; background: var(--sxr-head, #f6f6f6); font-size: 13px; font-weight: 600; color: var(--sxr-sub, #6b7280); }
#masterConsolePanel .mcp-mark { font-size: 16px; font-weight: 800; color: var(--sxr-muted, #9ca3af); }
#masterConsolePanel .mcp-mark.on { color: var(--sxr-ink, #111827); }
#masterConsolePanel .mcp-link { padding: 2px 4px; border: 0; background: none; color: var(--sxr-accent-ink, #b64000); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
#masterConsolePanel .mcp-bar { position: sticky; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px 12px 24px; border: 1px solid var(--sxr-line-strong, #c8c8c8); border-radius: 12px; background: var(--sxr-card, #fff); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
#masterConsolePanel .mcp-bar .ds-btn { margin-left: auto; text-decoration: none; }
/* 서랍: 오른쪽, 값 고르기 + 사유 */
#masterConsolePanel .mcp-scrim { position: fixed; inset: 0; z-index: 1200; background: rgba(17, 24, 39, .32); }
#masterConsolePanel .mcp-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1201; display: flex; flex-direction: column; width: min(440px, 100vw); background: var(--sxr-card, #fff); color: var(--sxr-ink, #111827); box-shadow: -12px 0 32px rgba(0, 0, 0, .16); }
#masterConsolePanel .mcp-drawer-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px 24px; }
#masterConsolePanel .mcp-drawer-head h2 { margin: 0; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
#masterConsolePanel .mcp-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
#masterConsolePanel .mcp-drawer-note { margin: 0; padding: 0 24px 12px; word-break: break-all; }
#masterConsolePanel .mcp-drawer-body { display: grid; align-content: start; gap: 0; padding: 0 0 20px; overflow-y: auto; border-top: 1px solid var(--sxr-line-soft, #ebebeb); }
#masterConsolePanel .mcp-drawer-body > .mcp-field, #masterConsolePanel .mcp-drawer-body > .ds-btn, #masterConsolePanel .mcp-drawer-body > .mc-error { margin: 16px 24px 0; }
#masterConsolePanel .mcp-drawer-body > .ds-btn { justify-self: start; }
#masterConsolePanel .mcp-opt { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 24px; border-bottom: 1px solid var(--sxr-line-soft, #ebebeb); font-size: 15px; font-weight: 600; cursor: pointer; }
#masterConsolePanel .mcp-opt.on { background: var(--sxr-accent-fill, #fff7ed); }
html body #masterConsolePanel .mcp-opt input[type="radio"] { flex: none; width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--sxr-check, #374151); }
#masterConsolePanel .mcp-opt small { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--sxr-sub, #6b7280); }
#masterConsolePanel .mcp-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
#masterConsolePanel .mcp-field small { font-size: 12px; font-weight: 400; color: var(--sxr-sub, #6b7280); }
html body #masterConsolePanel .mcp-field input { width: 100%; height: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 8px; background: var(--sxr-card, #fff); color: inherit; font: inherit; font-size: 15px; box-sizing: border-box; }
#masterConsolePanel .mcp-drawer-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding: 16px 24px; border-top: 1px solid var(--sxr-line-soft, #ebebeb); }
#masterConsolePanel .mcp-drawer-foot .ds-btn:disabled { opacity: .5; cursor: not-allowed; }
/* 숫자 배지(사이드바·아래 탭 「기기 승인」): C56 종 배지와 같은 빨간 알약 */
.mcp-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; border-radius: 999px; background: #dc2626; color: #fff; font: 800 11px/20px Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; font-variant-numeric: tabular-nums; box-sizing: border-box; }
/* 휴대폰 메뉴 줄 · 아래 탭 4칸 */
html body #masterConsolePanel .mcp-menu-row { display: flex; width: 100%; gap: 14px; margin: 0; border: 0; border-bottom: 1px solid var(--sxr-line-soft, #ebebeb); border-radius: 0; background: none; box-shadow: none; color: var(--sxr-ink, #111827); font: inherit; text-align: left; cursor: pointer; }
html body #masterConsolePanel .mcp-menu-row:last-child { border-bottom: 0; }
#masterConsolePanel .mcp-menu-row > .mcp-name { flex: 1 1 auto; }
#masterConsolePanel .mcp-nowrap { white-space: nowrap; }
#masterConsolePanel .mcp-phone-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sxr-line, #dcdcdc); background: var(--sxr-card, #fff); }
#masterConsolePanel .mcp-phone-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; padding: 4px 0; border: 0; border-radius: 10px; background: none; color: var(--sxr-sub, #6b7280); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
#masterConsolePanel .mcp-phone-tab.on { background: #f2efeb; color: #b64000; }
html[data-theme="dark"] #masterConsolePanel .mcp-phone-tab.on { background: #1b2b45; color: #fb923c; }
#masterConsolePanel .mcp-phone-tab .mcp-count { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; }
/* 초점 링 */
#masterConsolePanel :is(.mcp-chip, .mcp-pg, .mcp-tab, .mcp-back, .mcp-link, .mcp-icon-btn, .mcp-menu-row, .mcp-phone-tab, .mcp-hr):focus-visible { outline: 2px solid var(--sxr-focus, #111827); outline-offset: 2px; }
/* 좁은 폭: 줄을 접어 이름이 한 줄 다 쓰고, 상태·버튼은 아래 줄 */
@media (max-width: 1023px) {
  html body #masterConsolePanel.admin-tab-content { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)) !important; }
  #masterConsolePanel .mcp-row, #masterConsolePanel .mcp-list-row, #masterConsolePanel .mcp-feature-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; min-height: 68px; padding: 12px 16px; }
  #masterConsolePanel .mcp-row > .mcp-name { grid-column: 1 / -1; }
  #masterConsolePanel .mcp-list-row { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  #masterConsolePanel .mcp-feature-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  #masterConsolePanel .mcp-base::before { content: "기본 "; }
  #masterConsolePanel .mcp-chips { flex-wrap: nowrap; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
  #masterConsolePanel .mcp-chip { flex: none; }
  #masterConsolePanel .mcp-tools .mcp-add { padding: 0 14px; }
  #masterConsolePanel .mcp-head { display: none; }
  #masterConsolePanel .mcp-sub { padding-left: 16px; padding-right: 16px; }
  #masterConsolePanel .mcp-band { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  #masterConsolePanel .mcp-band-acts { grid-column: 1 / -1; justify-content: flex-start; }
  #masterConsolePanel .mcp-matrix { grid-template-columns: minmax(0, 1fr) repeat(4, 58px); }
  #masterConsolePanel .mcp-matrix > .mcp-mx-f, #masterConsolePanel .mcp-matrix > .mcp-mx-sub, #masterConsolePanel .mcp-matrix > .mcp-mx-f.mcp-mx-h { padding-left: 16px; font-size: 14px; }
  #masterConsolePanel .mcp-matrix .mcp-pb-lg { height: 28px; gap: 4px; padding: 0 6px; font-size: 14px; }
  #masterConsolePanel .mcp-matrix .mcp-pb-lg .mcp-bars { height: 12px; gap: 1.5px; }
  #masterConsolePanel .mcp-matrix .mcp-pb-lg .mcp-bars i { width: 2.5px; }
  #masterConsolePanel .mcp-pager { padding: 12px 16px; }
  #masterConsolePanel .mcp-bar { position: static; padding: 12px 16px; }
  #masterConsolePanel .mcp-matrix .mcp-link { font-size: 12px; white-space: nowrap; padding: 2px 0; }
  #masterConsolePanel .mcp-menu-row { min-height: 60px; }
  #masterConsolePanel .mcp-menu-row > .mcp-name { grid-column: auto; }
  html body.sx-mc-mode:not(.soc-desktop-shell) #bottomTabNav { display: none !important; }
}
/* 사이드바 모드: 회사 화면에서는 「마스터」 묶음에 「마스터 콘솔」 한 줄, 콘솔 안에서는 콘솔 메뉴 6개 + 「회사 화면으로」만. */
html body #menuSheetPanel#menuSheetPanel#menuSheetPanel#menuSheetPanel [data-master-console-section] [data-mc-when="console"] { display: none !important; }
html body.sx-mc-mode #menuSheetPanel#menuSheetPanel#menuSheetPanel#menuSheetPanel [data-master-console-section] [data-mc-when="console"] { display: flex !important; }
html body.sx-mc-mode #menuSheetPanel#menuSheetPanel#menuSheetPanel#menuSheetPanel [data-master-console-section] [data-mc-when="hq"] { display: none !important; }
html body.sx-mc-mode #menuSheetPanel#menuSheetPanel#menuSheetPanel#menuSheetPanel #mobileAdminShortcutList > :not([data-master-console-section]) { display: none !important; }
html body.sx-mc-mode #menuSheetPanel#menuSheetPanel#menuSheetPanel#menuSheetPanel [data-master-console-section] { margin-top: 8px !important; }
html body.sx-mc-mode #menuSheetPanel#menuSheetPanel#menuSheetPanel#menuSheetPanel [data-master-console-section] .mcp-exit { margin-top: 24px !important; color: var(--sxr-sub, #6b7280) !important; }
html body.sx-mc-mode #menuSheetPanel#menuSheetPanel#menuSheetPanel#menuSheetPanel [data-menu-item-key] .mcp-count { margin-left: auto; }
html body.sx-mc-mode #masterQueryScopeControl, html body.sx-mc-mode #myProfileScopeShell { display: none !important; }
/* 소제목·표 머리 글자: 회색 바탕(#f6f6f6) 위 4.5:1 이상(--sxr-sub는 4.47:1이라 한 단계 진하게). 다크는 --sxr-sub 그대로(7.3:1). */
html:not([data-theme="dark"]) #masterConsolePanel :is(.mcp-sub:not([data-tone="mine"]), .mcp-head, .mcp-mx-sub, .mcp-matrix > .mcp-mx-f.mcp-mx-h, .mcp-note) { color: #5b6270; }
/* r2(HR 교훈): 서랍이 열린 채 확인창이 뜨면 확인창이 늘 맨 위(서랍 1201 위). */
html body:has(#masterConsolePanel .mcp-drawer) #confirmModal { z-index: 1300 !important; }
/* r4: 행사 모드 「마지막 설정대로 꺼 둠」 — 회색 조용한 한 줄(오류 아님). */
#masterConsolePanel .mcp-name small.mcp-kept { color: var(--sxr-sub, #6b7280); }
/* r5: 행사 초대 문자 서랍 — 업체 고르기 칸은 입력칸과 같은 모양, 끊기 안내는 서랍 안쪽 여백. */
html body #masterConsolePanel .mcp-field select { width: 100%; height: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--sxr-line, #dcdcdc); border-radius: 8px; background: var(--sxr-card, #fff); color: inherit; font: inherit; font-size: 15px; box-sizing: border-box; }
#masterConsolePanel .mcp-drawer-body > .mcp-note { margin: 16px 24px 0; }
/* ==== end MC-P ==== */
