/* The board on the site, batch 2: Invoices, in TODAY'S HQ LOOK (board.css's tokens and money.css's strip and rows; the old page's invoice
   rows, project cards and payment bar words). Every rule under .bd and prefixed iv- (board.css, money.css and style.css untouched).
   Sizes: board.css's six per width; weights 400, 500, 600 (the one green button). Colour only for a state: paid green, overdue coral,
   invoiced plain, still to come grey. */

/* the strip: three figures (money.css's .mstrip draws four at 1200 px) */
@media (min-width:1200px){ .bd .iv-strip{grid-template-columns:repeat(3,minmax(0,1fr))} .bd .iv-strip .ms:nth-child(3){padding-right:0} }
.bd .iv-own{margin:0 0 14px;max-width:72ch}

/* rows: the title wraps, the button sits on its own line on a phone (a row's own buttons under its words) */
.bd .iv-row > .row-main{flex:1 1 0}
.bd .iv-row > .btn{flex:none;margin-left:auto}
.bd a.row-main{display:grid;gap:2px;min-height:44px;align-content:center}
.bd .iv-more{color:var(--accent)}
.bd .iv-all{display:flex;align-items:center;gap:6px;min-height:44px;padding:4px var(--pad) 8px;font-size:var(--t-sub);color:var(--accent);font-weight:500}
.bd .iv-all .mn-chev{color:var(--accent)}

/* projects: a block per project under its client, its payments as lines with their state */
.bd .iv-grp{display:grid;gap:2px;padding:0 0 6px;border-top:1px solid var(--sep)}
.bd .sec > .iv-grp:first-of-type{border-top:0}
.bd .iv-cl{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px var(--pad) 0;font-size:var(--t-sub);font-weight:500;color:var(--label-2)}
.bd .iv-cl:hover{color:var(--label)}
.bd .iv-pj{display:grid;gap:3px;padding:8px var(--pad) 10px;min-width:0}
.bd .iv-pjh{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-width:0}
.bd .iv-pjh .row-title{flex:1 1 auto;min-width:0}
.bd .iv-chip{flex:none;font-size:var(--t-meta);font-weight:500;color:var(--label-2);border:1px solid var(--line-3);border-radius:99px;padding:2px 9px;white-space:nowrap}
.bd .iv-chip.iv-building,.bd .iv-chip.iv-ready,.bd .iv-chip.iv-testing,.bd .iv-chip.iv-active{color:var(--accent);border-color:rgba(61,220,132,.35)}
.bd .iv-tally{color:var(--label-3)}
.bd .iv-st{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.bd .iv-st li + li{border-top:1px solid var(--sep)}
.bd .iv-stb{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 12px;width:100%;min-height:44px;padding:8px 12px;text-align:left;font-size:var(--t-sub)}
.bd button.iv-stb:hover{background:var(--surface-2)}
.bd .iv-stk{color:var(--label);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.bd .iv-stv{color:var(--label-2);text-align:right;overflow-wrap:anywhere}
.bd .iv-stv.iv-paid{color:var(--accent)}
.bd .iv-stv.iv-late{color:var(--late)}
.bd .iv-stv.iv-sent{color:var(--label)}
.bd .iv-fold{border-top:0;padding-left:var(--pad)}

/* the invoice sheet */
.bd .iv-big{font-family:var(--serif);font-size:var(--t-title);line-height:1.05;text-align:center;margin-top:4px;font-variant-numeric:tabular-nums}
.bd .iv-head .note-k{text-align:center}
.bd .mn-mid.t-red{color:var(--late)}
.bd .iv-acts{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.bd .iv-pic{margin:0;border:1px solid var(--line-2);border-radius:12px;overflow:hidden;background:#F6F6F2}
.bd .iv-pic img{display:block;width:100%;height:auto}
.bd .iv-pic figcaption{padding:8px 12px;background:var(--surface-2)}
.bd .f-group .mn-trail{max-width:50%}

/* New invoice: each agreed stage or month a line to tick */
.bd .iv-pick{position:relative;display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 16px;cursor:pointer}
.bd .f-group .iv-pick + .iv-pick::before{content:"";position:absolute;top:0;left:16px;right:16px;height:1px;background:var(--sep)}
.bd .iv-pick input{flex:none;width:22px;height:22px;accent-color:var(--accent)}
.bd .iv-pick:hover{background:var(--raise)}
/* (the last edits) New project, a monthly fee's Change */
.bd .sec-h .iv-pjnew{margin-left:auto;align-self:center}
.bd .iv-pjh .iv-fee{flex:none;margin-left:auto}
.bd .iv-kind{margin:0 0 2px}
.bd .iv-ph{padding:0 16px 10px;margin:-4px 0 0}
.bd .mn-f.iv-pf{flex-wrap:wrap}
.bd .iv-area{min-height:64px;resize:vertical;font:inherit}
@media (max-width:560px){.bd .mn-f.iv-pf .mn-in.wide{flex-basis:100%}}
