/* 文玩订单后台：在模板组件之外的少量页面样式，只使用 tokens.css 的变量。
   模板的 tokens / components / layout / vendor-theme / pages 不改动。 */

[hidden] { display: none !important; }

/* 管理入口：功能卡片 */
.entry-card { display: block; color: inherit; transition: box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.entry-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.entry-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-3); background: var(--brand-soft); color: var(--brand-text); font-size: 16px; }
.entry-title { margin-top: var(--sp-3); font-size: var(--fs-16); font-weight: 600; }
.entry-desc { margin-top: 4px; font-size: var(--fs-13); color: var(--text-3); }

/* 表格行可点击（操作日志、导入批次） */
.table tbody tr[data-id] { cursor: default; }
.table tbody tr.is-link { cursor: pointer; }
.table tbody tr.is-link:hover td { background: var(--surface-2); }

/* 订单转交 */
.transfer-pick { width: 100%; max-width: 420px; justify-content: space-between; text-align: left; }
.transfer-pick-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer-pick-text:not(.sub) { color: var(--text); }
.transfer-status { gap: var(--sp-4); }

/* 页面底部操作栏（转交、导入） */
.action-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-size: var(--fs-13);
}

/* 聊天记录原文与格式示例 */
.code-sample {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r-3);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font: var(--fs-12) / 1.6 var(--font-mono, ui-monospace, monospace);
  white-space: pre-wrap;
  word-break: break-all;
}
.code-sample.is-fold { max-height: 4.8em; overflow: hidden; cursor: pointer; }
.card.is-dim { opacity: .72; }

/* 识别结果键值列表 */
.kv { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px var(--sp-3); margin: 0; font-size: var(--fs-13); }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; word-break: break-all; }

/* 接口用量页嵌入的平台页面 */
.usage-frame { display: block; width: 100%; height: calc(100vh - 220px); min-height: 520px; border: 0; border-radius: inherit; background: var(--surface); }

/* 全屏等待（App.loading 无按钮时） */
body.is-busy { cursor: progress; }
body.is-busy::after { content: ""; position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / .08); }

@media (max-width: 720px) {
  .action-bar { flex-wrap: wrap; }
  .usage-frame { height: calc(100vh - 180px); min-height: 420px; }
}

/* 员工手机号登录页、登录提示页（沿用模板 .auth 登录布局） */
.auth-code .input-wrap { min-width: 0; }
.auth-code-btn { flex: none; height: 38px; min-width: 112px; }
.auth-hint { min-height: 1.5em; margin: -4px 0 0; color: rgb(238 240 244 / .62); }
.auth-hint.is-error { color: #ff9a9a; }
.auth-alt { margin-top: var(--sp-3); }
.auth-note { margin-top: var(--sp-5); font-size: var(--fs-12); line-height: 1.7; color: rgb(238 240 244 / .55); }
.auth-notice-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--sp-4); border-radius: var(--r-4); background: var(--brand-soft); color: var(--brand-text); font-size: 18px; }
.auth-card .auth-sub { margin-bottom: var(--sp-6); }

/* 复选框文字不换行（手机宽度下一行放不下时整个选项换到下一行，而不是逐字折行） */
.check { white-space: nowrap; }
