/* RMS Ops workspace UI */
:root {
  --rms-brand: #0f766e;
  --rms-blue: #1d84f4;
  --rms-ink: #212425;
  --rms-muted: #929596;
  --rms-line: #e9ebec;
  --rms-bg: #f5f6f7;
  --rms-side: 220px;
  --rms-top: 56px;
}

.rms-body {
  margin: 0;
  background: var(--rms-bg);
  color: var(--rms-ink);
  font-family: "Pretendard", "Malgun Gothic", sans-serif;
  font-size: 14px;
}

.rms-app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.rms-side {
  width: var(--rms-side);
  min-width: var(--rms-side);
  background: #fff;
  border-right: 1px solid var(--rms-line);
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.rms-side-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 10px;
  flex: 0 0 auto;
}
.rms-back {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--rms-ink);
  text-decoration: none;
  font-weight: 700;
}
.rms-back:hover { background: var(--rms-bg); text-decoration: none; }
.rms-side-label { font-size: 12px; color: var(--rms-muted); font-weight: 600; }
.rms-brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--rms-ink);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-width: 0;
}
.rms-brand-link:hover { text-decoration: none; opacity: 0.92; }
.rms-brand-product {
  font-size: 11px;
  font-weight: 700;
  color: var(--rms-muted);
  letter-spacing: -0.01em;
}
.rms-brand-product em {
  font-style: normal;
  color: var(--rms-brand);
  font-weight: 800;
}
.bizon-mark {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #374151;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.bizon-mark.is-compact { font-size: 10px; letter-spacing: 0.05em; }
.bizon-mark-i { color: #e10600; }
.rms-top-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--rms-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rms-menu {
  list-style: none;
  margin: 0;
  padding: 4px 0 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.rms-side-foot {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--rms-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.rms-side-copy {
  font-size: 10px;
  line-height: 1.35;
  color: #9ca3af;
}
.rms-menu .rms-group {
  padding: 16px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #b0b3b5;
  letter-spacing: 0.02em;
}
.rms-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: var(--rms-ink);
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.rms-menu a:hover { background: #fafbfc; }
.rms-menu a.active {
  background: #eef6ff;
  color: var(--rms-blue);
  border-left-color: var(--rms-blue);
}
.rms-menu-branch > a.active {
  background: #eef6ff;
  color: var(--rms-blue);
  border-left-color: var(--rms-blue);
}
.rms-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}
.rms-submenu a {
  padding: 8px 18px 8px 44px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  border-left-color: transparent;
}
.rms-submenu a:hover {
  background: #f8fafc;
  color: var(--rms-ink);
}
.rms-submenu a.active {
  background: #f0f7ff;
  color: var(--rms-blue);
  border-left-color: #93c5fd;
}
.rms-menu-branch:not(.is-open) .rms-submenu {
  display: none;
}
.rms-submenu .rms-sub-group {
  padding: 10px 18px 2px 44px;
  font-size: 11px;
  font-weight: 700;
  color: #b0b3b5;
  letter-spacing: 0.02em;
}
.rms-menu .rms-menu-disabled {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: #9aa3ad;
  font-weight: 600;
  border-left: 3px solid transparent;
  cursor: not-allowed;
  opacity: 0.72;
  user-select: none;
}
.rms-menu .ico {
  width: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
}

.rms-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.rms-top {
  height: var(--rms-top);
  min-height: var(--rms-top);
  background: #fff;
  border-bottom: 1px solid var(--rms-line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.rms-brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--rms-ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.rms-brand .bizon-mark { font-size: 13px; }
.rms-brand em { font-style: normal; color: var(--rms-ink); font-weight: 700; }

.rms-prop-switch { position: relative; flex: 1 1 auto; min-width: 220px; max-width: 420px; }
.rms-prop-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--rms-ink);
  cursor: pointer;
  text-align: left;
}
.rms-prop-btn:hover { border-color: #c9d1d6; }
.rms-prop-btn[aria-expanded="true"] {
  border-color: var(--rms-blue);
  box-shadow: 0 0 0 3px rgba(29, 132, 244, 0.12);
}
.rms-prop-btn .rms-prop-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--rms-ink);
}
.rms-prop-btn svg { flex: 0 0 auto; }
.rms-prop-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  width: auto;
  min-width: 0;
  max-width: none;
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(33, 36, 37, 0.14);
  z-index: 50;
  overflow: hidden;
  box-sizing: border-box;
}
.rms-prop-panel[hidden] { display: none !important; }
.rms-prop-panel input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid var(--rms-line);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  background: #fafbfc;
}
.rms-prop-panel input:focus { outline: none; background: #fff; }
.rms-prop-list {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rms-prop-list a {
  display: block;
  padding: 9px 12px;
  color: var(--rms-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rms-prop-list a:hover { background: #f5f8fc; color: var(--rms-blue); }
.rms-prop-list a.is-current { background: #eef5ff; color: var(--rms-blue); }
.rms-prop-list a[hidden] { display: none; }

.rms-top-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rms-muted);
  font-size: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rms-pill {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.rms-pill.ok { background: #e7f6ee; color: #1f7a4d; }
.rms-pill.off { background: #eceff3; color: #667; }

.rms-content {
  flex: 1;
  padding: 20px 28px 48px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.rms-body:has(.guide-frame-wrap) {
  height: 100dvh;
  overflow: hidden;
}
.rms-app:has(.guide-frame-wrap) {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}
.rms-main-col:has(.guide-frame-wrap) {
  min-height: 0;
  overflow: hidden;
}
.rms-content:has(.guide-frame-wrap) {
  padding: 12px 16px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.guide-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(18, 32, 39, 0.08);
  background: #eef2f3;
}
.guide-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #eef2f3;
}
.rms-content:has(.sc-page),
.rms-content:has(.map-workbench),
.rms-content:has(.rms-search-panel) {
  padding: 16px 20px 40px;
}

/* —— 판매 캘린더 —— */
.sc-page { width: 100%; }
.sc-head { margin-bottom: 12px; }
.sc-head h1 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.sc-head .sub { margin: 0; color: var(--rms-muted); font-size: 13px; }

.sc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
}
.sc-month-nav { display: flex; align-items: center; gap: 8px; }
.sc-nav-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  color: var(--rms-ink);
  font-size: 20px;
  text-decoration: none;
  background: #fff;
}
.sc-nav-btn:hover { border-color: var(--rms-blue); color: var(--rms-blue); text-decoration: none; }
.sc-month-label { font-size: 18px; font-weight: 800; min-width: 130px; text-align: center; }
.sc-today {
  margin-left: 4px;
  padding: 8px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  color: var(--rms-ink);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.sc-today:hover { border-color: var(--rms-blue); color: var(--rms-blue); text-decoration: none; }
.sc-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.sc-hist-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.sc-hist-field { display: block; min-width: 0; }
.sc-hist-field input[type="date"],
.sc-hist-field select {
  min-width: 140px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font: inherit;
  color: var(--rms-ink);
  background: #fff;
}
.sc-hist-field select { min-width: 160px; }
.sc-hist-table-wrap {
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  overflow: hidden;
}
.sc-hist-table { margin: 0; }
.sc-hist-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--rms-muted);
}
.sc-hist-empty {
  text-align: center !important;
  color: var(--rms-muted);
  padding: 48px 16px !important;
}
.sc-hist-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.sc-hist-page-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--rms-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rms-ink);
  font-size: 16px;
  cursor: pointer;
}
.sc-hist-page-btn:disabled { opacity: 0.4; cursor: default; }
.sc-hist-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: #1d84f4;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.sc-history-modal {
  width: min(980px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}
.sc-history-modal .rms-modal-body { max-height: min(70vh, 720px); overflow: auto; }
.sc-history-modal .rms-modal-card { width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sc-filter label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
}
.sc-filter select {
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font: inherit;
  color: var(--rms-ink);
  background: #fff;
}

.sc-legend {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--rms-muted);
  font-size: 12px;
  font-weight: 600;
}
.sc-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: -1px;
}
.sc-dot.open { background: #e8f3ff; border: 1px solid #1d84f4; }
.sc-dot.closed { background: #f2f3f4; border: 1px solid #bec1c2; }
.sc-dot.none { background: #fff; border: 1px dashed #bec1c2; }
.sc-dot.mixed { background: #fef9c3; border: 1px solid #ca8a04; }
.sc-dot.gap { background: #fff7ed; border: 1px solid #f97316; }

.sc-gap-panel {
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
}
.sc-gap-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.sc-gap-panel-head strong { font-size: 14px; }
.sc-gap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sc-gap-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #fdba74;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.sc-gap-chip:hover { border-color: #f97316; text-decoration: none; }
.sc-gap-chip.is-active { border-color: #ea580c; box-shadow: inset 0 0 0 1px #ea580c; background: #ffedd5; }
.sc-gap-chip .d { font-size: 13px; font-weight: 700; }
.sc-gap-chip .m { font-size: 11px; color: var(--rms-muted); }
.sc-gap-tag {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 10px;
  font-weight: 700;
}
.ops-gap-row { cursor: pointer; }
.ops-gap-row:hover td { background: #fff7ed; }
.mo-toolbar { margin-bottom: 14px; }
.mo-daily-wrap { max-height: none; }
.mo-daily-wrap tr.is-weekend td { background: #fafbfc; }

.sc-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
}
.sc-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}
.sc-table thead th {
  padding: 12px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--rms-ink);
  background: #fafbfc;
  border-bottom: 1px solid var(--rms-line);
}
.sc-table thead th.sun { color: #0f766e; }
.sc-table thead th.sat { color: #1d84f4; }

.sc-day {
  vertical-align: top;
  border-right: 1px solid var(--rms-line);
  border-bottom: 1px solid var(--rms-line);
  padding: 0;
  min-height: 180px;
  background: #fff;
}
.sc-day:last-child { border-right: none; }
.sc-day.out { background: #f7f8f9; }
.sc-day.today { background: #eef7ff; }
.sc-day.past { opacity: 0.72; }
.sc-day.is-gap { background: #fff7ed; box-shadow: inset 0 0 0 2px #f97316; }
.sc-day.is-focus { box-shadow: inset 0 0 0 3px #ea580c; background: #ffedd5; }
.sc-day.is-gap.today { background: #fff7ed; }

.sc-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 6px;
  border-bottom: 1px solid #f0f1f2;
  position: relative;
}
.sc-day-check {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1d84f4;
  box-shadow: 0 1px 3px rgba(29, 132, 244, 0.35);
}
.sc-day-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sc-day.is-selected .sc-day-check { display: block; }
.sc-day.is-selected .sc-day-sum { padding-right: 22px; }
.sc-date { font-weight: 800; font-size: 15px; }
.sc-date.sun { color: #0f766e; }
.sc-date.sat { color: #1d84f4; }
.sc-day-sum { font-size: 11px; color: var(--rms-muted); white-space: nowrap; }

.sc-rooms {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.sc-room {
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}
.sc-room.open { background: #f7fbff; border-color: #cfe3fb; }
.sc-room.closed { background: #f7f8f9; }
.sc-room.mixed { background: #fffbeb; border-color: #fde68a; }
.sc-room.none { border-style: dashed; opacity: 0.7; }
.sc-page.hide-empty-rooms .sc-room.none,
.sc-page.hide-empty-rooms .sc-room[data-empty="1"] { display: none; }
.sc-room-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.sc-room-link:hover { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2); }
.sc-room-unit .sc-room-unit-link {
  display: block;
  margin: 2px 0 4px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.sc-room-unit .sc-room-unit-link:hover { color: #1d4ed8; text-decoration: underline; }
.sc-mini-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.sc-mini-tag.hb { background: #ede9fe; color: #6d28d9; }
.sc-mini-tag.hold { background: #ffedd5; color: #c2410c; }
.sc-mini-tag.ad { background: #dbeafe; color: #1d4ed8; }
.sc-mini-tag.promo { background: #fce7f3; color: #be185d; }
.sc-room-status-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.sc-offer-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 4px;
  line-height: 0;
}
.sc-offer-ico svg { display: block; }
.sc-offer-ico.ad { background: #dbeafe; color: #1d4ed8; }
.sc-offer-ico.promo { background: #fce7f3; color: #be185d; }
.ad-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 20px; }
.ad-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--rms-line, #e5e7eb); border-radius: 10px; padding: 14px; background: #fff; min-width: 0; }
.ad-card-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 0; }
.ad-card-title { font-size: 14px; font-weight: 700; line-height: 1.35; min-width: 0; }
.ad-card-title .rms-name-link { display: inline; }
.ad-card-money { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
.ad-card .muted { margin: 0; font-size: 12px; line-height: 1.4; }
.ad-home-list { margin: 4px 0 20px; }
.ad-home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.ad-home-head .rms-section-title { margin: 0; }
.offer-raw {
  margin: 12px 0 0;
  padding: 12px;
  max-height: 360px;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.offer-detail.is-popup { padding-bottom: 8px; }
.offer-detail .rsv-detail-hero { align-items: center; }
.offer-detail .rsv-detail-hero-price .v { font-size: 22px; }
.offer-detail .rsv-detail-hero-price .muted { margin: 6px 0 0; font-size: 12px; font-weight: 600; }
.offer-detail .rsv-detail-item > span { flex: 0 0 88px; width: 88px; }
.offer-detail .mono { overflow-wrap: anywhere; word-break: break-all; font-variant-numeric: tabular-nums; }
.offer-detail .table-wrap { overflow-x: auto; margin: 0 -4px; }
.offer-detail .rms-table { margin: 0; }
.offer-detail details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--rms-ink);
  list-style-position: outside;
}
.offer-detail details summary::-webkit-details-marker { color: var(--rms-muted); }
.rms-section-title { font-size: 16px; margin: 20px 0 10px; }
.sc-mini-tag.ui-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 18px;
  padding: 0;
  background: #e0f2fe;
  color: #0369a1;
  border: 0;
  border-radius: 4px;
  cursor: default;
  line-height: 0;
}
.sc-mini-tag.ui-edit .sc-ui-edit-icon { display: block; flex-shrink: 0; }
button.sc-mini-tag.ui-edit { cursor: pointer; }
button.sc-mini-tag.ui-edit:hover { background: #bae6fd; color: #075985; }
.sc-room.has-ui-edit { box-shadow: inset 0 0 0 1px rgba(3, 105, 161, 0.25); }
.sc-legend-note { font-size: 12px; color: #64748b; margin-left: 2px; }
.sc-wrap-week .sc-day { min-height: 220px; vertical-align: top; }
.sc-room.is-editable { cursor: pointer; }
.sc-room.is-editable:hover { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25); }
.sc-room.is-editable:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
.sc-room-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  min-height: 24px;
}
.sc-room .sc-status-toggle {
  flex: 1;
  width: auto;
  min-width: 0;
  justify-content: space-between;
}
.sc-room .sc-status-text { min-width: 44px; font-size: 12px; }
.sc-room .sc-switch { width: 40px; height: 22px; }
.sc-room .sc-switch-thumb { width: 18px; height: 18px; }
.sc-room .sc-switch input:checked + .sc-switch-track .sc-switch-thumb { transform: translateX(18px); }
.sc-room.is-saving { opacity: 0.65; pointer-events: none; }
.sc-room.is-error { box-shadow: 0 0 0 2px rgba(226, 85, 85, 0.35); }
.sc-dot.selected { background: #2563eb; }
.sc-select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #cfe3fb;
  border-radius: 12px;
  background: #f5f9ff;
}
.sc-select-info { display: grid; gap: 4px; min-width: 0; }
.sc-select-dates { color: var(--rms-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.sc-select-actions { display: flex; gap: 8px; flex-shrink: 0; }
.sc-day.is-selectable { cursor: pointer; }
.sc-price-modal {
  width: min(920px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
}
.sc-price-summary {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f4f6;
  font-weight: 700;
  font-size: 13px;
}
.sc-bulk-delta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sc-scope-btns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--rms-border);
}
.sc-scope-btns .rms-btn.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.sc-bulk-delta input,
.sc-money-input {
  width: 120px;
  border: 1px solid var(--rms-border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sc-price-table-wrap { max-height: min(55vh, 520px); overflow: auto; }
.sc-price-table .sc-price-input,
.sc-price-table .sc-open-select {
  width: 100%;
  min-width: 110px;
  border: 1px solid var(--rms-border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.sc-current-price {
  color: var(--rms-muted);
  white-space: nowrap;
}
.sc-apply-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 140px;
}
.sc-apply-price .sc-price-input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sc-apply-price .u {
  color: var(--rms-muted);
  font-size: 12px;
  font-weight: 700;
}
.sc-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  user-select: none;
}
.sc-status-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 52px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.sc-status-text::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.sc-status-toggle[data-open="1"] .sc-status-text {
  color: #1aa7a7;
}
.sc-status-toggle[data-open="0"] .sc-status-text {
  color: #e25555;
}
.sc-status-toggle[data-open="1"] .sc-status-text-off,
.sc-status-toggle[data-open="0"] .sc-status-text-on {
  display: none;
}
.sc-status-toggle[data-mixed="1"] .sc-status-text-on {
  display: inline-flex;
  color: #a16207;
}
.sc-status-toggle[data-mixed="1"] .sc-status-text-off {
  display: none;
}
.sc-switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.sc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}
.sc-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c4c4c4;
  transition: background .18s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.sc-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform .18s ease;
}
.sc-switch input:checked + .sc-switch-track {
  background: #26b9b9;
}
.sc-switch input:checked + .sc-switch-track .sc-switch-thumb {
  transform: translateX(20px);
}
.sc-switch input:focus-visible + .sc-switch-track {
  outline: 2px solid rgba(38, 185, 185, 0.45);
  outline-offset: 2px;
}
.sc-bulk-config { display: grid; gap: 14px; margin-bottom: 14px; }
.sc-bulk-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; }
.sc-bulk-label { font-weight: 700; padding-top: 8px; }
.sc-bulk-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-bulk-weekdays .sc-wd { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; }
.sc-bulk-rooms { min-width: min(360px, 100%); width: 360px; border: 1px solid var(--rms-border); border-radius: 8px; padding: 6px; }
.sc-bulk-room-actions { display: flex; flex-direction: column; gap: 6px; }

.sc-bulk-page .rms-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sc-bulk-filters {
  margin-bottom: 14px;
  padding: 14px 16px;
}
.sc-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
}
.sc-bulk-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.sc-bulk-field-period {
  flex: 0 1 280px;
}
.sc-bulk-field-days {
  flex: 1 1 420px;
}
.sc-bulk-field-rooms {
  flex: 0 1 260px;
}
.sc-bulk-field-action {
  flex: 0 0 auto;
}
.sc-bulk-k {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--rms-muted);
}
.sc-bulk-k-spacer {
  visibility: hidden;
}
.sc-bulk-field-period .drp-wrap,
.sc-bulk-field-period .drp-control,
.sc-bulk-field-period .drp-trigger-bar {
  width: 100%;
  min-width: 0;
}
.sc-bulk-field-period .drp-trigger-bar {
  height: 38px;
  border-radius: 8px;
  background: #fff;
}
.sc-bulk-field-period .drp-trigger {
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 700;
}
.sc-wd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sc-wd-presets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--rms-line);
  border-radius: 999px;
  background: #f7f8f9;
}
.sc-wd-preset {
  border: 0;
  background: transparent;
  color: var(--rms-muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sc-wd-preset:hover {
  color: var(--rms-ink);
  background: #fff;
}
.sc-wd-preset.is-active {
  color: var(--rms-blue);
  background: #fff;
  box-shadow: 0 0 0 1px #93c5fd;
}
.sc-wd-chips {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
}
.sc-wd-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--rms-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rms-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
}
.sc-wd-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sc-wd-chip.is-on {
  color: var(--rms-blue);
  border-color: #93c5fd;
  background: #eef6ff;
}
.sc-wd-chip.is-sun.is-on {
  color: var(--rms-brand, #e25555);
  border-color: #f3c0c4;
  background: #fff5f5;
}
.sc-wd-chip:hover { border-color: #93c5fd; }
.sc-bulk-field-rooms .sc-room-dd {
  width: 100%;
  min-width: 220px;
  max-width: 320px;
}
.sc-bulk-field-action .rms-btn {
  height: 38px;
  padding: 0 16px;
  white-space: nowrap;
}
.sc-bulk-result {
  padding: 0;
  overflow: hidden;
}
.sc-bulk-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rms-line);
  background: #f7f8f9;
  position: sticky;
  top: 0;
  z-index: 5;
}
.sc-bulk-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sc-bulk-meta {
  color: var(--rms-muted);
  font-size: 13px;
  font-weight: 600;
}
.sc-bulk-delta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.sc-bulk-delta-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--rms-muted);
}
.sc-bulk-delta-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  background: #fff;
}
.sc-bulk-delta-input .sc-money-input {
  width: 96px;
  border: 0;
  padding: 0;
  background: transparent;
  outline: none;
}
.sc-bulk-delta-unit {
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
}
.sc-bulk-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px 0;
}
.sc-bulk-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--rms-blue);
  font-size: 12px;
  font-weight: 800;
}
.sc-bulk-chip.muted {
  background: #f3f4f6;
  color: var(--rms-muted);
}
.sc-bulk-table-wrap {
  max-height: min(62vh, 640px);
  overflow: auto;
  margin: 12px 14px 14px;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
}
.sc-bulk-table-wrap .sc-price-table {
  margin: 0;
}
.sc-bulk-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}
.sc-bulk-room-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sc-bulk-room-cell strong {
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-bulk-empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 28px 12px;
  color: var(--rms-muted);
}
.sc-bulk-empty strong {
  color: var(--rms-ink);
  font-size: 14px;
}
.sc-bulk-empty span {
  font-size: 13px;
}
.sc-bulk-empty em {
  font-style: normal;
  font-weight: 800;
  color: var(--rms-blue);
}
.sc-bulk-result .sc-edit-hint,
.sc-bulk-result .rms-modal-error {
  margin: 0 14px 14px;
}
@media (max-width: 900px) {
  .sc-bulk-field-period,
  .sc-bulk-field-days,
  .sc-bulk-field-rooms {
    flex: 1 1 100%;
  }
  .sc-bulk-field-rooms .sc-room-dd {
    max-width: none;
  }
  .sc-bulk-page .rms-page-head { flex-direction: column; }
  .sc-wd-chips { flex-wrap: wrap; }
}
.sc-room-dd-row { align-items: center; gap: 10px; }
.sc-room-dd {
  position: relative;
  min-width: min(360px, 100%);
  width: 360px;
}
.sc-room-dd-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--rms-ink);
  cursor: pointer;
  text-align: left;
}
.sc-room-dd.is-open .sc-room-dd-trigger,
.sc-room-dd-trigger:hover {
  border-color: #c5d8f7;
  background: #f8fbff;
}
.sc-room-dd-caret {
  color: var(--rms-muted);
  font-size: 12px;
  line-height: 1;
}
.sc-room-dd-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}
.sc-room-dd-tools {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eef2f6;
  background: #fafbfc;
}
.sc-room-dd-tools input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}
.sc-room-dd-list {
  max-height: 260px;
  overflow: auto;
}
.sc-room-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--rms-ink);
}
.sc-room-dd-item:last-child { border-bottom: 0; }
.sc-room-dd-item:hover { background: #f8fbff; }
.sc-room-dd-item input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1d84f4;
  flex-shrink: 0;
}
.sc-room-dd-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-room-dd-empty {
  padding: 16px 12px;
  font-size: 13px;
  color: var(--rms-muted);
}
.sc-edit-modal {
  width: min(420px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
}
.sc-edit-meta { margin: 0 0 12px; color: var(--rms-muted); font-weight: 600; }
.sc-edit-field { display: grid; gap: 6px; margin-bottom: 12px; }
.sc-edit-field span { font-size: 13px; font-weight: 700; }
.sc-edit-field input,
.sc-edit-field select {
  width: 100%;
  border: 1px solid var(--rms-border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}
.sc-edit-hint { margin: 8px 0 0; color: var(--rms-muted); font-size: 12px; line-height: 1.45; }
.sc-badge {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}
.sc-badge.open { background: #e8f3ff; color: #1d84f4; }
.sc-badge.closed { background: #e9ebec; color: #5b5e63; }
.sc-badge.mixed { background: #fef9c3; color: #a16207; }
.sc-badge.none { background: #fff; color: #929596; border: 1px dashed #bec1c2; }
.sc-room-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  word-break: keep-all;
}
.sc-room-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
}
.sc-room-price .k { color: var(--rms-muted); font-weight: 600; }
.sc-room-price .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-empty-rooms {
  color: var(--rms-muted);
  font-size: 12px;
  text-align: center;
  padding: 16px 4px;
}

/* dashboard */
.rms-notice {
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.rms-notice.warn { background: #fff8f0; border-color: #f0d48a; }
.rms-notice.ok { background: #f3faf5; border-color: #b7e3c8; }
.rms-notice strong { font-size: 14px; }
.rms-notice p { margin: 4px 0 0; color: var(--rms-muted); font-size: 13px; }

.rms-search-panel {
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rms-search-panel.compact { gap: 0; }
.rms-search-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rms-ink);
}
.rms-search-radios label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rms-search-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rms-search-select {
  flex: 0 0 auto;
  min-width: 140px;
  padding: 9px 32px 9px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rms-ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.rms-search-row input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 9px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font-size: 14px;
}
.rsv-search-panel {
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
.rsv-search-panel .rsv-search-row {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow: visible;
}
.rsv-search-panel .rms-search-select {
  flex: 0 0 auto;
  min-width: 108px;
  padding: 8px 28px 8px 10px;
  font-size: 13px;
}
.rsv-search-panel .drp-wrap {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: auto;
  gap: 6px;
  overflow: visible;
  z-index: 5;
}
.rsv-search-panel .drp-presets {
  flex: 0 0 auto;
}
.rsv-search-panel .drp-preset {
  padding: 8px 10px;
  font-size: 12px;
}
.rsv-search-panel .drp-control {
  flex: 0 0 auto;
  overflow: visible;
  z-index: 6;
}
.rsv-search-panel .drp-trigger-bar {
  min-width: 260px;
  width: 260px;
  height: 36px;
}
.rsv-search-panel .drp-trigger {
  font-size: 12px;
}
.rsv-search-panel .drp-panel {
  z-index: 80;
}
.rsv-search-panel .rsv-search-property {
  flex: 0 0 130px;
  width: 130px;
  min-width: 130px;
  padding: 8px 10px;
  font-size: 13px;
}
.rsv-search-panel .rsv-search-q {
  flex: 1 1 auto;
  width: auto;
  min-width: 140px;
  padding: 8px 10px;
  font-size: 13px;
}
.rsv-search-panel .rsv-search-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.rsv-search-panel .rms-search-check {
  white-space: nowrap;
  font-size: 12px;
  flex: 0 0 auto;
}
.rsv-search-panel .rms-btn {
  white-space: nowrap;
}
.rms-search-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rms-muted);
  white-space: nowrap;
}
.rms-search-date input[type="date"] {
  padding: 8px 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--rms-ink);
  background: #fff;
}
.adj-log-table {
  width: 100%;
  table-layout: fixed;
}
.adj-log-table .adj-col-time { width: 10.5rem; }
.adj-log-table .adj-col-ch { width: 4.5rem; }
.adj-log-table .adj-col-prop { width: 14%; }
.adj-log-table .adj-col-room { width: 14%; }
.adj-log-table .adj-col-stay { width: 6.5rem; }
.adj-log-table .adj-col-act { width: 5.5rem; }
.adj-log-table .adj-col-res { width: 4.2rem; }
.adj-log-table .adj-col-sum { width: auto; }
.adj-log-table th,
.adj-log-table td {
  overflow: hidden;
  vertical-align: middle;
}
.adj-log-table td.nowrap { white-space: nowrap; }
/* td에 display:block/flex 금지 — table-cell 깨짐 방지 */
.adj-log-table td.adj-cell-ellipsis,
.adj-log-table td.adj-log-summary {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adj-log-table td.adj-cell-ellipsis a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adj-log-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
  min-width: 0;
}
.adj-log-summary {
  color: var(--rms-muted);
  font-size: 13px;
}
tr.adj-log-fail td { background: #fff8f8; }
.rms-search-num {
  flex: 0 0 auto;
  width: 140px;
  min-width: 120px;
  padding: 9px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rms-ink);
  font-family: inherit;
}
.rms-search-tilde { color: var(--rms-muted); font-weight: 600; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.drp-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 0 1 auto;
  flex-wrap: wrap;
}
.drp-wrap.is-compact {
  flex: 0 1 auto;
  min-width: 0;
}
.drp-wrap.is-compact .drp-trigger-bar {
  min-width: 168px;
  height: 38px;
  padding: 0 4px;
  border-radius: 8px;
  background: #fff;
}
.drp-wrap.is-compact .drp-trigger {
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
}
.drp-wrap.is-single.is-compact .drp-trigger-bar {
  min-width: 148px;
}
.drp-wrap.is-field {
  width: 100%;
}
.drp-wrap.is-field .drp-control,
.drp-wrap.is-field .drp-trigger-bar {
  width: 100%;
}
.drp-wrap.is-field .drp-trigger-bar {
  min-width: 0;
  height: 38px;
  border-radius: 8px;
  background: #fff;
}
.rms-search-date .drp-wrap,
.sc-hist-field .drp-wrap,
.sc-bulk-fields .drp-wrap,
.notify-inline-date .drp-wrap,
.prop-field .drp-wrap {
  flex: 1 1 auto;
}
.rms-search-date .drp-trigger-bar,
.sc-hist-field .drp-trigger-bar,
.notify-inline-date .drp-trigger-bar {
  min-width: 160px;
}
.drp-presets {
  display: inline-flex;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.drp-preset {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rms-muted);
  cursor: pointer;
  border-right: 1px solid var(--rms-line);
}
.drp-preset:last-child { border-right: 0; }
.drp-preset:hover { color: var(--rms-ink); background: #fafbfc; }
.drp-preset.is-active {
  color: var(--rms-blue);
  background: #eef6ff;
}
.drp-control {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.drp-trigger-bar {
  display: inline-flex;
  align-items: center;
  min-width: 280px;
  height: 38px;
  padding: 0 4px;
  border: 1px solid var(--rms-line);
  border-radius: 999px;
  background: #f7f8f9;
}
.drp-trigger-bar:focus-within,
.drp-control:has(.drp-trigger[aria-expanded="true"]) .drp-trigger-bar {
  border-color: #cfe3fb;
  background: #fff;
}
.drp-nav {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b0b3b5;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.drp-nav:hover { color: var(--rms-blue); background: #fff; }
.drp-trigger {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--rms-ink);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.drp-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 312px;
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(33, 36, 37, 0.14);
  padding: 16px 14px 14px;
}
.drp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.drp-panel-head strong,
.drp-month-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.drp-month-label {
  border: 0;
  background: transparent;
  color: var(--rms-ink);
  padding: 4px 8px;
  margin: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}
.drp-month-label:hover {
  background: #f5f6f7;
  color: var(--rms-blue);
}
.drp-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.drp-month-nav button {
  border: 0;
  background: transparent;
  color: #8b8e91;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}
.drp-month-nav button:hover { background: #f5f6f7; color: var(--rms-ink); }
.drp-today {
  width: auto !important;
  padding: 0 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--rms-ink) !important;
}
.drp-grid.is-year-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px 0 8px;
}
.drp-year {
  border: 1px solid var(--rms-line);
  background: #fff;
  border-radius: 8px;
  height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rms-ink);
  cursor: pointer;
}
.drp-year:hover {
  border-color: #93c5fd;
  background: #eef6ff;
  color: var(--rms-blue);
}
.drp-year.is-selected {
  border-color: var(--rms-blue);
  background: var(--rms-blue);
  color: #fff;
}
.drp-year.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px var(--rms-blue);
}
.drp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 2px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #929596;
}
.drp-weekdays .is-sun { color: var(--rms-brand); }
.drp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.drp-day {
  height: 38px;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--rms-ink);
  cursor: pointer;
  position: relative;
}
.drp-day.is-out { color: #d0d2d4; }
.drp-day.is-sun { color: var(--rms-brand); }
.drp-day.is-out.is-sun { color: #f3c0c4; }
.drp-day.is-in-range,
.drp-day.is-start,
.drp-day.is-end,
.drp-day.is-selected {
  background: var(--rms-blue);
  color: #fff !important;
}
.drp-day.is-in-range { border-radius: 0; }
.drp-day.is-start {
  border-radius: 999px 0 0 999px;
}
.drp-day.is-end {
  border-radius: 0 999px 999px 0;
}
.drp-day.is-selected:not(.is-start):not(.is-end) {
  border-radius: 999px;
}
.drp-day.is-start.is-end,
.drp-day.is-selected.is-start.is-end {
  border-radius: 999px;
}
.drp-day.is-today:not(.is-selected):not(.is-in-range):not(.is-start):not(.is-end) {
  box-shadow: inset 0 0 0 1px var(--rms-blue);
  color: var(--rms-blue);
  border-radius: 999px;
}
.drp-day:hover:not(.is-selected):not(.is-in-range):not(.is-start):not(.is-end) {
  background: #f5f6f7;
  border-radius: 999px;
}
.drp-foot {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--rms-line);
}
.drp-foot-range {
  font-size: 13px;
  font-weight: 600;
  color: var(--rms-ink);
  margin-bottom: 12px;
  text-align: center;
}
.drp-foot-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drp-reset {
  border: 0;
  background: transparent;
  color: #5b5e63;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.drp-reset-ico { font-size: 14px; color: #8b8e91; }
.drp-reset:hover { color: var(--rms-ink); }
.drp-apply {
  flex: 1;
  border: 0;
  border-radius: 10px;
  background: var(--rms-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 12px;
  cursor: pointer;
}
.drp-apply:hover { filter: brightness(1.05); }

.rsv-table .rsv-row { cursor: pointer; }
.rsv-table .rsv-row:hover td { background: #f3f8ff; }
.rsv-table .rsv-row.is-cancelled td { background: #f3f4f6; color: #6b7280; }
.rsv-table .rsv-row.is-cancelled:hover td { background: #e5e7eb; }
.rsv-table .rsv-row.is-review td { background: #fafafa; color: #a3a3a3; }
.rsv-table .rsv-row.is-review:hover td { background: #f5f5f5; }
/* 연박: 앰버 톤 — 일반 hover(파란 틴트)와 구분 */
.rsv-table .rsv-row.is-multinight td {
  background: #fffdfa;
}
.rsv-table .rsv-row.is-multinight:hover td { background: #ffedd5; }
.rsv-dates { min-width: 168px; line-height: 1.35; }
.rsv-date-line {
  display: flex;
  gap: 6px;
  align-items: baseline;
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
}
.rsv-date-line.is-focus {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}
.rsv-date-k {
  flex: 0 0 auto;
  min-width: 2em;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 500;
}
.rsv-date-line.is-focus .rsv-date-k { color: #0f766e; }
.rsv-fee-line {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
  white-space: nowrap;
}
.rsv-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rsv-detail-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.rsv-detail-item > span {
  flex: 0 0 108px;
  width: 108px;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
  line-height: 1.4;
}
.rsv-detail-item > div {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--rms-ink);
  word-break: break-word;
  line-height: 1.4;
}
.rsv-detail-item.is-wide { width: 100%; }
.rsv-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}
.rsv-detail.is-popup { padding-bottom: 72px; }
.rsv-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}
.rsv-detail-hero-main { min-width: 0; flex: 1 1 auto; }
.rsv-detail-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rsv-detail-channel-status { font-size: 12px; font-weight: 600; }
.rsv-detail-hero-guest {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--rms-ink);
}
.rsv-detail-guest-name { min-width: 0; }
.rsv-detail-hero-guest .rsv-detail-phone,
.rsv-detail-hero-guest .muted {
  font-size: 16px;
  font-weight: 700;
}
.rsv-detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rms-ink);
}
.rsv-detail-hero-place {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}
.rsv-detail-phone {
  color: var(--rms-ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.rsv-detail-phone:hover { color: var(--rms-brand); text-decoration: underline; }
.rsv-detail-dot { color: var(--rms-muted); font-weight: 500; }
.rsv-detail-nights {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}
.rsv-stay-arrow {
  margin: 0 4px;
  color: var(--rms-muted);
  font-weight: 700;
}
.rsv-stay-ops-date { font-weight: 800; }
.rsv-stay-channel-range {
  margin-top: 4px;
  font-size: 12px;
}
.badge.onsite-diff {
  background: #fff7ed;
  color: #c2410c;
  font-weight: 700;
}
.rsv-override-row.rsv-stay-remap-main {
  align-items: center;
}
.rsv-stay-remap-date {
  flex: 0 0 148px !important;
  width: 148px !important;
  min-width: 148px !important;
  max-width: 160px;
  box-sizing: border-box;
}
.rsv-stay-remap-room {
  flex: 1 1 220px !important;
  width: auto !important;
  min-width: 180px !important;
  box-sizing: border-box;
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
}
.rsv-override-row.rsv-stay-remap-opts {
  margin-top: 8px;
  align-items: center;
}
.rsv-stay-remap-check,
.rsv-stay-remap-diff {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.rsv-stay-remap-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  flex: 0 0 auto;
}
.rsv-stay-remap-diff-input {
  flex: 0 0 120px !important;
  width: 120px !important;
  min-width: 120px !important;
  height: 34px;
  box-sizing: border-box;
}
.rsv-stay-remap-diff-input:disabled {
  background: #f8fafc;
  color: var(--rms-muted);
}
.rsv-stay-remap-hint {
  margin: 6px 0 0;
  font-size: 12px;
}
.rsv-stay-remap-actions {
  margin-top: 10px;
  justify-content: flex-end;
}
.rsv-detail-name-change {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rms-ink);
}
.rsv-detail-name-change strong { font-weight: 800; }
.badge.name-change {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
}
.badge.markup {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
}
.badge.memo {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
}
.badge.memo::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3.5 1.5h6.2L13.5 5.3v9.2h-10V1.5zm6.2.3v3.4h3.4M5.2 8.1h5.6v1H5.2zm0 2.3h5.6v1H5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3.5 1.5h6.2L13.5 5.3v9.2h-10V1.5zm6.2.3v3.4h3.4M5.2 8.1h5.6v1H5.2zm0 2.3h5.6v1H5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.badge.ops-memo {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
}
.badge.ops-memo::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M2.5 2.5h11v11h-11zm2 2.5v1.2h7V5zm0 2.8v1.2h7V7.8zm0 2.8v1.2h4.5v-1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M2.5 2.5h11v11h-11zm2 2.5v1.2h7V5zm0 2.8v1.2h7V7.8zm0 2.8v1.2h4.5v-1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rsv-detail-hero-price {
  flex: 0 0 auto;
  text-align: right;
  min-width: 120px;
}
.rsv-detail-hero-price .k {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
  margin-bottom: 4px;
}
.rsv-detail-hero-price .v {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--rms-ink);
  line-height: 1.15;
}
.rsv-detail-hero-price .u {
  font-size: 14px;
  font-weight: 700;
  margin-left: 2px;
  color: var(--rms-muted);
}
.rsv-detail-alert { margin: 0; }
.rsv-detail-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rsv-detail-card {
  margin: 0;
  padding: 16px 18px;
}
.rsv-detail-card.is-wide { grid-column: 1 / -1; }
.rsv-detail-card-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--rms-ink);
  letter-spacing: -0.01em;
}
.rsv-event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rsv-event-item {
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fafbfc;
}
.rsv-event-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.rsv-event-meta { margin-top: 4px; font-size: 12px; }
.rsv-event-msg { margin-top: 6px; font-size: 13px; }
.rsv-detail-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rsv-copy-btn { min-width: 52px; }
.rsv-copy-btn.is-copied {
  color: #0f766e;
  border-color: #99f6e4;
  background: #f0fdfa;
}
.rsv-detail-memo-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--rms-muted);
  margin-bottom: 4px;
}
.rsv-detail-memo + .rsv-detail-memo-label { margin-top: 12px; }
.rsv-detail-memo {
  font-size: 14px;
  font-weight: 600;
  color: var(--rms-ink);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.rsv-memo-form { margin: 0; display: grid; gap: 8px; }
.rsv-ops-memo-hint { margin: 0 0 8px; font-size: 13px; }
.rsv-memo-input {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1.5;
  color: var(--rms-ink);
  background: #fff;
  resize: vertical;
}
.rsv-memo-input:focus {
  outline: none;
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
th.col-sms-guide,
td.col-sms-guide {
  width: 44px;
  text-align: center;
  white-space: nowrap;
}
.rsv-sms-guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 14px;
  line-height: 1;
  cursor: help;
}
.rsv-error-box {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
}
.rsv-error-box.tone-warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #78350f;
}
.rsv-error-box.tone-info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
}
.rsv-error-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}
.rsv-error-summary,
.rsv-error-hint {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.rsv-error-hint {
  margin-top: 6px;
  opacity: 0.9;
}
.rsv-error-raw {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
}
.rsv-error-raw summary {
  cursor: pointer;
  color: inherit;
  opacity: 0.75;
  user-select: none;
}
.rsv-error-raw code {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 500;
  white-space: pre-wrap;
  word-break: break-word;
}
.rsv-ddnayo-form { margin: 0; }
.rsv-ddnayo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rsv-ddnayo-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--rms-ink);
  background: #fff;
}
.rsv-ddnayo-row .rms-btn,
.rsv-ddnayo-row .rms-name-link { flex: 0 0 auto; }
.rsv-map-box { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.rsv-map-form { margin: 0; }
.rsv-override-desc { font-size: 12px; margin-bottom: 10px; }
.rsv-override-form { margin: 0; overflow: visible; }
.rsv-override-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; overflow: visible; }
.rsv-override-row select { flex: 1 1 140px; min-width: 0; }
.rsv-override-search-wrap { position: relative; flex: 1 1 220px; min-width: 160px; max-width: 360px; z-index: 30; overflow: visible; }
.rsv-override-search-input { width: 100%; box-sizing: border-box; }
.rsv-override-room-sel { flex: 1 1 140px; min-width: 0; }
.rsv-override-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 80;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--rms-line, #e2e4e8);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 260px;
  overflow-y: auto;
}
.rsv-override-suggest-item {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rsv-override-suggest-item:hover,
.rsv-override-suggest-item.is-active {
  background: #eef6ff;
  color: var(--rms-blue, #1d84f4);
}
/* panel overflow:hidden 이 자동완성 목록을 잘라냄 */
.panel.rsv-detail-card:has(.rsv-override-suggest) {
  overflow: visible;
}
.rsv-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}
.rsv-detail-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rsv-detail-panel { padding: 18px; }
.rsv-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding: 14px 0 0;
  border-top: 1px solid var(--rms-line);
}
.rsv-detail-actions.is-sticky {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 0 -18px -24px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rms-line);
  background: rgba(245, 246, 247, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 -6px 16px rgba(33, 36, 37, 0.06);
}
@media (max-width: 720px) {
  .rsv-detail.is-popup .rsv-detail-sections { grid-template-columns: 1fr; }
  .rsv-detail.is-popup .rsv-detail-hero {
    flex-direction: column;
    gap: 14px;
  }
  .rsv-detail.is-popup .rsv-detail-hero-price { text-align: left; }
}
.rms-popup-body {
  background: var(--rms-bg);
  min-height: 100vh;
  min-height: 100dvh;
}
.rms-popup-content {
  padding: 16px 18px 24px;
  max-width: 960px;
  margin: 0 auto;
}
.rsv-ddnayo-input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.rsv-modal[open] {
  display: flex;
  flex-direction: column;
}
.rsv-modal {
  width: min(720px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  overflow: hidden;
}
.rsv-modal .rms-modal-card {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rsv-modal .rms-modal-head,
.rsv-modal .rms-modal-foot {
  flex: 0 0 auto;
}
.rsv-modal .rms-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
html:has(.rsv-modal[open]),
body:has(.rsv-modal[open]),
html.rsv-modal-open,
body.rsv-modal-open {
  overflow: hidden !important;
}
body.rsv-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.rms-search-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  font-size: 13px;
  color: var(--rms-muted);
  font-weight: 600;
  white-space: nowrap;
}
.rms-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--rms-muted);
}
.rms-list-head-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.rms-list-head strong { color: var(--rms-ink); font-size: 15px; }
.rms-name-link {
  color: var(--rms-ink);
  font-weight: 700;
  text-decoration: none;
}
.rms-name-link:hover { color: var(--rms-blue); text-decoration: underline; }
.rms-pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: var(--rms-muted);
  font-size: 13px;
  font-weight: 600;
}
.rms-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.rms-chip {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--rms-line);
  background: #fff;
  color: var(--rms-ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.rms-chip:hover { border-color: var(--rms-blue); color: var(--rms-blue); text-decoration: none; }
.rms-chip.active {
  background: #eef6ff;
  border-color: #cfe3fb;
  color: var(--rms-blue);
}
.col-actions { white-space: nowrap; }
.col-actions > * { display: inline-block; vertical-align: middle; margin-right: 6px; }
.col-actions > *:last-child { margin-right: 0; }
.col-id, .col-num { font-variant-numeric: tabular-nums; }

.rms-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.rms-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.rms-card {
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  min-height: 120px;
}
.rms-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rms-card h3 a { color: inherit; text-decoration: none; }
.rms-card h3 a:hover { color: var(--rms-blue); }
.rms-card .em { color: var(--rms-muted); font-size: 12px; margin-bottom: 14px; }
.rms-card .big {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--rms-blue);
}
.rms-card .big span { font-size: 15px; color: var(--rms-ink); font-weight: 700; margin-left: 4px; }

.rms-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.rms-kpi {
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
}
.rms-kpi .k { color: var(--rms-muted); font-size: 11px; font-weight: 700; }
.rms-kpi .v { font-size: 20px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; word-break: keep-all; }

.ops-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ops-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ops-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ops-kpis .ops-money { font-size: 18px; }
.ops-basis-block { margin-bottom: 14px; }
.ops-basis-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
}
.ops-basis-head strong { font-size: 14px; color: #212425; }
.ops-basis-head .muted { font-size: 12px; }
.mo-basis-switch {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 12px;
  padding: 3px;
  border: 1px solid #e4e8eb;
  border-radius: 8px;
  background: #f6f8f9;
}
.mo-basis-btn {
  border: 0;
  background: transparent;
  color: #5b6569;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.mo-basis-btn.is-active { background: #fff; color: #0f766e; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.mo-basis-panel.is-hidden,
.mo-basis-detail.is-hidden { display: none !important; }
#moChannelGrid.mo-single-basis { grid-template-columns: 1fr; }
.mo-anomaly-card .mo-anomaly-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.mo-anomaly-card .mo-anomaly-head h3 { margin: 0; }
.mo-anomaly-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mo-anomaly-tab {
  border: 1px solid #e4e8eb;
  background: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #5b6569;
  cursor: pointer;
}
.mo-anomaly-tab.is-active { border-color: #0f766e; color: #0f766e; background: #f0fdfa; }
.mo-aq-count { margin-left: 4px; color: #929596; font-weight: 700; }
.mo-anomaly-list { list-style: none; margin: 0; padding: 0; }
.mo-anomaly-list li + li { border-top: 1px solid #eef1f3; }
.mo-anomaly-item {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) 72px minmax(180px, 2fr) minmax(160px, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 10px 4px;
  text-decoration: none;
  color: inherit;
}
.mo-anomaly-item:hover { background: #f8fafb; }
.mo-aq-name { font-weight: 700; color: #212425; }
.mo-aq-reason {
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  border-radius: 4px;
  padding: 2px 6px;
  text-align: center;
}
.mo-aq-signal { font-size: 12px; color: #3d464a; }
.mo-aq-meta { font-size: 12px; color: #929596; text-align: right; }
@media (max-width: 900px) {
  .mo-anomaly-item { grid-template-columns: 1fr 72px; }
  .mo-aq-signal, .mo-aq-meta { grid-column: 1 / -1; text-align: left; }
}
.ops-unit { font-size: 13px; font-weight: 700; color: var(--rms-muted); margin-left: 2px; }
.ops-sub { margin-top: 6px; font-size: 12px; color: var(--rms-muted); line-height: 1.4; }
.ops-up { color: #1f7a4d; font-weight: 700; }
.ops-down { color: #c2410c; font-weight: 700; }
.ops-ad-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ops-ad-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
.ops-ad-chip.is-on { border-color: #b7e4c7; background: #f3fbf6; }
.ops-ad-chip.is-off { opacity: 0.72; }
.ops-ad-chip strong { font-size: 12px; }
.ops-ad-edit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ops-ad-edit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.ops-ad-edit-item input { margin: 0; }

/* Reviews */
.rv-channel-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.rv-channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
}
.rv-channel-chip:hover { border-color: var(--rms-blue); background: #f8fbff; text-decoration: none; }
.rv-channel-chip.is-active { border-color: var(--rms-blue); background: #eef5ff; }
.rv-channel-chip strong { font-weight: 800; }
.rv-filter { margin-bottom: 14px; }
.rv-filter .rms-search-input {
  flex: 1 1 220px;
  min-width: 180px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font-size: 13px;
}
.rv-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.rv-card {
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  padding: 16px 18px;
}
.rv-card.is-low { border-color: #fdba74; background: #fffaf5; }
.rv-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.rv-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--rms-muted);
}
.rv-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
}
.rv-pill.ok { background: #ecfdf5; color: #047857; }
.rv-pill.warn { background: #fff7ed; color: #c2410c; }
.rv-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1;
}
.rv-stars .on { color: #f59e0b; }
.rv-stars .half { color: #fbbf24; }
.rv-stars .off { color: #d1d5db; }
.rv-stars strong {
  margin-left: 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--rms-ink);
}
.rv-stars.empty { color: var(--rms-muted); font-size: 12px; font-weight: 600; }
.rv-rating-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.rv-rating-parts span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-size: 11px;
  color: var(--rms-muted);
}
.rv-rating-parts strong { color: var(--rms-ink); font-weight: 800; }
.rv-content {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--rms-ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.rv-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.rv-photo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rms-line);
  background: #f3f4f6;
  display: block;
}
.rv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rv-photo.more {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--rms-muted);
}
.rv-reply {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border-left: 3px solid var(--rms-blue);
}
.rv-reply-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--rms-blue);
  margin-bottom: 4px;
}
.rv-reply p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #374151;
  white-space: pre-wrap;
  word-break: break-word;
}
.rv-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 20px;
}
.rv-empty { text-align: center; padding: 36px 16px; }
.rv-empty strong { display: block; margin-bottom: 6px; font-size: 15px; }
.rv-empty p { margin: 0; color: var(--rms-muted); font-size: 13px; }
.rms-kpi.is-warn { background: #fff8f0; border-color: #f0d48a; }

@media (max-width: 720px) {
  .rv-card-head { flex-direction: column; align-items: flex-start; }
  .rv-photo { width: 64px; height: 64px; }
}

.ops-insight-card { margin: 0 0 16px; }
.ops-insight-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ops-insight-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
}
.ops-insight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ops-insight-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}
.ops-insight-item.sev-high { border-color: #fdba74; background: #fff7ed; }
.ops-insight-item.sev-medium { border-color: #fde68a; background: #fffbeb; }
.ops-insight-item.sev-low { border-color: #e5e7eb; background: #fafafa; }
.ops-insight-rank {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #1f2937;
  background: #e5e7eb;
}
.ops-insight-item.sev-high .ops-insight-rank { background: #fed7aa; color: #9a3412; }
.ops-insight-item.sev-medium .ops-insight-rank { background: #fde68a; color: #92400e; }
.ops-insight-title { font-size: 14px; font-weight: 700; color: #111827; line-height: 1.35; }
.ops-insight-detail { margin: 4px 0 0; font-size: 12px; color: #6b7280; line-height: 1.45; }
@media (max-width: 720px) {
  .ops-insight-item { grid-template-columns: 28px minmax(0, 1fr); }
  .ops-insight-item .rms-btn { grid-column: 2; justify-self: start; }
  .ad-home-head { flex-wrap: wrap; }
}
.ops-action-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.ops-action {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.ops-action:hover { border-color: var(--rms-blue); text-decoration: none; background: #f8fbff; }
.ops-action.is-warn { background: #fff8f0; border-color: #f0d48a; }
.ops-action.is-warn:hover { background: #fff1e0; border-color: #e8b84a; }
.ops-action .k { font-size: 12px; font-weight: 700; color: var(--rms-muted); line-height: 1.2; }
.ops-action .v {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ops-action .v .u { font-size: 12px; font-weight: 700; color: var(--rms-muted); }
.ops-action .s { font-size: 11px; color: var(--rms-muted); line-height: 1.3; }
.ops-channel-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.ops-channel-row { display: flex; flex-direction: column; gap: 4px; }
.ops-channel-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.ops-channel-top strong { font-size: 13px; }
.ops-channel-meta { font-size: 12px; color: var(--rms-muted); }
.ops-bar {
  height: 6px;
  border-radius: 999px;
  background: #eef1f3;
  overflow: hidden;
}
.ops-bar > span {
  display: block;
  height: 100%;
  background: var(--rms-brand);
  border-radius: 999px;
  min-width: 2px;
}
.ops-charts { margin-bottom: 16px; }
.ops-chart-wrap {
  position: relative;
  width: 100%;
  height: 240px;
}
.ops-chart-split {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
}
.ops-chart-donut { height: 180px; }
.ops-mini-table { width: 100%; table-layout: fixed; }
.ops-mini-table th, .ops-mini-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-mini-table th.col-num,
.ops-mini-table td.col-num { text-align: right; width: auto; }
.ops-mini-table .col-room {
  width: 32%;
  min-width: 4.5rem;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: keep-all;
  line-height: 1.35;
}
.ops-room-rank { font-size: 12px; }
.ops-room-rank th:nth-child(1), .ops-room-rank td:nth-child(1) { width: 5%; }
.ops-room-rank th:nth-child(3), .ops-room-rank td:nth-child(3) { width: 10%; }
.ops-room-rank th:nth-child(4), .ops-room-rank td:nth-child(4),
.ops-room-rank th:nth-child(5), .ops-room-rank td:nth-child(5),
.ops-room-rank th:nth-child(6), .ops-room-rank td:nth-child(6),
.ops-room-rank th:nth-child(9), .ops-room-rank td:nth-child(9),
.ops-room-rank th:nth-child(10), .ops-room-rank td:nth-child(10) { width: 7%; }
.ops-room-rank th:nth-child(7), .ops-room-rank td:nth-child(7),
.ops-room-rank th:nth-child(8), .ops-room-rank td:nth-child(8) { width: 11%; }
.ops-room-rank .col-room { width: 28%; min-width: 10rem; }
.ops-room-rank-note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
}
.ops-room-rank-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.ops-gap-table th:nth-child(1),
.ops-gap-table td:nth-child(1) { width: 22%; }
.ops-gap-table th:nth-child(2),
.ops-gap-table td:nth-child(2) { width: 14%; }
.ops-gap-table th:nth-child(3),
.ops-gap-table td:nth-child(3) { width: 14%; }
.ops-gap-table th:nth-child(4),
.ops-gap-table td:nth-child(4),
.ops-gap-table th:nth-child(5),
.ops-gap-table td:nth-child(5) { width: 25%; }
.ops-chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.ops-chip {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f4f5;
  font-size: 12px;
  font-weight: 700;
}
.rms-day.is-weekend .w { color: #c2410c; }

.rms-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.rms-day {
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  background: #fafbfc;
  min-width: 0;
}
.rms-day.today { border-color: var(--rms-blue); background: #eef6ff; }
.rms-day .d { font-weight: 800; font-size: 13px; }
.rms-day .w { color: var(--rms-muted); font-size: 11px; margin-bottom: 6px; }
.rms-day .n { font-size: 18px; font-weight: 800; color: #1f7a4d; }
.rms-day .n.zero { color: #b0b3b5; }
.rms-day .s { font-size: 11px; color: var(--rms-muted); margin-top: 2px; }

.rms-channel-list { display: flex; flex-direction: column; gap: 8px; }
.rms-channel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #fafbfc;
  border-radius: 8px;
}
.rms-channel-row strong { text-transform: uppercase; font-size: 12px; }
.rms-empty {
  color: var(--rms-muted);
  text-align: center;
  padding: 28px 12px;
  font-size: 13px;
}

.rms-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rms-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--rms-blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.rms-btn:hover { filter: brightness(1.05); text-decoration: none; color: #fff; }
.rms-btn.ghost {
  background: #fff;
  color: var(--rms-ink);
  border: 1px solid var(--rms-line);
}
.rms-btn.ghost:hover { border-color: var(--rms-blue); color: var(--rms-blue); }
.rms-btn.ghost.danger { color: #b91c1c; border-color: #fecaca; }
.rms-btn.ghost.danger:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }
.rms-btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }

.rms-top-user {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-left: 8px;
  font-size: 12px;
  color: var(--rms-muted);
}
.rms-top-user strong { color: var(--rms-ink); font-weight: 700; }

.rms-panel {
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 16px;
}
.rms-panel-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--rms-ink);
}
.account-pw-panel { max-width: 420px; }
.account-pw-panel .prop-settings-grid { grid-template-columns: 1fr; }
.account-pw-actions { display: flex; flex-direction: column; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.account-pw-actions .rms-btn { text-align: center; justify-content: center; }
.users-card-list { display: grid; gap: 12px; }
.users-card {
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fafbfc;
}
.users-card.is-inactive { opacity: 0.72; }
.users-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 6px;
}
.users-card-id { margin-left: 6px; color: var(--rms-muted); font-size: 12px; }
.users-card-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.users-card-meta { margin: 0 0 12px; font-size: 12px; color: var(--rms-muted); }
.users-card-form { margin-bottom: 8px; }
.users-card-actions { display: flex; gap: 8px; }
.users-card-reset { margin: 0; }
.users-table {
  width: 100%;
  table-layout: auto;
}
.users-table tr.is-inactive { opacity: 0.72; }
.users-cell-input {
  width: 100%;
  min-width: 120px;
  max-width: 200px;
  padding: 6px 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
}
.users-cell-select { min-width: 110px; }
.users-actions-cell { white-space: nowrap; }
.users-actions-inner {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.users-actions-inner form { margin: 0; display: inline; }

.tg-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.tg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rms-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.tg-chip em {
  font-style: normal;
  color: var(--rms-muted);
  font-weight: 600;
}
.tg-chip.is-on {
  background: var(--rms-ink);
  border-color: var(--rms-ink);
  color: #fff;
}
.tg-chip.is-on em { color: rgba(255,255,255,0.72); }
.tg-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.tg-group-head .rms-panel-title { margin: 0; }
.tg-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.tg-card {
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  background: #fafbfc;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}
.tg-card.is-off { opacity: 0.68; }
.tg-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.tg-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}
.tg-card-key {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--rms-muted);
}
.tg-card-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.tg-card-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}
.tg-card-dl > div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: start;
}
.tg-card-dl dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--rms-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tg-card-dl dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}
.tg-card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px dashed var(--rms-line);
}
.tg-dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  box-shadow: 0 18px 48px rgba(20, 24, 28, 0.22);
}
.tg-dialog::backdrop { background: rgba(18, 22, 28, 0.42); }
.tg-dialog form { margin: 0; }
.tg-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px 10px;
}
.tg-dialog-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.tg-dialog-head .sub { margin: 4px 0 0; }
.tg-dialog-grid {
  padding: 6px 20px 8px;
  margin: 0;
}
.tg-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 18px;
}
.map-sell-mode-form {
  display: inline-flex;
  margin: 0 6px 0 0;
  vertical-align: middle;
}
.map-sell-mode-form .map-su-select {
  min-width: 7.5rem;
  font-size: 12px;
  font-weight: 700;
}

.inline-form { display: inline-block; margin: 0; vertical-align: middle; }
.col-action { white-space: nowrap; width: 1%; }
tr.row-hidden td { color: var(--rms-muted); }

.map-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
}
.map-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--rms-muted);
  font-weight: 600;
}
.map-filter select {
  min-width: 120px;
  padding: 6px 8px;
  border: 1px solid var(--rms-line);
  border-radius: 6px;
  background: #fff;
  color: var(--rms-ink);
  font-weight: 600;
}
.map-toolbar-hint { margin-left: auto; font-size: 12px; color: var(--rms-muted); }
.map-autolink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}
.map-autolink-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rms-ink);
  cursor: pointer;
  user-select: none;
}
.map-autolink-check input {
  width: 16px;
  height: 16px;
  accent-color: #15803d;
}
.map-autolink .muted { font-size: 12px; }
.ch-autolink {
  margin: 0 14px 12px;
  border-radius: 8px;
}
.ch-room-add .ch-add-same-name {
  align-self: end;
  margin-bottom: 2px;
  padding: 8px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  white-space: nowrap;
}
.ch-room-add input[readonly] {
  background: #f3f4f6;
  color: var(--rms-ink);
}
.map-workbench { padding: 0; overflow: hidden; }
.map-matrix-wrap { overflow-x: auto; }
.map-matrix { min-width: 720px; }
.map-matrix th.col-room,
.map-matrix td.col-room {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  min-width: 160px;
  max-width: 220px;
  border-right: 1px solid var(--rms-line);
}
.map-matrix thead th.col-room { z-index: 3; background: #fafbfc; }
.map-matrix th.col-ch { min-width: 180px; text-align: center; font-weight: 800; }
.map-cell { vertical-align: top; min-width: 180px; background: #fff; }
.map-cell.ok { background: #f3faf5; }
.map-cell.empty { background: #fff8f8; }
.map-linked {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.map-linked:last-child { margin-bottom: 0; }
.map-linked-name { font-weight: 700; margin-bottom: 2px; word-break: keep-all; }
.map-id-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.map-sell-mode-inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.map-sell-mode-inline .map-su-select {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
}
.map-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.map-unlink-form { display: inline-flex; margin: 0; }
.map-replace-row,
.map-assign-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.map-replace-row .map-su-select,
.map-assign-form .map-su-select {
  flex: 1 1 10rem;
  min-width: 0;
  width: auto;
}
.map-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--rms-muted);
  font-weight: 600;
}
.map-field input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--rms-line);
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  color: var(--rms-ink);
  box-sizing: border-box;
}
.map-assign-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.map-ch-name { font-weight: 700; margin-bottom: 4px; word-break: keep-all; }
.map-ch-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--rms-muted); font-size: 12px; }
.map-suggest { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.map-su-select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--rms-line);
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}
tr.row-unmatched td.col-room { background: #fff8f8; }
tr.row-unmatched td { background: #fffaf8; }

/* 채널 연결 UI (listings / channels / mapping) */
/* 채널 연결 단계 */
.ch-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 0;
}
.ch-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rms-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rms-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.ch-step .n {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef2f7;
  color: var(--rms-muted);
  font-size: 12px;
  font-weight: 800;
}
.ch-step:hover { border-color: var(--rms-blue); color: var(--rms-ink); text-decoration: none; }
.ch-step.is-current {
  border-color: var(--rms-blue);
  background: #eef5ff;
  color: var(--rms-ink);
}
.ch-step.is-current .n { background: var(--rms-blue); color: #fff; }

.ch-connect-panel { padding: 18px 20px; margin-bottom: 16px; }
.ch-connect-panel .panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
}
.ch-connect-panel .panel-head h2 { margin: 0; font-size: 16px; }
.ch-connect-form {
  display: grid;
  grid-template-columns: minmax(7rem, 0.85fr) minmax(8rem, 1.1fr) minmax(8rem, 1.2fr) minmax(9rem, 1.15fr) auto;
  gap: 12px 14px;
  align-items: end;
  margin: 0;
}
.ch-connect-form.ch-room-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ch-connect-form.ch-room-form .ch-connect-actions { grid-column: 1 / -1; }
.ch-connect-form .prop-field { margin: 0; min-width: 0; }
.ch-connect-form .prop-field input,
.ch-connect-form .prop-field select {
  width: 100%;
  box-sizing: border-box;
}
.ch-connect-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 1px;
}
.ch-connect-actions .rms-btn {
  white-space: nowrap;
  min-height: 38px;
  padding-left: 18px;
  padding-right: 18px;
}
.ch-connect-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
.shared-split {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}
.shared-split > .panel { margin: 0; }
.shared-listing-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.shared-listing-link:hover { border-color: var(--rms-blue); text-decoration: none; }
.shared-split .ch-listing-main { flex-wrap: wrap; }
.shared-split .ch-listing-name { max-width: none; }
.shared-split .map-assign-form {
  flex-direction: row;
  align-items: center;
  margin-top: 0;
  min-width: 220px;
}
.shared-split .map-su-select { flex: 1; min-width: 0; width: auto; }
.ch-listing-list { display: grid; gap: 6px; }
.ch-listing-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
}
.ch-listing-row.is-off { background: #fafbfc; opacity: 0.92; }
.ch-listing-row.is-editing { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.notify-inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 14px;
  padding: 8px 0;
  min-height: 36px;
}
.notify-inline-row .prop-check {
  margin-top: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
}
.notify-inline-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
}
.notify-inline-date input[type="date"] {
  height: 34px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--rms-ink);
  line-height: 32px;
}
.notify-ranges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 8px;
}
.notify-range-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 34px;
}
.notify-ranges-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
}
.ch-listing-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
}
.ch-listing-main {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.ch-listing-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.ch-listing-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  min-width: 0;
}
.ch-listing-info strong { font-size: 14px; }
.ch-listing-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.ch-edit-inline {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px 12px;
  align-items: end;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--rms-line);
}
.ch-edit-inline[hidden] { display: none !important; }
.ch-edit-inline .prop-field { margin: 0; min-width: 0; }
.ch-edit-inline .prop-field input {
  width: 100%;
  box-sizing: border-box;
}
.ch-edit-inline-actions {
  display: flex;
  align-items: end;
  gap: 8px;
  padding-bottom: 1px;
}
.ch-listing-card {
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}
.ch-listing-card.is-off { background: #fafbfc; opacity: 0.92; }
.ch-listing-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ch-listing-edit { margin-bottom: 10px; }
.ch-listing-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--rms-line);
}

