.underline{text-decoration: underline; text-decoration-thickness: 1px;}
.bold{font-weight: bold;}
.normal{font-weight: normal;}
.italic{font-style: italic;}
.gray-text{color: #6b6f82;}
.signature, .timestamp, .time, .time2, .date, .cursor, .cursor:hover{cursor: pointer !important;}
.hidden, .hidden2{display: none;}
.font8{font-size: 8px;}
.font9{font-size: 9px;}
.font10{font-size: 10px;}
.font12{font-size: 12px;}
.font14{font-size: 14px;}
.font16{font-size: 16px;}
.font18{font-size: 18px;}
.font20{font-size: 20px;}
.font24{font-size: 24px;}
.font36{font-size: 36px;}
.text-right{text-align: right;}
.relative{position: relative;}
.absolute{position: absolute;}
.capitalize{text-transform: capitalize;}
.uppercase{text-transform: uppercase;}
.p-10{padding: 10px;}
.pr-4{padding-right: 4px;}
.auto-data{color: rgba(0,0,0,.01); cursor: pointer;}
.lime{color: lime}
.red{color: red}
.blue{color: blue}
.navy{color: navy}
.rejected{color: red}
.ok{color: green}
.rejected .value, .ok .value{
	color: black;
	font-weight: bold;
}


.bglime{background-color: lime}
.text-shadow{text-shadow: 2px 2px 2px #ccc;}
/* body > div:not(#main){color: white;} */
/* {color: black;} */
.green{color: green};

/* PCS: hide Back + user initials until first render completes (body.pcs-loading removed in pcs.js). */
body.pcs-loading .header a.back,
body.pcs-loading #pcsUserInitials {
	display: none !important;
}

/* Validation (PCC3-style): inRange, nearLimit, outOfRange, error */
.editable.error, .actual.error,
td.editable.error, td.actual.error{
	color: white;
	background-color: red !important;
}
.inRange,
td.inRange{
	background-color: lime !important;
}
.outOfRange,
td.outOfRange{
	background-color: red !important;
	color: white !important;
}
.nearLimit,
td.nearLimit{
	background-color: orange !important;
}

/* 
.faded .value{
	color: blue;
	/* color: rgba(0,0,0,.3) !important; */
/* } */ 

p a{
	color: blue;
}

td.crossout
{
	background: linear-gradient(to right bottom, #ffffff 0%,#ffffff 49.9%,#000000 50%,#000000 51%,#ffffff 51.1%,#ffffff 100%);
}

body{
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	padding: 0 15px;
}

.hidden.show{
	display: block !important;
}

tr.thick{
	border: solid 2px black;
}

body.edit td.static, body.edit td.actual, td:not(.editable){
/* border-color: white;
background-color: black;
color: white; */
}

td.gray-label .label, td.grey-label .label{
	color: gray;
	font-weight: normal;

}
.key.static{
	
}


.key.editable, .template td.editable, .recipe td.editable{
	background-color: rgba(8, 248, 8, 0.247);
	
}
.key.editable.yellow, .template td.editable.yellow{
	background-color: #FFFF00;
}



.key.signature, .template td.signature, .template td.shift, .template td.date, .template td.time,
.pcc td.signature,.pcc td.shift, .pcc td.date, .pcc .template td.shift, .pcc .template td.date, .pcc .template td.time	

{
	background-color: rgba(32, 8, 248, 0.247);
}

.key.actual, .template td.actual, .pcc td.actual{
	background-color: rgba(248, 184, 8, 0.247) !important;
}

.pcc .hide-on-pcc{
	display: none;
}

.key.dynamic, .template td[data-field]:not(.on-off):not(.pass-fail):not(.yes-no):not(.checkbox):not(.editable):not(.actual):not(.signature):not(.shift):not(.date):not(.time){
	background-color: rgba(248, 56, 8, 0.247);
}

body.editing td:not(.active){
	opacity: .3;
	border-color: #ccc;
}

body.editing table{
	border-color: #ccc;
}

td.value-customer .value{

}



.p0{
	padding: 0;
}
.p5{
	padding: 5px;
}
.p20{padding: 20px;}

.mb-2{margin-bottom: 2px;}
.mb-5{margin-bottom: 5px;}
.mb-10{margin-bottom: 10px;}
.mb-15{margin-bottom: 15px;}
.mb-20{margin-bottom: 20px;}
.mb-25{margin-bottom: 25px;}
.mb-30{margin-bottom: 30px;}

.mt-2{margin-top: 2px;}
.mt-5{margin-top: 5px;}
.mt-10{margin-top: 10px;}
.mt-15{margin-top: 15px;}
.mt-20{margin-top: 20px;}
.mt-25{margin-top: 25px;}
.mt-30{margin-top: 30px;}

.h-10{height: 10px;}
.h-20{height: 20px;}
.h-30{
	height: 30px;
}
.h-35{
	height: 35px;
}
.h-40{height: 40px;}
.h-50{
	height: 50px;
}
/* .letter-break {
	writing-mode: vertical-rl;
  } */

  .letter-break {
	white-space: pre;
	display: inline-block;
  }
  
  .letter-break span {
	display: block;
  }
td.cs-2{column-span: 2;}
td.cs-3{column-span: 3;}
td.cs-all{column-span: all;}

td.corner-number {
	position: relative;
  }

  td.corner-number span{
	position: relative;
	left: -2px;
  }
  
  td.corner-number::before {
	position: absolute;
	top: 2px;
	left: 2px;
	font-size: 0.6em;
	pointer-events: none;
	font-weight: normal !important;
  }


  
  /* number classes */
  td.corner-number-1::before { content: "1"; }
  td.corner-number-2::before { content: "2"; }
  td.corner-number-3::before { content: "3"; }
  td.corner-number-4::before { content: "4"; }
  td.corner-number-5::before { content: "5"; }
  td.corner-number-6::before { content: "6"; }
  td.corner-number-7::before { content: "7"; }
  td.corner-number-8::before { content: "8"; }

table{
	table-layout: fixed;
	width: 100%;
	margin-top: -1px;
	border-color: black;
	border-spacing: 0;
    border-collapse: collapse;
	min-width: 600px;
	max-width: 900px;
}
.blr{
	border-left: 1px solid black;
	border-right: 1px solid black;
}

.bl{
	border-left: 1px solid black;
}

.br{
	border-right: 1px solid black;
}
.noBorder, .no-border{border: none}
.bl-none{border-left: none;} 
.br-none{border-right: none;}
.bt-none{border-top: none;}
.bb-none{border-bottom: none;}

.bl-white{border-left: 1px solid white;}
.br-white{border-right: 1px solid white;}
.bt-white{border-top: 1px solid white;}
.bb-white{border-bottom: 1px solid white;}

.bb{
	border-bottom: 1px solid black;
}
.bt{
	border-top: 1px solid black;
}


.b{border: 1px solid black; }
.b2{border-width: 2px;}

tr.b2{border-width: 2px }

.bt2{border-top-width: 2px;}
.br2{border-right-width: 2px;}
.bb2{border-bottom-width: 2px;}
.bl2{border-left-width: 2px;}

.font-normal{
	font-weight: normal !important;
}

.normal .label{
	font-weight: normal !important;
}

.align-bottom{
	vertical-align: bottom;
}

.page{
	display: none;
}
.page.show{
	display: block;
}
/* Lot PCS (#main.pcc): page cards size to table content; toolbar aligns to this width */
.card.page{
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
}
.card{
	border-radius: 10px;
	box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
	margin: 10px 0;
	padding: 15px 20px;
}
.fixed{
	position: fixed;
}
.pcc-nav{
	font-weight: bold;
	text-transform: uppercase;
	font-size: 14px;
	left: 10px;
	top: 30px;
	position: relative;
}
.page-link{
	margin-bottom: 5px;
}

a{
	text-decoration: none;
	color: black;
}
.innerTable{
	/* border: none; */
}

.highlight{
	background-color: yellow;
}

.bg-grey{
	background-color: #ccc;
}
.bg-light-gray{
	background-color: #eee;
}
.gray{
	color: #666;
}
.image{
	padding: 5px;
	text-align: center;
}
.image img{
	object-fit: cover;
	border: 2px solid black;
	width: 95%;
	height: 95%;
	max-width: 250px;
	max-height: 250px;
	min-height: 250px;
	cursor: pointer;
}
/* default cell height */
td{ 
	height: 20px;
	padding-left: 4px;
	overflow: hidden;
	white-space: nowrap;
	transition: opacity 0.6s, border-color 0.6s;
  	-webkit-transition: opacity 0.6s, border-color 0.6s;
}

/* Chart.js: default td height (20px) + overflow hidden scrunches plots; hidden tabs init at wrong size */
td.pcs-chart-cell{
	height: auto;
	min-height: 300px;
	overflow: visible;
	white-space: normal;
	vertical-align: top;
}
.pcs-chart-wrap{
	box-sizing: border-box;
	height: 300px;
	min-height: 300px;
	width: 100%;
	position: relative;
}

.wrap{
	overflow: visible;
	white-space: normal;;
}

.w-33{
	width: 33.3%;
}

.clearBorderTop{
	border-width: 1px;
	border-style: solid;
	border-color: white white black; 
}

.label{
	padding: 1px;
}

td.checkbox .label{
	cursor: pointer;
	position: relative; 
	left: 3px; 
	bottom: 2px;
}

.center{
	text-align: center;
}

.left{
	text-align: left;
}

.right{
	text-align: right;
	padding-right: 5px;
}
.float-left{
	float: left;
}
.float-right{
	float: right;
}
.clear{
	clear: both;
}

.editable{
	cursor: pointer;
	padding-bottom: 2px;
}

.editable.underline .value{
	position: relative;
	bottom: 2px;
}

h3{
	font-weight: bold;
	color: black;
}

.editable.active{
	/* color: green; */
	background-color:lime;
	border: #ccc;
}

/* .editable.error, .actual.error{
	color: white;
	background-color:red !important;
} */
.inRange{
	/* color: green !important; */
	background-color: lime !important;
}

.outOfRange{
	background-color:orange !important;

}



.editable{
	/* background-color:lightgreen; */
}

.textarea{
	padding: 10px 8px -8px 0;
	vertical-align: top;
	/* border: none; */
}

.ql-editor, input{
	/* border: 1px solid black; */
	border-radius: 5px;

}

.ql-align-center{
	text-align: center;
}

.ql-align-right{
	text-align: right;	
}

.ql-size-small{
	font-size: 12px;
}

.ql-size-large{
	font-size: 24px;
}

.note{
	color: orange;
}

.note::after {
	content: "*";
  }

.v-top{
	vertical-align: top;
}

.v-bottom{
	vertical-align: bottom;
}

.label{
	font-weight: bold;
}

input:focus, textarea:focus, select:focus{
	outline: none;
}



#close-editor{
	position: absolute;
	right: 7px;
	top: 10px;
	color: white;
	font-weight: bold;
	cursor: pointer;
}
#close-editor .material-icons{
	font-size: 18px;
}
#backdrop{
	position: fixed; /* Stay in place */
	z-index: 50; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */

}

