﻿html,
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  height: 100%;
}
/*a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}*/
app {
  /*    position: relative;*/
  display: flex;
  flex-direction: column;
}
.main {
  max-height: calc(100vh - 4.4rem);
  overflow-y: auto;
}
.content {
  padding: 0.3rem 1rem 0 1rem;
}
.content > h1 {
  margin: 0 0 0.2em 0;
}
footer {
  margin: 0.5rem 0 0 0;
  padding: 0.3rem 1rem;
  border-top: 1px solid darkgray;
  height: 1rem;
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
}
footer > div {
  font-size: 0.8em;
  float: right;
}
/* Add a black background color to the top navigation */
.topnav {
  background-color: #ff8533;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0.1rem 0rem 0.1rem 1rem;
}
.topnav > ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  /*        &:first-of-type {
            > li {
                &:first-of-type {
                    margin-right: 2.0rem;
                }
            }
        }*/
}
.topnav > ul > li {
  display: flex;
  align-items: center;
  height: 2rem;
  margin-right: 1rem;
  font-size: 1.2rem;
  position: relative;
}
.topnav > ul > li > a {
  color: black;
  text-decoration: none;
}
.topnav > ul > li > a:hover {
  color: white;
}
.topnav > ul > li > img {
  height: 90%;
}
.topnav > ul > li > ul {
  display: none;
  position: absolute;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0 0 0 0rem;
}
.topnav > ul > li > ul > li {
  padding: 0;
  background-color: #ff8533;
  height: 1.6rem;
}
.topnav > ul > li > ul > li:last-of-type {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.topnav > ul > li > ul > li > a {
  margin: 0 1rem;
  padding: 0;
  border-radius: 4px;
  color: black;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.topnav > ul > li > div {
  color: black;
}
.topnav > ul > li > div:hover {
  cursor: pointer;
  color: white;
}
.topnav > ul > li:hover > div {
  color: white;
}
.topnav > ul > li:hover > ul {
  display: flex;
  flex-direction: column;
  top: 2rem;
}
.topnav > ul > li:hover > ul > li > a:hover {
  color: white;
  cursor: pointer;
}
.topnav > ul:last-of-type > li > i {
  display: none;
}
.topnav > ul:last-of-type > li > ul {
  left: auto;
  right: 0;
  margin-right: -1rem;
}
.topnav > ul:last-of-type > li > ul > li > div {
  white-space: nowrap;
  margin: 0 1rem;
  font-size: 1rem;
}
table.portfolio {
  border-collapse: collapse;
}
table.portfolio > thead > tr {
  border-bottom: 1px solid black;
}
table.portfolio > thead > tr > th {
  text-align: left;
  padding-right: 1em;
}
table.portfolio > thead > tr > th:nth-child(n+3) {
  text-align: right;
}
table.portfolio > thead > tr > th:first-of-type {
  padding-left: 0.3em;
}
table.portfolio > thead > tr > th:last-of-type {
  padding-right: 0.3em;
}
table.portfolio > tbody > tr:nth-of-type(even) {
  background-color: #e6e6e6;
}
table.portfolio > tbody > tr > td {
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 1em;
  white-space: nowrap;
}
table.portfolio > tbody > tr > td:nth-child(n+3) {
  text-align: right;
}
table.portfolio > tbody > tr > td:first-of-type {
  padding-left: 0.3em;
}
table.portfolio > tbody > tr > td:last-of-type {
  color: forestgreen;
  padding-right: 0.3em;
}
table.portfolio > tbody > tr > td.negative {
  color: red;
}
table.portfolio > tbody > tr:last-of-type {
  border-top: 1px solid black;
}
table.portfolio > tbody > tr:last-of-type > td:first-of-type {
  font-weight: bold;
}
table.portfolio > tbody > tr:last-of-type > td:last-of-type {
  font-weight: bold;
}
table.accounts {
  border-collapse: collapse;
}
table.accounts > thead > tr {
  border-bottom: 1px solid black;
}
table.accounts > thead > tr > th {
  text-align: left;
  padding-right: 1em;
}
table.accounts > thead > tr > th:nth-child(n+4) {
  text-align: right;
}
table.accounts > thead > tr > th:first-of-type {
  padding-left: 0.3em;
  max-width: 3.5rem;
}
table.accounts > thead > tr > th:last-of-type {
  padding-right: 0.3em;
}
table.accounts > tbody > tr > td {
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 1em;
  white-space: nowrap;
}
table.accounts > tbody > tr > td:nth-child(n+4) {
  text-align: right;
}
table.accounts > tbody > tr > td:first-of-type {
  padding-left: 0.3em;
  max-width: 3.5rem;
}
table.accounts > tbody > tr > td:last-of-type {
  padding-right: 0.3em;
}
table.accounts > tbody > tr.account-group {
  background-color: lightgray;
}
table.accounts > tbody > tr.account-group > td:first-of-type {
  overflow-x: visible;
  white-space: nowrap;
}
table.accounts > tbody > tr.account-group > td:last-of-type {
  text-align: right;
}
table.accounts > tbody > tr:last-of-type {
  border-top: 1px solid black;
}
table.accounts > tbody > tr:last-of-type > td {
  font-weight: bold;
}
div.dataentry {
  display: inline-flex;
  flex-direction: column;
}
div.dataentry > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
div.dataentry > div > h1 {
  margin: 0;
}
div.dataentry > div > button {
  height: 1.4rem;
  align-self: center;
}
div.dataentry > table {
  border-collapse: collapse;
  margin-left: 2rem;
}
div.dataentry > table > thead > tr {
  border-bottom: 1px solid black;
}
div.dataentry > table > thead > tr > th {
  text-align: left;
  padding-right: 1rem;
}
div.dataentry > table > thead > tr > th:first-of-type {
  padding-left: 0.3rem;
}
div.dataentry > table > thead > tr > th:last-of-type {
  text-align: right;
  padding-right: 0.3rem;
}
div.dataentry > table > tbody {
  border: 1px solid black;
}
div.dataentry > table > tbody > tr {
  height: 1.6rem;
}
div.dataentry > table > tbody > tr:nth-of-type(even) {
  background-color: lightgray;
}
div.dataentry > table > tbody > tr:nth-of-type(even) > td > input {
  background-color: lightgray;
}
div.dataentry > table > tbody > tr > td {
  padding-bottom: 0;
  padding-top: 0;
  padding-right: 1rem;
  white-space: nowrap;
}
div.dataentry > table > tbody > tr > td:first-of-type {
  padding-right: 1rem;
  padding-left: 0.3rem;
}
div.dataentry > table > tbody > tr > td:last-of-type {
  padding-right: 0.3rem;
  width: 5.3rem;
}
div.dataentry > table > tbody > tr > td:last-of-type > input {
  text-align: right;
  width: 5rem;
  padding-right: 0.3em;
  border: none;
  -moz-appearance: textfield;
}
div.dataentry > table > tbody > tr > td:last-of-type > input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
div.dataentry > table > tbody > tr:last-of-type {
  border-bottom: 1px solid black;
}
div.dataentry > table:first-of-type {
  margin-bottom: 1rem;
}
div.dataentry > table:last-of-type {
  margin-bottom: 2rem;
}
#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}
@media screen and (max-width: 840px) {
  table.portfolio {
    font-size: 0.7rem;
  }
  table.accounts {
    font-size: 0.7rem;
  }
}
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  table.portfolio > thead > tr > th:nth-of-type(2) {
    display: none;
  }
  table.portfolio > thead > tr > th:nth-of-type(6) {
    display: none;
  }
  table.portfolio > tbody > tr > td:nth-of-type(2) {
    display: none;
  }
  table.portfolio > tbody > tr > td:nth-of-type(6) {
    display: none;
  }
  table.accounts > thead > tr > th:first-of-type {
    max-width: 3.5em;
  }
  table.accounts > thead > tr > th:nth-of-type(3) {
    display: none;
  }
  table.accounts > tbody > tr > td:first-of-type {
    max-width: 3.5em;
  }
  table.accounts > tbody > tr > td:nth-of-type(3) {
    display: none;
  }
  .topnav > ul > li:not(:first-child) {
    display: none;
  }
  .topnav > ul:last-of-type {
    flex-direction: row;
  }
  .topnav > ul:last-of-type > li:last-of-type {
    display: flex;
  }
  .topnav > ul:last-of-type > li:last-of-type > i {
    display: flex;
  }
  .topnav.responsive > ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .topnav.responsive > ul > li {
    display: flex;
  }
  .topnav.responsive > ul > li > ul {
    margin-left: 1.5rem;
  }
  .topnav.responsive > ul > li:hover > a {
    color: white;
  }
  .topnav.responsive > ul:last-of-type {
    flex-direction: row;
  }
}