/* MALL 셸: 왼쪽 메뉴 + 오른쪽 iframe */
.mall-shell {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 1600px;
  margin: 0;
  margin-right: auto;
  padding: 8px 16px 16px;
  box-sizing: border-box;
  min-height: calc(100vh - 88px);
}
.mall-nav {
  width: 88px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.mall-nav-link,
.mall-nav-btn {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  justify-content: center;
  padding: 6px 4px;
  min-height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.mall-nav-link:hover,
.mall-nav-btn:hover {
  border-color: #a5b4fc;
  background: #eef2ff;
  color: #312e81;
}
.mall-nav-link.active,
.mall-nav-btn.active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #312e81;
}
.mall-nav-sep {
  height: 1px;
  margin: 4px 2px;
  background: #e2e8f0;
}
.mall-nav-sub {
  display: none;
  flex-direction: column;
  gap: 3px;
  margin: -1px 0 2px 8px;
}
.mall-nav-sub.is-open,
.mall-nav-sub:not([hidden]) {
  display: flex;
}
.mall-nav-sub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 2px;
  min-height: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
.mall-nav-sub-btn:hover {
  border-color: #a5b4fc;
  background: #eef2ff;
  color: #312e81;
}
.mall-nav-sub-btn.active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #312e81;
}
.mall-main {
  flex: 1;
  min-width: 0;
  min-height: calc(100vh - 104px);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.mall-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 106px);
  border: 0;
  background: #fff;
}
body.embed-mode #nav-container,
body.embed-mode #footer-container {
  display: none !important;
}
body.embed-mode {
  background: #fff;
}
body.embed-mode .mall-page {
  padding: 12px 14px 16px;
  max-width: none;
}

