.serial-history-backdrop { z-index: 1600; }
.serial-history-card { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.serial-history-card .modal-section { min-height: 0; overflow: auto; }
.serial-history-product { margin: 0 0 10px; font-weight: 700; overflow-wrap: anywhere; }
.serial-history-origin { margin: 0 0 12px; color: #215895; font-weight: 600; }
.serial-history-table-wrap { overflow-x: auto; }
.serial-history-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.serial-history-table-wrap th, .serial-history-table-wrap td { padding: 9px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; white-space: nowrap; }
.serial-history-table-wrap th { background: #f1f5f9; }
.serial-history-table-wrap .is-return { background: #fff8e7; }
.serial-history-row-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; }
.serial-history-row-button { padding: 1px 6px; min-height: 22px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: #334155; font-size: 11px; cursor: pointer; }
.serial-history-row-button:hover { background: #eff6ff; }
.serial-history-origin-label { font-size: 11px; color: #215895; white-space: normal; }
@media (max-width: 600px) { .serial-history-card { width: calc(100vw - 16px); } .serial-history-card .modal-section { padding: 12px; } }
