:root {
    --main-height: calc(100% - 110px);
    --container-height: calc(100vh - 110px);
}

.report-visible {
    --container-height: calc(100vh - 55px);
}

.sidebar-container {
    --container-height: calc(100vh - 140px);
}

@font-face {
    font-family: 'SegoeUI-regular';
    src: url('SegoeUI-regular.woff') format('woff'),
        url('/SegoeUI-regular.eot') format('eot'),
        url('/SegoeUI-regular.svg') format('svg'),
        url('/SegoeUI-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SegoeUI-Semibold';
    src: url('/SegoeUI-Semibold.woff') format('woff'),
        url('/SegoeUI-Semibold.eot') format('eot'),
        url('/SegoeUI-Semibold.svg') format('svg'),
        url('/SegoeUI-Semibold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SegoeUI-bold';
    src: url('/SegoeUI-Bold.woff') format('woff'),
        url('/SegoeUI-Bold.eot') format('eot'),
        url('/SegoeUI-Bold.svg') format('svg'),
        url('/SegoeUI-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.page-title {
    font-family: 'SegoeUI-bold';
    font-size: 25px;
}

.nav-tab-container {
    background-color: #535353;
    border-radius: 6px;
}

.nav-link-btn {
    margin: 5px 0px 5px 5px;
    background-color: var(--primary-color) !important;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 11px;
    font-family: 'SegoeUI-Semibold';
}

.nav-link-btn.active {
    background-color: #fff !important;
    color: #3B3B3B !important;
}

.nav-link-btn-active-bordered {
    border: 1px solid var(--primary-color) !important;
}

.table-head {
    background-color: #AEA5AA;
}

.table-head th {
    border-bottom: none !important;
    font-family: 'SegoeUI-bold';
}

.table-head th:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.table-head th:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.table-custom-style td {
    vertical-align: middle;
    font-family: 'SegoeUI-Semibold';
}

.custom-checkbox {
    margin-top: 10px;
}

.custom-checkbox:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.table-custom-style td {
    border-bottom: 0px !important;
}

body {
    background-color: var(--portal-bg-color) !important;
    font-size: 1.4rem;
    word-break: break-word;
}

.nav-link-btn {
    text-decoration: none !important;
}

.breadcrumb-nav-links {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.breadcrumb-nav-links.active {
    color: #000 !important;
}

.breadcrumb-arrow::after {
    content: '>' !important;
    color: #000 !important;
    margin-top: 1px;
    display: inline-block;
    position: absolute;
    margin-left: 4px;
}

.details-link {
    color: #337ab7 !important;
    text-decoration: none !important;
}

.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover,
.pagination>.active>span,
.pagination>.active>span:focus,
.pagination>.active>span:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.pagination>li>a,
.pagination>li>span {
    width: 34px !important;
    height: 34px !important;
}

.pagination>li>a,
.pagination>li>span {
    color: #000 !important;
}

#breadcrumb-items li:not(:first-of-type) {
    margin-left: 18px;
}

.row {
    margin-right: 0px !important;
    margin-left: 0px !important;
}

.btn-add {
    float: right;
    color: var(--primary-color) !important;
    background-color: transparent !important;
    border: transparent;
    margin-top: 7px;
}

.btn:focus {
    outline: none !important;
}

.actions {
    border-top: none !important;
    margin: 20px 0 !important;
    padding: 19px 0 27px 0 !important;
}

.submit-btn {
    float: right !important;
    padding: 7px 26px !important;
    margin-right: 28px !important;
}

.flex {
    display: flex;
}

.mr-2 {
    margin-right: 0.625rem
}

.ml-2 {
    margin-left: 0.625rem
}

.grow {
    flex: 9999;
}

@media (max-width: 600px) {
    .navbar-brand {
        margin-right: 80px !important;
        /* This is to avoid overlapping the hamburguer icon */
    }
}

.wrapper-body {
    min-height: var(--main-height);
    margin-bottom: 0px;
}

.main-height {
    height: var(--main-height);
}

.m-h-auto {
    min-height: auto !important;
}

.pxl-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/parexel_big_logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.075;
    pointer-events: none;
}

.navbar-toggle {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    margin: 0 !important;
}

#welcomeMessage {
    flex: 1;
    overflow: auto;
    min-height: fit-content;
    margin: auto 0;
}

#welcomeMessage > div {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
}

@media (max-width: 900px) {
    #welcomeMessage h2 {
        font-size: 22px !important;
        margin-top: 0px !important;
    }

    #welcomeMessage .lead {
        font-size: 16px !important;
    }
}

.main-container {
    min-height: var(--container-height) !important;
}

#epta-breadcrumb.collapse {
    height: 0px !important;
    display: block !important;
}

#toggleSidebar.collapse {
    position: relative !important;
    z-index: 9999 !important;
    left: -5px !important;
}

#breadcrumb-container {
    white-space: nowrap;
}

#epta-breadcrumb.collapse #breadcrumb-container {
    display: none !important;
}

