html.no-margin-top {
    margin-top: 0px !important;
}
.open-pos-wrap-desktop h2,
.closed-pos-wrap-desktop h2 {
    margin-top: 0px;
}
.closed-pos-wrap-desktop h2 {
    color: #fff;
}
.open-pos-wrap-mobile,
.closed-pos-wrap-mobile {
    display: none;
}
.open-pos-wrap-desktop {
    background: #fbe2a4;
    padding: 10px 5px 5px 5px;
    margin-bottom: 20px;
}
.closed-pos-wrap-desktop {
    background: #000;
    padding: 10px 5px 5px 5px;
}
.open-pos-wrap-desktop tbody:last-child tr:last-child,
.closed-pos-wrap-desktop tbody:last-child tr:last-child {
    display: none;
}
/*Desktop styling*/
table.portfolio-tracker.desktop {
    width: 100%; 
}
table.portfolio-tracker.desktop a {
    color: #0099ff;
}
table.portfolio-tracker.desktop th, td {
    padding: 5px;
    text-align: left;
    background: #fff;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid #999;
}
table.portfolio-tracker.desktop th, 
table.portfolio-tracker.desktop td {
    font-size: 16px;
}
table.portfolio-tracker.desktop th.name, 
table.portfolio-tracker.desktop td.name {
    max-width: 300px;
}
table.portfolio-tracker.desktop th {
    vertical-align: top;
}
table.portfolio-tracker.desktop .group td{
    font-weight: bold;
    background: #888;
    color: #fff;
    border-bottom: 1px solid #000;
}
table.portfolio-tracker.desktop .group td span,
div.portfolio-tracker.mobile h3 span {
    font-weight: 400;
}
table.portfolio-tracker.desktop .companies.odd td {
    background-color: #efefef;
}
table.portfolio-tracker.desktop .no-border-bottom td {
    border-bottom: none;
}
table.portfolio-tracker.desktop td.performance{
    text-align: center;
}
table.portfolio-tracker.desktop td.performance .fas,
div.portfolio-tracker.mobile tr.performance .fas {
    font-size: 24px;
    margin-top: 3px;
    color: #0099ff;
}
table.portfolio-tracker.desktop td.performance .fas:hover,
div.portfolio-tracker.mobile tr.performance .fas:hover {
    cursor: pointer;
    color: #027aca;
}
table.portfolio-tracker .hide {
    display: none;
}

/*Mobile styling*/
.mobile-portfolio-view {
   padding: 15px;
   background-color: #fff;
}

.mobile-portfolio-view h1 {
    display: none !important;
}

.mobile-portfolio-view.ios {
    margin-top: 40px;
}

div.portfolio-tracker.mobile {
    width: 100%;
    max-width: 991px;
    display: none;
}

div.portfolio-tracker.mobile h3 {
    display: none;
    background-color: #888;
    color: #fff;
    font-size: 1.1em;
    border-bottom: none;
    padding: 5px 10px;
    margin: 0px 0px 20px 0px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

div.portfolio-tracker.mobile h3 .fa {
    display: block;
    position: absolute;
    top: 7px;
    right: 10px;
    margin-top: 3px;
    font-size: 24px;
}

div.portfolio-tracker.mobile table {
    width: 100%;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

div.portfolio-tracker.mobile table th,
div.portfolio-tracker.mobile table td {
    width: 50%;
    padding: 5px 10px;
    background-color: #f8f8f8;
}

div.portfolio-tracker.mobile table th {
    border-bottom: 1px solid #999;
}

div.portfolio-tracker.mobile table tr:last-child th,
div.portfolio-tracker.mobile table tr:last-child td {
    border-bottom: none;
}

div.portfolio-tracker.mobile table tr.odd th,
div.portfolio-tracker.mobile table tr.odd td {
    background-color: #f0f0f0;
}


/* Additional css updates */

.portfolio-4470 .companies .symbol span,
.portfolio-4470 table .symbol td span {
    color: #fff;
}

.portfolio-4470 .companies.odd .symbol span,
.portfolio-4470 table .symbol.odd td span {
    color: #efefef;
}


/* 5yr performance */

.performance-link {
    text-align: center !important;
}
.performance-link .fas {
    cursor: pointer;
    color: #0099ff;
    font-size: 24px;
    margin-top: 3px;
}
#performance-popup-container {
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    text-align: center !important;
}
#performance-popup-container .loader {
    border: 8px solid #666; /* Light grey */
    border-top: 8px solid #fff; /* White */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -40px 0px 0px -40px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#performance-popup-container .performance-modal {
    max-width: 540px;
    width: 100%;
    text-align: right !important;
    position: relative;
    top: 50%;
    margin: -260px auto 0;
    background: #000;
    color: #fff;
}
#performance-popup-container .performance-modal .fa {
    font-size: 1.5em;
    padding: .2em;
    cursor: pointer;
}

