/* ==================== 后台 · 积分商城管理 ==================== */
.coin-subtabs { display: flex; gap: 4px; border-bottom: 1px solid #e2e8f0; margin-bottom: 14px; }
.coin-subtab { padding: 8px 18px; font-size: 13px; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; user-select: none; }
.coin-subtab:hover { color: #1b4f8a; }
.coin-subtab.active { color: #ff5722; border-bottom-color: #ff5722; font-weight: 600; }

.coin-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.coin-stat { flex: 1; min-width: 110px; background: #fff; border: 1px solid #e8eef5; border-radius: 8px; padding: 12px 14px; }
.coin-stat .n { font-size: 22px; font-weight: 800; color: #1b4f8a; line-height: 1.1; }
.coin-stat .n.warn { color: #f59e0b; }
.coin-stat .n.ok { color: #10b981; }
.coin-stat .n.gray { color: #94a3b8; }
.coin-stat .t { font-size: 12px; color: #94a3b8; margin-top: 4px; }

.coin-low { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.coin-low .chip { background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; border-radius: 14px; padding: 3px 12px; font-size: 12px; }
.coin-low .chip b { color: #ea580c; }

/* 表格内元素 */
.adm-coin-img { width: 42px; height: 42px; object-fit: contain; border: 1px solid #f1f5f9; border-radius: 4px; background: #fffaf7; vertical-align: middle; }
.st-待发货 { background: #fff3e0; color: #ef6c00; }
.st-已发货 { background: #e3f2fd; color: #1565c0; }
.st-已完成 { background: #e8f5e9; color: #2e7d32; }
.st-已取消 { background: #f5f5f5; color: #9e9e9e; }
.co-st { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.co-no { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #475569; }
.co-addr { font-size: 12px; color: #64748b; line-height: 1.6; }
.co-addr b { color: #334155; }
.co-pts { color: #ff5722; font-weight: 700; }
.co-exp { font-size: 12px; color: #1565c0; }
.co-remark { font-size: 12px; color: #94a3b8; }

.cst { width: 68px; height: 26px; padding: 0 6px; border: 1px solid #cbd5e1; border-radius: 4px; text-align: center; font-size: 13px; outline: none; }
.cst:focus { border-color: #ff5722; }
.cst.low { color: #ea580c; border-color: #fdba74; }
.cst-input { width: 96px; height: 28px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 13px; outline: none; }
.cst-input:focus { border-color: #1b4f8a; }

/* 积分发放面板 */
.coin-pts-search { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.coin-pts-search input { width: 340px; height: 32px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; outline: none; }
.coin-pts-search input:focus { border-color: #1b4f8a; }
.coin-pts-tip { margin-top: 14px; padding: 10px 14px; background: #f8fafc; border-left: 3px solid #94a3b8; border-radius: 4px; font-size: 12px; color: #64748b; line-height: 1.8; }
.co-pt-in { width: 88px; height: 28px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 13px; outline: none; text-align: center; }
.co-pt-rs { width: 160px; height: 28px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 13px; outline: none; }

/* 发货弹窗（独立命名空间，避免与前台 coinShop 样式冲突） */
.ac-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ac-modal { background: #fff; border-radius: 10px; width: 440px; max-width: 100%; box-shadow: 0 16px 48px rgba(15,23,42,.28); overflow: hidden; }
.ac-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #eef2f7; font-size: 15px; font-weight: 700; color: #1e293b; }
.ac-x { background: none; border: none; font-size: 22px; line-height: 1; color: #94a3b8; cursor: pointer; }
.ac-x:hover { color: #334155; }
.ac-bd { padding: 16px 18px; }
.ac-row { display: flex; align-items: center; margin-bottom: 12px; }
.ac-row > label { flex: 0 0 76px; font-size: 13px; color: #64748b; }
.ac-row input { flex: 1; height: 34px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; outline: none; }
.ac-row input:focus { border-color: #1b4f8a; }
.ac-goods { background: #fffaf7; border: 1px solid #ffe0d0; border-radius: 6px; padding: 10px 12px; font-size: 13px; color: #475569; margin-bottom: 14px; line-height: 1.7; }
.ac-goods b { color: #1e293b; }
.ac-ft { padding: 12px 18px; border-top: 1px solid #eef2f7; display: flex; justify-content: flex-end; gap: 10px; }
.ac-btn { border: none; border-radius: 6px; padding: 8px 20px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ac-btn.primary { background: #1b4f8a; color: #fff; }
.ac-btn.primary:hover { background: #163f6e; }
.ac-btn.ghost { background: #f1f5f9; color: #64748b; }
.ac-btn.ghost:hover { background: #e2e8f0; }
