/* =========================================================
   ROTATION REPLAY
   ========================================================= */

.rr-body-lock{
  overflow:hidden;
}

.rr-open-btn{
  border:1px solid #bfded8;
  background:#eff9f7;
  color:#176f66;
  height:36px;
  padding:0 14px;
  border-radius:8px;
  font-family:inherit;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}

.rr-open-btn:hover{
  background:#e5f5f2;
  border-color:#91c9bf;
}

.rr-play-icon{
  font-size:8px;
}

.rr-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  background:#f5f7f9;
  overflow:auto;
}

.rr-overlay.hidden{
  display:none;
}

.rr-shell{
  min-height:100vh;
}

.rr-topbar{
  position:sticky;
  top:0;
  z-index:20;
  min-height:74px;
  padding:14px 28px;
  background:#fff;
  border-bottom:1px solid #e2e8f0;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.rr-title-block h1{
  margin:2px 0 2px;
  font-size:22px;
  line-height:1.15;
  color:#172135;
}

.rr-title-block p{
  margin:0;
  color:#738096;
  font-size:10px;
}

.rr-close{
  width:36px;
  height:36px;
  border:1px solid #dfe5ec;
  border-radius:8px;
  background:#fff;
  color:#64748b;
  font-size:22px;
  cursor:pointer;
}

.rr-close:hover{
  background:#f5f7fa;
}