.ch-room-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.ch-rename-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) auto;
  gap: 12px 14px;
  align-items: end;
  margin: 0;
}
.ch-rename-form .prop-field { margin: 0; min-width: 0; }
.ch-rename-form .prop-field input,
.ch-rename-form .prop-field select { width: 100%; box-sizing: border-box; }
.ch-room-tab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: 10px 14px;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  background: #fff;
  color: var(--rms-muted);
  text-decoration: none;
}
.ch-room-tab strong {
  font-size: 14px;
  color: var(--rms-ink);
}
.ch-room-tab span { font-size: 12px; font-weight: 600; }
.ch-room-tab:hover { border-color: var(--rms-blue); text-decoration: none; }
.ch-room-tab.is-active {
  border-color: var(--rms-blue);
  background: #eef5ff;
  color: var(--rms-ink);
}
.ch-room-add {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(140px, 1.2fr) minmax(120px, 1fr) auto minmax(90px, 0.7fr) auto;
  gap: 12px 14px;
  align-items: end;
  margin: 0;
}
.ch-room-add .prop-field { margin: 0; min-width: 0; }
.ch-room-add .prop-field input,
.ch-room-add .prop-field select { width: 100%; box-sizing: border-box; }
.ch-json-import {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--rms-line);
}
.ch-json-import .ch-json-field { margin: 0; }
.ch-json-import textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  min-height: 140px;
}
.ch-json-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ch-room-list { display: grid; gap: 10px; }
.ch-room-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  background: #fff;
}
.ch-room-card.is-open { border-color: #fdba74; background: #fffaf5; }
.ch-room-card.is-off { opacity: 0.85; background: #fafbfc; }
.ch-room-card.is-editing { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.ch-room-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.ch-room-main {
  flex: 1 1 220px;
  min-width: 0;
}
.ch-room-name-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  min-width: 0;
}
.ch-room-name-form > input[type="text"] {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 280px;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--rms-line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--rms-ink);
  box-sizing: border-box;
}
.ch-room-name-form > input[type="text"]:focus {
  outline: none;
  border-color: var(--rms-blue);
  box-shadow: 0 0 0 3px rgba(29, 132, 244, 0.12);
}
.ch-room-name-form .rms-btn {
  height: 34px;
  box-sizing: border-box;
  flex: 0 0 auto;
}
.ch-room-name-form .badge { flex: 0 0 auto; }
.ch-room-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ch-room-title strong { font-size: 15px; }
.ch-room-meta { font-size: 12px; color: var(--rms-muted); }
.ch-room-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
}
.ch-room-link .map-su-select {
  flex: 1 1 auto;
  min-width: 140px;
  max-width: none;
  width: auto;
  height: 34px;
  margin: 0;
  box-sizing: border-box;
}
.ch-room-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.ch-room-link .rms-btn,
.ch-room-tools .rms-btn {
  height: 34px;
  box-sizing: border-box;
  flex: 0 0 auto;
  white-space: nowrap;
}
.ch-room-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px 12px;
  align-items: end;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--rms-line);
}
.ch-room-edit-form[hidden] { display: none !important; }
.ch-room-edit-form .prop-field { margin: 0; min-width: 0; }
.ch-room-edit-form .prop-field input {
  width: 100%;
  box-sizing: border-box;
  height: 34px;
}
.ch-room-edit-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}
.ch-room-edit-actions .rms-btn {
  height: 34px;
  box-sizing: border-box;
}

