﻿*, *::before, *::after {
    box-sizing: border-box;
    border-collapse: collapse;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: black;
}

body {
    font-family: Arial;
    font-size: 12px;
    margin: 0px;
    color: #b2b5bd;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        color: red;
    }

.MainContainer {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100vh;
    overflow: auto;
    background: black;
}

input:focus {
    background-color: #f7e67d;
}

.TopMenu {
    /*background: #1f1f1f;*/
    overflow: auto;
    white-space: nowrap;
}

    /*.TopMenu table {
        margin: auto;
    }*/

@media print {
    .noprint {
        display: none !important;
    }
}

/*#divCharts > div:nth-child(n+2) {
    border-left: 1px solid black;

}*/

#MenuSelector {
    width: 120px;
    border: 1px solid white;
    padding: 0px 3px;
    background: white;
    margin-left: 10px;
}

.DataTable {
    text-indent: 0px;
    text-align: center;
    width: 100%;
}

    .DataTable td {
        padding: 0px 1px;
        text-align: center;
        border-bottom: 1px solid #363636;
        border-right: 1px solid #363636;
        border-left: 1px solid #363636;
        background: #1f1f1f;
    }

    .DataTable tr {
        /*height: 18px;*/
    }

        .DataTable tr:hover, .DataTable tr:nth-of-type(odd):hover {
            background-color: #F9D19A;
        }

    .DataTable th {
        background-color: black;
        border-right: 1px solid #363636;
        font-weight: normal;
    }

        .DataTable th:last-child {
            border-right: 0px;
        }

    .DataTable tr.active, .DataTable tr.active:nth-of-type(odd) {
        background-color: #dfcef2;
    }

    .DataTable tr td:first-child {
        border-left: 0px !important;
    }

    .DataTable tr td:last-child {
        border-right: 0px !important;
    }


.Bhav td:nth-child(2) {
    text-align: center;
}



.OptionChain .ltp, .ltp {
    background: #dfcef2 !important;
    color: #1f1f1f !important;
    cursor: pointer;
}

    .ltp:hover {
        background: #082a65;
        color: white;
    }

.OptionChain .strike {
    text-align: center;
    /*background: #f9e7cf;*/
    padding: 0px 3px;
    cursor: pointer;
}

.OptionChain .ATM {
    background-color: violet;
    color: white;
}

.OptionChain .strike:hover {
    background: DodgerBlue;
    color: white;
}

.OptionChain .oiper {
    background: #e6f2ff;
}

.OptionChain .oi {
    width: 70px;
    position: relative;
}

    .OptionChain .oi > div {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
    }

/*.OptionChain .oi > div:first-child {
            background: #F4D03F;
            height: 50%;
        }

        .OptionChain .oi > div:nth-child(2) {
            background: #00cc99;
            height: 50%;
            top: 50%;
        }*/

.OptionChain .SolidBorderGreen {
    border-top: 2px solid green;
    border-bottom: 2px solid green;
}

.OptionChain .SolidBorderRed {
    border-top: 2px solid red;
    border-bottom: 2px solid red;
}

svg {
    cursor: pointer;
}

    svg:hover {
        fill: red;
    }

.UC {
    text-transform: uppercase;
}

.CC {
    text-transform: capitalize;
}

.SearchResult {
    display: grid;
    grid-template-columns: auto 1fr;
    cursor: pointer;
    /*align-items: center;*/
}

    .SearchResult:hover {
        background-color: #f7e67d;
    }

    .SearchResult > div:first-child {
        padding-right: 3px;
    }

    .SearchResult > div:nth-child(2) {
        /*display: grid;
        grid-template-columns: auto 1fr;*/
        border-bottom: 1px solid #d0d0d0;
    }

    .SearchResult .name {
        height: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: 10px;
        text-align: right;
        color: gray;
        font-size: .8em
    }

