@import './variables/_index.css';
@import './audit-scorecard.css';
@import './audit-reports.css';
@import './condition-editor.css';
@import './plotly-overrides.css';
@import './submission-revision-compare.css';
@import './revision-note.css';
@import './audit-compare.css';
@import './home-dashboard.css';
@import './scrollspeed.css';
@import './keycap/keycap.css';
@import './tooltip.css';
@import './notifications.css';
@import './button-with-hover-action.css';
@import './timeline.css';
@import './submission-review.css';
@import './horizontal-nav.css';
@import './next-steps-button.css';
@import './gap.css';

.card-content, .message-body { padding: 1rem; }
.modal-card-foot, .modal-card-head { padding: 1rem; }

.card.login-form { max-width: 320px; margin: auto; }
.login-info { width: 300px; margin-left: auto; margin-right: auto; }
.card.profile-form { max-width: 860px; min-width: 600px; align-self: center }
.login-button { border: none; background: inherit; color: #3273dc; font-size: 1em; padding: 1em; }
.file-name { max-width: 20em; }

.icon.is-circle {
  border-radius: 50%;
  flex-shrink: 0;
}
.icon.is-large {
  flex-shrink: 0;
}

@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }

.card.signup-form { max-width: 420px; margin: auto; }

.modal-card.modal-graph { min-height: 640px; min-width: 780px; margin: auto; }

.relcol-90 { width: 90%; }
.relcol-80 { width: 80%; }
.relcol-70 { width: 70%; }
.relcol-60 { width: 60%; }
.relcol-50 { width: 50%; }
.relcol-40 { width: 40%; }
.relcol-30 { width: 30%; }
.relcol-25 { width: 25%; }
.relcol-20 { width: 20%; }
.relcol-15 { width: 15%; }
.relcol-10 { width: 10%; }
.relcol-5 { width: 5%; }

.pointer { cursor:pointer; }
.keep-whitespace { white-space: pre-wrap; }

.summary-dashboard-graph-column { overflow-x: auto; }

.summary-dashboard-graph-column::-webkit-scrollbar {
  height: 5px;
}

.summary-dashboard-graph-column::-webkit-scrollbar-track {
  background:#f1f1f1;
}

.summary-dashboard-graph-column::-webkit-scrollbar-thumb {
  background: #bfbfbf;
  border-radius: 5px;
}

.summary-dashboard-graph-column .scorecard-element-graph {
  min-height: 455px;
  min-width: 900px !important;
}

.question-graph { min-height: 650px; }

html {
  overflow: unset;
}

html, body {
  min-height: 100vh;
  margin: 0px;
  padding: 0px;
}

:root {
  --nav-transition-time: 1s;
}

.xchange-container {
  --nav-width: 215px;

  display: grid;
  grid-template-areas:
    "nav-bar flash-messages"
    "nav-bar app-content";
  grid-template-columns: var(--nav-width) 1fr;
  grid-template-rows: auto 1fr;

  transition: grid-template-columns var(--nav-transition-time);

  height: 100vh;
}

.xchange-container.nav-is-collapsed {
  --nav-width: 100px;
}

/* Nav Bar */
/* ======= */
.app-nav-bar {
  grid-area: nav-bar;
  background-color: #363636;
}

.left-nav {
  width: var(--nav-width);
  transition: width var(--nav-transition-time);
  height: 100vh;
  overflow-y: auto;
}
.left-nav, .xchange-nav-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.left-nav.collapsed .nav-col li a {
  justify-content: center;
}
.left-nav.collapsed .nav-col .text {
  display: none;
}
.left-nav.collapsed .nav-profile-name {
  visibility: hidden;
  height: 0px!important;
}

.navbar-username .text, .app-nav-bar .user-info-profile::first-letter {
  text-transform: capitalize;
}

.app-nav-bar .user-info {
  position: absolute;
  transform: translate(0, -100%);
  z-index: 99999999;
}

.app-nav-bar .user-info > .card {
  margin: 8px;
}

.app-nav-bar .user-info .card-footer-item {
  padding: 10px;
  border-radius: 0 0 3px 3px;
}

/* */

.xchange-nav-header { flex: 1; }
.xchange-nav-header, .xchange-nav-footer { width: 100%; }

.nav-col {
  margin: 5px 0;
  align-self: stretch;
  transition: margin-left var(--nav-transition-time);
}
.nav-col li a {
  display: flex;
  padding: 0.25em 5px;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  color: #3e8ed0;
}
.nav-col li a:hover {
  background-color: #777;
  color: white;
}
.nav-col li.active a:not(:hover) {
  background-color: #575757;
  color: #eee;
}
.nav-col .icon { width: 26px; vertical-align: bottom; }
.nav-col .text { margin-left: 5px; }
.left-nav-animated .nav-col .text {
  animation: fadein var(--nav-transition-time) linear 0.2s 1 normal both;
}

.nav-profile-name { max-width: 200px; }

