#flow-holder {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
    /* Flex Settings */
}

#node-container {
    position: relative;
    z-index: 0;
    top: -4400px;
    left: -4400px;
    width: 9000px;
    height: 9000px;
    /* Flex Settings */
}

#node-line-container {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
}

 .node {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 256px;
    padding: 8px;
    cursor: pointer;
    border-radius: 3px;
    background: white;
    -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
}

.node-labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 218px;
    margin-right: 8px;
}

.node-label {
    padding: 4px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    background: rgba(60, 255, 150, 1);
    -webkit-box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.3);
}

.node-label:first-of-type {
    margin-left: 0;
}

.node-title {
    width: 100%;
    padding: 5px 0px;
    word-wrap: break-word;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
}

.node-target {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    padding-top: 13px;
    cursor: pointer;
    text-align: center;
}

.node-target:hover {
    background: rgba(0, 0, 0, 0.1)
}

.node-icons {
    display: none;
    width: 218px;
    height: 40px;
    margin-top: 5px;
    margin-bottom: -8px;
    margin-left: -8px;
}

.node:hover, .node.hover {
    z-index: 2;
    box-shadow: 0px 2px 5px 2px rgba(0, 0, 0, 0.3);
}

.node:hover .node-icons, .node:hover .node-handle, .node:hover .node-target,
.node.hover .node-icons, .node.hover .node-handle, .node.hover .node-target {
    display: inline-block;
}

.node:hover .node-title, .node.hover .node-title {
    width: 210px;
}

.node-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    padding: 8px;
    padding-top: 13px;
    text-align: center;
}

.node-icon:hover {
    background: rgba(0, 0, 0, 0.1);
}

.delete-node {
    cursor: pointer;
}

.delete-node:hover {
    color: rgba(120, 10, 26, 0.8);
    background: rgba(255, 10, 26, 0.4);
}

.node-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    padding-top: 13px;
    cursor: grab;
    text-align: center;
}

.node-handle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.node-handle:active {
    cursor: grabbing;
}

#instruction {
    position: absolute;
    z-index: -2;
    top: 4670px;
    left: 4870px;
    color: rgba(0, 0, 0, 0.3);
    font-size: 20px;
    font-weight: bold;
}

line, polygon {
    cursor: pointer;
}

#control-panel-flow {
    position: absolute;
    z-index: 1;
    right: 10px;
    bottom: 60px;
}

.tooltipbody {
    position: absolute;
    z-index: 1;
    width: 120px;
    margin-left: -60px;
    padding: 10px;
    transition: opacity 0.3s;
    text-align: left;
    color: #fff;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: 14px;
    font-weight: 400;
}

.tooltiptext {
    display: none;
    visibility: hidden;
    opacity: 0;
}

/************************************
************************************/

.window-overlay{
    margin: auto;
}

.overlay {
    display: flex;
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    flex-direction: column;
    margin: 48px 0 80px;
    padding: 12px;
    border-radius: 2px;
    background-color: #f4f5f7;
}

.overlay button {
    width: initial;
    height: initial;
    border: initial;
    background: initial;
    box-shadow: none;
}

.overlay button:hover {
    background: initial;
    box-shadow: none;
}

.overlay section {
    /*display: inline-block;*/
}

.overlay-head {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    height: auto;
}

.overlay-head > .overlay-icon{
    display: flex;
    align-self: center;
    justify-content: center;
    width: 44px;
}

.overlay-row > .overlay-icon {
    margin-top: 7px;
}

.overlay-icon {
    display: flex;
    align-self: flex-start;
    justify-content: center;
    width: 44px;
}

.overlay-icon i {
    font-size: 16px;
}

.overlay textarea, .overlay .textarea {
    overflow: hidden;
    padding: 4px 8px;
    resize: none;
    letter-spacing: 0.25px;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 5px;
    outline: none;
    background: none;
    /*font-family: 'Sofia Pro', sans-serif;*/
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 400;
    overflow-wrap: break-word;
}

.overlay-title {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
}

