/* Variables */
:root {
  --border-color: #dddddd;
  --bg-color: #fafafa;
  /* --accent-color: #5f788a; */
  --accent-color: #1774FD;
}
/* END variables */

body {
  background: var(--bg-color);
  color: #333333;
  font-family: 'Lato';
}

.btn-outline-sl {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline-sl:hover {
  color: white;
  border-color: var(--accent-color);
  background-color: var(--accent-color);
}

ul {
  margin: 0;
}

.opacity-90 {
  opacity: 0.9;
}

.bg-ka {
  background: var(--accent-color)!important;
}

.card-header.bg-ka {
  color: white;
  font-size: 1.5rem;
  padding-top: 3px;
  padding-bottom: 3px;
}

.site-header .navbar-nav .nav-link {
  color: #cbd5db;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffffff;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 500;
}

.nav-title {
  position: absolute;
  width: calc(100% - 32px);
  /* padding-right: 1rem; */
  margin-left: -1rem;
  margin-bottom: 0;
  text-align: center;
  z-index: 0;
}

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-brand, .navbar-collapse {
  z-index: 1;
}

.nav-title h2 {
  margin: 0;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: bold;
  letter-spacing: 0.3rem;
}

.content-section {
  background: #ffffff;
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  margin-bottom: 20px;
}

.breadcrumb {
  margin-top: 0.5rem;
  padding: 0.3rem 1rem;
}

.account-img {
  height: 125px;
  width: 125px;
  margin-right: 20px;
  margin-bottom: 16px;
}

.account-heading {
  font-size: 2.5rem;
}

.box {
  margin-top: 100%;
}

.tile {
  width: 100%;
	display: inline-block;
	box-sizing: border-box;
	background: var(--accent-color);
	padding: 20px;
	margin-bottom: 10px;
  border-radius: 3px;
}

.title {
  color: #fff;
}

/* HOME */
.height-50 {
  height: calc((100vh - 56px) / 2.1);
}

.logo {
  width: 100%;
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo span{
  font-size: 2rem;
  margin-top: auto;
  margin-bottom: auto;
  color: #dddddd;
  font-weight: bold;
}

.logo img {
  width: 95%;
}


/* PROFILE */
.profile-table{
  table-layout: fixed;
  /* width: 100%; */
}
.profile-table td:first-child{
  width: 30%;
  font-weight: bold;
}

.pin-wrapper {
  display: flex;
  width: 350px;
  justify-content: space-between;
}

.pin-block {
  background-color: #f2f2f2;
  height: 100px;
  width: 75px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  position: relative;
}

.pin-value {
  margin: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  
  font-size: 3em;
}

/* consults */
.edit-icon {
  float: right;
  display: inline-block;
  margin-right: 1rem;
  color: #ffffff;
}

.subject-text {
  border: 1px solid var(--border-color);
  height: 200px;
  margin-bottom: 1rem;
  overflow: auto;
}

.personal-details td:first-child {
  font-weight: bold
}

.personal-details tr {
  line-height: 31px;
}

.add-button{
  display: inline;
  float: right;
  vertical-align: middle;
  border-radius: 20px;
  margin-right: 1rem;
}

.measurement-item-container {
  width: 100%;
}

.measurement-item-body {
  float: left;
  border: 1px solid var(--border-color);
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  flex-grow: 1;
  padding-left: 15px;
}

.measurement-type-item {
  text-align: center;
  line-height: 40px;
  float: left;
  height: 100%;
  width: 120px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  background-color: #9C9B99;
  color: #ffffff;
  box-shadow: inset 0 0 1px #ffffff;
}

.measurement-item-list p {
  display: inline;
  margin-left: 1rem;
  line-height: 40px;
}

.measurement-control {
  float: right;
  line-height: 40px;
  margin-right: 1rem;
  padding: 0;
  gap: 10px;
  justify-content: flex-end;
}

.measurement-item-control {
  list-style-type: none;
  display: inline;
}

.measurement-item-control:not(:first-child):before {
    content: " | ";
}


/* General container styles */
.measurement-item-list {
  display: flex;
  flex-direction: column;
}

.measurement-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 5px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
}

#measurementTable th:first-child,
#measurementTable td:first-child {
    width: 25%; /* Adjust percentage as needed */
}

/* Responsive layout */
@media (max-width: 768px) {
  .measurement-item {
      flex-direction: column;
      text-align: center;
  }

  .measurement-type-item,
  .measurement-item-body,
  .measurement-control {
      width: 100%;
      margin-bottom: 10px;
  }

  /* Divider */
  .measurement-item-body::after {
      content: "";
      display: block;
      width: 80%;
      height: 1px;
      background-color: #ccc;
      margin: 10px auto;
  }
  
  .measurement-control {
      justify-content: center;
  }
}








