/* Bips Bookkeeping: the client portal (/portal/). This file loads after site.css and flow.css and uses their colors, buttons and form fields. */
.bips-page > main.bips-portal{display:block;width:100%;flex:1 0 auto}
.bips-portal-narrow{width:100%;max-width:720px;margin:0 auto;padding:8px clamp(20px,4vw,40px) 80px}
.bips-portal-wide{width:100%;max-width:1160px;margin:0 auto;padding:8px clamp(20px,4vw,40px) 80px}
.bips-portal h1{margin:0;font-size:clamp(2rem,3.5vw,2.75rem);line-height:1.1;font-weight:800;letter-spacing:-0.02em;text-wrap:balance}
.bips-portal h1:focus,.bips-portal h2:focus,.bips-portal span:focus{outline:none}
.bips-portal h2{margin:0;font-size:1.75rem;line-height:1.2;font-weight:800}
.bips-portal .bips-talk h2{font-size:1.1875rem;line-height:1.35}
.bips-portal-top p{display:flex;flex-wrap:wrap;align-items:center;gap:6px 28px}
.bips-linkbtn{min-height:44px;padding:0 2px;background:none;border:0;color:var(--ink);font-family:inherit;font-size:1.125rem;line-height:1.3;font-weight:700;text-decoration:underline;cursor:pointer}
.bips-linkbtn:hover{color:var(--leaf)}
.bips-pcard{margin-top:16px;padding:36px}
.bips-pcard .bips-flag{margin:16px 0 0}
.bips-pcard form{margin-top:24px}
.bips-pcard form .bips-error{margin-top:18px}
.bips-pcard .bips-btn.full{margin-top:22px}
.bips-card p.bips-portal-after{margin-top:12px}
.bips-portal-face{display:block;width:84px;height:84px;margin:0 0 12px -6px}
.bips-portal-mascot{display:block;width:120px;height:auto;margin-bottom:12px}
.bips-portal-email{font-weight:800;overflow-wrap:anywhere}
.bips-portal-row{margin-top:24px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.bips-pcard .bips-skip{margin-top:14px}

/* The portal: the name of the business, the two cards at the top */
.bips-portal-biz{margin:8px 0 8px;font-size:1.1875rem;line-height:1.35;font-weight:800;color:var(--leaf)}
.bips-portal-note{margin:20px 0 0}
.bips-portal-two{margin-top:32px;display:flex;flex-wrap:wrap;align-items:stretch;gap:28px}
.bips-pbox{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;background:var(--paper);border:3px solid var(--ink);border-radius:20px;box-shadow:8px 8px 0 var(--shade);padding:28px}
.bips-pbox-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.bips-pbox-fill{flex:1 1 auto;display:flex;flex-direction:column}
.bips-pbox-fill[hidden]{display:none}
.bips-ptag{margin:0;padding:2px 14px;border:2px solid var(--ink);border-radius:999px;background:var(--lime);font-size:1.0625rem;line-height:1.5;font-weight:800;white-space:nowrap}
.bips-ptag.plain{background:#FFFFFF}
.bips-ptag.quiet{border-color:var(--line);background:var(--mint-2);font-weight:700}
.bips-ptag.new{padding:1px 12px;font-size:1rem}
.bips-plines{margin-top:18px}
.bips-plines p{margin:0}
.bips-plines .bips-line.total{margin-top:6px;font-size:1.5rem}
.bips-pcheck{margin:16px 0 0;display:flex;align-items:center;gap:10px;font-size:1.125rem;line-height:1.45;font-weight:700}
.bips-pcheck img{flex:none;display:block;width:28px;height:28px}
.bips-pbox .bips-noticed{font-size:1.0625rem}
.bips-pbox-text{margin:16px 0 0;font-size:1.125rem;line-height:1.5}
.bips-pbox-go{margin-top:auto;padding-top:24px}
.bips-pbox-go.two{display:flex;flex-wrap:wrap;gap:12px 14px}
.bips-pbox-go.two .bips-btn{flex:1 1 170px;gap:10px;padding:0 20px}
.bips-pbox-go.two .bips-btn:first-child{flex:2 1 220px}
.bips-pbox-go.two svg{flex:none;display:block}
.bips-pbox-go .bips-small{margin-top:12px}
.bips-pneed{margin:14px 0 0;padding:12px 16px;border-radius:12px;background:var(--mint);font-size:1.125rem;line-height:1.5}
.bips-pneed strong{font-weight:800}
.bips-pbox .bips-field{margin-top:18px}
.bips-pbox .bips-drop{margin-top:18px;padding:26px 20px;gap:12px}
.bips-pbox .bips-error{margin-top:18px}
.bips-pgot{margin:16px 0 0;display:flex;align-items:center;gap:12px;font-size:1.5rem;line-height:1.25;font-weight:800}
.bips-pgot img{flex:none;display:block;width:38px;height:38px}
.bips-pnames{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.bips-pnames li{padding:11px 16px;border-radius:12px;background:var(--mint-2);font-size:1.125rem;line-height:1.4;font-weight:600;overflow-wrap:anywhere}

/* The lists: all the reports, and "More" */
.bips-portal h2.bips-portal-h{margin-top:48px;font-size:1.875rem}
.bips-portal h2.bips-portal-h.small{font-size:1.5rem}
.bips-plist{margin-top:16px;background:#FFFFFF;border:2px solid var(--line);border-radius:18px;padding:6px 24px}
.bips-plist.more{margin-top:14px;padding:4px 24px}
.bips-prow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding:18px 0;border-bottom:2px solid var(--mint)}
.bips-plist.more .bips-prow{padding:16px 0}
.bips-prow:last-child{border-bottom:0}
.bips-prow.stack{display:block}
.bips-prow-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px}
.bips-prow .what{flex:1 1 280px;min-width:0}
.bips-prow .what.icon{display:flex;align-items:center;gap:16px}
.bips-prow .what.icon svg{flex:none;display:block}
.bips-prow .what.icon > div{min-width:0}
.bips-prow h3{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:1.4375rem;line-height:1.3;font-weight:800}
.bips-plist.more h3{font-size:1.25rem}
.bips-prow .what p{margin:2px 0 0;font-size:1.0625rem;line-height:1.5;color:var(--sage)}
.bips-plist.more .what p{margin:0}
.bips-prow .acts{display:flex;flex-wrap:wrap;gap:10px 12px}
.bips-pbtn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 22px;background:#FFFFFF;color:var(--ink);border:2px solid var(--ink);border-radius:12px;font-family:inherit;font-size:1.125rem;line-height:1.2;font-weight:700;text-decoration:none;cursor:pointer}
.bips-pbtn:hover{background:var(--mint);color:var(--ink)}
.bips-psent{list-style:none;margin:16px 0 4px;padding:0;display:flex;flex-direction:column;gap:8px}
.bips-psent li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 20px;padding:8px 16px;border-radius:12px;background:var(--mint-2);font-size:1.125rem;line-height:1.4}
.bips-psent li > span:first-child{min-width:0;font-weight:600;overflow-wrap:anywhere}
.bips-psent li > span:last-child{display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px;font-size:1.0625rem;color:var(--sage)}
.bips-portal button[disabled]{opacity:.6;cursor:wait}

@media (max-width:720px){
.bips-portal-narrow,.bips-portal-wide{padding:12px 20px 56px}
.bips-portal h1{font-size:2rem}
.bips-portal h2{font-size:1.5rem}
.bips-portal h2.bips-portal-h{margin-top:36px;font-size:1.625rem}
.bips-portal h2.bips-portal-h.small{font-size:1.375rem}
.bips-portal-top p{gap:0 18px}
.bips-pcard{padding:22px}
.bips-portal-two{margin-top:24px;gap:22px}
.bips-pbox{flex-basis:100%;border-radius:18px;box-shadow:6px 6px 0 var(--shade);padding:20px}
.bips-pbox-go.two .bips-btn,.bips-pbox-go.two .bips-btn:first-child{flex:1 1 100%}
.bips-pbox .bips-btn.full{padding:6px 12px}
.bips-plist,.bips-plist.more{padding-left:16px;padding-right:16px}
.bips-prow h3{font-size:1.3125rem}
.bips-prow .acts{width:100%}
.bips-prow .acts .bips-btn{flex:1 1 150px;padding:6px 12px;white-space:nowrap}
.bips-pgot{font-size:1.3125rem}
}

/* The admin view (BACKLOG.md, item 30): the bar above a client's page, and the admin page (/admin/) */
.bips-portal-wide.bips-admin-wrap{padding-bottom:0}
.bips-admin-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding:16px 22px;background:var(--dark);color:#FFFFFF;border-radius:16px}
.bips-admin-bar p{flex:1 1 300px;margin:0;font-size:1.0625rem;line-height:1.5}
.bips-admin-bar strong{color:var(--lime)}
.bips-drop:has(input:disabled) label{opacity:.6;cursor:not-allowed}
.bips-admin-tag{padding:2px 14px;border:2px solid var(--ink);border-radius:999px;background:var(--lime);font-size:1.0625rem;line-height:1.5;font-weight:800}
.bips-alist{margin-top:24px}
.bips-arow .bips-ptag{white-space:normal}
.bips-portal .bips-prow h2.bips-aname{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:1.4375rem;line-height:1.3;font-weight:800}
.bips-arow .what p + p{margin-top:4px}
.bips-arow .bips-aflag{margin:14px 0 0}
.bips-aempty{margin:16px 0}
