/* 报价协同平台 - 全局蓝色主题样式 */
:root {
  --blue-900: #0B3C82;
  --blue-800: #124BA6;
  --blue-700: #1A5FD0;
  --blue-600: #2A72E8;
  --blue-400: #7FB0F5;
  --blue-200: #C8DDFB;
  --blue-100: #E6F0FF;
  --blue-50:  #F3F8FF;
  --ink:      #1E2C3E;
  --ink-2:    #3C4E66;
  --muted:    #7084A0;
  --line:     #DCE7F7;
  --line-2:   #EAF1FB;
  --bg:       #F1F6FD;
  --white:    #FFFFFF;
  --red:      #D81E1E;
  --red-bg:   #FFF1F1;
  --green:    #12A05C;
  --orange:   #E08A10;
  --shadow:   0 2px 10px rgba(22, 74, 150, .07);
  --shadow-lg:0 12px 38px rgba(16, 58, 122, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6;
}
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-900); }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #C4D8F3; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  height: 62px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; color: #fff; position: sticky; top: 0; z-index: 40;
  background: linear-gradient(100deg, var(--blue-900) 0%, var(--blue-700) 58%, var(--blue-600) 100%);
  box-shadow: 0 2px 12px rgba(11, 60, 130, .22);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
  font-size: 16px; font-weight: 800;
}
.brand small { display: block; font-size: 11px; font-weight: 400; opacity: .78; letter-spacing: 1.5px; }
.topbar-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.role-pill {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  padding: 4px 12px; border-radius: 20px; font-size: 12px;
}
.user-name { font-weight: 600; }
.btn-logout, .btn-top {
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.34);
  border-radius: 7px; padding: 6px 14px; cursor: pointer; transition: .18s;
}
.btn-logout:hover, .btn-top:hover { background: rgba(255,255,255,.28); }

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: calc(100vh - 62px); }
.sidebar {
  width: 218px; flex: 0 0 218px; background: var(--white); border-right: 1px solid var(--line);
  padding: 18px 12px; position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto;
}
.side-title { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; padding: 6px 12px 10px; }
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin-bottom: 5px;
  border-radius: 8px; color: var(--ink-2); cursor: pointer; font-weight: 500; transition: .16s;
  border-left: 3px solid transparent;
}
.side-item:hover { background: var(--blue-50); color: var(--blue-700); }
.side-item.active {
  background: var(--blue-100); color: var(--blue-800); font-weight: 700;
  border-left-color: var(--blue-700);
}
.side-item .ico { font-size: 16px; width: 20px; text-align: center; }
.side-foot {
  margin-top: 22px; padding: 12px; border-radius: 9px; background: var(--blue-50);
  font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); line-height: 1.7;
}
.main { flex: 1; padding: 26px 30px 50px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 21px; color: var(--blue-900); font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.page-section { display: none; }
.page-section.active { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden;
}
.card-head {
  padding: 15px 20px; border-bottom: 1px solid var(--line-2); display: flex;
  align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--blue-50), #fff);
}
.card-head h3 { margin: 0; font-size: 15px; color: var(--blue-900); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head h3::before { content: ""; width: 4px; height: 15px; background: var(--blue-700); border-radius: 3px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 7px; border: 1px solid var(--blue-200);
  background: var(--white); color: var(--blue-700); cursor: pointer; font-weight: 600;
  transition: .16s; white-space: nowrap;
}
.btn:hover { background: var(--blue-50); border-color: var(--blue-400); }
.btn-primary {
  background: var(--blue-700); border-color: var(--blue-700); color: #fff;
  box-shadow: 0 2px 6px rgba(26, 95, 208, .2);
}
.btn-primary:hover { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.btn-danger { background: #fff; border-color: #F3C7C7; color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: var(--red); }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  background: var(--blue-100); color: var(--blue-900); font-weight: 700; text-align: left;
  padding: 11px 13px; white-space: nowrap; border-bottom: 1px solid var(--blue-200);
}
table.tbl td { padding: 11px 13px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tbl tbody tr:hover { background: var(--blue-50); }
table.tbl tbody tr:last-child td { border-bottom: none; }
.cell-sub { color: var(--muted); font-size: 11px; margin-top: 2px; }
.nowrap { white-space: nowrap; }
.tc { text-align: center; }
.tr { text-align: right; }

/* 单价：红色字体（平台统一规范） */
.price { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.price-lg { color: var(--red); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-unit { font-size: 12px; color: var(--muted); font-weight: 400; }
.price-box { background: var(--red-bg); border: 1px solid #FAD7D7; border-radius: 9px; padding: 10px 14px; }

/* ---------------- 标签 ---------------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-blue { background: var(--blue-100); color: var(--blue-800); }
.badge-green { background: #E4F7ED; color: var(--green); }
.badge-orange { background: #FFF3DE; color: var(--orange); }
.badge-gray { background: #EEF2F7; color: var(--muted); }
.badge-red { background: var(--red-bg); color: var(--red); }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.form-item label .req { color: var(--red); margin-left: 3px; }
.form-item .hint { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.inp, select.inp, textarea.inp {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px;
  background: #FCFDFF; color: var(--ink); outline: none; transition: .16s;
}
.inp:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(42,114,232,.12); background: #fff; }
textarea.inp { resize: vertical; min-height: 70px; }
input[type=file].inp { padding: 7px; font-size: 12px; }
.file-note { font-size: 11px; color: var(--muted); margin-top: 5px; }
.secret-field { border-color: var(--blue-200); background: var(--blue-50); }
.inline-radio { display: flex; gap: 18px; padding-top: 9px; }
.inline-radio label { font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 5px; margin: 0; cursor: pointer; }

/* ---------------- 提示条 ---------------- */
.alert {
  padding: 12px 16px; border-radius: 9px; font-size: 12.5px; line-height: 1.7;
  border-left: 4px solid var(--blue-600); background: var(--blue-50); color: var(--ink-2);
  margin-bottom: 18px;
}
.alert.warn { border-left-color: var(--orange); background: #FFF8EC; }
.alert strong { color: var(--blue-900); }
.alert.warn strong { color: #A76508; }

/* ---------------- 概览统计 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: var(--blue-50); }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 28px; font-weight: 800; color: var(--blue-800); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .v.red { color: var(--red); }
.stat .d { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------------- 供应商端：横向项目列表（待报价置顶并绿色突出） ---------------- */
.proj-list { display: flex; flex-direction: column; gap: 11px; }
.grp-head {
  display: flex; align-items: center; gap: 10px; margin: 20px 0 10px;
  font-size: 14px; font-weight: 800; color: var(--blue-900);
  padding-bottom: 8px; border-bottom: 2px solid var(--blue-200);
}
.grp-head:first-child { margin-top: 2px; }
.grp-head .cnt { background: var(--blue-100); color: var(--blue-800); border-radius: 20px; padding: 1px 10px; font-size: 12px; }
.grp-head .tip { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: auto; }
.grp-head.pending { color: #0A7C46; border-bottom-color: #A9E2C5; }
.grp-head.pending .cnt { background: #DDF5E8; color: #0A7C46; }
.proj-row {
  display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; overflow: hidden; box-shadow: var(--shadow);
}
.pr-stripe { flex: 0 0 6px; background: var(--blue-600); }
.pr-main { flex: 1; min-width: 0; padding: 14px 18px; }
.pr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pr-title { font-size: 16px; font-weight: 800; color: var(--blue-900); }
.pr-code { font-size: 11.5px; color: var(--muted); letter-spacing: .4px; }
.pr-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; margin-top: 8px; color: var(--ink-2); }
.pr-meta i { font-style: normal; color: var(--muted); margin-right: 4px; }
.pr-sub { margin-top: 8px; font-size: 11.8px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 5px 14px; align-items: center; }
.pr-side {
  flex: 0 0 240px; border-left: 1px dashed var(--line); background: #FBFDFF;
  padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 9px;
}
.pr-side .btn-row2 { display: flex; flex-wrap: wrap; gap: 7px; }
.pr-side .st-line { font-size: 11.5px; color: var(--muted); }
.countdown { font-size: 12px; color: var(--orange); font-weight: 700; }
.proj-row.pending {
  border-color: #8ED9B4; background: linear-gradient(100deg, #F0FBF5 0%, #fff 46%);
  box-shadow: 0 3px 14px rgba(18, 160, 92, .13);
}
.proj-row.pending .pr-stripe { background: var(--green); }
.proj-row.pending .pr-side { background: #F4FCF7; border-left-color: #B7E7CE; }
.proj-row.pending .pr-title { color: #0A7C46; }
.proj-row.pending .countdown { color: var(--green); }
.btn-green, .btn-green:hover { background: var(--green); border-color: var(--green); color: #fff; }
.badge-pending { background: #DDF5E8; color: #0A7C46; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 5px 8px; font-size: 12.5px; margin-bottom: 12px; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink-2); }
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; background: var(--blue-50);
  border: 1px solid var(--line); color: var(--blue-800); border-radius: 6px;
  padding: 3px 9px; font-size: 11.5px;
}
.chip:hover { background: var(--blue-100); }

/* ---------------- 弹窗 ---------------- */
.mask {
  position: fixed; inset: 0; background: rgba(11, 40, 85, .46); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 13px; width: 100%; max-width: 720px;
  box-shadow: var(--shadow-lg); animation: pop .2s ease; margin-bottom: 30px;
}
.modal.wide { max-width: 940px; }
.modal.slim { max-width: 460px; }
@keyframes pop { from { opacity: 0; transform: translateY(-14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head {
  padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, var(--blue-50), #fff);
}
.modal-head h3 { margin: 0; font-size: 16px; color: var(--blue-900); }
.modal-close { border: none; background: transparent; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--blue-800); }
.modal-body { padding: 22px; max-height: 68vh; overflow-y: auto; }
.modal-foot {
  padding: 14px 22px; border-top: 1px solid var(--line); display: flex;
  justify-content: flex-end; gap: 10px; background: #FBFDFF;
}

/* ---------------- 其它 ---------------- */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); font-size: 13px; }
.empty .big { font-size: 34px; display: block; margin-bottom: 8px; opacity: .5; }
.divider { height: 1px; background: var(--line-2); margin: 18px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; } .mb10 { margin-bottom: 10px; }
.toast-wrap { position: fixed; top: 76px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 9px; }
.toast {
  min-width: 230px; max-width: 380px; padding: 11px 16px; border-radius: 9px; color: #fff;
  background: var(--blue-800); box-shadow: var(--shadow-lg); font-size: 13px; animation: fade .2s ease;
}
.toast.ok { background: #12855A; } .toast.err { background: #C53030; }
.export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.export-card {
  border: 1px solid var(--line); border-radius: 11px; padding: 20px; background: #fff;
}
.export-card h4 { margin: 0 0 8px; color: var(--blue-900); font-size: 15px; }
.export-card p { color: var(--muted); font-size: 12.5px; margin: 0 0 16px; min-height: 42px; }
.info-list { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; font-size: 13px; }
.info-list .k { color: var(--muted); }
.info-list .v { color: var(--ink); font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------------- 登录页 ---------------- */
.login-page { min-height: 100vh; display: flex; background: #fff; }
.login-left {
  flex: 1; min-width: 380px; padding: 60px 56px; color: #fff; display: flex; flex-direction: column;
  justify-content: center; position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--blue-900) 0%, var(--blue-700) 62%, var(--blue-600) 100%);
}
.login-left::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.05); right: -170px; bottom: -200px;
}
.login-left h1 { font-size: 38px; margin: 0 0 12px; letter-spacing: 2px; }
.login-left .sub { font-size: 15px; opacity: .82; margin-bottom: 46px; letter-spacing: 1px; }
.login-points { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 2; }
.login-point { display: flex; gap: 14px; align-items: flex-start; }
.login-point .n {
  width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.16);
  display: grid; place-items: center; font-weight: 700; flex: 0 0 30px; border: 1px solid rgba(255,255,255,.25);
}
.login-point b { display: block; font-size: 14px; margin-bottom: 2px; }
.login-point span { font-size: 12px; opacity: .78; }
.login-right { flex: 1; min-width: 400px; display: grid; place-items: center; padding: 40px; background: var(--bg); }
.login-box { width: 100%; max-width: 390px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px 32px; box-shadow: var(--shadow-lg); }
.login-box h2 { margin: 0 0 6px; color: var(--blue-900); font-size: 22px; }
.login-box .tip { color: var(--muted); font-size: 12.5px; margin-bottom: 24px; }
.role-tabs { display: flex; background: var(--blue-50); border-radius: 9px; padding: 4px; margin-bottom: 22px; border: 1px solid var(--line); }
.role-tab { flex: 1; text-align: center; padding: 9px; border-radius: 7px; cursor: pointer; font-weight: 600; color: var(--muted); transition: .16s; }
.role-tab.active { background: var(--blue-700); color: #fff; box-shadow: 0 2px 7px rgba(26,95,208,.25); }
.login-box .form-item { margin-bottom: 16px; }
.login-box .btn { width: 100%; padding: 11px; margin-top: 8px; font-size: 15px; }
.demo-acc { margin-top: 20px; padding: 12px 14px; border-radius: 8px; background: var(--blue-50); border: 1px dashed var(--blue-200); font-size: 11.5px; color: var(--ink-2); line-height: 1.8; }
.demo-acc b { color: var(--blue-800); }
.login-foot { text-align: center; margin-top: 22px; font-size: 11px; color: var(--muted); }

/* 多张图纸资料：已选列表与已有图纸逐张管理 */
.draw-head { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 13px; display: flex; align-items: center; gap: 8px; }
.draw-head b { color: var(--blue-800); }
.draw-list { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.draw-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--blue-50); font-size: 12.5px;
}
.draw-item.picked { background: #fff; border-style: dashed; }
.di-idx {
  flex: 0 0 22px; height: 22px; border-radius: 6px; background: var(--blue-700); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.di-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue-900); font-weight: 600; }
.di-size { color: var(--muted); font-size: 11px; white-space: nowrap; }
.di-act {
  border: 1px solid var(--line); background: #fff; color: var(--blue-700); border-radius: 5px;
  padding: 3px 9px; font-size: 11px; cursor: pointer; white-space: nowrap;
}
.di-act:hover { background: var(--blue-100); }
.di-del {
  border: 1px solid #F3C7C7; background: #fff; color: var(--red); border-radius: 5px;
  width: 24px; height: 24px; cursor: pointer; font-size: 15px; line-height: 1; flex: 0 0 24px;
}
.di-del:hover { background: var(--red-bg); }

/* ---------------- V1.1：模板勾选 / 供应商资料 / 报价分析 ---------------- */
.tpl-checks { display: flex; flex-direction: column; gap: 8px; max-height: 190px; overflow-y: auto; }
.tpl-check {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--blue-50); font-size: 12.5px;
}
.tpl-check input { margin-top: 3px; accent-color: var(--blue-700); }
.tpl-check b { color: var(--blue-900); }
.tpl-check small { display: block; color: var(--muted); font-size: 11px; }
.tpl-check.off { opacity: .55; }
.tpl-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--blue-50); margin-bottom: 9px;
}
.tpl-item .ti-main { flex: 1; min-width: 0; }
.tpl-item .ti-name { font-weight: 700; color: var(--blue-900); font-size: 13.5px; }
.tpl-item .ti-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-card { border: 1px solid var(--line); border-radius: 11px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.doc-card .dc-head {
  padding: 12px 16px; background: linear-gradient(90deg, var(--blue-50), #fff);
  border-bottom: 1px solid var(--line); font-weight: 800; color: var(--blue-900); font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.doc-card .dc-body { padding: 14px 16px; }
.doc-list { display: flex; flex-direction: column; gap: 7px; margin: 10px 0; }
.doc-item {
  display: flex; align-items: center; gap: 9px; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; background: var(--blue-50);
}
.doc-item .dn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue-900); }
.doc-item .ds { color: var(--muted); font-size: 11px; }
.doc-del {
  border: 1px solid #F3C7C7; background: #fff; color: var(--red); border-radius: 5px;
  width: 22px; height: 22px; cursor: pointer; font-size: 14px; line-height: 1; flex: 0 0 22px;
}
.doc-del:hover { background: var(--red-bg); }
.up-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.state-pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.st-quoted { background: #E4F7ED; color: var(--green); }
.st-pending { background: #FFF4DC; color: var(--orange); }
.st-declined, .st-missed { background: var(--red-bg); color: var(--red); }
.mini-bar { height: 7px; border-radius: 5px; background: var(--blue-100); overflow: hidden; min-width: 70px; }
.mini-bar > i { display: block; height: 100%; background: var(--green); }
.analysis-note { font-size: 11.5px; color: var(--muted); line-height: 1.9; }
tr.detail-row > td { background: #F7FBFF; padding: 12px 18px; }
.material-tag { color: var(--blue-800); font-weight: 600; }

/* ---------------- V1.2：按物料排列的报价格式 / 多行录入 / 信息发布滚动条 ---------------- */
.tpl-rows-head, .tpl-row {
  display: grid; grid-template-columns: 44px 1.1fr 1fr 1.3fr 28px; gap: 9px; align-items: center;
}
.tpl-rows-head { font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 0 2px 7px; }
.tpl-row {
  margin-bottom: 9px; padding: 9px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--blue-50);
}
.tpl-row .tr-no { text-align: center; font-weight: 800; color: var(--blue-700); font-size: 14px; }
.tpl-row .inp { padding: 7px 9px; font-size: 12.5px; }
.tpl-row .tr-file { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-check-line { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); }
.inline-check-line input { margin-top: 3px; accent-color: var(--blue-700); }
.inline-checks { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); padding-top: 4px; }
.inline-checks label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; cursor: pointer; }
.inline-checks input { accent-color: var(--blue-700); }
.replace-box { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--blue-50); }
.rb-title { font-size: 13px; font-weight: 700; color: var(--blue-900); margin-bottom: 9px; }

.notice-bar {
  display: flex; align-items: stretch; height: 40px; overflow: hidden; color: #fff;
  background: linear-gradient(90deg, #0B4EA2, #1B6ED8);
  box-shadow: 0 2px 8px rgba(11, 78, 162, .18);
}
.notice-bar.hidden { display: none; }
.nb-label {
  flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 0 16px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .4px; white-space: nowrap;
  background: rgba(0, 0, 0, .15); border-right: 1px solid rgba(255, 255, 255, .22);
}
.nb-viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.nb-track { display: flex; align-items: center; white-space: nowrap; will-change: transform; animation: nb-scroll 34s linear infinite; }
.nb-viewport:hover .nb-track { animation-play-state: paused; }
.nb-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 28px; border: 0;
  background: transparent; color: #EAF3FF; font-size: 12.5px; white-space: nowrap; cursor: pointer;
}
.nb-item:hover { color: #fff; text-decoration: underline; }
.nb-dot { width: 6px; height: 6px; border-radius: 50%; background: #8FD3FF; flex: 0 0 6px; }
.nb-top { background: #FFD77A; color: #7A4E00; font-size: 10.5px; padding: 1px 6px; border-radius: 10px; font-weight: 800; }
.nb-time { color: #BCD9FF; font-size: 11px; }
@keyframes nb-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.notice-detail .nd-title { font-size: 17px; font-weight: 800; color: var(--blue-900); margin-bottom: 6px; }
.notice-detail .nd-meta { font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.notice-detail .nd-body { font-size: 13.5px; line-height: 2; white-space: pre-wrap; color: var(--ink-2); }
.notice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.notice-card {
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  padding: 15px 17px; box-shadow: var(--shadow); cursor: pointer; transition: .15s;
}
.notice-card:hover { border-color: var(--blue-500); transform: translateY(-1px); }
.nc-head { display: flex; align-items: center; gap: 8px; color: var(--blue-900); font-size: 14px; }
.nc-sum { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; margin: 9px 0 12px; }
.nc-foot { font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.nc-foot span:last-child { color: var(--blue-700); font-weight: 700; }

/* ---- V1.3：定向供应商勾选 / 资料有效期提醒 / 采购协议模板 ---- */
.hidden { display: none !important; }
.scope-box {
  margin-top: 10px; padding: 12px; border: 1px dashed var(--blue-300, #b9d4f2);
  border-radius: 10px; background: #f7fbff; max-height: 220px; overflow-y: auto;
}
.scope-box .sb-head { font-size: 12.5px; font-weight: 700; color: var(--blue-900); margin-bottom: 9px; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 7px; }
.scope-item {
  display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 9px; cursor: pointer;
}
.scope-item:hover { border-color: var(--blue-500); }
.scope-item input { margin-top: 2px; flex-shrink: 0; }
.scope-item small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.expiry-bar {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px;
  font-size: 13px; line-height: 1.9; border: 1px solid #f5d9a6;
  background: #fff8e8; color: #8a5a00;
}
.expiry-bar.danger { border-color: #f3c1c1; background: #fff1f1; color: #a32727; }
.expiry-bar b { font-weight: 800; }
.exp-tip { font-size: 11.8px; margin-top: 4px; }
.exp-tip.ok, .exp-tip.unset { color: var(--muted); }
.exp-tip.soon { color: #b26a00; font-weight: 700; }
.exp-tip.expired, .exp-tip.bad { color: var(--red); font-weight: 700; }
.dc-foot { padding: 12px 16px 16px; border-top: 1px dashed var(--line); }
.dc-foot .file-chips { margin-top: 8px; }

@media (max-width: 980px) {
  .login-left { display: none; }
  .sidebar { width: 62px; flex-basis: 62px; padding: 14px 8px; }
  .side-item span.tx, .side-title, .side-foot { display: none; }
  .side-item { justify-content: center; }
  .main { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .proj-row { flex-direction: column; }
  .pr-side { flex-basis: auto; border-left: 0; border-top: 1px dashed var(--line); }
  .doc-grid { grid-template-columns: 1fr; }
}
