
:root {
    --background-light: #f1f1f1;
    --actual-background-light: #ebebeb;
    --actual-background-dark: #1a1a1a;
    --background-dark: #1e1e1e;
    --control-background-light: #f8f8f8;
    --control-background-dark: #1a1a1a; 
    --control-background-blended-dark: linear-gradient(
        to bottom,
        var(--control-background-tmp-dark),
        rgba(255, 255, 255, 0.02) 
    );
    --topmenu-background-dark:#2b2b2b;
    --topmenu-background-light:#fdfdfd;
    --text-dark: #ffffff;
    --text-light: #000000;
    --border-light-disabled: #ccc;
    --border-dark-disabled: #494949;
    --border-light: #242424;
    --border-dark: #a8a8a8; 
    --topic-dark: #00a2ff;
    --topic-light: #003c5f;

    --element-height: 2rem;
    --button-height: 5rem;
    --element-height-alt: 2rem;
    --header-name-size: 1rem;
    --info-name-size: 2rem;
    --info-named-size:1rem;
    --info-info-size:1rem;
    --row-gap:.3rem;
    --af-background: #ffdc9c;
    --ra-background: #f0f0f0;
    --at-background: #bfe7ff;
    --border-light-alt: #dadada;
    --border-dark-alt: #242424; 
    --checkbox-size: 1.6rem;
    --checkbox-border-roundness: .2rem;
    --text-border-roundness: .2rem;
    --sheetrow-height: 2.2rem;
    --sheetrow-ins-height: 2rem;
    --error-color-dark: #ffabab;
    --error-color-light: #ff0000;
    --button-highlight-dark: #0073ff;
    --button-highlight-light: #1558ab;
    --button-highlight-selected-dark: var(--button-highlight-dark);
    --button-highlight-selected-light: var(--button-highlight-light);
    --button-highlight-border-dark: orange;
    --button-highlight-border-light: gold;
    --text-highlight-light: white;
    --text-highlight-dark: white;
    --text-edit-light: #0d3c00;
    --text-edit-dark: #8bffd8;
    --text-dark-disabled: #89ffa3;
    --text-light-disabled: #00522c;
    --box-shadow: 0px 4px 6px rgba(56, 56, 56, 0.1);
    --row-item-padding: 0px;
    --sheetrow-padding: 5px;
    --padding: 3.5px;
    --corner-radius: 1.5rem;
    --max-page-width: 1200px;
    --transition: background .7s, color .7s, border-color .7s;
    --background-green-glass: rgba(0, 128, 0, 0.1);
    --background-green-glass-select: rgba(0, 128, 0, 0.5);
    --text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.15); 
    --mainform-width: 97rem;
    --popup-option-highlight: #0073ff;
    --popup-option-select: #0061d7;
}

@font-face {
  font-family: 'Fira Code';
  src: url('../fonts/FiraCode-Medium.ttf') format('truetype');
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}


body {
    overflow: hidden; 
    margin: 0; 
    height: 100vh; 
    display: flex;
    flex-direction: column;
    min-width: 2rem;
    cursor:default;
    background-color: var(--actual-background-light);
    user-select: none;
}
body.dark-mode {
    background-color: var(--actual-background-dark);
    color: var(--text-dark);
}


body.light-mode {
    background-color: var(--actual-background-light);
    color: var(--text-light);
    
}



body.light-mode label {
    color: var(--text-light);
}
body.dark-mode label {
    color: var(--text-dark);
}



button,
input[type="text"],
select {
    height: var(--element-height);  
    cursor: pointer;
    vertical-align: middle;
    font-size: .8rem;
    min-height: var(--sheetrow-height);
    box-shadow: var(--box-shadow);
}

button,
select
{
    border-width: .1px !important;
    border-color: rgba(0, 0, 0, .7) !important;
}

button.dark-mode,
select.dark-mode
{
    border-width: .1px !important;
    border-color: rgba(255, 255, 255, .7) !important;
}


input[type="text"] {
    padding-left:.7rem;
    padding-right:.7rem;
    cursor: crosshair;
    border-radius:var(--text-border-roundness);
}

select {
    padding-left:.4rem;
    padding-right:.4rem;
    opacity: .98;
}

button {
    opacity: .98;
    margin: auto;
    min-width: auto;
    min-height: auto;
    box-shadow: var(--box-shadow);
}




select.light-mode:disabled,
button.light-mode:disabled,
textarea.light-mode:disabled,
input[type="text"].light-mode:disabled {
    color: var(--text-light-disabled) !important;
    border: solid var(--border-light-disabled);
    cursor: not-allowed;
}

select.dark-mode:disabled,
button.dark-mode:disabled,
textarea.dark-mode:disabled,
input[type="text"].dark-mode:disabled,
input[type="checkbox"].dark-mode:disabled {
    color: var(--text-dark-disabled) !important;
    border: .1rem solid var(--border-dark-disabled);
    cursor: not-allowed;
}


select.dark-mode:hover {
    
    border-color: var(--button-highlight-border-dark) !important;
    color: var(--text-dark) !important;
}
select.light-mode:hover {
    
    border-color: var(--button-highlight-border-dark) !important;
    color: var(--text-light) !important;
}
button.dark-mode:hover {
    
    border-color: var(--button-highlight-dark) !important;
    color: var(--text-dark) !important;
}
button.light-mode:hover {
    
    border-color: var(--button-highlight-light) !important;
    color: var(--text-light) !important;
}


textarea {
    border-radius:var(--text-border-roundness);
    resize: none;
    padding: .5rem;
    border: 1rem solid red;

}
textarea.light-mode {
    border-radius:var(--text-border-roundness);
    resize: none;
    padding: .5rem;
}
textarea.dark-mode {
    border-radius:var(--text-border-roundness);
    resize: none;
    padding: .5rem;
}


#mainform {
}






.light-mode input[type="checkbox"] {
    appearance:none;
    min-width:var(--checkbox-size);
    min-height:var(--checkbox-size);
    width:var(--checkbox-size);
    height:var(--checkbox-size);
    align-self: center; 
    position: relative;
    margin: .5rem;
    border: .1rem solid var(--border-light);
    background-color: var(--control-background-light);
}

.light-mode input[type="checkbox"]:checked {
    background-color: var(--control-background-light);
    border-color: var(--text-light); 
}



.light-mode input[type="checkbox"]:checked:disabled::before {
    background-color: var(--border-light-disabled); 
}


.light-mode input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 0.25rem; 
    left: 0.3rem; 
    width: 1rem; 
    height: 1rem; 
    background-color: var(--text-light); 
    clip-path: polygon(20% 50%, 10% 70%, 45% 100%, 100% 15%, 85% 0%, 45% 70%);
    
}



.light-mode input[type="checkbox"]:checked:disabled::before {
    background-color: var(--text-light-disabled); 
}

.light-mode input[type="checkbox"]:disabled {
    min-width:var(--checkbox-size);
    min-height:var(--checkbox-size);
    width:var(--checkbox-size);
    height:var(--checkbox-size);
    align-self: center; 
    position: relative;
    margin: .5rem;
    border: .1rem solid var(--border-light-disabled);
}



.dark-mode input[type="checkbox"] {
    appearance:none;
    min-width:var(--checkbox-size);
    min-height:var(--checkbox-size);
    width:var(--checkbox-size);
    height:var(--checkbox-size);
    align-self: center; 
    position: relative;
    margin: .5rem;
    border: .1rem solid var(--border-dark);
}

.dark-mode input[type="checkbox"]:checked {
    background-color: var(--background-dark);
    border-color: var(--text-dark);
    color:var(--text-dark);
}


.dark-mode input[type="checkbox"]:checked:disabled::before {
    background-color: var(--border-dark-disabled); 
}

.dark-mode input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 0.25rem;
    left: 0.3rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--text-dark);
    clip-path: polygon(20% 50%, 10% 70%, 45% 100%, 100% 15%, 85% 0%, 45% 70%);
}



.dark-mode input[type="checkbox"]:checked:disabled::before {
    background-color: var(--text-dark-disabled); 
}

.dark-mode input[type="checkbox"]:disabled {
    min-width:var(--checkbox-size);
    min-height:var(--checkbox-size);
    width:var(--checkbox-size);
    height:var(--checkbox-size);
    align-self: center; 
    position: relative;
    margin: .5rem;
    border: .1rem solid var(--border-dark-disabled);
}