textarea.title-area{
    width: calc(100% - 37px);
    min-height: 34px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.title-area {
    width: calc(100% - 37px);
    min-height: 34px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.title-area:focus {
    border: 1px solid #00c0ff;
    border-radius: 5px;
    background: white;
}

div.title-area{
    padding-top: 6px;
    padding-left: 8px;
}

.close-window {
    width: 32px;
    height: 32px;
    padding-top: 8px;
    text-align: center;
    text-decoration: none;
    color: #444444;
    font-size: 16px;
}

.close-window:hover {
    background: rgba(104, 104, 104, 0.2);
}

.overlay-main {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    flex: 1 1 auto;
    margin-top: 16px;
}

.overlay-row {
    margin-bottom: 15px;
}

.overlay-row:last-of-type {
    margin-bottom: initial;
}

.overlay-section {
    position: relative;
    width: calc(100% - 50px);
}

.overlay-section h3 {
    margin-top: 6px;
    padding-left: 8px;
    font-size: 16px;
    display: inline-block;
    width: calc(100% - 18px)
}

.overlay-section *{
    word-break: break-all;
}

textarea.overlay-description.textarea, div.textarea.formatted, div.textarea.formatted-view{
    width: calc(100% - 5px);
    min-height: 34px;
    margin-top: 8px;
    margin-left: 8px;
    padding-top: 8px;
    cursor: pointer;
    background: rgba(9, 30, 66, .04);
}

.overlay-description.textarea:hover, .textarea:hover {
    background: rgba(9, 30, 66, 0.08);
}

[contentEditable=true]:empty:not(:focus):before, [contentEditable=false]:empty:not(:focus):before {
    content: attr(data-ph);
    color: rgba(9, 30, 66, 0.3);
    font-style: italic;
}

.overlay-description.textarea:focus {
    height: 120px;
    cursor: text;
    border: 1px solid #00c0ff;
    background: white;
}

.overlay-user-img {
    width: 24px;
    height: 24px;
    margin-left: -4px;
    vertical-align: top;
    border-radius: 24px;
}

.overlay-comment {
    width: calc(100% - 4px);
    margin-top: 4px;
    margin-left: 8px;
    border: 1px solid rgba(9, 30, 66, .2);
    border-radius: 5px;
    background: white;
}

.select-shadow {
    box-shadow: 0 2px 8px -2px rgba(9, 30, 66, .25);
}

textarea.overlay-comment-text {
    width: 100%;
    height: 34px;
    cursor: pointer;
}

.overlay-comment-text:focus {
    cursor: text;
}

.overlay-comment-controls {
    display: none;
    padding: 8px;
}

.overlay-comment-controls button, button.add-checklist-item, button.save-checklist-item, button.confirm-checklist-title {
    border: 1px solid rgba(9, 30, 66, .1);
    background: rgba(9, 30, 66, .02);
}

.overlay-comment-controls button:hover {
    color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(9, 30, 66, .1);
    background: rgba(9, 30, 66, .02);
}

section.overlay-row {
    display: flex;
    width: 100%;
}

.overlay-activity {
    width: 100%;
}

section.activity-item-row {
    display: block;
    width: 100%;
    margin-left: 8px;
}

section.activity-item {
    width: calc(100% - 48px);
    margin-top: 4px;
}

.activity-item-user {
    position: relative;
    top: -1px;
    font-weight: 600;
}

.activity-item-comment {
    margin-top: 5px;
    padding: 10px;
    border: 1px solid rgba(9, 30, 66, .2);
    border-radius: 5px;
    background: white;
}

button.overlay-comment-save-disabled, button.overlay-comment-save-disabled:hover {
    color: #a5adba;
    border-radius: 5px;
    background: rgba(9, 30, 66, 0.04);
    font-weight: 500;
}

button.overlay-comment-save. button.add-checklist-item, button.save-checklist-item, button.confirm-checklist-title {
    color: white;
    border-radius: 5px;
    background: #1eb83e;
    font-weight: 500;
}

button.overlay-comment-save:hover, button.add-checklist-item:hover, button.save-checklist-item:hover, button.confirm-checklist-title:hover {
    color: white;
    background: #1ba638;
}

.overlay-side {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    flex: 0 0 130px;
    height: 500px;
    margin-left: 8px;
    padding-top: 24px;
}

.sidebar-header {
    margin-top: 15px;
    padding-left: 4px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
}

.sidebar-header:first-of-type {
    margin-top: 0px;
}

.sidebar-item {
    width: calc(100% - 6px);
    margin-top: 8px;
    margin-left: 3px;
    padding: 6px 12px;
    vertical-align: baseline;
    border-radius: 3px;
    background: rgba(9, 30, 66, 0.08);
    cursor: pointer;
}

.sidebar-item:hover {
    background: rgba(9, 30, 66, 0.12);
}

.sidebar-icon {
    margin-right: 8px;
}

.textarea.formatted ul, .textarea.formatted-view ul {
    margin-left: 1em;
    padding-left: 1em;
    list-style-type: disc;
}

.textarea.formatted ol, .textarea.formatted-view ol {
    margin-left: 1em;
    padding-left: 1em;
    list-style-type: decimal;
}

.textarea.formatted h1, .textarea.formatted-view h1 {
    margin-left: 0;
}

.textarea.formatted a, .textarea.formatted-view a {
    padding-left: 5px;
}

.textarea.formatted strong, .textarea.formatted-view strong {
    vertical-align: baseline;
}

.overlay-checklist {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

.overlay-checklist > .overlay-section{
    display: flex;
}

.overlay-checklist > .overlay-icon{
    align-self: center;
}

section.checklist{
    width: 100%;
}

section.checklist:hover .add-checklist-item{
    display: block;
}

.sep-checklist{
    margin-left: 56px;
    margin-top: 16px;
    margin-bottom: 8px;
    width: calc(100% - 58px);
    border-top: 1px solid #999;
}

.checklist-main {
    width: 100%;
}

.checklist-items{
    width: 100%;
}

.checklist-item {
    display: flex;
    width: calc(100% - 12px);
    margin-left: 12px;
    padding: 8px;
    cursor: pointer;
    line-height: 12px;
}

.checklist-item:hover {
    background: rgba(9, 30, 66, .04);
}

.checklist-item:hover i {
    color: #333;
}

.checklist-box {
    margin-right: 21px;
    color: #999;
    font-size: 15px;
}

.checklist-box i {
    color: #999;
    font-size: 16px;
}

.checklist-label {
    width: calc(100% - 48px);
    line-height: 15px;
}


.checklist-item-delete i{
    color: #999;
}

.box-checked+.checklist-label {
    text-decoration: line-through;
    color: #999;
}

.box-checked i {
    color: #999;
}

.checklist-bar {
    width: calc(100% - 58px);
    height: 5px;
    margin-top: 8px;
    margin-left: 56px;
    -webkit-appearance: none;
    appearance: none;
}

.checklist-bar[value]::-webkit-progress-bar {
    border-radius: 2px;
    background-color: #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

.checklist-bar[value]::-webkit-progress-value {
    border-radius: 2px;
    background: #1eb83e;
}

button.add-checklist-item, button.save-checklist-item, button.confirm-checklist-title {
    margin-left: 56px;
    border-radius: 5px;
    margin-top: 8px;
}


textarea.checklist-input, textarea.checklist-title  {
    width: calc(100% - 56px);
    margin-top: 4px;
    margin-left: 55px;
    border: 1px solid rgba(9, 30, 66, .2);
    background: white;
    border-radius: 5px;
    height: 25px;
}

textarea.checklist-input:focus, textarea.checklist-title:focus{
    border:1px solid #00c0ff;
}

.checklist-item:hover > .checklist-item-delete{
    display: inline-block;
}

.checklist-item-delete{
    display: none;
}

.checklist-delete{
    vertical-align: baseline;
    color: rgba(200, 10, 26,1);
    cursor: pointer;
    margin-top: 7px;
}

.checklist-delete:hover{
    color: rgba(160, 10, 26, 0.8);
}

/*****************************************************************************


    Flowchart Menu Page


******************************************************************************/


.flowchart-menu{
    display: block;
    width: 100%;
    flex-wrap: wrap;
}

.flowchart-section{
    flex: 0 0 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    margin: 16px 8px;
    border-radius: 5px;
    background: white;
}

.section-title{
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0,0,0,.125);
    position: relative;
}

.flowchart-menu-items{
    max-height: 300px;
    overflow-x: auto;
}

.flowchart-menu-item{
    display: flex;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,.125);
    padding: 12px 20px;
}

.flowchart-menu-item:last-of-type{
    border-bottom: none;
}


.flowchart-menu-item-title{
    flex: 1 1 70%;
    height: 35px;
    padding-top: 7px;
}

.flowchart-menu-item-title a{
    text-decoration: none;
    color: #333;
}

.flowchart-menu-item-controls{
    display: flex;
    flex: 1 1 30%;
    text-align: right;
    align-items: center;
    justify-content: flex-end;
}


.create-flowchart{
    position: absolute;
    right: 40px;
    top: 7px;
    display: inline-block;
    width: 35px;
    height: 35px;
    color: #999;
    border-radius: 30px;
    text-align: center;
    padding: 7px;
    text-decoration: none;
    transition: background .2s;
}

.create-flowchart:hover{
    background: rgba(0,0,0,.125);
    box-shadow: inset 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
    color: #333;
}

#share-chart-email{
    width: 312px;
    border: 1px solid rgba(198,199,200, 0.5);
    border-right: none;
    padding: 5px;
    color: #333;
}


section#middle{
    background: #E4E9EB;
}