.loader {
    width: 1.4rem;
    height: 1.4rem;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

.separator {
    border-top: 1px solid #ccc;
    margin: 10px 0 0 0 !important;
}

.toggle {
  position: relative;
}
.toggle input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}
.toggle label {
  position: relative;
  display: flex;
  align-items: center;
}
.toggle label:before {
  content: '';
  width: 40px;
  height: 18px;
  background: #ccc;
  position: relative;
  display: inline-block;
  border-radius: 46px;
  transition: 0.2s ease-in;
}
.toggle label:after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  left: 0;
  top: -3px;
  z-index: 2;
  background: #fff;
  box-shadow: 0 0 5px #0002;
  transition: 0.2s ease-in;
}
.toggle input[type="checkbox"]:hover + label:after  {
    box-shadow: 0 2px 15px 0 #0002, 0 3px 8px 0 #0001;
}
.toggle input[type="checkbox"]:checked + label:before {
  background: #376fcb;
}
.toggle input[type="checkbox"]:checked + label:after {
  background: #4285F4;
  left: 15px;
}

#reset-filter-btn {
    /* position: absolute;
    right: 5px;
    margin-top: 5px; */
    padding: 5px 5px;
}

[data-title] {
    position: relative;
}

[data-title]:hover::after {
    opacity: 1;
    transition: opacity 0.1s ease 0.3s;
    visibility: visible;
}

[data-title]::after {
    content: attr(data-title);
    position: absolute;
    /* bottom: 25px;
    right: 10px; */
    transform: translateX(-50%) translateY(-6px);
    background-color: #333;
    color: #fff;
    font-size: 14px;
    font-family: Arial;
    padding: 6px 14px;
    white-space: normal;
    border: 1px solid #111;
    border-radius: 6px;
    box-shadow: 1px 1px 3px #222;
    opacity: 0;
    visibility: hidden;
    z-index: 99999;
    min-width: 300px !important;
    max-width: min(500px, 50vw) !important;
    display: flex !important;
}

.title-with-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.title-with-info span{
    cursor: help;
}

.font-150 {
    font-size: 150% !important;
}

.font-90 {
    font-size: 90% !important;
}

#studiesListView {
    height: calc(100vh - 130px) !important;
    overflow-y: auto !important;
}

#bulkSelectBtn {
    position: absolute;
    top: 70px;
    right: 50px;
}

.navbar.external-header {
    background-color: #ddd !important;
}

.jquery-bootstrap-pagination .pagination a {
    white-space: nowrap !important;
}

.no-results #reset-filter-btn, .error-thrown #reset-filter-btn, .too-many-results #reset-filter-btn {
    display: none !important;
}

/* EPTA.en-US*/
body {
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

#mainContent {
  flex: 1;
}

.side-container {
  width: 100%;
  min-width: 20rem;
  max-width: 20rem;
  padding-left: .4rem;
}

.powerbi {
  height: 100%;
}

#embedContainer {
  height: calc(100vh - 130px) !important;
  width: 100% !important;
  position: relative !important;
  /* display: none; */
  visibility: hidden;
  flex: 1; 
  overflow: hidden;
}

#embedContainer iframe {
  width: 100% !important;
  border: none;
}

.cat-image {
  width: 200px;
  height: 161px;
  margin-left: auto;
  margin-right: auto;
}

.filter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background-color: #EDEEEF;
}

.btn-default {
  color: var(--primary-color) !important;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
  font-size: 1.4rem;
  }

.btn-default:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  }

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  font-size: 1.4rem;
}

#studies-count-span {
  font-weight: 700;
  margin-left: .5rem;
}

/* Mobile-header */

.title {
    color: #666666;
    font-size: 2.2rem;
    font-weight: bold;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .customer-text {
    font-size: 1.8rem;
    color: black;
    margin-right: 0rem;
  }

  .label {
    background-color: var(--primary-color);
    font-size: 1.4rem;
    padding: .8rem;
    border-radius: 4px;
  }

  .label img {
    margin-bottom: .2rem;
  }

  .label label {
    font-weight: 400;
  }

  .environment-label {
    background-color: orange;
    color: black;
  }

  #page-title-short {
    display: none;
  }

  @media (max-width: 1075px) {
    #page-title {
      display: none;
    }

    #page-title-short {
      display: inline;
    }
  }

/* Link image */
.link-img {
    width: 22px;
    height: 22px;
}

.username-toggle {
    font-weight: bold;
}

/* EPTA Banner */
  #prcMsgDiv {
    overflow-y: auto;
    max-height: 35px;
  }

  .banner-message {
    padding-left: 0;
    padding-right: 0;
  }

  a,
  a:hover {
    color: inherit;
  }

/* EPTA Filter */
.filter-container {
    border-radius: 8px;
    padding: .8rem 0 0 0;
  }

  .filter-label {
    font-weight: 600;
    color: #333;
  }

  .filter-input {
    min-width: 0px;
    height: 33px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
  }

  .filter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
  }

  .hint {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
  }