body.dark-mode #modeToggle img {
    filter: invert(100%);
}



    


div.align-left {
    display: flex;
    width: 100%;
    justify-content: flex-start; 
    align-items: center; 
}



#topmenu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center; 
    align-items: center;
    z-index: 1;
    box-sizing: border-box;
    background-color: transparent; 
    padding: .2rem;
    width: calc(100% - 12px);
    
}


#topmenu > div {
    display: flex;
    align-items: center;
    gap: .2rem; 
}


#topmenu button,
#topmenu select,
#topmenu input[type="checkbox"] {
    /* border-radius: var(--corner-radius); */
    cursor: pointer;
    min-width: 2.5rem;
    flex-grow: 1;
    vertical-align: middle;
    padding: 0;
    margin: 0;
    height: var(--button-height);

}

#PHOTOB {
    /* width: 10rem; */
    /* min-width: 100%; */
    
}
#DELETE {
    width: 2rem;
}
#DELETE img {
    width: 12px;
    height: auto;
}
#BLANKB {
    display: none !important;
}
#topmenu button {
    justify-content: center;
    align-items: center;
    display: none;
}


#topmenu button {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#topmenu button.fadein {
  opacity: 1;
  pointer-events: auto;
}


.width-15rem {
    /* width: 10rem; */
}

#topmenu img {
    height: 24px;
    width: auto;
}


#topmenu .button-mid {
    margin: 0;
    /* border-radius: 0; */
    width: 3.5rem;
}

#topmenu .button-left {
    border-top-right-radius:0;
    border-bottom-right-radius:0;
    width:4rem;

}

#topmenu .button-right {
    border-top-left-radius:0;
    border-bottom-left-radius:0;
    width:4rem;

}

#topmenu .ex {
    border-radius: 0rem;
    width: 3.8rem;
}


#topmenu .list-mid {
    border-radius: 0rem;
}

#topmenu .list-job {
    border-radius: 0rem;
    width:5rem;
}

#botmenu {
    position: fixed;
    bottom: .3rem;
    /* left: 0; */
    /* right: 0; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: calc(var(--button-height) / 2); 
    box-sizing: border-box;
    padding-right: .7rem;
    padding-left: .7rem;
    width: 100%;
    max-width: calc(var(--mainform-width) - 16px);
    transform: translateX(-7px);
}


#botmenu > div {
    display: flex;
    align-items: left;
    gap: .2rem; 
}


#botmenu button,
#botmenu select,
#botmenu input[type="checkbox"] {
    border-radius: 1rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
    height: calc(var(--button-height) / 2);
    width:3.8rem;
}

#botmenu button {
    display: flex;
    justify-content: center;
    align-items: center;
}

#botmenu button img {
    width: auto;
    height: 24px;
    object-fit: contain;
}

#botmenu .button-mid {
    margin: 0;
    border-radius: 0;
}

#botmenu .button-left {
    border-top-right-radius:0;
    border-bottom-right-radius:0;
    width:3.5rem;

}

#botmenu .button-right {
    border-top-left-radius:0;
    border-bottom-left-radius:0;
    width:3rem;

}

#botmenu .list-mid {
    border-radius: 0rem;
}

#botmenu .list-job {
    border-radius: 0rem;
    width:8rem;
}
#botmenu .list-instrument {
    padding-right: .4em;
    border-radius: 5rem;
    
    margin-left: .5rem;
    flex-grow: 1;
}



.moreoptions {
    display: flex;
    flex-direction: column;
    /* gap: 4px; */
    width: 100%;
}
.moreoptions-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    padding: .2rem;
    gap: 1rem;
    margin: 4px;
    border-radius: 2rem;

}
.moreoptions-text.active {
    background-color: rgba(0, 0, 0, 0.122);
}
.users-viewers-container {
    padding: 4px;
}
.users-viewers-container .moreoptions-text {
    height: 2.5rem;
}
.users-viewers-container .moreoptions-text:hover {
    background: var(--button-highlight-dark);
    color: var(--text-dark);
    cursor: pointer;
}
.moreoptions-text.light-mode:hover img {
    filter: invert();
}
.moreoptions-text img {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 8px;
    width: auto;
}

 .moreoptions-text.dark-mode img {
    filter: invert();
}

#INSTRUMENT_TYPES {
    
    display: flex;
    min-width: auto;
    min-width: 100%;
    text-align: left;
}

#UNFINISHED_JOB_LIST {
    
    display: flex;
    min-width: auto;
    min-width: 100%;
    text-align: left;
}



body.dark-mode #botmenu {
    
    color: var(--text-dark);
}
body.light-mode #botmenu {
    
    color: var(--text-light);
}


body.dark-mode #topmenu {
    
    color: var(--text-dark);
}
body.light-mode #topmenu {
    
    color: var(--text-light);
}

body.dark-mode #topmenu button,
body.dark-mode #topmenu select,
body.dark-mode #topmenu input[type="checkbox"] {
    background-color: var(--control-background-dark);
    color: var(--text-dark) !important;
}
body.light-mode #topmenu button,
body.light-mode #topmenu select,
body.light-mode #topmenu input[type="checkbox"]  {
    background-color: var(--control-background-light); 
    color: var(--text-light) !important;
}

body.dark-mode #topmenu button:hover,
body.dark-mode #topmenu select:hover {
    background-color: var(--control-background-dark);
    color: var(--text-dark) !important; 
}

body.light-mode #topmenu button:hover,
body.light-mode #topmenu select:hover {
    background-color: var(--control-background-light);
}




body.dark-mode #botmenu button,
body.dark-mode #botmenu select,
body.dark-mode #botmenu input[type="checkbox"] {
    background-color: var(--control-background-dark); 
    color: var(--text-dark);
}
body.light-mode #botmenu button,
body.light-mode #botmenu select,
body.light-mode #botmenu input[type="checkbox"] {
    background-color: var(--control-background-light); 
    color: var(--text-light);
}

body.dark-mode #botmenu button:hover,
body.dark-mode #botmenu select:hover {
    background-color: var(--control-background-dark); 
    color: var(--text-dark); 
}

body.light-mode #botmenu button:hover,
body.light-mode #botmenu select:hover {
    background-color: var(--control-background-light); 
    color: var(--text-dark); 
}


    





.info-grid-container {
    display: none;
    gap: 0rem;
    width: 100%;
    padding:0;
    margin: 0;
}


.info-column {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    margin:0;
    padding:0;
}


#info-second-col {
    flex-grow: 1;

}


#info-first-col, #info-third-col {
    flex: 0 1 auto;
    width: 15rem;
    padding-left: var(--mainform-margin);
    padding-right: var(--mainform-margin);
}


.info-row {
    padding: 0.005rem;
}


#info-first-col .info-row {
    text-align: left;
}


#info-second-col .info-row-one {
    text-align: center;
    font-size:var(--info-name-size);
}

#info-second-col .info-row-two {
    text-align: center;
    font-size:var(--info-named-size);
}


#info-third-col .info-row {
    text-align: right;
}






@keyframes bounceReset {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(15px);
    }
    100% {
        transform: translateX(0);
    }
}

.sheetrow.bounce {
    animation: bounceReset 0.3s ease;
}



.sheetheader {
    display: flex;
    gap: .2rem;
    padding: .8rem;
    width: 100%;
    box-sizing: border-box;
    
}
.sheetheader-fin {
    display: flex;
    gap: .2rem;
    padding: .8rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: 3.5rem;
    
}

.fin-image {
    display: none;
}

.dark-mode .sheetheader {
    color: var(--topic-dark);
}
.light-mode .sheetheader {
    color: var(--topic-light);
}

.dark-mode .sheetheader-fin {
    color: var(--topic-dark);
}
.light-mode .sheetheader-fin {
    color: var(--topic-light);
}



.sheetrow-alt-container {
    display: grid;
    width: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    overflow-x: auto;
    padding-bottom: .5rem;
    text-align: center;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    
}

.sheetrow-alt {
    display: grid;
    min-width: 77rem;
    overflow-y: hidden;
    box-sizing: border-box;
    
    text-align: center;
    /* height: var(--sheetrow-height); */
    height: auto;
    padding-top: var(--sheetrow-padding);
    padding-bottom: var(--sheetrow-padding);
}


.sheetrow-fin-container {
    display: grid;
    width: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    overflow-x: auto;
    padding-bottom: .5rem;
    text-align: center;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    
}

