/* Main CSS */
.main {
  background-color: #fff;
  padding: 0;
  margin: 0;
  width: 100%;
  min-height: 80vh;
  justify-content: center;
}

.row {
  background-image: none;
  background-color: #fff;
  border: none;
  border-radius: 0px;
  border-color: #fff;
  outline: none;
  box-shadow: none;
}

.row.wrapper {
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.toolbar  {
  position: relative;
  padding: 20px 0;
  margin-left: -20px;
}


@media (min-width: 768px) {
  .wrapper:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12px;
    width: 25%;
    border-right: 1px solid #ddd;
    z-index: 1;
  }
}

.filters .module-heading {
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}
.module:first-child .module-heading {
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;

}

.primary .col-md-9 .col-xs-12 {
  margin: 0 auto;
  /* Makes it take up full width of the parrent container*/
  width: 100%;
  min-width: 1056px;
  justify-content: center;
  align-content: center;
  display: flex;
}

.primary .col-md-9 .col-xs-12>.module {
  margin: 0 auto;
  min-width: 1056px;
  width: 133%;
}

/* Package create/edit CSS */

/* Package create/edit section */
.package-create {
  padding: 40px;
  border-width: 3px;
  border-color: #006D84;
  border-style: solid;
  border-radius: 10px;
}


/* Stages CSS */
.stages {
  display: flex;
  flex-direction: row;
  /* This is more consistent with flexbox than 'flex: row;' */
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 1.5rem;
  color: #aeaeae;
  counter-reset: stage;
  overflow: hidden;
  gap: 20px;
}

.stages::after {
  display: block;
  clear: both;
  content: none;
}

.stages li {
  /* Removed 'float: left;' because it's unnecessary with flexbox */
  line-height: 27px;
  counter-increment: stage;
  background-color: #fff;
  padding: 10px 10px;
  position: relative;
  flex-grow: 1;
  width: auto;
  z-index: 1;
  /* Set z-index to 1 to ensure it's above the spacer */
}

.stages li::before {
  right: -34px;
  content: "";
  position: absolute;
  border: 29px solid #fff;
  top: 0;
  z-index: 2;
  display: block;
  border-radius: 0;
  top: 50%;
  margin-top: -29px;
  margin-right: 0px;
  border-left-color: #D9D9D9;
}

.stages li:last-child::before {
  content: none;
}

.stages li::after {
  left: 0;
  border-style: solid rgba(237, 237, 237, 0);
  border-color: #fff;
  border-width: 50px;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-top-color: #EDEDED;
  border-bottom-color: #EDEDED;
  border-left-color: #fff;
  border-width: 29px;
  top: 50%;
  margin-top: -29px;
  margin-left: -30px;
  z-index: 2;
}

.stages li.spacer {
  flex-basis: 10%;
  /* Adjusted for flexbox layout */
  padding: 0;
  position: relative;
  z-index: 0;
  /* Lower z-index so it goes under the previous li */
}

.stages li.spacer::after {
  left: 0;
  border-style: solid rgba(237, 237, 237, 0);
  border-color: #fff;
  border-width: 50px;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-top-color: #000;
  border-bottom-color: #000;
  border-left-color: #fff;
  border-width: 29px;
  top: 50%;
  margin-top: -29px;
  margin-left: 20px;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  /* Center the spacer's ::after pseudo-element */
  width: 100%;
  /* Full width of the spacer element */
  height: 100%;
  /* Full height of the spacer element */
  background-color: #fff;
  /* This should be the background color of your container */
  z-index: -1;
  /* Lower z-index to ensure it goes under the previous li */
}

.stages li.last {
  position: relative;
  right: -1px;
}

.stages li.last,
.stages li.last .highlight {
  border-radius: 0 3px 0 0;
}

.stages li.first:after {
  content: none;
  border: none;
}

.stages li.active:after {
  border-top-color: #006D84;
  border-bottom-color: #006D84;
  border-right-color: #006D84;
  margin-right: 5px;
  z-index: 2;
}

.stages li.complete:after {
  border-right-color: #D9D9D9;
  border-top-color: #D9D9D9;
  border-bottom-color: #D9D9D9;
}

.stages.stage-3 li.complete:first-child:after {
  content: none;
}

.stages li.active,
.stages li.complete {
  background: none;
}

