/* web-admin 管理台样式（05 票）：冻结原型 Variant A 桌面化 IA（spec §5.2）。
   手写、不进构建（无 CSS pipeline）；配色沿原型（主色 #4d6bfe，五状态 pill 各色）。 */

* {
  box-sizing: border-box;
}

/* [hidden] 必须压过一切 display 声明（.more/.batch-bar 等自带 display 的元素
   靠它做显隐切换，UA 默认规则会被类选择器盖掉） */
[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f6f7fb;
  color: #1f2733;
}

button {
  font-family: inherit;
}

.mut {
  color: #a0a5bb;
  font-size: 12px;
}

/* ---- 登录门 ---- */

.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f9;
  padding: 16px;
}


.gate-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 34px;
  width: 380px;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 14px 40px rgb(20 25 60 / 14%);
}

.brand {
  margin: 0;
  font-size: 19px;
}

.gate .sub {
  margin: 4px 0 16px;
  color: #8a90a8;
  font-size: 12px;
}

/* 扫码区（04 票·方案 B：浏览器本地渲染普通二维码） */

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr {
  width: 184px;
  height: 184px;
  border: 1px solid #e4e7f2;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr svg {
  width: 168px;
  height: 168px;
}

.qr.expired {
  opacity: 0.35;
}

.qr-hint {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.code-line {
  margin: 0;
  color: #555c78;
  font-size: 12px;
}

.code {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 1px;
  font-weight: 600;
  color: #1f2733;
}

.ttl {
  margin-left: 8px;
  color: #b6bacb;
  font-size: 11px;
}

.ghost {
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  background: #eef0f7;
  color: #333a55;
}

.ghost:disabled {
  opacity: 0.6;
  cursor: wait;
}

.qr-steps {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b6bacb;
  font-size: 11px;
  margin: 16px 0 8px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid #e8eaf3;
}

.gate-form {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.gate-form input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #d9dcec;
  border-radius: 8px;
  font-size: 14px;
}

.gate-form button {
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  background: #4d6bfe;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.gate-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.gate .error {
  margin: 12px 0 0;
  color: #e53935;
  font-size: 12px;
  min-height: 16px;
}

.gate .foot {
  margin: 12px 0 0;
  color: #b6bacb;
  font-size: 11px;
  line-height: 1.7;
}

.icp-record {
  margin: 12px 0;
  text-align: center;
  font-size: 12px;
  flex: none;
}

.icp-record a {
  color: #687083;
}

/* ---- 管理台壳 ---- */

.app {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f6f7fb;
}


.topbar {
  background: #fff;
  border-bottom: 1px solid #e8eaf3;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  flex: none;
}

.topbar .brand {
  font-weight: 700;
  font-size: 15px;
}

.poll-state {
  font-size: 11px;
  color: #9aa1b8;
}

.spacer {
  flex: 1;
}

.icon-btn {
  position: relative;
  border: none;
  background: #f0f2f8;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
}

.icon-btn:hover {
  background: #e6e9f4;
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff6b5e;
  color: #fff;
  font-size: 10px;
  border-radius: 999px;
  padding: 1px 5px;
  min-width: 16px;
}

.session-chip {
  font-size: 12px;
  color: #555c78;
  background: #eef4ff;
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---- 共用页头与门店壳（06 票独占区；07/08/12/13/15 不得修改本节） ---- */

.prop-anchor {
  position: relative;
  flex: none;
}

.prop-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c9d1ef;
  background: #f8f9ff;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
  color: #1f2733;
}

.prop-trigger:hover:not(:disabled) {
  border-color: #4d6bfe;
}

.prop-trigger:disabled {
  cursor: default;
  opacity: 0.85;
}

.prop-label {
  font-size: 10px;
  color: #8a90a8;
}

.prop-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prop-caret {
  font-size: 11px;
  color: #7a8098;
}

.prop-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: 290px;
  max-width: 80vw;
  background: #fff;
  border: 1px solid #dfe3ef;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgb(25 38 68 / 16%);
  padding: 6px;
}

.prop-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 7px;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.prop-choice:hover {
  background: #f2f4fb;
}

.prop-choice.current {
  background: #edf0ff;
  color: #3554d5;
}

.prop-choice-name {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prop-choice-mark {
  color: #9aa1b8;
  flex: none;
}

.prop-manage {
  flex: none;
}

.prop-notice {
  margin: 0;
  padding: 7px 18px;
  background: #fff7e6;
  color: #8a5b00;
  font-size: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #f3e2bd;
}

.prop-notice #prop-notice-text {
  flex: 1;
}

.prop-veil {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #f6f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.prop-veil-card {
  max-width: 430px;
  width: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid #e8eaf3;
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 10px 30px rgb(20 25 60 / 8%);
}

