:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2329;
  --muted: #8a8f99;
  --line: #e8eaed;
  --brand: #07c160;
  --brand-dark: #06ad56;
  --danger: #e34d59;
  --radius: 10px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 20px 16px 40px; }
.hidden { display: none !important; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 12px;
}

.title { font-size: 20px; margin: 0 0 4px; font-weight: 600; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

input[type="text"], input[type="password"], select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus { border-color: var(--brand); }

select { background-image: none; padding-right: 12px; }

.hint { color: var(--muted); font-size: 12px; display: block; margin-top: 6px; }

.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-row input { flex: 1; }

.btn-primary {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  font-size: 16px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.btn-primary:active { background: var(--brand-dark); }
.btn-primary:disabled { opacity: .6; }

.link {
  background: none;
  border: 0;
  color: var(--brand);
  font-size: 13px;
  padding: 0;
  cursor: pointer;
}

.msg { min-height: 20px; margin: 12px 0 0; font-size: 13px; color: var(--danger); }
.msg.ok { color: var(--brand); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 12px;
}
.who { font-size: 14px; color: var(--muted); }

.summary {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.summary-item { flex: 1; }
.summary-item .label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.summary-item .net { font-size: 24px; color: var(--brand); font-weight: 600; }
.summary-item .gross { font-size: 16px; color: var(--text); }

.detail { width: 100%; border-collapse: collapse; }
.detail td {
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.detail tr:last-child td { border-bottom: 0; }
.detail td:first-child { color: var(--muted); }
.detail td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.detail tr.total td { font-weight: 600; color: var(--text); }
.detail tr.total td:last-child { color: var(--brand); }
/* 多行明细表头 */
.detail tr.col-head th {
  padding: 10px 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.detail tr.col-head th:last-child { text-align: right; }
/* 多行明细合计行首列 */
.detail td.total-label { color: var(--text) !important; font-weight: 600; }
