/* The Business screens' front pages: Money, Phones, Social, Leads, Website, Reports
   (portal rethink stage 11; business.js, CONFIG.BUSINESS_NEW). Every rule is scoped
   under .bz, except the one that sets the classic screen aside while a front page
   draws (.bz-takes). Black for decisions, red only for what waits on the owner and
   for what has gone quiet or overdue, the yellow whisper only on search matches. */
.view.bz-takes > :not(.bz):not(#ch-revseg) { display: none !important; }
/* desk2 hides a section's other children (#view-x.d2-on > :not(#d2-x-page)); these win over it */
html #view-revenue.view.bz-takes.bz-takes > #bz-money:not([hidden]), html #view-netwrk.view.bz-takes.bz-takes > #bz-phones:not([hidden]),
html #view-social.view.bz-takes.bz-takes > #bz-social:not([hidden]), html #view-leads.view.bz-takes.bz-takes > #bz-leads:not([hidden]),
html #view-content.view.bz-takes.bz-takes > #bz-website:not([hidden]), html #view-reports.view.bz-takes.bz-takes > #bz-reports:not([hidden]) { display: block !important; }
.bz[hidden] { display: none !important; }
.bz { --bz-ink: #111; --bz-ink2: #3A3A36; --bz-line: #E3E3DC; --bz-line2: #EFEFE9; --bz-mute: #73736D; --bz-col: #EBEBE4; --bz-red: #D6362B; --bz-hl: #FFF2B8;
  color: var(--bz-ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.bz button, .bz input, .bz select { font: inherit; color: inherit; }
.bz-page { padding: 4px 0 40px; }
.bz .bz-mute { color: var(--bz-mute); font-size: 13px; }
.bz .bz-small { font-size: 12.5px; }
.bz .is-red { color: var(--bz-red); }
.bz .bz-strong { font-weight: 600; font-size: 14px; margin: 2px 0 8px; }
.bz .bz-status { color: var(--bz-mute); font-size: 15px; margin: 18px 0; }
.bz .bz-pad { padding: 14px 20px; margin: 0; }
.bz-grow { flex: 1; }
.bz .bz-link { padding: 0; border: 0; background: none; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; color: var(--bz-ink); }

.bz-top { display: flex; align-items: flex-start; gap: 16px; }
.bz-top .bz-link { margin-top: 8px; }
.bz .bz-big { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0; max-width: 900px; }
.bz .bz-sub { color: var(--bz-mute); font-size: 15px; margin: 6px 0 0; }
.bz-classicrow + .bz-grid, .bz-classicrow + .bz-card, .bz-classicrow + .bz-seg, .bz-top + .bz-grid, .bz-sub + .bz-grid, .bz-top + .bz-board, .bz-sub + .bz-recbar, .bz-top + .bz-recbar, .bz-sub + .bz-card, .bz-top + .bz-card, .bz-sub + .bz-seg, .bz-top + .bz-seg { margin-top: 20px; }
.bz-tabsrow { margin: 0 0 18px; }

.bz-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bz-col); }
.bz-seg button { height: 32px; padding: 0 15px; border: 0; border-radius: 8px; background: none; color: var(--bz-mute); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.bz-seg button.is-on { background: #fff; color: var(--bz-ink); font-weight: 600; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08); }
.bz-seg.is-sm button { height: 30px; padding: 0 12px; font-size: 13.5px; }

.bz-card { background: #fff; border: 1px solid var(--bz-line); border-radius: 14px; padding: 18px 20px; }
.bz-card + .bz-card { margin-top: 16px; }
.bz-card.bz-tbl { padding: 18px 0 0; overflow: hidden; }
.bz-tbl > .bz-ch { padding: 0 20px 6px; }
.bz .bz-h2 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.bz .bz-h3 { font-size: 13.5px; font-weight: 600; color: var(--bz-mute); margin: 20px 0 8px; }
.bz-ch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bz-ch .bz-mute { margin: 3px 0 0; }
.bz .bz-para { font-size: 15px; line-height: 1.45; margin: 0; }
/* the classic screen's own toolbar (tenant switcher, List / Board, New lead) belongs to the classic page */
html.bz-on #d2-tbslot { visibility: hidden; }
.bz .bz-foot { color: var(--bz-mute); font-size: 12.5px; margin: 0; padding: 12px 20px 14px; border-top: 1px solid var(--bz-line2); }
.bz-card:not(.bz-tbl) .bz-foot { padding: 12px 0 0; margin-top: 12px; }
.bz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.bz-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.bz-col { display: flex; flex-direction: column; min-width: 0; }
.bz-col > .bz-card + .bz-card { margin-top: 16px; }

.bz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border: 1px solid var(--bz-line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.bz-btn:hover { background: #FAFAF7; }
.bz-btn[disabled] { opacity: .4; cursor: default; }
.bz-btn.is-k { background: var(--bz-ink); border-color: var(--bz-ink); color: #fff; }
.bz-btn.is-soft { background: var(--bz-col); border-color: transparent; }
.bz-btn.bz-wide { width: 100%; margin-top: 14px; }
.bz-mask { letter-spacing: .12em; color: var(--bz-ink2); }

/* table rows */
.bz-row { display: grid; gap: 14px; align-items: center; padding: 13px 20px; border: 0; border-left: 3px solid transparent; background: none; width: 100%; text-align: left; font-size: 14.5px; }
.bz-row + .bz-row { border-top: 1px solid var(--bz-line2); }
button.bz-row { cursor: pointer; }
button.bz-row:hover, .bz-row.is-sel { background: #FAFAF7; }
.bz-row.is-h { padding-top: 6px; padding-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--bz-mute); }
.bz-row.is-foot { color: var(--bz-mute); font-size: 14px; }
.bz-row.is-you { border-left-color: var(--bz-red); }
.bz-row b { font-weight: 600; }
.bz-row .bz-r, .bz .bz-r { text-align: right; justify-self: end; }
.bz .bz-n { font-variant-numeric: tabular-nums; font-weight: 650; }
.bz-num { font-variant-numeric: tabular-nums; text-align: right; }
.bz-stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bz-bar { display: block; height: 5px; border-radius: 3px; background: var(--bz-line2); overflow: hidden; min-width: 60px; }
.bz-bar i { display: block; height: 100%; border-radius: 3px; background: var(--bz-ink); }

/* money */
.bz-prod { grid-template-columns: minmax(120px, 1.1fr) 110px minmax(120px, 1.5fr) 48px 90px; }
.bz-prod.is-minor b { color: var(--bz-mute); font-weight: 500; }
.bz-owed { grid-template-columns: minmax(0, 1fr) auto 110px; }
.bz-side .bz-li { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--bz-line2); background: none; font-size: 14.5px; cursor: pointer; text-align: left; }
.bz-side .bz-li:last-child { border-bottom: 0; padding-bottom: 0; }
.bz-side .bz-h2 + .bz-li { margin-top: 6px; }
.bz-side .bz-mute { margin: 6px 0 0; line-height: 1.4; }

/* phones */
.bz-calls { grid-template-columns: minmax(150px, 1.4fr) minmax(150px, 1.2fr) 80px 70px 120px; }
.bz-callbar { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.bz-callbar .bz-n { text-align: right; }
.bz-hour { display: grid; grid-template-columns: 1fr 40px 110px; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; }
.bz-hour b { text-align: right; font-variant-numeric: tabular-nums; }
.bz-usual { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--bz-line2); font-size: 14px; }
.bz-acc { grid-template-columns: minmax(150px, 1.3fr) minmax(100px, 1fr) 120px 110px 150px; }
.bz-pcall { grid-template-columns: minmax(0, 1fr) 110px; padding: 14px 18px; }
.bz-pcall .bz-bar { margin-top: 8px; width: 100%; }
.bz-sel { height: 36px; padding: 0 10px; border: 1px solid var(--bz-line); border-radius: 10px; background: #fff; font-size: 14px; }
.bz-flow { list-style: none; margin: 10px 0 0; padding: 0; }
.bz-step { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px calc(var(--d, 0) * 26px); padding: 11px 14px; border: 1px solid var(--bz-line); border-radius: 10px; font-size: 14.5px; max-width: 640px; }
.bz-step.is-head { border-color: var(--bz-ink); font-weight: 600; }
.bz-steplbl { font-size: 12.5px; font-weight: 600; color: var(--bz-mute); }
.bz-recbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bz-search { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--bz-line); border-radius: 12px; background: #fff; color: var(--bz-mute); }
.bz-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--bz-ink); }
.bz-reclist { margin-top: 18px; }
.bz-grid2 .bz-reclist { margin-top: 0; }
.bz-rec { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px 20px; border: 0; border-left: 3px solid transparent; background: none; text-align: left; cursor: pointer; position: relative; font-size: 14.5px; }
.bz-rec + .bz-rec { border-top: 1px solid var(--bz-line2); }
.bz-rec.is-sel { border-left-color: var(--bz-ink); background: #FAFAF7; }
.bz-rec .bz-open { position: absolute; right: 20px; top: 14px; font-weight: 600; }
.bz-quote { line-height: 1.45; }
.bz mark.bz-hl { background: var(--bz-hl); color: inherit; border-radius: 3px; padding: 0 1px; }
.bz-player { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 10px 12px; border-radius: 12px; background: #F7F7F2; }
.bz-playbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bz-ink); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bz-lines { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; max-height: 420px; overflow: auto; }
.bz-line { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.45; }
.bz-who { color: var(--bz-mute); font-weight: 600; font-size: 13px; }
.bz-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bz-line2); }

/* social */
.bz-post { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 20px 14px 17px; border-left: 3px solid transparent; }
.bz-post + .bz-post { border-top: 1px solid var(--bz-line2); }
.bz-post.is-you { border-left-color: var(--bz-red); }
.bz-post b { font-size: 15px; font-weight: 650; }
.bz-post .bz-mute { font-size: 12.5px; }
.bz-posts { padding-top: 0; }
.bz-thumb { width: 64px; height: 64px; border-radius: 8px; background: #EEEEE8; overflow: hidden; }
.bz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-col > .bz-posts + .bz-week { margin-top: 16px; }
.bz-week { padding-bottom: 0; }
.bz-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 6px -20px 0; border-top: 1px solid var(--bz-line2); }
.bz-day { padding: 12px 10px 16px 14px; border-left: 1px solid var(--bz-line2); font-size: 13.5px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.bz-day:first-child { border-left: 0; padding-left: 20px; }
.bz-dayh { font-size: 13px; color: var(--bz-mute); font-weight: 600; }
.bz-dit { display: flex; flex-direction: column; gap: 1px; }
.bz-week .bz-foot { margin: 0 -20px; }
.bz-ib { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--bz-line2); font-size: 14px; }
.bz-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--bz-line2); font-size: 14.5px; }
.bz-kv:last-child { border-bottom: 0; }
.bz-kv > span { color: var(--bz-mute); }
.bz-kv b { font-weight: 650; text-align: right; }
.bz-h2 + .bz-kv { margin-top: 6px; }

/* leads */
.bz-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.bz-bcol { background: #EDEDE6; border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bz-bh { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 2px; font-size: 14.5px; gap: 6px; }
.bz-bh .bz-mute { font-size: 12px; }
.bz-lead { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px 13px; border: 1px solid var(--bz-line); border-left: 3px solid var(--bz-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font-size: 13.5px; }
.bz-lead b { font-size: 15px; font-weight: 650; }
.bz-lead.is-quiet { border-left-color: var(--bz-red); }
.bz-lead.is-sel { border-color: var(--bz-ink); }
.bz-lfoot { display: flex; justify-content: space-between; margin-top: 6px; font-weight: 500; }
.bz-scrim { position: fixed; inset: 0; background: rgba(20,20,18,.28); z-index: 900; }
.bz-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100vw; background: #fff; z-index: 901; overflow: auto; padding: 22px 30px 28px; box-shadow: -8px 0 30px rgba(0,0,0,.12); }
.bz-panel.is-phone { top: auto; left: 0; width: auto; max-height: 92vh; border-radius: 18px 18px 0 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
.bz-ptop { display: flex; justify-content: space-between; align-items: center; }
.bz-x { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.bz .bz-pt { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 4px; }
.bz-panel > .bz-mute { margin: 0; }
.bz-with { display: flex; align-items: center; gap: 14px; margin: 16px 0 6px; padding: 12px 14px; border-radius: 12px; background: #F4F4EF; font-size: 14.5px; }
.bz-with > span { color: var(--bz-mute); width: 70px; }
.bz-with b { flex: 1; font-weight: 650; }
.bz-panel .bz-kv > span { width: 70px; flex: none; }
.bz-panel .bz-kv b { flex: 1; text-align: left; font-weight: 550; letter-spacing: .01em; }
.bz-asked { margin: 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--bz-line); font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.bz-act { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.bz-act li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.bz-act .bz-small { grid-column: 1 / -1; color: var(--bz-mute); }
.bz-pfoot { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--bz-line2); }
.bz-panel > .bz-small { text-align: right; margin: 8px 0 0; }
.bz-seg-full { display: flex; width: 100%; margin: 18px 0 14px; overflow-x: auto; }
.bz .bz-classicrow { margin: 10px 0 0; }
.bz-seg-full button { flex: 1 0 auto; padding: 0 9px; font-size: 13.5px; }
.bz-lcol { display: flex; flex-direction: column; gap: 10px; }

/* website */
.bz-art { grid-template-columns: minmax(0, 2.4fr) minmax(150px, 1.2fr) 110px 100px 50px; }
.bz-tlink { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.bz-checks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.bz-checks li { display: flex; gap: 10px; align-items: baseline; }
.bz-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2E7D4F; transform: translateY(-1px); }
.bz-checks li.is-no .bz-dot { background: var(--bz-red); }
.bz-job { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--bz-line2); font-size: 14.5px; }
.bz-job b { font-weight: 650; }

/* reports */
.bz-rep { grid-template-columns: 190px minmax(0, 1fr) 200px 16px; padding-top: 18px; padding-bottom: 18px; }
.bz-rep.is-h { padding-top: 0; padding-bottom: 8px; }
.bz-ask { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.bz-ask input { height: 44px; padding: 0 14px; border: 1px solid var(--bz-line); border-radius: 12px; background: #F7F7F2; font-size: 14.5px; }

/* phone */
.bz-page.is-phone { padding: 4px 16px 28px; }
/* Rethink 17: every front page on the phone (Money, Social, Website, Reports join Phones and Leads):
   the page title as on Today and Clients, one column, tables as stacked rows, the week as a list. */
html.tp-ios-app #view-content.view.bz-takes > #bz-website#bz-website:not([hidden]), html.tp-ios-app #view-revenue.view.bz-takes > #bz-money#bz-money:not([hidden]),
html.tp-ios-app #view-social.view.bz-takes > #bz-social#bz-social:not([hidden]), html.tp-ios-app #view-reports.view.bz-takes > #bz-reports#bz-reports:not([hidden]) { display: block !important; }
html.tp-ios-app #view-content > #bz-back-content#bz-back-content.bz-backbar:not([hidden]),
html.tp-ios-app #view-revenue > #bz-back-revenue#bz-back-revenue.bz-backbar:not([hidden]),
html.tp-ios-app #view-social > #bz-back-social#bz-back-social.bz-backbar:not([hidden]),
html.tp-ios-app #view-reports > #bz-back-reports#bz-back-reports.bz-backbar:not([hidden]),
html.tp-ios-app #view-netwrk > #bz-back-netwrk#bz-back-netwrk.bz-backbar:not([hidden]),
html.tp-ios-app #view-leads > #bz-back-leads#bz-back-leads.bz-backbar:not([hidden]) { display: flex !important; padding: 2px 16px 0; }
.bz-backbar[hidden] { display: none !important; }
.bz-backbar .bz-pback { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -6px; padding: 0 4px; border: 0; background: none; font-size: 17px; font-weight: 600; cursor: pointer; }
.bz-page.is-phone .bz-ptitle { margin: 4px 0 8px; font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.bz-page.is-phone .bz-row:not(.bz-pcall) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; padding: 12px 16px; }
.bz-page.is-phone .bz-row:not(.bz-pcall) > :first-child { flex: 1 1 100%; min-width: 0; }
.bz-page.is-phone .bz-row:not(.bz-pcall) > :not(:first-child) { font-size: 13.5px; }
.bz-page.is-phone .bz-row:not(.bz-pcall) > span:empty, .bz-page.is-phone .bz-row:not(.bz-pcall) > svg { display: none; }
.bz-page.is-phone .bz-row.is-h:not(.bz-pcall) { display: none; }
.bz-page.is-phone .bz-row .bz-r { margin-left: auto; text-align: right; }
.bz-page.is-phone .bz-row.bz-rep > span:nth-child(2) { flex: 1 1 100%; color: var(--bz-ink2); }
.bz-page.is-phone .bz-card { padding: 16px; }
.bz-page.is-phone .bz-card.bz-tbl { padding: 16px 0 0; }
.bz-page.is-phone .bz-tbl > .bz-ch { padding: 0 16px 6px; flex-wrap: wrap; }
.bz-page.is-phone .bz-foot { padding: 12px 16px 14px; }
.bz-page.is-phone .bz-days { grid-template-columns: 1fr; margin: 6px -16px 0; }
.bz-page.is-phone .bz-day { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; min-height: 0; padding: 11px 16px; border-left: 0; border-top: 1px solid var(--bz-line2); }
.bz-page.is-phone .bz-day:first-child { border-top: 0; padding-left: 16px; }
.bz-page.is-phone .bz-dayh { flex: none; width: 64px; }
.bz-page.is-phone .bz-week .bz-foot { margin: 0 -16px; }
.bz-page.is-phone .bz-btn, .bz-page.is-phone .bz-seg button { min-height: 44px; }
.bz-page.is-phone .bz-link { display: inline-flex; align-items: center; min-height: 44px; }
.bz-page.is-phone .bz-big { font-size: 22px; }
.bz-page.is-phone .bz-top { flex-wrap: wrap; }
.bz-page.is-phone .bz-top .bz-grow { display: none; }
.bz-page.is-phone .bz-tabsrow { overflow-x: auto; margin-bottom: 14px; }
.bz-page.is-phone .bz-seg.is-sm { display: flex; width: 100%; margin-top: 16px; }
.bz-page.is-phone .bz-seg.is-sm button { flex: 1; }
.bz-page.is-phone .bz-tbl { margin-top: 14px; }
.bz-page.is-phone .bz-lead { padding: 14px 16px; }

@media (max-width: 1000px) {
  .bz-grid { grid-template-columns: 1fr; }
  .bz-grid2 { grid-template-columns: 1fr; }
  .bz-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bz-page.is-phone .bz-tbl > .bz-ch .bz-seg.is-sm { box-sizing: border-box; max-width: 100%; }
.bz-page.is-phone .bz-seg.is-sm button { min-width: 0; padding: 0 4px; font-size: 13px; }
