:root {
  --module-selection-color: #883268;
  --module-promoter-color: #ffe490;
  --module-two-a-selection-color: #e2bbfd;
  --module-guide-color: #ffbdbd;
  --module-cas-color: #b8e9ce;
  --module-nterminus-color: #dada00;
  --module-cterminus-color: #abe5fa;
  --module-crop-color: #abe5fa;
  --arrow-border-width: 0.58rem;
}

#dimgarf {
  display: flex;
  flex-direction: column;
  color: #111111;
  font-family: "Open Sans", sans-serif;
}

#dimgarf-form {
  display: flex;
  flex-direction: column;
  margin: 0.5rem 1rem 0.5rem 1rem;
}

.dimgarf-flex-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.dimgarf-flex-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dimgarf-form-row {
  margin: 0.5rem 0 0.5rem 0;
}

.dimgarf-form-elem {
  width: 8rem;
}

.dimgarf-inline-form-elem {
  width: 8rem;
  margin-right: 1em;
}

.dimgarf-form-elem:last-of-type {
  width: unset;
}

.dimgarf-form-elem > input {
  margin-right: 0.5rem;
}

.dimgarf-form-elem-title {
  font-weight: bolder;
  width: 9rem;
  white-space: nowrap;
}

#backbones-table_filter {
  position: relative;
  top: 2rem;
  z-index: 1000;
}

#fragments-table_filter {
  position: relative;
  top: 2rem;
  z-index: 1000;
}

#plasmids-table_filter {
  position: relative;
  z-index: 98;
}

#plasmids-table-div {
  overscroll-behavior: contain;
  overscroll-behavior-block: contain;
}

#plasmids-table-div th {
  box-shadow: inset 0 -1px #000;
}

.dimgarf-pl-table th {
  box-shadow: inset 0 -1px #000;
}

.dimgarf-table-header {
  position: relative;
  top: 1.75em;
}

.dimgarf-filterless-table-header {
  position: relative;
  top: 0.8rem;
  z-index: 98;
  margin: 1rem 0 1rem 0;
}

.download-icon {
  color: #0079C2;
}

.dg-selected-modules-button {
  /*padding: 0 0 0 0.2em;*/
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-top: 0.45em;
}

.dg-selected-modules-button:after {
  height: 0.3em;
  margin-top: 0.4em;
}