#performance-popup-container .performance-modal .performance-modal-inner {
    text-align: center !important;
}
#performance-popup-container .performance-modal .performance-modal-inner .fa-spinner {
    margin: 2em auto;
    font-size: 3em;
    display: inline-block;
}
#performance-popup-container .performance-modal .alternative-source, 
#performance-popup-container .performance-modal .no-data {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 100px 20px 120px 20px;
}
#performance-popup-container .performance-modal .alternative-source a, 
#performance-popup-container .performance-modal .no-data a {
    color: #fff;
    text-decoration: underline;
}
#performance-popup-container .performance-modal .symbols .header {
    height: auto;
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 10px;
}

#performance-popup-container .chart-container .chart {
    position: relative;
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 5px 0px;
    background: #111;
}

.symbols .chart > div {
    display: none;
    text-align: center;
    font-size: 21px;
    background: #111;
}

.symbols {
    text-align: left;
    padding: 0px 20px 20px 20px;
}
.symbols .header {
    font-size: 24px;
}
.symbols .chart-top {
    font-size: 14px;
}
.symbols .chart-top .date {
    float: right;
    font-weight: bold;
}
.symbols .chart > div {
    display: none;
    text-align: center;
    font-size: 21px;
    background: #111;
}
.symbols .chart > div img {
    width: 100%;
    height: auto;
    padding: 5px 0px;
    background: #fff;
}
.symbols .chart > div.active {
    display: block;
}
.symbols .chart > div.active > span {
    display: block;
    padding: 124.5px 0px;
}
.symbols .period {
    display: block;
    margin: 3px 0px;
    float: right;
}
.symbols .period span {
    padding: 3px 20px;
    margin-right: 3px;
    background: #333;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
}
.symbols .period span:last-child {
    margin-right: 0px;
}
.symbols .period span.active {
    background: #666;
    color: #fff;
}

.symbols .chart-bottom {
    font-size: 14px;
    padding-top: 5px;
}

@media screen and (max-width: 1200px) {
    div.widetable {
        width: 100%;
        margin-bottom: 15px;
        overflow-y: hidden;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        border: 1px solid #ddd;
    }

    .open-pos-wrap-mobile h2,
    .closed-pos-wrap-mobile h2 {
        margin-top: 0px;
    }
    .closed-pos-wrap-mobile h2 {
        color: #fff;
    }
    .open-pos-wrap-mobile {
        display: block;
        background: #fbe2a4;
        padding: 10px 5px 5px 5px;
        margin-bottom: 20px;
    }
    .closed-pos-wrap-mobile {
        display: block;
        background: #000;
        padding: 10px 5px 5px 5px;
    }

    #popup-performance .popup-container .header {
        height: 30px !important;
    }

    div.portfolio-tracker.mobile,
    div.portfolio-tracker.mobile h3 {
        display: block;
    }

    .open-pos-wrap-desktop,
    .closed-pos-wrap-desktop,
    table.portfolio-tracker.desktop {
        display: none;
    }

    #portfolio-tabs .portfolio-tabs-header {
        border-bottom: none;
        margin-bottom: 10px;
    }

    .performance-link {
        text-align: left !important;
    }

    #performance-popup-container .performance-modal .symbols .header {
        height: auto !important;
    }
}


/* portfolio tracker version 1.3.1 styling */

.portfolio-header {
    display: block;
    width: 100%;
    min-height: 20px;
    overflow: auto;
    padding: 2px 10px;
}
.portfolio-header.odd {
    background: #ababab;
}
.portfolio-header p {
    margin: 10px 0;
}

.portfolio-header .portfolio-name {
    width: 60%;
    float: left;
}

.portfolio-header .portfolio-symbol {
    width: 30%;
    float: left;
    text-align: right;
}
.portfolio-header .portfolio-toggle {
    float: right;
    cursor: pointer;
}
.portfolio-header .portfolio-toggle .fa-minus {
    display: none;
}

