/* orders screen styles, round 1 */
.ord-badges { justify-content: flex-end; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.ord-day { display: flex; align-items: center; gap: var(--space-8); margin-top: var(--space-12); padding: var(--space-12); border: 1px solid var(--stroke-card); border-radius: var(--radius-card); background: var(--surface-card); font-size: var(--type-tiny); line-height: var(--lh-tiny); color: var(--text-strong); }
.ord-thumb { width: 40px; height: 40px; }
.ord-line, .dl-line { padding: var(--space-12) var(--space-16); }
.ord-pair { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.ord-pair .field { margin: 0; }
.ord-pair .chips-amt:empty { display: none; }
.dl-line.error { border: 2px solid var(--stroke-error); background: var(--fill-error-weak); }
.dl-line.error .qty { border-color: var(--stroke-error); }
.dl-line .msg { margin-top: var(--space-8); }
.dl-reasons { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.dl-why { margin-top: var(--space-12); }
.dl-sum { margin-top: var(--space-16); padding: var(--space-12) var(--space-16); }
.dl-full { margin-top: var(--space-8); }
.dl-rest { margin-top: var(--space-16); }
.dl-full:focus-visible, .dl-reasons .chip:focus-visible { outline: 2px solid var(--stroke-focus, currentColor); outline-offset: 2px; }
.ord-day { min-height: 48px; }

/* D-2: waiting orders in the dealer's to do list. D-4 End of day card. */
.todo-ord { flex-wrap: wrap; row-gap: var(--space-8); }
.todo-ord .main { flex: 1 1 160px; min-width: 0; color: inherit; text-decoration: none; }
.todo-ord .main:hover { text-decoration: underline; }
.todo-btns { display: flex; gap: var(--space-8); margin-left: auto; }
.dl-over { align-items: flex-start; }
.dl-overnote { margin: var(--space-8) 0 0; }
#eod .row { gap: var(--space-8); align-items: stretch; }
#eod .field { margin-top: var(--space-8); }
/* R3-05 cancelled memo, R3-07 ready sale. The memo stays black and white. */
.ord-struck { text-decoration: line-through; color: var(--text-weak); }
/* R3-10 cash memo, A4 ledger. Black and white only, so it prints the same on any printer. */
.memo-box { container-type: inline-size; }
.memo.da { background: #fff; color: #000; font-size: var(--type-tiny); line-height: var(--lh-tiny); padding: 8mm 10mm 7mm; border: 1px solid #000; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.memo.da * { box-sizing: border-box; }
.memo.da .mic { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.memo.da .m-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 3px double #000; padding-bottom: 10px; }
.memo.da .m-brand { display: flex; gap: 10px; align-items: center; }
.memo.da .m-logo { width: 44px; height: 44px; object-fit: cover; border: 1px solid #000; border-radius: 6px; flex: none; }
.memo.da .m-name { font-size: var(--type-h4); line-height: var(--lh-h4); font-weight: var(--weight-strong); overflow-wrap: anywhere; }
.memo.da .m-own { color: #333; font-size: var(--type-tiny); }
.memo.da .m-contact, .memo.da .m-social { display: flex; flex-wrap: wrap; gap: 2px 16px; color: #222; font-size: var(--type-tiny); margin-top: 6px; }
.memo.da .m-social { margin-top: 0; gap: 4px 14px; }
.memo.da .m-contact span, .memo.da .m-social span { display: inline-flex; gap: 5px; align-items: center; overflow-wrap: anywhere; }
.memo.da .m-ttl { text-align: right; white-space: nowrap; }
.memo.da .m-ttl b { display: block; font-size: var(--type-h3); line-height: var(--lh-h3); font-weight: var(--weight-strong); letter-spacing: .04em; }
.memo.da .m-meta { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #000; margin-top: 10px; }
.memo.da .m-meta div { padding: 6px 8px; border-right: 1px solid #000; border-bottom: 1px solid #000; overflow-wrap: anywhere; }
.memo.da .m-meta div:nth-child(2n) { border-right: 0; }
.memo.da .m-meta div:nth-last-child(-n+2) { border-bottom: 0; }
.memo.da .m-meta small { display: block; font-size: var(--type-caption); line-height: var(--lh-caption); color: #444; }
.memo.da table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: var(--type-tiny); }
.memo.da th { background: #e8e8e8; border: 1px solid #000; padding: 5px 6px; text-align: left; font-weight: var(--weight-strong); font-size: var(--type-tiny); }
.memo.da td { border: 1px solid #000; padding: 5px 6px; vertical-align: top; }
.memo.da td small { display: block; color: #444; font-size: var(--type-caption); line-height: var(--lh-caption); }
.memo.da th.r, .memo.da td.r { text-align: right; font-variant-numeric: tabular-nums; }
.memo.da .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.memo.da .m-sum { margin-left: auto; width: 62%; margin-top: 8px; }
.memo.da .m-sum td { border: 0; border-bottom: 1px solid #8a8a8a; padding: 4px 6px; }
.memo.da .m-sum tr.t td { border: 2px solid #000; font-weight: var(--weight-strong); font-size: var(--type-small); line-height: var(--lh-small); }
.memo.da .m-sum tr.d td { font-weight: var(--weight-strong); border-bottom: 2px solid #000; }
.memo.da .stat { display: inline-block; border: 1.5px solid #000; border-radius: 4px; padding: 0 8px; font-weight: var(--weight-strong); font-size: var(--type-tiny); }
.memo.da .stat.cx { text-decoration: line-through; }
.memo.da .stat.rs { border-style: dashed; }
.memo.da .m-note { border: 1px dashed #000; padding: 6px 8px; margin-top: 10px; font-size: var(--type-tiny); }
.memo.da .m-times { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 8px; font-size: var(--type-caption); line-height: var(--lh-caption); color: #333; }
.memo.da .m-sig { display: flex; gap: 24px; margin-top: 30px; }
.memo.da .m-sig div { flex: 1; border-top: 1px solid #000; padding-top: 3px; font-size: var(--type-caption); line-height: var(--lh-caption); color: #222; }
.memo.da .m-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 12px; border-top: 1px solid #000; padding-top: 6px; }
.memo.da .m-powered { display: flex; align-items: center; gap: 5px; margin-left: auto; font-size: var(--type-caption); line-height: var(--lh-caption); color: #444; white-space: nowrap; }
.memo.da .mbk { width: 13px; height: 13px; }
.memo-stamp { display: block; text-align: center; margin: 10px 0 0; padding: 6px 12px; border: 2px solid #000; color: #000; font-weight: var(--weight-strong); font-size: var(--type-h4); line-height: var(--lh-h4); letter-spacing: 2px; text-transform: uppercase; }
.memo-stamp span { display: block; margin-top: 2px; font-size: var(--type-tiny); line-height: var(--lh-tiny); font-weight: var(--weight-regular); letter-spacing: 0; text-transform: none; }
.memo-cancelled .m-items td { color: #444; text-decoration: line-through; }
/* On a phone the SL column and the two column field grid fold away. */
@container (max-width: 480px) {
  .memo.da { padding: 16px 14px 12px; }
  .memo.da .m-top { flex-direction: column; }
  .memo.da .m-ttl { text-align: left; white-space: normal; }
  .memo.da .m-meta { grid-template-columns: 1fr; }
  .memo.da .m-meta div { border-right: 0; border-bottom: 1px solid #000 !important; }
  .memo.da .m-meta div:last-child { border-bottom: 0 !important; }
  .memo.da th.sl, .memo.da td.sl { display: none; }
  .memo.da .m-sum { width: 100%; }
  .memo.da .m-foot { flex-direction: column; align-items: flex-start; }
  .memo.da .m-powered { margin-left: auto; align-self: flex-end; }
  .memo.da .m-sig { flex-direction: column; gap: 22px; }
}
@media print { .memo-box { container-type: normal; } .memo.da { border: 0; } }
/* memo settings sheet (R3-10) */
.hm-ph-list button.li:disabled { opacity: 0.5; cursor: not-allowed; }
.ms-logo { display: flex; gap: var(--space-12); align-items: center; }
.ms-logo img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-control); border: 1px solid var(--stroke-weak); flex: none; }
.ms-logo .ms-none { width: 56px; height: 56px; border-radius: var(--radius-control); border: 1px dashed var(--stroke-strong); display: grid; place-items: center; color: var(--text-weak); flex: none; }
.rs-line { padding: var(--space-12) var(--space-16); }
.rs-line .field { margin: 0; }
.t-error.link-btn:focus-visible, .link-btn.t-error:focus-visible { outline: 2px solid var(--stroke-focus, currentColor); outline-offset: 2px; }

/* Round 3: one line under Bounce and Cancel order, and the dealer choice on a short load */
.act-help { display: flex; flex-direction: column; align-items: center; }
.act-help .weak { margin: 0 0 var(--space-8); text-align: center; font-size: var(--type-tiny); }
.sc-choice { display: flex; flex-direction: column; gap: var(--space-8); align-items: stretch; }
.sc-item .end { flex-shrink: 0; }

/* Notices on SR Today and on the order, and the extra product a DSR adds at delivery */
.notice .grow > div + div { margin-top: var(--space-4); }
.notice-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); margin-top: var(--space-8); }
.dl-extra .label { display: block; }

/* R3-12 notification list: one row per notice, unread in bold with a static dot */
.nt-row { align-items: flex-start; gap: var(--space-12); }
.nt-row .main { display: flex; flex-direction: column; gap: var(--space-4); }
.nt-title, .nt-text { display: block; overflow: visible; }
.nt-title { font-weight: var(--weight-regular, 400); }
.nt-unread .nt-title, .nt-unread .nt-text { font-weight: var(--weight-strong); }
.nt-unread { position: relative; }
.nt-unread::before { content: ""; position: absolute; top: 14px; left: 6px; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--fill-error-strong); }
.nt-ico { width: 40px; height: 40px; border-radius: var(--radius-full); display: grid; place-items: center; flex-shrink: 0; background: var(--fill-weak); color: var(--text-strong); }
.nt-ico.nt-cancel { background: var(--fill-error-weak); }
.nt-ico.nt-stock, .nt-ico.nt-check { background: var(--fill-warning-weak); }
.nt-ico.nt-short { background: var(--fill-info-weak); }
.nt-row .chev { align-self: center; }