[contenteditable] {
	outline: 0px solid transparent;
}

[contenteditable="true"].single-line {
    white-space: nowrap;
    width:200px;
    overflow: hidden;
} 
[contenteditable="true"].single-line br {
    display:none;

}
[contenteditable="true"].single-line * {
    display:inline;
    white-space:nowrap;
}

#editor{
	position: absolute;
	border: 1px solid gray;	
	background-color: white;
	min-width: 360px;
	max-width: min(560px, calc(100vw - 24px));
	border-radius: 10px;
	z-index: 100;
	box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
}	

#editor-body{
	text-align: center;
	padding: 0 10px 6px 10px;
	min-width: 0;
}

#editor .input[contenteditable="true"]{
	border: 1px solid black;
}

#editor .input2{
	box-sizing: border-box;
	min-width: 160px;
	width: min(320px, calc(100vw - 100px));
	max-width: 100%;
    height: calc(100% - 40px);
    font-size: 16px;
    margin: 5px 5px 5px 0;
    font-family: Helvetica, Helvetica, sans-serif;
    color: black;
    padding: 5px 10px;
	resize: both;
	border-radius: 0;
	border-width: 0 0 1px 0;
	text-align: center;
	border-color: #333;
}

#editor .input2.textbox{
	min-width: 180px;
	width: min(360px, calc(100vw - 100px));
}