#divContent {
    display: flex;
    flex-direction: column;
    overflow: auto;
    background: black;
}

    #divContent > div {
        overflow: auto;
        background: #1f1f1f;
    }

.red, .text-red {
    color: red !important;
}

.green, .text-green {
    color: green !important;
}

td {
    text-align: right;
    padding: 0px 2px;
}

    td:first-child {
        text-align: left;
    }

.StockCell {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid #d0d0d0;
    /*border-left: 1px solid #d0d0d0;*/
    cursor: pointer;
    width: 120px;
}



.StockCell2 {
    border-left: 1px solid #d0d0d0;
}

/*.StockCell:hover {
    background: #70c0fc !important;
    color: black;
}*/

.StockCell > div:first-child {
    padding-left: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.StockCell > div:nth-child(2) {
    text-align: right;
    padding: 0px 2px;
}

.StockList {
    width: auto;
}

    .StockList td {
        text-align: center;
    }

    .StockList tr:nth-child(2) th {
        border-bottom: 1px solid black;
    }

    .StockList td:first-child {
        text-align: left;
    }

    .StockList td:nth-child(2),
    .StockList td:nth-child(3),
    .StockList td:nth-child(5),
    .StockList td:nth-child(6),
    .StockList td:nth-child(7) {
        text-align: right;
    }

.G6 {
    background-color: #009900 !important;
    color: white !important;
}

.G4 {
    background-color: #00CC00 !important;
    color: #351818 !important;
}

.G2 {
    background-color: #00FF00 !important;
    color: #1f1f1f !important;
}

.G0 {
    background-color: #bfc !important;
    color: #1f1f1f !important;
}
.N0{
    background:grey!important;
}
.R6 {
    background-color: #FF0000 !important;
    color: white !important;
}

.R4 {
    background-color: #FF3300 !important;
    color: #221b1b !important;
}

.R2 {
    background-color: #FF6600 !important;
    color: #020202 !important;
}

.R0 {
    background-color: #F6BDC0 !important;
    color: #2f3953 !important;
}

.PC {
    background-color: #1E88E5 !important;
    color: white !important;
}


.PL {
    background-color: #90CAF9 !important;
}

.PT {
    background-color: white !important;
}

.P {
    background-color: white !important;
}

.V1 {
    background-color: #6200EA !important;
    color: white;
}

.V2 {
    background-color: #7C4DFF !important;
    color: white !important;
}

.V3 {
    background-color: #B39DDB !important;
}

.V4 {
    background-color: #EDE7F6 !important;
}

.AvH {
    background-color: #D7CCC8 !important;
}

.MainContentArea {
    display: grid;
    grid-template-columns: 210px 1fr 320px;
    gap: 3px;
    background: black;
    /*grid-auto-flow: column;*/
    overflow: auto;
}

    .MainContentArea > div {
        background-color: black;
        overflow: auto;
    }

/*.MarketWatch tr > td:nth-child(n+3) {
    width: 10%;
}*/

.MarketWatch td {
    text-align: center;
}

    .MarketWatch td:first-child {
        text-align: left;
    }

@media only screen and (max-width: 420px) {

    .MainContentArea {
        grid-template-columns: 1fr;
        overflow: initial;
    }

        .MainContentArea > div {
            overflow: initial;
        }

    /*.MarketWatch {
        width: 100%;
    }*/
}

.OptionView {
    position: relative;
    overflow: hidden;
}

    .OptionView > div {
        position: absolute;
    }

.opLeg {
    background: white;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.PutClr {
    background-color: #cdf !important;
    color: #373e43 !important;
}

    .PutClr a {
        color: #373e43 !important;
    }

.CallClr {
    background-color: #fe9 !important;
    color: #404b55 !important;
}

    .CallClr a {
        color: #404b55 !important;
    }


/*.opLeg > div
    {
        position:absolute;
    }*/
.opLeg > div {
    text-align: right;
}

    .opLeg > div:first-child {
        text-align: left;
    }

    .opLeg > div:nth-child(4) {
        text-align: center;
    }

.News th {
    border: 0px;
}

.News td {
    text-align: left;
    border-bottom: 1px solid #363636;
    padding: 3px;
}

.News a {
    color: #b2b5bd
}

    .News a:hover {
        color: #4285fc;
    }


.bg1 th {
    background: #ab60b8 !important;
    color: white;
    text-shadow: 1px 1px rgba(0,0,0,.1);
}

.bg2 th, .underlying {
    background: #ef6c00 !important;
    color: #1e1919;
    text-shadow: 1px 1px rgba(0,0,0,.1);
}

.bg3 th {
    background: #2196f3 !important;
    color: white;
    text-shadow: 1px 1px rgba(0,0,0,.1);
}

.bg4 th {
    background: #172568 !important;
    color: white;
    text-shadow: 1px 1px rgba(0,0,0,.1);
}

.bg5 th {
    background: #b2bf2d !important;
    color: white;
    text-shadow: 1px 1px rgba(0,0,0,.1);
}

.bg6 th {
    background: #5b5bc3 !important;
    color: white;
    text-shadow: 1px 1px rgba(0,0,0,.1);
}

.WorldMap {
    display: grid;
    background: #1f1f1f;
    position: relative;
}

    .WorldMap > div {
        position: absolute;
        cursor: pointer;
        padding: 2px;
        border-radius: 2px;
    }

        .WorldMap > div:hover {
            border: 1px solid gray;
        }

.ticker td {
    text-align: center;
}

    .ticker td:first-child {
        text-align: left;
    }

    .ticker td:nth-child(2) {
        text-align: right;
    }


/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #bfb9b9;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #868686;
    }

.OptionTotal td {
    text-align: center !important;
}

#divTotals td {
    border-bottom: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    background: white;
}

    #divTotals td:last-child {
        border-right: 0px;
    }