.sheetrow-fin {
    display: grid;
    min-width: 5rem;
    overflow-y: hidden;
    box-sizing: border-box;
    
    text-align: center;
    height: auto;
}

.findings-container {
    display: grid;
    width: auto;
    max-width: 70rem;
    overflow-y: hidden;
    box-sizing: border-box;
    overflow-x: auto;
    padding-bottom: .5rem;
    text-align: center;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: auto;

}

.findings {
    display: flex;
    flex-direction: column;
    text-align: center;
    height:100%;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    margin: auto;
    overflow-y: hidden;
    overflow-x: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; 
    height: auto;
    min-width: auto;
}

.findings-split-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    
    width: auto;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: hidden;
    
    text-align: center;
    height: var(--sheetrow-ins-height);
    border-bottom-width: 1rem;
}

.findings-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    
    width: auto;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    
    text-align: center;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    height: auto;
}

.findings-left {
    width: 1rem;
    max-width: 1rem;
    min-width: 1rem;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 1;
    margin-left: auto;
    margin-right: auto;
    writing-mode: vertical-rl; 
    text-orientation: upright; 
    vertical-align: middle;
    margin-bottom: auto;
    font-size: .8rem;
    overflow: hidden;
}


.findings-right {
    width: auto;
}

.nohbar {
    overflow-x: hidden;
}
.nowrap {
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

.dark-mode .sheetrow {
    border: .1rem solid var(--border-dark-alt); 
}

.light-mode .sheetrow {
    border: .1rem solid var(--border-light-alt); 
}

.sheetrow.one {
    grid-template-columns: repeat(1, 1fr); 

}

.sheetrow.two {
    grid-template-columns: repeat(2, 1fr); 

}

.sheetrow.three {
    grid-template-columns: repeat(3, 1fr);

}

.sheetrow.four {
    grid-template-columns: repeat(4, 1fr); 
}


.sheetrow.five {
    grid-template-columns: repeat(5, 1fr); 

}

.sheetrow.six {
    grid-template-columns: repeat(6, 1fr); 

}
.sheetrow.seven {
    grid-template-columns: repeat(7, 1fr); 

} 
.sheetrow.eight {
    grid-template-columns: repeat(8, 1fr); 

} 
.sheetrow.nine {
    grid-template-columns: repeat(9, 1fr); 
}

.sheetrow.thirteen {
    grid-template-columns: repeat(13, 1fr); 
}

.sheetrow-fin.two {
    grid-template-columns: repeat(2, 1fr); 
}
.sheetrow-fin.three {
    grid-template-columns: repeat(3, 1fr); 
}

.sheetrow-alt.fourteen {
    grid-template-columns: repeat(14, 1fr); 
}

.nogrow {
    flex-grow: 0;
}

.matv {
    
    box-sizing: border-box;
    min-width: 2rem;
    max-width: 4rem;
    padding: 0;
    margin: 0;
}
.recd {
    
    box-sizing: border-box;
    min-width: 2rem;
    max-width: 4rem;
    padding: 0;
    margin: 0;
}
.returnd {
    
    box-sizing: border-box;
    min-width: 2rem;
    max-width: 4rem;
    padding: 0;
    margin: 0;
}

.sheetrow.valve {
    height: 14rem;
}

.row-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    
    max-width: 100%;
    justify-content: flex-start;
    scroll-snap-align: start;
    flex-grow: 1;
    margin: 0;
    padding: var(--row-item-padding);

}

.wrap {
    flex-wrap: wrap;
}

.nowrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.ventgrid {
    display: flex;
    margin: auto;
    padding: auto;
    min-width: auto;
    flex-grow: 1;
    text-align: center;
    height: 0;
}
.ventgridheader {
    flex-grow: 1;
}

input[type="checkbox"].ventgrid {
    margin: 0; 
    padding: 0; 
    align-self: center; 
    margin: auto;
    padding: auto;
    max-width: var(--checkbox-size);
    min-width: var(--checkbox-size);
}


.row-item.right {
    justify-content: flex-end;
    margin-left:auto;
    margin-right: auto;

}
.row-item.flex-end {
    justify-content: flex-end !important;
    margin-left: auto;
}
.row-item.center {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.sheetheader.center {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.row-item.row {
    flex-direction: row;
    border: none;
}
.row-item.col {
    flex-direction: column;
}



.row-item.materials {
    display: block;
    max-width: 100%;
}

.label {
    display: flex;
    
    
    white-space: nowrap;
    padding: var(--padding);
    
    flex-shrink: 1;
    box-sizing: border-box;
    justify-content: space-evenly;
    align-items: center;
    width: auto;
}



.left {
    text-align:left;
    width: 100%;
}

.row-item.flex-start {
    justify-content: flex-start;

}
.dark-mode .main label {
    color: var(--topic-dark);
}
.light-mode .main label {
    color: var(--topic-light);
}


.text {
    display: flex;
    width:100%;
    /* padding: var(--padding); */
    /* padding-right: .4rem; */
    min-width: 1rem;
    /* flex-grow: 1; */
    box-sizing: border-box;
}

.text-vent {
    display: flex;
    width:100%;
    padding: var(--padding);
    padding-right: .4rem;
    min-width: 1rem;
    flex-shrink: 1;
    box-sizing: border-box;
}

.checkbox {
    display: flex;
    width:100%;
    height:100%;
    min-width: 1rem;
    flex-shrink: 1;
    box-sizing: border-box;
    justify-content: space-evenly;
}

.checkbox.right {
    justify-content: flex-end;
}


.checkbox.col {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.text input[type="text"] {
    padding: .4rem;
}

.smallest {
    min-width: 4rem;
    max-width: 4rem;
}
.xxsmall {
    min-width: 5rem;
    max-width: 5rem;

}
.xsmall {
    min-width: 7.5rem;
    max-width: 7.5rem;
}
.small {
    min-width: 9rem;
    max-width: 9rem;
}
.medium {
    /* min-width: 8rem; */
    max-width: 50rem;
}
.large {
    /* min-width: 14rem; */
    max-width: 60rem;
}
.xlarge {
    min-width: 17rem;
}

.xxlarge {
    min-width: 40rem;
    max-width: 40rem;
}


.largest {
    min-width: 59rem;
    max-width: 59rem;
}

.comments {
    min-width: 64rem;
    max-width: 64rem;
}
.comments-inner {
    min-width: 55rem;
    max-width: 55rem;
}

.max {
    max-width: 100%;
    min-width: 5rem;
}

.tenrem {
    height: 10rem;
}
.tenrem textarea {
    min-height: 10rem;
}
.twentyrem {
    height: 20rem;
}
.twentyrem textarea {
    min-height: 20rem;
}

.a1 {
    min-width: 1rem;
}


.a2 {
    min-width: 10rem;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
    padding-right: .2rem;
}
.af {
    min-width: 11rem;
}
.ra {
    min-width: 16rem;
}
.at {
    min-width: 20rem;
}



.textarea {
    display: flex;
    box-sizing: border-box;
    flex-grow: 1;
    /* margin-right: .4rem; */
    height: auto;
}

.textarea textarea {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: .1rem solid var(--border-light);
}
.textarea textarea:disabled {
    border: .1rem solid var(--border-light-disabled);
}
body.dark-mode .textarea textarea {
    border: .1rem solid var(--border-dark);
}
body.dark-mode .textarea textarea:disabled {
    border: .1rem solid var(--border-dark-disabled);
}

.final-comments textarea {
    box-sizing: border-box;
    height: 5rem;
}
.final-comments-vent textarea {
    box-sizing: border-box;
    height: auto;
}
.final-comments {
    height:7rem;
    margin-bottom: 1.2rem;
}

.final-comments textarea {
    font-weight: normal;
}

.final-comments-vent {
    height:5rem;
}

.text input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    font-weight: 550;
}
.text-vent input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.checkbox input[type="checkbox"] {
    align-self: right;
    box-sizing: border-box;
    border-radius: var(--checkbox-border-roundness);
}

input[type="checkbox"] {
    box-shadow: var(--box-shadow);
}

.text input[type="text"].dark-mode, .text-vent input[type="text"].dark-mode, .checkbox input[type="checkbox"].dark-mode {
    box-shadow: none;
}

.sheetbar {
    height: .2rem;
    width: 100%;
    max-width: 100%;
    background: black;
    box-sizing: border-box;
}

.dark-mode .sheetbar {
    background-color: var(--topic-dark);
}
.light-mode .sheetbar {
    background-color: var(--topic-light);
}


.sheetbar-alt {
    height: .9px;
    width: 100%;
    max-width: 100%;
    background: black;
}
.dark-mode .sheetbar-alt {
    background-color: var(--topic-dark);
}
.light-mode .sheetbar-alt {
    background-color: var(--topic-light);
}


.font-small {
    font-size: .65rem;
}
.font-small-alt {
    font-size: .7rem;
}
.kinda-small {
    font-size: .8rem;
}

.font-xsmall {
    font-size: .6rem;
}

img.valve-b-resize {
    width: 100%;
    height: auto;

}
img.valve-a-resize {
    width: 100%;
    height: auto;

}

.machine-material-container {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}
.valves-container {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.machine-div {
    min-width: 30rem;
    max-width: 30rem;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0.5rem;
}

.material-div {
    min-width: 50rem;
    max-width: 50rem;
    box-sizing: border-box;
    padding: 0.5rem;
}

.material-div .row-item {
    min-width: 3rem;
}

.material-div .row-item .comments-large {
    width: 10rem;
}
.material-div .row-item .smallest {
    
}

.mat-v {
    width: 5rem;
    max-width: 5rem;
    min-width: 5rem;
}
.rec-d {
    width: 7rem;
    max-width: 7rem;
    min-width: 7rem;
}
.ret-d {
    width: 8rem;
    max-width: 8rem;
    min-width: 8rem;
}
.matcom {
    width: 17rem;
    max-width: auto;
    min-width: auto;
    flex-grow: 1;
}

.tag-info {
    display: flex;
    flex-direction: column;
    width: 20rem;
    height: 100%; 
    box-sizing: border-box;
    padding: 0.5rem;
    flex-grow: 1;

}

.tag-info textarea {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    resize: none;
    height: 18rem;
    min-width: 25rem;
    margin-right: .5rem;
}


.taginfo-label {
    width: 100%;
    display: flex;
    text-align: left;
    margin-left: auto;
    justify-content: flex-start;
    box-sizing: border-box;
}

#JOB_LIST.error {
    color: var(--error-color);
}

.dark-mode #JOB_LIST.error {
    color: var(--error-color-dark);
}
.light-mode #JOB_LIST.error {
    color: var(--error-color-light);
}

