/* 橙岛 ERP · 自动化采集箱（复用 erp-ps.css 的弹窗 / 提示样式；前缀 aq-） */
.aq-table tr.aq-row { cursor: pointer; }
.aq-table tr.aq-row:hover td { background: var(--hover, #f7f7f9); }
.aq-title { font-weight: 600; font-size: 13px; color: var(--text); max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; text-decoration: none; }
a.aq-title:hover { color: var(--yj-purple, #6d28d9); }
.aq-title.lg { font-size: 15px; max-width: 640px; }
.aq-rules { font-size: 12px; color: var(--muted); max-width: 340px; line-height: 1.5; }
.aq-num { font-variant-numeric: tabular-nums; }
.aq-okn { color: #067647; font-weight: 600; }
.aq-errn { color: #b42318; font-weight: 600; }
.aq-time { font-size: 12px; font-variant-numeric: tabular-nums; }
.aq-ops { white-space: nowrap; }
.aq-ops > * + * { margin-left: 4px; }
.aq-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 12px 16px; }
.aq-kpis div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.aq-kpis b { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--text); }
.aq-kpis span { font-size: 12px; color: var(--muted); }
.aq-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.aq-head-main { flex: 1; min-width: 260px; }
.aq-prod { display: flex; gap: 10px; align-items: center; min-width: 260px; }
.aq-prod .product-thumb { width: 52px; height: 52px; flex: 0 0 52px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.aq-noimg { display: inline-grid; place-items: center; color: var(--muted); background: var(--surface-muted, #fafafa); }
.aq-miss { font-size: 11px; color: #9a5b00; margin-top: 2px; }
.aq-stats { font-size: 12px; line-height: 1.6; }
.aq-srcacts { display: flex; flex-wrap: wrap; gap: 4px; }
.aq-srcacts a.yj-btn, .aq-srcacts a.yj-btn-dark { text-decoration: none; }
.aq-srcbox { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; }
.aq-srcbox img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); flex: none; }
.aq-srcbox .yj-btn { margin-top: 4px; }
.aq-src { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 12px; }
.aq-pos { color: #067647; } .aq-low { color: #9a5b00; } .aq-neg { color: #b42318; }
.aq-pos small, .aq-low small, .aq-neg small { font-size: 11px; }
.aq-break { font-size: 11px; cursor: help; }
.aq-why { font-size: 11px; color: #b42318; margin-top: 4px; line-height: 1.45; max-width: 160px; }
.aq-dialog { width: min(760px, 96vw); }
.aq-dialog.sm { width: min(440px, 94vw); }
.aq-dialog > footer .yj-grow { flex: 1; }
.aq-form { display: flex; flex-direction: column; gap: 10px; }
.aq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.aq-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aq-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aq-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.aq-in { height: 30px; padding: 0 8px; border: 1px solid var(--line-strong, #d9d9de); border-radius: 6px; background: var(--surface, #fff); color: var(--text); font: inherit; font-size: 13px; width: 100%; box-sizing: border-box; }
.aq-in:focus, .aq-ta:focus { outline: 0; border-color: var(--yj-purple, #6d28d9); box-shadow: 0 0 0 2px rgba(109, 40, 217, .12); }
.aq-ta { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid var(--line-strong, #d9d9de); border-radius: 6px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface, #fff); color: var(--text); resize: vertical; margin-bottom: 10px; }
.aq-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; font-size: 13px; }
.aq-row > span:first-child { width: 84px; flex: none; color: var(--muted); padding-top: 6px; font-size: 12px; }
.aq-row > div { flex: 1; min-width: 0; }
.aq-sub { font-size: 13px; font-weight: 600; margin: 4px 0 8px; color: var(--text); }
.aq-sub small { font-weight: 400; color: var(--muted); }
.aq-tip { font-size: 12px; line-height: 1.6; margin: 0 0 10px; }
.aq-cat .aq-catlist { max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; margin-top: 6px; }
.aq-catlist button { display: block; width: 100%; text-align: left; padding: 6px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font-size: 12px; cursor: pointer; }
.aq-catlist button:hover { background: var(--hover, #f5f5f7); }
.aq-catlist .yj-muted { display: block; padding: 8px 10px; }
.aq-steps { margin: 0 0 12px 18px; padding: 0; font-size: 13px; line-height: 1.8; }
.aq-bm { text-decoration: none; cursor: grab; }
.aq-srcsearch { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.aq-srcsearch > img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.aq-srcsearch .aq-tip { margin-top: 8px; }
.aq-hits { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; max-height: 260px; overflow: auto; }
.aq-hit { display: flex; gap: 8px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.aq-hit img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex: none; }
.aq-hit > div { flex: 1; min-width: 0; }
.aq-hit a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
@media (max-width: 900px) { .aq-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .aq-grid, .aq-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