#divLegEdit {
    display: none;
    z-index: 1000;
    color: #4c4c4c;
    border-radius: 8px/7px;
    position: absolute;
    left: 10%;
    top: 10%;
    width: 80%;
    background-color: #ebebeb;
    padding: 9px;
    box-shadow: 1px 2px 5px rgba(0,0,0,.31);
    border: solid 1px #cbc9c9;
}

.btn {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 1px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    border-radius: 4px;
}

    .btn:hover {
        opacity: .9;
    }

.popup {
    position: fixed;
    left: 50%;
    top: 45%;
    display: none;
    background: white;
    z-index: 99999;
    max-width: 100vw;
    transform: translate(-50%, -50%);
}

    .popup .headcontainer {
        display: grid;
        grid-template-columns: 1fr auto;
        background: #1976d2;
        font-size: 1.2em;
        color: white;
        padding: 5px;
    }

    .popup .head {
        white-space: nowrap;
        padding: 0px 10px;
    }

    .popup .close {
        width: 30px;
        cursor: pointer;
        position: absolute;
        top: 2px;
        right: 0;
        background: transparent;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        color: #fff;
    }

    .popup .content-inner {
        padding: 10px;
    }

    .popup .form-group {
        margin-bottom: 5px;
        text-align: left;
    }

        .popup .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #1f1f1f
        }

        .popup .form-group input, .popup .form-group textarea {
            width: 100%;
            padding: 5px;
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

.login-form {
    border-radius: 8px;
    width: 250px;
    text-align: center;
}

.buy {
    background: rgb(65,132,243);
}

.sell {
    background: rgb(255,87,34);
}

.PaperTrade th {
    border-bottom: 1px solid #d0d0d0;
}

.PaperTrade td {
    border: 1px solid #d0d0d0;
    text-align: center;
}

.PaperTrade tr:last-child td {
    border-bottom: 0px;
}

.PaperTrade td:nth-child(1) {
    text-align: left;
}

.PaperTrade td:nth-child(n+2) {
    text-align: right;
}

.trade {
    cursor: pointer;
}

    .trade:hover {
        background: pink;
    }



.netProfit {
    padding: 0px 5px;
    background: white;
    font-weight: bold;
    float: right;
}

.switch-field {
    display: flex;
    overflow: hidden;
}

    .switch-field input {
        position: absolute !important;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        width: 1px;
        border: 0;
        overflow: hidden;
    }

    .switch-field label {
        background-color: #e4e4e4;
        color: rgba(0, 0, 0, 0.6);
        font-size: 14px;
        line-height: 1;
        text-align: center;
        padding: 8px 16px;
        margin-right: -1px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
        transition: all 0.1s ease-in-out;
        cursor: pointer;
    }

    .switch-field #radiobuy:checked + label, .ttB {
        background-color: rgb(65,132,243) !important;
        color: white;
        box-shadow: none;
    }

    .switch-field #radiosell:checked + label, .ttS {
        background-color: rgb(255,87,34)!important;
        color: white;
        box-shadow: none;
    }

    .switch-field label:first-of-type {
        border-radius: 4px 0 0 4px;
    }

    .switch-field label:last-of-type {
        border-radius: 0 4px 4px 0;
    }