#JOB_LIST {

    text-align: center;
}

.sheetrow-ins {
    display: grid;
    width: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    overflow-x: hidden;
    
    text-align: center;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    height: auto;
}

.sheetrow-ins.one {
    grid-template-columns: repeat(1, 1fr); 

}

.sheetrow-ins.two {
    grid-template-columns: repeat(2, 1fr); 

}

.sheetrow-ins.three {
    grid-template-columns: repeat(3, 1fr);

}

.sheetrow-ins.four {
    grid-template-columns: repeat(4, 1fr); 
}


.sheetrow-ins.five {
    grid-template-columns: repeat(5, 1fr); 

}

.sheetrow-ins.six {
    grid-template-columns: repeat(6, 1fr); 

}
.sheetrow-ins.seven {
    grid-template-columns: repeat(7, 1fr); 

} 
.sheetrow-ins.eight {
    grid-template-columns: repeat(8, 1fr); 

} 
.sheetrow-ins.nine {
    grid-template-columns: repeat(9, 1fr); 
}

.sheetrow-ins.valve {
    height: 14rem;
}


.sheetheader-ins {
    margin-top: 4rem;
}

.sheetheader-fin img {
    display:none;
}


.sheetheader-fin-container img {
    display:none;
}

.sheetheader-ins-maintext img {
    display: none;
}

.sheetheader-ins-maintext {
    display: none;
}

.ins-header-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; 
    width: 100%; 
    box-sizing: border-box;
}

@keyframes rollDown {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-0);
    }
    to {
        max-height: auto; 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rollUp {
    from {
        max-height: auto; 
        opacity: 1;
        transform: translateY(0);
    }
    to {
        max-height: 0;
        opacity: 0;
        transform: translateY(-0%);
    }
}

.expanded-menu.show {
    display: flex; 
    animation: rollDown 0.5s ease forwards;
}

.expanded-menu.hide {
    animation: rollUp 0.5s ease forwards;
}

.expanded-menu .button-mid {
    border-radius: .0rem;
}

#expanded-menu {
    overflow: hidden;
    position: absolute;
    top: 3.5rem; 
    left: calc(50% - 8.95rem);
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    display: none; 
    min-height: 2.3rem; 
    
    width: 20rem;
    max-height: auto;
    box-sizing: border-box;
    margin:0;
    padding:.1rem;
    border-radius: 0; 
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: .2rem;
    box-shadow: var(--box-shadow);
}

body.light-mode #expanded-menu {
    background-color: white;
    border: 1px solid #ccc;
}

body.dark-mode #expanded-menu {
    background-color: #2b2b2b;
    border: 1px solid #444;
}
input[type="text"][readonly]::selection {
    background: transparent;
}

.expanded-menu button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.expanded-menu button img {
    height: 24px;
    width: auto;
}

.ex-main-buttons {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin: 4px;
}

.ex-main-buttons button {
    width: 100%;
    height: 4rem;
}

.ex-title {
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
}

.ex-title .moreoptions-text {
    flex-grow: 1;
}




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

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

#popup {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9); 
    border: 1px solid #ccc; 
    padding: 10px; 
    border-radius: 5px; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); 
    font-size: 14px; 
    color: #333; 
    max-width: 200px; 
    z-index: 9999; 
    opacity: 0; 
}


#popup.show {
    display: block; 
    opacity: 1;
    animation: fadeIn 0.5s ease forwards; 
}


#popup.hide {
    animation: fadeOut 0.5s ease forwards; 
}

#listdiv {
    display:block;
}

body.light-mode .listdiv {
    background-color: var(--control-background-light); 
    color: var(--text-light); 
    border: 1px solid var(--border-light); 
    padding: 1rem; 
    border-radius: 0.5rem; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); 
    transition: background-color 0.3s, color 0.3s; 
}

body.dark-mode .listdiv {
    background-color: var(--control-background-dark); 
    color: var(--text-dark); 
    border: 1px solid var(--border-dark); 
    padding: 1rem; 
    border-radius: 0.5rem; 
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1); 
    transition: background-color 0.3s, color 0.3s; 
}

body.light-mode .listdiv:hover {
    background-color: var(--button-highlight-light); 
    border-color: var(--button-highlight-border-light); 
    color: var(--text-light); 
}

body.dark-mode .listdiv:hover {
    background-color: var(--button-highlight-dark); 
    border-color: var(--button-highlight-border-dark); 
    color: var(--text-dark); 
}

body.light-mode .listdiv .file-item {
    background-color: var(--control-background-light); 
    color: var(--text-light); 
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-light); 
    border-radius: 0.3rem;
}

body.dark-mode .listdiv .file-item {
    background-color: var(--control-background-dark); 
    color: var(--text-dark); 
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-dark); 
    border-radius: 0.3rem;
}

body.light-mode .listdiv .file-item:hover {
    background-color: var(--button-highlight-light); 
    border-color: var(--button-highlight-border-light);
}

body.dark-mode .listdiv .file-item:hover {
    background-color: var(--button-highlight-dark); 
    border-color: var(--button-highlight-border-dark);
}

.spinner-container {
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: auto; 
  }
  
  .spinner {
    border: .4rem solid rgba(0, 0, 0, 0.1);
    border-top: .4rem solid var(--button-highlight-dark);
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    margin-bottom: 1rem;
    margin-right: 1rem;
    animation: spin 1s linear infinite;
    display: none; 
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
.spinner-alt {
    border: 4px solid rgba(0, 0, 0, 0.1); 
    border-left-color: #888; 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem; 
    animation: spin 0.8s linear infinite; 
}

#current-users-list {
    list-style-type: none;
    padding: 5px;
    margin: 0;
    max-height: 8rem; 
    overflow-y: auto;
    border: .1px solid var(--border-light); 
    background-color: var(white);
    
    display: flex;
    flex-direction: column;
    gap:4px;
    width: 100%;
}

#current-users-list li {
    
    font-size: .6rem;
    color: var(--text-light);
    background: var(--control-background-light);
    border-radius: .7rem;
    display: flex;
    align-items: center; 
    padding-left: .5rem;
    cursor: pointer;
}



#current-users-list li:last-child {
    border-bottom: none; 
}

