/* 
	Scheme: https://hihayk.github.io/scale/#4/6/0/99/0/0/20/100/941C2F/148/28/47/white	

	(1) Navigation Bar
	(2) Tables

*/
body {
  padding: 0;
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 15px;
}
body * {
  box-sizing: border-box;
}

.main {
  display: flex;
}

.page {
  width: 100%;
  margin: 40px;
  border-radius: 10px;
}

.login {
  height: 100vh;
  background-color: #941c2f;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15vh;
}

.login-wrapper {
  width: 1000px;
  padding: 20px;
  border-radius: 10px;
  background-color: #fafafa;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.login-decorator {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 20px 100px 0;
  border-right: 1px solid rgba(0, 0, 0, 0.3);
}
.login-decorator img {
  height: 200px;
  object-fit: scale-down;
}
.login-decorator h3 {
  margin-bottom: 50px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 50px 40px;
}
.login-form small {
  color: #525252;
  margin-bottom: 20px;
}

@media only screen and (max-width: 1280px) {
  .login {
    padding: 10px;
    justify-content: center;
    align-items: center;
  }

  .login-wrapper {
    width: 60vw;
    grid-template-columns: 1fr;
  }

  .login-decorator {
    padding: 10px;
    border-right: none;
  }
  .login-decorator img {
    height: auto;
    width: 100%;
  }
  .login-decorator h3 {
    margin-bottom: 0;
  }

  .login-form {
    justify-content: start;
    padding: 10px;
  }
  .login-form form {
    width: 40vw;
  }
  .login-form button {
    max-width: 100px;
  }
}
@media only screen and (max-width: 768px) {
  .login-decorator h3 {
    display: none;
  }
}
/* (1) Navigation Bar */
nav {
  position: sticky;
  top: 0;
  min-width: 200px;
  max-width: 200px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #941c2f;
  font-size: 17px;
}

.nav-logo {
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.nav-logo:focus, .nav-logo:hover {
  text-decoration: none;
}

.nav-logo img {
  width: 60%;
}

.nav-logo h2 {
  margin: 10px 0 0 0;
  text-align: center;
  font-size: calc(0.7em + 0.3vw);
  color: #ffffff;
}

.nav-object {
  height: 50px;
  margin: 5px 0;
  display: flex;
  align-items: center;
  padding: 5px 35px;
  cursor: pointer;
  color: #ffffff;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  text-decoration: none;
}
.nav-object:focus {
  outline: none;
  background-color: #a92036;
  border-left: 4px solid #ffffff;
}
.nav-object:hover {
  color: #ffffff;
  text-decoration: none;
  outline: none;
  background-color: #bf243d;
  border-left: 4px solid #ffffff;
}
.nav-object img {
  width: 25px;
  margin-right: 15px;
}
.nav-object h3 {
  margin: 0;
  font-weight: normal;
  text-align: center;
  font-size: 0.8em;
}

.nav-selected {
  background-color: #a92036;
  border-left: 4px solid #ffffff;
}

.logout {
  margin: auto 0 20px 0;
}

@media only screen and (max-width: 1280px) {
  nav {
    min-width: 80px;
    max-width: 80px;
  }

  .nav-logo {
    height: 100px;
  }
  .nav-logo h2 {
    margin: 10px 0 0 0;
    padding: 0 5px;
    text-align: center;
    font-size: calc(0.5em + 0.3vw);
    color: #ffffff;
  }

  .nav-object {
    padding: 5px;
    justify-content: center;
  }
  .nav-object img {
    margin: 0;
  }
  .nav-object h3 {
    display: none;
  }
}
@media only screen and (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  .page {
    margin: 0;
    padding: 10px;
    overflow: auto;
  }

  nav {
    height: 80px;
    max-width: 100%;
    min-width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    height: 100%;
    padding: 15px;
  }
  .nav-logo img {
    height: 20px;
    width: auto;
  }

  .nav-object {
    height: 100%;
    width: 50px;
    margin: 0 3px;
    border-left: none;
    border-right: none;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }
  .nav-object:focus {
    border-left: none;
    border-top: 4px solid #ffffff;
  }
  .nav-object:hover {
    border-left: none;
    border-top: 4px solid #ffffff;
  }
  .nav-object img {
    height: 20px;
  }

  .nav-selected {
    background-color: #a92036;
    border-top: 4px solid #ffffff;
  }

  .logout {
    margin: 0 20px 0 5px;
  }
}
/* (2) Tables */
.empty-row {
  text-align: center;
}

.table-header {
  margin-bottom: 10px;
}

.table-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

tbody tr {
  background-color: #fafafa;
  border-bottom: 1px solid #d4d4d4;
  height: 42px;
}

td {
  padding: 5px 10px;
  font-size: 0.9em;
}

th {
  background-color: #941c2f;
  color: #ffffff;
  font-weight: normal;
  font-size: 1em;
  padding: 10px;
}

.table-button {
  padding: 5px 15px;
  margin: 2px;
  background-color: #941c2f;
  color: #ffffff;
  border: 3px solid #941c2f;
  cursor: pointer;
}
.table-button:hover, .table-button:focus {
  background-color: #bf243d;
  border: 3px solid #bf243d;
}
.table-button:disabled {
  background-color: #d4d4d4;
  border: 3px solid #d4d4d4;
  color: #aeaeae;
}

.table-button-selected {
  background-color: #ffffff;
  border: 3px solid #941c2f;
  color: #941c2f;
  font-weight: bold;
}
.table-button-selected:hover {
  border: 3px solid #bf243d;
  background-color: #ffffff;
  color: #bf243d;
}

.last-column-right tr td:last-child {
  text-align: right;
}