.prop-veil-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.prop-veil-sub {
  color: #7a8098;
  font-size: 13px;
  line-height: 1.7;
}

.prop-veil-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.loading-lines {
  margin: 18px auto 0;
  max-width: 100%;
}

.loading-lines i {
  display: block;
  height: 34px;
  margin: 9px 0;
  background: #eef1f8;
  border-radius: 6px;
}

.prop-confirm {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(23 34 56 / 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.prop-confirm-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  width: 400px;
  max-width: 100%;
  box-shadow: 0 18px 50px rgb(20 25 60 / 22%);
}

.prop-confirm-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.prop-confirm-card p {
  margin: 0 0 18px;
  color: #6d768e;
  font-size: 13px;
  line-height: 1.7;
}

.prop-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.danger-btn {
  border: none;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 13px;
  cursor: pointer;
  background: #c6464b;
  color: #fff;
}

.danger-btn:hover {
  background: #b23b40;
}

/* 12 票门店管理根容器（06 预留基座；内部样式归 12 的专属区） */
.prop-manage-root {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgb(23 34 56 / 35%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow: auto;
}

/* 13 票店码预览/下载根容器（06 预留基座；内部样式归 13 的专属区） */
.store-code-root {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: rgb(23 34 56 / 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tabs {
  display: flex;
  gap: 22px;
  background: #fff;
  padding: 0 18px;
  border-bottom: 1px solid #e8eaf3;
  flex: none;
}

.tab {
  padding: 10px 2px;
  font-size: 14px;
  color: #7a8098;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
}

.tab.on {
  color: #4d6bfe;
  font-weight: 600;
  border-bottom-color: #4d6bfe;
}

.view-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.view {
  height: 100%;
  overflow-y: auto;
  padding: 14px 18px 24px;
}


/* ==== 选择单专属区（07 票；仅 07 修改本节） ==== */

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.chip-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.chip {
  display: inline-block;
  background: #eceef6;
  border: none;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  cursor: pointer;
  color: #333a55;
}

.chip.on {
  background: #4d6bfe;
  color: #fff;
}

.phone-input {
  border: 1px solid #d9dcec;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  width: 190px;
  margin-left: auto;
}

.phone-hint {
  margin: -4px 0 8px;
  color: #c77700;
  font-size: 12px;
}

.inline-msg {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fdecea;
  color: #c0392b;
  font-size: 13px;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 10px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: 0 2px 8px rgb(20 25 60 / 5%);
}

.card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-hd .phone {
  font-size: 15px;
  word-break: break-all;
  text-align: left;
}

.card-hd-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: none;
}

.skip-tag {
  font-size: 11px;
  color: #8a90a8;
  background: #f0f1f5;
  border-radius: 6px;
  padding: 2px 8px;
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.st-pending {
  background: #fff3e2;
  color: #c77700;
}

.st-prepared {
  background: #e8efff;
  color: #3554d5;
}

.st-delivered {
  background: #f3e8ff;
  color: #7a3fd4;
}

.st-returned {
  background: #e7f7ec;
  color: #22884a;
}

.st-cancelled {
  background: #f0f1f5;
  color: #8a90a8;
}

.card-items {
  margin: 8px 0;
}

.item-chip {
  display: inline-block;
  background: #f0f2f8;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  margin: 1px 2px 1px 0;
}

.card-meta {
  font-size: 11px;
  color: #a0a5bb;
}

.card-acts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.flow-btn {
  border: none;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 13px;
  cursor: pointer;
  background: #4d6bfe;
  color: #fff;
}

.flow-btn.danger {
  background: none;
  color: #d9534f;
  text-decoration: underline;
  padding: 7px 4px;
}

.more {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: 1px dashed #c3c9de;
  color: #7a8098;
  border-radius: 10px;
  padding: 8px 22px;
  font-size: 13px;
  cursor: pointer;
}

.more:disabled {
  opacity: 0.6;
  cursor: wait;
}

.batch-bar {
  position: sticky;
  bottom: 0;
  margin-top: 12px;
  background: #1d2030;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.link-btn {
  background: none;
  border: none;
  color: #9aa1b8;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.primary-btn {
  border: none;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 13px;
  cursor: pointer;
  background: #4d6bfe;
  color: #fff;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #b6bacb;
  padding: 36px;
  font-size: 13px;
}

/* ==== 外设库专属区（08 票；仅 08 修改本节） ==== */

.per-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.per-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 860px;
}

.p-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgb(20 25 60 / 5%);
  cursor: pointer;
  border-top: 2px solid transparent;
}

.p-row.off {
  opacity: 0.55;
}

.p-row.dragging {
  opacity: 0.4;
}

/* 拖拽插线指示：悬停目标行上边线（插入到其前） */
.p-row.drag-over {
  border-top-color: #4d6bfe;
}

.p-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f4f5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}

.p-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-main {
  flex: 1;
  min-width: 0;
}

.p-name {
  font-size: 14px;
  font-weight: 600;
}

.p-cat {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 400;
  color: #3554d5;
  background: #e8efff;
  border-radius: 6px;
  padding: 1px 7px;
  vertical-align: 1px;
}

.p-sub {
  font-size: 11px;
  color: #a0a5bb;
  margin-top: 2px;
}

.p-desc {
  font-size: 12px;
  color: #8a90a8;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 步进器（行内库存直输 + 面板初始库存共用） */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: none;
}

.stepper button {
  width: 26px;
  height: 26px;
  border: 1px solid #d9dcec;
  background: #f6f7fb;
  border-radius: 7px 0 0 7px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.stepper button:last-child {
  border-radius: 0 7px 7px 0;
  border-left: none;
}

.stepper button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stepper input {
  width: 46px;
  height: 26px;
  border: 1px solid #d9dcec;
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 13px;
  padding: 0;
}

/* 上下架开关（纯 CSS 模拟 switch） */
.p-switch {
  flex: none;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  border: none;
  background: #d5d9e8;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}

.p-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}

.p-switch.on {
  background: #4d6bfe;
}

.p-switch.on::after {
  left: 18px;
}

.p-move {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
}

.p-move button {
  border: none;
  background: #f0f2f8;
  border-radius: 6px;
  padding: 2px 9px;
  font-size: 12px;
  cursor: pointer;
}

.p-move button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- 侧滑编辑面板 ---- */

.per-mask {
  position: absolute;
  inset: 0;
  background: rgb(20 25 60 / 18%);
  z-index: 5;
}

.per-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 92%;
  background: #fff;
  border-radius: 16px 0 0 16px;
  box-shadow: -12px 0 36px rgb(20 25 60 / 14%);
  z-index: 6;
  display: flex;
  flex-direction: column;
}

.per-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}

