/* Receive an invoice (step 4): the phone page #/receive, the desk page #/desk/receive (the same flow in a wider
   column), and the RECEIVE tile on the phone home. The markup is js/views/receive-flow.js. */

/* ---------------------------------------------------------------- the RECEIVE tile on the phone home */
.rtile { min-height: 80px; display: flex; align-items: center; gap: 16px; padding: 10px 16px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); background: var(--paper); }
.rtile .col { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.rtile .t { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; }
.rtile .s { font-size: 14px; color: var(--g1); }
.rtile:active { background: var(--g4); }

/* ---------------------------------------------------------------- the frame */
.rcv.phone { padding: 0 16px 28px; }
.drcv { height: 100%; display: flex; flex-direction: column; padding: 0 !important; }
.rcv-scroll { flex: 1; min-height: 0; overflow: auto; }
.rcv.desk { max-width: 980px; margin: 0 auto; padding: 18px 28px 48px; }
.rcvhead { max-width: 980px; margin: 0 auto; padding: 20px 28px 0; }      /* step 6: the page header, in the same column */
.rsec { margin-top: 18px; }
.rh { font-size: 24px; font-weight: 800; line-height: 1.15; display: flex; align-items: center; gap: 10px; }
.rsub { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--soft); }
.rmuted { margin: 4px 0 0; font-size: 13px; color: var(--g1); }
.rcv .note { margin-top: 12px; }
.rcv .perr { margin-top: 12px; }
.rnote .linkbtn { margin-left: auto; height: 48px; }
.roff b { margin-right: 4px; }