main#center{
    width: 100%;
    padding-right: 16px;
}

.share-list{
    width: 100%;
}

.share-list-details{
    width: 260px;
    cursor: pointer;
    padding: 8px;
}

.share-list:first-of-type{
    border-top: none;
}

.share-list-name, .share-list-email{
    font-weight: 600;
}

.share-list-email{
    display: none;
}

.share-list-details:hover > .share-list-name{
    display: none;
}

.share-list-details:hover > .share-list-email{
    display: block;
}

.share-list-actions{
    margin-top: 3px;
    padding: 4px 8px;
    width: 100px;
    text-align: center;
    background: rgba(0,0,0,.05);
    border: 1px solid #eaeaea;
    cursor: pointer;
}

.flowchart-add-new, .flowchart-copy-new{
    width: calc(100% + 40px);
    border-top: 1px solid rgba(0,0,0,.125);
    margin: 8px -20px;
    padding: 12px 20px;
    background: #EEE;
    margin-bottom: -12px;
    text-align: center;
    vertical-align: baseline;
}


input.flowchart-new-title, input.flowchart-copy-title {
    width: 320px;
    margin-top: 4px;
    border: initial;
    border: 1px solid rgba(9, 30, 66, .2);
    background: white;
    border-radius: 5px;
    height: 30px;
    padding: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    color: #333;

}

