*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;font:15px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;background:#f3f5f2;color:#1d2b24}
#app{max-width:1080px;margin:0 auto;padding:16px 14px 80px}
h1{font-size:20px;margin:0}h2{font-size:17px;margin:0 0 10px}h3{font-size:15px;margin:0}
.muted{color:#667085}.small{font-size:13px}.center{text-align:center}.right{margin-left:auto}
.card{background:#fff;border:1px solid #e3e8e1;border-radius:14px;padding:16px;margin:12px 0}
.top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 0 10px}
.top .who{color:#475467;font-size:14px}
button,.btn{font:inherit;border:1px solid #cfd8d0;background:#fff;border-radius:10px;padding:8px 14px;cursor:pointer;color:#1d2b24}
button.primary{background:#1f5c44;border-color:#1f5c44;color:#fff}button.danger{color:#b42318;border-color:#fda29b}
button:disabled{opacity:.5;cursor:default}button.link{border:0;background:none;color:#1f5c44;padding:0 4px;text-decoration:underline}
input,select,textarea{font:inherit;border:1px solid #cfd8d0;border-radius:10px;padding:8px 10px;background:#fff;color:inherit;max-width:100%}
textarea{width:100%;min-height:120px}label{display:grid;gap:4px;font-size:13px;color:#475467}
.form{display:grid;gap:12px;max-width:420px}.form input{width:100%}
.login{max-width:420px;margin:8vh auto 0}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}.tabs button[aria-pressed=true]{background:#1f5c44;color:#fff;border-color:#1f5c44}
.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border-radius:999px;padding:6px 14px}.chip[aria-pressed=true]{background:#e6f0ea;border-color:#1f5c44;font-weight:600}
.chip b{margin-left:6px}
.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:12px 0}.filters input[type=search]{min-width:200px}
.totals{display:flex;gap:18px;flex-wrap:wrap;font-size:14px;color:#475467}.totals b{color:#1d2b24;font-size:16px}
.item{background:#fff;border:1px solid #e3e8e1;border-radius:14px;padding:14px 16px;margin:10px 0;display:grid;gap:8px}
.item.st-rejected{border-color:#f97066;background:#fffbfa}.item.st-submitted{border-color:#fdb022}.item.st-void{opacity:.7}
.item-head{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.item-head h3{font-size:16px}
.meta{display:flex;gap:6px 16px;flex-wrap:wrap;font-size:13px;color:#475467}
.tag{display:inline-block;border-radius:999px;padding:1px 10px;font-size:12px;font-weight:600;white-space:nowrap}
.tag.todo{background:#eff8ff;color:#175cd3}.tag.submitted{background:#fffaeb;color:#b54708}.tag.approved{background:#ecfdf3;color:#067647}.tag.rejected{background:#fef3f2;color:#b42318}.tag.void{background:#f2f4f7;color:#667085}
.tag.ok{background:#ecfdf3;color:#067647}.tag.fail{background:#fef3f2;color:#b42318}.tag.unknown{background:#f2f4f7;color:#667085}
.money{display:flex;gap:18px;flex-wrap:wrap;font-size:14px}.money b{font-size:16px}
.note{background:#fffaeb;border-radius:8px;padding:6px 10px;font-size:13px;color:#7a2e0e}.note.bad{background:#fef3f2;color:#b42318}
.shots{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.shot{position:relative}.shot img{width:72px;height:72px;object-fit:cover;border-radius:8px;border:1px solid #cfd8d0;cursor:zoom-in;display:block}
.shot .x{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;padding:0;line-height:1;background:#b42318;color:#fff;border:0}
.acts{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.acts input{width:130px}.acts .grow{flex:1;min-width:160px}.acts .grow input{width:100%}
.pay{display:flex;gap:10px;flex-wrap:wrap;align-items:end;background:#f7faf7;border-radius:10px;padding:10px}
table{border-collapse:collapse;width:100%;font-size:13px}th,td{border-bottom:1px solid #e3e8e1;padding:6px 8px;text-align:left;vertical-align:top}th{color:#475467;font-weight:600;white-space:nowrap}
.scroll{overflow:auto;max-height:420px}.secret{font:600 18px/1.4 ui-monospace,Menlo,monospace;background:#fffaeb;border:1px dashed #fdb022;border-radius:10px;padding:10px 14px;user-select:all;word-break:break-all}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#1d2b24;color:#fff;padding:10px 18px;border-radius:999px;font-size:14px;z-index:30;max-width:90vw}
.toast.bad{background:#b42318}
.viewer{position:fixed;inset:0;background:rgba(0,0,0,.88);z-index:20;display:flex;align-items:center;justify-content:center;padding:16px}.viewer[hidden]{display:none}
.viewer img{max-width:100%;max-height:100%;border-radius:8px}.viewer-close{position:fixed;top:14px;right:14px;z-index:21}
.sum{display:flex;gap:8px 18px;flex-wrap:wrap;font-size:14px}.sum b{font-size:16px}
[hidden]{display:none!important}
@media (max-width:600px){.acts input{width:110px}.filters label{flex:1 1 44%}.filters input,.filters select{width:100%}}
