body {
  width: 800px;
  margin: 0 auto 100px auto;
  padding: 0;

  font-family: "Source Code Pro", "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

a {
  color: rgb(200,100,0);
  font-weight: 600;
  text-decoration: none; /* no underline */
}

a:hover {
  color: rgb(220,120,20);
}

a.btn {
  font-weight: 400;
  padding: 8px 10px;
  margin: 4px 0;
  color: black;
  border: 1px solid black;
}

a.btn:hover {
  background-color: rgb(240,240,240);
}

p {
}

@media screen and (max-width: 1289px) {
  body {
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 0;
  }

  table {
    max-width: calc(100vw - 20px);
  }
}

table.toggle {
  display: none;
}

table {
  border-collapse: collapse;
  margin: 20px 0;
  padding: 0;
  width: 100%;
  font-size: 1em;
}

table tr.expandable {
  cursor: pointer;
}

table tbody tr:hover {
  background-color: rgb(248,248,248);
}

table th, table td {
  text-align: left;
  padding: 10px;
}

thead th, tbody th, tbody td {
  border: 1px solid rgb(219,219,219);
}

thead th, tbody th { 
  background-color: rgb(240,240,240);
  font-weight: 400;
}
tbody td {
}
tfoot th, tfoot td { border-top: 3px solid #FED766; color: #363020; font-weight: 700; }

input,
select option {
  font-size: 1em;
}

input[type="text"], input[type="password"] {
  padding: 6px;
  border: 0.5px solid black;
  margin: 0;
  box-sizing: border-box;
}

input[type="submit"] {
  padding: 10px;
}

.dangerous {
  padding: 10px;
  line-height: 1em;
  height: calc(1em + 20px);
  font-weight: 400;
  color: white;
  background-color: red;
  box-sizing: border-box;
  display: inline-block;
  cursor: pointer;
}

div.menu {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

div.menu.tight {
  margin: 4px 0;
}

div.menu.tight p {
  margin: 0;
}

div.menu .item {
  margin-right: 20px;
}

div.menu.tight .item {
  margin-right: 10px;
}

hr {
  box-sizing: border-box;
  border: 0 none transparent;
  border-top: 1px solid black;
  margin: 20px 0;
}

h4.error {
  color: red;
  margin: 0;
  padding: 20px 0;
  font-size: 1em;
}

span.click-for-detail, 
span.click-for-detail-ebook {
  cursor: pointer;
}

.highcharts-figure,
.highcharts-data-table table {
  width: 100%;
  max-width: calc(100vw - 20px);
  margin: 1em auto;
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted #FED766;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  overflow: hidden;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  font-size: 12px;
  font-weight: 400;
}

.stock.gray { color: gray; }
.stock.orange { color: orange; }
.stock.red { color: red; }
.stock.green { color: green; }

span.super { color: red; font-weight: 500; font-size: 0.7em; }
