/* SRM / CRM 共享样式（并入 ERP 主程序版，2026-11-02）—— 主程序农品色板 */
* { box-sizing:border-box; }
:root {
  --brand:#1E4B3A; --brand-2:#2c5a44; --gold:#D2AF6B;
  --bg:#f5f6f4; --text:#1f2329; --muted:#86909c; --line:#e3e6e5;
}
body {
  margin:0; font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--bg); color:var(--text); font-size:14px;
}
.m-head {
  display:flex; align-items:center; gap:9px; background:#fff;
  border-radius:12px; margin:12px 12px 0; padding:9px 12px;
}
.m-head .lg { flex:none; display:flex; align-items:center; font-size:15px; font-weight:600; color:var(--brand); letter-spacing:1px; }
.m-head .ht { font-size:14px; font-weight:600; color:var(--brand); flex:1; }
.m-head .rt { flex:none; font-size:12px; color:var(--muted); }
.mlink { color:var(--brand); cursor:pointer; text-decoration:none; }
.wrap { max-width:1080px; margin:0 auto; padding:0 12px 40px; }
.panel {
  background:#fff; border:1px solid var(--line); border-radius:12px;
  padding:16px 18px; margin-top:14px;
}
.panel h3 { font-size:15px; color:var(--brand); margin:0 0 4px; font-weight:600; }
.hint { font-size:12.5px; color:var(--muted); line-height:1.85; margin:0 0 12px; }
.hint b { color:var(--brand); }
.hint code { background:#f4f6f5; border-radius:4px; padding:1px 6px; font-size:12px; color:#5b6169; }
.toolbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
button {
  height:34px; padding:0 16px; border-radius:8px; font-size:13.5px;
  border:1px solid var(--line); background:#fff; color:#333; cursor:pointer;
}
button.pri { background:var(--brand); color:#fff; border-color:var(--brand); }
button.gold { background:var(--gold); border-color:var(--gold); color:#3a2f10; }
button:disabled { opacity:.55; }
input, select, textarea {
  height:34px; border:1px solid var(--line); border-radius:8px; padding:0 10px;
  font-size:13.5px; outline:none; background:#fff; color:var(--text);
}
input:focus, select:focus, textarea:focus { border-color:var(--brand); }
textarea { height:auto; padding:8px 10px; line-height:1.6; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th, td { text-align:left; padding:9px 8px; border-bottom:1px solid #f0f2f1; }
th { color:var(--muted); font-weight:500; font-size:12.5px; }
.tag { display:inline-block; font-size:12px; padding:2px 9px; border-radius:9px; background:#eef; color:#3b6ea5; }
.tag.pending { background:#fff3e0; color:#b26a00; }
.tag.awarded { background:#e7f4ec; color:#1e7a3d; }
.tag.lost { background:#fdeeee; color:#c0392b; }
.tag.draft { background:#f0f2f1; color:#5b6169; }
.tag.approved { background:#e7f4ec; color:#1e7a3d; }
.tag.void { background:#fdeeee; color:#c0392b; }
.msg { font-size:12.5px; color:var(--muted); }
.msg.ok { color:#1e7a3d; }
.msg.bad { color:#d54941; }
.err {
  background:#fdecee; border:1px solid #f5c2c7; color:#d54941; font-size:12.5px;
  padding:9px 12px; border-radius:8px; display:none; line-height:1.8;
}
.err.show { display:block; }
.empty { text-align:center; color:var(--muted); font-size:13px; padding:34px 10px; }
.mask {
  position:fixed; inset:0; background:rgba(15,25,20,.45); display:none;
  align-items:center; justify-content:center; z-index:40;
}
.mask.on { display:flex; }
.box {
  background:#fff; border-radius:14px; padding:20px 22px;
  width:min(720px,94vw); max-height:88vh; overflow:auto;
}
.box h3 { margin:0 0 12px; font-size:16px; color:var(--brand); }
.frow { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.frow label { font-size:12.5px; color:#5b6169; display:flex; align-items:center; gap:6px; }
.frow label input, .frow label select { flex:1; min-width:150px; }
.items { border:1px solid var(--line); border-radius:10px; padding:10px; margin:10px 0; }
.irow { display:flex; gap:8px; align-items:center; margin-bottom:8px; flex-wrap:wrap; }
.irow input { width:120px; }
.irow .nm { flex:1; min-width:140px; }
.tot { text-align:right; font-size:13px; color:var(--muted); margin:6px 0 12px; }
.tot b { color:var(--brand); font-size:15px; }
/* 登录页 */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.login-box { width:380px; max-width:94vw; background:#fff; border-radius:16px; padding:28px 26px; box-shadow:0 2px 20px rgba(20,40,30,.06); }
.login-box h1 { font-size:18px; color:var(--brand); margin:0 0 4px; font-weight:600; text-align:center; }
.login-box .sub { font-size:12.5px; color:var(--muted); text-align:center; margin:0 0 20px; }
.login-box .field { margin-bottom:12px; }
.login-box .field input { width:100%; height:40px; }
.login-box button { width:100%; height:40px; margin-top:4px; }
.login-box .tip { font-size:12px; color:var(--muted); margin-top:14px; text-align:center; line-height:1.8; }
/* 工作台入口 */
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; margin-top:6px; }
.card {
  background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px;
  cursor:pointer; transition:border-color .15s;
}
.card:hover { border-color:var(--brand); }
.card .ic { font-size:20px; }
.card .tt { font-size:14px; font-weight:600; color:var(--brand); margin:8px 0 4px; }
.card .ds { font-size:12px; color:var(--muted); line-height:1.7; }