/* 채널객실 탭 — 한 줄 인라인 */
.ch-table { min-width: 1180px; }
.ch-table th.col-ch,
.ch-table td.col-ch { width: 72px; white-space: nowrap; }
.ch-table th.col-listing,
.ch-table td.col-listing {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--rms-muted);
  font-size: 12px;
  font-weight: 600;
}
.ch-table th.col-ids { min-width: 420px; }
.ch-table td.col-ids,
.ch-table td.col-su { vertical-align: middle; }
.ch-table td.col-status { width: 72px; text-align: center; white-space: nowrap; }
.ch-table th.col-expose,
.ch-table td.col-expose { width: 72px; text-align: center; white-space: nowrap; }
.ch-table th.col-action,
.ch-table td.col-action { width: 88px; white-space: nowrap; text-align: center; vertical-align: middle; }
.ch-ids-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
}
.ch-ids-form > input[type="text"] {
  flex: 1 1 0;
  min-width: 72px;
  width: 0;
  height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--rms-line);
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  color: var(--rms-ink);
  box-sizing: border-box;
}
.ch-ids-form > input[name="room_name_key"] { flex: 1.3 1 0; }
.ch-ids-form > input[name="external_room_id"],
.ch-ids-form > input[name="external_room_type_id"] { flex: 1 1 0; }
.ch-ids-form .rms-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  height: 32px;
}
.ch-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--rms-muted);
  font-weight: 600;
  min-width: 0;
}
.ch-field input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--rms-line);
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  color: var(--rms-ink);
  box-sizing: border-box;
}
.ch-su-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.ch-su-form .map-su-select {
  flex: 1 1 auto;
  min-width: 140px;
  max-width: 260px;
  margin: 0;
}
.ch-su-form .rms-btn { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 1100px) {
  .ch-su-form { flex-wrap: wrap; }
}
.map-unmatched-pool {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.map-pool-col {
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  padding: 10px;
  background: #fafbfc;
}
.map-pool-title { font-weight: 700; margin-bottom: 8px; }
.map-pool-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.map-pool-col li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.map-ref {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  padding: 10px 14px;
}
.map-ref > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--rms-muted);
  list-style: none;
}
.map-ref > summary::-webkit-details-marker { display: none; }
.map-ref[open] > summary { margin-bottom: 12px; color: var(--rms-ink); }
.muted { color: var(--rms-muted); }

