/* 审批模板配置页（web/appr_tpl.js）。只用壳令牌：--sh-*、语义色 --ok/--warn/--bad；
   字阶 13/16/20/24、圆角 8/12/16/999、间距 4 的倍数；不另造组件。 */
.atp { max-width: 960px; margin: 0 auto; padding: 24px; font-size: 16px; line-height: 24px; color: var(--sh-ink); }
.atp .at-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.at-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--sh-line); }
.at-head h1 { font-size: 24px; line-height: 32px; font-weight: 700; margin: 0; }
.at-head .at-sentence { font-size: 16px; color: var(--sh-ink2); margin: 0; }
.at-head .at-sentence b { color: var(--sh-ink); }
.at-stats { display: flex; gap: 24px; }
.at-stat { display: flex; flex-direction: column; }
.at-stat-n { font-size: 20px; font-weight: 700; line-height: 28px; }
.at-stat-n.at-bump { color: var(--sh-blue); }
.at-stat-l { font-size: 13px; line-height: 20px; color: var(--sh-ink2); }

.at-sec { margin-top: 24px; }
.at-sec h2 { font-size: 16px; line-height: 24px; font-weight: 700; margin: 0 0 12px; }
.at-note, .at-muted { font-size: 13px; line-height: 20px; color: var(--sh-ink2); margin: 12px 0 0; }

.at-table-wrap { overflow-x: auto; }
.at-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.at-table th { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--sh-ink2); text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--sh-line); white-space: nowrap; }
.at-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--sh-line); vertical-align: top; }
.at-cell-t { font-weight: 600; }
.at-cell-m { display: block; font-size: 13px; line-height: 20px; color: var(--sh-ink2); }

.at-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 13px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.at-chip.ok { color: var(--ok, #067647); background: var(--ok-bg, #ecfdf3); }
.at-chip.warn { color: var(--warn, #b54708); background: var(--warn-bg, #fffaeb); }
.at-chip.muted { color: var(--sh-ink2); background: var(--sh-blue-soft, #f0f5f9); }

.at-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--sh-line); border-radius: 8px; background: var(--sh-surface); color: var(--sh-ink); font-size: 16px; line-height: 24px; cursor: pointer; }
.at-btn.primary { background: var(--sh-blue); border-color: var(--sh-blue); color: #fff; }
.at-btn:disabled { opacity: .5; cursor: not-allowed; }
.at-btn.small { min-height: 32px; padding: 4px 12px; font-size: 13px; line-height: 20px; }
.at-link { background: none; border: 0; padding: 0; color: var(--sh-blue); font-size: 16px; line-height: 24px; cursor: pointer; white-space: nowrap; }
.at-link:disabled { opacity: .5; cursor: not-allowed; }

.at-empty { padding: 48px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.at-empty .at-ico { width: 24px; height: 24px; color: var(--sh-ink2); }
.at-empty b { font-size: 16px; }
.at-empty span { font-size: 13px; color: var(--sh-ink2); }

.at-errbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bad-bg, #fef3f2); color: var(--bad, #b42318); border-radius: 8px; padding: 12px 16px; font-size: 13px; line-height: 20px; margin-top: 16px; }
.at-banner { background: var(--sh-blue-soft, #f0f5f9); border-radius: 8px; padding: 12px 16px; font-size: 13px; line-height: 20px; margin-bottom: 16px; }

.at-skel { padding: 8px 0; }
.at-skel i { display: block; height: 20px; border-radius: 8px; background: var(--sh-blue-soft, #f0f5f9); margin: 12px 0; animation: at-breathe 1.4s ease-in-out infinite alternate; }
.at-slow { font-size: 13px; color: var(--sh-ink2); margin: 8px 0 0; }
@keyframes at-breathe { from { opacity: .5; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .at-skel i { animation: none; } }

.at-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--sh-ink); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 16px; line-height: 24px; z-index: 1200; white-space: nowrap; }

.at-drawer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 24px 12px; border-bottom: 1px solid var(--sh-line); }
.at-drawer-bar h2 { font-size: 20px; line-height: 28px; margin: 0; }
.at-drawer-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.at-drawer-foot { display: flex; gap: 12px; justify-content: flex-end; padding-top: 8px; }
.at-kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
.at-kv dt { color: var(--sh-ink2); font-size: 13px; }
.at-kv dd { margin: 0; }
.at-f { display: flex; flex-direction: column; gap: 8px; }
.at-f > span { font-size: 13px; font-weight: 600; color: var(--sh-ink2); }
.at-f input[type="text"], .at-ctrl-row input[type="text"], .at-ctrl-row select { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--sh-line); border-radius: 8px; font-size: 16px; line-height: 24px; background: var(--sh-surface); color: var(--sh-ink); box-sizing: border-box; }
.at-check { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; cursor: pointer; }
.at-check input { width: 20px; height: 20px; accent-color: var(--sh-blue); }
.at-err { color: var(--bad, #b42318); font-size: 13px; line-height: 20px; }
.at-ctrl-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; padding: 12px 0; border-top: 1px solid var(--sh-line); }
.at-ctrl-row label { display: flex; flex-direction: column; gap: 4px; }
.at-ctrl-row label span { font-size: 13px; color: var(--sh-ink2); }
.at-ctrl-row .at-err { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .atp { padding: 16px; }
  .at-head h1 { font-size: 20px; line-height: 28px; }
  .at-btn, .at-link { min-height: 44px; }
  .at-drawer-foot .at-btn { flex: 1; }
  .at-ctrl-row { grid-template-columns: 1fr; }
  .at-kv { grid-template-columns: 1fr; gap: 4px; }
}