input.flowchart-new-title:focus, input.flowchart-copy-title:focus{
    border: 1px solid #00c0ff;
    color: #333;
}

button.flowchart-submit-title, button.flowchart-submit-copy{
    margin-top: 4px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    background: #E1E1E1;
    height: 30px;
    border: 1px solid rgba(9, 30, 66, .2);
}

button.flowchart-submit-title:hover, button.flowchart-submit-copy:hover{
    background: #1eb83e;
}

.share-error{
    width: 100%;
    color: rgba(160, 10, 26, 0.8);
}


@media only screen and (max-width: 600px) {
    .overlay-main {
        width: 100%;
    }

    main#center{
        width: 100%;
        padding: 16px 0;
        margin: 0;
    }
}

.row{
    flex-wrap: nowrap;
}


.checklist-holder{
    flex-direction: column;
}

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


#analysis-container{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    overflow-y: auto;
}

.analysis-container-child:first-of-type {
    flex: 1 1 150px;
    border: none;
    padding: 0 4px;
  }

.analysis-container-child {
  flex: 2 2 150px;
  text-align: left;
  height: 250px;
  overflow-y: auto;
  border: 1px solid var(--grey-med-light);
}

option{
    height: 32px;
}

.analysis-file, .analysis-file-selected{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid var(--grey-med-light);
}


#chart-name-holder{
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 999;
    padding: 7px 15px;
    outline: none;
    white-space: nowrap;
    outline: none;
    overflow: clip;
    text-align: left;
    text-overflow: ellipsis;
    background: var(--grey-lighter);
}

#chart-name-holder[contenteditable="true"]:focus{
    border: 1px solid rgba(0,0,0,0.1)
}


.analysis-item{
    width: 100%;
    cursor: pointer;
    background: var(--grey-lighter);
    padding: 5px;
    margin-bottom: 5px;
}

.analysis-item a{
    display: block;
}


.change-biosample{
    font-size: 13px;
    text-decoration: underline;
    color: var(--blue);
    padding: 0;
}

.change-biosample:hover{
    background: rgba(0,0,0,0.1)!important;
}

.pfu-table, .pfu-average{
    display: flex;
    flex-wrap: wrap;
}

.pfu-table > div > label, .pfu-average > div > label{
    display: block;
    margin-bottom: 0;
} 

.primer-button-row{
    width: 100%;
    text-align: right;
    margin-top:-32px;
}

.delete-primer{
    background: red !important;
}


.primer{
    background: rgba(9, 30, 66, .04);
    padding: 8px;
}

.primer:not(:first-of-type){
    margin-top: 8px;
}


.pfu-average output{
    display: inline-block;
}


.pfu-table input[type="number"], .pfu-table output, .pfu-average input[type="number"], .pfu-average output{
    width: 80px;
}

.pfu-average input[type="number"]{
    width: 50px;
}

.pfu-average input[type="number"][name="dilution"]{
    width: 80px;
}

.pfu-average:last-of-type input[type="number"]{
    width: 80px;
}

.pfu-average output{
    width: 80px;
}

.pfu-table input[name="biosample"], .pfu-average input[name="biosample"]{
    width: 65px;
    margin-right: 5px;
}

.pfu-table input[type="number"]:disabled, .pfu-average input[type="number"]:disabled{
    border: none;
}

.pfu-table i, .pfu-average i{
    margin: 0 5px;
    margin-left: 2px;
}


.pcr-info{
    display: inline-block;
}

.pcr-info ~ i{
    margin: 0 10px;
}

.pfu-button-row{
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
}

.add-pfu{
    font-size: 13px;
    text-decoration: underline;
    color: var(--blue);
    padding: 0;
    cursor: pointer;
    justify-self: left;
}

.pfu-table ~ .pfu-button-row{
    margin-top: 5px!important;
}


.remove-pfu{
    color: red;
    cursor: pointer;
}

.save-pfu{
    background: var(--blue)!important;
    color: white;
}