.rf-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:22px 0}.rf-heading p{margin:7px 0}.rf-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,30vw,460px);gap:22px;align-items:start}.rf-layout>aside{position:sticky;top:85px}.rf-layout .card{margin-bottom:18px}.rf-layout h2{font-size:18px;margin-bottom:14px}.rf-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.rf-choice{text-align:left;white-space:normal;background:var(--sunken);color:var(--ink);padding:18px;border:1px solid var(--line);border-radius:10px}.rf-choice strong,.rf-choice span{display:block}.rf-choice span{font-size:12px;color:var(--muted);margin-top:8px}.rf-choice.selected{border:2px solid var(--accent)}.rf-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rf-allocation{border:1px solid var(--line);border-radius:10px;padding:17px;margin:15px 0;background:var(--sunken)}.rf-line-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.rf-line-head h3{font-size:14px}.rf-path{color:var(--muted);font-size:11px;overflow-wrap:anywhere;margin:4px 0 8px}.rf-balance{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:17px;border-top:1px solid var(--line);font-size:12px}.rf-balance strong{color:var(--accent)}.rf-actions .row{gap:12px;flex-wrap:wrap}.rf details summary{cursor:pointer;color:var(--blueprint);margin-top:15px}.rf textarea{min-height:76px}.rf-fields{margin-top:18px}
/* Money looks like money: the sign sits in the box rather than in the label,
   where somebody typing 10 for ten dollars cannot miss it. */
.rf-money{position:relative}
.rf-money>span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.rf-money input{padding-left:26px}
/* Required, said on the label rather than only after a refusal. */
.rf-needed{font-weight:500;font-size:11px;color:var(--accent);text-transform:uppercase;letter-spacing:.04em}
/* The box a refusal is about. */
.rf input.missing,.rf textarea.missing,.rf select.missing{border-color:var(--bad);box-shadow:0 0 0 1px var(--bad)}
@media(max-width:1100px){.rf-layout{grid-template-columns:1fr}.rf-layout>aside{position:static;order:-1}.rf-layout>aside .card{padding:15px 20px}.rf-layout>aside h2{display:inline-block;margin-bottom:0}}
@media(max-width:700px){.rf-heading{display:block}.rf-heading>.pill{margin-top:10px}.rf-grid{grid-template-columns:1fr}.rf-choice{padding:14px 12px}.rf-choice strong{font-size:14px}.rf-choices{gap:9px}.rf-actions .row{display:block}.rf-actions button{width:100%;margin-top:10px}.rf-allocation{padding:14px}.rf-layout .card{padding:18px}}

/* The receipts being assigned, at the top of "What is this receipt for?".
   One fills the width; a batch is a strip that scrolls sideways. */
.rf-shots{display:flex;gap:8px;overflow-x:auto;margin:0 0 14px;padding-bottom:2px}
.rf-shots figure{margin:0;flex:none;width:92px}
.rf-shots img{width:92px;height:92px;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:var(--sunken);display:block}
.rf-shots figcaption{margin-top:4px;font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rf-shots figure.missing img{display:none}
.rf-shots figure.missing figcaption{white-space:normal;overflow-wrap:anywhere}
.rf-shots-more{align-self:center;white-space:nowrap;margin:0}
.rf-shots.one figure{width:100%}
.rf-shots.one img{width:100%;height:auto;max-height:230px;object-fit:contain;background:var(--card)}
.rf-shots.one figcaption{text-align:center}

/* The Manager's view of a line: the job and cost code as they were sent, above
   the money, which is the part the Manager fills in. */
.rf-where{display:flex;flex-direction:column;gap:3px;margin:0 0 14px}
.rf-where b{font-size:15px;overflow-wrap:anywhere}
.rf-where span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
/* What the reader found on the paper, for dividing the total by. */
.rf-read summary{margin-top:14px}
.rf-read-items{list-style:none;padding:0;margin:8px 0 0;font-size:13px}
.rf-read-items li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid var(--line)}
.rf-read-items span{overflow-wrap:anywhere}
.rf-read-items b{font-variant-numeric:tabular-nums;white-space:nowrap}
/* The check before Accounting. */
.rf-check .rf-allocation label{margin-top:10px}
.rf-check .rf-allocation label:first-of-type{margin-top:0}
.rf-class-note{margin:6px 0 0}
.rf-class-note .linkish{font-size:12px;margin-left:4px}
.rf-actions>.primary.wide{width:100%}
.rf-actions>.muted.tiny{margin:8px 0 4px}
/* The total the amounts have to reach, when they do not. */
.rf-balance.missing strong{color:var(--bad)}
/* The Manager's photo: half the screen and as tall as it allows, beside the
   amounts being typed from it. It sat in a column 300px wide under the total
   and the item list, starting below the bottom of a laptop's screen. Phones
   keep the photo first and full width, as above. Zoomed, it grows as before. */
@media(min-width:1101px){
  .rf-layout.reviewing{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .rf-layout.reviewing>aside .viewer-stage{max-height:calc(100vh - 230px)}
  .rf-layout.reviewing>aside .viewer-stage:not(.zoomed) img{max-height:calc(100vh - 230px)}
  .rf-layout.reviewing>aside .viewer-stage .pdf{height:calc(100vh - 230px)}
}
.rf-photo .viewer{margin:0}

/* Item by item: each thing on the receipt, whether a client pays for it, and
   the job it goes to. An expense is set back a shade: it goes on no job. */
.rf-dests{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 14px}
.rf-dest{font-size:12px;padding:3px 8px;border:1px solid var(--line);border-radius:999px;background:var(--sunken);overflow-wrap:anywhere}
.rf-item{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:10px 0;background:var(--card);display:grid;gap:8px}
.rf-item.expense{background:var(--sunken)}
.rf-item.missing{border-color:var(--bad);box-shadow:0 0 0 1px var(--bad)}
.rf-item-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.rf-item-head b{overflow-wrap:anywhere}
.rf-item-name{flex:1;min-width:0}
.rf-item-amount{flex:none;width:130px}
.rf-item-amount input{text-align:right;font-variant-numeric:tabular-nums}
.rf-kinds{display:flex;gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;width:max-content;max-width:100%}
.rf-kind{border:0;border-radius:0;background:var(--card);color:var(--muted);padding:6px 12px;font-size:13px;min-height:34px}
.rf-kind+.rf-kind{border-left:1px solid var(--line)}
.rf-kind.on{background:var(--accent);color:#fff}
.rf-item-note{margin:0}
.rf-split-item{justify-self:start;font-size:13px}
.rf-shares{display:grid;gap:6px}
.rf-share{display:grid;grid-template-columns:minmax(0,1fr) 110px auto auto;gap:8px;align-items:center}
.rf-share .rf-money{min-width:0}
.rf-share-foot{display:flex;justify-content:space-between;align-items:center;gap:8px}
@media(max-width:700px){
  .rf-share{grid-template-columns:minmax(0,1fr) 80px}
  .rf-share>select{grid-column:1/-1}
  .rf-item-amount{width:110px}
}
