/*
 * OptionsGEX NSE Mobile Overview V1
 * Dark / mobile-first / touch-readable.
 */

.ogex-mo{
  box-sizing:border-box;
  width:100%;
  margin:0 0 16px;
  color:#e5edf5;
}

body.ogex-mobile-overview-v1-active
#summaryCards{
  display:none !important;
}

/*
 * Suppress only the two legacy Overview grids.
 * They remain in source for rollback/parity,
 * but their fabricated/static flow/alert presentation
 * is not shown to the operator.
 */
body.ogex-mobile-overview-v1-active
#page-overview>.grid.three{
  display:none !important;
}

.ogex-mo-head,
.ogex-mo-levels,
.ogex-mo-chart-card,
.ogex-mo-decision,
.ogex-mo-details{
  border:1px solid #243244;
  border-radius:14px;
  background:#071018;
  box-shadow:
    0 1px 0 rgba(255,255,255,.02) inset;
}

.ogex-mo-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:16px;
}

.ogex-mo-eyebrow{
  color:#8293a8;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  line-height:1.4;
}

.ogex-mo-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:4px;
}

.ogex-mo-title-row h2{
  margin:0;
  color:#f8fafc;
  font-size:24px;
  line-height:1.2;
}

.ogex-mo-status{
  display:inline-flex;
  min-height:30px;
  align-items:center;
  justify-content:center;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
}

.ogex-mo-status.live{
  border:1px solid rgba(74,222,128,.42);
  background:rgba(34,197,94,.12);
  color:#4ade80;
}

.ogex-mo-status.closed{
  border:1px solid rgba(248,113,113,.38);
  background:rgba(239,68,68,.10);
  color:#fb7185;
}

.ogex-mo-status.stale,
.ogex-mo-status.waiting{
  border:1px solid rgba(250,204,21,.36);
  background:rgba(250,204,21,.08);
  color:#facc15;
}

.ogex-mo-status.nodata{
  border:1px solid #334155;
  background:#0f172a;
  color:#94a3b8;
}

.ogex-mo-freshness{
  margin-top:7px;
  color:#94a3b8;
  font-size:13px;
  line-height:1.45;
}

.ogex-mo-mode{
  min-width:125px;
  padding:10px 12px;
  border-radius:10px;
  background:#0f172a;
}

.ogex-mo-mode span{
  display:block;
  color:#7f90a5;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
}

.ogex-mo-mode strong{
  display:block;
  margin-top:4px;
  color:#e2e8f0;
  font-size:14px;
  line-height:1.4;
}

.ogex-mo-kpis{
  display:grid;
  grid-template-columns:
    repeat(6,minmax(0,1fr));
  gap:9px;
  margin-top:10px;
}

.ogex-mo-kpis>div{
  box-sizing:border-box;
  min-width:0;
  min-height:86px;
  padding:12px;
  border:1px solid #243244;
  border-radius:12px;
  background:#0a1420;
}

.ogex-mo-kpis>div.primary{
  background:#0d1926;
}

.ogex-mo-kpis span{
  display:block;
  color:#8293a8;
  font-size:11px;
  font-weight:700;
  letter-spacing:.05em;
  line-height:1.3;
}

.ogex-mo-kpis strong{
  display:block;
  margin-top:7px;
  color:#f1f5f9;
  font-size:18px;
  line-height:1.3;
  overflow-wrap:anywhere;
}

.ogex-mo-kpis .primary strong{
  font-size:22px;
}

.ogex-mo-kpis small{
  display:block;
  margin-top:4px;
  color:#7f90a5;
  font-size:11px;
  line-height:1.35;
}

.ogex-mo .bull{
  color:#4ade80 !important;
}

.ogex-mo .bear{
  color:#fb7185 !important;
}

.ogex-mo .watch{
  color:#facc15 !important;
}

.ogex-mo-levels,
.ogex-mo-decision{
  margin-top:10px;
  padding:14px;
}

.ogex-mo-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.ogex-mo-section-head>div>span{
  display:block;
  color:#8293a8;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
}