.dg-selected-modules-button-outer {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.dg-component-outer {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.dg-component {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40rem;
}

.dg-component-spacer {
  margin-right: 0.1rem;
}

.dg-nobreak {
  white-space: nowrap;
}

.dg-tab-btn {
  margin-left: 0.2em;
}

#module-sets-table_wrapper .dataTables_scrollHead {
  display: none;
}

.close-badge {
  font-size: 0.5rem;
  vertical-align: super;
  color: red;
  background: #ededed !important;
  border-width: 1px;
  /* border-style: solid; */
  border-radius: 16px;
  padding: 0.15rem;
  transform: translate(0.4rem, -0.2rem);
}

.version-badge {
/*  transform: translate(0.20rem, -0.05rem) !important;*/
  font-size: 0.5rem;
  vertical-align: text-bottom;
  margin-left: 0.25rem;
  margin-bottom: 0.05rem;
  border-color: black;
  color: black;
  background: #ededed !important;
  border-width: 1px;
  border-style: solid;
  padding: 0.2em 0.5em 0.1em 0.5em;
}

.no-version-badge {
  transform: translate(0, 10%) !important;
}

.dg-module-selection {
  color: #ffffff;
  background-color: var(--module-selection-color);
}

.dg-module-promoter {
  color: #000000;
  background-color: var(--module-promoter-color);
}

.dg-module-two-a-selection {
  color: #000000;
  background-color: var(--module-two-a-selection-color);
}

.dg-module-guide {
  color: #000000;
  background-color: var(--module-guide-color);
}

.dg-module-cas {
  color: #000000;
  background-color: var(--module-cas-color);
}

.dg-module-nterminus {
  color: #000000;
  background-color: var(--module-nterminus-color);
}

.dg-module-cterminus {
  color: #000000;
  background-color: var(--module-cterminus-color);
}

.dg-module-crop {
  color: #000000;
  background-color: var(--module-crop-color);
}

.big-modal {
  background: white;
  z-index: 99;
  position: absolute;
  top: 2vh;
  left: 2vw;
  padding: 0;
  border-radius: 0.2rem;
  border: 1px solid black;
  width: 95vw;
  height: 95vh;
  overflow-y:auto;
}

.big-modal-content {
  padding: 2em;
}

.big-modal-title h4, h3 {
  width: 100%;
  padding: 0.5em;
  background: #00000030;
  color: black;
}

.start-button {
  display: flex;
  flex-direction: column;
  margin: 1rem;
  padding: 1rem;
  text-align: center;
  width: 15rem;
  border: #88aacc;
  border-width: 1px;
  border-style: solid;
  border-radius: 0.5rem;
}

.start-button-title {
  font-size: x-large;
  font-weight: 500;
}

.start-button-desc {
  font-size: small;
  padding: 0.5rem 0 1rem 0;
}

.start-button-button {
  width: min-content;
  color: white;
  background-color: #4488bb;
  transition-duration: 0.2s;
  border: #4488bb;
  border-style: solid;
  align-self: center;
}

.start-button-button:hover {
  color: #4488bb;
  background-color: white;
  border: #88aacc;
  border-style: solid;
}

.dimgarf-pl-table {
  overflow-y: auto;
  width: 100%;
  overscroll-behavior: contain;
  overscroll-behavior-block: contain;
}

.dimgarf-pl-table table {
  width: 100%;
}

.dimgarf-pl-table thead th {
  position: sticky;
  top: 0px;
  background: white;
  z-index: 1;
  white-space: nowrap;
}

.dimgarf-pl-table table tr {
  transition-duration: 0.2s;
}

.dimgarf-pl-table table tr:hover {
  background-color: #e9ecef;
}

.dimgarf-pl-table table tr td {
  border: 1px solid;
  border-collapse: collapse;
  border-color: lightgray;
  border-left: none;
  border-right: none;
}

.dimgarf-pl-table-tr-selected {
  background-color: #e9ecef;
}

.dimgarf-pl-table-tr-even {
  background-color: white;
}

.dimgarf-pl-table-tr-odd {
  background-color: #f9f9f9;
}

.dimgarf-pl-table-name {
  width: 7em;
}

.dimgarf-pl-table-dest-vector {
  width: 9em;
}

.dimgarf-pl-table-components {
}

.dimgarf-pl-table-comment {
  width: 10em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 1em;
  padding-right: 1em;
}

.dimgarf-pl-table-size {
  width: 7em;
}

.dimgarf-pl-table-dl {
  width: 10em;
}

.dimgarf-pl-table-checked {
  width: 1em;
}

.dimgarf-fg-table-thicker-rows table tr td {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.dimgarf-bb-button-group-li {
  border: blue;
  border-style: solid;
  border-width: 1px;
  border-collapse: collapse;
  border-radius: 3px;
  margin: 0.5rem 0.2rem;
  background: #e5ecf5;
}

.dimgarf-bb-button-group-li:first-child {
  margin: 0 0.2rem 0.5rem 0.2rem;
}

.dimgarf-bb-button-group-li:last-child {
  margin: 0.5rem 0.2rem 0 0.2rem;
}

.dimgarf-bb-button-group-title {
  padding: 0 0 0.25rem 0.25rem;
  font-size: larger;
}

.dimgarf-bb-dg-bb-button-group {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.dg-bb-button {
  flex-grow: 0 !important;
  margin: 0 0.3rem 0.3rem 0.3rem;
  /* font-size: 0.75em; */
}

.budge {
  font-size: 0.75em;
  font-weight: bold;
  padding: 0em 0.65em;
  border-radius: 0.35rem;
}

.budge:last-child {
  margin-right: 0;
}

.reverse-orientation {
  display: contents;
}

.reverse-orientation > span:first-child {
  padding-left: 0.75rem;
  clip-path: polygon(0 50%, var(--arrow-border-width) 0, 100% 0, 100% 100%, var(--arrow-border-width) 100%);
}

.forward-orientation {
  display: contents;
}

.forward-orientation > span:last-child {
  padding-right: 0.75rem;
  clip-path: polygon(0 0, calc(100% - var(--arrow-border-width)) 0, 100% 50%, calc(100% - var(--arrow-border-width)) 100%, 0 100%);
}

.header-link {
  color: #ccccccff;
  text-decoration: underline;
}

.header-link:hover {
  color: #ffffff;
}