#current-users-list li:hover {
    background-color: var(--button-highlight-dark);
    color: white
}

#current-users-list li:before {
    content: "• "; 
    font-weight: bold;
    margin-right: 10px; 
}

body.dark-mode #current-users-list {
    border: .1px solid var(--border-dark);
    background-color: var(--background-dark);
    
}

body.dark-mode #current-users-list li {
    color: var(--text-dark);
    background: var(--control-background-dark);
    border-radius: .5rem;
}

body.dark-mode #current-users-list li:hover {
    background-color: var(--button-highlight-dark);
    color: var(--text-edit-dark);
}

body.dark-mode #current-users-list li:before {
    margin-right: 10px;
}

#current-users-list li.active:before {
    color: #00fe87;
    font-size: 1rem; 
}


#current-users-list li.inactive:before {
    color: #999; 
    font-size: 1rem; 
}



#current-users-list li.selected {
    background-color: var(--button-highlight-dark); 
    
    border-left: 4px solid rgb(0, 204, 0); 
    color: var(--text-highlight-light);
}


body.dark-mode #current-users-list li.selected {
    background-color: var(--button-highlight-dark); 
    border-left: 4px solid lime; 
}



#current-viewers-list-container, #current-users-list-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

#current-viewers-list {
    list-style-type: none;
    padding: 5px;
    margin: 0;
    overflow-y: auto;
    border: .1px solid var(--border-light); 
    background-color: var(white);
    display: flex;
    flex-direction: column;
    gap:4px;
    width: 100%;
}

#current-viewers-list, #current-users-list {
    max-height: 7.97rem; 
}

#current-viewers-list li {
    
    font-size: .6rem;
    color: var(--text-light);
    background: var(--control-background-light);
    border-radius: .7rem;
    display: flex;
    align-items: center; 
    padding-left: .5rem;
    cursor: pointer;
}


#current-viewers-list li:last-child {
    border-bottom: none; 
}

#current-viewers-list li:hover {
    background-color: var(--button-highlight-dark);
    color: white
}

#current-viewers-list li:before {
    content: "• "; 
    font-weight: bold;
    margin-right: 10px; 
}

body.dark-mode #current-viewers-list {
    border: .1px solid var(--border-dark);
    background-color: var(--background-dark);
}

body.dark-mode #current-viewers-list li {
    color: var(--text-dark);
    background: var(--control-background-dark);
    border-radius: .5rem;
}

body.dark-mode #current-viewers-list li:hover {
    background-color: var(--button-highlight-dark);
    color: var(--text-edit-dark);
}

body.dark-mode #current-viewers-list li:before {
    margin-right: 10px;
}

#current-viewers-list li.active:before {
    color: #00fe87;
    font-size: 1rem; 
}


#current-viewers-list li.inactive:before {
    color: #999; 
    font-size: 1rem; 
}


#current-viewers-list li.selected {
    background-color: var(--button-highlight-dark); 
    
    border-left: 4px solid rgb(0, 204, 0); 
    color: var(--text-highlight-light);
}


body.dark-mode #current-viewers-list li.selected {
    background-color: var(--button-highlight-dark); 
    border-left: 4px solid lime; 
}





#user-activity {
    position: fixed;
    /* padding: 10px; */
    border: .1px solid var(--border-light-alt);
    background-color: var(--control-background-light);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

#user-activity p {
    margin: 5px 0;
    font-size: 0.7rem;
    color: #444;
    line-height: 1.5;
}

#user-activity p strong {
    color: #004b73; 
}


body.dark-mode #user-activity {
    border: 1px solid #444;
    background-color: #333;
}

body.dark-mode #user-activity p {
    color: #ccc;
}

body.dark-mode #user-activity p strong {
    color: #3cff00; 
}


#user {
    font-weight: bold;
    color: var(--text-light-disabled);
}
body.dark-mode #user {
    color: var(--text-dark-disabled);
}


.scrollable-container {
    max-height: 8rem; 
    overflow-y: auto;
    border: .1px solid var(--border-light);
    background-color: var(--control-background-light);
    font-size: .8rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    height: 2rem;
    box-sizing: border-box;
}
#quote-list-expand {
    display: block;
    position: absolute;
    right: 0;
    min-width: 2rem;
    font-size: .5rem;
    z-index: 1000;
    border: none;
    background: var(--background-light) !important;
    border-radius: .5rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    height: 1.9rem;
}

#quote-list-expand.dark-mode {
    background: var(--background-dark) !important;
}
#quotes-list {
    padding: auto;
    margin-top: 0;
    margin-left: 1px;
  
}
#quotes-list p {
    margin: 0;
    padding: 0;
    width: auto;
    height: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: .6rem;
}

.quote {
    position: relative;
    padding: .35rem;
    cursor: pointer;
    width: 12rem;
    color: var(--text-light);
    background-color: var(--border-dark);
    border-radius: .5rem;
    box-sizing: border-box;
    margin: 0rem;
    padding: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.quote p {
}


.quote-summary {
    font-size: 0.6rem;
    margin: 0;
}


.quote-details {
    display: none;
    font-size: 0.6rem;
    word-break: break-word; 
    max-width: 15rem;
    margin: 0;
}

.quote-details.expanded {
    display: block;
}


.delete-quote {
    position: absolute;
    top: 0.1px;
    right: 0.1px;
    background: #006d14;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-quote:hover {
    background: hsla(118, 100%, 55%, 0.294);
}


body.dark-mode .scrollable-container {
    border: .1px solid var(--border-dark);
    background-color: var(--control-background-dark);
}

body.dark-mode .quote {
    
    color: var(--text-dark);
    background-color: var(--background-dark);
}

body.dark-mode .quote-summary {
    color: #ccc;
}

body.dark-mode .quote-details {
    color: #bbb;
}

body.dark-mode .delete-quote {
    background: #008311;
}

body.dark-mode .delete-quote:hover {
    background: #198a00;
}


@keyframes pulseBorder {
    0% {
        border-color: green;
        box-shadow: 0 0 2px green;
    }
    50% {
        border-color: limegreen;
        box-shadow: 0 0 5px limegreen;
    }
    100% {
        border-color: green;
        box-shadow: 0 0 2px green;
    }
}

.pulse-border {
    animation: pulseBorder 1s ease-in-out infinite;
}

.border-green-solid {
    box-shadow: 0 0 4px green;
}



body.light-mode .nodatafound-container {
    background-color: var(--background-light);
    color: var(--text-light);
}

body.light-mode .nodatafound {
    color: var(--highlight-light);
}


body.dark-mode .nodatafound-container {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

body.dark-mode .nodatafound {
    color: var(--highlight-dark);
}


.nodatafound-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nodatafound {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 1px solid currentColor;
    border-radius: 2rem;
}

#MACHINEOTHERTEXT {
    max-width: 7rem;
}

#MOREAA, #MOREAB, #MOREAC, #MOREAD, #MOREAE, #MOREAF {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
}
#MOREBA, #MOREBB {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
} 
#MOREBC, #MOREBD, #MOREBE {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
}

.material-valve {
    min-width: 25rem;
    max-width: 25rem;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0.5rem;
}

.material-valve img {

    max-width: 90%;
    padding: .5rem;
}

.machine-valve {
    display: flex;
    flex-direction: column;
    min-width: 30rem;
    max-width: 30rem;
    box-sizing: border-box;
}

.machine-valve img {
    max-width: 90%;
    padding: .5rem;
}

.valve-a-row-item {
    max-width: 100%;
}


.body-thickness hr {
    padding: 0;
    margin: 0;
}



.row-item input[type="text"] {
    flex-grow: 1;
}


.job-controls button, .job-controls select {
    min-height: var(--button-height);
    
}

.mid-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: var(--button-height);
}
.mid-container div {
    display: flex;

    width: 10rem;
    max-height: calc(var(--button-height) / 2);
    min-height: calc(var(--button-height) / 2);
    height: calc(var(--button-height) / 2);
    justify-content: center;
    align-items: center;
}
.mid-container select {
    max-height: calc(var(--button-height) / 2);
    min-height: calc(var(--button-height) / 2);
    height: calc(var(--button-height) / 2);
    height: 100%;
}
.mid-container button {
    max-height: calc(var(--button-height) / 2);
    min-height: calc(var(--button-height) / 2);
    height: calc(var(--button-height) / 2);
    height: 100%;
    border-radius: 0 !important;
}

.mid-container img {
    height: 16px !important;
    width: auto !important;
}



