/* ============================================================
   THE REPORT  —  DESIGN-report.md (v0.182.91)
   A full screen over Inventory, like Easy Inventory and Full count.
   A table on the desk; a card per wine on the phone.
   ============================================================ */

.rp {
  position: fixed; inset: 0; z-index: 905;
  display: flex; flex-direction: column;
  background: var(--desk); color: var(--ink);
  font-family: var(--font-ui);
}
body.report-open { overflow: hidden; }
body.exporting .rp { display: none !important; }
html.ts-countprint .rp { display: none !important; }

.rp-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  padding-top: max(12px, env(safe-area-inset-top));
  background: var(--chrome); border-bottom: 1px solid var(--chrome-line);
}
.rp-title { margin: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; font-weight: 400; }
.rp-title:focus { outline: none; }
.rp-kk { font-family: var(--font-ui-2); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.rp-est { font-size: 22px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-done {
  flex: none; height: 44px; padding: 0 18px;
  font-family: var(--font-ui-2); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--lift); border: 1px solid var(--accent-line); border-radius: var(--r); cursor: pointer;
}
.rp-done:hover, .rp-b:hover { background: var(--accent-soft); }

.rp-body {
  flex: 1; overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 16px max(18px, env(safe-area-inset-right)) 48px max(18px, env(safe-area-inset-left));
}
.rp-body > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.rp-per { display: flex; border: 1px solid var(--accent-line); border-radius: var(--r); overflow: hidden; }
.rp-per button { flex: 1; min-height: 44px; padding: 6px 8px; font: inherit; font-size: 16px; color: var(--accent-ink); background: var(--field); border: 0; cursor: pointer; }
.rp-per button + button { border-left: 1px solid var(--accent-line); }
.rp-per button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.rp-tools { display: flex; gap: 8px; margin-top: 10px; }
.rp-b {
  flex: 1; height: 44px; padding: 0 12px;
  font-family: var(--font-ui-2); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--lift); border: 1px solid var(--accent-line); border-radius: var(--r); cursor: pointer;
}
.rp-b[aria-expanded="true"] { background: var(--accent-soft); }
.rp-per button:focus-visible, .rp-b:focus-visible, .rp-done:focus-visible, .rp-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.rp-cols { margin-top: 10px; padding: 12px 14px; background: var(--lift); border: 1px solid var(--chrome-line); border-radius: var(--r); }
.rp-k { margin: 0 0 8px; font-family: var(--font-ui-2); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.rp-k small { display: block; margin-top: 4px; font-family: var(--font-ui); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-faint); }
.rp-colsw { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 18px; }
.rp-sw {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  min-height: 44px; padding: 4px 0; font: inherit; font-size: 16px; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--chrome-line); cursor: pointer; text-align: left;
}
.rp-all { margin-top: 6px; border-bottom: 0; }

