/* XINDA ERP · 共享样式（V1 极简白风） */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #1a1a1a;
  --accent: #1a1a1a;
  --accent-soft: #f3f4f6;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.04);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* 通用按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  background: var(--accent); color: white;
  border: 0; border-radius: 8px;
  font-size: 13px; font-weight: 500;
}
.btn:hover { background: #000; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }

/* 通用卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-hd h3 { font-size: 15px; font-weight: 600; }
.card-hd a { color: var(--text-muted); font-size: 12px; }
.card-hd a:hover { color: var(--text); }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left;
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--accent-soft);
}
.tbl td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--accent-soft); }
.tbl .num { font-variant-numeric: tabular-nums; font-weight: 500; }
.tbl a { color: var(--primary); }
.tbl a:hover { text-decoration: underline; }

.tag-status {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--text-muted);
}
.tag-status.success { background: #d1fae5; color: #047857; }
.tag-status.warning { background: #fef3c7; color: #b45309; }
.tag-status.danger  { background: #fee2e2; color: #b91c1c; }
.tag-status.info    { background: #dbeafe; color: #1d4ed8; }

/* 错误/消息提示 */
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
