input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  transition: background-color 5000s ease-in-out 0s;
}

html {
    -webkit-text-size-adjust: 100%;
    font-size: 100%;
}

.header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
}

.header-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 30px;
    row-gap: 8px;
}
.header-filter:first-child {
    flex: 7 1 0;
}
.header-filter:last-child {
    flex: 3 1 0;
}

.header-filter>div>input {
    height: 28px;
    width: 128px;
}
.header-filter>div>select {
    height: 34px;
    width: 135px;
    appearance: none;
}

.header>div>input {
    height: 28px;
}

.header-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}
button {
    height: 30px;
    width: 88px;
    cursor: pointer;
}
a {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}
.stock-list {
    margin-top: 20px;
}

.item-header {
    display: flex;
    flex-direction: row;
    height: 36px;
    align-items: center;
    font-weight: bold;
}

.item-header>div {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.item-headers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr 3fr;
    height: 36px;
    align-items: center;
    font-weight: bold;
}

.list {
    display: flex;
    flex-direction: column;
}

.list>div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    height: 36px;
}

.lists>div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr 3fr;
    align-items: center;
    height: 36px;
}
.lists>div > :last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list>div:hover {
    background-color: #ffeaa7 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.list>div>div {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.list>div>div>a {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.list>div>div>img {
    cursor: pointer;
    width: 14px;
    margin-left: 4px;
    vertical-align: middle;
    filter:hue-rotate(20deg) saturate(2.5);
}

.list>div>div>button {
    border: unset;
    background-color: unset;
    color: blue;
    height: 30px;
    cursor: pointer;
}

.stock-chart, .stock-data {
    position: fixed;
    background-color: #8d8a8a61;
    width: 100vw;
    height: 100dvh;
    display: none;
    top: 0;
    left: 0;
    align-items: center;
}

#figure {
    width: 720px;
    height: 570px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#data-tips {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    max-width: 80%;
    max-height: 80%;
    margin: 0 auto;
    overflow-y:auto;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#data-tips>.header {
    font-size: 1.2em;
    font-weight: bold;
}

#data-tips>div {
    display: flex;
    flex-direction: column;
}

#data-tips>div>.title {
    font-size: 1.1em;
    font-weight: bold;
}

#data-tips>div>.value {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex: 1;
    gap: 8%;
    align-items: center;
}

#data-tips>div>.value>div>.value-text {
    font-weight: bold;
    margin-left: 8px;
}

#data-tips>div>.value>div>img {
    width: 20px;
    height: 20px;
    margin-left: 15px;
}

.three-price {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    font-family: monospace;
}

.three-price span {
    display: inline-block;
    width: 10ch;
    text-align: justify;
    align-self: anchor-center;
}

.three-price a {
    text-decoration: none;
    color: blue;
}

.return-table {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 6px;
}

.return-table>span {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.modal_cover {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .6);
}
.modal_gif {
    display: none;
    position: absolute;
    width: 100px;
    height: 120px;
    left: 50%;
    top: 40%;
    transform: translate(-50%,-50%);
    overflow:auto;
    overflow-x:hidden;
    background: url("loading.gif") no-repeat;
    background-size: 80px 108px;
}