#botmenu {
    padding: 0;
    margin: 0;
}

.bulb {
    margin: 0;
    padding: 0;
}

.bulb #modeToggle { 
    width: 3.5rem;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border-top-right-radius: 3rem;
    border-bottom-right-radius: 3rem;
}

#DOWNLOAD {
    max-width: 2.5rem;
}


.mainform-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /* margin: auto; */
    /* overflow: auto; */
    position: relative;
    box-sizing: border-box;
    box-shadow: var(--box-shadow);
    background: var(--actual-background-light);
    width: 100%;
    height: 100vh;
}

.mainform-container.dark-mode {
    background: var(--actual-background-dark);
}

#mainform {
    max-width: 97rem;
    width: 100%;
    /* max-height: 100%; */
    /* flex: 1; */
    /* margin-top: 0rem; */
    padding-top: 5rem;
    padding-bottom: 7rem;
    overflow-y: auto;
    height: 100vh;
    background-color: inherit;
}


button:disabled {
    opacity: .5;
    cursor: not-allowed !important;
}

select:disabled {
    opacity: .5;
    cursor: not-allowed !important;

}

div, select {
    text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.15); 
}





#snowflakes {
    transition: opacity 2s ease; 
    z-index: 9999;
}

#snowflakes.fade-out {
    opacity: 0; 
}

#TAGINFO {
    /* width: 10rem; */
    /* margin-left: auto; */
}


.sheetrow-alt-container {
    overflow-x: auto;
    flex-wrap: wrap;
    flex-direction: row;
    width: auto;
}

.sheetrow-alt-container div {
    border: none !important;
}

.machine-material-container, .valves-container {
    overflow-x: auto;
    flex-wrap: wrap;
    flex-direction: row;
    width: auto;
}
@media (max-width: 1250px) {

    .sheetrow-alt-container {
        width: 15rem;
        min-width: 100%;
    }
    .machine-material-container, .valves-container {
        width: 15rem;
        min-width: 100%;
    }


}
.text-blur {
    filter: blur(2px) !important;
}

select.light-mode,
textarea.light-mode,
input[type="text"].light-mode {
    background: var(--control-background-light);
    color: var(--text-edit-light);
    border: 1px solid var(--border-light);
    transition: var(--transition) !important;
}

select.dark-mode,
textarea.dark-mode,
input[type="text"].dark-mode {
    background: var(--control-background-dark);
    color: var(--text-edit-dark);
    border: 1px solid var(--border-dark);
    transition: var(--transition) !important;
}

button.light-mode {
    background: var(--control-background-light);
    color: var(--text-light);
    border: 1px solid var(--border-light);
    transition: var(--transition) !important;
} 

button.dark-mode {
    background: var(--control-background-dark);
    color: var(--text-dark);
    border: 1px solid var(--border-dark);
    transition: var(--transition) !important;
}






body.light-mode input[type="text"][readonly] {
    background-color: var(--control-background-light);
    color: var(--text-light-disabled) ;
    border: 1px solid var(--border-light-disabled);
    cursor: not-allowed;
}


body.dark-mode input[type="text"][readonly] {
    background-color: var(--control-background-dark);
    color: var(--text-dark-disabled);
    border: 1px solid var(--border-dark-disabled);
    cursor: not-allowed;
}


body.light-mode textarea[readonly] {
    background-color: var(--control-background-light);
    color: var(--text-light-disabled);
    border: 1px solid var(--border-light-disabled);
    cursor: not-allowed;
}


body.dark-mode textarea[readonly] {
    background-color: var(--control-background-dark);
    color: var(--text-dark-disabled);
    border: 1px solid var(--border-dark-disabled);
    cursor: not-allowed;
}


input[type="text"].light-mode:-webkit-autofill,
textarea.light-mode:-webkit-autofill,
select.light-mode:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--control-background-light) inset;
    background: var(--control-background-light);
    -webkit-text-fill-color: var(--text-edit-light); 
    color: var(--text-edit-light); 
    caret-color: var(--text-edit-light); 
    border: 1px solid var(--border-light);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}


input[type="text"].dark-mode:-webkit-autofill,
textarea.dark-mode:-webkit-autofill,
select.dark-mode:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--control-background-dark) inset;
    background: var(--control-background-dark);
    -webkit-text-fill-color: var(--text-edit-dark); 
    color: var(--text-edit-dark); 
    caret-color: var(--text-edit-dark); 
    border: 1px solid var(--border-dark);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}


input[type="text"].light-mode::spelling-error,
textarea.light-mode::spelling-error,
select.light-mode::spelling-error {
    -webkit-text-fill-color: var(--text-edit-light); 
    color: var(--text-edit-light); 
    text-decoration: underline wavy var(--text-edit-light); 
}


input[type="text"].dark-mode::spelling-error,
textarea.dark-mode::spelling-error,
select.dark-mode::spelling-error {
    -webkit-text-fill-color: var(--text-edit-dark); 
    color: var(--text-edit-dark); 
    text-decoration: underline wavy var(--text-edit-dark); 
}


input[type="text"].light-mode::grammar-error,
textarea.light-mode::grammar-error,
select.light-mode::grammar-error {
    -webkit-text-fill-color: var(--text-edit-light);
    color: var(--text-edit-light);
    text-decoration: underline dotted var(--text-edit-light); 
}

input[type="text"].dark-mode::grammar-error,
textarea.dark-mode::grammar-error,
select.dark-mode::grammar-error {
    -webkit-text-fill-color: var(--text-edit-dark);
    color: var(--text-edit-dark);
    text-decoration: underline dotted var(--text-edit-dark); 
}



/* .newer-jobs {
    color: darkgreen;
    background: rgba(0, 255, 0, 0.07);
    text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.9) !important; 
    box-shadow: var(--box-shadow) !important;
} */
.newer-jobs {
    background: green;
    color: white;
    text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.9) !important; 
}
.newer-jobs-dark {
    background: green;
    color: white;
    text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.9) !important; 
}
/* .newer-jobs-dark {
    color: var(--text-edit-dark);
    background: rgba(0, 255, 0, 0.04);
} */
/* .editing-jobs {
    color: blue;
    background: rgba(0, 136, 255, 0.07);
    text-shadow: 2px 3px 3px black;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.9);
} */
.editing-jobs {
    background: blue;
    color: white;
    text-shadow: 2px 3px 3px black; /* Ensure the shadow is applied */
}

/* .editing-jobs-dark {
    color: var(--button-highlight-dark);
    background: rgba(0, 136, 255, 0.04);
} */

.editing-jobs-dark {
    background: blue;
    color: white;
    text-shadow: 2px 3px 3px black; /* Ensure the shadow is applied */
}
@keyframes pulseBackground {
    0% {
        background-color: var(--background-green-glass, rgba(0, 255, 0, 0.9));
    }
    50% {
        background-color: rgba(0, 255, 0, 0.25);
    }
    100% {
        background-color: var(--background-green-glass, rgba(0, 255, 0, 0.9));
    }
}
@keyframes pulseBackgroundSelect {
    0% {
        background-color: rgba(0, 0, 0, 0);
    }
    50% {
        background-color: rgba(0, 31, 0, 0.61);
    }
    100% {
        background-color: rgb(0, 18, 0);
    }
}

button.background-green-glass {
    animation: pulseBackground 3s forwards;
}

select.background-green-glass {
    animation: pulseBackgroundSelect 3s forwards;
    background: black;
    
}


/* ---------------- skb popup --------------- */

/* ---------------- unfinished-jobs popup --------------- */

#jobs {
    min-width: 100%;
}
#job-list {
    width: auto;
}
#jobs-popup {
    background: var(--control-background-light);
    color: var(--text-light);
    box-shadow: var(--box-shadow);
    max-height: calc(2.5rem * 15);
    max-width: auto;
    overflow: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    border: .1px solid;
    border-color: var(--border-light);
}
#jobs-popup.dark-mode {
    background: var(--control-background-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

#jobs-popup .option {
    width: auto;

    font-size: .8rem;
    max-height: 7rem;
    min-height: 2.2rem;
    align-items: center;
    /* margin: auto; */
    /* padding: 1rem; */
    gap: 0rem;
    display: flex;
    flex-direction: row;
    
}
#jobs-popup .option-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: .5rem;
    padding-right: .2rem;
}
#jobs-popup .option-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding-left: .2rem;
    padding-right: .5rem;
}
#jobs-popup img {
    height: 16px;
    width: auto;
    
}
#jobs-popup .option:hover {
    background: var(--popup-option-highlight);
    color: var(--text-dark);
    transition: background .25s ease;
}
#jobs-popup .option div {
}

