/* start of common styles */

.hidden {
  display: none !important;
}

body {
  display: block;
  font-family: Tahoma, sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: left;
  font-family: Georgia;
  font-size: 24px;
}

h2 {
  font-size: 18px;
  margin: 0 0 10px 0;
  padding: 0;
}

h3 {
  font-size: 16px;
  margin: 0 0 10px 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: #0077cc;
  padding: 5px 8px;
  border-radius: 5px;
}

a:hover {
  color: #002c4c;
  background-color: #cce0ff;
}

a:active{
  border: 1px solid #005a9a;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input {
  box-sizing: border-box;
}

input:invalid {
  border: 2px solid #f00;
}

header {
  position: relative;
  display: block;
  font-size: 14px;
  margin: 0 0 10px 0;
  height: 40px;
  border-bottom: 1px solid #e0e0e0;
}

header nav {
  position: absolute;
  top: 17px;
  right: 0px;
}

header nav a {
  text-decoration: none;
  color: #0077cc;
  transition: all 0.2s ease;
  padding: 5px 8px;
  border-radius: 5px 5px 0 0;
}

header nav a:hover {
  color: #005fa3;
  background-color: #cccccc;
}

header nav a:active{
  color: #003f7f;
  background-color: #cce0ff;
}

header #login-container p {
  margin: 0 0 5px 0;
}

footer {
  background-color: #333;
  color: #ccc;
  font-size: 12px;
  margin: 10px 0 0 0;
  padding: 10px 10px;
}

@media screen and (max-width: 767px) {
  header .media-identifier {
    color: rgb(235, 169, 27);
  }
}

@media screen and (min-width: 768px) {
  body {
    width: 768px;
  }

  header .media-identifier {
    color: #2c8;
  }  
}

@media screen and (min-width: 1024px) {
  body {
    width: 1024px;
  }

  header .media-identifier {
    color: rgb(60, 132, 178);
  }  
}

@media screen and (min-width: 1600px) {
  body {
    width: 1600px;
  }

  header .media-identifier {
    color: rgb(178, 60, 60);
  }  
}
/* end of common styles */
#login-container {
  display: none;
  position: absolute;
  top: 40px;
  right: 0px;
  padding: 10px 10px;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  border-radius: 5px 0 5px 5px;  
}

#logged-in-view {
  display: none;
}

.oauth_account_signin {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 5px 8px;
  margin-top: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.oauth_account_signin:hover {
  color: #002c4c;  
  background-color: #cce0ff;
}

.oauth_account_signin:active {
  border: 1px solid #005a9a;
}

.oauth_account_signin svg {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

#logout {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#strategy-index ul {
  padding-left: 0px;
  list-style-type: none;
  /* hides bullets */
}

#strategy-index ul>li>ul {
  padding-left: 10px;
}

#strategy-index span {
  margin-bottom: 10px;
}

li>a {
  font-size: 12px;
}

#strategy-index li {
  padding-left: 0;
  margin: 0 5px 0 0;
}

#strategy-index {
  border: 1px solid #eee;
  padding: 10px;
  background-color: #eee;
}

#subpage-content {
  padding: 10px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  width: 100%;
  overflow: hidden; /* helps apply rounding */
  margin-bottom: 12px;
}

th, td {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: left;
}

th {
  background-color: #f0f0f0;
}
thead th:first-child {
  border-top-left-radius: 8px;
}

thead th:last-child {
  border-top-right-radius: 8px;
}

tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

@media screen and (max-width: 767px) {
  #strategy-index-ctrl {
    padding: 0px 10px;
    display: flex;
  }

  #strategy-index {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  main {
    display: grid;
    grid-template-areas: "left right";
    grid-template-columns: 250px 1fr;
  }

  header {
    margin-bottom: 0px;
  }

  footer {
    margin-top: 0px;
  }

  #strategy-index-ctrl {
    display: none;
  }

  #strategy-index {
    grid-area: left;
  }

  #subpage-content {
    grid-area: right;
    border-right: 1px solid #e0e0e0;
  }
}