.portfolio-content {
    display: none;
    background: #fff;
    padding: 5px;
    border-bottom: thin solid #268dd4;
    margin: 10px 0 5px 0;
    -webkit-transition: all linear 0.5s;
    transition: all linear 0.5s;
    opacity: 1;
}
.portfolio-content p {
    text-align: left !important;
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.1rem;
    color: #333;
    white-space: normal !important;
}
.portfolio-content .portfolio-title {
    text-transform: uppercase;
    color: #268dd4;
    font-weight: 700;
    margin-right: .5em;
}

#mobile-portfolio-view {
    display: none;
}

@media screen and (max-width: 768px) {
    #mobile-portfolio-view {
        display: block;
    }
    #pttable {
        display: none;
    }
}

#tfs-portfolio-graph, #tfs-portfolio {
    color: #222222;
    font-family: "Open Sans", sans-serif;
}
#tfs-portfolio-graph {
    margin-bottom: 50px;
}
#tfs-portfolio-header {
    font-size: 25px;
    letter-spacing: 0.38px;
    line-height: 38px;
    font-weight: normal;
}
#tfs-portfolio-table {
    border-collapse: separate;
}
#tfs-portfolio-table thead {

}
#tfs-portfolio-table thead th {
    padding: 12px 4px;
    text-align: left;
    opacity: 0.7;
    color: #262626;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.1px;
    line-height: 15px;
    text-transform: uppercase;
    border-top: 1px solid rgba(48,49,51,0.2);
    border-bottom: 1px solid rgba(48,49,51,0.2);
    border-left: none;
    border-right: none;
}
#tfs-portfolio-table tbody td {
    padding: 24px 4px;
    color: #262626;
    font-size: 14px;
    letter-spacing: 0.12px; 
    line-height: 22px;
    border-bottom: 1px solid rgba(48,49,51,0.2);
    border-left: none;
    border-right: none;
    border-top: none;
}
#tfs-portfolio-table tbody td span {
    display: block;
}

#tfs-portfolio-table .portfolio-ticker, #tfs-portfolio-table .portfolio-recommendation {
    text-align: left;
}
#tfs-portfolio-table .portfolio-stop-loss, #tfs-portfolio-table .portfolio-last-price, #tfs-portfolio-table .portfolio-return {
    text-align: center;
}
#tfs-portfolio-table .portfolio-last-price {
    padding-right: 20px;
}

#tfs-portfolio-table tfoot td {
    background-color: #F7F6F7;
    padding: 18px 2px;
    text-align: right;
    border-bottom: 1px solid rgba(48,49,51,0.2);
    color: #303133;
    font-size: 14px;
    letter-spacing: 0.1px;
    line-height: 19px;
}
#tfs-portfolio-table tfoot td span {
    padding-left: 5px;
}
.portfolio-bold {
    font-weight: 700;
}
.portfolio-semi-bold {
    font-weight: 600;
}
.portfolio-sub-span {
    font-size: 11px;
}
#tfs-portfolio-table .portfolio-return-negative {
    color: #E6173E;
}
#tfs-portfolio-table .portfolio-return-positive {
    color: #009933;
}
#tfs-portfolio-table .portfolio-return {
    font-weight: 700;
}
#tfs-portfolio-table .portfolio-right-align  {
    text-align: right;
}
@media screen and (max-width: 1020px) {
    #tfs-portfolio-table thead th {
        font-size: 10px;
        padding: 12px 2px;
        letter-spacing: .8px;
    }
    #tfs-portfolio-table tbody td {
        font-size: 10px;
        padding: 24px 2px;
    }
    .portfolio-sub-span {
        font-size: 10px;
    }
}

@media screen and (max-width: 601px) {
    #tfs-portfolio-table thead th {
        letter-spacing: .5px;
        font-weight: 700;
    }
}

.portfolio-card{
    border: 2px solid #5d5d5d;
    padding: 2%;
    border-radius: 5px;
    margin: 1em 0 2em;
}

.portfolio-card div{
    display: inline-block;
    vertical-align: top;
    padding-right: 2%;
}

.portfolio-card .portfolio-head{
    font-weight: 700;
    font-size: 20px;
    width: 20%;
}

.portfolio-card .portfolio-body{
    width: 50%;
}

.portfolio-card .portfolio-btn{
    width: 15%;
    border-radius: 5px;
    padding: 1% 2%;
    border: 1px solid #5d5d5d;
    text-align: center;
    display: inline-block;
}