.ticket-order-record { flex: 0 0 auto; min-width: 0; padding: 8px 12px 0; }
.ticket-order-record[hidden] { display: none !important; }
.ticket-order-history { min-width: 0; border: 1px solid #dce8e0; border-radius: 9px; background: #f5faf7; color: #294c40; }
.ticket-order-history > header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; padding: 6px 9px; border-bottom: 1px solid #e1ebe5; }
.ticket-order-history > header strong { font-size: 12px; }
.ticket-order-history > header small { font-size: 10px; color: #61776b; }
.ticket-order-record-scroll { max-height: clamp(90px, 15vh, 145px); overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-gutter: stable; padding: 1px 9px; }
.ticket-order-record-scroll:focus-visible { outline: 2px solid #159268; outline-offset: -2px; }
.ticket-order-record-row { display: grid; grid-template-columns: minmax(0, 68px) minmax(0, 1fr); gap: 5px; padding: 5px 0; border-bottom: 1px dashed #dfe8e1; font-size: 11px; line-height: 1.4; }
.ticket-order-record-row:last-child { border-bottom: 0; }
.ticket-order-record-label, .ticket-order-record-detail { min-width: 0; overflow-wrap: anywhere; }
.ticket-order-record-label { color: #738179; }
.ticket-order-record-detail { display: flex; flex-direction: column; gap: 2px; }
.ticket-order-record-detail time { font-variant-numeric: tabular-nums; color: #50665a; }
.ticket-order-record-note { margin: 5px 0; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; color: #677970; }
@media (max-height: 740px) and (min-width: 769px) { .ticket-order-record { padding-top: 4px; } .ticket-order-record-scroll { max-height: 72px; } }
@media (max-width: 768px) { .ticket-order-record-scroll { max-height: 145px; } }
.ticket-opened-record { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 4px; font-size: 10px; color: #637b89; line-height: 1.4; }
.ticket-opened-record strong { font-weight: 600; font-variant-numeric: tabular-nums; color: #376581; }
.ticket-headline .ticket-number { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.pos-layout:not(.admin-layout) .order-list.order-list-inline-history { display: block; }
.pos-layout:not(.admin-layout) .order-list:has(> .ticket-dispatch-inline) { display: block; }
.order-list-inline-history > .order-row { min-height: 55px; }
.ticket-dispatch-inline { min-width: 0; padding: 5px 0 6px; margin: 0; border-bottom: 1px dashed #bdd9ee; color: #2473ac; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.ticket-dispatch-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 5px; }
.ticket-dispatch-caption strong { font-weight: 600; }
.ticket-source-icon { display:inline-grid; place-items:center; width:19px; height:19px; border-radius:5px; font-size:13px; line-height:1; font-style:normal; vertical-align:middle; box-shadow:inset 0 0 0 1px #0002; }
.ticket-source-cashier { background:#e7f1ff; color:#155f9d; }
.ticket-source-tablet { background:#e9f8ef; color:#147247; }
.ticket-source-qr { background:#f2eaff; color:#6b3caf; font-family:monospace; font-weight:900; }
.ticket-source-delivery { background:#fff0df; color:#a65312; }
.ticket-dispatch-caption time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket-dispatch-dishes { display: flex; flex-wrap: wrap; gap: 1px 10px; font-size: 10px; }
.ticket-dispatch-dish { min-width: 0; }
.ticket-dispatch-dish b { font-weight: 500; white-space: nowrap; }
.ticket-dispatch-inline small { display: block; font-size: 10px; color: #5c87a4; }
.ticket-dispatch-inline-note { margin: 6px 0; color: #5c87a4; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }

.ticket-dispatch-bundle-details { margin: 2px 0 3px; padding-left: 15px; }
.ticket-dispatch-bundle-details li { min-width: 0; overflow-wrap: anywhere; }