.stages li.active::before {
  border-left-color: #006D84;
}

.stages li.complete {
  background: #D9D9D9;
}

.stages li.active {
  background: #006D84;
}

.stages li .highlight {
  display: block;
  position: static;
  height: 100%;
  padding: 0px;
  border: none;
  text-align: left;
  text-decoration: none;
  line-height: normal;
  z-index: 10;
  width: fit-content;
}

.stages li .highlight::before {
  border-radius: 99999px;
  content: counter(stage);
  width: 30px;
  height: 30px;
  text-align: center;
  color: #6D6D6D;
  background-color: #fff;
  z-index: 3;
  display: inline-block;
  position: relative;
  margin-right: 4px;
  vertical-align: middle;
  line-height: 1.15em;
  font-size: 25px;
  font-weight: bold;
  box-sizing: content-box;
}

.stages li.active .highlight::before {
  color: #006D84;
}

.stages li.active .highlight {
  color: #fff;
  background: #006D84;
}

.stages li.complete .highlight {
  color: #262626;
  background: #D9D9D9;
}

/* microfontend - package create/edit */
.mc-field-container-theme {
  position: relative;
  border: 1px solid #e5e7eb;
  padding: 20px 10px;
}

/* Terms and conditions CSS */
.terms-and-conditions-page {
  padding: 40px;
  border-width: 3px;
  border-color: #006D84;
  border-style: solid;
  border-radius: 10px;
}

.terms-and-conditions-content h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.terms-and-conditions-content p {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0em;
  text-align: left;
  font-family: Calibri;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0em;
  text-align: left;
}

.terms-and-conditions-content label {
  display: flex;
  align-items: center;
}

.terms-and-conditions-content label input {
  margin-right: 8px;
}

.terms-and-conditions-content label::after {
  content: '';
}


.form-group {
  display: block;
  position: relative;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 18px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkbox label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  font-family: Calibri;
  font-size: 12px;
  font-weight: 100;
  line-height: 20px;
  letter-spacing: 0em;
  text-align: left;
}

.terms-and-conditions-page .form-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: left;
}

.terms-and-conditions-page .form-actions .btn {
  margin-right: 10px;

}

/* Resource create/edit CSS */
/* Resource form buttons */
.resource-download-buttons {
  display: flex;
  justify-content: flex-end;
  padding: 20px 0px;
}

.resource-form-buttons {
  /* there are four buttons in the resource form */
  /* the first button should be aligned left and other buttons should be aligned rigght*/

  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.resource-form-buttons-left {
  display: flex;
  flex-direction: row;
  justify-content: left;
  margin-top: 20px;
  margin-left: 10px;
}

.resource-form-buttons-right {
  display: flex;
  flex-direction: row;
  justify-content: right;
  margin-top: 20px;
}

/* Scheming multiple select with sublists */
.multi-select ul,
.multi-select ul .sub-items {
  list-style: none;
  /* Removes list bullets */
  padding-left: 0;
  /* Removes list padding */
  margin-left: 0;
  /* Aligns with the multi-select container */
}

/* Main category title styles */
/* Resets */
.multi-select,
.multi-select ul,
.multi-select ul .sub-items {
  list-style: none;
  /* Removes bullets */
  padding-left: 0;
  /* Removes indentation */
  margin: 0;
  /* Removes default margin */
  margin-left: 10px;
  /* Indents the main category labels */
}

/* Styles for the main category labels and toggle arrow */
.multi-select>ul>li>label {
  cursor: pointer;
  /* Indicates the element is clickable */
  vertical-align: middle;
  /* Aligns with the toggle arrow */
  font-weight: normal;
  /* No bold font */
}

.toggle-sublist {
  cursor: pointer;
  /* Indicates it's clickable */
  user-select: none;
  /* Prevents text selection */
  margin-right: 5px;
  /* Spacing between arrow and label */
}

/* Styles for sub-items list */
.multi-select .sub-items {
  display: none;
  /* Hide by default */
  margin-top: 5px;
  /* Space between category label and sublist items */
  padding-left: 30px;
  /* Aligns sublist items with the main items */
}

/* Styles for sublist items (labels and checkboxes) */
.sub-items li {
  display: flex;
  align-items: center;
  /* Center aligns items vertically */
  margin-bottom: 5px;
  /* Space between sublist items */
}

.sub-items li input[type="checkbox"] {
  width: auto;
  /* Adjusts checkbox width */
  margin-right: 10px;
  /* Space between checkbox and label */
  margin-left: 20px;
  /* Indent checkbox to align with sublist items */
}

.sub-items li label {
  font-weight: normal;
  /* No bold font */
  white-space: nowrap;
  /* Ensures label text does not wrap */
}

/* Remove the :after content on labels, if it exists */
.sub-items li label::after {
  content: none;
}

.resource-form-buttons {
  float: right;
}

.resource-form-buttons button:first-child {
  margin-right: 4px;
}

.dataset-status-label {
  display: flex;
  justify-content: flex-end;
  flex-direction: row;
}

#DatasetUI label:after,[data-radix-popper-content-wrapper=""] label:after {
  content: "" !important;
}