#jobs-popup-container {
    width: 100vw;
    height: 100vh;
}

/* // multi */
#multi {
    /* min-width: 100%; */
    max-width: 10rem;
}
#multi-popup {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* left: 50%; */
    /* top: 50%; */
    /* left: 0; */
    top: 0;
    background: var(--control-background-light);
    color: var(--text-light);
    box-shadow: var(--box-shadow);
    min-height: calc(100vh - 5rem);
    max-height: calc(100vh - 5rem);
    max-width: var(--mainform-width);
    width: 100vw;
    overflow: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 10rem;
    flex-grow: 1;

    border: .1px solid;
    border-color: var(--border-light);
    border-radius: .2rem;
}


#multi-popup.dark-mode {
    border: .1px solid;
    border-color: var(--border-dark);
}

.print-multi-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    height: 5rem;
    justify-content: center;
}
.print-multi-inner {
    display: flex;
    flex-direction: row;
    max-width: var(--mainform-width);
    min-width: 10rem;
    flex-grow: 1;
}
#print-multi {
    flex-grow: 1;
    width: 90%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#multi-popup-close {
    flex-grow: 1;
    width: 10%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#print-multi img {
    height: 32px;
    width: auto;
}

#multi-popup.dark-mode {
    background: var(--control-background-dark);
    color: var(--text-dark);
}

.option.selected {
    background: blue;
    color: white;
}

#multi-popup .option {
    max-width: auto;

    font-size: .8rem;
    max-height: 7rem;
    min-height: 2.2rem;
    align-items: center;
    /* margin: auto; */
    /* padding: 1rem; */
    gap: 0rem;
    display: flex;
    flex-direction: row;
    
}
#multi-popup .option-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: .5rem;
    padding-right: .2rem;
    display: none;
}
#multi-popup .option-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding-left: .5rem;
    padding-right: .5rem;
}
#multi-popup img {
    height: 16px;
    width: auto;
    
}
#multi-popup .option:hover {
    background: var(--popup-option-highlight);
    color: var(--text-dark);
    transition: background .25s ease;
}
#multi-popup .option div {
}

#multi-popup-container {
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.777);
}

#multi-popup-container button {
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
#multi-popup-container img {
    width: 32px;
    height: auto;
}

/* ------------------------------------------- */

#unfinished-jobs {
    max-width: 100%;
    display: flex;
    align-items: center;
    /* flex-direction: column; */
    gap: .4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#unfinished-jobs img {

}
#LOGOUT {
    max-width: 4rem;
}
#unfinished-jobs-popup {
    background: var(--control-background-light);
    color: var(--text-light);
    box-shadow: var(--box-shadow);
    max-height: calc(2.5rem * 12);
    overflow: auto;
    border: .1px solid;
    border-color: var(--border-light);
}
#unfinished-jobs-popup.dark-mode {
    background: var(--control-background-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

#unfinished-jobs-popup .option {
    max-width: 100%;
    display: flex;
    flex-direction: row;
    font-size: .8rem;
    max-height: 7rem;
    height: 2.5rem;
    align-items: center;
    margin: auto;
    /* padding: 1rem; */
    gap: 0rem;
    box-sizing: border-box;
    
}
#unfinished-jobs-popup .option-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: .5rem;
    padding-right: .2rem;
}
#unfinished-jobs-popup .option-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    padding-left: .2rem;
    padding-right: .5rem;
}
#unfinished-jobs-popup img {
    height: 16px;
    width: auto;
}
#unfinished-jobs-popup .option:hover {
    background: var(--popup-option-highlight);
    color: var(--text-dark);
}
#unfinished-jobs-popup .option div {
}

#unfinished-jobs-popup-container {
    width: 100vw;
    height: 100vh;
}

/* ---------------- ins popup --------------- */

#ins {
    max-width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

#ins img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}
#ins-popup {
    background: var(--control-background-light);
    color: var(--text-light);
    box-shadow: var(--box-shadow);
    max-height: calc(2.5rem * 15);
    overflow: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    border: .1px solid;
    border-color: var(--border-light);
}
#ins-popup.dark-mode {
    background: var(--control-background-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

#ins-popup .option {
    max-width: 100%;

    font-size: .8rem;
    max-height: 7rem;
    min-height: 2.2rem;
    align-items: center;
    /* margin: auto; */
    /* padding: 1rem; */
    gap: .4rem;
    display: flex;
    flex-direction: row;
    
}
#ins-popup .option-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: .5rem;
    padding-right: .2rem;
}
#ins-popup .option-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    padding-left: .2rem;
    padding-right: .5rem;
}
#ins-popup img {
    height: 16px;
    width: auto;
    
}
#ins-popup .option:hover {
    background: var(--popup-option-highlight);
    color: var(--text-dark);
    transition: background .25s ease;
}
#ins-popup .option div {
}

#ins-popup-container {
    width: 100vw;
    height: 100vh;
}
#user-activity-container {
    width: 100vw;
    height: 100vh;
}

/* ---------------- quotes popup --------------- */

#quotes {
    min-width: 100%;
    display: flex;
    align-items: center;
    /* flex-direction: column; */
    gap: 1rem;
}
#quotes img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}
#quotes-popup {
    background: var(--control-background-light);
    color: var(--text-light);
    box-shadow: var(--box-shadow);
    max-height: calc(2.5rem * 15);
    overflow: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    border: .1px solid;
    border-color: var(--border-light);
}
#quotes-popup.dark-mode {
    background: var(--control-background-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

#quotes-popup .option {
    width: 100%;

    font-size: .8rem;
    max-height: 7rem;
    min-height: 2.2rem;
    align-items: center;
    /* margin: auto; */
    /* padding: 1rem; */
    gap: 1rem;
    display: flex;
    flex-direction: row;
    
}
#quotes-popup .option-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: .5rem;
    padding-right: .2rem;
}
#quotes-popup .option-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    padding-left: .2rem;
    padding-right: .5rem;
}
#quotes-popup img {
    height: 16px;
    width: auto;
    
}
#quotes-popup .option:hover {
    background: var(--popup-option-highlight);
    color: var(--text-dark);
    transition: background .25s ease;
}
#quotes-popup .option div {
}

#quotes-popup-container {
    width: 100vw;
    height: 100vh;
}
#quotes-read-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
}
#quotes-read {
    background: var(--control-background-light);
    color: var(--text-light);
    box-shadow: var(--box-shadow);
    max-height: 77vh;
    overflow: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    font-size: .8rem;
    position: relative;
    user-select: text;
    cursor: crosshair;
    border: .1px solid;
    border-color: var(--border-light);
}
#quotes-read.dark-mode {

    background: var(--control-background-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

#quotes-read img {
    user-select: none;
}

.delete-quote-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .35rem;
    margin-top: .5rem;
}
.delete-quote-button img {
    height: 16px;
    width: auto;
}


#unfinished-jobs, #ins, #quotes { 
    justify-content: center;
}

.expanded-menu button {
    font-size: .7rem;
}
/* ------------------------------------------- */

#skbforms {
    /* min-width: 100%; */
    min-width: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
}

#skbforms-popup {
    background: var(--control-background-light);
    color: var(--text-light);
    box-shadow: var(--box-shadow);
    max-height: calc(2.5rem * 7);
    overflow: auto;
    border: .1px solid;
    border-color: var(--border-light);
}
#skbforms-popup.dark-mode {
    background: var(--control-background-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

#skbforms-popup .option {
    max-width: 100%;
    display: flex;
    flex-direction: row;
    font-size: .8rem;
    max-height: 7rem;
    height: 2.5rem;
    align-items: center;
    margin: auto;
    /* padding: 1rem; */
    gap: 0rem;
    
}
#skbforms-popup .option-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: .2rem;
    padding-right: .2rem;
}
#skbforms-popup .option-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    padding-left: .2rem;
    padding-right: .2rem;
}
#skbforms-popup img {
    height: 16px;
    width: auto;
}
#skbforms-popup .option:hover {
    background: var(--popup-option-highlight);
    color: var(--text-dark);
}
#skbforms-popup .option div {
}

#skbforms-popup-container {
    width: 100vw;
    height: 100vh;
}

