* {
  font-family: 'Open Sans', sans-serif;
}

body {
  background: #f3f5f8;
}

.termsModal {
  position: absolute;
  width: 100%;
  z-index: 100;
  display: flex;
}

.termsModal p, .termsModal ol {
  font-size: 11px;
  color: #313237;
}
.termsModal b {
  font-weight: bold;
  font-size: 12px;
  color: black;
}

header {
  background: #1fa0f1;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 137px;
  width: 100%;
}

a {
  text-decoration: none;
  color: #1fa0f1;
  cursor: pointer;
}

.appLogo {
  margin-right: 13px;
}

.title {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  text-align: left;
  height: 82px;
  z-index: 1;
}

.title h1 {
  font-size: 18px;
  font-weight: bold;
  text-align: left; 
}

.navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 554px;
  height: 55px;
}

.navigation div{
  align-items: center;
  border-bottom: 4px solid #1fa0f1;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  justify-content: center;
  height: 51px;
  flex: 1;
  width: 150px;
  z-index: 1;
}

.navigation div.principles{
  width: 254px;
}

.navigation .activeNav {
  color: white;
  border-bottom: 4px solid #ffee0e;
}

.butterfly2 {
  position: absolute;
  width: 185.1px;
  height: 137px;
  overflow: hidden;
  margin-left: 290px;
}

.butterfly2 img{
  margin-top: -30px;
}

section {
  align-items: center;
  background: #f3f5f8;
  display: none;
  padding-bottom: 48px;
  flex-direction: column;
}

section.active {
  display: flex;

}

.content, .modalContent {
  align-items: center;
  background: white;
  border-radius: 2px;
  display: flex;
  padding: 24px 0 48px;
  margin-top: 42px;
  justify-content: center;
  max-width: 890px;
  width: 100%;
}

.instructions .content, .principles .content {
  background: none;
  margin-top: 0;
}

.principles {
  height: 100vh;
}

.content h2, .modalContent h2 {
  color: #313237;
  margin: 24px 0;
  font-size: 24px;
  font-weight: bold;
  text-align: left;
}

.contentWrapper, .modalContentWrapper {
  display: flex;
  flex-direction: column;
  width: 500px;
}

.selectWrapper {
  border-radius: 4px;
  border: solid 3px #1fa0f1;
  background-color: #f6f8fb;
  display: flex;
  align-items: center;
  height: 64px;
  padding-left: 16px;
}

.logo {
  width: 160px;
  height: 67px;
  object-fit: contain;
}

