* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
       background: #f4f6f9; color: #222; font-size: 15px; }
header { background: #1a5fb4; color: #fff; padding: 12px 16px;
         display: flex; justify-content: space-between; align-items: center; }
header a { color: #fff; text-decoration: none; font-size: 14px; }
main { padding: 14px; max-width: 720px; margin: 0 auto; }
h2 { font-size: 18px; margin: 6px 0 12px; }
h3 { font-size: 16px; margin: 14px 0 8px; }
.card { background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px;
         font-size: 12px; background: #e8f0fe; color: #1a5fb4; }
.badge.warn { background: #fef3e0; color: #b26a00; }
.badge.ok { background: #e6f4ea; color: #137333; }
.badge.rej { background: #fce8e6; color: #c5221f; }
.btn { display: inline-block; border: none; border-radius: 8px; padding: 10px 18px;
       background: #1a5fb4; color: #fff; font-size: 15px; text-decoration: none;
       cursor: pointer; margin: 4px 4px 4px 0; }
.btn.secondary { background: #6b7280; }
.btn.danger { background: #c5221f; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.full { width: 100%; }
label { display: block; font-size: 13px; color: #555; margin: 8px 0 4px; }
input, select, textarea { width: 100%; padding: 9px; border: 1px solid #ccc;
       border-radius: 6px; font-size: 15px; background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid4 label { margin: 0 0 2px; }
fieldset { border: 1px solid #d9dee6; border-radius: 8px; padding: 10px; margin: 10px 0; }
legend { font-weight: 600; padding: 0 8px; color: #1a5fb4; }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
th, td { border: 1px solid #d9dee6; padding: 6px 8px; text-align: center; }
th { background: #eef2f7; }
td.left { text-align: left; }
.muted { color: #888; font-size: 13px; }
.num-diff { color: #c5221f; font-weight: 600; }
.bal { font-size: 13px; margin-top: 6px; min-height: 18px; }
.bal.bad { color: #c5221f; font-weight: 600; }
.bal.ok { color: #137333; }
.import-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; flex-wrap: wrap; }
.import-msg { font-size: 13px; color: #555; }
.import-msg.ok { color: #137333; }
.import-msg.bad { color: #c5221f; }
.paste-row { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 10px; flex-wrap: wrap; }
.paste-row .paste-box { flex: 1; min-width: 200px; min-height: 44px; font-size: 13px; }
.flow-item { padding: 8px 0; border-bottom: 1px dashed #e5e5e5; font-size: 14px; }
textarea { min-height: 60px; }

/* ---- 审批人弹窗选人 ---- */
.modal { position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; align-items:center; justify-content:center; z-index:99; padding:16px }
.modal-box { background:#fff; border-radius:12px; width:100%; max-width:420px; max-height:80vh; display:flex; flex-direction:column; padding:14px }
.modal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px }
#pickerSearch { width:100%; margin-bottom:8px }
#pickerList { overflow-y:auto; flex:1 }
.tree-root { font-size:15px; font-weight:700; padding:9px 8px 9px 4px; border-bottom:1px solid #e8ecf3; display:flex; gap:6px; align-items:center }
.picker-group { padding-left:18px }
.picker-group-title { font-size:14px; font-weight:600; color:#333; background:#f2f4f8; padding:11px 10px; border-radius:8px; margin-top:6px; cursor:pointer; display:flex; align-items:center; gap:8px; user-select:none }
.picker-group-title:active { background:#e8eef7 }
.tg-arrow { color:#1a5fb4; font-size:12px; transition:transform .15s }
.picker-group.collapsed .picker-item { display:none }
.picker-item { padding:10px 10px 10px 32px; border-bottom:1px solid #f5f5f5; cursor:pointer; font-size:15px; display:flex; align-items:center; gap:10px }
.picker-item:active { background:#eef4ff }
.pick-box { width:15px; height:15px; border:1.5px solid #b9c2d0; border-radius:3px; flex:none; position:relative; background:#fff }
.picker-item.picked { background:#eaf2ff; font-weight:600 }
.picker-item.picked .pick-box { border-color:#1a5fb4; background:#1a5fb4 }
.picker-item.picked .pick-box::after { content:''; position:absolute; left:4px; top:1px; width:4px; height:8px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg) }
.picker-foot { display:flex; justify-content:space-between; align-items:center; padding-top:10px }
.picker-display { padding:11px; border:1px solid #d8dee9; border-radius:8px; background:#fff; color:#98a2b3; font-size:15px; cursor:pointer }
.picker-display.has-value { color:#1a1f36 }