.ex-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--rms-muted);
  font-weight: 600;
}
.ex-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ex-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ex-dot.adult { background: #1d84f4; }
.ex-dot.child { background: #16a34a; }
.ex-dot.baby { background: #f59e0b; }
.ex-matrix th.col-ch { min-width: 140px; }
.ex-cell { min-width: 140px; }
.ex-prices { display: flex; flex-direction: column; gap: 4px; }
.ex-price {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
}
.ex-price .k { color: var(--rms-muted); font-weight: 600; }
.ex-price .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.ex-price.adult .v { color: #1d84f4; }
.ex-price.child .v { color: #15803d; }
.ex-price.baby .v { color: #b45309; }

.rms-page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.rms-page-head-row > div { min-width: 0; }
.rms-page-head-row .rms-btn { flex-shrink: 0; margin-top: 2px; }
.rms-page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rms-modal {
  border: none;
  padding: 0;
  background: transparent;
  /* 기본: 짧은 폼 */
  width: min(480px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}
.rms-modal::backdrop { background: rgba(15, 23, 42, 0.45); }
.rsv-modal::backdrop { background: transparent; }
/* 모달 종류별 최적 width (기본 규칙보다 뒤에 둬서 덮어씀) */
#modal-prop-create { width: min(560px, calc(100vw - 32px)); }
.rms-modal.sc-edit-modal { width: min(420px, calc(100vw - 24px)); }
.rms-modal.rsv-modal { width: min(720px, calc(100vw - 24px)); }
.rms-modal.sc-price-modal { width: min(920px, calc(100vw - 24px)); }
.rms-modal.sc-history-modal { width: min(980px, calc(100vw - 32px)); }
.rms-modal-card {
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  width: 100%;
}
.rms-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--rms-line);
}
.rms-modal-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--rms-ink);
}
.rms-modal-close {
  border: none;
  background: transparent;
  color: var(--rms-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.rms-modal-close:hover { color: var(--rms-ink); }
.rms-modal-body { padding: 16px 18px; }
.rms-modal-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
}
.rms-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--rms-line);
}
.prop-create-form .prop-settings-grid { margin-bottom: 0; }
tr.row-inactive td { background: #f7f8f9; color: var(--rms-muted); }
tr.row-sms-low td.sms-low,
td.sms-low strong { color: #c2410c; }
td.sms-low strong { font-variant-numeric: tabular-nums; }
.badge.sms-free {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.prop-settings { padding: 18px 20px; }
/* panel overflow:hidden 이 하단 DRP 달력을 잘라냄 */
.panel.prop-settings,
.panel:has(.notify-ranges),
.panel:has([data-date-range-picker]) {
  overflow: visible;
}
.notify-ranges,
.notify-range-row,
.notify-inline-date {
  overflow: visible;
  position: relative;
}
.notify-inline-date .drp-control {
  z-index: 6;
}
.notify-inline-date .drp-control:has(.drp-trigger[aria-expanded="true"]) {
  z-index: 60;
}
.notify-inline-date .drp-panel {
  z-index: 70;
}
.prop-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 14px;
}
.prop-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
}
.prop-field.full { grid-column: 1 / -1; }
.prop-field input,
.prop-field textarea,
.prop-field select {
  padding: 9px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rms-ink);
  font-family: inherit;
}
.prop-field textarea { resize: vertical; min-height: 84px; }
.prop-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--rms-ink);
  font-weight: 700;
}
.prop-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 4px;
}
.prop-check-row .prop-check { margin-top: 0; }
/* 채널 마크업 — 예약조회와 동일 검색 패널 안에서만 쓰는 칩 */
.mk-channels-row { margin-top: 10px; }
.mk-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.mk-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mk-chip span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rms-muted);
  background: #fff;
}
.mk-chip input:checked + span {
  border-color: #93c5fd;
  background: #eef6ff;
  color: var(--rms-blue);
}