/* ------------------------------------- */
.show-popup {
    position: absolute;
    display: flex;
    z-index: 9999;
}

.close-popup {
    display: none;
}
/* ------------------------------------------- */


button.light-mode.highlight {
    background-color: var(--button-highlight-selected-light) !important; 
    border: .1rem solid var(--button-highlight-border-light); 
    color: var(--text-dark) !important; 
    opacity: .98.5;
}
 
button.dark-mode.highlight {
    background-color: var(--button-highlight-selected-dark) !important;
    border: .1rem solid var(--button-highlight-border-dark);
    color: var(--text-dark) !important;
    opacity: .98.5;
}

#hide-user-activity {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    font-size: .5rem;
    padding:0;
    margin:0;
    opacity: .5;
    cursor: pointer;
}
#hide-user-activity img {
    height: 12px;
    width: auto;
}

#hide-user-activity:hover {
    opacity: 1;
}

.small-icon {
    height:24px;
    width:auto;
}
.titlebar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    right: 7px;
    top: 7px;
}

.titlebar img {
    justify-content: flex-end;
}

.row-item-inner {
    margin: 0;
    padding: 1rem;
}

.dark-mode .row-item {
    border: .1rem solid var(--border-dark-alt); 
    /* border-top: 0; */
    border-left: 0;
    /* border-bottom: 0; */
}
.light-mode .row-item {
    border: .1rem solid var(--border-light-alt); 
    /* border-top: 0; */
    border-left: 0;
    /* border-bottom: 0; */
}

.nowrap .row-item {

    border: 0;
}

.row-item {

    padding-top: var(--sheetrow-padding);
    padding-bottom: var(--sheetrow-padding);
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: center;
}

.sheetrow {
    display: flex;
    flex-wrap: wrap;
    border: none !important;
    
}


@media (min-width: 1000px) {
    .row-item {
        flex-wrap: nowrap;
    }

}
@media (max-width: 1170px) {
    .comments {
        min-width: 1rem;
        max-width: 100%;
    }
    .comments-inner {
        min-width: 1rem;
        max-width: 100%;
    }
    .xxlarge, .large, .xlarge, .largest {
        min-width: 1rem;
        max-width: 100%;
    }
}
@media (max-width: 1300px) {
    .comments-inner {
        min-width: 1rem;
        max-width: 100%;
    }
}



.ventgrid label {
    border:0 !important ;
}

.font-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.calibration-multiple-container {
    display: flex;
    /* margin: auto; */
    justify-content: center;
    padding: 0;
    flex-direction: row;
    box-sizing: border-box;
}

.calibration-multiple {
    /* width: 100%; */
    padding: .75rem;
}

.calibration-multiple-container div {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
}
.calibration-multiple-container input[type="text"] {
    /* padding: .5rem; */
}
.calibration-add-remove-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    padding: 1rem;
    gap: .5rem;
}
.calibration-add-remove-container button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
    width: 100%;
}

#add-parameter-button {
    height: 5rem;
}

.calibration-add-remove-container img {
    height: 24px;
    width: auto;
}

#parameter-container {
    display: block;

}
#parameter-container input[type="text"] {
    width: 100%;

}

#lower-container {
    display: block;

}
#lower-container input[type="text"] {
    width: 100%;
}

#upper-container {
    display: block;

}
#upper-container input[type="text"] {
    width: 100%;
}

#asfound-container {
    display: block;

}
#asfound-container input[type="text"] {
    width: 100%;
}

#asreturned-container {
    display: block;

}
#asreturned-container input[type="text"] {
    width: 100%;
}

.dual-column {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.dual-column .row-item {
    border: 0;
}

.dual-mid {
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

.dual-mid .row-item {
    border: 0;
}




.lisco-certifies {
    padding: 2rem;
}

#snowflakes {
    display: none;
}


#total-reset {
    display: none;
    padding-left: 1rem;
    padding-right: 1rem;
    cursor: pointer;
    font-style:italic;
    transition: var(--transition);
    font-size: .67rem;
}

#total-reset:hover {
    color: var(--popup-option-highlight);
    transition: var(--transition);
}
#form-container.show {
    flex-direction: column;
    overflow: auto;
}

#equip {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}
#msds {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}


@media (max-width: 766px) {
    #topmenu {
        width: 100%;
    }
    #botmenu {
        width: calc(100% - 7px);
    }
    .row-item {
        justify-content: flex-start;
    }

    #mainform {
        max-width: 100%;
        width: 100%;
        /* max-height: 100%; */
        /* flex: 1; */
        /* margin-top: 0rem; */
        padding-top: 7rem;
        padding-bottom: 7rem;
        overflow-y: auto;
        max-height: 86vh;
        background-color: inherit;
    }
}





body, button, input, textarea, code {
  font-family: 'Fira Code', monospace;
  /* font-weight: 500; */
}



#expanded-menu {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* transform: translateY(-0.5rem); */
}

#expanded-menu.showing {
    opacity: 1;
    /* transform: translateY(0); */
}

#expanded-menu.hiding {
    opacity: 0;
    /* transform: translateY(-0.5rem); */
}



@media (max-width: 768px) {
    .row-item label {
        /* word-break: break-word;  */
        white-space: normal; 
        font-size: 16px;
        margin: 0;
    }
    .row-item input[type="text"] {
        margin: 0;
    }

    .valves-container {
        display: flex;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        justify-content: center;
    }
    .tag-info {
        max-width: 40vw;
    }
    .valves-container img {
        /* max-width: 24px; */
    }
    .valves-container div {
        max-width: 100%;
    }

    #TAGINFO {

    }
    .machine-valve, .material-valve, .tag-info {
        max-width: 100%;
        min-width: 20rem;
        max-width: 20rem;
    }

    .machine-material-container, .values-container {
        width: 100vw;
        width: auto;
    }
    #REPAIRSCOPE {
        width: 5rem;
    }

    #job-controls button {
        max-width: 48px;
    }

    .mid-container div {
        width: 96px;
    }
    #PHOTOB, #jobs {
        min-width: 96px !important;
        max-height: 24px !important;
    }


    .tag-info textarea {
        flex: 1;
        width: 100%;
        box-sizing: border-box;
        resize: none;
        height: 18rem;
        min-width: 5rem;
        margin-right: 0;
    }

}

/* ==========================================================
   UNIVERSAL OVERLAY RED SCROLLBAR — PURE CSS (NO JS)
   ========================================================== */
#mainform {

  overflow: auto;
}
/* ===== WEBKIT CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 2.7px;
}
*::-webkit-scrollbar-thumb {
  background: #1679cf;
}

/* Transparent track (background area behind thumb) */
::-webkit-scrollbar-track {
  background: transparent;
}


#no-connection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); 
    z-index: 9999;
    display: none; 
    align-items: center; 
    justify-content: center; 
    color: black;
}


#no-connection-dialog {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: black;
}
#no-connection-dialog .dark-mode {
    background: black;
    color: white;
}
#no-connection-dialog h2 {
    margin-bottom: 1rem;
}

#no-connection-dialog p {
    font-size: 1.2rem;
}




/* Trigger button */
#messanger-open {
  background: var(--control-background-light);
  color: var(--text-light);
  border: 1px solid black;
  border-radius: 2rem 0 0 2rem;
  cursor: pointer;
  transition: background 0.2s ease;
  position: fixed;
  right: 5px;
  bottom: 64px;
  z-index: 9999;
  opacity: .9;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 16px;
  box-sizing: border-box;
      height: calc(var(--button-height) / 2);
      width: 5rem;
}

#messanger-open.dark-mode {
  background: var(--control-background-dark);
  color: var(--text-dark);
}

/* Floating chat popup */
#messages-popup {
  display: none;
  position: fixed;
  right: 5px;
  bottom: 64px; /* above the button */
  z-index: 10000;
  pointer-events: none; /* let clicks pass through except for popup */
  border-radius: 18px 0 0 18px;
}

/* The chat window */
.messages-popup-content {
  pointer-events: all; /* enable clicks inside iframe */
  background: #111;
  border-radius: 12px;
  width: 380px;
  height: 520px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 0 18px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
  transform: translateY(20px);
  opacity: 0;
  border-radius: 18px 0 0 18px;
}

/* Iframe inside */
#messages-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #111;
  border-radius: 18px 0 0 18px;
}

/* Show animation */
#messages-popup.show .messages-popup-content {
  transform: translateY(0);
  opacity: 1;
}