:root {
  --bs-font-sans-serif: Calibri, sans-serif !important;
}

.navbar-nav {
  text-transform: uppercase;
}

.line {
  height: 1.5rem;
  min-height: 1em;
  width: 0.125rem;
  transform: rotate(30deg);
  background-color: white;
}

.site-footer {
  padding: 0px !important;
  background: #A7B1B7 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-footer h4 {
  color: black;
  margin-bottom: 32px;
  font-size: 18px;
  font-weight: 600;
}

.site-footer ul li {
  margin-bottom: 15px !important;
  font-size: 18px;
}

.site-footer .container {
  padding-top: 40px;
}

.footer-divider {
  width: 1px;
  background-color: rgb(81 98 111 / 1);
  padding: 0;
  position: relative;
}

/* Bootstrap utility classes for hiding/showing elements are not working */
.mobile-hide {
  display: block;
}

@media (max-width: 768px) {
  .mobile-hide {
    display: none;
  }
}

.footer-divider::after {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: rgb(81 98 111 / 1);
  border-radius: 100%;
  content: "";
  transform: translate(-3px, -3px)
}

.footer-row {
  justify-content: space-between;
}

.footer-row .footer-links {
  margin-bottom: 40px;
}

.fa-search {
  color: #80bdc9 !important;
}

.form-control:not(textarea) {
  border-radius: 9999px !important;
}

.nav-link:hover,
.page-header .nav-tabs li a:hover,
.nav-link:focus,
.page-header .nav-tabs li a:focus {
  color: #ff956e !important;
  text-decoration: none;
}

.page-header .nav-tabs li.active a {
  color: #ff956e !important;
}

.bg-button li.active a {
  border-radius: 0.3rem;
  background-color: #2E4354 !important;
  color: #ff956e !important;
}

.bg-button ul li a:hover {
  border-radius: 0.3rem;
  background-color: #2E4354 !important;
  color: #ff956e !important;
}

.account ul li a:hover {
  border-radius: 0.3rem;
  background-color: #2E4354 !important;
  color: #ff956e !important;
}

a.tag:hover {
  text-decoration: none;
  color: #fff;
  background-color: #ff956e;
  border: 1px solid #ff956e;
  box-shadow: inset 0 1px 0 #3d97b3;
}

.tag {
  display: inline-block;
  margin-bottom: 4px;
  color: #111;
  background-color: #f6f6f6;
  padding: 1px 10px;
  border: 1px solid;
  border-radius: 100px;
  box-shadow: inset 0 1px 0 white;
}

.btn {
  border-radius: 9999px !important;
}

.btn-primary {
  color: #fff;
  background-color: #2E4354 !important;
  border-color: #2E4354 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
  border-radius: 9999px !important;
}

.btn-primary:hover {
  color: #fff;
  background-color: #ff956e !important;
  border-color: #ff956e !important;
}

.stages li.active {
  background: #ff956e !important;
}

.stages li.active::before {
  border-left-color: #ff956e !important;
}

.stages li.active:after {
  border-top-color: #ff956e !important;
  border-bottom-color: #ff956e !important;
  border-right-color: #ff956e !important;
  margin-right: 5px;
  z-index: 2;
}

.stages li.active .highlight {
  color: #fff;
  background: #ff956e !important;
}

.stages li.active .highlight::before {
  color: #ff956e !important;
}

.loader-wrapper {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #ff956e;
  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);
  }
}

/* ============= DOI Citation ============= */

