/* Jz Scales portal: Revenue Overview styles (Stage 4). Uses the Home Overview pieces (home4.css loads first). Three weights,
   nothing under 11px. */
.dp-wrap .cc-top>*+*{margin-top:16px}
.rv4-head{grid-template-columns:repeat(6,minmax(0,1fr))}
.rv4-head .j-k{padding:14px 16px 13px}.rv4-head .j-k .v{font-size:25px;margin-top:6px}
.rv4-head .j-k .cmp,.rv4-head .j-k .ctx{font-size:11.5px}.rv4-head .warn{color:#FFC23D}
.rv4-mbm{display:flex;flex-direction:column}.rv4-mbm .j-chart{flex:1;display:flex;align-items:center}
.j-lg i.ra{background:linear-gradient(#2EF2B8,#14B8A6)}.j-lg i.rb{background:linear-gradient(#B9FBE8,#7CF7D4);opacity:.8}
.rv4-row{display:grid;gap:16px}
.rv4-act{grid-template-columns:repeat(3,minmax(0,1fr))}
.rv4-r2{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.rv4-r3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.rv4-row>.cc-box{margin:0!important}
.rv4-tot{font-size:13.5px;font-weight:800;color:#E6E8EB;font-variant-numeric:tabular-nums}
.rv4-act .dp-list ul{max-height:none}
/* the action panels: same height, quiet when empty */
.rv4-act .cc-none{margin:10px 18px 16px;font-size:13.5px;color:#868B92}
/* payments: service labels in their colours */
.rv4-p{border:1px solid #23262D;background:#15161A!important;color:#C9CDD3!important}
.rv4-p.k-retainer{color:#2EF2B8!important;border-color:rgba(46,242,184,.25)}.rv4-p.k-leadfees{color:#7CF7D4!important;border-color:rgba(124,247,212,.22)}
.rv4-p.k-website_build{color:#8FB0FF!important;border-color:rgba(91,140,255,.3)}.rv4-p.k-website_care{color:#C3AEFF!important;border-color:rgba(160,123,255,.3)}
.dp-pay .dp-t td{padding-top:9px;padding-bottom:9px}
@media(max-width:1380px){.rv4-head{grid-template-columns:repeat(3,minmax(0,1fr))}.rv4-head .j-k:nth-child(4){border-left:0}.rv4-head .j-k:nth-child(n+4){border-top:1px solid #1E2026}}
@media(max-width:1060px){.rv4-act,.rv4-r2,.rv4-r3{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.rv4-head{grid-template-columns:repeat(2,minmax(0,1fr))}.rv4-head .j-k:nth-child(n){border-left:1px solid #1E2026;border-top:1px solid #1E2026}.rv4-head .j-k:nth-child(odd){border-left:0}.rv4-head .j-k:nth-child(-n+2){border-top:0}.rv4-head .j-k .v{font-size:21px}}

/* owed to you: the four age buckets in one row, no empty slot */
.rv4-r2 .rv3-age{grid-template-columns:repeat(4,minmax(0,1fr))}
.rv4-r2>.cc-box{display:flex;flex-direction:column}.rv4-r2 .rv3-sec>p.mut,.rv4-r2 .rv3-sec>.rv3-note{margin-top:auto}
.rv4-more{width:auto;margin:4px 18px 14px;padding:7px 12px}
@media(max-width:760px){.rv4-r2 .rv3-age{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.rv4-r2 .rv3-sec table th:nth-child(2),.rv4-r2 .rv3-sec table td:nth-child(2){display:none}.rv4-r2 .rv3-sec table th,.rv4-r2 .rv3-sec table td{padding-left:8px;padding-right:8px}}
@media(max-width:760px){.rv4-r2 .rv3-sec table{font-size:12.5px;min-width:0!important;width:100%}.rv4-r2 .rv3-sec table th{white-space:normal}.rv4-r2 .rv3-sec .cc-tw{overflow:visible}}

/* the year so far: each figure in its own tile, like Owed to you */
.dp-stats{display:flex;flex-direction:column}
.dp-stats dl{flex:1;margin:12px 16px 16px;padding:0;gap:1px;border-radius:12px;overflow:hidden;background:#1E2026;grid-template-columns:1fr 1fr;grid-auto-rows:1fr}
.dp-stats dl>div{background:#121318;padding:9px 14px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.dp-stats dt{font-size:12.5px}.dp-stats dd{margin-top:4px;font-size:21px}.dp-stats dd small{font-size:11.5px;margin-top:3px}
.rv4-share{display:block;height:5px;margin-top:7px;border-radius:99px;background:#1C1E24;overflow:hidden}
.rv4-share i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--c-mon2),var(--c-mon));box-shadow:0 0 10px rgba(46,242,184,.45)}

/* period control above the income sections */
.rv4-per{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:22px!important}
.rv4-per h2{margin:0;font-size:15px;font-weight:800}.rv4-per h2 span{margin-left:8px;font-size:12.5px;font-weight:600;color:#868B92}
.rv4-per .chips{display:inline-flex;gap:2px;padding:3px;border:1px solid #1E2026;border-radius:10px;background:#101114}
.rv4-per .chip{border:0;border-radius:7px;min-height:30px;padding:0 12px;font-size:13.5px;font-weight:600;background:none;color:#A2A7AD;cursor:pointer}
.rv4-per .chip.on{background:#1C1F23;color:#F2F3F4}
.dp-stats dd small .j-d{margin-right:4px}

/* the chart takes the width the smaller summary gives up */
.dp-wrap .cc-r2{grid-template-columns:minmax(0,1.85fr) minmax(0,1fr)!important}
.dp-stats dl[data-n="4"]{grid-template-columns:1fr 1fr}.dp-stats dl[data-n="5"]>div:last-child{grid-column:1/-1}
@media(max-width:1060px){.dp-wrap .cc-r2{grid-template-columns:minmax(0,1fr)!important}}
