/* Blog: Zoho CRM round-robin lead routing (.pbrr-). Hero lead dealer + rotation simulator */
.pbrr-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.pbrr-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 18px 0 0; font: 500 13.5px/1.4 var(--f-body); color: #475569; }
.pbrr-meta span { padding: 4px 10px; border-radius: 999px; background: #EEF3F7; }

/* hero: leads dealt to rep lanes */
.pbrr-deal { margin: 0; padding: 20px; border-radius: 22px; background: #fff; border: 1px solid #DCE5EC; box-shadow: 0 34px 60px -44px rgba(8,34,56,.75); }
.pbrr-deal__cap { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 12px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #0B5E8C; }
.pbrr-deal__cap em { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: #FFF1D6; font-style: normal; letter-spacing: .06em; color: #8A5A00; }
.pbrr-deal__in { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pbrr-deal__in li { padding: 10px 12px; border-radius: 12px; background: #F3F7F9; border: 1px solid #E2E8F0; font-size: 13px; line-height: 1.4; color: #334155; animation: pbrrPulse 8s ease-in-out infinite; }
.pbrr-deal__in li b { display: block; color: #082238; font: 700 13.5px/1.3 var(--f-display); }
.pbrr-deal__in li:nth-child(2) { animation-delay: 2s; }
.pbrr-deal__in li:nth-child(3) { animation-delay: 4s; }
.pbrr-deal__in li:nth-child(4) { animation-delay: 6s; }
.pbrr-deal__rule { margin: 12px 0; text-align: center; }
.pbrr-deal__rule span { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #082238; color: #fff; font: 700 12px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.pbrr-deal__lanes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pbrr-deal__lanes li { display: grid; justify-items: center; gap: 8px; padding: 12px 6px; border-radius: 14px; background: linear-gradient(160deg, #061A2E, #0A3A63 60%, #07605E); color: #D5E3EE; text-align: center; animation: pbrrPulse 8s ease-in-out infinite; }
.pbrr-deal__lanes li b { font: 700 13px/1.25 var(--f-display); color: #fff; }
.pbrr-deal__lanes li i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #FFB81C; color: #082238; font: 800 14px/1 var(--f-display); font-style: normal; }
.pbrr-deal__lanes li:nth-child(2) { animation-delay: 2s; }
.pbrr-deal__lanes li:nth-child(3) { animation-delay: 4s; }
.pbrr-deal__lanes li:nth-child(4) { animation-delay: 6s; }
@keyframes pbrrPulse { 0%, 22% { box-shadow: 0 0 0 3px #FFB81C; transform: translateY(-2px); } 26%, 100% { box-shadow: 0 0 0 0 rgba(255,184,28,0); transform: none; } }

/* article */
.pbrr-art { padding-top: clamp(24px, 4vw, 48px); }
.pbrr-art__grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pbrr-body { max-width: 76ch; font-size: 17.5px; line-height: 1.72; color: #334155; min-width: 0; }
.pbrr-body > p { margin: 0 0 18px; }
.pbrr-body a { color: #0A6FA8; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pbrr-h2 { margin: 56px 0 0; font: 700 clamp(25px, 1rem + 1.2vw, 33px)/1.25 var(--f-display); letter-spacing: -.02em; color: #082238; scroll-margin-top: 100px; text-wrap: balance; }
.pbrr-h2:first-child { margin-top: 0; }
.pbrr-body .pbrr-answer { margin: 18px 0 22px; padding: 16px 20px; border-radius: 14px; background: #EAF6FB; border-left: 5px solid #00A3D9; font-weight: 500; color: #082238; }
.pbrr-tablewrap { margin: 0 0 22px; overflow-x: auto; border-radius: 16px; border: 1px solid #DCE5EC; }
.pbrr-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.5; background: #fff; }
.pbrr-table caption { padding: 12px 16px; text-align: left; font: 700 13px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #0B5E8C; background: #F3F7F9; }
.pbrr-table th, .pbrr-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid #E2E8F0; }
.pbrr-table thead th { font: 700 13px/1.3 var(--f-body); color: #475569; background: #F8FAFC; }
.pbrr-table tbody th { font-weight: 700; color: #082238; }
.pbrr-list { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.pbrr-list li { padding: 12px 16px; border-radius: 12px; background: #F3F7F9; border-left: 4px solid #00B2A9; }
.pbrr-list b, .pbrr-steps b { color: #082238; }
.pbrr-steps { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: rr; display: grid; gap: 10px; }
.pbrr-steps li { counter-increment: rr; position: relative; padding: 12px 16px 12px 54px; border-radius: 14px; background: #fff; border: 1px solid #E2E8F0; font-size: 16px; line-height: 1.55; }
.pbrr-steps li::before { content: counter(rr); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #082238; color: #fff; font: 800 13px/1 var(--f-display); }

/* side */
.pbrr-side { position: sticky; top: 100px; }
.pbrr-side__card { padding: 18px; border-radius: 18px; background: #F3F7F9; }
.pbrr-side__t { margin: 0 0 8px; font: 700 12px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #0B5E8C; }
.pbrr-side ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.pbrr-side li a { display: block; padding: 8px 10px; border-left: 3px solid #CBD5E1; color: #082238; font: 600 14.5px/1.35 var(--f-body); text-decoration: none; }
.pbrr-side li a:hover { border-color: #00A3D9; background: #fff; }

/* simulator */
.pbrr-sim { scroll-margin-top: 80px; }
.pbrr-sim__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; margin-top: 28px; }
.pbrr-sim__form { display: grid; gap: 14px; }
.pbrr-sim__set { margin: 0; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0; min-width: 0; }
.pbrr-sim__set legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; font: 700 16px/1.3 var(--f-display); color: #082238; }
.pbrr-sim__set > label { clear: both; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 6px; border-top: 1px solid #EEF3F7; font-size: 15px; color: #334155; cursor: pointer; }
.pbrr-sim__set input[type="radio"], .pbrr-sim__set input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: #0A6FA8; cursor: pointer; }
.pbrr-sim__range { clear: both; display: block; width: 100%; min-height: 44px; accent-color: #0A6FA8; }
.pbrr-sim__rep { clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 44px; padding: 8px 6px; border-top: 1px solid #EEF3F7; font-size: 15px; color: #334155; }
.pbrr-sim__rep b { flex: 1 1 110px; color: #082238; }
.pbrr-sim__rep label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.pbrr-sim__rep select { min-height: 36px; padding: 4px 8px; border-radius: 8px; border: 1px solid #CBD5E1; background: #fff; font: 500 14.5px var(--f-body); color: #082238; }
.pbrr-sim__w[hidden] { display: none; }
.pbrr-sim__out { position: sticky; top: 100px; padding: 22px; border-radius: 20px; background: linear-gradient(160deg, #061A2E, #0A3A63 60%, #07605E); color: #D5E3EE; }
.pbrr-sim__lbl { margin: 0 0 8px; font: 700 12px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #9FD8EE; }
.pbrr-sim__bars { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.pbrr-sim__bars li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 34px; align-items: center; gap: 10px; font-size: 14px; }
.pbrr-sim__bars li span { color: #fff; font-weight: 600; }
.pbrr-sim__bars li i { display: block; height: 12px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; }
.pbrr-sim__bars li i::before { content: ""; display: block; height: 100%; width: var(--v, 0%); border-radius: 6px; background: #3FB97A; transition: width .4s ease; }
.pbrr-sim__bars li.is-away i::before { background: #FF8A65; }
.pbrr-sim__bars li b { text-align: right; color: #fff; font: 700 15px/1 var(--f-display); }
.pbrr-sim__miss { margin: 0 0 12px; font: 700 22px/1.3 var(--f-display); color: #fff; }
.pbrr-sim__note { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #fff; }
.pbrr-sim__send { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: #FFB81C; color: #082238; font: 700 15px/1.2 var(--f-body); cursor: pointer; }
.pbrr-sim__send:hover { background: #F0A400; }
.pbrr-sim__send:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pbrr-sim__foot { margin: 22px 0 0; font-size: 16px; color: #334155; }
.pbrr-sim__foot a { color: #0A6FA8; font-weight: 600; }

@media (max-width: 980px) {
  .pbrr-hero__grid, .pbrr-art__grid, .pbrr-sim__grid { grid-template-columns: minmax(0, 1fr); }
  .pbrr-side { display: none; }
  .pbrr-sim__out { position: static; }
}
@media (max-width: 640px) {
  .pbrr-body { font-size: 16.5px; }
  .pbrr-deal__lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pbrr-sim__bars li { grid-template-columns: 80px minmax(0, 1fr) 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .pbrr-deal__in li, .pbrr-deal__lanes li { animation: none; }
  .pbrr-sim__bars li i::before { transition: none; }
}
