/* Réplica del aspecto por defecto de NinjaTrader 8 (skin «NinjaTrader», claro) con DATOS DE DEMOSTRACIÓN.
   Calcado de las capturas de la guía oficial (help guide NT8, 2023-2026). Escenario fijo 1600x900. */
.nt-host { position: relative; width: 100%; overflow: hidden; border-radius: 10px; background: #2b2d31; }
.nt-stage {
  position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0;
  background: #3a3d42 radial-gradient(ellipse at 30% 10%, #4a4e55 0%, #2e3034 70%);
  font: 14px/1.3 "Segoe UI", Tahoma, sans-serif; color: #1e1e1e; overflow: hidden; user-select: none;
}
.nt-stage * { box-sizing: border-box; }
.nt-demo { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: #c8ccd2; background: rgba(0,0,0,.5); padding: 3px 9px; border-radius: 4px; }

/* ventana */
.ntw { position: absolute; background: #e6e6e6; border: 1px solid #8c8c8c; box-shadow: 0 14px 40px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.ntw-t { height: 30px; display: flex; align-items: center; flex: none; background: #e6e6e6; }
.ntw-tt { align-self: stretch; display: flex; align-items: center; padding: 0 10px; background: #d6402a; color: #fff; font-size: 16px; }
.ntw-t.plano .ntw-tt { background: none; color: #1e1e1e; font-size: 16px; padding-left: 8px; }
.ntw-bar { flex: 1; display: flex; align-items: center; gap: 6px; padding: 0 8px; min-width: 0; }
.ntw-btns { display: flex; gap: 2px; padding-right: 4px; }
.ntw-b { width: 20px; height: 20px; border: 1px solid #6f6f6f; background: linear-gradient(#fafafa, #c9c9c9); position: relative; }
.ntw-b.min::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; background: #333; }
.ntw-b.max::after { content: ""; position: absolute; inset: 4px; border: 2px solid #333; border-top-width: 3px; }
.ntw-b.x { background: linear-gradient(#e2574c, #b3261e); border-color: #7d1a14; }
.ntw-b.x::after { content: "\2715"; position: absolute; inset: 0; color: #fff; font: 700 13px/18px "Segoe UI"; text-align: center; }
.ntw-b.q { background: linear-gradient(#fafafa, #c9c9c9); } .ntw-b.q::after { content: "?"; position: absolute; inset: 0; font: 700 13px/18px "Segoe UI"; text-align: center; }
.ntw-c { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; padding: 0 6px 6px; }

/* Centro de Control */
.cc-top { height: 40px; display: flex; align-items: stretch; flex: none; background: #e6e6e6; }
.cc-logo { display: flex; align-items: center; padding: 0 12px; background: linear-gradient(#a3201f, #7b1414); color: #fff; font: 300 22px/1 "Segoe UI"; letter-spacing: .22em; -webkit-text-stroke: .4px #fff; }
.ntm { display: flex; align-items: stretch; flex: 1; }
.ntm-i { display: flex; align-items: center; gap: 7px; padding: 0 14px; font-size: 17px; color: #1e1e1e; }
.ntm-i i { font-style: normal; font-size: 16px; color: #333; }
.ntm-i.open { background: #fff; border: 1px solid #8c8c8c; border-bottom: 0; position: relative; z-index: 6; }
.cc-body { flex: 1; margin: 0 6px; background: #fff; border: 1px solid #5a5a5a; overflow: hidden; }
.cc-tabs { height: 34px; flex: none; display: flex; align-items: flex-end; gap: 2px; padding: 0 6px 4px; }
.cc-ball { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b8ff8a, #2ea318 55%, #1b6e0c); margin: 0 8px 2px 6px; align-self: center; }
.ntt-i { padding: 5px 18px; background: linear-gradient(#e8e8e8, #c8c8c8); border: 1px solid #9a9a9a; border-top: 0; font-size: 15px; }
.ntt-i.on { background: #fff; font-weight: 600; padding-bottom: 7px; }
.ntt-add { padding: 4px 10px; font-weight: 700; font-size: 17px; }

/* menús desplegables */
.ntdd { position: absolute; z-index: 5; min-width: 290px; background: #f2f2f2; border: 1px solid #8c8c8c; box-shadow: 3px 4px 10px rgba(0,0,0,.35); padding: 4px 0;
  background-image: linear-gradient(90deg, #e2e2e2 0, #e2e2e2 28px, transparent 28px); }
.ntdd-i { display: flex; justify-content: space-between; align-items: center; padding: 5px 16px 5px 38px; font-size: 15px; font-weight: 600; position: relative; }
.ntdd-i em { font-style: normal; font-weight: 400; color: #555; margin-left: 30px; font-size: 13px; }
.ntdd-i.sub::after { content: "\25B6"; font-size: 10px; color: #333; position: absolute; right: 10px; }
.ntdd-i .dot-ok { position: absolute; left: 10px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #2ea318; }
.ntdd-i.ws::before { content: ""; position: absolute; left: 6px; top: 8px; width: 18px; height: 14px; border: 1px solid #555; background: linear-gradient(#999 0 4px, #ddd 4px); }
.ntdd-i.ws.act::before { background: linear-gradient(#999 0 4px, #1f9d27 4px); }
.ntdd-sep { height: 1px; background: #9a9a9a; margin: 4px 8px 4px 36px; }
.ntdd-links { display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px 4px 38px; font: italic 600 14px "Segoe UI"; color: #222; }
.ntdd-links span.w { margin-left: auto; }
.ntdd-i .acc { font: italic 600 13px "Segoe UI"; color: #222; margin-left: 14px; }

/* tablas */
.ntg { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.ntg th { text-align: left; font-weight: 400; color: #1e1e1e; background: #fff; padding: 6px 8px; border-bottom: 1px solid #5a5a5a; border-right: 1px solid #5a5a5a; white-space: nowrap; }
.ntg td { padding: 5px 8px; border-bottom: 1px solid #c8c8c8; border-right: 1px solid #c8c8c8; white-space: nowrap; }
.ntg tr.sel td { background: #cce4ff; }
.ntg td.work { background: #24e3e3; }
.ntg .xbtn { display: inline-block; width: 30px; height: 16px; border: 1px solid #9a9a9a; background: linear-gradient(#fafafa, #d0d0d0); font-size: 10px; text-align: center; line-height: 14px; color: #555; }
.buy { color: #1e1e1e; } .sell { color: #1e1e1e; } .neg { color: #d61f1f !important; } .pos { color: #128a1e !important; }
.nt-empty { padding: 30px; color: #6b6b6b; }

/* paneles con encabezado (diálogos modernos) */
.pnl { background: #fff; border: 1px solid #5a5a5a; display: flex; flex-direction: column; min-height: 0; }
.pnl-h { padding: 6px 8px; border-bottom: 1px solid #5a5a5a; font-size: 14px; flex: none; display: flex; justify-content: space-between; }
.pnl-b { padding: 6px 8px; flex: 1; overflow: hidden; }
.pnl-f { display: flex; gap: 14px; justify-content: flex-end; padding: 4px 8px 6px; font: italic 600 13px "Segoe UI"; color: #222; flex: none; }
.pnl-f .off { color: #a0a0a0; }
.lst span { display: block; padding: 3px 6px; font-size: 14px; } .lst span.on { background: #d9d9d9; }
.grp { font-weight: 700; padding: 5px 0 3px; display: flex; gap: 8px; align-items: center; } .grp::before { content: "\25BC"; font-size: 9px; }
.prop { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 10px; padding: 2px 0 2px 26px; font-size: 14px; }
.prop > :last-child { border-left: 1px solid #5a5a5a; padding-left: 8px; }
.ntin, .ntsel { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 6px; background: #ececec; border: 1px solid #8c8c8c; font-size: 14px; color: #1e1e1e; min-width: 0; }
.ntin.w { background: #fff; } .ntin.off { background: #d9d9d9; color: #888; }
.ntsel { background: linear-gradient(#fafafa, #dcdcdc); } .ntsel i { font-style: normal; font-size: 11px; margin-left: 8px; }
.ntspin { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 4px 0 6px; background: #fff; border: 1px solid #8c8c8c; font-size: 14px; }
.ntspin i { font-style: normal; font-size: 10px; line-height: 8px; display: grid; }
.chk { width: 15px; height: 15px; border: 1px solid #333; background: #fff; display: inline-block; position: relative; }
.chk.on::after { content: "\2713"; position: absolute; left: 1px; top: -4px; font-weight: 700; font-size: 14px; color: #111; }
.radio { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #333; background: #fff; display: inline-block; position: relative; vertical-align: -2px; margin-right: 6px; }
.radio.on::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #111; }
.ntbtns { display: flex; gap: 10px; justify-content: flex-end; padding: 8px 4px 2px; flex: none; }
.ntbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 30px; padding: 0 14px; background: #6b6b6b; border: 1px solid #555; color: #fff; font-size: 16px; }
.ntbtn.off { background: #a8a8a8; color: #e0e0e0; }
.ntbtn.sm { min-width: 0; height: 26px; font-size: 14px; }
.lnk { font: italic 600 14px "Segoe UI"; color: #222; }
.mut { color: #6b6b6b; } .sm { font-size: 12px; }
.kbd { display: inline-block; padding: 0 7px; border: 1px solid #777; border-bottom-width: 2px; border-radius: 3px; background: #f4f4f4; font: 13px Consolas, monospace; }

/* gráfico */
.ntch-row { flex: 1; display: flex; min-height: 0; gap: 6px; }
.ntch-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ntch { flex: 1; position: relative; background: #fff; border: 1px solid #5a5a5a; overflow: hidden; }
.ntchart-svg { display: block; }
.ntchart-svg .axt { font: 13px "Segoe UI", sans-serif; fill: #1e1e1e; }
.ntchart-svg .gl { stroke: #ededed; }
.ntch-lbl { position: absolute; left: 8px; top: 4px; font-size: 13px; color: #1e1e1e; }
.ntch-cr { position: absolute; left: 8px; bottom: 30px; font-size: 12px; color: #1e1e1e; }
.nt-scroll { height: 16px; flex: none; margin-top: 2px; background: #f0f0f0; border: 1px solid #b5b5b5; position: relative; }
.nt-scroll::after { content: ""; position: absolute; right: 18px; top: 2px; bottom: 2px; width: 70px; background: #cdcdcd; }
.nt-tabs { height: 30px; flex: none; display: flex; align-items: flex-end; gap: 2px; }
.nt-tabs .ntt-i { border-top: 1px solid #9a9a9a; border-top: 0; }
.ico { width: 26px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; color: #222; }
.tb-sel { display: flex; align-items: center; justify-content: space-between; width: 130px; height: 22px; padding: 0 5px; background: linear-gradient(#fafafa, #d9d9d9); border: 1px solid #6f6f6f; font-size: 14px; }
.tb-sel i { font-style: normal; font-size: 10px; }
.ov { position: absolute; left: 0; top: 0; pointer-events: none; }
.ntctr { width: 300px; flex: none; display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.ct-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ct-btn { height: 38px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; background: linear-gradient(#9a9a9a, #5f5f5f); border: 1px solid #4a4a4a; }
.ct-fe { display: grid; grid-template-columns: 1fr 1fr; background: #d4d4d4; border: 1px solid #8c8c8c; }
.ct-fe span { text-align: center; padding: 7px; font-size: 15px; } .ct-fe span + span { border-left: 1px solid #8c8c8c; }
.ct-pnl { background: #000; color: #fff; text-align: center; padding: 9px; font-size: 15px; }
.ct-pnl.pos { color: #6cff6c !important; }
.ct-f { display: grid; grid-template-columns: 1fr 100px; gap: 3px 10px; font-size: 14px; }
.ct-f.full { grid-template-columns: 1fr; }
.ct-ab { display: grid; grid-template-columns: 30px 1fr 1fr; font-size: 14px; gap: 2px 6px; }
.ordl { position: absolute; left: 0; right: 0; height: 22px; display: flex; align-items: center; }
.ordl::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; border-top: 2px solid; border-color: inherit; }
.ordl span { position: relative; margin-left: 52%; padding: 1px 16px 1px 10px; font-size: 14px; color: #111; height: 22px; clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%); }
.ordl em { position: relative; margin-left: auto; margin-right: 90px; width: 20px; height: 20px; border: 2px solid #111; background: #fff; font-style: normal; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.ordl b { position: absolute; right: 0; top: 0; height: 22px; width: 84px; display: grid; place-items: center; font-weight: 400; font-size: 13px; color: #111; }
.ordl.lmt { border-color: #00e5ff; } .ordl.lmt span, .ordl.lmt b { background: #00e5ff; }
.ordl.stp { border-color: #ff8fa3; } .ordl.stp span, .ordl.stp b { background: #ffb3c0; }
.ordl.tgt { border-color: #00e5ff; } .ordl.tgt span, .ordl.tgt b { background: #00e5ff; }
.ordl.ent { border-color: #222; border-top-style: dashed; } .ordl.ent::before { border-top-style: dashed; } .ordl.ent span { background: #fff; border: 1px solid #222; } .ordl.ent em { display: none; }

/* SuperDOM */
.dom { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.domt { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid #5a5a5a; table-layout: fixed; }
.domt th { padding: 5px; font-weight: 400; border: 1px solid #5a5a5a; background: #fff; }
.domt td { height: 26px; border: 1px solid #b5b5b5; text-align: center; position: relative; }
.domt td.px { background: #fff; }
.domt td.v { background: #d9d9d9; text-align: left; padding-left: 6px; }
.domt td.v i { position: absolute; top: 1px; bottom: 1px; background: #5b8ee6; } .domt td.v.b i { right: 0; } .domt td.v.a i { left: 0; }
.domt td.v span { position: relative; }
.domt td.v.b span { float: none; }
.domt tr.last td.px { background: #ffff40; color: #128a1e; font-weight: 700; }
.domt tr.bid1 td.px { color: #1d3fd6; font-weight: 700; }
.domt td .ord { position: relative; display: inline-block; padding: 0 10px; background: #00e5ff; border: 1px solid #333; font-weight: 600; }
.dom-mk { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.dom-mk span { height: 32px; display: grid; place-items: center; font-size: 16px; }
.dom-mk .m { background: #5f5f5f; color: #fff; } .dom-mk .p { background: #000; color: #fff; }
.dom-r { display: grid; grid-template-columns: 1fr 1.8fr 1fr; gap: 6px; }
.dom-r span { height: 32px; display: grid; place-items: center; font-size: 16px; color: #fff; background: #5f5f5f; }
.dom-r span.flat { background: #c8c8c8; color: #1e1e1e; }
.dom-f { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3px 8px; font-size: 14px; }

/* diálogos varios */
.dlg { display: flex; flex-direction: column; gap: 6px; height: 100%; padding-top: 4px; }
.row2 { display: flex; gap: 6px; flex: 1; min-height: 0; }
.atm-g { display: grid; grid-template-columns: 90px 1fr 1fr 1fr 1.3fr; gap: 6px 10px; align-items: center; font-size: 14px; }
.atm-g .h { font-weight: 400; padding-left: 4px; }
.pb { display: flex; flex-direction: column; gap: 10px; padding: 8px 10px; }
.pb-r { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pb-play { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #6be36b, #1d8a1d); border: 1px solid #145e14; display: grid; place-items: center; color: #fff; font-size: 13px; }
.pb-bar { flex: 1; height: 4px; background: #b5b5b5; position: relative; } .pb-bar i { position: absolute; top: -9px; width: 10px; height: 22px; background: #f2f2f2; border: 1px solid #666; }
.tp-top { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 14px; }
.web { position: absolute; inset: 30px 60px 40px; background: #fff; border: 1px solid #8c8c8c; border-radius: 8px; overflow: hidden; color: #111; }
.web-bar { height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #e8eaed; }
.web-dots i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #b6b6b6; margin-right: 6px; }
.web-url { flex: 1; max-width: 560px; height: 28px; line-height: 28px; padding: 0 14px; border-radius: 14px; background: #fff; color: #333; }
.web-nav { display: flex; gap: 30px; align-items: center; padding: 22px 40px; border-bottom: 1px solid #e3e3e3; font-size: 16px; }
.web-nav b { font: 300 24px "Segoe UI"; letter-spacing: .2em; color: #a3201f; margin-right: 30px; }
.web-cta { margin-left: auto; background: #d6402a; color: #fff; padding: 9px 18px; border-radius: 4px; }
.web-hero { padding: 90px 40px; background: linear-gradient(120deg, #1b1d22, #2c2f36); color: #fff; } .web-hero h1 { font-size: 46px; max-width: 860px; line-height: 1.15; }
.web-hero p { font-size: 19px; color: #c9ced6; margin: 18px 0 30px; } .web-form { display: inline-flex; gap: 10px; }
.web-form .ntin { height: 42px; min-width: 360px; font-size: 16px; background: #fff; } .web-form .ntbtn { height: 42px; background: #d6402a; border-color: #b3261e; }
.web-note { position: absolute; left: 40px; bottom: 18px; color: #6b6b6b; font-size: 13px; }
.inst { display: flex; height: 100%; background: #fff; border: 1px solid #5a5a5a; }
.inst-side { width: 210px; background: #f2f2f2; border-right: 1px solid #c8c8c8; padding: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.inst-side span { color: #8a8a8a; } .inst-side span.on { color: #128a1e; } .inst-side span.on::before { content: "\2713  "; } .inst-side span.cur { color: #111; font-weight: 700; }
.inst-main { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; } .inst-main h3 { font-size: 20px; }
.inst-prog { height: 20px; border: 1px solid #8c8c8c; background: #f2f2f2; } .inst-prog div { height: 100%; background: #2ea318; }
.login { padding: 28px 34px; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #5a5a5a; height: 100%; font-size: 15px; }
.login-logo { font: 300 30px "Segoe UI"; letter-spacing: .2em; color: #fff; background: linear-gradient(#a3201f, #7b1414); text-align: center; padding: 10px; margin-bottom: 8px; }
.login .ntin { height: 32px; background: #fff; }

/* marcas didácticas */
.nt-marks { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.nt-ring { position: absolute; border: 3px solid #f97316; border-radius: 6px; }
.nt-ring.pulse { box-shadow: 0 0 0 4000px rgba(0,0,0,.42), 0 0 22px rgba(249,115,22,.85); animation: ntpulse 1.6s ease-out infinite; }
.nt-ring.off { border-color: rgba(249,115,22,.5); border-width: 2px; }
.nt-num { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: #f97316; color: #1a0d03; font: 800 16px/30px "Segoe UI", sans-serif; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,.45); border: 2px solid #fff; line-height: 26px; }
.nt-num.off { background: #8a5a35; color: #fff; }
.nt-lbl { position: absolute; max-width: 460px; padding: 12px 16px; background: #f97316; color: #1a0d03; font: 700 19px/1.3 "Segoe UI", sans-serif; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
@keyframes ntpulse { 0% { outline: 0 solid rgba(249,115,22,.6); } 100% { outline: 14px solid rgba(249,115,22,0); } }
@media (prefers-reduced-motion: reduce) { .nt-ring.pulse { animation: none; } }
.ordl.ent b { display: none; }
