:root { font-family: Arial, sans-serif; color: #000; background: #fff; font-size: 16px; }
* { box-sizing: border-box; color: #000; }
body { margin: 0; text-transform: uppercase; }
main { max-width: 840px; margin: auto; padding: 10px 6px 14px; }
header { margin-bottom: 8px; }
time { font-size: 15px; font-weight: 700; }
.viewport { width: 100%; }
table { border-collapse: collapse; table-layout: fixed; width: 100%; background: #fff; }
th, td { padding: 5px 3px; border-bottom: 1px solid #e5e5e5; line-height: 1.2; vertical-align: middle; font-size: 11px; }
th { background: #f1f1f1; text-align: left; font-size: 10px; font-weight: 700; }
th.qty, td.qty { width: 8%; text-align: center; }
th:nth-child(2), td.product { width: 38%; text-align: left; overflow-wrap: anywhere; }
th.price, td.price { width: 18%; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-matteo { background: #edf1f5; }
.row-mabel { background: #f5f1eb; }
.row-vino { background: #edf3ee; }
.missing { background: #fff; }
.best { font-weight: 400; }
.waiting, .unavailable { font-size: 10px; color: #b8b8b8; text-transform: none; }
#pending::before { content: ""; display: table-row; height: 10px; }
#pending tr:first-child td { border-top: 1px solid #ccc; }
@media (max-width: 480px) {
  main { padding: 8px 4px 12px; }
  th, td { padding: 4px 2px; font-size: 10px; }
  th { font-size: 9px; }
  th.price, td.price { font-size: 9px; }
  .waiting, .unavailable { font-size: 8px; }
}
@media print {
  main { max-width: none; padding: 0; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