.nav-logo { width: 90px; height: 43px; }

.push-back {
  padding-left:  0px!important;
  padding-right:  0px!important;
}
/* ======= */

/* Flash Messages */
.flash-messages {
  grid-area: flash-messages;
}
/* ======= */


/* App Content */
.app-content {
  grid-area: app-content;

  height: 100vh;
  overflow: auto;
  flex-grow: 1;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
}
.app-content:has(.fixed-height) {
  scrollbar-gutter: auto;
}
#app-content-overlay-portal-output {
  grid-area: app-content;
}
#app-content-overlay-portal-output:empty {
  pointer-events: none;
}

.content-container {
  padding: 1rem;
  margin: 0 auto;
  min-width: min-content;

  /* Snap to the largest width that is less than 100% */
  /* Formula: max(width * is_less_than_100_percent(width), ...) */
  width: calc(max(
    200 * max(min(100% - 200px, 1px), 0px),
    500 * max(min(100% - 500px, 1px), 0px),
    700 * max(min(100% - 700px, 1px), 0px),
    900 * max(min(100% - 900px, 1px), 0px),
    1100 * max(min(100% - 1100px, 1px), 0px),
    1300 * max(min(100% - 1300px, 1px), 0px),
    1500 * max(min(100% - 1500px, 1px), 0px),
    1680 * max(min(100% - 1680px, 1px), 0px)
  ));

  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}
.content-container.constrain-height {
  height: 100vh;
}


/*BULMA Extensions*/
.is-disabled {
  cursor: not-allowed;
}

/* Correct a z-index change made by the Tagsinput extension by restoring the
 * original value used by Bulma
 */
.dropdown-menu.fix-dropdown-z-index {
  z-index: 20 !important;
}

.columns.is-gapless.full-height { min-height: 100vh; margin: 0; }
.columns.full-height { margin-bottom: 0px!important; }
.column.full-height { margin-bottom: 0px!important; }

.columns.panel-heading.audit-scorecard-details {
  margin: 0px;
}

.industry-code-tag .tag {
  display: block;
  max-width: 20rem;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 12px;
}

.columns.is-widescreen {
  display: block;
}

@media screen and (min-width: 1216px) {
  .columns.is-widescreen {
    display: flex;
  }
}

.columns.touch-bottom { margin-bottom: 0px!important; }

.score-column {
  display: flex;
  flex-direction: column;
}

