﻿/* COLOURS
-------------------------------------------------- */
:root {
  --primary: #e64114;
  --primaryShadow: rgba(230, 65, 20, 0.5);
  --secondary: #eb5a32;
  --secondaryShadow: rgba(230, 90, 50, 0.5);
  --backgroundPrimary: #141923;
  --backgroundSecondary: #2d3746;
  --backgroundTertiary: #747c93;
  --fontColor: white;
  --success: #2b8843;
  --warning: #e29a16;
  --danger: #ae2d1d;
}

html[data-theme=light] {
  --primary: #e64114;
  --primaryShadow: rgba(230, 65, 20, 0.5);
  --secondary: #eb5a32;
  --secondaryShadow: rgba(192, 87, 58, 0.5);
  --backgroundPrimary: #c7cbd8;
  --backgroundSecondary: #e5e7ed;
  --backgroundTertiary: #f4f5f7;
  --fontColor: black;
}

/* CORE
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: "Exo", sans-serif;
  background-color: var(--backgroundSecondary);
  color: var(--fontColor);
}

a {
  color: var(--fontColor);
}
a:hover {
  color: var(--primary);
}

h1 {
  font-size: 3rem;
}
@media (min-width: 1200px) {
  h1 {
    font-size: 3rem;
  }
}

/* BUTTONS
-------------------------------------------------- */
.btn {
  color: var(--fontColor);
}
.btn.btn-success {
  background-color: var(--success);
  border-color: var(--success);
}
.btn.btn-warning {
  background-color: var(--warning);
  border-color: var(--warning);
}
.btn.btn-danger {
  background-color: var(--danger);
  border-color: var(--danger);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--fontColor);
}
.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem var(--primaryShadow);
}
.btn-primary.disabled, .btn-primary:disabled, .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--fontColor);
}

.btn-check:active + .btn-outline-primary, .btn-check:checked + .btn-outline-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--fontColor);
}
.btn-check:focus {
  box-shadow: 0 0 0 0.25rem var(--primaryShadow);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary .active,
.btn-outline-primary .dropdown-toggle.show, .btn-outline-primary:hover, .btn-outline-primary:active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--fontColor);
}
.btn-outline-primary:focus {
  box-shadow: 0 0 0 0.25rem var(--primaryShadow);
}

/* CHECKBOX
-------------------------------------------------- */
.resolved-checkbox {
  transform: scale(1.2);
}

/* Sticky footer styles
-------------------------------------------------- */
.border-top {
  border-top: 1px solid var(--backgroundPrimary);
}

.border-bottom {
  border-bottom: 1px solid var(--backgroundPrimary);
}

.border-left-primary {
  border-left: 0.25rem solid var(--primary) !important;
}

.box-shadow {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Navigation Bar
-------------------------------------------------- */
.navbar {
  background-color: var(--backgroundPrimary);
  border-bottom: var(--backgroundPrimary);
}
.navbar .navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

.navbar-toggler:focus:not(:focus-visible) {
  color: var(--primary);
}
.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28230, 65, 20' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  color: rgba(230, 65, 20, 0.55);
  border-color: rgba(230, 65, 20, 0.1);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: var(--fontColor);
  background-color: var(--primary);
}

.nav-link {
  color: var(--fontColor);
}
.nav-link:focus, .nav-link:hover {
  color: var(--secondary);
}

/* FOOTER
-------------------------------------------------- */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
  background-color: var(--backgroundPrimary);
  border-top: var(--backgroundPrimary);
}

/* BACKGROUNDS
-------------------------------------------------- */
.bg-rockface {
  background-size: cover;
  background-position: center center;
  background-image: url("../res/img/backgrounds/rockface.jpg");
}

.bg-ocmine {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("../res/img/backgrounds/HCIWindowsSignInKennecott.png");
}

.bg-midBlue {
  background-color: var(--backgroundSecondary);
}

.bg-background-primary {
  background-color: var(--backgroundPrimary);
}

.text-primary {
  color: var(--primary) !important;
}

/* CARD
-------------------------------------------------- */
.card a {
  text-decoration: none;
}
.card .card-content {
  color: black;
}