/* Range fields: two inputs side by side — keep each narrow enough to fit */
#editor:has(#value2) .input2{
	width: min(200px, calc((100% - 24px) / 2));
	min-width: 100px;
	max-width: calc(50% - 4px);
}

#editor:focus-visible {
	border: none;
  }

#editor textarea.input{
	padding-top: 15px;
}

::-webkit-input-placeholder,  :-ms-input-placeholder, ::placeholder   { /* Edge */
	color:darkgray;
  }

/* #main, #code{
	float: left;
} */
	

  #code, #groups{
	/* position: fixed;
	left: 1000px; */
	position: absolute;
	top: 25px;
	right: 10px;
	width: 600px;
	height: 500px;
	border: 1px solid gray;
	border-radius: 10px;
	box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
	margin: 10px;
	color: black !important;
	z-index: 90;
	opacity: .95;
  }
  #groups{
	background-color: rgba(255,255,255,.95);
	top: 525px;
	width: 300px;
	min-width: 250px;
	height: 300px;
	min-height: 250px;
	/* transition: width 2s, height 4s; */
  }
  /* #groupList{
	
  } */

  #ace{
	  height: calc(100% - 36px);
	  border-radius: 0 0 10px 10px;
  }



.codeError{

	/* border: 1px solid red; */
}