/* the steps along the top */
.rsteps { display: flex; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; }
/* step 6: a bar on top of each step, like the bottom tabs: grey ahead, darker done, green where you are */
.rsteps li { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 8px 2px 4px; background: none; border-top: 3px solid var(--line2); font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.rsteps li b { width: 21px; height: 21px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink-2); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.rsteps li.past { color: var(--ink-2); border-top-color: var(--ink-3); }
.rsteps li.now { color: var(--ink); border-top-color: var(--green); }
.rsteps li.now b { background: var(--ink); color: var(--paper); box-shadow: none; }

/* ---------------------------------------------------------------- 1. start */
.rdrop { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rcv.desk .rdrop { padding: 18px; border: 2px dashed var(--line); }
.rcv.desk .rdrop.over { border-color: var(--green); background: #E3F3EC; }
.rfile { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
label.go.rbig { height: auto; min-height: 84px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; cursor: pointer; position: relative; padding: 12px 18px; }
label.go.rbig .t { font-size: 24px; white-space: normal; line-height: 1.1; }
label.go.rbig.off { background: var(--go-off); cursor: default; }
label.go:focus-within, .rpdfbtn:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.rpdfbtn { align-self: flex-start; position: relative; cursor: pointer; padding-left: 0; }
.rpages { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rpages li { width: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 13px; color: var(--g1); }
.rpages img, .rpages .rpdf { width: 96px; height: 124px; object-fit: cover; border: 1px solid var(--line); background: var(--paper); }
.rpages .rpdf { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 18px; color: var(--ink); background: var(--band); }
.rpages .tbtn { min-height: 48px; padding: 0; font-size: 14px; }
.rpages.small { justify-content: center; margin-top: 16px; }
.rpages.small li, .rpages.small img, .rpages.small .rpdf { width: 64px; height: 84px; }
.rread { margin-top: 14px; }
.rtype { margin-top: 6px; }
.rrecent { margin-top: 30px; }
.rlist { margin: 0; padding: 0; list-style: none; }
.rlist details { border-bottom: 1px solid var(--line2); }
.rlist summary { min-height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 2px; cursor: pointer; list-style: none; }
.rlist summary::-webkit-details-marker { display: none; }
.rr-a { font-size: 16px; }
.rr-a .mono { font-size: 14px; margin-left: 6px; }
.rr-b { font-size: 13px; color: var(--g1); }
.rr-in { padding: 0 2px 10px; font-size: 14px; }
.rrl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rrl .mono { font-size: 13px; }

/* ---------------------------------------------------------------- 2. reading */
.rreading { text-align: left; }
.rdots { display: flex; gap: 10px; margin: 26px 0 6px; }
.rdots span { width: 14px; height: 14px; border-radius: 50%; background: var(--green); animation: rdot 1.2s infinite ease-in-out; }
.rdots span:nth-child(2) { animation-delay: 0.2s; }
.rdots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes rdot { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .rdots span { animation: none; opacity: 0.7; } }
.rbtns { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }

/* ---------------------------------------------------------------- 3. check */
.rhead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 10px; margin-top: 14px; }
.rcv.desk .rhead { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.rhead .pf { gap: 4px; }
.rhead .pin { height: 48px; }
.rhead .pmoney { gap: 4px; }
.rlines { margin: 0; padding: 0; list-style: none; }
.rl { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line2); }
.rln { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; background: var(--band); font-size: 13px; font-weight: 800; }
.rl.todo .rln { background: var(--st-out-bg); color: var(--st-out); }
.rl.new .rln { background: #E3F3EC; color: var(--green-d); }
.rlb { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rinv { margin: 0; font-size: 14px; color: var(--soft); }
.rraw .mono { color: var(--ink); margin-right: 4px; }
.rpart { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.rpid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rpid b { font-size: 17px; line-height: 1.2; }
.rpid .mono { font-size: 13px; color: var(--soft); }
.rnote2 { font-size: 13px; color: var(--st-order); font-weight: 700; }
.lchip.nobin { background: var(--band); color: var(--g1); font-size: 13px; font-weight: 700; padding: 6px 8px; white-space: nowrap; }
.rnums { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: end; }
.rqty, .rprice, .rlt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qstep { display: flex; }
.qstep button { width: 48px; height: 48px; flex-shrink: 0; border: 1px solid var(--line); background: var(--paper); font-size: 24px; font-weight: 800; padding: 0; color: var(--ink); }
.qstep .pin { height: 48px; width: 56px; min-width: 56px; text-align: center; font-size: 20px; font-weight: 800; margin: 0 -1px; }
.rprice .pin { height: 48px; font-size: 18px; font-weight: 700; }
.rprice .pmoney { gap: 4px; }
.rlt { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; }
.rlt b { font-size: 17px; white-space: nowrap; }
.ropts { display: flex; flex-direction: column; gap: 6px; }
.ropts:empty { display: none; }
.ropt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 10px; background: var(--band); font-size: 15px; cursor: pointer; }
.ropt input { width: 22px; height: 22px; accent-color: var(--green); margin: 0; flex-shrink: 0; }
.ropt s { color: var(--g1); }
.rlb > .linkbtn { align-self: flex-start; height: 48px; padding: 0; font-size: 14px; }
.rflag { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--st-out); font-size: 15px; }
.rsug { padding: 10px 12px; border-left: 4px solid var(--st-order); background: var(--st-order-bg); display: flex; flex-direction: column; gap: 8px; }
.rsug p { margin: 0; color: var(--st-order); }
.rsug .rpart { background: var(--paper); padding: 6px; }
.rsug .dbtn { min-height: 48px; align-self: flex-start; background: var(--paper); color: var(--ink); border-color: var(--ink); }      /* a normal secondary button: blue is for info */
.rinvq { margin: 2px 0 0; font-size: 14px; color: var(--soft); }
.rchoices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rchoices .dbtn { min-height: 48px; white-space: normal; text-align: center; line-height: 1.15; padding: 0 6px; }
.rchoices .dbtn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rpick { display: flex; flex-direction: column; gap: 6px; }
.rpickq { height: 48px; }
.rpicks { margin: 0; padding: 0; list-style: none; }
.rpicks li.muted { padding: 8px 2px; font-size: 14px; }
.rpickb { width: 100%; min-height: 56px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--line2); background: var(--paper); text-align: left; color: var(--ink); font-size: 15px; }
.rpickb .mono { font-size: 13px; color: var(--soft); }
.rpickb:hover { background: var(--row-hover); }
.rnewh { margin: 0; font-size: 15px; }
.rnew { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.rnew img { border: 1px solid var(--line2); }
.rnewf { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rnew2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rnewf .pin { height: 48px; }
.rtyped { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.rtyped .pin { height: 48px; }
.rl.skip .rlb { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--g1); font-size: 14px; }
.rl.skip .rraw { text-decoration: line-through; }
.rl.skip .linkbtn { height: 48px; }
.rskip { font-weight: 800; color: var(--ink); }
.rtotal { margin: 14px 0 0; display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; background: var(--band); font-size: 15px; font-weight: 700; line-height: 1.35; }
.rtotal svg { flex-shrink: 0; margin-top: 2px; }
.rtotal.off { background: var(--st-low-bg); color: var(--st-low); }
.rtotal.ok { color: var(--green-d); }
.rnext { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.rnext > .linkbtn { align-self: center; }
.rwhy { margin: 0; font-size: 14px; font-weight: 700; color: var(--st-low); }
.rcv .sechead { margin-top: 14px; }
.rcv .sechead h2 { font-size: 17px; }

/* ---------------------------------------------------------------- 4. put away and 5. done */
.rput { margin: 0; padding: 0; list-style: none; }
.rp { padding: 10px 0; border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; gap: 8px; }
.rprow { display: grid; grid-template-columns: auto 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rdone .rprow { grid-template-columns: 44px minmax(0, 1fr) auto; }
.rpn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rpn b { font-size: 16px; line-height: 1.2; }
.rpn .mono { font-size: 13px; color: var(--soft); }
.rpq { font-size: 20px; font-weight: 800; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.rpq .muted { font-size: 13px; font-weight: 400; }
.rnewtag { align-self: flex-start; font-size: 13px; font-weight: 800; color: var(--green-d); background: #E3F3EC; padding: 2px 6px; }
.rp.ask { background: var(--st-low-bg); margin: 0 -8px; padding: 10px 8px; }
.rloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.rloc > select:first-child { grid-column: 1 / -1; }      /* step 5: the shelf, then the level and the bin with their names */
.rloc .pin { height: 48px; background: var(--paper); }
.rdone .rh svg { flex-shrink: 0; }

/* the desk: a wider column */
.rcv.desk .rl { grid-template-columns: 30px minmax(0, 1fr); }
.rcv.desk .rnums { grid-template-columns: max-content 180px auto; justify-content: start; gap: 18px; }
.rcv.desk .rlt { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 4px; }
.rcv.desk .rlt b { height: 48px; display: flex; align-items: center; }
.rcv.desk .rchoices { grid-template-columns: repeat(3, max-content); }
.rcv.desk .rchoices .dbtn { padding: 0 18px; }
.rcv.desk .rbtns, .rcv.desk .rnext { max-width: 520px; }
.rcv.desk .rnext > .linkbtn { align-self: flex-start; }
.rcv.desk .rloc { max-width: 560px; }

/* compact: phone layout. Below 420px the steps show the open one by name and the others by number: no word is cut */
@media (max-width: 419.98px) {
  .rsteps li:not(.now) { flex: 0 0 auto; padding: 8px 10px 4px; }
  .rsteps li:not(.now) .w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 370px) {
  .rhead { grid-template-columns: minmax(0, 1fr); }
  .rprow { grid-template-columns: auto 40px minmax(0, 1fr) auto; }
  .rprow img { width: 40px; height: 40px; }
}
label.btn.rbig2 { position: relative; cursor: pointer; min-height: 56px; gap: 10px; }
label.btn.rbig2 .s { font-size: 13px; font-weight: 600; color: var(--g1); }
label.btn.rbig2.off { color: var(--disabled); cursor: default; }
label.btn:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
