/* payouts_board: doc 208 item 4, the payouts pipeline: every request on a board, with the time in each step. A PREVIEW screen's own styles, loaded only where it is switched on.
   The frame's tokens and classes only (app.css, ui2.css): lanes, items, stat cards, dots and labels. No side stripes,
   no capsules: a step is a dot and its name. */
:root{--pb-new:#9fb2ff;--pb-checks:#805cff;--pb-ready:#325fff;--pb-decided:#b49cff;--pb-paid:var(--teal);--pb-wait:rgba(209,221,255,.18)}

/* the step's dot and name, as the mockup's column heads */
.pb-dot{display:inline-flex;align-items:center;gap:.5rem}
.pb-dot::before{content:"";width:8px;height:8px;border-radius:50%;flex:none;background:var(--pb-new)}
.pb-dot.checks::before{background:var(--pb-checks)}.pb-dot.ready::before{background:var(--pb-ready)}
.pb-dot.decided::before{background:var(--pb-decided)}.pb-dot.paid::before{background:var(--pb-paid)}

.pb-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;margin:0 0 1rem}
.pb-right{margin-left:auto;display:flex;flex-wrap:wrap;align-items:center;gap:.8rem}
.pb-seg a.btn[aria-current=page]{background:var(--azure);border-color:var(--azure)}
.pb-n{color:var(--muted);font-weight:400}
.pb-warn{color:var(--warn)}.pb-ok{color:var(--teal)}