.key{
	display: inline;
	margin: 3px 5px;
	padding: 5px;
	border: 1px solid gray;
}

#codeHeader, #groupsHeader, #editor-header{
	padding: 10px;
	text-align: center; 
	background-color: #333;
	color: white;
	border-radius: 5px 5px 0 0;
	font-weight: bold;
	font-size: 14px;
	/* position: relative; */
	/* cursor: grab; */
}

#closeJSONEditor, #closeGroups{
	position: absolute;
	right: 9px;
	top: 7px;
	font-size: 16px;
	cursor: pointer;
}

#editor-header{
	padding: 25px 30px 10px 10px;
	text-align: left;
}

/* 
input[type="checkbox"]{
    -webkit-appearance: initial;
    appearance: initial;
    background: gray;
    width: 10px;
    height: 10px;
    border: none;
    position: relative;
}
input[type="checkbox"]:checked {
    background: white;
}
input[type="checkbox"]:checked:after {
    content: "X";
    color: #fff;

    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    
    content: " ";
    width: 100%;
    height: 100%;
    background: blue;
    top: 0;
    left: 0;
     
}


*/
/* Back button column lines up with #pageNav (150px); actions live in #main.pcs-main-toolbar */
.header.pcs-top-bar{
	margin: 10px 15px 0;
	padding: 10px 0;
	min-width: 0;
	max-width: none;
	display: flex;
	align-items: center;
	gap: 14px;
	box-sizing: border-box;
}
.pcs-top-bar__nav{
	flex: 0 0 150px;
	min-width: 0;
}
.pcs-top-bar__nav #nav{
	display: flex;
	align-items: center;
}

.pcs-main-toolbar{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 2px;
	flex-shrink: 0;
}

.pcs-main-pages{
	min-width: 0;
}

.pcs-main-toolbar #pcsUserInitials,
.header #pcsUserInitials{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 40px;
	margin-left: 0;
	margin-right: 0;
	font-size: 14px;
	font-weight: bold;
	min-width: 1.75em;
	min-height: 32px;
	padding: 7px 10px;
	line-height: normal;
	box-sizing: border-box;
	text-align: center;
	background-color: #546e7a;
	color: white;
	vertical-align: middle;
}
.pcs-main-toolbar #pcsUserInitials:hover,
.header #pcsUserInitials:hover{
	background-color: black;
	color: white;
}
.pcs-main-toolbar a{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 40px;
	margin-right: 0;
	font-size: 14px;
	font-weight: bold; 
	min-height: 32px;
	padding: 7px 10px;
	line-height: normal;
	box-sizing: border-box;
	text-align: center;
	background-color: #03a9f4;
	color: white
}
.pcs-main-toolbar a.pcs-toolbar-icon{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	width: 36px;
	height: 36px;
	padding: 0;
	font-weight: normal;
	line-height: 1;
	box-sizing: border-box;
	overflow: hidden;
}
.pcs-main-toolbar a.pcs-toolbar-icon .material-icons{
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	font-size: 22px;
	line-height: 1;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	text-align: center;
	text-indent: 0;
	letter-spacing: 0;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-feature-settings: 'liga';
	font-feature-settings: 'liga';
	font-variant: normal;
	text-transform: none;
	word-wrap: normal;
	white-space: nowrap;
	direction: ltr;
}
.pcs-main-toolbar a.pcs-toolbar-icon .fa{
	font-size: 16px;
	line-height: 1;
	vertical-align: middle;
}
.pcs-main-toolbar #pcsUserInitials.hidden,
.pcs-main-toolbar a.hidden,
.header #pcsUserInitials.hidden,
.header a.hidden{
	display: none;
}

.header a.green{
	background-color: #03f45b;
	color: black;
}

.header a.grey{
	background-color: #666;
}

.pcs-main-toolbar a.green{
	background-color: #03f45b;
	color: black;
}

.pcs-main-toolbar a.grey{
	background-color: #666;
}

a.current{
	background-color:black;
}