.mall-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.mall-toolbar-left,
.mall-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mall-new-product-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  padding: 16px;
}
.mall-new-product-modal.hidden { display: none; }
.mall-new-product-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 18px 18px 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}
.mall-new-product-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.mall-new-product-field {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  height: 36px;
  margin-bottom: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.mall-new-product-field:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.mall-new-product-field > span {
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
  background: #f8fafc;
  color: #475569;
}
.mall-new-product-field input,
.mall-new-product-field select {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
  outline: none;
  box-shadow: none;
}
.mall-new-product-field input[readonly] {
  background: #f8fafc;
  color: #94a3b8;
}
.mall-new-product-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.mall-assign-card { width: min(420px, 100%); }
.mall-assign-del {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff;
}
.mall-assign-del:hover:not(:disabled) { background: #fef2f2; }
.mall-assign-name {
  margin: -4px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
@keyframes mall-new-code-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}
.mall-new-code-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: mall-new-code-blink 0.9s step-end infinite;
  cursor: pointer;
}
.mall-new-code-btn:hover { background: #4338ca; }
.mall-status {
  font-size: 12px;
  color: #64748b;
}
.mall-status.is-error { color: #dc2626; font-weight: 700; }
.mall-table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  max-height: calc(100vh - 180px);
}
.mall-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}
.mall-placeholder {
  padding: 48px 20px;
  text-align: center;
  color: #64748b;
}
.mall-placeholder h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #334155;
}
.mall-login-gate {
  padding: 48px 20px;
  text-align: center;
}
.mall-onoff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.mall-onoff.selling { background: #dcfce7; color: #166534; }
.mall-onoff.stopped { background: #fee2e2; color: #991b1b; }
.mall-onoff.ended { background: #f1f5f9; color: #64748b; }
.mall-onoff.other { background: #e2e8f0; color: #475569; }
.mall-opt-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 1px 8px;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.mall-opt-count:hover,
.mall-opt-count.is-open {
  background: #dbeafe;
  border-color: #3b82f6;
}
.mall-opt-empty {
  color: #94a3b8;
}
#mallKakaoTable thead th:has(.mall-opt-sort) {
  position: relative;
  z-index: 40;
  overflow: visible;
}
.mall-opt-sort {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.mall-opt-sort[data-nav-tooltip]::after {
  content: none;
}
.mall-opt-pin-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px;
}
.mall-opt-pin-label {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}
.mall-opt-pin-input {
  width: 140px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}
.mall-opt-pin-input:focus {
  outline: 2px solid #93c5fd;
  border-color: #3b82f6;
}
.mall-opt-pin-note {
  font-size: 12px;
  color: #64748b;
}
.mall-opt-detail-row td {
  background: #f8fafc;
  padding: 8px 10px;
  text-align: left;
}
.mall-opt-dl-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  position: relative;
  z-index: 4;
}
.mall-opt-dl-bar [data-nav-tooltip]::after {
  bottom: auto;
  top: calc(100% + 0.2cm);
  margin-bottom: 0;
}
.mall-opt-link-part[data-nav-tooltip]::after {
  content: none;
}
.mall-opt-link-float {
  position: fixed;
  z-index: 2147483647;
  margin: 0;
  padding: 6px 10px;
  background: var(--nav-accent, #4f46e5);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.mall-opt-dl-bar .shop-export-file-btns .shop-detail-export-btn.file-dl {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}
.mall-opt-nopt-btn {
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 10px;
  cursor: pointer;
}
.mall-opt-nopt-btn:hover {
  background: #f1f5f9;
}
.mall-opt-edit-frame {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.35);
}
.mall-opt-edit-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.mall-opt-detail-wrap {
  max-height: 280px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.mall-opt-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.mall-opt-detail-table th,
.mall-opt-detail-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.mall-opt-detail-table th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  font-weight: 800;
  color: #334155;
}
.mall-opt-detail-table th.mall-opt-sales,
.mall-opt-detail-table td.mall-opt-sales {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  width: 1%;
}
.mall-opt-detail-table th.mall-opt-sabang {
  background: #ecfdf5;
  color: #166534;
}
.mall-opt-detail-table td.mall-opt-sabang {
  text-align: left;
  background: #f8fafc;
}
.mall-opt-detail-table td.mall-opt-sku {
  cursor: pointer;
  color: #047857;
  font-weight: 800;
}
.mall-opt-detail-table td.mall-opt-sku:hover {
  background: #ecfdf5;
}
.mall-opt-sku-input {
  width: 4.8rem;
  height: 1.6rem;
  box-sizing: border-box;
  border: 1px solid #6ee7b7;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: #065f46;
}
.mall-opt-detail-table td.mall-opt-name {
  cursor: pointer;
  color: #047857;
  font-weight: 800;
}
.mall-opt-detail-table td.mall-opt-name:hover {
  background: #ecfdf5;
}
.mall-opt-name-input {
  width: 100%;
  min-width: 7rem;
  height: 1.6rem;
  box-sizing: border-box;
  border: 1px solid #6ee7b7;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: #065f46;
}
.mall-opt-detail-table th.mall-opt-link,
.mall-opt-detail-table td.mall-opt-link {
  max-width: 280px;
  white-space: normal;
  word-break: break-all;
}
.mall-opt-link-part {
  cursor: default;
}
.mall-opt-design-cell {
  white-space: nowrap;
}
.mall-opt-design-text {
  margin-right: 4px;
}
.mall-opt-del-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 4px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}
.mall-opt-del-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
}
.mall-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.mall-kind.danpum { background: #ffedd5; color: #9a3412; }
.mall-kind.set { background: #dbeafe; color: #1e40af; }
.mall-kind.opt { background: transparent; color: transparent; }
.shop-search-input {
  height: 32px;
  min-width: 248px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
.mall-ended-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.mall-ended-filter input {
  margin: 0;
}
.shop-upload-name {
  font-size: 12px;
  color: #475569;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mall-sabang-map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.mall-sabang-map-title {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  margin-right: 4px;
}
.mall-sabang-map-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.mall-sabang-map-field select {
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
}
.mall-sabang-slot,
.mall-sabang-file,
.mall-sabang-date {
  font-size: 12px;
  color: #64748b;
}
.mall-sabang-file {
  font-weight: 700;
  color: #0f172a;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.embed-mode .mall-sabang-page {
  padding: 12px 14px 16px;
}
body.embed-mode .mall-sabang-page .shop-sabang-preview-table-wrap {
  max-height: calc(100vh - 260px);
}

.mall-excel-menu {
  min-width: 128px;
}
.mall-excel-menu .mall-excel-menu-group {
  padding: 4px 8px 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.mall-excel-menu button {
  padding-left: 16px;
  text-align: left;
  justify-content: flex-start;
  border-radius: 6px;
}
.mall-excel-menu .mall-slot-hover {
  position: absolute;
  right: calc(100% + 8px);
  min-width: 220px;
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  font-size: 11px;
  line-height: 1.6;
  color: #334155;
  white-space: normal;
  word-break: break-all;
  pointer-events: none;
  z-index: 60;
}
.mall-excel-menu .mall-slot-hover[hidden] {
  display: none;
}
.mall-excel-menu .mall-slot-hover-title {
  margin-bottom: 2px;
  font-weight: 800;
  color: #0f172a;
}
.mall-excel-menu .mall-slot-hover-key {
  display: inline-block;
  min-width: 48px;
  font-weight: 700;
  color: #64748b;
}
.mall-excel-menu .mall-excel-menu-sep {
  height: 1px;
  margin: 4px 2px;
  background: #e2e8f0;
}
