/* RapiRupa source state and readonly sales; preserve existing business colors. */
.revenue-rr-action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;font:inherit;line-height:1.5;padding:11px 16px;border-radius:10px;min-height:44px;text-align:center;overflow-wrap:anywhere}
.revenue-actions .revenue-rr-action{background:var(--work-green,#1d634e);border:1px solid var(--work-green,#1d634e);color:#fff;font-weight:600}
.revenue-rr-refresh{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0}
.revenue-rr-refresh p{margin:0;color:#49665a;font-size:12px;line-height:1.6;min-width:0;overflow-wrap:anywhere}
.revenue-rr-refresh small{display:block;color:#697a71;font-size:11px}
.revenue-rr-refresh button{flex:0 0 auto;min-height:44px}
.revenue-rr-refresh [data-state="unavailable"]{color:#925119}
.revenue-rr-status{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px;border:1px solid #cbded1;border-radius:16px;background:#edf5ef;min-width:0}
.revenue-rr-status>div{min-width:0}
.revenue-rr-status h3{font-size:17px;line-height:1.45;letter-spacing:-.25px;margin:12px 0 6px;font-weight:600;color:#173f2d}
.revenue-rr-status p{font-size:13px;line-height:1.7;margin:0;color:#42614f;max-width:690px;overflow-wrap:anywhere}
.revenue-rr-status .revenue-rr-action{flex:0 0 auto;background:#fff;border:1px solid #a9c8b2;color:#184e31;font-size:12px;font-weight:600}
.revenue-rr-badge{display:inline-flex;align-items:center;border-radius:99px;background:#d8ebdc;color:#19582c;padding:5px 10px;font-size:11px;font-weight:600;line-height:1.5}
.revenue-rr-status[data-state="unavailable"]{background:#fff5e7;border-color:#ebd2aa}
.revenue-rr-status[data-state="unavailable"] h3,.revenue-rr-status[data-state="unavailable"] p{color:#77501e}
.revenue-rr-status[data-state="unavailable"] .revenue-rr-badge{background:#f5e3c5;color:#785017}
.revenue-rr-status p.revenue-rr-warning{margin-top:8px;color:#7d5119;font-weight:500}
.revenue-rr-legacy{margin:14px 0;padding:16px 20px;background:#fff9eb;border:1px solid #ebdbb5;border-radius:12px;font-size:12px;line-height:1.7;color:#765326}
.revenue-rr-legacy p{margin:5px 0 0}
.revenue-rr-list-note{font-size:12px;line-height:1.7;color:#77613c;margin:12px 0}
.revenue-business-summary .revenue-rr-card .revenue-business-body{gap:8px}
.revenue-business-summary .revenue-rr-card .revenue-business-name{min-height:0}
.revenue-business-summary .revenue-rr-source{align-self:flex-start;padding:4px 8px;border-radius:5px;background:#ffffff24;font-size:10px;font-weight:600;line-height:1.5}
.revenue-business-summary .revenue-rr-card-label{font-size:11px;line-height:1.5;margin-top:4px;color:#ffffffd9}
.revenue-business-summary .revenue-rr-card .revenue-business-body>b{padding-right:0;font-size:clamp(23px,2.3vw,30px);overflow-wrap:anywhere}
.revenue-business-summary .revenue-rr-card .revenue-business-body>small{padding-right:0}
.revenue-rr-card-metrics{display:grid;gap:12px;margin-top:6px;padding-top:14px;border-top:1px solid #ffffff35;min-width:0}
.revenue-rr-card-metrics>div{display:grid;gap:4px;min-width:0}
.revenue-business-summary .revenue-rr-card-metrics span{font-size:10px;line-height:1.5;color:#ffffffd9}
.revenue-rr-card-metrics strong{font-size:17px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.revenue-business-summary .revenue-rr-cost-note{font-size:10px!important;line-height:1.6}
.revenue-rr-card .revenue-business-icon{bottom:auto;top:20px;width:46px;height:46px;opacity:.1}
.revenue-rr-sale{border-left:3px solid #2b8550}
.revenue-rr-modal-note{font-size:12px;line-height:1.8;color:#50675b;background:#f1f6f1;border:1px solid #dfe9df;border-radius:10px;padding:14px 16px;overflow-wrap:anywhere}
.revenue-rr-modal-note a{color:#1a6342;font-weight:600;text-underline-offset:3px}
.revenue-rr-detail h2{margin-top:16px;line-height:1.35}
.revenue-rr-detail .work-detail div{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:start;line-height:1.7}
.revenue-rr-detail .revenue-rr-action{background:var(--work-green,#1d634e);border:1px solid var(--work-green,#1d634e);color:white;font-size:13px;font-weight:600}
@media(max-width:900px){.revenue-rr-status{align-items:flex-start;flex-direction:column;gap:14px}.revenue-rr-status .revenue-rr-action{align-self:flex-start}}
@media(max-width:700px){
  .revenue-rr-refresh{align-items:flex-start;gap:12px}.revenue-rr-refresh p{font-size:11px}.revenue-rr-refresh small{font-size:10px}.revenue-rr-refresh button{font-size:12px;padding:10px}
  .revenue-rr-status{padding:18px}.revenue-rr-status h3{font-size:16px}.revenue-rr-status p{font-size:12px}.revenue-rr-status .revenue-rr-action{width:100%}
  .revenue-actions .revenue-rr-action{flex:1;font-size:13px;padding:12px 10px;white-space:normal}
  .revenue-business-summary .revenue-rr-card .revenue-business-body>b{font-size:23px}
  .revenue-business-summary .revenue-rr-card-label{font-size:10px}.revenue-rr-card-metrics strong{font-size:16px}
  .revenue-rr-card .revenue-business-icon{width:34px;height:34px;right:8px;top:14px}
  .revenue-rr-card-metrics{gap:10px}.revenue-rr-detail .work-detail div{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;font-size:13px}
  .revenue-rr-detail .revenue-rr-action{width:100%}.revenue-rr-list-note{font-size:11px}
}
@media(max-width:420px){.revenue-business-summary{grid-template-columns:minmax(0,1fr)}.revenue-rr-card-metrics{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.revenue-rr-card-metrics strong{font-size:17px}.revenue-rr-refresh button{max-width:110px}.revenue-rr-legacy{padding:14px}}