.header a .active, .header a:hover,
.pcs-main-toolbar a:hover{
	color: white;
	background-color: black;
}
#removeSticky:hover{
	background-color: #b71c1c !important;
	color: white !important;
}
.pcs-layout{
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 15px;
	min-width: 860px;
}
#pageNav.pcs-page-nav{
	position: sticky;
	top: 10px;
	flex: 0 0 150px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	max-height: calc(100vh - 20px);
	overflow-y: auto;
	padding: 4px 0 8px;
	box-sizing: border-box;
	z-index: 20;
}
#main.pcc{
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	box-sizing: border-box;
}
.pcs-main-stack{
	width: max-content;
	max-width: 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
}
#pageNav.pcs-page-nav a{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	width: 100%;
	min-height: 32px;
	padding: 8px 10px;
	border-left: 4px solid transparent;
	border-radius: 0 8px 8px 0;
	background-color: #eceff1;
	color: #263238;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.2;
	text-align: left;
}
#pageNav.pcs-page-nav a:hover,
#pageNav.pcs-page-nav a.current{
	background-color: #03a9f4;
	border-left-color: black;
	color: white;
}
#groups{
	min-width: 350px !important;
	min-height: 350px !important;
}
#groupList{
	width: fit-content;
	margin: 5px;
	opacity: 0;

}

  .switch {
	display: block;
	margin: 5px;
	width: fit-content;
  }
  .switch span{
	position: relative;
	bottom: 6px;
	left: 6px; 
	font-size: 14px;
	cursor: pointer;
  }

  .switch input[type=checkbox] {
	display: none;
  }
  .switch input[type=checkbox]:checked + label {
	background-color: #2f7df9;
  }
  .switch input[type=checkbox]:checked + label:after {
	left: 16.5px;
  }
  .switch label {
	transition: all 200ms ease-in-out;
	display: inline-block;
	position: relative;
	height: 20px;
	width: 35px;
	border-radius: 20px;
	cursor: pointer;
	background-color: #ddd;
	color: transparent;
  }
  .switch label:after {
	transition: all 200ms ease-in-out;
	content: " ";
	position: absolute;
	height: 17px;
	width: 17px;
	border-radius: 50%;
	background-color: white;
	top: 1.5px;
	left: 2px;
	right: auto;
	box-shadow: 1px 1px 1px gray;
  }
  .switch input[type=checkbox]:checked + label {
	background-color: #55c946;
  }
  .switch label {
	background-color: #ff4949;
  }

.sticky{
	position: absolute !important;
	top: 90px;
	left: 900px;
	width: 200px;
	height: 200px;
	background-color: #fff59d;
	box-shadow: rgba(0, 0, 0, .5) 5px 5px 5px;
	border-radius: 10px;
	opacity: .9;
	padding: 5px;
	transform: rotate(-5deg);
}

.sticky .note-title{
	font-weight: bold;
	text-align: center;
	font-size: 14px;
	position: absolute;
	width: 100%;
	top: 5px;
	cursor: grab;
}

.sticky-body{
	margin: 10px;
	width: auto;
	position: absolute;
	top: 20px;
	left: 6px;
	right: 6px;
	bottom: 40px;
	overflow: hidden;
}

.sticky-footer{
	position: absolute;
	left: 6px;
	right: 6px;
	bottom: 5px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	z-index: 3;
	pointer-events: auto;
}

.sticky-color-wrap{
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	pointer-events: auto;
}

.sticky-print-btn{
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.08);
	color: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
	transition: background 0.12s ease, transform 0.12s ease;
}

.sticky-print-btn:hover{
	background: rgba(0, 0, 0, 0.14);
	transform: scale(1.05);
}

.sticky-print-btn .fa{
	font-size: 13px;
	line-height: 1;
}

.pcs-sticky-print-modal{
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.pcs-sticky-print-modal.hidden{
	display: none !important;
}

.pcs-sticky-print-modal__backdrop{
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.pcs-sticky-print-modal__dialog{
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	max-height: 85vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.pcs-sticky-print-modal__header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #e0e0e0;
}

.pcs-sticky-print-modal__header h5{
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
}

.pcs-sticky-print-modal__close{
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	color: #616161;
}

.pcs-sticky-print-modal__body{
	padding: 12px 16px 8px;
	overflow-y: auto;
	flex: 1 1 auto;
}

.pcs-sticky-print-modal__body h6{
	margin: 0 0 8px;
	font-size: 0.9rem;
	font-weight: 600;
}

#pcs-sticky-print-printer-list .pcs-sticky-print-printer-option{
	margin: 6px 0;
}

#pcs-sticky-print-printer-list .caption{
	font-size: 0.85rem;
	color: #757575;
	margin: 4px 0;
}

.pcs-sticky-print-modal__footer{
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid #e0e0e0;
}

/*
 * Materialize toasts: PCS basic layout omits materialize.css; M.toast still runs (core.js).
 * Supply container placement, stacking above stickies / PCS modal, and chip backgrounds.
 */
#toast-container{
	position: fixed;
	z-index: 11000;
	display: block;
	pointer-events: none;
}
#toast-container .toast{
	pointer-events: auto;
}