select {
  -webkit-appearance: button;
  -moz-appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: #313237;
  overflow: hidden;
  padding: 5px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

select:disabled {
  color: #e0e0e0;
}

.doseInput {
  display: none;
  padding-left: 10px;
}

.activeDoseInput {
  display: block;
}

.arrowsImg, .doseInputTag {
  position: relative;
  right: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  color: #313237;
}

.doseInputTag {
  opacity: 0.3;
  width: 48px;
}

.rowWrapper {
  display: flex;
  margin-top: 12px;
  width: 100%;
}

.adminWrapper {
  width: 65%;
}

.doseWrapper {
  margin-left: 12px;
}

.dose {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

.dose .doseInput {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  margin-right: 15px;
  width: 161px;
}

.newAdminWrapper {
  margin-top: 12px;
}

.toleranceRow {
  display: flex;
  height: 64px;
  width: 100%;
}

.tolerancePickWrapper {
  width: 75%;
}

.toleranceValWrapper {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 12px;
  width: 100%;
  /*width: calc(40% - 12px);*/
}

select.toleranceVal {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.toleranceInstructions {
  display: flex;
  font-size: 11px;
  font-weight: normal;
  color: #313237;
  border-radius: 4px;
  background-color: #f7f9fb;
  border: solid 1px #e9eef4;
  padding: 12px;
  margin-bottom: 12px; 
}

.infoIcon {
  width: 16px;
  height: 16px;
  padding-right: 10px;
  margin-top: 2px;
}

.toleranceInstructions p {
  margin: 0;
}

.calculate, .redo, .acceptTerms, .closeExample {
  border-radius: 4px;
  border: none;
  background-color: #7bd973;
  cursor: pointer;
  height: 64px;
  margin-top: 28px;
  width: 100%;
}

.calculate:hover {
  background-color: #84e37c;
}

.calculate-disabled, .calculate-disabled:hover {
  background-color: #dadada;
}

.calculate:active {
  background-color: #68c060;
}

.calculate span, .redo span, .acceptTerms span, .openPoll span, .closeExample span {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: #ffffff;
}

.openPoll {
  border-radius: 4px;
  border: none;
  background-color: #1fa0f1;
  cursor: pointer;
  height: 64px;
  margin-top: 32px;
  max-width: 500px;
  width: calc(100% - 46px);
}

.sendFeedbackLink {
  width: 100%;
  max-width: 500px;
  margin-top: 32px;
}

.sendFeedback {
  border-radius: 4px;
  border: none;
  background-color: #ebeef3;
  cursor: pointer;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: center;
}

.sendFeedback span {
  font-size: 18px;
  font-weight: bold;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  color: #313237;
}

.sendFeedback img {
  width: 24px;
  margin-right: 10px;
}

.result {
  flex-direction: column;
  margin-top: 42px;
  align-items: center;
  max-width: 890px;
  width: 100%;
  display: none;
}

.resultWrapper {
  background: white;
  border-radius: 2px;
  display: flex;
  padding: 24px 0 48px;
  justify-content: center;
  width: 100%;
}

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

.result h2 {
  color: #313237;
  margin: 24px 0;
  font-size: 24px;
  font-weight: bold;
  text-align: left;
}

.resultWrapperSecondary {
  margin: 24px 0;
}

.resultInstructions {
  margin-bottom: 0;
}

.resultInfo {
  padding: 12px;
  border-radius: 4px;
  margin: 24px 0;
  background-color: #f7f9fb;
  border: solid 1px #e9eef4; 
}

.resultInfo.topResultInfo {
  border: solid 3px #1fa0f1;
}

.resultInfo .resultOldMed {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.resultInfo p {
  font-size: 14px;
  text-align: left;
  color: #313237;
  margin: 0 0 4px 0;
}

.resultInfo .resultBold {
  margin-right: 5px;
  font-weight: 600;
}

.resultInfo .terms {
  font-size: 11px;
  text-align: left;
  color: #313237;
}

.resultBlock {
  height: 56px;
  border-radius: 4px;
  background-color: #1fa0f1;
  padding: 24px;
}

.resultBlock {
  border: 3px solid #106BA4;
}

.resultText {
  display: block;
  height: 33px;
  font-size: 24px;
  font-weight: bold;
  text-align: left;
  margin: 0;
  color: #ffffff;
}

.resultSubtext {
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: 19px;
  margin-top: 4px;
  text-align: left;
  color: #ffffff;
}

.resultWarningBlock, .selectWarningBlock, .resultWarningBlockTransdermal, .resultWarningBlockTrim, .resultWarningBlockFentanil, .resultWarningBlockGeneral{
  display: none;
  border-radius: 4px;
  background-color: #fff5e4;
  border: solid 1px #ffdb9e;
  align-items: center;
  padding: 12px;
  margin-top: 12px;
}

.resultWarning, .selectWarning {
  font-size: 11px;
  font-weight: normal;
  color: #ff4104;
}

.recommendations {
  margin-top: 24px;
  text-align: justify;
}

.highlightText {
  color: #e61f1f;
}

.workPrinciples {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: #1fa0f1;
}

.workPrinciples p {
  margin-bottom: 0;
}

.workPrinciples p.workPrinciplesFirst {
  margin-bottom: 20px;
}

.instructionBlock {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background: white;
  width: 454px;
  height: 52px;
  padding: 22px 24px 24px 22px;
  margin-bottom: 8px;
}

.instructionBlock span {
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: #313237;
  min-height: 51px;
}

.instructionBlock a, .instructionBlock .formExampleLink {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  margin-top: auto;
  color: #1fa0f1;
}

.exampleImg {
  width: 100%;
}

.termsSection p, .termsSection ol {
  font-size: 11px;
  color: #313237;
}
.termsSection b {
  font-weight: bold;
  font-size: 12px;
  color: black;
}

.openRotation {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  margin: 24px 0;
}

.openCredits {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  margin: 24px 0;
  color: #757575;
  width: 100%;
  max-width: 500px;
  width: 100%;
}

.rotationSection .rotationDetails {
  font-size: 11px;
  font-weight: normal;
  color: #313237;
  margin: 24px 0;
}

.rotationSection table {
  border-spacing: 0;
  border-collapse: collapse;
}

.rotationSection b {
  font-size: 14px;
}

.rotationSection td {
  border: 1px solid black;
  padding: 0 4px;
}

.rotationSection p {
  font-size: 10px;
}

.rotationSection h2 {
  margin: 0;
}

.referenceListContainer {
  font-size: 11px;
  margin-bottom: 18px;
}

@media (max-width: 450px) { 
  .butterfly2 {
    display: none;
  }

  .navigation {
    width: 100%;
  }

  .navigation div {
    font-size: 13px;
  }

  .contentWrapper, .modalContentWrapper {
    width: 320px;
  }

  .content, .modalContent {
    margin-top: 0;
  }

  .instructionBlock {
    width: auto;
  }

  .resultWrapperSecondary {
    width: 272px;
    margin: 24px 0;
  }

  .rowWrapper {
    flex-direction: column;
  }

  .adminWrapper {
    width: auto;
  }

  .doseWrapper {
    width: auto;
    margin-left: 0;
    margin-top: 12px;
  }

  .sendFeedbackLink {
    width: calc(100% - 46px);
  }

  .openCredits {
    width: calc(100% - 46px);
  }

  .dose .doseInput {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    width: 100%;
    margin-right: 15px;
  }

  .instructionBlock span {
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    color: #313237;
  }
}

.IESupport {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  background: #f3f5f8;
  z-index: 1000;
}

.IESupportWrapper {
  width: 500px;
  padding: 44px 10%;
  border-radius: 2px;
  background-color: #ffffff;
  margin: auto;
  margin-top: 10%;
}

.IESupportWrapper img {
  width: 38px;
  height: 38px;
}

.IESupportWrapper p {
  font-size: 11px;
  margin-top: 24px;
}

.IESupportWrapper h2 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.IE-app-wrapper {
  width: 500px;
  margin: auto;
  margin-top: 30px;
}

.IE-app-wrapper span {
  font-size: 11px;
  margin-top: 24px;
}

.IE-app-links {
  border-radius: 2px;
  padding: 10px 10px 6px 10px;
  width: 425px;
  margin-left: -10px;
  margin-top: 10px;
  background: #ffffff;
}

.IE-app-links img{
  width: 210px;
}

@media screen and (-webkit-min-device-pixel-ratio:0) { 
  select,
  textarea,
  input {
    font-size: 16px !important;
  }
}

@media print {
  header {
    display: none;
  }

  .resultWrapperSecondary {
    display: none;
  }
}