.per-panel-hd h3 {
  margin: 0;
  font-size: 16px;
}

.per-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 12px;
}

.per-panel-ft {
  display: flex;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid #eef0f7;
}

.per-panel-ft .primary-btn {
  flex: 1;
}

.f-label {
  display: block;
  font-size: 12px;
  color: #7a8098;
  margin: 12px 0 6px;
}

.per-panel-body input[type='text'],
.per-panel-body select,
.per-panel-body textarea {
  width: 100%;
  border: 1px solid #d9dcec;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 13px;
  font-family: inherit;
}

.per-panel-body textarea {
  resize: vertical;
}

.per-img-box {
  width: 100%;
  height: 130px;
  border: 1px dashed #c3c9de;
  border-radius: 12px;
  background: #f8f9fd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #7a8098;
  padding: 0;
  overflow: hidden;
}

.per-img-box:hover {
  border-color: #4d6bfe;
}

.per-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#per-img-hint.bad {
  color: #c0392b;
}

#per-edit-hint {
  line-height: 1.7;
  margin: 12px 0 0;
}

/* ==== 门店管理专属区（12 票；仅 12 修改本节） ==== */

/* 面板卡片：覆盖在管理台上，内部滚动；列表为空时仍有创建表单可用 */
.pm-card {
  width: min(1040px, 100%);
  max-height: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgb(20 25 60 / 22%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pm-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #eef0f7;
}

.pm-hd h3 {
  margin: 0;
  font-size: 17px;
}

.pm-sub {
  margin: 4px 0 0;
  color: #8a90a8;
  font-size: 12px;
  line-height: 1.6;
}

.pm-body {
  padding: 14px 20px 20px;
  overflow-y: auto;
}

/* ---- 创建 / 改名表单 ---- */

.pm-create,
.pm-rename {
  background: #f8f9fd;
  border: 1px solid #e6e9f4;
  border-radius: 12px;
  padding: 10px 14px 12px;
  margin-bottom: 12px;
}

.pm-create .f-label {
  margin-top: 0;
}

.pm-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-row input[type='text'] {
  flex: 1;
  min-width: 0;
  border: 1px solid #d9dcec;
  border-radius: 8px;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 13px;
  color: #1f2733;
  background: #fff;
}

.pm-row input[type='text']:focus {
  outline: none;
  border-color: #4d6bfe;
  box-shadow: 0 0 0 3px rgb(77 107 254 / 12%);
}

.pm-row input[type='text']:disabled {
  background: #f1f3f9;
  color: #7a8098;
  cursor: not-allowed;
}

.pm-row .primary-btn,
.pm-row .ghost {
  flex: none;
}

.pm-hint {
  margin: 6px 0 0;
  color: #9aa1b8;
  font-size: 11px;
  line-height: 1.6;
}

.pm-rename-hd {
  font-size: 13px;
  font-weight: 600;
  color: #333a55;
  margin-bottom: 8px;
  word-break: break-all;
}

/* ---- 创建结果提示（拒绝 / 结果不明 / 核对 / 成功） ---- */

.pm-msg {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  background: #f4f6fd;
  color: #333a55;
}

.pm-msg.bad {
  background: #fdecea;
  color: #c0392b;
}

.pm-msg.warn {
  background: #fff7e6;
  color: #8a5b00;
}

.pm-msg.ok {
  background: #eefaf1;
  color: #1d6f3f;
}

.pm-msg p {
  margin: 0 0 4px;
}

.pm-msg p:last-child {
  margin-bottom: 0;
}

.pm-msg .pm-note {
  color: inherit;
  opacity: 0.78;
}

.pm-msg .ok {
  font-weight: 600;
}

.pm-msg .bad {
  color: #c0392b;
}

.pm-new-list {
  margin: 4px 0 6px;
  padding-left: 18px;
}

.pm-new-list li {
  margin: 2px 0;
  word-break: break-all;
}

.pm-rename .pm-msg {
  margin: 8px 0 0;
}

/* ---- 列表 ---- */

.pm-list-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 8px;
}