.rp-when { margin-top: 18px; margin-bottom: 6px; font-family: var(--font-ui-2); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.rp-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 0; margin-bottom: 0; }
.rp-sum > div { padding: 10px 12px; background: var(--lift); border: 1px solid var(--chrome-line); border-radius: var(--r); }
.rp-sum dt { font-family: var(--font-ui-2); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.rp-sum dd { margin: 2px 0 0; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rp-sum dd.rp-sub { font-size: 14px; color: var(--ink-soft); }

.rp-none { margin-top: 22px; font-size: 17px; color: var(--ink-soft); }
.rp-notes { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.rp-notes p { margin: 0 0 4px; }

/* The desk: a table. */
.rp-wide { margin-top: 18px; overflow-x: auto; background: var(--lift); border: 1px solid var(--chrome-line); border-radius: var(--r); }
.rp-t { width: 100%; border-collapse: collapse; font-size: 15px; }
.rp-t th, .rp-t td { padding: 7px 10px; border-bottom: 1px solid var(--chrome-line); text-align: left; vertical-align: baseline; font-weight: 400; }
.rp-t thead th { font-family: var(--font-ui-2); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; position: sticky; top: 0; background: var(--lift); }
.rp-t .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-t .v, .rp-t .s { white-space: nowrap; }
.rp-t td.z { color: var(--ink-faint); }
.rp-t th.w i { font-style: normal; font-size: .85em; color: var(--ink-soft); }
.rp-t tr.band th { padding-top: 16px; font-family: var(--font-ui-2); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); border-bottom: 0; }
.rp-t tr.tot th, .rp-t tr.tot td { font-weight: 600; border-top: 1px solid var(--ink-soft); border-bottom: 0; }
.rp-narrow { display: none; }

/* The phone: a card per wine, two columns of numbers, nothing sideways. */
@media (max-width: 640px) {
  .rp-wide { display: none; }
  .rp-narrow { display: block; margin-top: 8px; }
  .rp-per button { font-size: 14.5px; padding: 6px 4px; line-height: 1.15; }
  .rp-sum { grid-template-columns: 1fr 1fr; }
  .rp-sum dd { font-size: 22px; }
  .rp-colsw { grid-template-columns: 1fr; }
  .rp-gh { margin: 18px 0 6px; font-family: var(--font-ui-2); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
  .rp-card { margin-bottom: 8px; padding: 10px 12px; background: var(--lift); border: 1px solid var(--chrome-line); border-radius: var(--r); }
  .rp-nm { margin: 0 0 6px; font-size: 17px; }
  .rp-nm small { font-size: 14px; color: var(--ink-soft); }
  .rp-card dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin: 0; }
  .rp-card dl div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-top: 1px solid var(--chrome-line); }
  .rp-card dt { font-size: 14px; color: var(--ink-soft); }
  .rp-card dd { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
  .rp-card dl div.z dd { color: var(--ink-faint); }
  .rp-totc { margin-top: 14px; border-color: var(--ink-soft); }
  .rp-totc .rp-nm { font-family: var(--font-ui-2); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
}

/* v0.182.96 (DESIGN-variance.md): five periods; on a phone two by two,
   the last across. Glasses beside a wine's variance. */
@media (max-width: 640px) {
  .rp-per { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--accent-line); }
  .rp-per button + button { border-left: 0; }
  .rp-per button:last-child { grid-column: 1 / -1; }
}
.rp-gl { display: block; font-size: 13px; line-height: 1.2; color: var(--ink-soft); white-space: nowrap; }

/* v0.182.115: Notices (DESIGN-in-app-notices.md). The Report's frame. */
/* One column, every part on the same left edge. */
.nt .rp-body > * { max-width: 760px; margin-left: auto; margin-right: auto; }
/* Three choices sit in one row, phone included. */
.nt .rp-per { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--accent-line); }
.nt .rp-per button + button { border-left: 0; }
.nt .rp-per button:last-child { grid-column: auto; }
.nt .nt-h { margin-top: 22px; font-weight: 600; }
.nt .nt-h span { margin-left: 6px; color: var(--ink-faint); }
.nt-l { list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; border: 1px solid var(--chrome-line); border-radius: var(--r); background: var(--lift); }
.nt-i { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.nt-i + .nt-i { border-top: 1px solid var(--chrome-line); }
.nt-tx { flex: 1; min-width: 0; }
.nt-k { margin: 0; display: flex; gap: 10px; font-family: var(--font-ui-2); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.nt-low .nt-k span, .nt-out .nt-k span { color: var(--accent-ink); font-weight: 600; }
.nt-k time { color: var(--ink-faint); }
.nt-w { margin: 3px 0 0; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.nt-d { margin: 2px 0 0; font-size: 15px; color: var(--ink-soft); }
.nt-l.is-seen .nt-w { color: var(--ink-soft); }
.nt .nt-seen { flex: none; }
.nt .rp-b:disabled { opacity: .5; cursor: default; }
.nt .rp-b:disabled:hover { background: var(--lift); }
.nt .nt-l + .nt-h, .nt .rp-none + .nt-h { margin-top: 26px; }
.nt .nt-h + .rp-none { margin-top: 6px; }