/* 판매 캘린더 — 월/주 네비 (화살표+라벨을 한 pill로) */
.sc-month-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 220px;
  height: 38px;
  padding: 0 4px;
  border: 1px solid var(--rms-line);
  border-radius: 999px;
  background: #f7f8f9;
  gap: 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.sc-month-pill:hover,
.sc-month-pill:has(.drp-trigger[aria-expanded="true"]) {
  background: #fff;
  border-color: #cfe3fb;
}
.sc-month-pill .drp-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
}
.sc-month-pill .drp-nav:hover {
  text-decoration: none;
  color: var(--rms-blue);
  background: transparent;
}
.sc-month-pill .sc-month-label {
  display: block;
  min-width: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
}
.sc-month-jump-wrap {
  position: relative;
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  z-index: 1;
  background: transparent;
  color: var(--rms-ink);
}
.sc-month-jump-wrap:hover {
  background: transparent;
  color: var(--rms-blue);
}
.sc-month-jump-drp {
  flex: 1;
  min-width: 0;
  width: 100%;
  gap: 0;
}
.sc-month-pill .sc-month-jump-drp.drp-wrap.is-compact .drp-control,
.sc-month-pill .sc-month-jump-drp.drp-wrap.is-compact .drp-trigger-bar,
.sc-month-pill .sc-month-jump-drp .drp-control,
.sc-month-pill .sc-month-jump-drp .drp-trigger-bar {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.sc-month-pill .sc-month-jump-drp.drp-wrap.is-compact .drp-trigger-bar:focus-within,
.sc-month-pill .sc-month-jump-drp.drp-wrap.is-compact .drp-control:has(.drp-trigger[aria-expanded="true"]) .drp-trigger-bar,
.sc-month-pill .sc-month-jump-drp .drp-trigger-bar:focus-within,
.sc-month-pill .sc-month-jump-drp .drp-control:has(.drp-trigger[aria-expanded="true"]) .drp-trigger-bar {
  border: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.sc-month-pill .sc-month-jump-drp .drp-trigger {
  width: 100%;
  justify-content: center;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: inherit;
  background: transparent;
}
.sc-month-jump-drp .drp-panel {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 292px;
  z-index: 40;
}
.sc-month-jump-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.01;
  cursor: pointer;
  border: 0;
  margin: 0;
  padding: 0;
  z-index: 2;
  font-size: 16px;
  color: transparent;
  background: transparent;
}
.sc-legend-inline {
  gap: 14px !important;
  font-size: 12px;
  font-weight: 600;
}
.sc-calendar-panel {
  padding: 0;
  overflow: hidden;
}
.sc-calendar-panel .sc-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.prop-settings-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 14px;
}
.prop-settings .panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
}
.prop-settings + .prop-settings,
.panel.prop-settings { margin-top: 16px; }
.prop-subhead {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 700;
}
.prop-memo-grid {
  display: grid;
  gap: 12px;
}
.prop-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.prop-info-card {
  background: #fff;
  border: 1px solid var(--rms-line, #e5e8ec);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
}
.prop-info-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #eef1f4;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.prop-info-card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.prop-info-card-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--rms-muted, #6b7280);
}
.prop-info-card-body {
  padding: 14px 16px 16px;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
  color: var(--rms-ink, #1f2937);
  flex: 1;
}
.prop-biz-info-card > summary {
  list-style: none;
  cursor: pointer;
}
.prop-biz-info-card > summary::-webkit-details-marker { display: none; }
.prop-card-chevron {
  color: #98a2b3;
  font-size: 12px;
  line-height: 1;
  margin-top: 4px;
  transition: transform 0.15s ease;
}
.prop-biz-info-card[open] .prop-card-chevron { transform: rotate(180deg); }
.prop-biz-info-card .prop-biz-dl { margin: 0; }
.prop-biz-info-card .prop-biz-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }

