/* Copyright 2019, Quantib B.V. */
@import 'colors.css';

body {
  color: var(--foreground-color);
  background-color: var(--background-color);
}

.small-window-size {
  display: none;
  margin-top: 5rem;
}

/* Worklist */

/* Force worklist to have a maximum width. */
@media only screen and (min-width: 1600px) {
  .container {
    max-width: 1500px;
  }
}

@media screen and (max-width: 1000px), (max-height: 500px) {
  #worklist-navbar, #worklist-main {
    display: none;
  }

  /* Convert page-wrapper to regular block element and show small window size message. */
  .page-wrapper, .small-window-size {
    display: block;
  }
}

.no-link-text {
  text-decoration: none !important;
}

.no-link-text:hover {
  color: #fff !important;
}

.bg-info:hover {
  filter: brightness(75%);
}

.worklist-table {
  --bs-table-accent-bg: none !important;
}

.header-row > td,th {
  border-bottom-color: inherit !important;
}

.logo {
  width: 30px;
  height: 30px;
}

.logo-title {
  margin-top: 2px;
  font-size: 1.35rem;
  font-family: Segoe UI, Arial;
  font-weight: 100;
}

.header-text {
  color: white !important;
}

.quantib-container {
  padding-bottom: 3em;
}

@media (min-width: 1200px) {
  .quantib-container {
    max-width: 1650px;
  }
}

.title {
  font-weight: 300;
}

.research {
  color: var(--foreground-color);
}

.pseudonymized-badge {
  border: 3px solid #444;
  cursor: default;
  font-weight: bold;
}

table {
  background-color: var(--background-color);
}

.about h2 {
  font-size: 20px;
}

.buttonWorklist {
  background-color: var(--button-color);
  border: 0.2rem solid var(--button-color);
  border-top-color: #1982dd;
  border-bottom-color: #0068c3;
  color: var(--foreground-color);
}

#header-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#header-right-column {
  text-align: right;
  line-height: 1rem;
}

.footer {
  margin-top: 2rem;
  min-height: 50px;
}

.worklist-action {
  display: inline-block;
}

.worklist-action a,
.worklist-action button {
  font-size: 1.1rem;
  padding: 0.1rem;
  cursor: pointer;
  font-style: normal;
  color: var(--link-color);
  text-decoration: none;
}

.worklist-action a:not([href]),
.worklist-action button:not([href]) {
  color: var(--link-color);
}

.worklist-action a:hover,
.worklist-action button:hover:not(:disabled) {
  color: var(--foreground-color);
}

.worklist-action a:focus,
.worklist-action button:focus {
  outline: none !important;
  box-shadow: none;
}

/*Font Awesome Icons*/
@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-display: auto;
  src: url("../images/fa-solid-900.woff2") format("woff2"),
  url("../images/fa-solid-900.svg#fontawesome") format("svg");
}

.fas {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-size: 0.95em;
}

.fa-key:before {
    content: "\f084"
}

.fa-eye:before {
  content: "\f06e"
}

.fa-chevron-left:before {
  content: "\f053";
}

.fa-chevron-right:before {
  content: "\f054";
}

.fa-info-circle:before {
  content: "\f05a"
}

.fa-refresh:before {
  content: "\f021"
}

.fa-trash:before {
  content: "\f1f8";
}

.fa-redo:before {
  content: "\f01e";
}

.fa-clipboard:before {
  content: "\f328";
}

.fa-user:before {
  content: "\f007";
}

.fa-logout:before {
  content: "\f2f5";
}

.fa-gear:before {
  content: "\f013";
}

.fa-keyboard:before {
  content: "\f11c";
}

.no-pointer-events {
  pointer-events: none;
}

.badge {
  width: 4.8rem;
  text-align: center;
}

.extra-wide-worklist-column {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 9rem !important;
}

.wide-worklist-column {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 7.7rem !important;
}

.small-medium-worklist-column {
  width: 5rem !important;
}

.medium-worklist-column {
  width: 6rem !important;
}

.small-worklist-column {
  width: 4rem !important;
}

.status {
  font-size: 0.75rem;
  font-weight: normal;
}

.failed-status {
  cursor: help;
}

