.tableNote {
    display: block;
    text-align: right;
    margin: 0 1rem 0.5rem 1rem;
    font-size: 90%;
    color: grey;
}
.portTable {
    --border: 1px solid #eee;
}
.portTable abbr {
    text-decoration: none;
}
.portTable {
    display: block;
    font-size: 90%;
}
.portTable thead {
    display: none;
}
.portTable tbody {
    display: block;
    margin: 1rem;
    width: calc(100% - 2rem);
    border: var(--border);
    border-bottom: none;
}
.portTable tbody.wForecast {
    border: 2px solid #000;
}
.portTable tr {
    display: flex;
    flex-direction: column;
    position: relative;
}
.portTable td {
    display: block;
    padding: 0.7rem 1rem;
}
.portTable td[data-label] {
    display: flex;
    justify-content: space-between;
    border-bottom: var(--border);
    align-items: center;
}
.portTable td:empty {
    display: none;
}
.portTable td[data-label]:before {
    content: attr(data-label);
    flex-grow: 1;
    font-size: 95%;
}
.portTable td:nth-of-type(1) {
    padding: 1.3rem 1rem;
}
.portTable td:nth-of-type(1),
.portTable .portInfo,
.portTable .forecastFor {
    background-color: var(--opaquelike-theme-color);
}
.portTable .portName {
    display: block;
    font-weight: var(--bolder);
    max-width: 75%;
}
.portTable .exch {
    display: flex;
    align-items: center;
    padding: 0.2rem 0;
    font-size: 90%;
}
.portTable .exch img {
    max-height: 1.7rem;
    margin-right: 1rem;
}
.portTable .exch .updRate {
    opacity: 0.5;
}
.portTable .compChart {
    display: none;
}
.portTable .portSec {
    display: none;
}
.portTable td:nth-of-type(1) + .portInfo {
    padding-top: 0;
    padding-bottom: 1.3rem;
    margin-top: -1rem;
}
.portTable td:nth-of-type(1) + .forecastFor {
    border-top: var(--border);
}
.portTable .forecastFor {
    font-weight: var(--bolder);
    color: var(--theme-color);
    padding: 0.7rem 1rem;
}
.portTable .portInfo abbr {
    display: inline-block;
    padding: 0;
    font-size: 0;
}
.portTable .portInfo abbr:before,
.portTable .portInfo abbr:after {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.5;
}
.portTable .portInfo abbr:before {
    content: attr(title);
}
.portTable .portInfo abbr:nth-of-type(1):not(:nth-last-of-type(1)):after {
    content: ', ';
    white-space: pre;
}
.portTable .portInfo .remark {
    display: block;
    margin-top: .5rem;
    font-size: 90%;
}
.portTable .portInfo .remark:after {
    content: attr(data-content);
}
.portTable .forecast .dateTd {
    display: none;
}
.portTable .dateTd {
    position: absolute;
    top: 0.7rem;
    right: 0;
    width: 25%;
    text-align: right;
    border: none;
}
.portTable .dateTd.today {
    font-weight: bold;
}
.portTable .ofcChange {
    display: inline-block;
    margin: 0 0.2rem;
    font-size: 80%;
}
.portTable .ofcChange.up {
    vertical-align: super;
    color: green;
}
.portTable .ofcChange.down {
    color: red;
    vertical-align: sub;
}
.portTable .ofcChange.noch {
    display: none;
}
.portTable .trend {
    position: relative;
    display: inline-block;
    margin-left: 0.2rem;
    cursor: default;
    font-size: 110%;
}
.portTable .trend:before {
    display: block;
    font-family: 'FontAwesome';
    font-size: 110%;
}
.portTable .trend.up:before {
    content: '\f0aa';
    color: green;
}
.portTable .trend.down:before {
    content: '\f0ab';
    color: red;
}
.portTable .trend.noch:before {
    content: '\f0a9';
    color: blue;
}
.changeInfo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25rem;
}
.changeInfo {
    position: absolute;
    display: flex;
    align-items: center;
    font-size: 1rem;
    flex-wrap: wrap;
    top: 1rem;
    right: 1rem;
    background-color: #fff;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    z-index: 5;
    height: 10rem;
    padding: 1.5rem 1rem;
    color: #000;
    font-family: 'Roboto';
    text-align: left;
    cursor: default;
}
.changeInfo p {
    flex-basis: 100%;
    margin: 0 0 0.5rem 0;
}
.changeInfo p:nth-of-type(1) {
    font-weight: var(--bolder);
}
.changeInfo p[data-label] {
    display: flex;
    justify-content: space-between;
}
.changeInfo p[data-label]:before {
    content: attr(data-label);
}