/* 사업자 등록 정보 카드 (조회 탭) */
.prop-biz-cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
.prop-biz-cert-grid .biz-cert {
  width: 100%;
  max-width: 960px;
  background: #fff;
  border: 1px solid var(--rms-line, #e5e8ec);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 22px 24px 20px;
  font-family: "Pretendard", "Malgun Gothic", sans-serif;
  color: var(--rms-ink, #1f2937);
}
.prop-biz-cert-grid .biz-cert.is-selected {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.prop-biz-cert-grid .biz-cert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef1f4;
}
.prop-biz-cert-grid .biz-cert-title {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  background: none !important;
  border: 0 !important;
  font-family: inherit !important;
}
.prop-biz-cert-grid .biz-cert-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.prop-biz-cert-grid .biz-cert-table th,
.prop-biz-cert-grid .biz-cert-table td {
  border: 1px solid #e2e8f0;
  padding: 11px 12px;
  vertical-align: top;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.prop-biz-cert-grid .biz-cert-table th {
  width: 120px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.prop-biz-cert-grid .biz-cert-table td {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
}
.prop-biz-cert-grid .biz-cert-table th.biz-cert-th-split {
  width: 88px;
}
.prop-biz-cert-grid .biz-cert-table td.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.prop-biz-cert-grid .biz-cert-issue {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  font-size: 13px;
  line-height: 1.45;
  color: #991b1b;
}
@media (max-width: 720px) {
  .prop-biz-cert-grid .biz-cert { padding: 18px 16px; }
  .prop-biz-cert-grid .biz-cert-title { font-size: 18px !important; }
  .prop-biz-cert-grid .biz-cert-table th { width: 96px; }
}
.prop-biz-list { display: grid; gap: 10px; margin-bottom: 8px; }
.prop-channel-list { display: grid; gap: 6px; }
.prop-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 8px 12px;
  border: 1px solid var(--rms-line, #e5e8ec);
  border-radius: 10px;
  background: #fff;
  min-height: 40px;
}
.prop-channel-row.is-off { background: #fafbfc; opacity: 0.92; }
.prop-channel-main {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}
.prop-channel-main strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
tr.is-inactive td { color: #98a2b3; }
.prop-biz-card {
  border: 1px solid var(--rms-line, #e5e8ec);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
}
.prop-biz-card summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.prop-biz-card summary::-webkit-details-marker { display: none; }
.prop-doc-upload {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.prop-memo-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.prop-memo-image-card {
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.prop-memo-image-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f3f6fa;
  overflow: hidden;
}
.prop-memo-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f8fafc;
}
.prop-memo-image-file {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: #1f3a5f;
  font-weight: 700;
  background: #f5f8fc;
}
.prop-memo-image-meta {
  display: grid;
  gap: 4px;
  padding: 10px 12px 12px;
}
.prop-memo-image-meta strong { font-size: 13px; }
.prop-memo-image-meta .muted {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prop-memo-read { display: grid; gap: 12px; }
.prop-memo-block .prop-memo-body {
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
}
.prop-biz-view {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 14px;
  align-items: start;
}
.prop-biz-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.prop-biz-links a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.prop-biz-links a:hover { background: #f5f8fc; }
.prop-biz-links a.is-active {
  background: #f0f6ff;
  border-color: #c9daf8;
}
.prop-biz-dl {
  margin: 0;
  display: grid;
  gap: 12px;
}
.prop-biz-dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rms-line, #eef1f4);
}
.prop-biz-dl dt {
  margin: 0;
  color: var(--rms-muted, #6b7280);
  font-size: 13px;
}
.prop-biz-dl dd { margin: 0; font-weight: 600; }
.prop-memo-settle-card { min-height: 0; max-width: 420px; }
.prop-memo-settle-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  white-space: normal;
}
.prop-memo-settle-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef1f4;
}
.prop-memo-settle-item span { font-size: 12px; }
.prop-memo-settle-item strong { font-size: 15px; font-weight: 800; }
.rms-actions.full { grid-column: 1 / -1; }

.rms-page-head { margin: 0 0 16px; }
.rms-page-head h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.rms-page-head .sub { margin: 0; color: var(--rms-muted); font-size: 13px; }

.opt-map-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: collapse;
}
.opt-map-table th,
.opt-map-table td {
  vertical-align: top;
  white-space: normal;
  word-break: keep-all;
}
.opt-map-table tbody tr:hover td { background: #f5f8fc; }

/* 떠나요 옵션 전역 목록 7열 */
.opt-map-table.opt-map-ddnayo { min-width: 1100px; }
.opt-map-table.opt-map-ddnayo th:nth-child(1),
.opt-map-table.opt-map-ddnayo td:nth-child(1) { width: 14%; }
.opt-map-table.opt-map-ddnayo th:nth-child(2),
.opt-map-table.opt-map-ddnayo td:nth-child(2) { width: 8%; }
.opt-map-table.opt-map-ddnayo th:nth-child(3),
.opt-map-table.opt-map-ddnayo td:nth-child(3) { width: 18%; }
.opt-map-table.opt-map-ddnayo th:nth-child(4),
.opt-map-table.opt-map-ddnayo td:nth-child(4) { width: 8%; }
.opt-map-table.opt-map-ddnayo th:nth-child(5),
.opt-map-table.opt-map-ddnayo td:nth-child(5) { width: 7%; }
.opt-map-table.opt-map-ddnayo th:nth-child(6),
.opt-map-table.opt-map-ddnayo td:nth-child(6) { width: 16%; }
.opt-map-table.opt-map-ddnayo th:nth-child(7),
.opt-map-table.opt-map-ddnayo td:nth-child(7) { width: 29%; }
.opt-naver-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.opt-naver-list li {
  font-size: 12px;
  line-height: 1.35;
}

/* 업체 옵션 탭 6열 */
.opt-map-table.opt-map-property th:nth-child(1),
.opt-map-table.opt-map-property td:nth-child(1) { width: 10%; }
.opt-map-table.opt-map-property th:nth-child(2),
.opt-map-table.opt-map-property td:nth-child(2) { width: 18%; }
.opt-map-table.opt-map-property th:nth-child(3),
.opt-map-table.opt-map-property td:nth-child(3) { width: 8%; }
.opt-map-table.opt-map-property th:nth-child(4),
.opt-map-table.opt-map-property td:nth-child(4) { width: 7%; }
.opt-map-table.opt-map-property th:nth-child(5),
.opt-map-table.opt-map-property td:nth-child(5) { width: 18%; }
.opt-map-table.opt-map-property th:nth-child(6),
.opt-map-table.opt-map-property td:nth-child(6) { width: 39%; }

.opt-map-form {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.opt-sale-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.opt-select, .opt-note {
  padding: 7px 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--rms-ink);
  background: #fff;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.opt-select.kind { min-width: 0; }
.opt-select.ddnayo { min-width: 0; max-width: none; }
.opt-note {
  grid-column: 1 / 3;
  min-width: 0;
}
.opt-map-form .rms-btn {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: stretch;
  white-space: nowrap;
}
.opt-edit-cell { min-width: 0; }

@media (max-width: 1100px) {
  .rms-kpis { grid-template-columns: repeat(3, 1fr); }
  .ops-kpis { grid-template-columns: repeat(2, 1fr); }
  .ops-kpis-4 { grid-template-columns: repeat(2, 1fr); }
  .ops-kpis-5 { grid-template-columns: repeat(2, 1fr); }
  .ops-ad-edit { grid-template-columns: 1fr; }
  .ops-action-strip { grid-template-columns: repeat(3, 1fr); }
  .ops-chart-split { grid-template-columns: 1fr; }
  .shared-split { grid-template-columns: 1fr; }
  .ops-chart-wrap { height: 220px; }
  .map-kpis { grid-template-columns: repeat(2, 1fr); }
  .rms-grid-2, .rms-grid-3 { grid-template-columns: 1fr; }
  .rms-search-panel .rms-search-row { align-items: stretch; }
  .rms-search-select { min-width: 120px; flex: 1 1 140px; }
  .drp-wrap {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }
  .drp-presets { flex: 1 1 auto; }
  .drp-control { flex: 1 1 240px; min-width: 0; }
  .drp-trigger-bar { width: 100%; min-width: 0; }
  .rsv-search-panel .rsv-search-row {
    flex-wrap: wrap;
    overflow: visible;
  }
  .rsv-search-panel .drp-wrap {
    flex: 1 1 100%;
  }
  .rsv-search-panel .rsv-search-property,
  .rsv-search-panel .rsv-search-q {
    flex: 1 1 160px;
    width: auto;
    max-width: none;
    min-width: 140px;
  }
  .rsv-search-panel .rsv-search-actions {
    width: 100%;
  }
  .rsv-search-panel .rsv-search-actions .rms-btn {
    flex: 1;
  }
  .rsv-table { min-width: 860px; }
  .rms-content:has(.sc-page),
  .rms-content:has(.map-workbench),
  .rms-content:has(.rms-search-panel) {
    padding: 14px 14px 36px;
  }
}

@media (max-width: 900px) {
  .ops-action-strip { grid-template-columns: repeat(2, 1fr); }
  .rms-app { flex-direction: column; }
  .rms-side {
    width: 100%;
    min-width: 0;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--rms-line);
  }
  .rms-side-top { padding: 12px 14px 8px; }
  .rms-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 0 8px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .rms-menu .rms-group { display: none; }
  .rms-menu li { flex: 0 0 auto; }
  .rms-menu-branch.is-open {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
  }
  .rms-menu-branch.is-open .rms-submenu {
    display: flex;
    padding: 0;
    gap: 4px;
  }
  .rms-menu-branch:not(.is-open) .rms-submenu { display: none; }
  .rms-submenu a {
    padding: 8px 10px;
    font-size: 13px;
    border-left: none;
    border-radius: 8px;
  }
  .rms-menu a {
    border-left: none;
    border-radius: 8px;
    padding: 8px 10px;
    white-space: nowrap;
  }
  .rms-week { grid-template-columns: repeat(4, 1fr); }
  .rms-content { padding: 14px 12px 40px; }
  .rms-top {
    gap: 10px;
    padding: 0 12px;
  }
  .rms-top-meta { display: none; }
  .rms-top-title { display: none; }
  .rms-brand { font-size: 14px; }
  .col-actions { white-space: normal; }
  .rms-prop-switch { max-width: none; min-width: 0; flex: 1 1 auto; }
  .rms-prop-btn { width: 100%; }
  .rms-prop-panel { left: 0; right: 0; width: auto; max-width: none; }
  .table-wrap,
  .map-matrix-wrap,
  .sc-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .sc-toolbar { flex-direction: column; align-items: stretch; }
  .sc-toolbar-right { width: 100%; }
  .sc-filter { width: 100%; }
  .sc-filter select { width: 100%; }
  .map-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .map-toolbar-hint { margin-left: 0; }
  .rms-channel-list .rms-channel-row,
  .rms-actions { width: 100%; }
  .rms-modal,
  .rms-modal.sc-price-modal,
  .rms-modal.sc-history-modal,
  .rms-modal.rsv-modal,
  .rms-modal.sc-edit-modal,
  #modal-prop-create {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 720px) {
  .rms-page-head h1 { font-size: 20px; }
  .rms-page-head-row { flex-direction: column; align-items: stretch; }
  .rms-page-head-row .rms-btn { align-self: flex-start; }
  .rms-kpis,
  .map-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rms-kpi .v { font-size: 18px; }
  .rms-list-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .rms-search-panel { padding: 12px; }
  .rms-search-radios {
    gap: 10px 14px;
    font-size: 12px;
  }
  .rms-search-select,
  .rms-search-row input[type="text"],
  .rms-search-row .rms-btn {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .rms-search-row .rms-btn {
    text-align: center;
    justify-content: center;
  }
  .drp-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .drp-presets {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .drp-preset {
    padding: 8px 4px;
    font-size: 12px;
    text-align: center;
    border-right: 1px solid var(--rms-line);
  }
  .drp-control { width: 100%; }
  .drp-trigger-bar { min-width: 0; }
  .drp-trigger { font-size: 12px; }
  .drp-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 32px);
    overflow: auto;
    z-index: 80;
  }
  .rsv-detail-grid { gap: 8px; }
  .rsv-detail-item > span { flex-basis: 88px; width: 88px; }
  .rsv-detail-sections { grid-template-columns: 1fr; }
  .rsv-detail-hero {
    flex-direction: column;
    gap: 14px;
  }
  .rsv-detail-hero-price { text-align: left; min-width: 0; }
  .rsv-detail-hero-price .v { font-size: 22px; }
  .rsv-detail-actions.is-sticky {
    margin-left: -18px;
    margin-right: -18px;
  }
  .panel .table-wrap:has(.resp-cards),
  .panel .table-wrap:has(.rsv-table) {
    overflow: visible;
    border: none;
    background: transparent;
  }
  .panel:has(.rsv-table),
  .panel:has(.resp-cards) {
    overflow: visible;
    background: transparent;
    border: none;
  }
  .rms-content:has(.rsv-table) {
    overflow-x: hidden;
  }
  .resp-cards,
  .rsv-table {
    min-width: 0 !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
  }
  .resp-cards thead,
  .rsv-table thead { display: none; }
  .resp-cards tbody,
  .rsv-table tbody { display: block; width: 100%; }
  .resp-cards tbody tr,
  .rsv-table .rsv-row {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--rms-line);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0;
    overflow: visible;
  }
  .rsv-table .rsv-row.is-cancelled {
    background: #f3f4f6;
    border-color: #e5e7eb;
  }
  .rsv-table .rsv-row.is-review {
    background: #fafafa;
    border-color: #f0f0f0;
    color: #a3a3a3;
  }
  .rsv-table .rsv-row.is-multinight {
    background: #fff7ed;
    border-color: #fdba74;
    box-shadow: inset 3px 0 0 #f59e0b;
  }
  .resp-cards tbody tr:hover td,
  .rsv-table .rsv-row:hover td { background: transparent; }
  .rsv-table .rsv-row.is-cancelled td,
  .rsv-table .rsv-row.is-review td,
  .rsv-table .rsv-row.is-multinight td { background: transparent; }
  .resp-cards tbody td,
  .rsv-table .rsv-row td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #f0f1f2;
    padding: 8px 0;
    text-align: right;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
  }
  .resp-cards tbody td:last-child,
  .rsv-table .rsv-row td:last-child { border-bottom: none; padding-bottom: 2px; }
  .resp-cards tbody td:first-child,
  .rsv-table .rsv-row td:first-child { padding-top: 2px; }
  .resp-cards tbody td::before,
  .rsv-table .rsv-row td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    max-width: 42%;
    color: var(--rms-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
  }
  .resp-cards tbody td > *,
  .rsv-table .rsv-row td > * {
    text-align: right;
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
  }
  .resp-cards tbody td.col-actions,
  .rsv-table .rsv-row td.col-actions {
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
  }
  .resp-cards tbody td.col-actions::before,
  .rsv-table .rsv-row td.col-actions::before { margin-right: auto; }
  .resp-cards .empty,
  .rsv-table .empty {
    display: block;
    text-align: center;
    padding: 28px 12px;
    background: #fff;
    border: 1px solid var(--rms-line);
    border-radius: 12px;
  }
  .rsv-modal {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    margin: auto;
    max-height: calc(100dvh - 16px);
    overflow: hidden;
  }
  .rsv-modal .rms-modal-card {
    max-height: calc(100dvh - 16px);
    overflow: hidden;
  }
  .rsv-modal .rms-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100dvh - 128px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rms-modal-body { max-height: min(70dvh, 520px); overflow: auto; }
  .rsv-modal .rms-modal-body { max-height: calc(100dvh - 128px); }
  .rms-modal-foot {
    flex-wrap: wrap;
    justify-content: stretch;
  }
  .rms-modal-foot .rms-btn,
  .rms-modal-foot .inline-form { flex: 1 1 auto; }
  .rms-modal-foot .inline-form .rms-btn { width: 100%; }
  .rms-pager { flex-wrap: wrap; gap: 10px; }
  .prop-settings-grid { grid-template-columns: 1fr; }
  .ch-rename-form { grid-template-columns: 1fr; }
  .ch-room-add { grid-template-columns: 1fr; }
  .ch-room-row { align-items: stretch; }
  .ch-room-link { flex: 1 1 100%; }
  .ch-room-tools { width: 100%; justify-content: stretch; }
  .ch-room-tools .inline-form,
  .ch-room-tools .rms-btn { flex: 1; }
  .ch-room-tools .inline-form .rms-btn { width: 100%; }
  .ch-room-edit-form { grid-template-columns: 1fr; }
  .ch-room-edit-actions { justify-content: stretch; }
  .ch-room-edit-actions .rms-btn { flex: 1; }
  .ch-connect-form,
  .ch-connect-form.ch-room-form { grid-template-columns: 1fr; }
  .ch-connect-form.ch-room-form .ch-connect-actions { grid-column: auto; }
  .ch-connect-actions { justify-content: stretch; }
  .ch-connect-actions .rms-btn { flex: 1; }
  .ch-edit-inline { grid-template-columns: 1fr; }
  .ch-edit-inline-actions { justify-content: stretch; }
  .ch-edit-inline-actions .rms-btn { flex: 1; }
  .prop-doc-upload { grid-template-columns: 1fr; }
  .prop-card-grid { grid-template-columns: 1fr; }
  .prop-biz-dl > div { grid-template-columns: 1fr; gap: 4px; }
  .opt-edit-cell { min-width: 0; }
  .opt-map-form {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .opt-note,
  .opt-map-form .rms-btn {
    grid-column: 1;
    grid-row: auto;
  }
  .opt-select.ddnayo { min-width: 0; max-width: none; width: 100%; }
  .opt-note { min-width: 0; width: 100%; }
  .ch-su-form { flex-wrap: wrap; }
  .sc-month-nav { flex-wrap: wrap; justify-content: center; }
  .sc-month-label { min-width: 0; flex: 1 1 auto; }
  .map-unmatched-pool { grid-template-columns: 1fr; }
  .rms-card { min-height: 0; }
}

@media (max-width: 420px) {
  .rms-kpis,
  .map-kpis { grid-template-columns: 1fr 1fr; }
  .drp-presets { grid-template-columns: repeat(2, 1fr); }
  .drp-preset { border-bottom: 1px solid var(--rms-line); }
  .drp-preset:nth-child(2n) { border-right: 0; }
  .drp-preset:nth-last-child(-n+2) { border-bottom: 0; }
  .rms-menu a { padding: 8px 8px; font-size: 13px; }
  .rms-menu .ico { display: none; }
}

/* Property compare */
.cmp-panel {
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 16px;
}
.cmp-panel-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cmp-basis { display: inline-flex; gap: 12px; align-items: center; }
.cmp-radio { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.cmp-panel-actions { display: inline-flex; gap: 8px; align-items: center; }
.cmp-count { font-size: 13px; min-width: 4.5em; text-align: right; }

.cmp-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cmp-slot-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
  margin-bottom: 6px;
}
.cmp-slot.is-filled .cmp-dd-search {
  background: #f0f6ff;
  border-color: #c5d8f7;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.cmp-dd { position: relative; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 0; }
.cmp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--rms-line);
  border-radius: 999px;
  background: #f0f6ff;
  border-color: #c5d8f7;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
}
.cmp-chip:hover { background: #e4efff; }
.cmp-chip-x { font-size: 14px; line-height: 1; color: var(--rms-muted); }
.cmp-dd-control {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cmp-dd-search {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 6px;
  font-size: 13px;
}
.cmp-dd-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.cmp-dd-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmp-dd-option:last-child { border-bottom: 0; }
.cmp-dd-option:hover { background: #f8fbff; }
.cmp-dd-empty { padding: 14px 12px; font-size: 13px; }

@media (max-width: 900px) {
  .cmp-slots { grid-template-columns: 1fr; }
}

.cmp-table-wrap { overflow-x: auto; }
.cmp-table { min-width: 640px; }
.cmp-table th.cmp-metric,
.cmp-table td.cmp-metric {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  text-align: left;
  min-width: 110px;
  font-weight: 700;
  border-right: 1px solid var(--rms-line);
}
.cmp-table thead th.cmp-metric { z-index: 2; background: #f8fafc; }
.cmp-table thead th { vertical-align: top; min-width: 140px; }
.cmp-table tbody th.cmp-metric { background: #fafafa; }

.cmp-charts { margin-top: 14px; padding: 14px 16px; }
.cmp-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.cmp-chart-card {
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
}
.cmp-chart-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.cmp-chart-canvas-wrap { height: 180px; position: relative; }
.cmp-chart-legend {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmp-chart-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.cmp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cmp-chart-empty { margin: 24px 0; text-align: center; font-size: 13px; }

/* 적용 중 로딩 오버레이 */
html.is-rms-loading,
html.is-rms-loading body { overflow: hidden; }
.rms-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}
.rms-loading[hidden] { display: none !important; }
.rms-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 160px;
  padding: 28px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.rms-loading-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 5px solid #dbeafe;
  border-top-color: var(--rms-blue);
  box-sizing: border-box;
  animation: rms-spin 0.75s linear infinite;
}
.rms-loading-text {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--rms-ink);
}
@keyframes rms-spin {
  to { transform: rotate(360deg); }
}

.hb-ops-flags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px 16px;
  margin-top: 14px;
}
.hb-ops-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rms-ink);
}
.hb-ops-flag input {
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
}
.hb-ops-yn { font-weight: 800; }
.hb-ops-yn.is-yes { color: #0f766e; }
.hb-ops-yn.is-no { color: #94a3b8; }
.hb-ops-neg { color: #c2410c; font-weight: 800; }
.hb-ops-table th,
.hb-ops-table td { white-space: nowrap; }
.hb-ops-table td:last-child { white-space: normal; }
.hb-ops-table td.hb-ops-match-cell { white-space: normal; min-width: 220px; }
.hb-ops-table tr.is-matched { background: #f8fffb; }
.hb-ops-match-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.hb-ops-match-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.hb-ops-match-input {
  width: 150px;
  min-width: 120px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--rms-line);
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--rms-ink);
  background: #fff;
}
.hb-ops-match-input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.hb-ops-night-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.hb-ops-night-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}
.hb-ops-bulk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.hb-revenue-summary { margin: 0 0 14px; }

.hb-ops-detail {
  display: grid;
  gap: 14px;
  max-width: 980px;
}
.hb-ops-panel { padding: 18px 20px; }
.hb-ops-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.hb-ops-panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.hb-ops-panel-desc {
  margin: 0;
  flex: 1 1 100%;
  font-size: 13px;
  color: var(--rms-muted);
  line-height: 1.45;
}
.hb-ops-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}
.hb-ops-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hb-ops-summary-item > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
}
.hb-ops-summary-item > strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--rms-ink);
  word-break: break-word;
}
.hb-ops-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hb-ops-link-row .hb-ops-field { flex: 1 1 240px; }
.hb-ops-linked {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  background: #f8fafc;
}
.hb-ops-linked > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hb-ops-linked span {
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
}
.hb-ops-linked strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--rms-ink);
}
.hb-ops-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.hb-ops-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hb-ops-field-wrap > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
}
.hb-ops-field-wrap.is-wide { grid-column: 1 / -1; }
.hb-ops-field,
.hb-ops-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--rms-ink);
  background: #fff;
}
.hb-ops-field {
  height: 38px;
  padding: 0 12px;
}
.hb-ops-field:focus,
.hb-ops-textarea:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
select.hb-ops-field {
  cursor: pointer;
}
.hb-ops-textarea {
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.45;
  font-weight: 500;
}
.hb-ops-notes {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.hb-ops-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rms-line);
}
@media (max-width: 820px) {
  .hb-ops-summary,
  .hb-ops-linked,
  .hb-ops-form-grid {
    grid-template-columns: 1fr;
  }
}