/* the board: five columns, scrolling sideways inside itself when the page is narrow, one under another on a phone */
.pb-scroll{overflow-x:auto;margin:0 0 1rem;padding-bottom:2px}
.lanes.pb-board{grid-template-columns:repeat(5,minmax(196px,1fr));margin:0}
.pb-col{min-width:0}
.pb-col h2{align-items:flex-start;margin-bottom:.35rem}
.pb-col h2 b{font-size:1.4rem}
.pb-money{margin:0;font:400 1.25rem/1.2 var(--austin);color:#fff;font-variant-numeric:tabular-nums}
.pb-med{margin:.15rem 0 .2rem;font-size:.76rem;color:var(--muted)}
.pb-col ol{list-style:none;margin:0;padding:0}
.pb-card{display:flex;flex-direction:column;gap:.45rem;padding:.85rem .9rem;background:rgba(255,255,255,.03)}
.pb-card.pb-picked{border-color:var(--azure);background:rgba(50,95,255,.12)}
.pb-card b{font-size:1.3rem}
.pb-card b a{color:#fff;text-decoration:none}
.pb-card b a:hover{text-decoration:underline}
.pb-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.2rem .6rem;font-size:.76rem}
.pb-meta strong{color:#fff;font-weight:600}
.pb-late{color:var(--warn)}.pb-unheld{color:var(--quiet);font-style:italic}
.pb-line{font-size:.76rem}
.pb-card .st{font-size:.76rem;white-space:normal;align-items:baseline}
.pb-card .st::before{transform:translateY(-1px)}
.pb-bar{display:grid;grid-template-columns:repeat(8,1fr);gap:4px}
.pb-bar i{height:4px;border-radius:2px;background:var(--pb-wait)}
.pb-bar i.passed{background:var(--teal)}.pb-bar i.failed{background:var(--warn)}
.pb-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4rem;padding-top:.5rem;border-top:1px solid var(--row)}
.pb-who{display:inline-flex;align-items:center;gap:.5rem;color:#fff;font-size:.86rem}
.pb-who .avatar{width:26px;height:26px;font-size:.62rem}
.pb-acts{display:flex;flex-wrap:wrap;gap:.45rem}
.pb-acts select{max-width:100%}
.pb-card .pb-acts .btn.small{min-height:32px;padding:0 .7rem}
.pb-more{padding:.7rem .2rem 0;font-size:.8rem}
.pb-foot-note{margin:0 0 1rem}
.pb-rule p{margin:0;color:var(--lead)}
.pb-rule{padding:1.1rem 1.4rem}

/* 4b: the panel beside the board; on a wide screen the board makes room, on a phone the panel covers it */
/* The panel sits inside the page, so the frame's own rule for a TEST band above the header (.test-band ~ .ui2-panel) never
   reaches it: on a wide screen it starts below the band and the header, as the frame's own panel does. */
@media (min-width:761px){.test-band ~ .shell .pb-panel{top:calc(var(--band,44px) + 108px)}}
html.pb-peek #view .grid4{display:none}
@media (min-width:1001px){html.pb-peek main#view{margin-right:calc(min(460px,40vw) + 1rem)}html.pb-peek .pb-panel{width:min(460px,40vw)}}
.ui2-panel.pb-panel > header h2{font:500 12px/1.2 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--eyebrow)}
.pb-panel .pb-amount{margin:0;font:400 2.2rem/1.1 var(--austin);color:#fff;font-variant-numeric:tabular-nums}
.pb-dots{display:flex;flex-wrap:wrap;gap:.4rem 1rem;margin:.6rem 0 1rem;font-size:.84rem}
.pb-panel .eyebrow{margin:1.4rem 0 .6rem}
.pb-panel .pb-acts{margin:.4rem 0}
.pb-times td,.pb-times th{font-size:.82rem}
.pb-times tr.pb-now td{color:#fff;font-weight:600}
.pb-history{list-style:none;margin:0;padding:0}
.pb-history li{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:.8rem;padding:.55rem 0;border-bottom:1px solid var(--row);font-size:.84rem;color:#fff}
.pb-when{color:var(--muted)}

/* 4c: the flow */
.pb-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.3rem 1rem;margin-bottom:.8rem}
.pb-h h2{margin:0}
.pb-where,.pb-two .card{margin:0 0 1rem}
.pb-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem}
.pb-svg{display:block;width:100%}
.pb-stack{height:14px;margin:0 0 1rem}
.pb-svg .look,.pb-svg .new{fill:var(--pb-new)}.pb-svg .decision,.pb-svg .checks{fill:var(--pb-checks)}.pb-svg .paid{fill:var(--pb-decided)}.pb-svg .ok{fill:var(--teal)}
.pb-svg rect.paid.tenth,.pb-svg rect.tenth{opacity:.35}
.pb-svg .track{fill:rgba(209,221,255,.1)}
.pb-spans,.pb-rows{list-style:none;margin:0;padding:0}
.pb-spans li{display:grid;grid-template-columns:minmax(0,20rem) minmax(0,1fr) minmax(0,11rem);align-items:center;gap:.4rem 1.2rem;padding:.8rem 0;border-top:1px solid var(--row)}
.pb-spans .pb-dot{color:#fff;align-items:baseline}
.pb-spans .sub{margin:.15rem 0 0 1rem}
.pb-num{text-align:right;color:var(--muted);font-size:.84rem}.pb-num b{color:#fff}
.pb-track{height:8px}
.pb-rows li{display:grid;grid-template-columns:minmax(0,9rem) minmax(0,1fr) auto;align-items:center;gap:1rem;padding:.5rem 0;font-size:.86rem;color:#fff}
.pb-rows li.empty{display:flex}
.pb-age{height:auto;max-height:280px}
.pb-age .grid{stroke:rgba(209,221,255,.1)}
.pb-age .ax{fill:var(--quiet);font:10px var(--sans)}
.pb-age .band{fill:rgba(209,221,255,.07)}
.pb-age .target{stroke:var(--warn);stroke-dasharray:4 3}
.pb-age circle.ok{fill:var(--teal)}.pb-age circle.slow{fill:var(--warn)}
.pb-days{height:120px}.pb-days rect{fill:var(--azure)}
.pb-axis{display:flex;justify-content:space-between;margin:.4rem 0 0;font-size:.74rem;color:var(--quiet)}
.pb-legend{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin:.8rem 0 0;font-size:.78rem}
.pb-key{display:inline-flex;align-items:center;gap:.5rem;color:var(--muted)}
.pb-key::before{content:"";width:12px;height:10px;border-radius:3px;background:rgba(209,221,255,.14)}
.pb-key.target::before{height:0;border-top:2px dashed var(--warn);border-radius:0}

@media (max-width:1180px){.pb-two{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){
  .lanes.pb-board{grid-template-columns:minmax(0,1fr)}
  .pb-scroll{overflow:visible}
  .pb-right{margin-left:0;width:100%}
  .pb-right .btn.primary{flex:1}
  .pb-tools > .pb-seg{overflow-x:auto;max-width:100%;scrollbar-width:none}
  .pb-tools > .pb-seg .btn{flex:none}
  .pb-spans li{grid-template-columns:minmax(0,1fr) auto}
  .pb-spans li .pb-track{grid-column:1 / -1;grid-row:2}
  .pb-rows li{grid-template-columns:minmax(0,7rem) minmax(0,1fr) auto}
}