.score-column-stars {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fade-in { animation: fadein 1s linear 0.5s 1 normal both; }

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.can-turn { transition: transform 1s;}
.turn-right { transform: rotateY(180deg); }

.navdiv.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.table-wrapper {
  overflow: auto;
}

.table-wrapper > .loading-icon {
  width: 100%;
  height: 100px;
  margin: 2rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table.has-links { height: 1px; }
.table.has-links td { height: 100%; padding: 0; }

.table-pagination {
  position: sticky;
  bottom: 0;
  left: 0;
  background: white;
  border-top: 1px solid #dbdbdb;
  margin-top: -1px;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
}

.table-header.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  width: 100%;
}

.table-list-text {
  vertical-align: middle!important;
}

.table-row-link {
  display: block;
  width: 100%; height: 100%;
  padding: .25em .5em;
  color: black;
}

.table-link, .table-link .table-row-link {
  text-decoration: underline;
  color: #485fc7;
}

th.spacer-column, td.spacer-column {
  border-top: 0;
  border-bottom: 0;
}

table.vertical-align-middle th, table.vertical-align-middle td {
  vertical-align: middle;
}

.filter-manager {
  display: flex;
  vertical-align: middle!important;
}

.filter-component {
  margin-left: 10px;
  margin-right: 10px;
}

.filter-container {
  margin-top: 10px;
  margin-bottom: 10px;
}


.audit-dashboard-graph { min-height: 500; }

.font-size-12 {
  font-size: 12px;
}

.icon-padding-10 {
  padding: 10px;
}

.bottom-sticky {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  background: white;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.audit-dashboard-table-width-limit-short {
  overflow-x: auto;
  max-width: calc(100vw - 325px);
}

.audit-dashboard-table-width-limit-normal {
  overflow-x: auto;
  max-width: calc(100vw - 200px);
}

.audit-dashboard-industry-dropdown select {
  width: 600px;
}

.table-add-filter-controls { width: 50%; max-width: calc(100vw - 325px); min-width: 600px; margin-bottom: 8px; }
.table-add-filter-controls field, .table-add-filter-controls .select, .table-add-filter-controls select { width: 100%; }

.edit-user-form {
  margin:  20px;
}

.recommended-text {
  display: inline-block;
  height: 100%;
  vertical-align: sub;
}

.edit-user-label {
  min-width: 120px;
}

.add-auditor {
  display: flex;
  justify-content: end;
  margin-bottom: 15px;
  align-items: center;
}
.add-auditor a{
  margin-left: 6px;
}
@media screen and (max-width: 768px) {
  .add-auditor {
    display: block;
  }
}
.add-bold-text {
  font-weight: 700;
  margin-right: 6px;
}

@keyframes animate-user {
  0% { background-color: #485fc7; }
  20%{ background-color: #FEF9EF; color: #485fc7; }
  100% { background-color: #485fc7; }
}
.add-user {
  background-color: #485fc7;
  border-radius: 4px !important;
}
.only-user {
  animation: animate-user 0.6s linear 0.5s 3 normal both;
  color: #FEF9EF;
}

.table {
  width: 100%;
}

.table-row {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
}

.table-row .material-icons { margin-right: 4px; }

.table-nowrap {
  white-space: nowrap;
}

.table td.icon-cell {
  vertical-align: middle;
}

.table td.icon-cell .icon-container {
  display: flex;
  font-size: 0.5em;
}

.icon-underlined {
  text-decoration: underline;
}

.ie-warning { max-width: 500px; margin: auto; }

.merge-company-dropdown { max-width: 400px!important; margin: auto; }

/*** Material Icons ***/
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(/webfonts/material-icons.woff2) format('woff2');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
}

.material-icons-space {
  width: 24px;
  height: 24px;
}

.tabs .tab-title { padding-left: 0.5rem; }

.search-bar {
  width: 500px;
}

.fullwidth-table {
  width: 100%;
}

.confirm-dialog .modal-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
}

.confirm-dialog .modal-card.modal-graph {
  max-height: fit-content;
  min-height: fit-content;
}

.confirm-dialog-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
}

.confirm-dialog-body, .confirm-dialog-body > .content, .confirm-dialog-body > .content > div {
  height: 100%;
}

.confirm-dialog-body .content {
  padding: .75em 1em;
}

.confirm-dialog-body .audit-feedback {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: fit-content;
}

.confirm-dialog-body .audit-feedback .textarea {
  min-height: 5em;
}

.display-only-field { padding: 8px 0; }

.clearSupportButton { height: 40px; }



.app-container {
  width: 100%;
}

.attachment-drag-target {
  text-align: center; margin-top: 18px; padding: 16px 0;
  border: 3px dashed #aaa; border-radius: 12px; background-color: #f8faff;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3); transition: all 0.5s;
}
.attachment-drag-target.drag-hover { border-color: #229; background-color: #c8caef; transition: all 0s; }
.attachment-drag-target input { display: none; }
.attachment-drag-target label { vertical-align: baseline; margin-left: 4px; font-weight: bold; color: #36f; cursor: pointer; }
.attachment-drag-target label:hover { text-decoration: underline; }
.attachment-error { background-color: #fbb; }
.attachment-error-message { display: flex; flex-grow: 1; align-items: center; flex-wrap: wrap; }
.attachment-error-message div, .attachment-error-message strong { display: block; flex-grow: 1 }
.attachment-container > a { display: flex; align-items: center }
.attachment-container > a:hover { background-color: #f2f2fd }
.attachment-file { display: flex; flex-grow: 1; border-radius: 4px; align-items: center; }
.attachment-file > span { padding: 2px; flex-shrink: 0; margin-right: 0.5rem; }
.attachment-file:hover { background-color: #f2f2fd }
.attachment-file a { flex-grow: 1; padding: 2px; color: #000; word-break: break-all }
.attachment-file button { margin-right: 4px; }
.attachment-progress-bar { width: 100%; height: 4px; border-radius: 4px; background-color: #ddd;  }
.attachment-progress { height: 4px; border-radius: 4px; background-color: #36f; transition: width 0.2s;  }
.admin-companies-container, .admin-companies-page table {
  width: 100%;
}

#company-list {
  height: 100%;
}
.admin-companies-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 1200px;
}

.admin-companies-page .filter-article {
  margin: 24px 0
}

.admin-companies-filter-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, auto));
  grid-gap: 16px;
}

#audit-list, .admin-audits-page {
  height: 100%;
}
.admin-audits-page {
  display: flex;
  flex-direction: column;
  min-width: 1200px;
}

.admin-table-container {
  display: grid;
  grid-gap: 0.5rem;
  grid-template-columns: 3fr 2fr;
  min-height: 300px;
}

.admin-table-selection {
  padding: 0.5rem;
  overflow-y: auto;
}

.admin-companies-page .admin-table-selection {
  max-width: 650px;
  min-width: 300px;
}

.admin-audits-page .admin-table-selection {
  max-width: 650px;
  min-width: 300px;
}

.admin-companies-selection {
  margin-top: 60px;
}

.admin-companies-form {
  display: grid;
  grid-template-areas: "name-label           name               "
                       "account-number-label account-number-list"
                       ".................... account-number-add "
                       "industry-code-label  industry-code-list "
                       ".................... industry-code-add  "
                       "wcb-accounts-label   wcb-accounts-list  "
                       ".................... wcb-accounts-add   "
                       "save-result          ..................."
                       "show-deprecated      save-button        ";

  grid-template-columns: max-content 1fr;
  grid-gap: 24px;
  align-items: baseline;
}

.admin-companies-form select {
  width: 100%;
}


.admin-companies-selection-company-name-label {
  grid-area: name-label;
}

.admin-companies-selection-company-name {
  grid-area: name;
}

.admin-companies-selection-account-number-label {
  grid-area: account-number-label;
}

.admin-edit-selection-wcb-accounts-label {
  grid-area: wcb-accounts-label;
}

.admin-companies-selection-account-number-list {
  grid-area: account-number-list;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  grid-gap: 1.25rem;
}

.admin-edit-selection-wcb-accounts-list {
  grid-area: wcb-accounts-list;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  grid-gap: 1.25rem;
}

.admin-edit-selection-wcb-accounts-list .list-item {
  background-color: #fff;
  border-radius: 6px;
  border: #ddd solid 1px;
  color: #4a4a4a;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

.admin-edit-selection-wcb-accounts-list .list-item span {
  margin-right: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-edit-selection-wcb-accounts-list .list-item.is-danger {
  border: dashed red 1px;
}

.admin-companies-selection-industry-code-label {
  grid-area: industry-code-label;
}

.admin-companies-selection-industry-code-list {
  grid-area: industry-code-list;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  grid-gap: 1.25rem;
}

.admin-edit-selection-wcb-accounts-list .add-field {
  display: grid;
  grid-template-columns: minmax(100px, auto) min-content;
  grid-gap: 0.25rem;
}

.admin-companies-selection-save-result {
  grid-area: save-result;
}

.admin-companies-form .add-account-field {
  display: grid;
  grid-template-columns: max-content minmax(100px, auto) min-content;
  grid-gap: 0.25rem;
}

.admin-companies-selection-add-industry-code {
  grid-area: industry-code-add;
}

.admin-companies-selection-add-account-number {
  grid-area: account-number-add;
}

.admin-edit-selection-add-wcb-account {
  grid-area: wcb-accounts-add;
}

.admin-companies-selection-save-button {
  justify-self: flex-end;
  grid-area: save-button;
}

.admin-companies-selection-show-deprecated-button {
  grid-area: show-deprecated;
}

.admin-audits-container, .admin-audits-page table {
  width: 100%;
}

.admin-audits-page .filter-article {
  margin: 24px 0
}

.admin-audits-filter-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, auto));
  grid-gap: 16px;
}

.admin-audits-container {
  display: grid;
  grid-gap: 24px;
  grid-template-columns: 1fr 600px;
}

.admin-audits-selection {
  margin-top: 60px;
}

.admin-audits-form {
  display: grid;
  grid-template-areas: "wcb-accounts-label   wcb-accounts-label "
                       "wcb-accounts-list    wcb-accounts-list  "
                       "save-result          save-result        "
                       "delete-button        save-button        ";

  grid-template-columns: max-content 1fr;
  grid-gap: 24px;
  align-items: baseline;
}

.admin-audits-form .list-item {
  border-radius: 6px;
  border: #ccc solid 1px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

.admin-audits-form .title {
  margin: 0;
}

.admin-audits-form .add-button {
  margin-right: 0.25rem;
}

.admin-audits-form .list-item span {
  margin-right: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-audits-form .list-item.is-danger {
  border: dashed red 1px;
}

.admin-audits-selection-wcb-account-label {
  grid-area: wcb-accounts-label;
}

.admin-audits-selection-add-wcb-account {
  display: grid;
  grid-template-columns: max-content auto min-content;
}

.admin-audits-selection-add-industry-code {
  display: grid;
  grid-column: 1/-1;
  grid-template-columns: max-content auto min-content;
}

.admin-audits-selection-wcb-account-list {
  grid-area: wcb-accounts-list;
  display: grid;
  grid-auto-rows: auto;
  grid-gap: 1rem;
}

.admin-audits-selection-wcb-account-list .message-body {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  grid-gap: 0.5rem;
}

.admin-audits-selection-wcb-account-list .message-header {
  margin-bottom: 0.5rem;
}

.admin-audits-form .add-field {
  display: grid;
  grid-template-columns: minmax(100px, auto) min-content;
  grid-gap: 0.5rem;
}

.add-account-field {
  display: grid;
  grid-template-columns: max-content minmax(100px, auto) min-content;
  grid-gap: 0.5rem;
}

.admin-audits-selection-save-result {
  grid-area: save-result;
}

.admin-audits-selection-save-button {
  grid-area: save-button;
  justify-self: flex-end;
}

.admin-audits-selection-delete-button {
  grid-area: delete-button;
}

.audit-submission-app .transition-buttons-container {
  position: sticky;
  width: 100%;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -1em 1em 0 rgba(10,10,10,.15);
}

.audit-submission-app .submission-revision-notes .notes-container {
  color: #4a4a4a;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 0.6rem;
  contain: layout;
}

.submission-comments ul{
  list-style: disc;
  list-style-position: inside;
}
.submission-comments h1 {
  color: #197c90;
  font-size: 1.5rem;
  font-weight: bold;
  white-space: pre-wrap;
}
.submission-comments h1::before {
  content: '■ ';
}
.submission-comments h2 {
  color: #197c90;
  font-size: 1.25rem;
  white-space: pre-wrap;
  font-weight: bold;
}
.submission-comments blockquote {
  border-left: 4px solid #ccc;
  margin-bottom: 5px;
  margin-top: 5px;
  padding-left: 16px;
  font-weight: 400;
}

.submission-label {
  min-width: 10rem;
  display: inline-block;
  font-weight: bold;
  margin-top: 0.5rem;
}

.submission-link {
  width: 100%;
  text-overflow: ellipsis;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
}

.submission-attachment-list {
  display: inline-block;
  vertical-align: text-top;
}

.overlapping-accounts-confirm-message {
  position: sticky;
  bottom: 0;
  margin: -1.5em;
}

.company-edit {
  display: grid;
  grid-gap: 1.25em;
  align-items: baseline;
  grid-template-columns: max-content auto;
  grid-template-areas: "company-name-label  company-name-input"
                       "wcb-accounts-label  wcb-accounts-list "
                       "................... wcb-accounts-list "
                       "................... wcb-accounts-add  "
                       "................... save-button  ";
}

.company-edit .company-name-label {
  grid-area: company-name-label;
}

.company-edit .company-name-input {
  grid-area: company-name-input;
}

.company-edit .company-edit-save {
  grid-area: save-button;
  justify-self: flex-start;
}

.submission-revision-note-block {
  flex-basis: 0;
}

.revision-title {
  padding: 32px 0 8px 0;
  background: linear-gradient(0deg, #fff 0%, #f0f2fb 90%, #c5c8d7 100%);
}

/*
 * Email Selector
 * ==============
 */
.email-selector ul {
  margin: 0 !important;
  list-style-type: none;
}

.email-selector input, .email-selector button {
  border-radius: 0;
}

.email-selector input:invalid {
  border-color: #f14668;
}

.email-selector .email-item:not(:first-child) {
  margin-top: -1px;
}
.email-selector .email-item:last-child {
  margin-bottom: -1px;
}
.email-selector input {
  z-index: 5;
  position: relative;
}
.email-selector input:focus, .email-selector .add-email-button:focus {
  z-index: 10;
}
.email-selector input:hover, .email-selector .add-email-button:hover {
  z-index: 7;
}
.email-selector .add-email-button {
  position: relative;
  margin-left: -1px;
}


.email-selector .email-item {
  display: grid;
  grid-template-columns: 1fr auto;
}

.email-selector .email-item > input {
  grid-column: 1 / 3;
  grid-row: 1;
}

.email-selector .email-item > button {
  z-index: 10;
  grid-column: 2 / 3;
  grid-row: 1;
  background: none;
  border: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.email-selector .email-item:hover > button {
  opacity: 1;
}

/* ProtocolSection */
.protocol-card-container {
  display: grid;
  gap: 0.5em;
  margin: 0 auto;
  max-width: 1080px;
}

.reviewer-page {
  max-width: 700px;
}

.admin-user-search-edit-container {
  min-width: 512px;
  margin-top: calc(2.5em + 1rem);
}

.merge-audit {
  display: grid;
  --audit-merge-spacing: 40px;
  --audit-merge-padding: 5px;
  --audit-merge-arrow-color: gray;
  grid-auto-flow: column;
  column-gap: var(--audit-merge-spacing);
  grid-template-rows: repeat(3, auto);
  grid-auto-columns: 1fr;
}
.merge-audit-company {
  display: contents;
}
.merge-audit-company:nth-child(1) > * {
  grid-column: 1;
}
.merge-audit-company:nth-child(2) > * {
  grid-column: 2;
}
.merge-audit-company > * {
  background: #EEE;
}
.merge-audit-company > .merge-audit-radius-top {
  border-top-right-radius: 0.4em;
  border-top-left-radius: 0.4em;
  overflow: hidden;
}
.merge-audit-company > .merge-audit-radius-bottom {
  border-bottom-right-radius: 0.4em;
  border-bottom-left-radius: 0.4em;
}

/* Common */
.merge-audit-subheading {
  background-color: #E1E1E1;
  padding: 0.2em 0.5em;
}
.merge-audit-field-error {
  --background-color: #ff4242;
  --arrow-height: 10px;
  grid-column: span 2;
  background: var(--background-color);
  border-radius: 0.3em;
  padding: 0.3em 0.5em;
  color: white;
  margin-top: var(--arrow-height);
  position: relative;
}
.merge-audit-field-error::before {
  border-bottom: var(--arrow-height) solid var(--background-color);
  border-left: var(--arrow-height) solid transparent;
  border-right: var(--arrow-height) solid transparent;
  top: calc(-1 * var(--arrow-height));
  content: '';
  position: absolute;
  left: calc(50% - var(--arrow-height));
}

/* Loading */
.merge-audit-company > * {
  transition: filter 0.2s;
}
.merge-audit-company.loading > :not(.merge-audit-loader) {
  filter: brightness(0.6);
  pointer-events: none;
}
.merge-audit-company > .merge-audit-loader {
  grid-row: 1 / 4;
}
.merge-audit-loader {
  display: grid;
  justify-items: center;
  align-items: center;
  background: none;
  filter: none;
  padding: var(--loader-padding);
  --loader-size: 70px;
  --border-size: 8px;
}
.merge-audit-loader::before, .merge-audit-loader::after {
  content: '';
  border-radius: 100%;
  grid-area: 1 / 1 / 2 / 2;
}
.merge-audit-loader::before {
  border: var(--border-size) solid var(--loader-outer-color, white);
  width: var(--loader-size);
  height: var(--loader-size);
  border-bottom-color: transparent;
  animation: merge-audit-loader 2s reverse infinite linear;
}
.merge-audit-loader::after {
  border: 6px solid var(--loader-inner-color, #ddd);
  width: calc(var(--loader-size) - 2 * var(--border-size));
  height: calc(var(--loader-size) - 2 * var(--border-size));
  border-top-color: transparent;
  animation: merge-audit-loader 1s infinite linear;
}
@keyframes merge-audit-loader {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* No Company Loading */
.merge-audit-no-company {
  transition: opacity 0.2s;
}
.merge-audit-no-company.loading {
  opacity: 0;
}

/* Top */
.merge-audit-company-top {
  align-self: end;
  grid-row: 1;
}
.merge-audit-company-top > h1 {
  padding: 0.3em 0.5em;
  font-size: 1.3em;
  font-weight: normal;
  margin: 0;
}
.merge-audit-company-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--audit-merge-padding);
}
.merge-audit-company-details > label {
  display: flex;
  align-items: center;
}
.merge-audit-company-details > input:invalid,
.merge-audit-company-details > input:hover:invalid {
  border-color: red;
}
.merge-audit-field-wrapper:not(:empty) {
  padding: var(--audit-merge-padding);
}
.merge-audit-wcb-account {
  display: grid;
  grid-template-columns: auto 1fr auto;
}
.merge-audit-wcb-account > input {
  grid-row: 1;
  grid-column: 2 / 4;
}
.merge-audit-wcb-account > button {
  grid-row: 1;
  grid-column: 3 / 4;
  padding: 0 0.7em;
  background: none;
  border: none;
  z-index: 10;
  cursor: pointer;
}

/* Middle */
.merge-audit-company-middle {
  padding: var(--audit-merge-padding);
  grid-row: 2;
}
.merge-audit-company-middle > * {
  height: 100%;
}
.merge-audit-audit, .merge-audit-audit-placeholder {
  border-radius: 0.3em;
}
.merge-audit-audit {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1ch;
  padding: var(--audit-merge-padding);
  background-color: white;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}
.merge-audit-audit > *:nth-child(2n) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.merge-audit-audit > *:nth-child(2n-1) {
  font-weight: 600;
  white-space: nowrap;
}
.merge-audit-audit-placeholder::before {
  content: '➤';
  color: var(--audit-merge-arrow-color);
  position: absolute;
  width: calc(
    50% +
    var(--audit-merge-spacing) +
    (2 * var(--audit-merge-padding))
  );
  margin-left: calc(
    -1 * var(--audit-merge-spacing) -
    (2 * var(--audit-merge-padding))
  );
  top: 50%;
  margin-top: -1.5px;
  height: 3px;
  line-height: 1.5px;
  text-align: right;
  background: repeating-linear-gradient(
    to right,
    var(--audit-merge-arrow-color),
    var(--audit-merge-arrow-color) 9px,
    transparent 9px,
    transparent 18px
  );
  background-size: calc(100% - 8px);
  background-repeat: no-repeat;
}
.merge-audit-audit-placeholder {
  border-bottom: 1px solid white;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
  background-color: rgba(0, 0, 0, 0.02);
  position: relative;
  min-height: 1em;
}

/* Bottom */
.merge-audit-company-bottom {
  align-self: start;
  grid-row: 3;
}
.merge-audit-additional-audits:not(:empty) {
  grid-gap: var(--audit-merge-padding);
  display: grid;
  padding-bottom: var(--audit-merge-padding);
  padding-left: var(--audit-merge-padding);
  padding-right: var(--audit-merge-padding);
}

/* No Company */
.merge-audit-no-company-container {
  grid-row: 1 / 4;
  display: grid;
  --loader-inner-color: #bfbfbf;
  --loader-outer-color: #777;
}
.merge-audit-no-company-container > * {
  grid-area: 1 / 1 / 2 / 2;
}
.merge-audit-no-company {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: gray;
}
.merge-audit-no-company > span.fas {
  font-size: 3em;
}
.merge-audit-no-company > h2 {
  margin: 0.7em 0 0 0 !important;
  font-size: 1.4em;
  font-weight: bold;
  color: inherit;
}
.merge-audit-no-company > span:last-child {
  margin-top: 0.5em;
}

/*
 * Switch Component
 * ================
 */
.switch {
  --switch-height: 1.5em;
  --switch-width: 5ch;
  --switch-radius: 0.3em;
  --switch-background-on: #48c78e;
  --switch-background-off: #7e7e7e;
  --switch-foreground: white;
  --toggle-height: calc(var(--switch-height) * 0.75);
  --toggle-off-margin: calc((var(--switch-height) - var(--toggle-height)) / 2);
  --toggle-on-margin: calc(
    var(--switch-width) - var(--toggle-width) - var(--toggle-off-margin)
  );
  --toggle-width: calc(var(--switch-width) * 0.4);
  display: flex;
  align-items: center;
}
.switch > input[type='checkbox'] {
  display: none;
}
.switch > label {
  display: grid;
  align-items: center;
  grid-auto-flow: column;
}
.switch > label::before, .switch > label::after {
  grid-area: 1 / 1 / 2 / 2;
  cursor: pointer;
}
.switch > label::before {
  content: '';
  display: block;
  width: var(--switch-width);
  height: var(--switch-height);
  border-radius: var(--switch-radius);
  background-color: var(--switch-background-off);
  transition: background-color 0.1s linear;
}
.switch > label::after {
  content: '';
  height: var(--toggle-height);
  width: var(--toggle-width);
  background-color: var(--switch-foreground);
  border-radius: var(--switch-radius);
  margin-left: var(--toggle-off-margin);
  transition: margin-left 0.1s linear;
}
.switch > input:checked ~ label::before {
  background-color: var(--switch-background-on);
}
.switch > input:checked ~ label::after {
  margin-left: var(--toggle-on-margin);
}
.switch > input[disabled] ~ label {
  filter: grayscale(100%);
}
.switch > input[disabled] ~ label::before,
.switch > input[disabled] ~ label::after {
  cursor: not-allowed;
}

/*
 * SearchSelect Component
 * ======================
 */
.search-select .expand-button {
  border: unset;
  background: unset;
  pointer-events: unset !important;
  box-shadow: unset !important;
}
.search-select .expand-button:hover {
  color: black !important;
}
.search-select .dropdown-menu {
  width: 100%;
}
.search-select .dropdown-content {
  max-height: 300px;
  overflow-y: auto;
}
.search-select .dropdown-item {
  overflow-x: hidden;
  text-overflow: ellipsis;
}
.search-select .dropdown-item.disabled:hover {
  background-color: unset;
}
.search-select .dropdown-item.disabled {
  cursor: not-allowed;
  color: #b3b3b3;
}

/*
 * UserEditor Component
 */
.user-editor.loading {
  position: relative;
}
.user-editor.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.40);
  border-radius: 0.25rem;
  z-index: 1000;
}
.user-editor.loading::after {
  position: absolute;
  content: '\f110';
  top: 50%;
  left: 50%;
  font-size: 4em;
  margin-top: -0.5em;
  margin-left: -0.5em;
  font-family: 'Font Awesome 6 Pro';
  font-weight: 900;
  animation: fa-spin 2s infinite linear;
  color: white;
  z-index: 1000;
}

/*
 * UserProfileEditor Component
 * ===========================
 */
.user-profile-editor {
  --expanded-border-color: rgba(10,10,10,.1);
  --border-color: transparent;
  transition: box-shadow 0.2s ease;
}
.user-profile-editor.profile-invalid {
  --border-color: #f14668;
  --expanded-border-color: #f14668;
}
.user-profile-editor:not(.editor-expanded) {
  border: 1px solid var(--border-color);
}
.user-profile-editor.editor-expanded {
  border: 1px solid var(--expanded-border-color);
}
.user-profile-editor.pulse {
  box-shadow: 0 0 5px #3e8ed0;
}
.user-profile-editor > header > .dropdown-container {
  display: flex;
  border-radius: inherit;
}
.user-profile-editor > header .dropdown,
.user-profile-editor > header .dropdown > .dropdown-trigger,
.user-profile-editor > header .dropdown > .dropdown-trigger > button {
  border-top-right-radius: unset;
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: unset;
}
.user-profile-editor > header .dropdown > .dropdown-trigger > button {
  height: 100%;
  min-width: 16ch;
  justify-content: space-between;
}
.user-profile-editor .card-header-title {
  user-select: none;
}
.user-profile-editor, .user-profile-editor > header {
  box-shadow: unset;
}
.user-profile-editor > header {
  background-color: #f5f5f5;
}
.user-profile-editor > header:hover {
  background-color: #eee;
}
.user-profile-editor .profile-header-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.user-profile-editor .profile-header-button:not(:last-of-type) {
  padding-right: 0.5rem;
}
.user-profile-editor .profile-header-button +.profile-header-button {
  padding-left: 0.5rem;
}
.user-profile-editor .profile-options {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-row-gap: 0.5em;
  align-items: center;
}

.tag.test-mode-chip {
  width: 100%;
  font-weight: bold;
  border-radius: 0;
}

/* Manage Global Protocol Groups */
.global-protocol-groups {
  columns: 35ch;
}
.global-protocol-group-editor {
  /*
   * This is the correct solution, but it causes elements to dissapear between
   * renders while filtering items in Firefox. This appears to be a Firefox bug.
   *
   * break-inside: avoid-column;
   */

  /* Alternative to break-inside as a workaround */
  display: inline-block;
  width: 100%;

  margin-bottom: 1em;
}
.global-protocol-group-editor .card-header {
  transition: background-color 0.5s;
}
.global-protocol-group-editor .validation-icon {
  pointer-events: unset !important;
  font-weight: normal;
}
.global-protocol-group-editor input[list]::-webkit-calendar-picker-indicator {
  visibility: hidden;
}
.global-protocol-group-editor .protocol-input:hover input:not([disabled]) +
  .remove-protocol-button
{
  color: black;
}
.global-protocol-group-editor input[disabled] + .remove-protocol-button {
  pointer-events: none !important;
  cursor: not-allowed !important;
}
.global-protocol-group-editor li:not(:first-of-type) .protocol-input input,
.global-protocol-group-editor .add-protocol-button {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.global-protocol-group-editor .protocol-input input {
  position: relative;
  margin-bottom: -1px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.global-protocol-group-editor .protocol-input input:hover,
.global-protocol-group-editor .protocol-input input.is-danger {
  z-index: 1;
}
.global-protocol-group-editor .protocol-input input:focus {
  z-index: 2;
}

.confirm-dialog .modal-card.modal-graph.state-transition-dialog {
  min-height: unset;
  /* Restore bulma default for this dialog */
  max-height:  calc(100vh - 40px);
}

.modal-card.state-transition-dialog {
  min-width: 1080px;
  margin: 1em auto auto auto;
}

.modal-card.state-transition-dialog .state-transition-dialog-content {
  height: unset;
}

.modal-card.state-transition-dialog .audit-data {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: fit-content;
  margin-right: 1em;
  padding-right: 1em;
  overflow-y: auto;
}

.email-preview-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 1em 0;
  overflow: hidden;
}

.email-preview-card-header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  padding: 0.75em 1em;
  font-size: 0.85em;
}

.email-preview-card-header > div + div {
  margin-top: 0.25em;
}

.email-preview-card-header strong {
  display: inline-block;
  width: 4.5em;
}

.email-preview-card-body {
  background-color: #fff;
  padding: 1em;
}

.email-preview-card-body .card {
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid #eee;
  margin-top: 1em;
}

.email-preview-card-body .card-header {
  box-shadow: none;
}

.confirm-state-transition-notes-toolbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: white;
  border-bottom: 1px solid #E4E4E4;
  padding-left: 1em;
  padding-right: 1em;
  margin-left: -1em;
  margin-right: -1em;
}

.confirm-state-transition-notes .notes-container {
  display: grid;
  gap: 0.6rem;
  contain: layout;
}

.submission-feedback-generator .switch-with-label {
  margin: 0.25em 0;
}

.submission-feedback-generator .switch-with-label .field-label {
  margin-left: 1em;
  margin-right: 0;
}

.submission-feedback-generator .switch-with-label .field-label a {
  padding-left: 0.25em
}

.addon-right-border {
  border-width: 1px 1px 1px 0;
  border-radius: 0 4px 4px 0;
}

.has-border-danger {
  border-color: hsl(348, 100%, 61%) !important;
}

.edit-request-modal .menu ul {
  list-style: none;
  margin-left: 0;
}

.request-modal-menu-list a {
  background: var(--Auditsoft-Blue, #53A2DA);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  color: white;
  border: none;
  outline: none;
  border-radius: 4px;
}

.request-modal-menu-list a:hover {
  background: var(--Background-Default-Default-Blue, #2983B0);
  color: white;
}

.request-modal-menu-list a.selected {
  background: var(--Auditsoft-Dark-Blue, #13384F);
}
.break-word {
  word-break: break-word;
}

/* CSS Helpers */
.is-position-sticky {
  position: sticky;
}
.is-position-relative {
  position: relative;
}
.is-position-absolute {
  position: absolute;
}
.is-overflow-auto {
  overflow: auto;
}

.is-display-grid {
  display: grid;
}

/* Tooltip for table headers */
.table-tooltip {
  display: inline-block;
  cursor: pointer;
  height: unset;
}

.table-tooltip-text {
  font-size: 14px;
  background-color: #363636;
  color: white;
  border-radius: 4px;
  padding: 6px 10px;
  transition: opacity 0.2s ease-in-out;
  display: inline-block;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  width: max-content;
  max-width: 65vw;
}
