.tail-page .card{border:1px solid rgba(0,0,0,.07)}.tail-page code{font-size:.85rem}.tail-page .table th{white-space:nowrap}.tail-page .tg-stock{width:105px}.tail-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:3000;display:flex;align-items:center;justify-content:center;padding:20px}.tail-modal{background:#fff;border-radius:14px;width:min(760px,96vw);max-height:90vh;overflow:auto;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.25)}.tail-title-section{border:1px solid #e5e7eb;border-radius:10px;padding:14px;margin-top:12px}.tail-title-row{display:flex;gap:8px;align-items:center;margin:7px 0}.tail-title-row>span{width:28px;text-align:center;color:#6b7280}.tail-title-row input{flex:1}.modal-open-custom{overflow:hidden}@media(max-width:768px){.tail-modal-backdrop{padding:8px}.tail-modal{padding:16px}.tail-page .table{font-size:.86rem}}.tail-page #tgUnmatchedToggle.active{background:var(--bs-danger);color:#fff;border-color:var(--bs-danger)}
.tail-page .tail-unmatched-row td{background:rgba(220,53,69,.045)}
.tail-page .tail-unmatched-row code{font-weight:600}
.tail-page .table{min-width:980px}
.tail-page .tg-image-button{display:inline-flex;width:64px;height:64px;padding:3px;border:1px solid #dfe5ee;border-radius:10px;background:#f8fafc;align-items:center;justify-content:center;overflow:hidden}
.tail-page .tg-image-button img{width:100%;height:100%;display:block;object-fit:contain;background:#fff;border-radius:7px}
.tail-page .tg-image-button.is-broken{display:inline-flex}
.tail-page .tg-image-button.is-broken img{display:none}
.tail-page .tg-image-button.is-broken::after{content:'图片错误';font-size:11px;color:#9ca3af}
.tail-page .tg-image-placeholder{width:52px;height:52px;border:1px dashed #d1d5db;border-radius:8px;background:#f8fafc;color:#9ca3af;display:inline-flex;align-items:center;justify-content:center;font-size:20px}
.tail-page .tail-pagination{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:12px 16px;border-top:1px solid #eef0f3;flex-wrap:wrap}
.tail-page .tg-page-buttons{flex:1;justify-content:center}
.tail-page .tg-page-gap{padding:0 3px;color:#9ca3af}
.tail-image-preview{position:fixed;inset:0;z-index:5000}
.tail-image-preview-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.78);display:flex;align-items:center;justify-content:center;padding:30px;flex-direction:column;gap:14px}
.tail-image-preview img{max-width:min(90vw,900px);max-height:80vh;object-fit:contain;border-radius:12px;background:#fff;box-shadow:0 20px 70px rgba(0,0,0,.35)}
@media(max-width:768px){.tail-page .tail-pagination{justify-content:center}.tail-page .tg-page-buttons{order:3;flex-basis:100%}}

/* 尾货清单匹配状态：明确指定文字与底色，避免被全局主题覆盖成白字透明底 */
.tail-page .badge.text-bg-success{background-color:#d1fae5!important;color:#065f46!important;border:1px solid #a7f3d0!important;}
.tail-page .badge.text-bg-danger{background-color:#fee2e2!important;color:#991b1b!important;border:1px solid #fecaca!important;}