.rr-toolbar{
  padding:14px 28px;
  background:#fff;
  border-bottom:1px solid #e6ebf1;
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.rr-field{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.rr-field label{
  font-size:8px;
  font-weight:900;
  color:#78879a;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.rr-field input{
  height:34px;
  border:1px solid #dce3ea;
  border-radius:7px;
  padding:0 10px;
  background:#fff;
  color:#26364a;
  font-family:inherit;
  font-size:10px;
}

.rr-date-field{
  min-width:145px;
}

.rr-granularity{
  display:flex;
  padding:3px;
  border:1px solid #dce3ea;
  border-radius:8px;
  background:#f5f7f9;
}

.rr-granularity button{
  height:28px;
  min-width:67px;
  padding:0 10px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#697b8f;
  font-family:inherit;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}

.rr-granularity button.active{
  background:#fff;
  color:#14766c;
  box-shadow:0 1px 3px rgba(15,23,42,.10);
}

.rr-apply{
  height:34px;
  padding:0 18px;
  border:0;
  border-radius:7px;
  background:#17766d;
  color:#fff;
  font-family:inherit;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.rr-apply:hover{
  background:#11685f;
}

.rr-loading{
  min-height:250px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  color:#748397;
  font-size:10px;
  font-weight:700;
}

.rr-loading.hidden,
.rr-content.hidden{
  display:none;
}

.rr-content{
  padding:18px 28px 40px;
  max-width:1500px;
  margin:0 auto;
}

.rr-replay-bar{
  min-height:60px;
  padding:10px 12px;
  margin-bottom:14px;
  background:#fff;
  border:1px solid #e1e7ed;
  border-radius:11px;
  display:flex;
  align-items:center;
  gap:14px;
}

.rr-play{
  height:34px;
  min-width:88px;
  border:0;
  border-radius:7px;
  background:#17766d;
  color:#fff;
  font-family:inherit;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.rr-date-focus{
  min-width:115px;
  display:flex;
  flex-direction:column;
}

.rr-date-focus span{
  font-size:7px;
  color:#8090a4;
  font-weight:900;
  letter-spacing:.08em;
}

.rr-date-focus b{
  margin-top:2px;
  font-size:12px;
  color:#25354a;
}

.rr-slider{
  flex:1;
  accent-color:#17766d;
}

.rr-step-actions{
  display:flex;
  gap:5px;
}

.rr-step-actions button{
  width:32px;
  height:32px;
  border:1px solid #dce3ea;
  border-radius:7px;
  background:#fff;
  color:#536579;
  font-size:18px;
  cursor:pointer;
}

.rr-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}

.rr-summary-card{
  min-height:82px;
  padding:12px 14px;
  border:1px solid #e1e7ed;
  border-radius:10px;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.rr-summary-card span{
  font-size:8px;
  font-weight:900;
  color:#7c8b9e;
  letter-spacing:.07em;
}

.rr-summary-card b{
  margin:2px 0;
  font-size:22px;
  line-height:1;
  color:#26364a;
}

.rr-summary-card small{
  font-size:8px;
  color:#8492a4;
}

.rr-summary-card.up{
  background:#f4fbf8;
}

.rr-summary-card.up b{
  color:#23765f;
}

.rr-summary-card.down{
  background:#fff7f8;
}

.rr-summary-card.down b{
  color:#b04c56;
}

.rr-section{
  margin-bottom:14px;
  padding:16px;
  background:#fff;
  border:1px solid #e1e7ed;
  border-radius:11px;
}

.rr-section-head{
  margin-bottom:14px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
}

.rr-section-head h2{
  margin:2px 0 3px;
  font-size:15px;
  color:#1e2b3c;
}

.rr-section-head p{
  margin:0;
  font-size:9px;
  color:#7a899c;
}

.rr-legend{
  display:flex;
  gap:14px;
  font-size:8px;
  font-weight:800;
  color:#69798c;
}

.rr-legend span{
  display:flex;
  align-items:center;
  gap:5px;
}

.rr-legend i{
  width:8px;
  height:8px;
  border-radius:50%;
}

.rr-legend i.up{
  background:#4fa88e;
}

.rr-legend i.down{
  background:#d56e76;
}

.rr-legend i.neutral{
  background:#aeb8c4;
}

.rr-board{
  display:grid;
  grid-template-columns:repeat(
    auto-fill,
    minmax(230px,1fr)
  );
  gap:9px;
}

.rr-board-card{
  min-height:122px;
  padding:12px;
  border:1px solid #e1e7ed;
  border-radius:10px;
  background:#fff;
  text-align:left;
  font-family:inherit;
  cursor:pointer;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    border-color .12s ease;
}

.rr-board-card:hover{
  transform:translateY(-1px);
  box-shadow:0 5px 15px rgba(15,23,42,.06);
}

.rr-board-card.up{
  background:#f7fcfa;
  border-color:#d2eae3;
}

.rr-board-card.down{
  background:#fff9f9;
  border-color:#edd9dc;
}

.rr-board-card.neutral{
  background:#fafbfc;
}

.rr-board-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
}

.rr-board-top>div{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.rr-board-top>div>b{
  font-size:12px;
  color:#223247;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rr-board-top small{
  margin-top:2px;
  font-size:7px;
  color:#8492a3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rr-direction{
  padding:4px 7px;
  border-radius:999px;
  font-size:7px;
  font-weight:900;
  white-space:nowrap;
}

.rr-direction.up{
  background:#e6f5ef;
  color:#1c765f;
}

.rr-direction.down{
  background:#fae8ea;
  color:#ac444f;
}

.rr-direction.neutral{
  background:#edf1f5;
  color:#6b7b8d;
}

.rr-zone{
  margin:10px 0;
  padding:7px 8px;
  border-radius:7px;
  background:rgba(255,255,255,.70);
  color:#526477;
  font-size:9px;
  font-weight:800;
}

.rr-board-bottom{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.rr-board-bottom>div{
  display:flex;
  flex-direction:column;
}

.rr-board-bottom .price{
  text-align:right;
}

.rr-board-bottom span{
  font-size:6px;
  font-weight:900;
  letter-spacing:.06em;
  color:#8794a5;
}

.rr-board-bottom b{
  margin-top:2px;
  font-size:9px;
  color:#334459;
}

.rr-board-bottom small{
  margin-top:1px;
  font-size:7px;
  color:#8492a3;
}

.rr-timeline-wrap{
  width:100%;
  height:180px;
  border:1px solid #edf0f4;
  border-radius:8px;
  background:#fafbfc;
  overflow:hidden;
}

.rr-timeline{
  width:100%;
  height:100%;
}

.rr-bar-up{
  fill:#65b79e;
}

.rr-bar-down{
  fill:#d97980;
}

.rr-bar-neutral{
  fill:#c6ced7;
}

.rr-timeline-cursor{
  stroke:#24364a;
  stroke-width:2;
  vector-effect:non-scaling-stroke;
}

.rr-timeline-axis{
  margin-top:5px;
  display:flex;
  justify-content:space-between;
  font-size:7px;
  color:#8190a2;
}

.rr-empty{
  padding:35px;
  text-align:center;
  color:#7d8b9d;
  font-size:10px;
}

.rr-error{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
}

.rr-error b{
  color:#a4464f;
}

@media(max-width:900px){

  .rr-content{
    padding:14px;
  }

  .rr-toolbar{
    padding:12px 14px;
  }

  .rr-summary{
    grid-template-columns:repeat(2,1fr);
  }

  .rr-replay-bar{
    flex-wrap:wrap;
  }

  .rr-slider{
    flex-basis:100%;
    order:10;
  }

  .rr-board{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   ROTATION TIMELINE - PRICE + HOVER
   ========================================================= */

.rr-price-context{
  margin:-4px 0 8px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  font-size:8px;
  color:#7b899b;
}

.rr-price-context b{
  color:#34465a;
  font-size:9px;
}

.rr-price-line-sample{
  width:20px;
  height:0;
  border-top:2px solid #334155;
}

.rr-timeline-wrap{
  position:relative;
}

.rr-price-path{
  fill:none;
  stroke:#334155;
  stroke-width:2;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}

.rr-price-dot{
  fill:#334155;
  stroke:#fff;
  stroke-width:1.5;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}

.rr-price-scale{
  fill:#64748b;
  font-size:8px;
  font-weight:700;
  pointer-events:none;
}

.rr-timeline-hover-line{
  stroke:#475569;
  stroke-width:1;
  stroke-dasharray:4 3;
  opacity:.75;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}

.rr-timeline-tooltip{
  position:absolute;
  z-index:20;
  width:190px;
  padding:10px 11px;
  border:1px solid #dce3ea;
  border-radius:9px;
  background:rgba(255,255,255,.97);
  box-shadow:0 8px 24px rgba(15,23,42,.14);
  pointer-events:none;
  backdrop-filter:blur(5px);
}

.rr-timeline-tooltip.hidden{
  display:none;
}

.rr-tooltip-period{
  margin-bottom:8px;
  padding-bottom:7px;
  border-bottom:1px solid #edf0f4;
  font-size:10px;
  font-weight:900;
  color:#25364a;
}

.rr-tooltip-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:4px;
  margin-bottom:8px;
}

.rr-tooltip-grid span{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  font-size:7px;
  color:#8290a2;
}

.rr-tooltip-grid i{
  width:6px;
  height:6px;
  border-radius:50%;
}

.rr-tooltip-grid i.up{
  background:#65b79e;
}

.rr-tooltip-grid i.down{
  background:#d97980;
}

.rr-tooltip-grid i.neutral{
  background:#c6ced7;
}

.rr-tooltip-grid b{
  font-size:11px;
  color:#334155;
}

.rr-tooltip-price{
  padding-top:7px;
  border-top:1px solid #edf0f4;
  display:flex;
  justify-content:space-between;
  gap:8px;
}

.rr-tooltip-price span{
  font-size:8px;
  color:#78879a;
}

.rr-tooltip-price b{
  font-size:10px;
  color:#26364a;
}

.rr-board-card.selected{
  box-shadow:
    0 0 0 2px #54708d inset,
    0 4px 12px rgba(15,23,42,.06);
}

.rr-board-card.selected::after{
  content:'PRICE';
  position:absolute;
  right:10px;
  bottom:7px;
  font-size:6px;
  font-weight:900;
  letter-spacing:.08em;
  color:#64748b;
}

.rr-board-card{
  position:relative;
}


/* ===== TWO ROTATION TIMELINES ===== */

.rr-inst-up{
  fill:#bfe6d8;
}

.rr-inst-down{
  fill:#f0c1c5;
}

.rr-inst-neutral{
  fill:#e5e9ee;
}

.rr-price-legend i{
  width:20px !important;
  height:0 !important;
  border-radius:0 !important;
  border-top:2px solid #334155;
  background:transparent !important;
}

.rr-inst-tooltip{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px 12px;
}

.rr-inst-tooltip>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.rr-inst-tooltip span{
  font-size:7px;
  font-weight:800;
  color:#8492a4;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.rr-inst-tooltip b{
  font-size:9px;
  color:#324358;
}

.rr-inst-tooltip b.up{
  color:#22755f;
}

.rr-inst-tooltip b.down{
  color:#ac4853;
}

.rr-inst-tooltip b.neutral{
  color:#68798c;
}