/* BADGE
-------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.5em 0.85em;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.475rem;
}

.badge-status-in-progress {
  background-color: #ffd639;
}

.badge-status-complete {
  background-color: #38b000;
}

.badge-status-on-hold {
  background-color: #D90429;
}

.badge-unscheduled {
  background-color: #F8EED3;
}

.badge-pending-visit {
  background-color: #F2999D;
}

.badge-in-progress {
  background-color: #FCCF8B;
}

.badge-ready-for-peer-review {
  background-color: #FBE68B;
}

.badge-submitted-for-peer-review {
  background-color: #D0F77A;
}

.badge-under-peer-review {
  background-color: #8BE09F;
}

.badge-failed-peer-review {
  background-color: #81DFF9;
}

.badge-ready-for-site-review {
  background-color: #7CC4F2;
}

.badge-submitted-for-site-review {
  background-color: #FFB8E4;
}

.badge-under-site-review {
  background-color: #F0979D;
}

.badge-failed-site-review {
  background-color: #A899FF;
}

.badge-ready-for-director-review {
  background-color: #85B4FF;
}

.badge-submitted-for-director-review {
  background-color: #FFFFFC;
}

.badge-under-director-review {
  background-color: #81DFF9;
}

.badge-failed-director-review {
  background-color: #55D6C2;
}

.badge-approved {
  background-color: #F2F5FF;
}

.badge-exported {
  background-color: #F9DC5C;
}

.badge-danger {
  background-color: var(--danger);
}

.badge-warning {
  background-color: var(--warning);
}

/* ACCORDION
-------------------------------------------------- */
.accordion-button {
  color: var(--primary);
  background-color: white;
}
.accordion-button:focus {
  z-index: 3;
  border-color: var(--primaryShadow);
  outline: 0;
  box-shadow: var(--primaryShadow);
}
.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: rgb(255, 242, 231);
}
.accordion-button ::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='var(--primaryShadow)'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='var(--primaryShadow)'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}

/* FORMS
-------------------------------------------------- */
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem var(--secondaryShadow);
}

.field-validation-error {
  color: var(--danger);
}

@media (max-width: 768px) {
  .companies-form .search-input,
  .users-form .search-input {
    margin-bottom: 5px;
  }
}
.companies-form .add-company-container,
.users-form .add-company-container {
  display: flex;
  justify-content: flex-end;
}

#recommendation-type option[value="1"] {
  background-color: yellow;
}

#recommendation-type option[value="2"] {
  background-color: var(--warning);
}

#recommendation-type option[value="3"] {
  background-color: var(--danger);
}

