/* v5.0 内嵌手风琴在线预览/填价 + 价格分析看板 + 多维库存顶栏汇总样式 */
.tender-list-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.tender-slot { background: #fff; border: 2px solid #cbd5e1; border-radius: 12px; overflow: hidden; transition: 0.15s; box-shadow: 0 2px 6px rgba(15,23,42,0.04); }
.tender-slot.expanded { border-color: #0284c7; box-shadow: 0 6px 20px rgba(2,132,199,0.14); }
.tender-slot.overdue-alert { border-color: #ef4444; }
.tender-card-main { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.td-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.td-code { font-size: 15.5px; font-weight: 800; color: #0f172a; }
.td-deadline { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: #fef3c7; color: #92400e; }
.td-deadline.expired { background: #fee2e2; color: #b91c1c; }
.td-subs-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 11px; font-size: 12px; max-height: 150px; overflow-y: auto; }
.td-sub-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px dashed #e2e8f0; flex-wrap: wrap; }
.td-sub-row:last-child { border-bottom: none; }
.overdue-badge { background: #dc2626; color: #fff; padding: 2px 7px; border-radius: 5px; font-weight: 800; font-size: 11px; }

.td-inline-drawer { border-top: 2px solid #0284c7; background: #f8fafc; }
.td-drawer-bar { padding: 11px 14px; background: #0f172a; color: #fff; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.td-filter-bar { padding: 10px 14px; background: #eff6ff; border-bottom: 1px solid #bfdbfe; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.td-bid-in { width: 108px; padding: 6px 8px; border: 2px solid #94a3b8; border-radius: 7px; font-size: 14px; font-weight: 800; text-align: right; background: #fff; color: #0f172a; }
.td-bid-in:focus { border-color: #0284c7; outline: none; background: #f0f9ff; }
.td-bid-in.filled { background: #fef9c3; border-color: #ca8a04; color: #854d0e; }

.td-confirm-drawer { margin: 12px 14px; padding: 14px; background: #fffbeb; border: 2px solid #f59e0b; border-radius: 10px; }
.verdict-DANGER { background: #fee2e2; color: #991b1b; padding: 3px 8px; border-radius: 6px; font-weight: 800; font-size: 11.5px; }
.verdict-WARN { background: #ffedd5; color: #9a3412; padding: 3px 8px; border-radius: 6px; font-weight: 800; font-size: 11.5px; }
.verdict-OK { background: #dcfce7; color: #166534; padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 11.5px; }
.verdict-SOLO { background: #fef9c3; color: #854d0e; padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 11.5px; }
.verdict-LOW { background: #dbeafe; color: #1e40af; padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 11.5px; }

.inv-top-summary-bar {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(15,23,42,0.16);
}
.inv-sum-metrics { display: flex; flex-wrap: wrap; gap: 18px; align-items: baseline; }
.inv-sum-item .lbl { font-size: 12px; color: #93c5fd; display: block; }
.inv-sum-item .val { font-size: 21px; font-weight: 800; font-family: Arial, sans-serif; color: #fef08a; }
.inv-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 12px; }
.inv-kpi-card { border-radius: 10px; padding: 11px 15px; color: #fff; display: flex; flex-direction: column; gap: 3px; }
.inv-kpi-card.primary { background: #1e293b; }
.inv-kpi-card.emerald { background: #065f46; }
.inv-kpi-card.slate { background: #475569; }
.inv-kpi-lbl { font-size: 12px; opacity: 0.88; }
.inv-kpi-val { font-size: 18px; font-weight: 800; font-family: Arial, sans-serif; }
.pager-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f8fafc; border-top: 1px solid #e2e8f0; font-size: 12.5px; flex-wrap: wrap; gap: 8px; }

@media (max-width: 860px) {
  .inv-kpi-grid { grid-template-columns: 1fr 1fr; }
  .inv-sum-item .val { font-size: 17.5px; }
  .td-bid-in { width: 100%; font-size: 16px; }
}

@media (max-width: 860px) {
  .mobile-tabbar { overflow-x: auto; justify-content: flex-start !important; -webkit-overflow-scrolling: touch; }
  .mobile-tabbar::-webkit-scrollbar { display: none; }
  .m-tab-item { min-width: 64px; flex: 1 0 auto; padding: 0 6px; }
}