/* EPTA Menu */
.active-bg {
  background-color: #E7F3FF !important;
}

.sidebar-container {
  display: flex;
  align-items: flex-start;
  max-height: var(--container-height) !important;
  overflow-y: auto;
  z-index: 9000;
  position: relative;
}

.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
  width: 100%;
  height: 100%;
  margin-bottom: 10px;
}

.sidebar ul {
  height: auto;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.sidebar ul li {
  line-height: 35px;
}

.sidebar ul li a {
  position: relative;
  color: var(--primary-color);
  background: white;
  text-decoration: none;
  font-size: 1.4rem;
  display: block;
  width: 100%;
  border-left: 3px solid transparent;
  padding-left: 4px;
  cursor: pointer;
  margin-left: 0;
  border-bottom: 1px solid #F4F4F4 !important;
  padding-right: 16px;
}

.btn-default {
  color: #27455C !important;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
  }

.menu-item-btn {
  font-family: 'SegoeUI-bold';
}

.fa-angle-down,
.fa-angle-up {
  font-size: 12px !important;
}

/* Second Level */
.sidebar ul ul li a {
  color: var(--primary-color);
  background-color: #F9F9F9;
  padding-left: 16px;
  padding-right: 16px;
  border-bottom: none !important;
  white-space: nowrap;
}

/* Third Level */
.sidebar ul ul ul li a {
  color: var(--primary-color);
  background-color: #F9F9F9;
  padding-left: 24px;
  padding-right: 16px;
  border-bottom: none !important;
  white-space: nowrap;
}

/* Fourth Level */
.sidebar ul ul ul ul li a {
  color: var(--primary-color);
  background-color: #F9F9F9;
  padding-left: 32px;
  padding-right: 16px;
  border-bottom: none !important;
  white-space: nowrap;
}

.sidebar ul li ul li a:hover {
  background-color: #E7F3FF;
}

.sidebar ul li a span {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 22px;
  transition: transform .5s;
}

.sidebar ul li a span.rotate {
  transform: translateY(-50%) rotate(-180deg);
}

.submenu a.active {
  border-color: #3491e3;
}

.sidebar ul li a.active {
  border-color: #3491e3;
  font-family: 'SegoeUI-bold';
}

.sidebar ul ul li a.active {
  font-family: 'SegoeUI-bold';
  border-color: #3491e3;
}

.sidebar ul ul ul li a.active {
  font-family: 'SegoeUI-bold';
  border-color: #3491e3;
}

#sidebarMenu a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* TBD sidebar menu */
@media (max-width: 500px) {
  #sidebarMenu {
    position: fixed;
    bottom: 0px;
    top: 50px;
    height: calc(100vh - 50px) !important;
    z-index: 1000;
    width: 100vw !important;
    background-color: white;
  }

  #toggleSidebar, #toggleSidebar.collapse {
    z-index: 9999 !important;
    left: 10px !important;
    top: 60px !important;
    position: absolute !important;
  }

  #toggleSidebar svg {
    transform: rotate(90deg);
    transform-origin: center; 
  }

  #filterSection {
    position: absolute;
    z-index: 9999999;
    max-width: 175px;
    left: 45px;
  }
}

/* Consolidated inline styles */

/* Visibility and Display */
.hidden {
    display: none;
}

.display-flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

.flex-column-full {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flex-scroll {
    flex: 1;
    overflow: auto;
}

/* Layout helpers */
.flex-grow-column {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.flex-grow-column-lg {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.section-flex {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
    margin: 0px;
}

.container-flex {
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
}

/* Text alignment and typography */
.text-center-theme {
    text-align: center;
}

.text-right {
    text-align: right;
}

.welcome-heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
}

/* Buttons and interactive elements */
.btn-close-no-border {
    border-style: none;
}

.signin-btn {
    padding: 12px 40px;
    font-size: 1.1rem;
    max-width: 250px;
}

/* Spacing and sizing */
.icon-margin-right {
    margin-right: 8px;
}

.table-head-checkbox {
    width: 50px;
}

.error-image {
    width: 200px;
    height: 161px;
    margin-left: auto;
    margin-right: auto;
}

/* Search input */
.search-input-group {
    display: table;
}

/* Z-index and positioning */
.z-index-1 {
    z-index: 1;
}

/* Error/Access Denied pages color combinations */
.error-heading {
    text-align: center;
    color: var(--portalThemeColor9);
}

.error-paragraph {
    text-align: center;
    color: var(--portalThemeColor8);
}

/* Tree/hierarchical nodes */
.tree-node {
    font-weight: bold;
    padding: 10px;
}

/* Responsive column sizing */
.col-full-flex {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 250px;
    padding: 16px;
}

.col-full-flex-lg {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    padding: 16px;
}

/* Embed containers */
.embed-report-host {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* No results/Message containers */
.message-flex-container {
    flex: 1;
    overflow: auto;
}

.manage-entity-table {
    max-height: calc(100vh - 90px) !important;
    overflow-y: auto;
}

#content-container {
    overflow-y: auto;
}