.hb-create { display: grid; gap: 14px; max-width: 920px; }
.hb-create-card {
  padding: 8px 4px 4px;
  border: 1px solid var(--rms-line);
  border-radius: 16px;
  background: #fff;
}
.hb-create-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #eef1f4;
}
.hb-create-step:last-child { border-bottom: 0; }
.hb-create-step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #0f766e;
  background: #ecfdf5;
}
.hb-create-step-body h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hb-create-search { max-width: 420px; }
.hb-create-input {
  width: 100%;
  max-width: 420px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  color: var(--rms-ink);
  background: #fff;
}
.hb-create-input:focus {
  outline: none;
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.hb-create-memo { margin-top: 10px; max-width: 100%; }
.hb-create-hint {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--rms-muted);
  line-height: 1.45;
}
.hb-create-hint.is-ok { color: #0f766e; }
.hb-create-hint.is-warn { color: #b45309; }
.hb-create-drp { margin: 0 0 10px; }
.hb-create-drp-bar {
  min-width: 320px;
  height: 42px;
  border-radius: 12px;
  background: #f8fafc;
}
.hb-create-drp-panel {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.hb-create-guest-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.hb-create-prefix {
  flex: 0 0 auto;
  padding: 0 12px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #0f766e;
  background: #ecfdf5;
  border-right: 1px solid var(--rms-line);
}
.hb-create-guest-row .hb-create-input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}
.hb-create-reroll {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-left: 1px solid var(--rms-line);
  background: #f8fafc;
  color: #0f766e;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.hb-create-reroll:hover { background: #ecfdf5; }
.hb-create-actions { margin-top: 14px; }
.hb-create-step[hidden],
.intake-optional-step[hidden] { display: none !important; }

.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(260px, 340px);
  gap: 18px;
  align-items: start;
}
.intake-form { max-width: none; margin: 0; }
.intake-form .hb-create-card { padding: 4px 0 8px; }
.intake-form .hb-create-input,
.intake-form .hb-create-search,
.intake-form .intake-channel-select { max-width: none; }
.intake-form .hb-create-actions { padding: 4px 20px 16px; margin-top: 0; }
.intake-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  vertical-align: middle;
}
.intake-tag.required { color: #b45309; background: #fff7ed; }
.intake-aside { position: sticky; top: 16px; }
.intake-guide { padding: 18px 18px 16px; border-radius: 16px; }
.intake-guide-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.intake-guide-list { display: grid; gap: 8px; }
.intake-guide-item {
  padding: 12px 14px;
  border: 1px solid #eef1f4;
  border-radius: 12px;
  background: #fafbfc;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.intake-guide-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--rms-ink);
}
.intake-guide-item p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--rms-muted);
  line-height: 1.5;
}
.intake-guide-item .intake-guide-note {
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
}
.intake-guide-item.is-active {
  border-color: #99f6e4;
  background: #f0fdfa;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.08);
}
.intake-guide-warn {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eef1f4;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  line-height: 1.45;
}