.workflow-row td,
.workflow-row th,
td.workflow-row,
th.workflow-row {
  padding: 0.55rem;
  vertical-align: middle;
}

.text-underline-hover {
  text-decoration: none;
}

.text-underline-hover:hover {
  text-decoration: underline;
}

.table-fix {
  table-layout: fixed;
}

/* Filter classes */
.clear-filters td,
td.clear-filters {
  text-align: right;
  border-top: none;
  padding-right: 0rem;
  height: 53px;
}

.filter-row input,
input.filter-row {
  color: whitesmoke;
  background-color: initial;
  box-sizing: border-box;
  width: 100%;
  height: 1.5rem;
  border: 1px solid transparent;
  border-radius: 5px;
  text-overflow: ellipsis;
}

.filter-row #patientSexCheckboxFilter,
#patientSexCheckboxFilter .filter-row {
  width: 3.4rem;
}

.filter-active {
  border: 1px solid lightgray !important;
  border-radius: 5px !important;
  text-overflow: ellipsis;
}

.filter-popover {
  display: None;
}

.filter-popover-content li,
li .filter-popover-content {
  list-style-type: none !important;
}

.filter-popover-content label,
label .filter-popover-content {
  margin-bottom: 0;
}

#inputBirthDate:focus::-webkit-input-placeholder,
#inputStudyDate:focus::-webkit-input-placeholder,
#inputImportedOn:focus::-webkit-input-placeholder {
  font-size: 0.8em;
}

input:placeholder-shown::-webkit-search-cancel-button {
  display: none;
}

.workflow-loading {
  height: 35em;
}

.workflow-loading > div {
  position: relative;
  top: 50%;
  left: 50%;
  color: var(--progress-color);
}

.workflow-loading-label {
  position: relative;
  left: -0.75em;
}

/*Pop up classes*/
.popup-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, .7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 1000;
}

.popup-overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  min-width: 400px;
  background: var(--panel-color);
  border: var(--gray) solid 1px;
  color: var(--foreground-color);
  width: max-content;
  position: relative;
  text-align: left;
  max-width: 90%;
}

.popup-without-border {
  min-width: 400px;
  color: var(--foreground-color);
  width: max-content;
  position: relative;
  text-align: left;
  max-width: 90%;
}

.popup-body-secondary {
  color: var(--gray);
  margin-bottom: 16px;
}

.popup table {
  background-color: var(--panel-color);
}

.popup tr.selected {
  font-weight: bolder;
}

.popup td {
  padding-top: 0.3rem;
}

/* Select the second cell on each row and make sure the string always break to a new line. */
.popup td + td {
  word-break: break-all;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 10px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: var(--button-color);
}

.close:hover {
  color: var(--foreground-color);
}

#storage-usage-indicator {
  width: 11em;
}

#storage-usage-indicator > .progress {
  height: 20px;
  font-size: 0.9em;
}

#storage-usage-indicator .progress-bar {
  background: var(--progress-color);
}

.storage-usage-indicator-tooltip {
  background-color: black;
}

.storage-usage-indicator-tooltip>.popover-arrow:after {
  border-top-color: black;
}

.dropdown-sub {
  top: -9px;
  right: auto;
  left: 100%;
  max-height: 338px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.user-guide-dropdown {
  z-index: 1100; /* Should be larger number than the z-index of sidebar. See #sidebar. */
}

.dropdown-item.dropdown-toggle:hover + .dropdown-sub {
  display: block;
  margin-top: 0;
}

.dropdown-sub:hover {
  display: block;
  margin-top: 0;
}

/* Utility classes */
.order-100 {
  order: 100;
}

.order-200 {
  order: 200;
}

.order-300 {
  order: 300;
}

.order-400 {
  order: 400;
}

.order-500 {
  order: 500;
}

/* 2FA classes */

.form-length {
  width: 200px!important;
}

.backup-code {
  text-align: center;
  margin: 8px 0;
  border: solid 1px #444;
  border-radius: 5px;
  width: 120px;
}

.backup-codes-container {
  padding: 30px 100px;
  list-style-type: none !important;
}

.button-link-to-backup {
  padding: 0 4px;
  margin-top: 0;
  vertical-align: initial;
  color: #00bc8c;
  text-decoration: underline;
}

.copy-all-button {
  margin: auto;
}