/* The pay site's one look, from the pick-invoices mock-up he OK'd 11-04: the invoice's blue, Barlow, hairline rows.
   The list sits on the left and what's being paid in the blue panel; a page with nothing to pay is the left side alone. */
@font-face{font-family:"Barlow";font-weight:400;font-style:normal;font-display:swap;src:url(/assets/barlow-400.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-weight:500;font-style:normal;font-display:swap;src:url(/assets/barlow-500.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-weight:600;font-style:normal;font-display:swap;src:url(/assets/barlow-600.woff2) format("woff2")}
:root{
  --blue:#0076C8;
  --blue-deep:#005B9E;
  --ink:#12202C;
  --slate:#566675;
  --line:#DCE3E9;
  --wash:#F1F6FA;
  --ok:#0f7a43;
  --bad:#b3261e;
  --hl:#fff1b8;
  --hl-edge:#d99a00;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0;background:#fff;color:var(--ink);
  font:400 18px/1.4 "Barlow","Segoe UI",system-ui,-apple-system,sans-serif;
  font-variant-numeric:lining-nums tabular-nums;
}
a{color:var(--blue-deep)}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}

.page{display:grid;grid-template-columns:minmax(0,1fr) minmax(400px,35%);min-height:100vh;min-height:100dvh}
.page.solo{display:block}
.side{display:flex;flex-direction:column;padding:36px clamp(24px,5vw,88px) 28px}
.side-in{width:100%;max-width:780px;margin-inline:auto;display:flex;flex-direction:column;flex:1}
.logo{display:block;width:128px;height:auto;aspect-ratio:635/310}
h1{margin:clamp(36px,7vh,76px) 0 8px;font-size:clamp(32px,3.1vw,44px);line-height:1.1;font-weight:600;overflow-wrap:anywhere}
.lead{margin:0 0 26px;color:var(--slate)}

/* ── the invoices ───────────────────────────────────────────────────── */
.invs{list-style:none;margin:0;padding:0;border-top:1px solid var(--line);isolation:isolate}
.inv{position:relative;border-bottom:1px solid var(--line)}
@media (hover:hover){.inv:has(label):hover::before{content:"";position:absolute;inset:0 -12px;z-index:-1;background:var(--wash)}}
.pick{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:0 16px;align-items:center;padding:17px 0;cursor:pointer;min-width:0}
div.pick{cursor:default}
.pick.bare{grid-template-columns:minmax(0,1fr) auto}
.nobox{width:26px}
.pick input{
  appearance:none;-webkit-appearance:none;margin:0;width:26px;height:26px;flex:none;cursor:pointer;
  border:2px solid #93A4B3;border-radius:8px;background:#fff center/16px no-repeat;
  transition:background-color .12s,border-color .12s;
}
.pick input:checked{
  border-color:var(--blue);background-color:var(--blue);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3 8.4 6.6 12 13 4.6'/%3E%3C/svg%3E");
}
.what b{display:block;font-weight:600;font-size:20px;line-height:1.2}
.sub{display:flex;flex-wrap:wrap;gap:0 14px;margin-top:2px;font-size:16px;color:var(--slate)}
/* The links' tap strips reach 8px past their words, so this gap keeps the two from touching. */
.docs{display:inline-flex;gap:0 18px}
.amt{text-align:right;white-space:nowrap}
.amt b{display:block;font-weight:600;font-size:22px;line-height:1.2}
.amt small{display:block;margin-top:2px;font-size:15px;color:var(--slate)}
.pick input:not(:checked) ~ .what b,
.pick input:not(:checked) ~ .amt b{color:#8796A3;font-weight:500}
.view{display:inline-block;margin:-10px -8px;padding:10px 8px;font-weight:500;text-decoration:none}
.view:hover{text-decoration:underline}
.state{display:block;margin-top:2px;font-size:16px;font-weight:600;color:var(--slate)}
.state.ok{color:var(--ok)}
.inv.done .pick .what b,
.inv.done .pick .amt b{color:var(--slate);font-weight:500}
.inv.done input{visibility:hidden}
.inv.done label.pick{cursor:default}

.ask{margin:auto 0 0;padding-top:40px;color:var(--slate);font-size:16px;overflow-wrap:anywhere}

/* ── the blue panel: what's being paid ──────────────────────────────── */
.panel{
  position:sticky;top:16px;align-self:start;height:calc(100vh - 32px);height:calc(100dvh - 32px);
  margin:16px 16px 16px 0;padding:clamp(28px,3.6vw,56px);border-radius:24px;
  background:var(--blue);color:#fff;
  display:flex;flex-direction:column;justify-content:center;container-type:inline-size;
}
.paying{margin:0 0 4px;font-size:22px;font-weight:500}
.total{margin:0 0 30px;font-size:64px;font-size:clamp(44px,18cqw,96px);line-height:1;font-weight:600;letter-spacing:-.015em;overflow-wrap:anywhere}
.total.long{font-size:48px;font-size:clamp(36px,13cqw,72px)}
.go{
  width:100%;min-height:66px;padding:0 20px;border:0;border-radius:14px;cursor:pointer;
  background:#fff;color:var(--blue-deep);font:600 23px/1.1 "Barlow","Segoe UI",system-ui,-apple-system,sans-serif;
  transition:background-color .12s,transform .08s;
}
.go:hover{background:#E6F2FB}
.go:active{transform:translateY(1px)}
.go:disabled{background:#fff;color:var(--blue-deep);opacity:.55;cursor:default;font-size:20px;transform:none}
.go:focus-visible{outline-color:#fff;outline-offset:3px}
.how{margin:14px 0 0;font-size:17px}
.how span{display:block}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.msg{display:none;margin-top:16px;padding:12px 14px;border-radius:10px;font-size:16px;font-weight:500;overflow-wrap:anywhere}
.msg.show{display:block}
.msg.ok{background:#e8f6ee;border:1px solid #b7e0c8;color:var(--ok)}
.msg.err{background:#fdecea;border:1px solid #f3c2be;color:var(--bad)}

/* ── /pay: the code, where it is on the invoice, and how paying goes (his 11-09 mock-up) ── */
.lookup .lead{margin-bottom:30px;max-width:520px}
.find{display:grid;gap:16px;max-width:440px}
.find ~ .msg{max-width:440px}
.field{display:grid;gap:8px;font-weight:600;font-size:17px}
.field input{
  font:inherit;font-size:22px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;width:100%;
  padding:14px 16px;border:2px solid #93A4B3;border-radius:12px;background:#fff;color:var(--ink);
}
.field input:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
.hint{margin:-6px 0 0;font-size:15px;color:var(--slate)}
.btn{
  appearance:none;border:0;cursor:pointer;background:var(--blue);color:#fff;
  font:600 21px/1.1 "Barlow","Segoe UI",system-ui,-apple-system,sans-serif;
  padding:0 22px;border-radius:12px;min-height:58px;
}
.btn:hover{background:var(--blue-deep)}
.btn:disabled{opacity:.55;cursor:default}

/* Where's my code: the bottom of the one-page invoice (apps/invoices/sheet.css's footer), its check column greyed. */
.snip{margin:34px 0 0;max-width:440px}
.snip figcaption{font-weight:600;font-size:17px;margin-bottom:10px}
.paper{position:relative;overflow:hidden;background:#fff;border:1px solid #d5dde5;border-radius:10px;
       padding:14px 16px 16px;font:13px/1.4 "Segoe UI",Arial,sans-serif;color:#111;font-variant-numeric:normal}
.paper::before{content:"";position:absolute;left:0;right:0;top:0;height:30px;pointer-events:none;
               background:linear-gradient(#fff 15%,rgba(255,255,255,0))}
.tot4{margin-left:auto;border-collapse:collapse;min-width:58%}
.tot4 td{padding:1px 6px}
.tot4 td + td{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.tot4 .due td{font-size:15px;font-weight:700;border-top:1px solid #111;padding-top:4px}
.foot4{margin-top:14px;padding-top:10px;border-top:1px solid #ccc;display:grid;
       grid-template-columns:minmax(0,.75fr) minmax(0,1.6fr);gap:14px;font-size:12px;line-height:1.45}
.paper .lbl{font-size:10.5px;text-transform:uppercase;letter-spacing:.04em;color:#666;margin-bottom:2px}
.paper .grey .lbl{color:#9aa1ab}
.bar{display:block;height:8px;border-radius:4px;background:#e3e7eb;margin:7px 0}
.bar.w1{width:82%}.bar.w2{width:64%}.bar.w3{width:74%}
.on4{display:flex;gap:10px;align-items:flex-start}
.on4 > div{min-width:0;overflow-wrap:anywhere}
.on4 img{width:56px;height:56px;flex:none}
.paper .hl{display:inline-block;margin-top:2px;padding:3px 6px;border-radius:3px;background:var(--hl);
           outline:2px solid var(--hl-edge);outline-offset:1px;white-space:nowrap;font-size:14px}
.tag{display:inline-block;margin-top:9px;padding:3px 10px;border-radius:999px;background:var(--blue);color:#fff;
     font:600 13px/1.3 "Barlow","Segoe UI",system-ui,sans-serif;white-space:nowrap}

/* The blue panel on /pay tells how paying goes; it has no total. */
.guide .paying{margin-bottom:22px}
.steps{list-style:none;margin:0 0 30px;padding:0;display:grid;gap:20px}
.steps li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;align-items:center;font-size:24px;font-weight:600;line-height:1.2}
.steps b{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;color:var(--blue-deep);font-size:21px}
.guide .how{margin:0}

@media (max-width:860px){
  body{font-size:17px}
  .page{display:flex;flex-direction:column}
  .side{padding:20px 16px 20px;flex:1}
  .logo{width:112px}
  h1{margin-top:28px;font-size:30px}
  .lead{margin-bottom:18px}
  .pick{padding:14px 0;gap:0 12px;align-items:start}
  .pick input{margin-top:1px}
  .what b{font-size:18px}
  .sub{font-size:15px}
  .state{font-size:15px}
  .amt b{font-size:19px}
  .amt small{font-size:14px}
  .ask{padding-top:28px;font-size:15px}
  .panel{
    position:sticky;top:auto;bottom:0;align-self:stretch;height:auto;margin:0;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 14px;align-items:center;justify-content:stretch;
    container-type:normal;
  }
  .paying{grid-column:1;margin:0;font-size:15px}
  .total{grid-column:1;margin:0;font-size:30px}
  .total.long{font-size:24px}
  .go{grid-column:2;grid-row:1 / span 2;width:auto;min-height:54px;font-size:19px;padding:0 22px}
  .go:disabled{font-size:15px;padding:0 12px;max-width:150px}
  .how{grid-column:1 / -1;margin:8px 0 0;font-size:14px}
  .how span{display:inline}
  .msg{grid-column:1 / -1;margin-top:8px;font-size:14px;padding:8px 10px}
  /* /pay: the steps sit under the page instead of a bar pinned to the bottom */
  .page.lookup{min-height:0}
  .lookup .side{padding-bottom:8px}
  .lookup .lead{margin-bottom:20px}
  .side .msg{margin-top:16px;font-size:16px;padding:12px 14px}
  .guide{position:static;margin:16px;padding:22px 20px;border-radius:18px;display:flex;justify-content:flex-start}
  .guide .paying{margin-bottom:14px;font-size:17px}
  .steps{gap:12px;margin-bottom:16px}
  .steps li{grid-template-columns:34px minmax(0,1fr);gap:12px;font-size:18px}
  .steps b{width:34px;height:34px;font-size:17px}
  .guide .how{font-size:15px}
  .guide .how span{display:block}
  .snip{margin-top:26px}
  .paper{padding:12px 10px 12px;font-size:12px}
  .on4 img{width:52px;height:52px}
  .paper .hl{font-size:13px}
}
@media (max-width:420px){   /* the footer one block a row, as the sheet's own does on a phone */
  .foot4{grid-template-columns:1fr;gap:10px}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none !important}
}