.pm-list-title {
  font-size: 13px;
  font-weight: 600;
  color: #333a55;
}

.pm-loading,
.pm-error,
.pm-empty {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.pm-loading {
  background: #f4f6fd;
  color: #555c78;
}

.pm-error {
  background: #fdecea;
  color: #c0392b;
  line-height: 1.7;
}

.pm-empty {
  background: #f8f9fd;
  color: #8a90a8;
  text-align: center;
}

.pm-table-wrap {
  border: 1px solid #eef0f7;
  border-radius: 10px;
  overflow: auto;
}

.pm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pm-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8f9fd;
  color: #7a8098;
  font-weight: 500;
  font-size: 12px;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #e6e9f4;
  white-space: nowrap;
}

.pm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f3f9;
  vertical-align: middle;
}

.pm-table tbody tr:last-child td {
  border-bottom: none;
}

.pm-table tbody tr.main td:first-child {
  box-shadow: inset 3px 0 0 #4d6bfe;
}

.pm-table tbody tr.new {
  background: #f2fbf4;
}

.pm-name {
  font-weight: 600;
  color: #1f2733;
  word-break: break-all;
}

.pm-id {
  margin-top: 2px;
  color: #9aa1b8;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  word-break: break-all;
}

.pm-tag {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: #4d6bfe;
  font-size: 11px;
  font-weight: 500;
}

.pm-scene {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: #333a55;
  background: #f4f6fd;
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: 0.5px;
}

.pm-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pm-status.pending {
  background: #fff7e6;
  color: #8a5b00;
}

.pm-status.ok {
  background: #eefaf1;
  color: #1d6f3f;
}

.pm-status-hint {
  display: block;
  margin-top: 3px;
  color: #9aa1b8;
  font-size: 11px;
  white-space: nowrap;
}

.pm-actions {
  white-space: nowrap;
}

.pm-act {
  padding: 4px 10px;
  font-size: 12px;
}

.pm-actions > * + * {
  margin-left: 6px;
}

@media (max-width: 720px) {
  .prop-manage-root {
    padding: 16px 10px;
  }

  .pm-body {
    padding: 10px 12px 14px;
  }

  .pm-row {
    flex-wrap: wrap;
  }

  .pm-row input[type='text'] {
    flex-basis: 100%;
  }

  .pm-table th,
  .pm-table td {
    padding: 8px;
  }
}

/* ==== 店码专属区（13 票预留；仅 13 修改本节） ==== */
.store-code-root {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 65;
  background: #11182780;
  padding: 24px 12px;
  overflow: auto;
}

.sc-card {
  margin: 0 auto;
  width: 100%;
  max-width: 540px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 64px #11182740;
}

.sc-head, .sc-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-head { justify-content: space-between; }
.sc-head h2 { margin: 0; font-size: 18px; }
.sc-name { margin: 18px 0 4px; overflow-wrap: anywhere; }
.sc-identity { color: #7a8098; font-size: 12px; overflow-wrap: anywhere; }
.pm-status.sc-unavailable { background: #fff7e6; color: #8a5b00; }
.sc-image { display: block; width: 100%; max-width: 360px; margin: 16px auto; }
.sc-placeholder { padding: 50px 12px; margin: 16px 0; background: #f8f9fd; text-align: center; color: #7a8098; }
.sc-message { color: #8a5b00; line-height: 1.7; }
.sc-note, .sc-original-hint { font-size: 12px; color: #7a8098; line-height: 1.7; }
.sc-original { text-decoration: none; display: inline-block; }

/* ---- toast ---- */

.toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #1d2030;
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  z-index: 100;
  max-width: 80vw;
}

.toast.bad {
  background: #8c1d18;
}