.cite-container {
  border-width: 3px;
  border-style: solid;
  border-radius: 10px;
  padding: 10px 10px 5px 10px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  margin-bottom: 15px;
}

.cite-container .citation-download a {
  font-weight: 600;
  padding: 0;
}



.cite-container .citation-download a:not(:last-child)::after {
  content: " |";
}

.cite-container .citation-download .fa {
  padding-right: 4px;
}

.citation-string {
  border-left: 2px solid #216b83;
  background: #ebeeef;
  padding: 4px;
  margin-bottom: 4px;
}

/* ================== End DOI Citation ================== */

/* ================== Header ================== */

.sigma2-header {
  background-color: #2E4354;
  background-image: url('/images/header-bg.svg');
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.sigma2-header .account-masthead,
.sigma2-header .masthead {
  background-color: transparent;
}

/* --- Account strip (top row) --- */

.sigma2-header .account-masthead {
  min-height: 0;
  padding: 12px 0 10px;
}

.sigma2-header .account-masthead .account ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 0;
}

/* Core draws hard dividers tuned for its own darker background; the
   flex `gap` above spaces these items instead. */
.sigma2-header .account-masthead .account ul li {
  float: none;
  border-left: 0;
}

.sigma2-header .account-masthead .account ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  line-height: 1.4;
  border-radius: 0.3rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.sigma2-header .account-masthead .account ul li a:hover,
.sigma2-header .account-masthead .account ul li a:focus-visible {
  color: #ff956e;
  background-color: rgba(0, 0, 0, 0.22);
}

.sigma2-header .account-masthead .account ul li a .fa {
  font-size: 14px;
  width: 1em;
  text-align: center;
}

.sigma2-header .account-masthead .account ul li a span.username,
.sigma2-header .account-masthead .account ul li a span.text {
  margin: 0;
}

.sigma2-header .account-masthead .account .image img {
  border-radius: 50%;
  vertical-align: middle;
}

/* --- Main masthead (logo / nav / search) --- */

/* Core sets `.p-2, .masthead { padding: .5rem !important }`, so this
   needs !important to take effect. */
.sigma2-header .masthead {
  padding: 10px 0 22px !important;
}

.sigma2-header .masthead .logo img {
  max-height: 44px;
  width: auto;
}

.sigma2-header .masthead .navbar {
  padding-top: 0;
  padding-bottom: 0;
}

.sigma2-header .navbar-nav {
  align-items: center;
  gap: 4px;
}

.sigma2-header .navbar-nav .nav-item .nav-link {
  padding: 8px 14px;
  border-radius: 0.3rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.sigma2-header .navbar-nav .nav-item .nav-link:hover,
.sigma2-header .navbar-nav .nav-item .nav-link:focus-visible {
  color: #ff956e;
  background-color: rgba(0, 0, 0, 0.22);
}

.sigma2-header .navbar-nav .nav-item.active .nav-link,
.sigma2-header .navbar-nav .nav-item .nav-link.active {
  color: #ff956e;
}

/* --- Search --- */

.sigma2-header .site-search {
  position: relative;
  align-items: center;
  margin-left: 18px;
}

.sigma2-header .site-search .form-control {
  min-width: 240px;
  height: 40px;
  padding: 6px 44px 6px 16px;
  margin-right: 0 !important;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sigma2-header .site-search .form-control:focus {
  border-color: #ff956e;
  box-shadow: 0 0 0 3px rgba(255, 149, 110, 0.35);
  outline: none;
}

.sigma2-header .site-search .btn {
  position: absolute;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  color: #2E4354;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.sigma2-header .site-search .btn:hover,
.sigma2-header .site-search .btn:focus-visible {
  color: #ff956e;
  background-color: rgba(46, 67, 84, 0.08);
}

/* --- Responsive --- */

@media (max-width: 991.98px) {
  .sigma2-header .main-navbar {
    padding-bottom: 12px;
  }

  .sigma2-header .navbar-nav {
    align-items: stretch;
    gap: 2px;
  }

  .sigma2-header .site-search {
    margin-left: 0;
    margin-top: 10px;
  }

  .sigma2-header .site-search .form-control {
    width: 100%;
    min-width: 0;
  }
}

/* ================== Flash messages ================== */

.flash-messages .alert {
  margin-top: 20px;
}