.analysis-error::before{
  content: '!';
  display: inline-block;
  font-weight: bold;
  text-align: center;
  width: 1.3rem;
  height: 1.3rem;
  font-size: 1.12rem;
  line-height: 0.9rem;
  border-radius: 50%;
  margin-right: 4px;
  padding: 1px;
  color: white;
  background: red;
  border: 1px solid red;
  text-decoration: none;
}

/* OVERVIEW */

.overview-title {
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.3rem;
  text-align: center;
}

#unitTab {
  text-transform: uppercase;
  font-weight: bold;
  border: none;
  font-size: 1.3rem;
  letter-spacing: 0.3rem;
}

#unitTab .nav-link {
  background-color: #f2f2f2;
  border: 1px solid var(--border-color);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  color: #74777b;
  padding: .2rem 1rem;
}

#unitTab .nav-link.active {
  background-color: var(--bg-color);
  border-top-color: var(--accent-color);
  border-bottom: none;
  box-shadow: inset 0 3px var(--accent-color);
  color: var(--accent-color);
  /* border: 0px solid var(--border-color); */
  /* border-top: 1px solid var(--accent-color); */
}

.overview-col {
  border: 1px solid var(--border-color);
  width: 100%;
}

.col-title {
  padding-top: 0.1rem;
  width: 100%;
  height: 100%;
  text-align: center;
  background: var(--accent-color);
}

.col-title h2, .col-title-home h2{
  text-transform: uppercase;
  /* font-weight: bold; */
  letter-spacing: 0.2rem;
  color: #fff;
  margin-bottom: 0.1rem;
}

.col-title h3, .col-title-home h3{
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.2rem;
  color: #fff;
  margin-bottom: 0.1rem;
}

.col-title span{
  display: block;
  font-size: 0.8rem;
}

.sub-col {
  text-align: center;
  margin: 0.5rem;
  border: 1px solid var(--border-color);
  background: #ffffff;
  overflow:auto;
}

.sub-col-title {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 0.1rem;
  background: var(--accent-color);
  color: #fff;
}

.sub-col-body {
  overflow:auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.sub-col-body > div {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
 }

.donut-container {
  max-width: 200px;
}

.donut-title {
  margin-bottom: -1rem;
}

.item-title {
  text-transform: uppercase;
  font-weight: bold;
}

.item-value {
  font-weight: bold;
  font-size: 1.6rem;
}

.item-value span {
  display: block;
  font-weight: 500;
  margin-top: -0.8rem;
  font-size: 1rem;
}

.analysis-col {
  height: calc(100vh - 56px - 38px - 48px - 130px - 30px);
  height: 100%;
}

.stance-col {
  display: inline-block
}

.value-container .innerFlex {
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.value-container .innerFlex .firstItem {
  width: 100%;
  order: 1
}
.value-container .innerFlex .secondItem {
  width: 100%;
  /* align-self: flex-end; */
  box-sizing: border-box;
  display: block;
  order: 2
}

.value-num {
  margin-top: -0.1rem;
}

.graph-container {
  margin: 0.5rem;
  height: 500px;
  border: 1px solid var(--border-color);
  background: #fff;
}
.col-body {
  width: 100%;
}
.col-body .table td, .col-body .table th {
  padding: 0;
  text-align: center;
}

.th-left {
  text-align: left;
}

.col-body .table {
  width: 70%;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 0;
}

.col-body .table thead{
  text-transform: uppercase;
}

.dataline.right, .legend-line.right{
  stroke: #1f77b4!important;
}
.dataline.left, .legend-line.left {
  stroke: #ff7f0e!important;
}

.background.right {
  background-color: #1f77b4
}

.background.left {
  background-color: #ff7f0e
}

.bar.right {
  fill: #1f77b4
}

.bar.left {
  fill: #ff7f0e
}

.stat.number {
  font-weight: bold;
  font-size: 3rem;
  line-height: 3;
}

.asym-cell {
  padding: 10px;
  text-align: center;
}


.deactivated{
  stroke: #dddddd!important;
}

.vline {
  stroke: blue;
}

.to-key {
  stroke: #9BC53D!important;
}

.landing-key {
  stroke: #c3423f!important;
}

.overlay {
  fill: none;
  pointer-events: all;
}

/* survey */
.title-left {
  width: 30%;
}

.content-left {
  width: 10%;
}

/* Multiselect for graphs */
.multiselect {
  width: 200px;
}

.selectBox {
  position: relative;
}

.selectBox select {
  width: 100%;
  font-weight: bold;
}

.overSelect {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

#checkboxes {
  display: none;
  border: 1px #dadada solid;
  position: absolute;
  z-index: 10000;
  background-color: #ffffff;
}

#checkboxes label {
  display: block;
}

#checkboxes label:hover {
  background-color: #1e90ff;
}

/* modal */
.modal-body ul{
  list-style-type: none;
}

.modal-body p {
  display: block;
  line-height: 1rem;
}

.modal-dialog {
  height: 90%; /* = 90% of the .modal-backdrop block = %90 of the screen */
}
.modal-content {
  position: relative;
  overflow-y: auto;
  min-height: 300px;
  padding: 15px;
}