/* Waleed Trade V4.12.5 — interactive daily / total P&L chart */
#dashboardView .unrealized-summary-cards{
  align-items:center!important;
  overflow:visible!important;
}
#dashboardView .unrealized-period-control{
  position:relative!important;
  flex:0 0 auto!important;
  width:82px!important;
  min-width:82px!important;
  height:30px!important;
  min-height:30px!important;
  display:grid!important;
  grid-template-columns:14px minmax(0,1fr) 10px!important;
  align-items:center!important;
  gap:3px!important;
  padding:0 8px!important;
  border:1px solid rgba(112,157,190,.17)!important;
  border-radius:10px!important;
  background:linear-gradient(145deg,rgba(13,28,45,.72),rgba(5,15,26,.58))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.10)!important;
  backdrop-filter:blur(9px)!important;
  -webkit-backdrop-filter:blur(9px)!important;
  color:#9fb2c5!important;
  cursor:pointer!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
#dashboardView .unrealized-period-control:hover,
#dashboardView .unrealized-period-control:focus-within{
  border-color:rgba(105,188,232,.29)!important;
  background:linear-gradient(145deg,rgba(18,37,57,.82),rgba(7,18,30,.66))!important;
  color:#c4d8e8!important;
}
#dashboardView .unrealized-period-icon{
  font-size:10px!important;
  line-height:1!important;
  color:#72badf!important;
  opacity:.82!important;
}
#dashboardView .unrealized-period-label{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-align:center!important;
  direction:rtl!important;
  font-size:8.4px!important;
  font-weight:950!important;
  line-height:1!important;
}
#dashboardView .unrealized-period-chevron{
  font-size:10px!important;
  line-height:1!important;
  color:#7890a6!important;
  transform:translateY(-1px)!important;
}
#dashboardView .unrealized-period-control select{
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  width:100%!important;
  height:100%!important;
  opacity:0!important;
  cursor:pointer!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
#dashboardView .unrealized-mini-stat[role="button"]{
  cursor:pointer!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
#dashboardView .unrealized-mini-stat[role="button"]:hover{
  transform:translateY(-1px)!important;
  filter:brightness(1.035)!important;
}
#dashboardView .unrealized-mini-stat[role="button"]:focus-visible{
  outline:1px solid rgba(115,201,244,.72)!important;
  outline-offset:2px!important;
}
#dashboardView .unrealized-mini-stat.chart-mode-active{
  border-color:rgba(107,198,244,.48)!important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.075),
    0 8px 22px rgba(0,0,0,.20),
    0 0 0 1px rgba(94,188,238,.10),
    0 0 15px rgba(76,172,224,.11)!important;
}
#dashboardView .unrealized-mini-stat.chart-mode-active::after{
  background:linear-gradient(90deg,rgba(111,206,255,.86),rgba(var(--summary-rgb),.18),transparent)!important;
  box-shadow:0 0 9px rgba(88,190,244,.38)!important;
}
#dashboardView .unrealized-dashboard-pane[data-pnl-mode="daily"] .dashboard-chart-header h2::after,
#dashboardView .unrealized-dashboard-pane[data-pnl-mode="total"] .dashboard-chart-header h2::after{
  display:inline-flex!important;
  align-items:center!important;
  height:15px!important;
  margin-inline-start:6px!important;
  padding:0 6px!important;
  border:1px solid rgba(104,190,235,.14)!important;
  border-radius:999px!important;
  background:rgba(69,154,205,.055)!important;
  color:#7ea9c1!important;
  font-size:6.8px!important;
  font-weight:950!important;
  line-height:1!important;
  vertical-align:middle!important;
}
#dashboardView .unrealized-dashboard-pane[data-pnl-mode="daily"] .dashboard-chart-header h2::after{content:"اليومي"}
#dashboardView .unrealized-dashboard-pane[data-pnl-mode="total"] .dashboard-chart-header h2::after{content:"الإجمالي"}
#dashboardView #unrealizedChart{touch-action:pan-y!important}
#dashboardView #unrealizedChartTooltip .dashboard-tooltip-date{
  direction:rtl!important;
  text-align:right!important;
}

@media(max-width:1180px) and (min-width:761px){
  #dashboardView .unrealized-period-control{width:76px!important;min-width:76px!important;padding-inline:6px!important}
}
@media(max-width:760px){
  #dashboardView .unrealized-summary-cards{
    width:100%!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
    padding-bottom:2px!important;
  }
  #dashboardView .unrealized-summary-cards::-webkit-scrollbar{display:none!important}
  #dashboardView .unrealized-period-control{
    order:-1!important;
    width:76px!important;
    min-width:76px!important;
    height:29px!important;
    min-height:29px!important;
    padding-inline:6px!important;
  }
  #dashboardView .unrealized-period-label{font-size:8px!important}
  #dashboardView .unrealized-dashboard-pane[data-pnl-mode] .dashboard-chart-header h2::after{display:none!important}
}