.ogex-mo-section-head strong{
  display:block;
  margin-top:4px;
  color:#e2e8f0;
  font-size:15px;
  line-height:1.4;
}

.ogex-mo-section-head>span{
  flex:0 0 auto;
  color:#a8b6c7;
  font-size:12px;
  font-weight:700;
}

.ogex-mo-level-lane{
  position:relative;
  height:116px;
  margin-top:18px;
  overflow:hidden;
  border-radius:10px;
  background:#0b1420;
}

.ogex-mo-level-lane.empty{
  display:flex;
  align-items:center;
  justify-content:center;
}

.ogex-mo-level-axis{
  position:absolute;
  left:4%;
  right:4%;
  top:58px;
  height:2px;
  background:#334155;
}

.ogex-mo-marker{
  position:absolute;
  top:21px;
  transform:translateX(-50%);
  min-width:62px;
  text-align:center;
}

.ogex-mo-marker i{
  display:block;
  width:3px;
  height:42px;
  margin:0 auto 4px;
  border-radius:2px;
  background:#94a3b8;
}

.ogex-mo-marker b{
  display:block;
  white-space:nowrap;
  color:#cbd5e1;
  font-size:10px;
  line-height:1.2;
}

.ogex-mo-marker span{
  display:block;
  margin-top:2px;
  color:#f8fafc;
  font-size:12px;
  font-weight:700;
}

.ogex-mo-marker.put i{
  background:#4ade80;
}

.ogex-mo-marker.call i{
  background:#fb7185;
}

.ogex-mo-marker.zero i{
  background:#facc15;
}

.ogex-mo-marker.spot i{
  background:#60a5fa;
}

.ogex-mo-empty{
  padding:18px;
  color:#718096;
  font-size:14px;
  line-height:1.45;
  text-align:center;
}

.ogex-mo-charts{
  display:grid;
  grid-template-columns:
    1fr 1fr;
  gap:10px;
  margin-top:10px;
}

.ogex-mo-chart-card{
  min-width:0;
  padding:14px;
}

.ogex-mo-canvas-wrap{
  position:relative;
  width:100%;
  height:240px;
  margin-top:10px;
  overflow:hidden;
  border-radius:10px;
  background:#0b1420;
}

.ogex-mo-canvas-wrap canvas{
  display:block;
  width:100% !important;
  height:100% !important;
}

.ogex-mo-canvas-empty{
  display:none;
  position:absolute;
  inset:0;
  align-items:center;
  justify-content:center;
  padding:18px;
  pointer-events:none;
  color:#718096;
  font-size:14px;
  line-height:1.45;
  text-align:center;
}

.ogex-mo-canvas-empty.show{
  display:flex;
}