@media only screen and (max-width: 600px){
	#toast-container{
		bottom: 0;
		left: 0;
		right: 0;
		min-width: 100%;
		padding: 0 8px;
		box-sizing: border-box;
	}
}
@media only screen and (min-width: 601px) and (max-width: 992px){
	#toast-container{
		bottom: 7%;
		left: 5%;
		max-width: 90%;
	}
}
@media only screen and (min-width: 993px){
	#toast-container{
		top: 10%;
		right: 7%;
		max-width: 86%;
	}
}

.toast{
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	position: relative;
	top: 0;
	width: auto;
	max-width: 100%;
	min-height: 48px;
	margin-top: 10px;
	padding: 12px 20px;
	cursor: default;
	color: #fff !important;
	border-radius: 4px;
	background-color: #323232 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
}

.toast.no-space{
	display: block !important;
}

.toast.green{
	background-color: #2e7d32 !important;
}
.toast.orange{
	background-color: #ef6c00 !important;
}
.toast.red{
	background-color: #c62828 !important;
}
.toast.blue{
	background-color: #1565c0 !important;
}

.toast .toast-inner{
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.toast .toast-icon{
	position: relative;
	top: 2px;
	flex-shrink: 0;
	font-size: 22px;
	color: #fff !important;
}
.toast .toast-text{
	flex: 1;
	min-width: 0;
	line-height: 1.4;
}
.toast .toast-detail{
	display: block;
	margin-top: 0.35em;
	font-size: 0.85em;
	line-height: 1.45;
	opacity: 0.95;
}

.sticky-color-toggle{
	width: 16px;
	height: 16px;
	min-width: 16px;
	min-height: 16px;
	padding: 0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
	flex-shrink: 0;
	background-color: #fff59d;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sticky-color-toggle:hover{
	transform: scale(1.08);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.sticky-color-wrap.is-open .sticky-color-toggle{
	box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.sticky-color-palette{
	display: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: calc(100% - 22px);
	padding: 6px;
	margin: 0;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.06);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.sticky-color-wrap.is-open .sticky-color-palette{
	display: flex;
}

.sticky-color-swatch{
	width: 14px;
	height: 14px;
	min-width: 14px;
	min-height: 14px;
	padding: 0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
	flex-shrink: 0;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sticky-color-swatch:hover{
	transform: scale(1.12);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sticky-color-swatch.is-active{
	box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.9);
}

#removeSticky{
	position: relative;
	background-color: red !important;
	padding: 0 !important;
	min-width: 36px;
	width: 36px;
	height: 36px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
#removeSticky.pcs-trash-sort-hover{
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 4px 14px rgba(0, 0, 0, 0.35);
	transform: scale(1.06);
}
/* jQuery UI sortable connectWith target — overlay trash; pointer-events off so sticky droppable on #removeSticky still works */
#removeSticky .pcs-trash-sort-target{
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	min-width: 28px;
	min-height: 28px;
	pointer-events: none;
}
#pageNav .pcs-page-nav-placeholder{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 32px;
	margin: 0;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 0 8px 8px 0;
	box-sizing: border-box;
}


@keyframes opacityPulse {
	from { opacity: 1; }
	50% { opacity: .8; }
	to { opacity: 1; }
  }

.highlight *{
	background-color: yellow !important;
	/* animation: opacityPulse 1s linear infinite;  */
}

div.flex{
	display: flex;
}
td.center div.flex{
	justify-content: center;
}

td.right div.flex{
	justify-content: right;
}


.on-off input[type="checkbox"], .yes-no input[type="checkbox"]  {
	margin-left: 12px;
}

.checkbox .label{
	margin: 2px 0 0 0;
	top: -18px;
    left: 25px !important;
}



input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--form-background);
	margin: 2px 2px 0 4px;
  
	font: inherit;
	color: currentColor;
	width: 1.2em;
	height: 1.2em;
	border: 0.15em solid currentColor;
	border-radius: 0.15em;
	transform: translateY(-0.075em);

	display: grid;
	
	place-content: center;
  }
  
  input[type="checkbox"]:not(.group)::before {
	content: "";
	width: 0.65em;
	height: 0.65em;
	/* clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); */
	clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
	transform: scale(0);
	transform-origin: bottom left;
	transition: 120ms transform ease-in-out;
	box-shadow: inset 1em 1em var(--form-control-color);
	/* Windows High Contrast Mode */
	background-color: CanvasText;
  }
  
  input[type="checkbox"]:checked:not(.group)::before {
	transform: scale(1);
  }
  
  /* input[type="checkbox"]:focus {
	outline: max(2px, 0.15em) solid currentColor;
	outline-offset: max(2px, 0.15em);
  } */
  
  input[type="checkbox"]:not(.group):disabled {
	--form-control-color: var(--form-control-disabled);
  
	color: var(--form-control-disabled);
	cursor: not-allowed;
  }
  tbody{
	position: relative;
  }
  .addRow, .removeRow{
	position: absolute;
	bottom: -22px;
	color: #03a9f4;
	left: 0px;
	font-weight: bold;
	font-size: 24px;
	cursor: pointer;
  }
  .removeRow{
	left: 20px;

  }

  p{
	margin: 0px !important;
	/* display: inline-block; */
	}
