﻿.autocomplete-w1 {
    position: absolute;
    top: 0px;
    left: 0px;
    margin: 8px 0 0 6px;
    _background: none;
    _margin: 0;
}

.autocomplete {
    box-shadow: 1px 1px 3px rgba(0,0,0,.31);
    border: 1px solid #999;
    background: #FFF;
    cursor: default;
    text-align: left;
    max-height: 350px;
    overflow: auto;
    margin: -6px 6px 6px -6px;
    _height: 350px;
    _margin: 0;
    _overflow-x: hidden;
}

    .autocomplete .selected {
        background: #d7d7da;
    }

    .autocomplete div {
        padding: 1px 1px;
        white-space: nowrap;
        float: left;
    }

        .autocomplete div.apcd {
            font-size: 11px;
            font-weight: bold;
            background: #5d99c6;
            padding: 3px 6px;
            border-radius: 3px;
            color: #FFF;
            font-family: monospace;
            letter-spacing: 0.5px;
            float: right;
        }

            .autocomplete div.apcd strong {
                color: #fff;
            }

    .autocomplete strong {
        font-weight: bold;
        color: #3399FF;
    }


/*alert/notice*/
.cont-alert {
    position: fixed;
    top: 110px;
    right: 10px;
}

    .cont-alert section {
        width: 250px;
        border: 1px solid #000;
        padding: 15px 20px 20px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        margin-bottom: 10px;
        background-color: rgba(0,0,0,.8);
        position: relative;
        visibility: hidden;
    }

        .cont-alert section h6 {
            font-size: 15px;
            font-weight: bold;
            color: #f7f7f7;
            margin-bottom: 8px;
            margin-top: 0;
        }

        .cont-alert section.success h6:before {
            content: "✔";
            font-style: normal;
            font-weight: normal;
            speak: none;
            display: inline-block;
            text-decoration: inherit;
            font-variant: normal;
            text-transform: none;
            -webkit-font-smoothing: antialiased;
            margin-right: 5px;
            color: #338b0d;
        }

        .cont-alert section span {
            font-size: 12px;
            display: block;
            line-height: 17px;
            color: #d5d5d5;
        }

        .cont-alert section.error {
            background: #9e271f;
            border-color: #9e271f;
        }

            .cont-alert section.error h6:before {
                content: "✗";
                display: inline-block;
                text-decoration: inherit;
                font-variant: normal;
                text-transform: none;
                -webkit-font-smoothing: antialiased;
                margin-right: 5px;
                color: #fffbdf;
            }

.show-alert {
    -webkit-animation: animation-y 5s ease 0 1 normal;
    -moz-animation: animation-y 5s ease 0 1 normal;
    -o-animation: animation-y 5s ease 0 1 normal;
    animation: animation-y 5s ease 0 1 normal;
    visibility: visible !important;
}

.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;
    }
}
a {
    color: #0275d8;
    text-decoration: none;
}
.positive, .pstve, .green, .text-green {
    color: #31a745 !important;
}

.red, .negative, .text-red, .text-red a {
    color: #ff4f55 !important;
}

.neutral,.yellow {
    color: #f9b233 !important;
}
.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 0 10px;
}
.flex {
    display: flex;
}
.w-full {
    width: 100%;
}
.popup {
    position: fixed;
    left: 50%;
    top: 45%;
    display: none;
    background: white;
    z-index: 99999;
    max-width: 100vw;
    /*padding: 20px;*/
    /*border-radius: 10px;*/
    transform: translate(-50%, -50%);
    box-shadow: 2px 3px 5px #999;
}

    .popup .headcontainer {
        display: grid;
        grid-template-columns: 1fr auto;
        background: #1976d2;
        font-size: 1.2em;
        /*border-radius: 10px 10px 0px 0px;*/
        /*margin: -20px -20px 20px -20px;*/
        color: white;
        padding: 5px;
    }

    .popup .head {
        white-space: nowrap;
        padding: 0px 10px;
    }

    .popup .close {
        width: 30px;
        cursor: pointer;
        position: absolute;
        top: 0;
        right: 0;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        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: 0;
    }

    .popup .form-group input {
        width: 100%;
        /*padding: 8px;*/
        box-sizing: border-box;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

/* Styling the form */
.login-form {
    border-radius: 8px;
    width: 250px;
    text-align: center;
}

    .login-form h2 {
        margin-bottom: 0;
    }


.py0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Custom CSS to make the datepicker smaller */
.ui-datepicker {
    font-size: 12px !important;
}

    .ui-datepicker .ui-datepicker-header {
        padding: 0.2em 0 !important;
    }

    .ui-datepicker .ui-datepicker-title {
        font-size: 1em !important;
    }

    .ui-datepicker table {
        width: 100% !important;
    }

    .ui-datepicker .ui-datepicker-calendar .ui-state-default {
        padding: 0.2em !important;
    }

:root {
    --color-available: #338b0d5a;
    --color-stocks: #faf8ee5a;
    --color-options: #1976d25a;
    --color-futures: #900C3F5a;
    --color-bonds: #58800c1a;
    --color-mutual-funds: #3357FF1a;
    --color-etfs: #FF33A81a;
    --color-commodities: #DAF7A61a;
    --color-currencies: #5818451a;
    --color-indices: #FFC3001a;
    --color-missed: #974e4e1a;
}
.available,.AVL {
    background-color: var(--color-available) !important;
}
.stock {
    background-color: var(--color-stocks)!important;
}

.future, .FUTSTK, .FUTIDX, .FUTCOM {
    background-color: var(--color-futures) !important;
}
.option, .OPTSTK, .OPTIDX {
    background-color: var(--color-options) !important;
}
.missedAMT, .EXTRA {
    background-color: var(--color-missed) !important;
}
a.nrml {
    color: #212529!important;
    text-decoration:none!important;
}

.CallClr {
    background-color: #fe9 !important;
    color: #404b55 !important;
}

.stock-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

 .stock-info h2 {
    font-size: 16px;
    margin: 0;
    padding: 0;
}
.ratingstars {
    --percent: calc(var(--rating) / 5* 100%);
    display: inline-block;
    font-size: 25px;
    font-family: Times;
    line-height: 1;
}

    .ratingstars::before {
        content: '★★★★★';
        letter-spacing: 2px;
        background: linear-gradient(90deg, #0078ff var(--percent), #EEEEEE var(--percent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .text-left{
        text-align:left!important;
    }
.text-right {
    text-align: right !important;
}

.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;
}

.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;
}

.N0 {
    background-color: #f7e67d !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;
}
 .table th.asc::after,
.table th.desc::after {
    font-family: "Font Awesome 5 Free"; /* You can use a specific icon font or ASCII for arrows */
    font-weight: 900;
    padding-left: 5px;
}

 .table th.asc::after {
    content: "▲"; /* Up arrow */
    font-size: 0.8em;
    color: #333;
}

 .table th.desc::after {
    content: "▼"; /* Down arrow */
    font-size: 0.8em;
    color: #333;
}