.ogex-mo-decision-grid{
  display:grid;
  grid-template-columns:
    repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

.ogex-mo-decision-grid>div{
  min-width:0;
  padding:10px;
  border-radius:9px;
  background:#0f172a;
}

.ogex-mo-decision-grid span{
  display:block;
  color:#8293a8;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
}

.ogex-mo-decision-grid b{
  display:block;
  margin-top:5px;
  color:#e2e8f0;
  font-size:14px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.ogex-mo-reason{
  margin-top:10px;
  padding:11px 12px;
  border-radius:9px;
  background:#0b1420;
  color:#b4c1cf;
  font-size:13px;
  line-height:1.5;
}

.ogex-mo-details{
  margin-top:10px;
  padding:12px 14px;
}

.ogex-mo-details summary{
  min-height:34px;
  cursor:pointer;
  color:#aab8c8;
  font-size:13px;
  font-weight:700;
}

.ogex-mo-details pre{
  max-height:420px;
  overflow:auto;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#9fb0c1;
  font-size:12px;
  line-height:1.45;
}

/*
 * Tablet
 */
@media(max-width:1000px){

  .ogex-mo-kpis{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

  .ogex-mo-decision-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }
}

/*
 * Mobile
 */
@media(max-width:760px){

  .ogex-mo{
    margin-bottom:12px;
  }

  .ogex-mo-head{
    padding:14px;
  }

  .ogex-mo-title-row h2{
    font-size:23px;
  }

  .ogex-mo-freshness{
    font-size:13px;
  }

  .ogex-mo-kpis{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .ogex-mo-kpis>div{
    min-height:92px;
    padding:12px;
  }

  .ogex-mo-kpis span{
    font-size:12px;
  }

  .ogex-mo-kpis strong{
    font-size:17px;
  }

  .ogex-mo-kpis .primary strong{
    font-size:21px;
  }

  .ogex-mo-kpis small{
    font-size:12px;
  }

  .ogex-mo-charts{
    grid-template-columns:1fr;
  }

  .ogex-mo-canvas-wrap{
    height:230px;
  }

  .ogex-mo-levels,
  .ogex-mo-chart-card,
  .ogex-mo-decision{
    padding:13px;
  }

  .ogex-mo-marker b{
    font-size:10px;
  }

  .ogex-mo-marker span{
    font-size:12px;
  }
}

/*
 * Narrow phone
 */
@media(max-width:430px){

  .ogex-mo-head{
    display:block;
  }

  .ogex-mo-mode{
    margin-top:11px;
    width:auto;
  }

  .ogex-mo-status{
    min-height:34px;
    padding:6px 11px;
    font-size:13px;
  }

  .ogex-mo-kpis{
    grid-template-columns:
      1fr 1fr;
  }

  .ogex-mo-kpis>div{
    min-height:96px;
  }

  .ogex-mo-kpis span{
    font-size:13px;
  }

  .ogex-mo-kpis strong{
    font-size:18px;
  }

  .ogex-mo-kpis .primary strong{
    font-size:23px;
  }

  .ogex-mo-section-head{
    display:block;
  }

  .ogex-mo-section-head>span{
    display:block;
    margin-top:7px;
    font-size:13px;
  }

  .ogex-mo-section-head>div>span{
    font-size:13px;
  }

  .ogex-mo-section-head strong{
    font-size:16px;
  }

  .ogex-mo-level-lane{
    height:128px;
  }

  .ogex-mo-level-axis{
    top:64px;
  }

  .ogex-mo-marker{
    top:24px;
  }

  .ogex-mo-marker i{
    height:46px;
  }

  .ogex-mo-marker b{
    font-size:10px;
  }

  .ogex-mo-marker span{
    font-size:12px;
  }

  .ogex-mo-canvas-wrap{
    height:220px;
  }

  .ogex-mo-decision-grid{
    grid-template-columns:1fr 1fr;
  }

  .ogex-mo-decision-grid span{
    font-size:12px;
  }

  .ogex-mo-decision-grid b{
    font-size:15px;
  }

  .ogex-mo-reason{
    font-size:14px;
  }
}


/* ==============================================================
 * Resolver / More interaction V1
 * ============================================================== */

.ogex-mo-head{
  position:relative;
}

.ogex-mo-head-main{
  min-width:0;
  flex:1 1 auto;
}

.ogex-mo-head-tools{
  display:flex;
  align-items:flex-start;
  gap:8px;
  flex:0 0 auto;
}

.ogex-mo-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  min-width:44px;
  padding:0;
  border:1px solid #334155;
  border-radius:11px;
  background:#0f172a;
  color:#cbd5e1;
  font-size:19px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:
    transparent;
}

.ogex-mo-more:hover,
.ogex-mo-more:focus-visible{
  border-color:#4b6685;
  background:#142235;
  color:#f8fafc;
  outline:none;
}

.ogex-mo-context{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-top:9px;
}

.ogex-mo-chip{
  display:inline-flex;
  min-height:30px;
  align-items:center;
  padding:5px 9px;
  border:1px solid #334155;
  border-radius:999px;
  background:#0f172a;
  color:#aebdca;
  font-size:11px;
  font-weight:800;
  letter-spacing:.025em;
}

.ogex-mo-chip.complete{
  border-color:
    rgba(74,222,128,.36);
  background:
    rgba(34,197,94,.10);
  color:#4ade80;
}

.ogex-mo-chip.partial{
  border-color:
    rgba(250,204,21,.34);
  background:
    rgba(250,204,21,.08);
  color:#facc15;
}

.ogex-mo-chip.in_progress{
  border-color:
    rgba(96,165,250,.38);
  background:
    rgba(59,130,246,.09);
  color:#93c5fd;
}

.ogex-mo-section-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
}

.ogex-mo-section-tools>span{
  color:#a8b6c7;
  font-size:12px;
  font-weight:700;
  text-align:right;
}

@media(max-width:760px){

  .ogex-mo-head-tools{
    align-items:stretch;
  }

  .ogex-mo-more{
    width:46px;
    height:46px;
    min-width:46px;
  }

  .ogex-mo-chip{
    min-height:32px;
    padding:6px 10px;
    font-size:12px;
  }
}

@media(max-width:430px){

  .ogex-mo-head-tools{
    margin-top:10px;
    width:100%;
  }

  .ogex-mo-head-tools
  .ogex-mo-mode{
    flex:1 1 auto;
    margin-top:0;
  }

  .ogex-mo-context{
    gap:6px;
  }

  .ogex-mo-chip{
    font-size:11px;
  }

  .ogex-mo-section-head{
    display:flex;
    align-items:flex-start;
  }

  .ogex-mo-section-tools{
    flex:0 0 auto;
  }

  .ogex-mo-section-tools>span{
    display:none;
  }

  .ogex-mo-section-tools
  .ogex-mo-more{
    width:44px;
    height:44px;
  }
}


/* ==============================================================
 * NSE Workspace Semantics V1
 * ============================================================== */

.ogex-replay-select{
  width:100%;
  min-height:48px;
  box-sizing:border-box;
  margin:0 0 10px;
  padding:10px 12px;
  border:1px solid #334155;
  border-radius:10px;
  background:#0f172a;
  color:#f1f5f9;
  font-size:15px;
  font-weight:700;
  outline:none;
}

.ogex-replay-select:focus{
  border-color:#60a5fa;
}


/* ==============================================================
 * Historical Replay Timeline V1
 * ============================================================== */

.ogex-replay-timeline{
  margin:10px 0 12px;
  padding:13px;
  border:1px solid #334155;
  border-radius:13px;
  background:#0a1320;
}

.ogex-replay-timeline[hidden]{
  display:none !important;
}

.ogex-replay-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.ogex-replay-head>div>span{
  display:block;
  color:#8ea0b5;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
}

.ogex-replay-head>div>strong{
  display:block;
  margin-top:3px;
  color:#f8fafc;
  font-size:16px;
}

.ogex-replay-clock{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-top:13px;
}

.ogex-replay-clock strong{
  color:#f8fafc;
  font-size:25px;
  line-height:1;
}

.ogex-replay-clock span{
  color:#facc15;
  font-size:11px;
  font-weight:800;
  text-align:right;
}

.ogex-replay-slider{
  width:100%;
  height:34px;
  margin:7px 0 0;
  accent-color:#60a5fa;
  touch-action:pan-y;
}

.ogex-replay-axis{
  display:flex;
  justify-content:space-between;
  color:#718096;
  font-size:11px;
  font-weight:700;
}

.ogex-replay-controls{
  display:grid;
  grid-template-columns:
    48px
    minmax(90px,1fr)
    48px
    74px;
  gap:7px;
  margin-top:10px;
}

.ogex-replay-controls button,
.ogex-replay-controls select{
  min-height:46px;
  border:1px solid #334155;
  border-radius:9px;
  background:#0f172a;
  color:#e5edf5;
  font-weight:800;
  font-size:13px;
}

.ogex-replay-gap{
  margin-top:9px;
  padding:9px 10px;
  border-radius:8px;
  background:#0f172a;
  color:#9fb0c2;
  font-size:12px;
  line-height:1.45;
}

.ogex-replay-json{
  margin:0;
  max-height:420px;
  overflow:auto;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#b9c8d8;
  font-size:11px;
  line-height:1.45;
}

@media(max-width:430px){

  .ogex-replay-clock{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }

  .ogex-replay-clock span{
    text-align:left;
  }

  .ogex-replay-controls{
    grid-template-columns:
      46px
      minmax(80px,1fr)
      46px
      68px;
  }
}