.value p:first-child {
	display: inline-block;
}

	.ql-editor {
		resize: both;
		min-height: 60px;
		min-width: 500px;
		padding: 5px 10px !important;
		/* overflow-y: scroll; */
	}

	
	.ql-container {
		resize: both;
		min-height: 60px;
		min-width: 500px;
		/* overflow-y: scroll; */
	}

	li{
		margin-top: 10px;
	}

	@media print {
		.header{
			display: none;
		}
		.pcs-main-toolbar{
			display: none !important;
		}
		.pcs-layout{
			display: block;
			margin: 0;
			min-width: 0;
		}
		#pageNav.pcs-page-nav{
			display: none;
		}
		.no-print{
			display: none !important;
			visibility: hidden;
		}
		.card.page:not(.no-print) { 
			display: block !important;
			break-after: always;
			border-radius: 0px;
			box-shadow: none;
			margin: 0;
			padding: 0;
			font-size: .75em !important;
			float: none;
			page-break-after: always;
			print-color-adjust: exact !important;
			-webkit-print-color-adjust: exact !important;
		} /* page-break-after works, as well */
		.font24{
			font-size:20px;
		}
		.font18{
			font-size: 14px;
		}
		.font16{
			font-size: 12px;
		}
		.font14{
			font-size: 10px;
		}
		.font10{
			font-size: 8px;
		}
		.addRow, .removeRow{
			display: none;
		}
		
	}

/*
  SweetAlert2 — scoped to .swal2-container only (never #main / .recipe / table cells).
  Do not load materialize.css on recipe2: it restyles the whole PCS page.
  Do not use confirmButtonColor with buttonsStyling:false + btnClass (inline color clashes with .red).
*/
.swal2-container .swal2-popup .swal2-actions{
	flex-direction: row-reverse;
	margin: 0.25em auto 0 !important;
	z-index: 0 !important;
}
.swal2-container .swal2-popup .swal2-actions button.swal2-confirm,
.swal2-container .swal2-popup .swal2-actions button.swal2-cancel{
	margin: 5px;
	border-radius: 4px !important;
	line-height: 36px;
	min-height: 36px;
	padding: 0 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 1rem;
	box-sizing: border-box;
	border: none;
	cursor: pointer;
	font-weight: 500;
}
.swal2-container .swal2-popup .swal2-actions button.swal2-confirm.btn.red,
.swal2-container .swal2-popup .swal2-actions button.swal2-confirm.red{
	color: #fff !important;
	background-color: #f44336 !important;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12) !important;
}
.swal2-container .swal2-popup .swal2-actions button.swal2-confirm.btn.red:hover,
.swal2-container .swal2-popup .swal2-actions button.swal2-confirm.red:hover{
	background-color: #e53935 !important;
	color: #fff !important;
}
.swal2-container .swal2-popup .swal2-actions button.swal2-cancel.btn.grey,
.swal2-container .swal2-popup .swal2-actions button.swal2-cancel.grey{
	color: #fff !important;
	background-color: #757575 !important;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12) !important;
}
.swal2-container .swal2-popup .swal2-actions button.swal2-cancel.btn.grey:hover,
.swal2-container .swal2-popup .swal2-actions button.swal2-cancel.grey:hover{
	background-color: #616161 !important;
	color: #fff !important;
}

/* Fallback when confirm uses primary (core dialogs) — still container-scoped */
.swal2-container .swal2-popup .swal2-actions button.swal2-confirm.primary,
.swal2-container .swal2-popup .swal2-actions button.swal2-confirm.btn.primary{
	background-color: #1976d2;
	color: #fff;
	padding: 0.45em 1.25em;
	font-size: 0.95em;
}
.swal2-container .swal2-popup .swal2-actions button.swal2-confirm.primary:hover,
.swal2-container .swal2-popup .swal2-actions button.swal2-confirm.btn.primary:hover{
	background-color: #1565c0;
}

/*
  PCS page rail: keep tab wrappers and add button aligned as full-width vertical tabs.
*/
#pageNav{
	display: flex;
	align-items: center;
	flex-direction: column;
}

