.receipt-records { margin-top: 24px; }
.receipt-history-controls { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.receipt-history-controls label { flex: 1 1 180px; }
.receipt-history-filter-actions { display: flex; align-items: flex-end; gap: 8px; flex: 1 0 100%; }
.receipt-history-filter-actions button { min-width: 76px; }
.receipt-history-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #d8e3f2; border-radius: 12px; padding: 14px 16px; margin: 8px 0; background: #fff; }
.receipt-history-row > div { min-width: 0; }
.receipt-history-row p { margin: 6px 0; overflow-wrap: anywhere; }
.receipt-history-row small { display: block; color: #647b95; }
.receipt-history-row button { flex-shrink: 0; }
.receipt-history-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.receipt-history-confirmed { display: block; position: relative; }
.receipt-history-confirmed details { min-width: 0; }
.receipt-history-confirmed summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% - 210px); min-height: 38px; cursor: pointer; color: #102f4c; list-style: none; }
.receipt-history-confirmed summary::-webkit-details-marker { display: none; }
.receipt-history-confirmed summary:focus-visible { outline: 2px solid #2463de; outline-offset: 4px; border-radius: 4px; }
.receipt-history-confirmed summary > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt-history-confirmed summary small { display: inline; margin: 0; }
.receipt-history-chevron { display: inline-block; font-size: 22px; color: #2463de; transition: transform .15s ease; }
.receipt-history-confirmed details[open] .receipt-history-chevron { transform: rotate(180deg); }
.receipt-history-confirmed .receipt-history-actions { position: absolute; top: 10px; right: 16px; flex-wrap: nowrap; }
.receipt-history-detail { margin-top: 14px; border-top: 1px solid #d8e3f2; padding-top: 14px; }
.receipt-history-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.receipt-history-meta span { min-width: 0; padding: 10px 12px; background: #f5f8fd; border: 1px solid #e1eaf7; border-radius: 9px; overflow-wrap: anywhere; }
.receipt-history-meta b { display: block; margin-bottom: 3px; color: #536b84; font-size: 12px; }
.receipt-history-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #d8e3f2; border-radius: 10px; }
.receipt-history-table { width: 100%; min-width: 1060px; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.receipt-history-table .receipt-col-number { width: 4%; }
.receipt-history-table .receipt-col-product { width: 23%; }
.receipt-history-table .receipt-col-department { width: 10%; }
.receipt-history-table .receipt-col-boxes { width: 8%; }
.receipt-history-table .receipt-col-package { width: 10%; }
.receipt-history-table .receipt-col-quantity { width: 10%; }
.receipt-history-table .receipt-col-price { width: 15%; }
.receipt-history-table .receipt-col-lot { width: 10%; }
.receipt-history-table .receipt-col-expiry { width: 10%; }
.receipt-history-table th { padding: 11px 10px; background: #132f4b; color: #fff; text-align: left; white-space: normal; border-right: 1px solid #46617a; }
.receipt-history-table td { padding: 11px 10px; border-top: 1px solid #d8e3f2; border-right: 1px solid #d8e3f2; overflow-wrap: anywhere; vertical-align: middle; }
.receipt-history-table th:last-child,.receipt-history-table td:last-child { border-right: 0; }
.receipt-history-table td:first-child,.receipt-history-table th:first-child { text-align: center; }
.receipt-history-table th:nth-child(n+4):nth-child(-n+7),.receipt-history-table .number-cell { text-align: center; white-space: nowrap; }
.receipt-history-detail > .field-help { margin: 10px 0 0; }
.receipt-duplicate-dialog { width: min(540px, calc(100vw - 32px)); border: 1px solid #d8e3f2; border-radius: 18px; padding: 24px; color: #102f4c; box-shadow: 0 24px 90px #102f4c33; }
.receipt-duplicate-dialog::backdrop { background: #102f4c66; }
#receiptDuplicateWarnings { white-space: pre-line; line-height: 1.7; background: #fff8e9; border-radius: 10px; padding: 14px; }
#receiptForm[inert] { opacity: .7; }
#receiptEditorStatus { padding: 12px; border-radius: 10px; background: #f1f6ff; }
@media(max-width: 700px) { .receipt-history-row { align-items: flex-start; gap: 10px; padding: 12px; } .receipt-history-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } .receipt-history-confirmed summary { width: 100%; } .receipt-history-confirmed .receipt-history-actions { position: static; justify-content: flex-start; margin-top: 10px; } }
