* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6f8; color: #1f2933; }
header { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #1f7a7a; color: #fff; }
.brand { font-weight: 700; font-size: 18px; }
.who { margin-left: auto; opacity: .9; font-size: 14px; }
button { cursor: pointer; border: none; border-radius: 8px; padding: 9px 16px; background: #1f7a7a; color: #fff; font-size: 14px; }
button.ghost { background: rgba(255,255,255,.18); }
button:hover { filter: brightness(1.08); }
.card { background: #fff; border-radius: 12px; padding: 18px 20px; margin: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
h2 { margin: 0 0 14px; font-size: 16px; }
label { display: block; margin: 10px 0; font-size: 13px; color: #52606d; }
input, select, textarea { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #cbd2d9; border-radius: 8px; font-size: 14px; font-family: inherit; }
.row { display: flex; gap: 14px; } .row label { flex: 1; }
.row.wrap { flex-wrap: wrap; }
.muted { color: #7b8794; } .small { font-size: 12px; }
.err { color: #e12d39; font-size: 13px; }
.ok { color: #1f7a7a; font-size: 13px; }
.badge { background: #f08307; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 6px; }
.login-wrap { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-card { background: #fff; padding: 30px 28px; border-radius: 14px; width: 320px; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.login-card h1 { margin: 0 0 4px; color: #1f7a7a; font-size: 20px; }
.login-card input { margin: 8px 0; }
.emp { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.hist-item { border-top: 1px solid #edf1f5; padding: 8px 0; font-size: 13px; }
.dash table { width: 100%; border-collapse: collapse; font-size: 14px; }
details.card summary { cursor: pointer; font-weight: 700; color: #1f7a7a; }
.pad-top { margin-top: 12px; }
.twrap { overflow-x: auto; }
.twrap table { min-width: 560px; }
.dash th, .dash td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #edf1f5; }
.dash th { color: #7b8794; font-weight: 600; }
tr.miss { background: #fff8e1; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-box { background: #fff; border-radius: 12px; padding: 22px; width: 460px; max-width: 92vw; max-height: 86vh; overflow: auto; }
.modal-box .close { float: right; }
.modal-box p { font-size: 14px; line-height: 1.6; }
@media (max-width: 720px) { .emp { grid-template-columns: 1fr; } }

/* 工作台 Tab 导航 */
.tabs { display: flex; gap: 4px; padding: 0 20px; background: #fff; border-bottom: 1px solid #edf1f5; }
.tab { border: none; background: transparent; color: #52606d; border-radius: 0; padding: 12px 16px; font-size: 14px; border-bottom: 3px solid transparent; }
.tab:hover { background: #f4f6f8; }
.tab.active { color: #1f7a7a; font-weight: 700; border-bottom-color: #1f7a7a; }
.row.between { display: flex; align-items: center; justify-content: space-between; }
label.check { display: flex; align-items: center; gap: 6px; }
label.check input { width: auto; margin: 0; }
.grid { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.grid th, .grid td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #edf1f5; }
.grid th { color: #7b8794; font-weight: 600; }
.grid button { padding: 5px 10px; font-size: 12px; margin-right: 4px; }
.badge.off { background: #9aa5b1; }
.modal-box input, .modal-box select { margin: 8px 0; }

/* 待办中心 / 审批 */
.badge.red { background: #e12d39; color: #fff; }
.list { margin-top: 6px; }
.todo-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #edf1f5; font-size: 14px; }
.todo-item button { flex: none; }
.warn { color: #f08307; font-size: 13px; }
.data-block { background: #f4f6f8; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.9; margin: 8px 0; }
.modal-box h4 { margin: 14px 0 4px; color: #52606d; font-size: 13px; }
button.danger { background: #e12d39; }
/* 看板 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.stat { background: #f4f6f8; border-radius: 10px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 22px; color: #1f7a7a; }
.stat span { font-size: 12px; color: #7b8794; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 10px; }
.charts h3 { font-size: 14px; margin: 0 0 6px; color: #52606d; }
.ai-box { margin-top: 16px; border: 1px dashed #1f7a7a; border-radius: 10px; padding: 14px; }
.ai-tag { display: inline-block; background: #1f7a7a; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 6px; margin: 0 0 8px; }
.ai-text { font-size: 14px; line-height: 1.8; white-space: normal; }
.code { background: #2b2f36; color: #e6e6e6; padding: 12px; border-radius: 8px; font-size: 12px; overflow: auto; max-height: 300px; }
@media (max-width: 720px) { .charts { grid-template-columns: 1fr; } }

/* 附件 */
.filelist { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #eef6f5; border: 1px solid #bcdad7; color: #1f7a7a; font-size: 12px; padding: 3px 8px; border-radius: 12px; }
.chip a { color: #c0392b; cursor: pointer; text-decoration: none; font-weight: 700; }
.atts { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.att { display: inline-block; background: #f3f5f7; border: 1px solid #dfe4e8; color: #2b6cb0; font-size: 12px; padding: 2px 8px; border-radius: 6px; text-decoration: none; }
.att:hover { background: #e8eef6; }
