* { box-sizing: border-box; }
body { font-family: ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0; background: #f6f7f9; color: #1f2328; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h1 { font-size: 20px; margin: 8px 0 4px; }
h1 a { color: inherit; text-decoration: none; }
.muted { color: #656d76; font-size: 13px; }
.card { background: #fff; border: 1px solid #d9dee3; border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
input, select, button, textarea { font: inherit; padding: 5px 8px; border: 1px solid #c9d1d9; border-radius: 6px; background: #fff; }
input:focus, select:focus { outline: 2px solid #79b8ff; border-color: #79b8ff; }
button { background: #1f6feb; color: #fff; border-color: #1f6feb; cursor: pointer; }
button:hover { background: #175bc4; }
button.secondary { background: #fff; color: #cf222e; border-color: #cf222e; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
th, td { border-bottom: 1px solid #e6e9ec; padding: 6px 8px; text-align: left; white-space: nowrap; }
th { background: #f0f2f4; position: sticky; top: 0; cursor: default; }
td.wrap { white-space: normal; word-break: break-all; }
tr.voided td { color: #a0a8b0; text-decoration: line-through; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 12px; }
.badge.confirmed { background: #dafbe1; color: #116329; }
.badge.local { background: #fff8c5; color: #7d4e00; }
.badge.none { background: #eaeef2; color: #656d76; }
.badge.void { background: #ffebe9; color: #cf222e; }
.ok { color: #116329; } .err { color: #cf222e; }
#msg { min-height: 20px; font-size: 13.5px; margin-top: 6px; }
a { color: #1f6feb; }
.stats span { margin-right: 16px; }