/* Extra PCS page tab (+) — match the vertical page tabs in the left rail. */
#pageNav a.pcs-add-page-tab{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	align-self: stretch;
	margin: 4px 0 0;
	box-sizing: border-box;
	line-height: 1;
	padding: 8px 10px;
}
#pageNav a.pcs-add-page-tab .pcs-add-page-tab-icon{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	width: 1em;
	height: 1em;
	overflow: visible;
}

/* Add-page modal (Material-style, aligned with admin template) */
.swal2-popup.pcs-add-page-popup{
	padding: 1.25rem 1.25rem 1rem;
	border-radius: 8px;
	max-width: 28em;
}
.pcs-add-page-popup .swal2-title{
	font-size: 1.15rem;
	font-weight: 600;
	color: #37474f;
	padding-bottom: 0.5rem;
}
.pcs-add-page-form{
	text-align: left;
	color: #455a64;
}
.pcs-add-page-field{
	margin-bottom: 1rem;
}
.pcs-add-page-field:last-of-type{
	margin-bottom: 0.5rem;
}
.pcs-add-page-label{
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #78909c;
	margin-bottom: 0.35rem;
}
.pcs-add-page-select{
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 15px;
	border: 1px solid #cfd8dc;
	border-radius: 4px;
	background: #fff;
	color: #263238;
	height: auto;
	line-height: 1.4;
}
.pcs-add-page-select:focus{
	border-color: #03a9f4;
	outline: none;
	box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.2);
}
.pcs-add-page-name-row{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 0.75rem;
}
.pcs-add-page-base{
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 14px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #546e7a;
	border-radius: 40px;
	white-space: nowrap;
	max-width: 42%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pcs-add-page-suffix-field{
	flex: 1 1 auto;
	min-width: 0;
}
.pcs-add-page-input{
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 15px;
	border: 1px solid #cfd8dc;
	border-radius: 4px;
	background: #fff;
	color: #263238;
	margin: 0;
}
.pcs-add-page-input:focus{
	border-color: #03a9f4;
	outline: none;
	box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.2);
}
.pcs-add-page-hint{
	margin: 0;
	padding-top: 0.25rem;
	font-size: 12px;
	color: #90a4ae;
	line-height: 1.4;
}
.pcs-add-page-hint span{
	font-weight: 600;
	color: #546e7a;
}

/* Swal actions: pill buttons consistent with PCS header */
.swal2-popup.pcs-add-page-popup .swal2-actions{
	margin-top: 1rem;
	padding-top: 0;
	gap: 10px;
}
.swal2-popup.pcs-add-page-popup .swal2-actions button.pcs-add-page-btn{
	border-radius: 40px !important;
	font-weight: bold !important;
	font-size: 14px !important;
	padding: 0.55em 1.35em !important;
	min-width: 6.5rem;
	text-transform: none !important;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12) !important;
}
.swal2-popup.pcs-add-page-popup .swal2-actions button.pcs-add-page-btn-confirm{
	background-color: #03a9f4 !important;
	color: #fff !important;
}
.swal2-popup.pcs-add-page-popup .swal2-actions button.pcs-add-page-btn-confirm:hover{
	background-color: #039be5 !important;
	color: #fff !important;
}
.swal2-popup.pcs-add-page-popup .swal2-actions button.pcs-add-page-btn-cancel{
	background-color: #78909c !important;
	color: #fff !important;
}
.swal2-popup.pcs-add-page-popup .swal2-actions button.pcs-add-page-btn-cancel:hover{
	background-color: #546e7a !important;
	color: #fff !important;
}

/* Extra PCS page tab: drag to remove zone, double-click label to rename */
#pageNav .pcs-page-tab-wrap{
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
	cursor: grab;
}
#pageNav .pcs-page-tab-wrap .pcs-page-tab-link{
	margin: 0;
}
#pageNav .pcs-page-tab-wrap .pcs-page-tab-label{
	cursor: inherit;
	outline: none;
	border-radius: 2px;
	-webkit-user-select: none;
	user-select: none;
}
#pageNav .pcs-page-tab-wrap .pcs-page-tab-label[contenteditable="true"]{
	cursor: text;
	-webkit-user-select: text;
	user-select: text;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.45);
	padding: 0 2px;
}
#pageNav .pcs-page-tab-wrap.ui-draggable-dragging{
	opacity: 0.85;
	cursor: grabbing;
}

/* Admin lot-level recipe override (RMTW PCC3 parity): highlight differs from part/recipe default */
.pcc .pcc3-override {
	background-color: #03a9f4 !important;
	border-left: 3px solid #0288d1 !important;
}
td.inRange.pcc3-override,
.pcc td.inRange.pcc3-override {
	background-color: lime !important;
	border-left: 3px solid #00cc00 !important;
}