/* 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}
}


/* V4.16.4 compact professional renderer — preserves the original page split and card size */
#dashboardView #dashboardUnrealizedPane .pnl-pro-stage{
  position:relative;
  width:100%;
  min-width:0;
  overflow:hidden;
}
#dashboardView #dashboardUnrealizedPane #unrealizedChart{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  cursor:crosshair!important;
  touch-action:pan-y!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-footer{
  width:100%;
  margin-top:7px;
  border-top:1px solid rgba(105,153,189,.13);
  background:transparent;
  overflow:hidden;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  direction:rtl;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats>div{
  position:relative;
  min-width:0;
  min-height:47px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:6px 3px 4px;
  text-align:center;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats>div+div::before{
  content:"";
  position:absolute;
  right:0;
  top:20%;
  bottom:20%;
  width:1px;
  background:rgba(111,157,191,.12);
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats span{
  color:#879bb0;
  font-size:8px;
  font-weight:900;
  white-space:nowrap;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats b{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#edf5fc;
  font-size:11px;
  font-weight:950;
  direction:ltr;
  white-space:nowrap;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats b.positive{color:#3cdd8d}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats b.negative{color:#ff6670}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats small{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#657c92;
  font-size:7px;
  font-weight:800;
  direction:ltr;
  white-space:nowrap;
}
#dashboardView #dashboardUnrealizedPane .dashboard-chart-tooltip{
  z-index:12!important;
  min-width:132px!important;
  max-width:165px!important;
  padding:9px 10px!important;
  border-radius:11px!important;
  background:rgba(4,15,27,.94)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
}
#dashboardView .pnl-tooltip-session{
  display:block;
  margin-top:5px;
  padding-top:5px;
  border-top:1px solid rgba(115,156,190,.13);
  color:#85a9c3;
  font-size:7px;
  font-weight:900;
  text-align:right;
}
@media(max-width:760px){
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats>div:nth-child(n+4){
    border-top:1px solid rgba(111,157,191,.09);
  }
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats>div{min-height:43px;padding:5px 2px 3px}
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats span{font-size:7.4px}
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats b{font-size:10.2px}
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats small{font-size:6.6px}
}


/* V4.16.8 — smooth immutable P&L history */
#dashboardView #dashboardUnrealizedPane .unrealized-chart-title{
  max-width:126px!important;
  font-size:11.4px!important;
  line-height:1.03!important;
  padding:4px 8px!important;
}
#dashboardView #dashboardUnrealizedPane .unrealized-chart-title span{
  font-size:inherit!important;
}
#dashboardView #dashboardUnrealizedPane .dashboard-chart-header h2::after{
  display:none!important;
  content:none!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-footer{
  display:none!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-last-update{
  position:absolute;
  z-index:4;
  right:12px;
  bottom:1px;
  display:flex;
  align-items:center;
  gap:4px;
  direction:rtl;
  pointer-events:none;
  color:#647b90;
  font-size:7px;
  font-weight:850;
  line-height:1;
  opacity:.82;
  text-shadow:0 1px 4px rgba(0,0,0,.55);
}
#dashboardView #dashboardUnrealizedPane .pnl-last-update b{
  color:#758da3;
  font-size:7.2px;
  font-weight:900;
  direction:ltr;
}
#dashboardView #dashboardUnrealizedPane .pnl-last-update i{
  color:#6eaed1;
  font-size:8px;
  font-style:normal;
}
@media(max-width:760px){
  #dashboardView #dashboardUnrealizedPane .unrealized-chart-title{
    max-width:112px!important;
    font-size:10.7px!important;
    padding:4px 7px!important;
  }
  #dashboardView #dashboardUnrealizedPane .pnl-last-update{
    right:9px;
    font-size:6.6px;
  }
  #dashboardView #dashboardUnrealizedPane .pnl-last-update b{font-size:6.8px}
}

/* V4.16.9 — refined smooth chart with fixed stats row */
#dashboardView #dashboardUnrealizedPane .pnl-pro-footer{
  display:block!important;
  margin-top:4px!important;
  border-top:1px solid rgba(105,153,189,.13)!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats>div{
  min-height:40px!important;
  padding:5px 3px 4px!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats span{
  font-size:6.8px!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats b{
  font-size:9.2px!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-last-update{
  display:none!important;
}
@media(max-width:760px){
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats>div{
    min-height:38px!important;
    padding:4px 2px 3px!important;
  }
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats span{font-size:6.2px!important}
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats b{font-size:8.5px!important}
}

/* V4.16.21 — continuous movement timeline without clock animation */
#dashboardView #dashboardUnrealizedPane #unrealizedChart{
  height:310px!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stage{
  border-radius:10px;
  background:linear-gradient(180deg,rgba(7,22,37,.20),rgba(3,13,23,.05));
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-footer{
  margin-top:2px!important;
  border-top:1px solid rgba(105,153,189,.15)!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats>div{
  min-height:48px!important;
  gap:3px!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats span{
  font-size:7.1px!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats b{
  font-size:10px!important;
}
#dashboardView #dashboardUnrealizedPane .pnl-pro-stats small{
  display:block!important;
  font-size:6.2px!important;
  color:#6f859a!important;
}
#dashboardView #dashboardUnrealizedPane #pnlStatLatest::after{
  content:"●";
  display:inline-block;
  margin-inline-start:5px;
  color:#35dc89;
  font-size:7px;
  vertical-align:1px;
  text-shadow:0 0 7px rgba(53,220,137,.55);
}
@media(max-width:760px){
  #dashboardView #dashboardUnrealizedPane #unrealizedChart{height:285px!important}
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats>div{min-height:44px!important}
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats span{font-size:6.4px!important}
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats b{font-size:8.8px!important}
  #dashboardView #dashboardUnrealizedPane .pnl-pro-stats small{font-size:5.5px!important}
}

/* V4.18.0 CLOUD TEST — compact BTC switch using the same chart engine */
.pnl-pro-footer{gap:12px;flex-wrap:wrap}
.pnl-test-tools{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-inline-start:auto}
.pnl-test-tools button{border:1px solid rgba(245,185,66,.28);background:rgba(245,185,66,.08);color:#f5c45d;border-radius:999px;padding:7px 11px;font:900 10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial;cursor:pointer;transition:.2s ease}
.pnl-test-tools button.active{background:rgba(245,185,66,.18);border-color:rgba(245,185,66,.62);box-shadow:0 0 0 3px rgba(245,185,66,.07)}
.pnl-test-tools small{color:var(--muted);font-size:9px;font-weight:800}
@media(max-width:620px){.pnl-test-tools{width:100%;justify-content:center}.pnl-test-tools small{display:none}}