.hb-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.hb-room-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 14px;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.hb-room-card strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--rms-ink);
  line-height: 1.35;
}
.hb-room-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
}
.hb-room-card:hover { border-color: #99f6e4; background: #f0fdfa; }
.hb-room-card.is-selected {
  border-color: #0f766e;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}
.hb-create-phones { padding: 18px 20px; }
.hb-create-phones-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.hb-create-phones-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.hb-ops-search { margin-bottom: 12px; }
.hb-ops-search-row {
  flex-wrap: nowrap !important;
  min-width: 0;
}
.hb-ops-channel,
.hb-ops-property {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}
.hb-ops-channel { flex: 1 1 180px; }
.hb-ops-property { flex: 1 1 160px; }
.hb-ops-search-split {
  width: 1px;
  align-self: stretch;
  background: var(--rms-line);
  margin: 2px 4px;
  flex: 0 0 auto;
}
.hb-ops-search .rms-search-date { flex: 0 0 auto; white-space: nowrap; }
.hb-ops-search .rms-btn { flex: 0 0 auto; }
.hb-pref-savebar { display: flex; justify-content: flex-end; margin: 14px 0 0; }
.hb-pref-page-head { margin-bottom: 12px; }
.hb-pref-page-head h1 { margin: 0; }
.hb-pref-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.hb-pref-hub-tab {
  padding: 10px 14px;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rms-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.hb-pref-hub-tab:hover { border-color: #99f6e4; background: #f0fdfa; }
.hb-pref-hub-tab.is-active {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}
.hb-pref-group { margin-bottom: 0; }
.hb-pref-tier {
  min-width: 72px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}
.hb-pref-exclude {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.hb-pref-table tr.is-excluded td { color: var(--rms-muted); }
.hb-pref-table tr.is-excluded .rms-name-link { color: var(--rms-muted); }
.hb-target-periods { margin-bottom: 14px; padding: 16px 18px; }
.hb-target-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hb-target-title { margin: 0; font-size: 15px; font-weight: 800; }
.hb-target-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.hb-target-note { flex: 1 1 160px; min-width: 140px; padding: 8px 10px; border: 1px solid var(--rms-line); border-radius: 8px; font: inherit; font-size: 13px; }
.hb-target-checkin { max-width: 280px; }
@media (max-width: 720px) {
  .hb-create-step { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .hb-create-step-num { margin-bottom: 2px; }
  .hb-create-drp-bar { min-width: 0; width: 100%; }
  .hb-create-input,
  .hb-create-guest-row,
  .hb-create-search { max-width: none; }
  .intake-layout { grid-template-columns: 1fr; }
  .intake-aside { position: static; }
}

/* 사업자·인허가 현황 테이블 */
.compliance-table {
  width: 100%;
  border-collapse: collapse;
}
.compliance-table th,
.compliance-table td {
  vertical-align: middle;
}
.compliance-table .cmp-th-check,
.compliance-table .cmp-td-check {
  width: 40px;
  text-align: center;
  white-space: nowrap;
}
.compliance-table .cmp-sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--rms-muted);
}
.compliance-table .cmp-td-docs {
  white-space: nowrap;
}
.compliance-table .cmp-doc-line {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--rms-muted);
}
.compliance-table .cmp-doc-line.is-ok { color: #0f766e; }
.compliance-table .cmp-doc-line.is-bad { color: #b42318; }
.compliance-table .cmp-td-actions {
  white-space: nowrap;
}
.compliance-table .cmp-td-actions .rms-btn {
  display: inline-block;
  margin: 2px 2px 2px 0;
  vertical-align: middle;
}

.insp-run-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}
.insp-run-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
  text-align: right;
  line-height: 1.4;
  white-space: nowrap;
}
.insp-run-status.is-busy { color: #1d4ed8; }
.insp-run-status.is-ok { color: #15803d; }
.insp-run-status.is-fail { color: #b42318; }
.insp-run-form { margin: 0; }
.insp-run-form .rms-btn.is-busy,
.insp-run-form .rms-btn:disabled {
  background: #1d4ed8;
  opacity: 0.92;
  cursor: not-allowed;
  filter: none;
}
.insp-sched {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  background: #fff;
}
.insp-sched-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.insp-sched-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.insp-sched-k { font-size: 12px; font-weight: 700; color: var(--rms-muted); }
.insp-sched-next { font-size: 12px; font-weight: 700; color: #1d4ed8; }
.insp-sched-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }
.insp-sched-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--rms-line);
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
  background: #f8fafc;
}
.insp-sched-chip.is-done { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.insp-sched-chip.is-next { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.insp-sched-chip.is-busy { color: #1d4ed8; border-color: #93c5fd; background: #dbeafe; }
.insp-sched-chip.is-missed { color: #b42318; border-color: #fecaca; background: #fef2f2; }
.insp-log-status { font-weight: 700; }
.insp-log-status.is-ok { color: #15803d; }
.insp-log-status.is-fail { color: #b42318; }
.insp-log-status.is-busy { color: #1d4ed8; }
.insp-log-err { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-search .rms-search-date { display: inline-flex; align-items: center; margin: 0; }
.insp-search .insp-search-q {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 280px;
}
.insp-search .insp-run-drp,
.insp-search .insp-checkin-drp { min-width: 0; }
.insp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 10px;
}
.insp-toolbar .rms-chips { margin: 0; }
.insp-table { min-width: 1280px; }
.insp-table th,
.insp-table td {
  vertical-align: top;
  padding: 10px 10px;
  line-height: 1.45;
}
.insp-table .insp-prop { font-weight: 700; }
.insp-table .insp-sub {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--rms-muted);
}
.insp-table .insp-id {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
}
.insp-table a.insp-id { color: inherit; }
.insp-pay-time .insp-sub { margin-top: 0; }
.insp-pay-line {
  line-height: 1.45;
  white-space: nowrap;
}
.insp-pay-line + .insp-pay-line { margin-top: 3px; }
.insp-stay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.insp-stay-in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}
.insp-stay-nights {
  font-size: 12px;
  line-height: 1.4;
  color: var(--rms-muted);
  white-space: nowrap;
}
.insp-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
}
.insp-status-dd { color: var(--rms-muted); }
.insp-amount {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--rms-ink);
}
.insp-status.is-mismatch,
.insp-status.is-mismatch .insp-status-dd { color: #b42318; font-weight: 700; }
.insp-table .badge.nights {
  flex: 0 0 auto;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 2px 7px;
  white-space: nowrap;
}
.insp-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 280px;
}
.insp-table th:nth-child(9),
.insp-table th:nth-child(10),
.insp-table td.insp-col-review {
  min-width: 160px;
  width: 168px;
}
.insp-flag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.insp-ddnayo-memo {
  margin-top: 6px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.45;
  color: var(--rms-ink);
}
.insp-review { min-width: 148px; max-width: 220px; }
.insp-memo-box { margin: 0; }
.insp-memo-box > summary {
  list-style: none;
  cursor: pointer;
}
.insp-memo-box > summary::-webkit-details-marker { display: none; }
.insp-memo-summary {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.insp-memo-summary.is-action { display: inline-flex; align-items: center; }
.insp-memo-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.insp-memo-stack strong { font-size: 13px; line-height: 1.35; }
.insp-memo-time {
  font-size: 12px;
  line-height: 1.35;
  color: var(--rms-muted);
}
.insp-memo-body {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.4;
  color: var(--rms-ink);
}
.insp-memo-full {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--rms-ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.insp-memo-cta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--rms-ink);
}
.insp-memo-summary.is-action:hover .insp-memo-cta,
.insp-memo-box[open] .insp-memo-cta {
  border-color: #3b82f6;
  color: #1d4ed8;
}
.insp-memo-box.is-edit[open] .insp-memo-stack { display: none; }
.insp-memo-box.is-preview[open] .insp-memo-body { display: none; }
.insp-memo-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.insp-memo-actions { display: flex; gap: 6px; }
.insp-memo-form textarea {
  width: 100%;
  min-height: 52px;
  resize: vertical;
  font: inherit;
  padding: 6px 8px;
  border: 1px solid var(--rms-line);
  border-radius: 8px;
  background: #fff;
}
.insp-row.is-done td { background: #f7fbf8; }
@media (max-width: 1100px) {
  .insp-toolbar { flex-direction: column; align-items: stretch; }
}

.ds-search { margin-bottom: 16px; }
.ds-search .ds-range-drp { min-width: 0; }
.ds-won { margin-left: 2px; font-size: 0.72em; font-weight: 700; color: var(--rms-muted); }
.ds-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.ds-kpis .rms-kpi .v { font-size: 22px; }
.ds-channel-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.ds-kpi-ch { border-left-width: 3px; }
.ds-kpi-ch.ds-ch-yeogi { border-left-color: #eab308; }
.ds-kpi-ch.ds-ch-yanolja { border-left-color: #64748b; }
.ds-kpi-ch.ds-ch-onda { border-left-color: #2563eb; }
.ds-kpi-ch.ds-ch-naver { border-left-color: #03c75a; }
.ds-kpi-ch.ds-ch-ddnayo { border-left-color: #ea580c; }
.ds-channel-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ds-section { margin: 0 0 22px; }
.ds-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}
.ds-section-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.ds-section-head .mo-basis-switch { margin-left: auto; }
.ds-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.ds-day-card {
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  overflow: hidden;
}
.ds-day-card.is-today { border-color: #99f6e4; box-shadow: 0 0 0 1px #ccfbf1; }
.ds-day-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px 10px;
  background: #f8fafb;
  border-bottom: 1px solid var(--rms-line);
}
.ds-day-card.is-weekend .ds-day-head { background: #faf8f5; }
.ds-day-head strong { font-size: 16px; font-weight: 800; }
.ds-dow {
  margin-left: 6px;
  color: var(--rms-muted);
  font-size: 13px;
  font-weight: 700;
}
.ds-today-pill {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}
.ds-day-sum {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-ink);
  text-align: right;
}
.ds-ch-list { list-style: none; margin: 0; padding: 4px 0; }
.ds-ch-row {
  padding: 10px 14px;
  border-left: 3px solid transparent;
}
.ds-ch-row + .ds-ch-row { border-top: 1px solid #f1f4f6; }
.ds-ch-row.ds-ch-yeogi { border-left-color: #eab308; }
.ds-ch-row.ds-ch-yanolja { border-left-color: #64748b; }
.ds-ch-row.ds-ch-onda { border-left-color: #2563eb; }
.ds-ch-row.ds-ch-naver { border-left-color: #03c75a; }
.ds-ch-row.ds-ch-ddnayo { border-left-color: #ea580c; }
.ds-ch-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ds-dl {
  font-size: 12px;
  font-weight: 700;
  color: var(--rms-muted);
  text-decoration: none;
}
.ds-dl:hover { color: var(--rms-blue); }
.ds-ch-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.ds-ch-metrics strong { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.ds-metric-k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--rms-muted);
  margin-bottom: 2px;
}
.ds-month-toolbar { margin-bottom: 10px; }
.ds-card-panel {
  padding: 18px 24px 20px;
}
.panel.ds-card-panel .table-wrap {
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  background: #fff;
  overflow-x: auto;
}
.ds-month-panel { margin-top: 0; }
.ds-month-table { font-variant-numeric: tabular-nums; }
.ds-month-table th.num,
.ds-month-table td.num { text-align: right; }
.ds-month-table thead th { text-align: center; }
.ds-month-table td,
.ds-month-table th { padding: 8px 10px; }
.ds-month-table tr.is-weekend td { background: #faf8f5; }
.ds-month-table tr.is-today td { background: #f0fdfa; }
.ds-month-table tfoot th { background: #f3f4f6; font-weight: 800; }
.ds-month-table tfoot tr.ds-avg-row th { font-weight: 700; color: #64748b; background: #f8fafb; }
.ds-month-table th.ds-ch-yeogi { box-shadow: inset 0 -2px 0 #eab308; }
.ds-month-table th.ds-ch-yanolja { box-shadow: inset 0 -2px 0 #64748b; }
.ds-month-table th.ds-ch-onda { box-shadow: inset 0 -2px 0 #2563eb; }
.ds-month-table th.ds-ch-naver { box-shadow: inset 0 -2px 0 #03c75a; }
.ds-month-table th.ds-ch-ddnayo { box-shadow: inset 0 -2px 0 #ea580c; }
.ds-ddnayo-form { margin: 0; }
.ds-ddnayo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.ds-ddnayo-panel,
.ds-profit-panel { margin-top: 0; }
.ds-ddnayo-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ds-ddnayo-panel .hb-target-head .mo-basis-switch { margin-left: auto; }
.ds-profit-section { margin-top: 4px; }
.ds-profit-ch-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.ds-profit-ch-card { padding: 12px 14px 14px; }
.ds-profit-ch-card .ds-yoy-ch-name { margin-bottom: 6px; }
.ds-profit-ch-card .ds-yoy-ch-k { margin-bottom: 6px; }
.ds-profit-ch-amt {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ds-profit-ch-amt .ds-empty { font-size: 16px; font-weight: 700; }
.ds-profit-ch-card.is-total .ds-profit-ch-amt,
.ds-profit-ch-card.is-total .ds-profit-ch-amt .ds-cell-amt { color: #0f766e; }
.ds-profit-panel .ds-yoy-subhead { margin-bottom: 10px; }
.ds-ddnayo-block { min-width: 0; }
.ds-ddnayo-table,
.ds-profit-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.ds-profit-table col.ds-col-date { width: 88px; }
.ds-profit-table col.ds-col-amt { width: auto; }
.ds-ddnayo-table col.ds-col-date { width: 5.6rem; }
.ds-ddnayo-table col.ds-col-amt { width: auto; }
.ds-ddnayo-table th,
.ds-ddnayo-table td,
.ds-profit-table th,
.ds-profit-table td { padding: 6px 6px; }
.ds-ddnayo-table th.num,
.ds-ddnayo-table td.num,
.ds-profit-table th.num,
.ds-profit-table td.num { text-align: right; }
.ds-ddnayo-table thead th,
.ds-profit-table thead th { text-align: center; }
.ds-ddnayo-table tfoot th,
.ds-profit-table tfoot th { background: #f3f4f6; }
.ds-ddnayo-table tr.is-weekend td,
.ds-profit-table tr.is-weekend td { background: #faf8f5; }
.ds-profit-table tr.is-today td { background: #f0fdfa; }
.ds-profit-table th.ds-ch-yeogi { box-shadow: inset 0 -2px 0 #eab308; }
.ds-profit-table th.ds-ch-yanolja { box-shadow: inset 0 -2px 0 #64748b; }
.ds-profit-table th.ds-ch-onda { box-shadow: inset 0 -2px 0 #2563eb; }
.ds-profit-table th.ds-ch-naver { box-shadow: inset 0 -2px 0 #03c75a; }
.ds-profit-table th.ds-ch-ddnayo { box-shadow: inset 0 -2px 0 #ea580c; }
.ds-ddnayo-table .ds-money,
.ds-ddnayo-out {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: right;
  font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ds-ddnayo-table .ds-money {
  border: 1px solid var(--rms-line);
  background: #fff;
  color: inherit;
}
.ds-ddnayo-table .ds-money::placeholder { color: #c5cbd0; }
.ds-ddnayo-table .ds-money:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.ds-ddnayo-out {
  border: 1px solid transparent;
  background: #f8fafb;
  color: #334155;
}
.ds-ddnayo-out.is-margin { color: #0f766e; }
.ds-ddnayo-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rms-line);
}
.ds-date-cell,
.ds-month-table tfoot th:first-child,
.ds-ddnayo-table tfoot th:first-child,
.ds-profit-table tfoot th:first-child { white-space: nowrap; text-align: center; }
.ds-date-label { display: block; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; }
.ds-date-prev { display: block; margin-top: 2px; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 600; color: var(--rms-muted); }
.ds-cell-amt { display: block; font-weight: 700; letter-spacing: -0.02em; }
.ds-cell-cnt { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--rms-muted); }
.ds-empty { color: #c5cbd0; }
.ds-total-cell .ds-cell-amt { color: #0f766e; }
.ds-charts { display: grid; gap: 12px; margin: 0 0 20px; }
.ds-chart-card {
  background: #fff;
  border: 1px solid var(--rms-line);
  border-radius: 12px;
  padding: 16px 20px 14px;
  min-width: 0;
}
.ds-chart-card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; text-align: center; }
.ds-chart-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ds-chart-year-wrap { height: 240px; }
.ds-share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 8px 12px;
  align-items: center;
  min-height: 250px;
}
.ds-chart-pie-wrap { height: 250px; }
.ds-share-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ds-share-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.2;
}
.ds-share-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 700;
  color: var(--rms-ink);
}
.ds-share-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: 0 0 auto;
}
.ds-share-pct {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--rms-ink);
}
.ds-chart-daily-wrap { height: 250px; }
.ds-day-tables { display: flex; flex-direction: column; gap: 12px; }
.ds-day-tables .ds-card-panel { max-width: 720px; }
.ds-mix-table { table-layout: fixed; width: 100%; }
.ds-mix-table col.ds-mix-ch { width: 88px; }
.ds-mix-table col.ds-mix-share { width: 72px; }
.ds-mix-table th:first-child,
.ds-mix-table td:first-child,
.ds-month-table.ds-mix-table tfoot th:first-child { width: 88px; white-space: nowrap; text-align: left; }
.ds-yoy-table col.ds-yoy-ch { width: 100px; }
.ds-yoy-table col.ds-yoy-share { width: 88px; }
.ds-yoy-table col.ds-yoy-delta { width: 200px; }
.ds-yoy-table th:first-child,
.ds-yoy-table td:first-child,
.ds-month-table.ds-yoy-table tfoot th:first-child { width: 100px; white-space: nowrap; }
.ds-yoy-ch-panel { max-width: none; }
.ds-yoy-ch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.ds-yoy-ch-card {
  min-width: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--rms-line);
  border-radius: 10px;
  background: #fff;
  border-left: 3px solid transparent;
}
.ds-yoy-ch-card.ds-ch-ddnayo { border-left-color: #ea580c; }
.ds-yoy-ch-card.ds-ch-yeogi { border-left-color: #eab308; }
.ds-yoy-ch-card.ds-ch-onda { border-left-color: #2563eb; }
.ds-yoy-ch-card.ds-ch-naver { border-left-color: #03c75a; }
.ds-yoy-ch-card.ds-ch-yanolja { border-left-color: #64748b; }
.ds-yoy-ch-card.is-total { background: #f8fafb; border-left-color: #0f766e; }
.ds-yoy-ch-name { margin-bottom: 10px; }
.ds-yoy-ch-year {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 8px;
}
.ds-yoy-ch-k {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--rms-muted);
}
.ds-yoy-ch-year strong,
.ds-yoy-ch-year .ds-cell-amt { font-size: 15px; }
.ds-yoy-ch-year.is-prev .ds-cell-amt,
.ds-yoy-ch-year.is-prev .ds-empty { font-size: 13px; font-weight: 700; color: var(--rms-muted); }
.ds-yoy-ch-gap { margin-top: 10px; padding-top: 8px; border-top: 1px solid #eef1f3; }
@media (max-width: 1400px) {
  .ds-yoy-ch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-profit-ch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ds-yoy-day-panel { margin-top: 14px; }
.ds-yoy-day-table { width: 100%; min-width: 0; table-layout: fixed; }
.ds-yoy-day-table th,
.ds-yoy-day-table td { padding: 8px 10px; vertical-align: top; }
.ds-yoy-day-table th:first-child,
.ds-yoy-day-table td:first-child,
.ds-month-table.ds-yoy-day-table tfoot th:first-child { width: 96px; vertical-align: middle; }
.ds-yoy-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.ds-yoy-now {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ds-yoy-was {
  font-size: 11px;
  font-weight: 600;
  color: var(--rms-muted);
  font-variant-numeric: tabular-nums;
}
.ds-yoy-stack .ds-delta { font-size: 11px; }
.ds-yoy-stack.is-total .ds-yoy-now { color: #0f766e; }
.ds-yoy-subhead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
}
.ds-yoy-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--rms-muted);
}
.ds-mix-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 10px;
}
.ds-mix-head strong { font-size: 15px; font-weight: 800; }
.ds-share-val {
  display: block;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--rms-muted);
}
.ds-delta { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-delta.is-up { color: #0f766e; }
.ds-delta.is-down { color: #b91c1c; }
.ds-yoy-table thead th[colspan] { text-align: center; }
#ds-run-box.rms-actions { align-items: center; }
#ds-run-box .insp-run-status { text-align: right; }
.sc-nav-btn.is-disabled,
.sc-nav-btn.is-disabled:hover {
  opacity: 0.35;
  pointer-events: none;
  color: var(--rms-ink);
  border-color: var(--rms-line);
}
@media (max-width: 1100px) {
  .ds-channel-kpis,
  .ds-channel-kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-kpis .rms-kpi .v { font-size: 18px; }
  .ds-ddnayo-stack { grid-template-columns: 1fr; }
  .ds-profit-ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-chart-pair { grid-template-columns: 1fr; }
  .ds-share-layout { grid-template-columns: 1fr; min-height: 0; }
  .ds-chart-pie-wrap { height: 220px; }
  .ds-share-legend { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .ds-share-legend li { min-width: 120px; }
}