.SectionTile {
    margin-bottom: 5px;
}

    .SectionTile .Header {
        background: #1f1f1f;
        color: white;
        width: 100%;
        padding: 2px;
        padding-left: 5px;
        display: inline-block;
    }

        .SectionTile .Header a {
            color: white;
        }

.FullOptionChain td {
    position: relative;
    padding-left: 0px;
    border-right: 1px solid #d0d0d0
}

    .FullOptionChain td > div:nth-child(1) {
        background: #F4D03F;
        top: 25%;
        height: 10px;
    }

    .FullOptionChain td > div:nth-child(2) {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        text-align: center
    }

.ChildContentHidden {
    display: none;
}

#divNiftyWeight {
    display: grid;
    grid-template-columns: auto 1fr auto;
}

#divCharts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
    grid-template-rows: repeat(3, 200px);
    /*grid-template-rows: repeat(4, 200px);*/
    grid-gap: 3px;
}

    #divCharts > div {
        background: #1f1f1f;
        position: relative;
        width: 100%;
    }

.Canvas1, .Canvas2 {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.Canvas2 {
    z-index: 1;
}

select {
    color: #b2b5bd;
    background: black;
}

.ChartHeader {
    font-size: 12px;
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 2;
    width: 100%;
    background: #1f1f1f;
    text-align: center;
    padding: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3px;
}

.OrderTable {
    margin: 5px 0px;
}

    .OrderTable td {
        vertical-align: top;
        text-align: center;
        padding: 0px;
    }

    .OrderTable tr:hover {
        background: white;
    }

    .OrderTable input, .OrderTable select {
        width: 5em;
        text-align: center;
        font-size: 1.5em;
        margin: 2px 0px;
        border: 1px solid gray;
    }
input.btn.btnlotselector {
    padding: 3px 10px;
}
.table td, .table th {
    border: 1px solid #363636;
}

.table td {
    background: #1f1f1f;
}

.loader-screen {
    background: rgba(0,0,0,.5);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999999;
}

    .loader-screen .loader-caption {
        position: absolute;
        z-index: 99999999;
        top: 50%;
        color: #fff;
        font-size: 17px;
        text-align: center;
        width: 100%;
    }

    .loader-screen .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }

.blinking {
    animation: blinkingText 2s infinite;
}

@keyframes blinkingText {
    0% {
        opacity: 0;
    }

    50% {
        opacity: .5;
    }

    100% {
        opacity: 1;
    }
}


#divOptionsBalance table th, #divOptionsBalance table td {
    padding: 0;
    font-size: 11px;
}
.flex {
    display: flex;
}

.left-column {
    display: flex;
    flex-direction: column;
}