.change {
    display: block;
    margin-left: 0.15rem;
    font-size: 80%;
}
.change.up {
    color: green;
    vertical-align: super;
}
.change.up:before {
    content: '+';
}
.change.down {
    color: red;
    vertical-align: sub;
}
.change.no {
    color: blue;
    vertical-align: initial;
}

@media (min-width: 1024px) {

.portTable .compChart {
    display: inline-block;
    margin: 0.5rem 0.7rem 0 0;
    font-size: 90%;
}
.portTable .compChart:before {
    display: inline-block;
    margin-right: .2rem;
    font-family: 'FontAwesome';
    content: '\f201';
    font-size: 110%;
}
.portTable {
    display: table;
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 100%;
}
.portTable thead {
    display: table-header-group;
}
.portTable th {
    background-color: var(--theme-color);
    text-align: left;
    color: #fff;
    padding: 1rem;
    white-space: nowrap;
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
    z-index: 15;
    font-weight: var(--bolder);
}
.portTable tbody {
    display: table-row-group;
}
.portTable tr {
    display: table-row;
}
.portTable td,
.portTable td[data-label],
.portTable td:empty {
    display: table-cell !important;
    vertical-align: top;
    padding: 1rem 0.5rem !important;
    border: var(--layout-border);
}
.portTable [data-label],
.portTable .r {
    text-align: right;
}
.portTable td:nth-of-type(1),
.portTable .portInfo,
.portTable .forecastFor {
    background-color: transparent;
}
.portTable td[data-label] {
    white-space: nowrap;
}
.portTable td[data-label]:before {
    display: none;
}
.portTable .portSec {
    display: block;
    margin: 0.4rem 0 0 0;
    padding: 0;
    list-style: none;
    font-size: 90%;
    /* text-align: right; */
}
.portTable .portSec li {
    display: inline-block;
}
.portTable .portSec li + li {
    margin-left: 0.4rem;
}
.portTable .portSec a {
    color: #000;
    /* opacity: 0.5; */
}
.portTable .portInfo {
    border-left: none;
}
.portTable .portInfo abbr,
.portTable .portInfo .remark {
    font-size: 90%;
    border: 1px solid #ddd;
    padding: 0 0.2rem;
    background-color: #eee;
    font-weight: var(--bolder);
    color: grey;
    cursor: default;
}
.portTable .portInfo abbr + * {
    margin-left: 0.2rem;
}
.portTable .portInfo abbr:before,
.portTable .portInfo abbr:after {
    display: none;
}
.portTable .portInfo .remark {
    display: inline-block;
    position: relative;
}
.portTable .portInfo .remark:before {
    content: 'I';
}
.portTable .portInfo .remark:after {
    display: none;
}
.portTable .portInfo .remark:hover:after {
    display: block;
    position: absolute;
    top: 100%;
    left: 100%;
    background-color: #fff;
    border: 1px solid #eee;
    min-width: 270px;
    max-width: 500px;
    padding: .8rem;
    color: #000;
    font-weight: normal;
    z-index: 5;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
.portTable .forecastFor {
    font-weight: normal;
    color: initial;
    opacity: 0.5;
}
.portTable .dateTd {
    position: static;
    width: auto;
    text-align: center;
    border: var(--border);
}

}

.top {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.top label {
    display: block;
    margin-bottom: 0.2rem;
}
.top select {
    width: 100%;
    font-family: inherit;
    padding: 0.8rem;
    font-size: inherit;
    background-color: #f9f9f9;
    border: 1.5px solid #e4e3ed;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 7.33l2.829-2.83 9.175 9.339 9.167-9.339 2.829 2.83-11.996 12.17z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 97%;
    background-position-y: 10px;

    outline: none;
    resize: none;
    border-radius: 3px;
}
.registerTd {
    display: table-cell;
    text-align: center !important; 
    vertical-align: middle !important;
}

.fa {
    font-size: 1.5em;
    margin-top: 10px;
    margin-right: 10px;
}