/* Toner snapshots share the existing ticket timeline, theme and document scrolling. */
.toner-order {
  margin: 12px 0 2px;
  min-width: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  color: var(--text);
  overflow: hidden;
}
.toner-order__head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: var(--info-bg); }
.toner-order__head > div { min-width: 0; }
.toner-order__icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border: 1px solid var(--stroke); border-radius: 10px; color: var(--primary); }
.toner-order__icon svg { width: 25px; height: 25px; }
.toner-order__eyebrow { display: block; font-size: .75rem; font-weight: 650; color: var(--muted); }
.toner-order__head h3 { margin: 2px 0; font-size: 1.12rem; line-height: 1.3; letter-spacing: .01em; overflow-wrap: anywhere; }
.toner-order__head p { color: var(--muted); font-size: .84rem; white-space: normal; overflow-wrap: anywhere; }
.toner-order__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--stroke); }
.toner-order__facts > div { min-width: 0; }
.toner-order__facts dt { color: var(--muted); font-size: .75rem; }
.toner-order__facts dd { margin: 3px 0 0; font-size: .84rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.toner-order__facts time { color: inherit; font-size: inherit; }
.toner-order__table-wrap { min-width: 0; }
.toner-order__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .86rem; }
.toner-order__table th, .toner-order__table td { padding: 11px 18px; text-align: left; border-bottom: 1px solid var(--stroke); overflow-wrap: anywhere; vertical-align: top; }
.toner-order__table th { font-size: .75rem; color: var(--muted); font-weight: 650; }
.toner-order__table th:first-child { width: 24%; }
.toner-order__table th:nth-child(2) { width: 44%; }
.toner-order__table th:last-child { width: 32%; text-align: right; }
.toner-order__table tbody tr:last-child td { border-bottom: 0; }
.toner-order__table .toner-order__product { font-weight: 700; }
.toner-order__table .toner-order__quantity, .toner-order__table .toner-order__price, .toner-order__table .toner-order__stock { text-align: right; font-variant-numeric: tabular-nums; }
.toner-order__quantity span, .toner-order__stock span { color: var(--muted); font-size: .75rem; }
.toner-order__color { display: inline-flex; align-items: center; gap: 7px; }
.toner-order__swatch { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--stroke-strong); background: var(--muted); }
.toner-order__swatch--black { background: #111820; border-color: #9eabbc; }
.toner-order__swatch--cyan { background: var(--cyan); }
.toner-order__swatch--magenta { background: var(--pink); }
.toner-order__swatch--yellow { background: var(--warning); }
.toner-order--internal .toner-order__head { background: var(--warning-bg); }
.toner-order--internal .toner-order__icon { color: var(--warning); }
.toner-order--internal .toner-order__table:has(.toner-order__price) th:first-child { width: 20%; }
.toner-order--internal .toner-order__table:has(.toner-order__price) th:nth-child(2) { width: 33%; }
.toner-order--internal .toner-order__table:has(.toner-order__price) th:nth-child(3) { width: 22%; text-align: right; }
.toner-order--internal .toner-order__table:has(.toner-order__price) th:last-child { width: 25%; }
.toner-order--internal .toner-order__table--with-stock th:first-child { width: 20%; }
.toner-order--internal .toner-order__table--with-stock th:nth-child(2) { width: 34%; }
.toner-order--internal .toner-order__table--with-stock th:nth-child(3) { width: 28%; text-align: right; }
.toner-order--internal .toner-order__table--with-stock th:last-child { width: 18%; }
.toner-order--internal .toner-order__table--with-stock:has(.toner-order__price) th:first-child { width: 18%; }
.toner-order--internal .toner-order__table--with-stock:has(.toner-order__price) th:nth-child(2) { width: 26%; }
.toner-order--internal .toner-order__table--with-stock:has(.toner-order__price) th:nth-child(3) { width: 24%; }
.toner-order--internal .toner-order__table--with-stock:has(.toner-order__price) th:nth-child(4) { width: 14%; text-align: right; }
.toner-order--internal .toner-order__table--with-stock:has(.toner-order__price) th:last-child { width: 18%; }
.toner-order__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--stroke); }
.toner-order__footer:empty { display: none; }
.toner-order__total { display: grid; gap: 2px; }
.toner-order__total > span { color: var(--muted); font-size: .75rem; }
.toner-order__total strong { font-size: 1.14rem; font-variant-numeric: tabular-nums; }
.toner-order .toner-order__supplier { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 13px; font-size: .8rem; cursor: pointer; text-decoration: none; }
.toner-order__supplier svg { width: 16px; height: 16px; }
.toner-order__supplier:hover { background: var(--surface-hover); }
.toner-order__supplier:focus-visible, .toner-order__notes > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; box-shadow: var(--focus); }
.toner-order__supplier:active { filter: brightness(.9); }
.toner-order .toner-order__reference { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 0 18px 12px; font-size: .75rem; color: var(--muted); white-space: normal; }
.toner-order__reference span { overflow-wrap: anywhere; }
.toner-order__notes { margin: 0; border-top: 1px solid var(--stroke); }
.toner-order__notes > summary { min-height: 44px; padding: 12px 18px; font-size: .78rem; color: var(--muted); cursor: pointer; }
.toner-order__notes > summary:hover { background: var(--surface-hover); color: var(--text); }
.toner-order__notes > summary:active { background: var(--surface); }
.toner-order__notes > div { padding: 0 18px 14px; }
.toner-order__notes p { font-size: .8rem; overflow-wrap: anywhere; }
.toner-order-origin { display: block; margin: 4px 0 8px; font-size: .75rem; color: var(--muted); }
.timeline-avatar.toner-order-automation { background: var(--bg-2); color: var(--primary); }
.toner-order-automation svg { width: 25px; height: 25px; }
@media (max-width: 600px) {
  /* Keep the added snapshot column readable inside narrow timeline cards. */
  .toner-order__table-wrap:has(.toner-order__table--with-stock) { overflow-x: auto; }
  .toner-order__table--with-stock { min-width: 560px; }
  .toner-order__head, .toner-order__facts, .toner-order__footer { padding: 12px; }
  .toner-order__table th, .toner-order__table td { padding: 9px 7px; font-size: .8125rem; }
  .toner-order__table th { font-size: .75rem; }
  .toner-order__color { gap: 4px; }
  .toner-order__swatch { flex-basis: 7px; width: 7px; height: 7px; }
  .toner-order__quantity span, .toner-order__stock span { display: block; font-size: .75rem; }
  .toner-order .toner-order__reference { padding: 0 12px 12px; }
}
@media (forced-colors: active) {
  .toner-order__swatch { forced-color-adjust: none; }
  .toner-order__supplier:focus-visible, .toner-order__notes > summary:focus-visible { outline-color: Highlight; }
}
