* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
body { background: #f3f5f9; color: #222; }
.hidden { display: none !important; }
.login-box { max-width: 320px; margin: 12vh auto; background: #fff; padding: 28px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.login-box h2 { margin-bottom: 18px; text-align: center; color: #1f5fbf; }
.login-box input { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #d9dde3; border-radius: 6px; }
.login-box button { width: 100%; padding: 10px; background: #1f5fbf; color: #fff; border: 0; border-radius: 6px; cursor: pointer; }
.msg { color: #d33; font-size: 13px; margin-top: 8px; text-align: center; }

#app { display: flex; min-height: 100vh; }
aside { width: 200px; background: #1f2a44; color: #cfd6e4; padding: 18px 0; }
aside h3 { color: #fff; text-align: center; margin-bottom: 18px; }
aside nav a { display: block; padding: 12px 22px; cursor: pointer; color: #cfd6e4; }
aside nav a:hover, aside nav a.active { background: #2c3a5e; color: #fff; }
aside .logout { margin: 20px 18px 0; width: calc(100% - 36px); padding: 8px; background: transparent; border: 1px solid #445272; color: #cfd6e4; border-radius: 6px; cursor: pointer; }
main { flex: 1; padding: 24px; overflow: auto; }
.tab { display: none; }
.tab.active { display: block; }
h2.page { margin-bottom: 16px; font-size: 20px; }

.cards { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.card { background: #fff; border-radius: 8px; padding: 16px 20px; min-width: 150px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.card .n { font-size: 26px; font-weight: 700; color: #1f5fbf; }
.card .l { color: #888; font-size: 13px; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
th, td { padding: 10px 12px; border-bottom: 1px solid #eef1f5; font-size: 13px; text-align: left; vertical-align: top; }
th { background: #f6f8fb; color: #555; }
tr:hover { background: #fafbfd; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag.pending { background: #fff3cd; color: #8a6d00; }
.tag.approved { background: #d4edda; color: #1c6b34; }
.tag.rejected { background: #f8d7da; color: #a12828; }
.tag.processing { background: #cce5ff; color: #1452a3; }
.tag.confirming { background: #e2d9ff; color: #5b36c9; }
.tag.completed { background: #d4edda; color: #1c6b34; }
.tag.disputed { background: #f8d7da; color: #a12828; }

button.act { padding: 5px 10px; border: 0; border-radius: 5px; cursor: pointer; margin-right: 6px; font-size: 12px; }
button.ok { background: #1f5fbf; color: #fff; }
button.no { background: #e25555; color: #fff; }
button.ghost { background: #eef1f5; color: #333; }
img.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; margin-right: 4px; cursor: pointer; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: 10px; padding: 22px; max-width: 760px; width: 92%; max-height: 86vh; overflow: auto; }
.modal-box h3 { margin-bottom: 14px; }
.row { margin-bottom: 10px; }
.modal-box img { max-width: 120px; margin: 4px; border: 1px solid #eee; border-radius: 4px; }
input.inp { padding: 8px; border: 1px solid #d9dde3; border-radius: 6px; width: 220px; }
.close { float: right; cursor: pointer; color: #999; font-size: 20px; }
