/* Revenue lifecycle (WP-E): orders, contracts, subscriptions, billing, portal. */
.rv-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.rv-steps li { list-style: none; position: relative; text-align: center; padding: 28px 4px 0; font-size: 12px; color: #6b7c8d; }
.rv-steps li::before { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: #dbe5ef; z-index: 0; }
.rv-steps li:first-child::before { display: none; }
.rv-steps li i { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #dbe5ef; color: #fff; display: grid; place-items: center; font-size: 12px; z-index: 1; }
.rv-steps li.done { color: #0b4d33; }
.rv-steps li.done i { background: #13b985; }
.rv-steps li.done::before { background: #13b985; }
.rv-steps li b { display: block; color: inherit; }
.rv-steps li small { display: block; font-size: 11px; }
.rv-ship { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rv-ship .ct-input { width: auto; min-width: 0; padding: 4px 6px; font-size: 12px; }
.rv-ship .ct-input.qty { width: 64px; }
.rv-ship .ct-input.trk { width: 120px; }
.rv-progress { height: 6px; border-radius: 3px; background: #e6edf4; overflow: hidden; margin-top: 4px; }
.rv-progress span { display: block; height: 100%; background: linear-gradient(90deg, #29b6db, #13b985); }
.rv-clause { border: 1px solid var(--line2, #e3eaf1); border-radius: 4px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.rv-clause.ns { border-color: #f0b429; box-shadow: inset 3px 0 0 #f0b429; background: #fffdf5; }
.rv-clause h4 { margin: 0 0 4px; font-size: 13px; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.rv-clause p { margin: 0; font-size: 12.5px; line-height: 1.5; white-space: pre-line; }
.rv-clause details textarea { width: 100%; min-height: 110px; }
.rv-body { white-space: pre-line; font-size: 12.5px; line-height: 1.55; max-height: 420px; overflow: auto; background: #fbfdff; border: 1px solid var(--line2, #e3eaf1); padding: 10px 12px; border-radius: 4px; }
.rv-journal td { font-size: 12px; }
.rv-mark { background: #fff3a8; padding: 0 2px; }
.rv-flex { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.rv-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.rv-actions > details { border: 1px solid var(--line2, #e3eaf1); border-radius: 4px; padding: 8px 10px; background: #fbfdff; }
.rv-actions > details > summary { cursor: pointer; font-weight: 700; font-size: 12.5px; color: #1d5fa8; list-style: none; display: flex; gap: 6px; align-items: center; }
.rv-actions > details > summary::-webkit-details-marker { display: none; }
.rv-actions > details[open] > summary { margin-bottom: 8px; }
.rv-actions .ct-field { margin-bottom: 6px; }
.rv-usage .bar { height: 8px; border-radius: 4px; background: #e6edf4; position: relative; overflow: hidden; }
.rv-usage .bar span { position: absolute; inset: 0 auto 0 0; background: #2083ee; }
.rv-usage .bar span.over { background: #ef5927; }
.rv-acct { display: grid; gap: 4px; }
.rv-cardpm { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line2, #e3eaf1); border-radius: 6px; background: #fff; }
.rv-cardpm .brand { font-weight: 800; text-transform: uppercase; font-size: 12px; color: #0b3e7a; min-width: 70px; }
.rv-cardpm .grow { flex: 1; min-width: 0; }
.rv-portal-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.rv-tile { border: 1px solid var(--line2, #e3eaf1); border-radius: 6px; background: #fff; padding: 12px 14px; display: grid; gap: 4px; }
.rv-tile span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rv-tile b { font-size: 20px; font-variant-numeric: tabular-nums; }
.rv-tile small { color: var(--muted); }
.rv-cohort td.c { text-align: center; font-weight: 700; }
.rv-cohort td.c.g { background: #e1f6ec; color: #0b7a50; } .rv-cohort td.c.a { background: #fff1d6; color: #8b620d; } .rv-cohort td.c.r { background: #fde8eb; color: #a3283d; }
@media (max-width: 760px) { .rv-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; } .rv-steps li:nth-child(4)::before { display: none; } }