/* TABLES
-------------------------------------------------- */
.responsive-table {
  padding: 0px;
}
.responsive-table li {
  border-radius: 3px;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.responsive-table .table-header {
  background-color: var(--backgroundPrimary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
@media (max-width: 1400px) {
  .responsive-table .table-header div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.responsive-table .table-header.section {
  background-color: var(--backgroundSecondary);
  padding: 0;
  margin-top: 15px;
  margin-bottom: 0;
}
.responsive-table .table-row {
  background-color: var(--backgroundTertiary);
  box-shadow: 0px 0px 9px 0px rgba(0, 0, 0, 0.1);
}
.responsive-table .table-actions {
  display: flex;
  justify-content: flex-end;
}
@media all and (max-width: 768px) {
  .responsive-table .table-header {
    display: none;
  }
  .responsive-table li {
    display: block;
  }
  .responsive-table .col {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
  }
  .responsive-table .col:before {
    color: var(--fontColor);
    padding-right: 10px;
    content: attr(data-label);
    font-weight: bold;
    text-align: right;
  }
  .responsive-table .table-actions {
    justify-content: center;
  }
  .responsive-table .table-actions:before {
    content: none;
  }
}

/* LOGIN PAGE
-------------------------------------------------- */
.login,
.image {
  min-height: 100vh;
}

/* COUNTER
-------------------------------------------------- */
.counter {
  background-color: var(--backgroundPrimary);
  padding: 20px 0;
  border-radius: 5px;
}

.count-title {
  font-size: 40px;
  font-weight: normal;
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
  color: var(--fontColor);
}

.count-text {
  font-size: 22px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
  color: var(--primary);
}

.count-icon {
  margin: 0 auto;
  float: none;
  display: table;
  color: var(--primary);
  font-size: 2em;
}

.icon-success {
  font-size: 2em;
  color: var(--success);
}

.icon-danger {
  font-size: 2em;
  color: var(--danger);
}

.section-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.section-accordion .accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 20px;
  color: var(--fontColor);
  text-align: left;
  background-color: var(--backgroundSecondary);
  border: 0;
  border-radius: 0;
}
.section-accordion .accordion-button:not(.collapsed) {
  /*color: yellow;*/
  /*background-color: pink;*/
  box-shadow: inset 0 0 0 var(--backgroundSecondary);
}
.section-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(90deg);
}
.section-accordion .accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  /*background-image: escape-svg($accordion-button-icon);*/
  /*background-repeat: no-repeat;*/
  background-size: 1.25rem;
}
.section-accordion .accordion-button:hover {
  z-index: 2;
}
.section-accordion .accordion-button:focus {
  z-index: 3;
  border-color: brown;
  outline: 0;
  /*box-shadow: ;*/
}
.section-accordion .accordion-header {
  margin-bottom: 0;
}
.section-accordion .accordion-item {
  background-color: var(--backgroundSecondary);
  border: none;
  border-bottom: 1px solid var(--fontColor);
}
.section-accordion .accordion-item:first-of-type {
  border-top-radius: 0;
}
.section-accordion .accordion-item:first-of-type .accordion-button {
  border-top-radius: 1px;
}
.section-accordion .accordion-item:not(:first-of-type) {
  border-top: 0;
}
.section-accordion .accordion-body {
  padding: 0 1.25rem;
}
.section-accordion .accordion-flush .accordion-collapse {
  border-width: 0;
}
.section-accordion .accordion-flush .accordion-item {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}
.section-accordion .accordion-flush .accordion-item:first-child {
  border-top: 0;
}
.section-accordion .accordion-flush .accordion-item:last-child {
  border-bottom: 0;
}
.section-accordion .accordion-flush .accordion-item .accordion-button {
  border-radius: 0;
}

.accordion-icon {
  transition: transform 0.1s linear;
}
[aria-expanded=true] .accordion-icon {
  transform: rotate(90deg);
}

/* VIEW Components
-------------------------------------------------- */
.component {
  overflow-x: hidden;
  overflow-y: scroll;
}

/*Video Components Styling*/
.videoRowsContent {
  max-height: 600px !important;
  position: relative;
  overflow: auto;
}

.videoTitles {
  padding: 5%;
  position: relative;
}

@media only screen and (min-width: 768px) {
  iframe {
    height: 13em;
  }
}
.videoHolder {
  position: relative;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
}

.videocard-body {
  flex: 1 1 auto;
  padding: 0.5rem 1rem;
  position: relative;
  max-height: 3rem;
  max-width: 100%;
  line-height: 1.5rem;
  overflow: hidden;
}

.videocard-title {
  margin-bottom: 0.5rem;
  color: white;
  font-size: 15px;
  font-weight: 500;
  font-family: Graphik;
}

.validation-summary-valid {
  display: none;
}

.field-validation-valid {
  display: none;
}

/*.validation-summary-errors ul li:nth-child(n+1) {
    display: none;
}*/
input#Data_TSFReviewEnabled {
  margin-left: 0;
  margin-right: 0.5em;
}

.modal-dialog {
  color: black;
}

.management-page .form-group {
  margin-bottom: 16px;
}
.management-page .form-group textarea {
  min-height: 100px;
}
.management-page .validation-message {
  color: var(--danger);
}

.risk-report-index-top-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 30px;
}

.auth-Status {
  padding-left: 10px;
}

.mfa-container {
  display: flex;
  flex-direction: column;
}
.mfa-container .mfa-blur-toggle {
  order: 3;
  display: block;
}
.mfa-container .mfa-blur-toggle input[type=checkbox] {
  display: none;
}
.mfa-container .mfa-blur-toggle input[type=checkbox] ~ label {
  width: 150px;
  height: 30px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  gap: 12px;
}
.mfa-container .mfa-blur-toggle input[type=checkbox] ~ label::before {
  content: "Show QR Code";
}
.mfa-container .mfa-blur-toggle input[type=checkbox] ~ label::after {
  content: "\f06e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.mfa-container .mfa-blur-toggle input[type=checkbox]:checked ~ label::before {
  content: "Hide QR Code";
}
.mfa-container .mfa-blur-toggle input[type=checkbox]:checked ~ label::after {
  content: "\f070";
}
.mfa-container:has(input[type=checkbox]:checked) .mfa-blur {
  filter: none;
}
.mfa-container .mfa-blur {
  filter: blur(3px);
}

.mfa-label {
  color: #000000;
}
