* {
  box-sizing: border-box;
}

html, body, .wrap {
  min-height: 1000px;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}

.top-bar, .wrap {
  min-width: 1070px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 30px;
}

a {
  color: #5178CD;
}

a:hover {
  color: #312783;
}

h1 {
  margin: 0;
}

h1 {
  font-size: 20px;
}

h2 {
  font-size: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

tr {
  height: 49px;
  border-top: 1px solid #DEE2E6;
}

th {
  border-bottom: 1px solid #DEE2E6;
}

th, td {
  text-align: left;
}

tr:nth-child(even) {
  background: #F8F9FA;
}

th:first-child, td:first-child,
th:last-child, td:last-child {
  padding-left: 20px;
}

aside {
  width: 150px;
}

aside nav a {
  display: flex;
  width: 150px;
  height: 150px;
  align-items: center;
  justify-content: center;
}

aside nav a:hover svg path,
aside nav a:active svg path {
  fill: #312783;
}

aside nav a {
  position: relative;
  right: -1px;
}

aside nav a.active {
  background-color: white;
  z-index: 1;
}

aside nav a.active::before,
aside nav a.active::after {
  content: ' ';
  position: absolute;
  top: 0;
  right: 0;
  height: 1px;
  background: #CED4DA;
  left: -1000px;
}

aside nav a.active::after {
  top: unset;
  bottom: 0;
}

aside nav a.active svg path {
  fill: black;
}

.container {
  position: relative;
  flex: 1;
  border-top: 1px solid #CED4DA;
  border-left: 1px solid #CED4DA;
  padding-left: 50px;
  padding-bottom: 4rem;
  min-height: 100%;
}

/* right-side line */
.container::after {
  content: ' ';
  position: absolute;
  right: -1000px;
  top: 0;
  background: #CED4DA;
  width: 1000px;
  height: 1px;
  margin-top: -1px;
}

/* Forms */

input, select {
  padding: 10px 18px;
  height: 40px;
  color: #666;
  background-color: #FFF;
  border: 1px solid #CED4DA;
  border-radius: 4px;
  font-size: 12px;
  line-height: 14px;
}

select {
  padding-right: 30px;
  appearance: none;
}

select > option {
  background-color: #FFF;
  padding: 8px !important;
}

button, a.btn {
  color: white;
  border: 1px solid #5178CD;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  background-color: #5178CD;
  height: 40px;
  cursor: pointer;
}

a.btn {
  text-decoration: none;
  display: inline-block;
}

button:hover, a.btn:hover {
  border-color: #312783;
  background-color: #312783;
}

button.inverted {
  color: #5178CD;
  border-color: #5178CD;
  background-color: white;
}

button.inverted:hover {
  color: #312783;
  border-color: #312783;
  background-color: white;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wrap {
  display: flex;
}

.eagle {
  margin: 32px 32px 32px 0;
}

.eagle path {
  fill: #5178CD;
}

.login-form, .box {
  padding: 64px;
  max-width: 668px;
  margin: 0 auto;
  margin-top: 118px;
  background: #F8F9FA;
  border: 1px solid #DEE2E6;
  border-radius: 4px;
}

.login-form h1 {
  margin: 0 0 59px 0;
  font-size: 28px;
  text-align: center;
}

.login-form label {
  display: block;
  font-size: 14px;
  margin-top: 24px;
  margin-bottom: 4px;
}

.login-form button {
  display: block;
  margin: 48px auto 0 auto;
}

.login-form .message {
  margin: 24px 0 0 0;
}

.login-form input {
  display: block;
  width: 100%;
}

.tab-content-header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 17px 14px;
  background-color: #F8F9FA;
  border-radius: 4px;
}

.grey-bar {
  margin: 32px 0;
  padding: 14px 16px;
  background-color: #F8F9FA;
}

.search-bar {
  margin: 32px 0;
}

.nav-bar-container {
  flex: 1;
  justify-content: end;
  display: flex;
}

.profile-icon {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  margin-right: .5rem;
}

#qrc-form {
  display: flex;
  max-width: 892px;
  margin: 64px auto 0 auto;
  justify-content: space-between;
  padding: 64px;
  border: 1px solid #DEE2E6;
  border-radius: 4px;
  background-color: #F8F9FA;
}

#qrc-form input[type=radio] {
  display: none;
}

#qrc-form input[type=radio] + label {
  display: inline-block;
  padding: 10px 16px;
  color: #5178CD;
  background: white;
  font-size: 16px;
  border: 1px solid #CED4DA;
  margin-right: -1px;
  cursor: pointer;
}

#qrc-form input[type=radio]:checked + label {
  color: white;
  background: #5178CD;
}

#qrc-form section > * {
  display: block;
}

.rounded-start {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.rounded-end {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.mt0 {
  margin-top: 0;
}

.text-center {
  text-align: center;
}

input[type=checkbox] {
  display: none !important;
}

input[type=checkbox] + label {
  position: relative !important;
  display: inline-block;
  width: 59px;
  height: 39px;
  background-color: #E2E6EA;
  border-radius: 4px;
  box-shadow: inset 0px 4px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color .2s linear;
}

input[type=checkbox] + label::before {
  content: ' ';
  position: absolute;
  top: 1px;
  left: 1px;
  background-color: white;
  width: 22px;
  height: 37px;
  border-radius: 4px;
  transition: transform .2s ease;
}

input[type=checkbox]:checked + label {
  background-color: #5178CD;
}

input[type=checkbox]:checked + label::before {
  transform: translateX(35px);
}
