@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,700;1,400;1,700&display=swap');

ul, ol {
    margin-bottom:18px;
    padding-left:1.5em;
} /*copied from application.css*/

.vertical-label {
	line-height:150%;
}

img.field-title-hint {
	height: 1.25em;
	width: auto;
	float: none;
	display: inline;
	vertical-align: -0.2em;
	margin-left: 0.2em;
	cursor: pointer;
	-webkit-tap-highlight-color: rgba(55, 108, 169, 0.2);
}

.field-title-hint-tooltip {
	display: none;
	position: fixed;
	z-index: 10050;
	max-width: 85vw;
	padding: 8px 12px;
	background: #333;
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

#main-pane.dark-mode .field-title-hint-tooltip {
	background: #e8e8e8;
	color: #222;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mini-input {
	border:.5px solid #576974 !important;
	padding:1.5px !important;
}

.integer_input {
	width:50px !important;
}


.public-listing {
	display: grid;
  grid-template-columns: auto auto;
}

.public-listing div {
	margin-left: 10px;
	margin-bottom:30px;
}


a[target="_blank"]::after {
  content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
  margin: 0px 3px 0px 5px;
}

#helpButton::after, .home_button::after,#contactUs::after,.thumbnail::after,.stat-link a::after, .new-footer a::after, .arrow-action-btn::after, .receipt-link::after {
  content: '' !important;
}

#clear-filters-btn {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

#clear-filters-btn:hover {
  opacity: 1;
}

img[src*="delete.svg"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

img.inline-delete-icon[src*="delete.svg"] {
  width: 1.35em;
  height: 1.35em;
  vertical-align: middle;
}

img.action-icon[src*="delete.svg"],
img.action-icon[src*="stamp.png"] {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

a:hover .inline-delete-icon {
  opacity: 0.75;
}

a:hover .action-icon {
  opacity: 0.75;
}

#clear-filters-btn img {
  height: 22px;
  vertical-align: middle;
}

a.arrow-action-btn::after {
  content: ' \2192'; /* Unicode right arrow */
  font-size: 120%;
  margin-left: 8px;
  vertical-align: middle;
}

a[target="_blank"].arrow-action-btn::after {
  content: ' \2192'; /* Always show arrow, not icon */
  margin-left: 8px;
  vertical-align: middle;
}

@media screen and (max-width: 800px) {
	.public-listing {
  grid-template-columns: auto;
};
}

.center-tab ul {
	display: none;
}

.link-list {
	columns: 2;
}

.link-list li {
	list-style-type: none !important;
	margin-left: 10px !important;
}

.link-list-single {
	columns: 1;
}

.link-list-single li {
	list-style-type: none !important;
	margin-left: 10px !important;
}

@media screen and (max-width: 800px) {
.link-list {
	columns: 1;
};	
}

.div-grid {
	display:grid;
	grid-template-columns: fit-content(400px) fit-content(400px) fit-content(400px) fit-content(400px);
  grid-gap: 5px;
  box-sizing: border-box;
  padding: 10px;
	
}

@media screen and (max-width:1400px) {
	.div-grid {
		grid-template-columns: fit-content(400px) fit-content(400px) fit-content(400px);
	}
}

@media screen and (max-width:1000px) {
	.div-grid {
		grid-template-columns: fit-content(400px) fit-content(400px);
	}
}

@media screen and (max-width:800px) {
	.div-grid {
		grid-template-columns: fit-content(400px) ;
	}
}


/*.big-div-list div:nth-child(odd) { 
background-color: #ebf4fb;}*/

.big-div-list input[type="checkbox" i] {
	margin-right: 10px !important;
}

.big-div-list div tr {
	background-color: inherit !important;
}

.big-div-list tr div { margin: 0px}

.embedded-table {
  margin:-4px;
}

.hidden {
	display: none;
}
/* context menu on top of page */
.center-tab {
	margin:0;
	padding: 5px 5px 5px 0px;
	/*justify-content: center;
	display: flex;*/
	overflow: visible;
	text-align: center;
}

.center-tab-submenu {
	padding: 4px 12px 8px;
	margin: 6px auto 0;
	justify-content: center;
	vertical-align:center;
	display:none;
	background:#f5f7fb;
	border:1px solid #ccd3e4;
	border-radius:6px;
	box-shadow:0 2px 8px rgba(0,0,0,0.12);
	text-align:left;
	max-width: 340px;
}

.center-tab-submenu-item {
	padding: 4px 0;
}

.center-tab-submenu-item + .center-tab-submenu-item {
	border-top:1px solid #e2e6f0;
}

.center-tab-submenu-item a {
	display:block;
}

@media (max-width: 640px) {
	.center-tab-submenu {
		padding: 0 12px 8px;
	}
}

.right-tab ul li {
	list-style:none;
	display:inline-block;
}

.user-avatar-menu {
	display: inline-block;
	position: relative;
	vertical-align: top;
	margin-left: 8px;
	z-index: 2100;
}

.user-avatar-trigger {
	display: inline-block;
	width: 32px;
	height: 32px;
	border-radius: 16px;
	background-color: #1f66d1;
	color: #e8e6e1;
	text-align: center;
	line-height: 32px;
	text-decoration: none;
	font-weight: normal;
	font-size: 12px;
	border: 1px solid #e8e6e1;
}

.user-avatar-trigger:hover,
.user-avatar-trigger:focus {
	text-decoration: none;
	background-color: #174fa5;
	color: #e8e6e1;
}

.user-avatar-initials {
	display: inline-block;
	width: 100%;
}

.user-avatar-dropdown {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: auto;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background-color: #ffffff;
	border: 1px solid #c9d3eb;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	z-index: 2200;
}

.user-avatar-menu.open .user-avatar-dropdown {
	display: block;
}

.user-avatar-dropdown li {
	list-style: none;
	display: block;
}

.user-avatar-dropdown li a {
	display: block;
	padding: 7px 10px;
	text-align: left;
	color: #2e3b5f;
	text-decoration: none;
	white-space: nowrap;
}

.user-avatar-dropdown li a:hover {
	background-color: #f2f6ff;
	color: #1f66d1;
}

.user-avatar-icon {
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-right: 8px;
}

.user-avatar-settings-icon {
	width: 18px;
	height: 18px;
}

.user-avatar-divider {
	border-top: 1px solid #dbe3f6;
	margin: 4px 0;
	height: 0;
	padding: 0;
}

/*can be used to establish width despite center-div's justify center */
.full_width {
	width:350px !important;
}
/* override input-box borders */
.no_borders tr td {
	border:none !important;
}
 /*completely override center-div's justify center */
.unjustified {
	 display:block !important;
 }

.center-div.unjustified .responsive-center-div > .column .input-box-table {
  width: 100%;
  margin: 0;
}

.responsive-center-div {
  margin: 10px auto;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 10px;
}

/* Default: 3-column layout */
.responsive-center-div > .column {
  flex: 0 1 32%;
  box-sizing: border-box;
  border: .05px solid #bde0f1;
  box-shadow: 1px 1px #bde0f1;
  border-radius: 5px;
  background-color: #ffffff;
  font-size: 13px;
  line-height: normal;
  padding: 10px;
}

/* Two-column override (applies even on large screens) */
.responsive-center-div.two-column > .column {
  flex: 0 1 48%;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .responsive-center-div > .column,
  .responsive-center-div.two-column > .column {
    flex: 0 1 48%;
  }
}

@media (max-width: 600px) {
  .responsive-center-div > .column,
  .responsive-center-div.two-column > .column {
    flex: 0 1 100%;
  }
}




.center-div{
  margin:10px auto;
  padding: 10px;
  border: .05px solid #bde0f1;
  box-shadow: 1px 1px #bde0f1;
  line-height:normal;
  font-size: 13px;
  display: flex;
  justify-content: center;
 	border-radius: 5px;
  background-color: #ffffff;
}

/* Produce index cards (shared desktop/mobile styles) */
.produce-name {
  padding-bottom:10px;
  font-size:200%;
  font-weight:bold;
  line-height:normal;
}

td .produce-name {
  width:300px;
}

.produce-level, .produce-common-infestation {
  font-size:125%;
  padding-bottom:5px;
  padding-left: 10px;
  font-weight:bold;
  text-align:right;
}

.produce-picture-image {
  height:100px;
  margin-right: 20px !important;
}

.uri-picture-image {
  height:200px;
}

.produces-index-full-width {
  width: 98%;
  margin: 0 auto;
}

/* Shared portal card styling */
.portal-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  clear: both;
  margin-top: 20px;
  box-sizing: border-box;
}

.portal-card-grid > .portal-card {
  flex: 1 1 320px;
}

.portal-card-grid.grid-fixed-columns {
  display: grid;
  gap: 20px;
  margin-top: 16px;
  grid-template-columns: 1fr;
}

.portal-card-grid.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

@media (min-width: 600px) {
  .portal-card-grid.grid-fixed-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .portal-card-grid.grid-fixed-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .portal-card-grid.grid-fixed-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.portal-card {
  border: 1px solid #dbe2ec;
  border-radius: 14px;
  padding: 0;
  background: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  font-size: 13px;
}

.portal-icon-launcher-link img.portal-icon-invert {
  filter: invert(1);
  transform: scale(1.28);
}

.portal-card-padded {
  padding: 20px 22px;
}

.portal-card-spaced {
  margin: 20px 0;
}

.portal-card-header {
  font-weight: 700;
  margin: 0;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 13px;
}

.home-dashboard .portal-card,
.home-dashboard .portal-card-header,
.home-dashboard .portal-card-body,
.home-dashboard .portal-card-body a,
.home-dashboard .portal-card h6 {
  font-size: 18px;
}

.home-dashboard .home-welcome {
  padding: 10px 16px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.home-dashboard .home-welcome h6 {
  display: inline;
  margin: 0;
  line-height: 1.3;
}

.home-dashboard .home-welcome-warning {
  margin-top: 10px;
  flex: 1 0 100%;
}

.home-dashboard .home-layout-tour-link {
  margin-left: 0;
  font-weight: 700;
  white-space: nowrap;
  font-size: 16px;
  background-color: #ecec02;
  padding: 2px 8px;
  border-radius: 3px;
}

.layout-tour-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 8000;
}

.layout-tour-overlay.is-open {
  display: block;
}

.layout-tour-modal {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 440px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 90px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe2ec;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  padding: 18px 20px 16px;
  z-index: 8002;
  box-sizing: border-box;
  flex-direction: column;
}

.layout-tour-modal.is-open {
  display: flex;
}

.layout-tour-modal.layout-tour-modal-upper {
  bottom: auto;
  top: 96px;
}

.layout-tour-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  color: #64748b;
}

.layout-tour-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex: 0 0 auto;
}

.layout-tour-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
}

.layout-tour-dot.is-active {
  background: #0f766e;
}

.layout-tour-kicker {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.layout-tour-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  color: #0f172a;
  flex: 0 0 auto;
}

.layout-tour-body {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.layout-tour-copy {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.45;
  color: #334155;
}

.layout-tour-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: auto;
  background: #ffffff;
  padding-top: 8px;
}

.layout-tour-arrow {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #3C7D8A;
  background: #cae3e8;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layout-tour-arrow:hover,
.layout-tour-arrow:focus {
  background: #b7d6dc;
}

.layout-tour-arrow-icon {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #0f172a;
  border-right: 2px solid #0f172a;
}

.layout-tour-arrow-icon-next {
  transform: rotate(45deg);
  margin-left: -2px;
}

.layout-tour-arrow-icon-back {
  transform: rotate(-135deg);
  margin-right: -2px;
}

.layout-tour-stop-icon {
  display: none;
  width: 12px;
  height: 12px;
  background: #0f172a;
  border-radius: 2px;
}

.layout-tour-arrow.is-stop .layout-tour-arrow-icon-next {
  display: none;
}

.layout-tour-arrow.is-stop .layout-tour-stop-icon {
  display: block;
}

#layout-tour-contact {
  display: none !important;
}

#layout-tour-contact.is-visible {
  display: inline-block !important;
}

.layout-tour-visual {
  margin: 0 0 12px;
}

.layout-tour-mock {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}

.layout-tour-mock-sidebar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.layout-tour-mock-rail {
  width: 92px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px;
}

.layout-tour-mock-grid-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.layout-tour-mock-grid-btn img {
  width: 14px;
  height: 14px;
}

.layout-tour-mock-icons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.layout-tour-mock-icons span {
  height: 16px;
  border-radius: 4px;
  background: #e2e8f0;
}

.layout-tour-mock-icons span.layout-tour-mock-loc {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.layout-tour-mock-icons span.layout-tour-mock-loc img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.layout-tour-mock-menu-rail {
  width: 160px;
}

.layout-tour-mock-menu-row {
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  padding: 5px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  margin-bottom: 6px;
  background: #ffffff;
}

.layout-tour-caret {
  display: inline-block;
  width: 12px;
}

.layout-tour-mock-callout {
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
}

.layout-tour-mock-search-bar {
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 8px 10px;
  font-size: 13px;
  color: #94a3b8;
}

.layout-tour-mock-support {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #334155;
}

.layout-tour-mock-envelope {
  width: 28px;
  height: 28px;
  padding: 6px;
  background: #1e3a5f;
  border-radius: 6px;
}

.layout-tour-mock .is-hot,
.layout-tour-spotlight {
  box-shadow: 0 0 0 3px #38bdf8;
}

.layout-tour-spotlight {
  position: relative;
  z-index: 8001;
  border-radius: 10px;
  background-color: #ffffff;
}

body.layout-tour-open {
  overflow: hidden;
}

body.layout-tour-step-1.portal-with-sidebar .portal-layout-sidebar,
body.layout-tour-step-2.portal-with-sidebar .portal-layout-sidebar,
body.layout-tour-step-1.portal-with-sidebar.portal-full-width-page .portal-layout-sidebar,
body.layout-tour-step-2.portal-with-sidebar.portal-full-width-page .portal-layout-sidebar {
  flex: 0 0 280px !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  z-index: 8001;
}

body.layout-tour-open.layout-tour-step-3.portal-with-sidebar .headerloggedin,
body.layout-tour-open.layout-tour-step-3 #unified-top-search-wrapper {
  z-index: 8001 !important;
}

body.layout-tour-open.layout-tour-step-4.portal-with-sidebar .new-footer,
body.layout-tour-open.layout-tour-step-4.portal-public .new-footer {
  z-index: 8001 !important;
  position: relative;
}

body.portal-mobile .layout-tour-modal,
body.portal-mobile .layout-tour-modal.layout-tour-modal-upper,
.layout-tour-modal.layout-tour-modal-mobile,
.layout-tour-modal.layout-tour-modal-mobile.layout-tour-modal-upper {
  top: 5.5em;
  bottom: auto;
  width: calc(100vw - 16px);
  max-height: calc(100vh - 9.2em);
  max-height: calc(100dvh - 9.2em);
}

@media (max-width: 768px) {
  .layout-tour-modal,
  .layout-tour-modal.layout-tour-modal-upper {
    top: 5.5em;
    bottom: auto;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 9.2em);
    max-height: calc(100dvh - 9.2em);
  }
}

.portal-card-body {
  padding: 14px 16px;
}

.portal-card-body.table-wrap {
  padding: 0;
}

.portal-card-header-action {
  padding: 0;
}

.portal-card-header-action .portal-card-header-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-card-header-action .portal-card-header-link:hover {
  background-color: #eef5ff;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 #dbe2ec;
}

.portal-card-header-action .portal-card-header-title {
  flex: 1;
  min-width: 0;
}

.portal-card-header-action img.toolbar-button-big {
  flex-shrink: 0;
  display: block;
  width: 30px;
  height: auto;
  border: none;
}

.ria-overview {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.ria-overview .table-wrap {
  overflow-x: auto;
  padding: 0;
}

.ria-overview .portal-card .list {
  margin: 0;
  width: 100%;
  min-width: 200px;
}

.ria-overview .overview-week-toolbar {
  margin: 12px 0 16px;
}

.ria-overview .overview-week-toolbar .ria-week-date-nav {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

.ria-overview .overview-week-toolbar .ria-week-date-nav input[type="date"] {
  width: 150px;
  margin: 0 6px;
  vertical-align: middle;
}

.ria-overview .overview-week-toolbar .ria-week-date-nav a {
  text-decoration: none;
  vertical-align: middle;
}

.ria-overview .ria-weekday-date {
  font-size: 0.85em;
  color: #64748b;
  font-weight: normal;
}

.ria-overview .ria-shift-lines {
  font-size: 0.9em;
  margin-top: 4px;
}

.ria-overview .ria-shift-lines a.ria-shift-diff,
.ria-overview .ria-shift-lines a.ria-shift-diff:link,
.ria-overview .ria-shift-lines a.ria-shift-diff:visited {
  background-color: #fff59d;
  color: #0f172a !important;
  padding: 1px 3px;
  border-radius: 4px;
  font-weight: 700;
}

.ria-overview .ria-shift-lines .ria-shift-original {
  display: inline;
  text-decoration: line-through;
  color: #64748b;
  margin-right: 6px;
}

#content .link-list-single {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#content .link-list-single > a,
#content .link-item a,
#content .link-list-single .link-item a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: #0b4e8d;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  margin-bottom: 0;
}


#content .link-list-single > a:hover,
#content .link-item a:hover,
#content .link-list-single .link-item a:hover {
  background-color: #eef5ff !important;
  text-decoration: none;
}

#content .link-item {
  display: none;
}

#content .link-item.loading {
  display: block;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  color: #64748b;
  font-style: italic;
}

#content .link-item.loading::after {
  content: 'Loading...';
}

#content .status-badge-high {
  background: #fee2e2;
  color: #b91c1c !important;
  font-weight: 700;
}

#content .status-badge-medium {
  background: #e0f2fe;
  color: #075985 !important;
  font-weight: 700;
}

@media (max-width: 768px) {
  .portal-card-grid > .portal-card {
    flex: 1 1 100%;
    min-width: 0 !important;
    width: 100%;
  }

  .portal-card-header {
    cursor: pointer;
    position: relative;
    padding-right: 40px;
  }

  .portal-card-header::after {
    content: '\25BC'; /* ▼ */
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.3s ease;
  }

  .portal-card.collapsed .portal-card-header::after {
    transform: translateY(-50%) rotate(-90deg);
  }

  .portal-card.collapsed .portal-card-body {
    display: none;
  }
}

.produce-card-title-block {
  min-width: 0;
}

.produce-card-table {
  width: 100%;
  border-collapse: collapse;
}

.produce-card-table td {
  vertical-align: top;
}

.produce-card-image-cell {
  width: 130px;
  padding-right: 10px;
}

.produce-card-info-cell {
  width: auto;
}

.produce-card-image {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-right: 0 !important;
}

/* Use stronger selectors so legacy mobile produce styles don't override card layout */
.portal-card .produce-level.produce-card-level {
  display: block;
  float: none;
  margin-top: 6px;
  text-align: left;
  padding-left: 0;
}

.portal-card .produce-common-infestation.produce-card-infestation {
  text-align: left;
  padding-left: 0;
  margin-top: 8px;
}

.produce-card-procedure {
  margin-top: 8px;
}

@media only screen and (max-width: 640px) {
  .portal-card-grid.grid-auto-fit {
    grid-template-columns: 1fr;
  }

  .produce-card-image-cell {
    width: 95px;
  }
}

/* Applied modifications index tables */
.applied-modifications-tables {
  margin-top: 12px;
}

.applied-modifications-type-section {
  margin-bottom: 24px;
}

.applied-modifications-type-heading {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #5a7a8a;
  letter-spacing: 0.03em;
}

.applied-modifications-actions-col {
  width: 70px;
}

.applied-modification-actions-cell {
  text-align: center;
  white-space: nowrap;
}

.applied-modification-actions-cell a {
  margin-left: 4px;
}

.applied-modification-company-cell {
  color: #666;
  min-width: 120px;
}

.applied-modification-object-cell {
  min-width: 140px;
}

.applied-modification-object-name {
  font-weight: bold;
}

.applied-modification-field-col {
  min-width: 120px;
}

.applied-modification-field-change {
  line-height: 1.4;
}

.applied-modification-change-by {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

.applied-modifications-page-actions {
  margin-top: 16px;
}

#js-notice.applied-modifications-notice-visible,
#js-notice:not(:empty) {
  display: block;
  margin: 10px 0;
  padding: 8px 12px;
  background-color: #f4f9fc;
  border: 1px solid #bde0f1;
  border-radius: 5px;
  color: #1f3a7a;
}

@media only screen and (max-width: 640px) {
  .applied-modifications-type-section table.list {
    display: block;
    overflow-x: auto;
  }
}

@media only screen and (max-width: 768px) {
  .produce-name {
    font-size:130%;
  }

  td .produce-name {
    width:65vw;
  }

  .produce-level, .produce-common-infestation {
    padding-left:5px;
  }

  .produce-picture-image {
    height:15vh;
    margin-right: 2vw !important;
  }

  .uri-picture-image {
    height:30vh;
  }
}

.full .center-div,
.full .center-div-label,
.full .middle-long,
.full .middle_long {
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.full .middle-long,
.full .middle_long {
  float: none;
}

.center-div container{
	width:100%;
}

.last-div {
	border:none !important;
	box-shadow: none !important;
}

.center-div h5, .responsive-center-div h5  {
	color: #006699 !important;
}

.center-div ol li,
.responsive-center-div ol li,
.center-div ul li ul li,
.responsive-center-div ul li ul li,
.full_size_print ol li,
.full_size_print ul li ul li {
	margin-left:5%;
	list-style-type:lower-alpha;
}

.center-div ol li ol li,
.responsive-center-div ol li ol li,
.full_size_print ol li ol li {
	
	list-style-type:numeric;
}

.center-div ul li,
.responsive-center-div ul li,
.center-div ol li ul li,
.responsive-center-div ol li ul li,
.full_size_print ul li,
.full_size_print ol li ul li {
	margin-left: 5%;
	list-style-type: disc;
}

.center-div ul li ul li,  .responsive-center-div ul li ul li, .full_size_print ul li ul li {
	
	list-style-type:circle;
}


.center-div-label {
	border:1px white;
	margin:10px auto;
  padding: 10px;
}

.center-div-heading {
	margin-left: 25%;
    font-weight: bold;
}

.center-div table th, .responsive-center-div table th {
	font-weight: bold;
}

.center-div form{
	width:100%;
}

.center-div .save {
  clear: both;
  float: none;
  margin-top: 1em;
  padding-top: 0.75em;
  width: 100%;
  box-sizing: border-box;
}

.nextButton, .backButton {
position: relative;
display: block;
width: 150px;
height: 50px;
border-radius:  5px;
background: #eee;
border: 1px #eee solid;
font-size: 22px;
font-family:inherit;
color: goldenrod;
font-weight:600;
line-height: 50px;
text-align: center;
text-decoration: none;
}

.nextButton {
	float:right;
	margin-right: 30px
}

.backButton {
	float:left;
	margin-left: 30px
}

.nextButton:before,
.nextButton:after
 {
  content: '';
  position: absolute;
  right: -15px;
  width: 32px;
  height: 15px;
  border-radius: 5px;
  background: #eee;
}
.nextButton:before
 {
  top: 9px;
  -webkit-transform: rotate(65deg);
  -ms-transform: rotate(65deg);
  transform: rotate(65deg);
}
.nextButton:after
 {
  bottom: 9px;
  -webkit-transform: rotate(-65deg);
  -ms-transform: rotate(-65deg);
  transform: rotate(-65deg);
}


.backButton:before,
.backButton:after
 {
  content: '';
  position: absolute;
  left: -15px;
  width: 32px;
  height: 15px;
  border-radius: 5px;
  background: #eee;
}

.backButton:after
 {
  top: 9px;
  -webkit-transform: rotate(-65deg);
  -ms-transform: rotate(-65deg);
  transform: rotate(-65deg);
}

.backButton:before
 {
  bottom: 9px;
  -webkit-transform: rotate(65deg);
  -ms-transform: rotate(65deg);
  transform: rotate(65deg);
}

.nextButton:hover, .backButton:hover {
	color: #111;
}
/* create normal text in full width window*/
.full_size_print, .full_size_print p, .full_size_print li {
	font-size: 15px;
}

.full_size_print h4, .full_size_print h5 {
	font-size: 16px;
}

.full_size_print {
	margin:0 20px;
}

.center-div .mini-droplist {
    border: none;
}

@media only screen and (min-width: 1000px) {
    .center-div, .center-div-label {zoom:120%;}
    .middle-long, .middle_long {font-size: 14px;}
    .middle-long p, .middle_long p,
    .middle-long textarea, .middle_long textarea,
    .middle-long select, .middle_long select,
    .middle-long td.input-box input[type="text"],
    .middle-long td.input-box input[type="password"],
    .middle-long td.input-box input[type="file"],
    .middle-long td.input-box select,
    .middle-long td.input-box textarea {
      font-size: inherit;
    }
    /* Lucida Grande table cells stay 13px (body/th/td and table.list). */
    .middle-long table, .middle_long table,
    .middle-long th, .middle-long td,
    .middle_long th, .middle_long td,
    .middle-long table p, .middle_long table p {
      font-size: 13px;
    }
    }

@media only screen and (max-width: 800px) {

		.center-tab-submenu {
			padding-top: 0px;
		}

    .center-div, .center-div-label
    {zoom:90%;}

			#edit-formula td {
			  display:block
			}

			.backButton, .nextButton {
				font-size:inherit;
				height:1em;
				width:2em;
				background:none;
			}

				.backButton:before, .nextButton:before,
				.backButton:after, .nextButton:after{
					background:none;
				}

				.backButton:before {
					content: ''
				}

			

				.nextButton:before
			 {
			  top: 0;
			  -webkit-transform: rotate(0);
			  -ms-transform: rotate(0);
			  transform: rotate(0);
			}
			.nextButton:after
			 {content: "\00BB";
			  right:-1.5em;
				 bottom: 0.1em;
			  -webkit-transform: rotate(0);
			  -ms-transform: rotate(0);
			  transform: rotate(0);
			}
				.backButton:after
			 {
			  top: 0;
			  -webkit-transform: rotate(0);
			  -ms-transform: rotate(0);
			  transform: rotate(0);
			}
			.backButton:before
			 {content: "\00AB";
			  left:-1.5em;
				 bottom: 0.1em;
			  -webkit-transform: rotate(0);
			  -ms-transform: rotate(0);
			  transform: rotate(0);
			}
}

    
.basic-info-table td:nth-child(1) {
  width: 80px;
}



.basic-info-table td {
    padding-bottom: 5px;
}

.basic-info-table textarea, .input-box-table textarea {
  height: 50px;
  width:90%;
}

@media screen and (max-width: 600px) {
	.basic-info-table td:nth-child(1) {
  width: 20vw;
}
}

.radio-button-table td:nth-child(1) {
  width:80%;
}

.checklist td {
  padding: 5px 0;
}
.checklist td:nth-child(even){
  border-bottom: 2px solid #8080808a;
  border-collapse:none;
}

.checklist td:nth-child(odd){
  text-align:center;}

 .checklist tr:last-of-type td {border-bottom: none}

.completed-form a {
	color: grey !important;
}

.completed-form a:before {
	content: url("/images/tick.png")
}

.incomplete-form a:before {
	content: url("/images/document-text-image.png")
}

.checklist-link a:before {
	content: url("/images/inspection-report.png")
}

.total-row td {
  font-size: 120%;font-weight: bold;padding-top:5px;
}


@media only screen and (max-width:800px){
		.responsive-table td {
			width:95vw;
			display:block;
			margin-top: 2vh;
		}

		.flex td {
		  display:block
		}
		/*allows for embedded tables to stay intact*/
		.flex td table td{
		  display:inline-table
		}

		.flex td table td:first-child {
				width:75px;
			}

		#universal_retail_ingredient th {
			display: none;
		}

		#universal_retail_ingredient tr td {
			display: block;
		}


		#universal_retail_ingredient a {
				font-weight: bold;
				font-size:120%;
			}

		.brand:before {
			content:'Brand: ';
			font-weight: bold;
		}

		.code:before {
			content:'Code: ';
			font-weight: bold;
		}

		.producer:before {
			content:'Producer: ';
			font-weight: bold;
		}

		.certifier:before {
			content:'Certifier: ';
			font-weight: bold;
		}

		.status:before {
			content:'Status: ';
			font-weight: bold;
		}

		.check-all {
		  display: block !important;
		}

		.check-all:after {
		  content:" Check All";
		  font-weight:normal;
		}
}

.rejected-item {
	background-color:#ff6666 !important;
}

.pending-item, .pending-item a {
	color: #ccc
}

.input-box, .input-box td, .datepicker/*, input, textarea, select */{
	border: 0.5px solid #9bc2ef !important;
	border-radius: 5px;
	padding: 5px;
	vertical-align:top;
	outline: none !important;
	background: #ffffff !important;
}

.center-div div.input-box, .responsive-center-div div.input-box {
	margin:10px !important;
	font-size:80% !important;
}

@media only screen and (max-width: 750px) {
	.center-div div.input-box, .responsive-center-div div.input-box {
		font-size:100% !important;
	}
}
/* Responsive widths for input-box table cells */
.input-box-table tr td.input-box:only-child {
  width: 100%;
}
.input-box-table tr td.input-box:nth-child(1):nth-last-child(2),
.input-box-table tr td.input-box:nth-child(2):nth-last-child(1) {
  width: 48%;
}
.input-box-table tr td.input-box:nth-child(1):nth-last-child(3),
.input-box-table tr td.input-box:nth-child(2):nth-last-child(2),
.input-box-table tr td.input-box:nth-child(3):nth-last-child(1) {
  width: 32%;
}

/* Responsive form container styles (moved from accounting.html.erb) */
.responsive-form-container {
  overflow-x: auto;
}

.responsive-form-container {
  width: 95% !important;
}

.responsive-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: end;
  padding: 15px;
}

.responsive-form-grid > .form-field {
  flex: 0 1 auto;
  max-width: 280px;
}

.form-field {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevents grid items from overflowing */
}

.form-field label {
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 0.9em;
}

.form-field input[type="checkbox"] {
  margin-right: 5px;
}

.form-field input[type="radio"] {
  margin-right: 5px;
}

.form-field select {
  width: 100%;
  padding: 5px;
  border: none;
  border-radius: 3px;
  font-size: 0.9em;
}

.action-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  padding: 0 15px 15px 15px;
}

.action-field {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.action-field input[type="checkbox"] {
  margin-right: 5px;
}

.action-field input[type="submit"] {
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 0.9em;
}

/* Mobile responsiveness */
@media only screen and (max-width: 768px) {
  .responsive-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }
  
  .action-buttons-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0 10px 10px 10px;
  }
  
  .action-field {
    justify-content: center;
    margin-bottom: 5px;
  }
  
  .action-field input[type="submit"] {
    width: 100%;
    padding: 10px;
  }
}

@media only screen and (max-width: 480px) {
  .responsive-form-grid {
    padding: 8px;
  }
  
  .form-field label {
    font-size: 0.8em;
  }
  
  .form-field select {
    font-size: 0.8em;
    padding: 4px;
  }
  
  .action-field input[type="submit"] {
    font-size: 0.8em;
    padding: 8px;
  }
}

@media only screen and (max-width: 550px) {
	.input-box-inner-table tr td {display:revert}
	.input-box {display:block;border-collapse: inherit; width: 100% !important;}

  .input-box:nth-child(2) {
    margin-top:10px
  }
}


/*moved here for DRY, added exception for input-box-inner-table*/
.odd, .div-list tr:nth-child(odd),
table.list:not(.formula-ingredients-table) tr:nth-child(odd):not(.odd):not(.even),
table.banded-in-context tr:nth-child(odd):not(.odd):not(.even) {
	background-color: #fbfcef;
}
.even, .div-list tr:nth-child(even),
table.list:not(.formula-ingredients-table) tr:nth-child(even):not(.odd):not(.even),
table.banded-in-context tr:nth-child(even):not(.odd):not(.even) {
  background-color: #fff;
}

/* override based on explicit class (beats nth-child when rows share inspection index, e.g. reimbursements) */
tr.odd,
table.list:not(.formula-ingredients-table) tr.odd td,
table.banded-in-context tr.odd td {
  background-color: #fbfcef !important;
}

tr.even,
table.list:not(.formula-ingredients-table) tr.even td,
table.banded-in-context tr.even td {
  background-color: #fff !important;
}

/* override banding for special row types in accounting tables */
tr.header,
tr.group-header,
tr.spacer,
tr.subtotal {
  background-color: transparent !important;
}


/*a little too radical for now*//*
[type="checkbox"] {
    border-radius: 3.5px;
    padding: 6px;
    background-color: white;
    vertical-align: text-top;
    -webkit-appearance: none;
}
[type=checkbox]:checked {
    -webkit-appearance: auto
}
[type=checkbox]:checked::before {
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fff'/%3E %3C/svg%3E");
}
/* Disabled */
/*[type=checkbox]:disabled {
    background-color: #CCD3D8;
    opacity: 0.84;
    cursor: not-allowed;
}*/

.datepicker {
	vertical-align:baseline
}

.input-box .datepicker, .input-box td .datepicker, .input-box input {
	border:none !important;
}

.input-box input, .input-box select, .input-box textarea {
	padding:2px 0;
	border:none;
	width:95%;
	background: inherit;
	font-weight:inherit;
	color:inherit;
}

/* Column/middle-long field rules (float + fixed/100% width + weight 600)
   are for the old label-left layout. Keep input-box controls stacked under
   the label with room for 13px text. Inline widths (AKA, KVH) still win. */
td.input-box input[type="text"],
td.input-box input[type="password"],
td.input-box input[type="file"],
td.input-box select,
td.input-box textarea {
	float: none;
	width: 95%;
	height: auto;
	min-height: 22px;
	line-height: 1.4;
	font-size: 13px;
	font-weight: inherit;
	font-family: inherit;
	box-sizing: border-box;
}

td.input-box input[type="color"] {
	float: none;
	width: 2.5em;
	height: 1.75em;
	padding: 1px;
	min-height: 0;
}

.input-box input[type=radio] {
	width: 100% !important;
}

.input-box label, .input-box-label, .center-div label, .responsive-center-div label .center-div a, .responsive-center-div a {
	color:#376ca9;
	font-weight:600
}

.input-box label:hover,
.input-box-label:hover,
.center-div label:hover,
.responsive-center-div label:hover {
	color: #bdd9f9;
	transition-duration: .5s;
}


.input-box input[type="radio"] {
	width:5%;
}

.input-box-inner-table input[type="radio"] {
	width:revert !important;
}

.input-switch {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 24px;
	vertical-align: middle;
	margin-right: 8px;
}

.input-switch input,
.input-switch input[type="radio"],
.input-switch input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0 !important;
	height: 0 !important;
}

.input-switch-slider {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #c7ced9;
	border: 1px solid #9aa6b8;
	border-radius: 24px;
	cursor: pointer;
}

.input-switch-slider:before {
	content: '';
	position: absolute;
	left: 2px;
	top: 2px;
	width: 18px;
	height: 18px;
	background-color: #ffffff;
	border-radius: 50%;
	border: 1px solid #9aa6b8;
}

.input-switch input:checked + .input-switch-slider,
.input-switch-slider.input-switch-on {
	background-color: #3b7ddd;
	border-color: #2f67ba;
}

.input-switch input:checked + .input-switch-slider:before,
.input-switch-slider.input-switch-on:before {
	left: 24px;
	border-color: #2f67ba;
}

td.switch {
	width: 52px !important;
	vertical-align: middle;
}

td.radio-button {
	padding-right:20px
}

.input-box li {
	padding-top:5px;
}


/*.input-box-table td:nth-child(1) {
  width:50%; - causing more problems than solutions
}*/

.input-box-table td:not(.input-box) {font-size:105%;line-height:1.5;}

.input-box-table  {
  border-collapse: separate;
  border-spacing: 5px 15px;
  width:90%;
  margin:auto;
}


.input-box input, .input-box select, .input-box textarea,
.frame input {
	outline: none;
}

.input-box-table td table {
	width:100% !important;
}

.input-box-inner-table td {
	border:none !important;
}

.input-box-inner-table th {
	background-color: #ebebeb;
	border-bottom: 1px solid #b0b0b0;
	padding: 6px 8px;
	vertical-align: middle;
}


.checkbox {
	width:20px !important;
}

 /* modernize attachment frame */
.frame div:nth-child(odd) {
	background-color: #fbfcef;
}

.frame div:nth-child(even) {
	background-color: #fff;
}

.frame input{
	border:none;
	background-color:inherit;
}

.frame div {
	padding: 10px 0;
}

h5 {
  color:#888a89;
  font-size:120%;
}

.omitted {
	display: none;
text-decoration:line-through;
color:lightgrey;
}

.unsubmitted {
  opacity:50%;
  background-color:#a09d98 !important;
}

table.list tr.unsubmitted td,
table.banded-in-context tr.unsubmitted td {
  border: none;
}

#main-pane.dark-mode table.list tr.unsubmitted td,
#main-pane.dark-mode table.banded-in-context tr.unsubmitted td {
  border: none;
}

input.initials {
	width:40px !important;
	outline:none !important;
	border-top:none !important;
	border-right:none !important;
	border-left:none !important;
	background:#d2dee9;
}

.center-div input.initials,
.center-div input[type="text"].initials,
#agreement-clauses .clause-initials-row input.initials {
	width:40px !important;
	max-width:40px !important;
	display:inline-block !important;
}

#agreement-clauses .clause-initials-row {
	text-align:right;
	clear:both;
}

.stat {border:none;
	 max-height:150px !important;
	   width:130px !important;
	   word-break: break-all;}

/*.single-stat {height: 60px;
			 padding: 10px 0;}*/

.stat-link {
	line-height: normal;
	font-size:120%;
}

.stat-link tr td {
	font-size:100%;
	line-height:normal;
	vertical-align:top;
	padding-right:5px
}

.stat-link img {
	height:25px;
	margin:0px -5px -5px 0px
}

.organization-logo-normal {
  display: block;
  max-height: 100px;
  width: auto;
  height: auto;
  margin-bottom: 8px;
}

.organization-logo-thumbnail {
  height: 50px;
  width: auto;
  margin-right: 4px;
  vertical-align: middle;
}

.stat-link a {
color:#006699;
	text-decoration:none;
}


.zero {
	opacity:30%;
}


.holds-the-iframe {
  background:url("/images/ajax-loader.gif") center center no-repeat;
  width: 140px !important;
  border:.5px solid #bdd9f9;
	overflow-x:hidden;
	border-radius:5px;
	box-shadow:2px 2px #bdd9f9;
}

.holds-the-iframe:hover {
	border:#376ca9;
}

.fancy-table td, .fancy-table th {
  border: 1px solid #ddd !important;
  padding: 8px !important;
}

.fancy-table tr:nth-child(even) {
  background-color: #eee;
}

.simple-table {
	margin:auto;
}

.simple-table td, .simple-table th {
	padding:15px 10px;
}

.simple-table td {
	text-align:right;
}

.simple-table th {
	text-align:center;
}

.simple-table tr td:nth-child(1) {
	text-align:left
}

.simple-table-total-row td {
	border-top: 1px solid;
	font-weight: 600;
}

/*funky new styling - dimensions are in application & mobile - colors are here*/
input.new-push-button, a.new-push-button {
	background-color:#920025 !important;
	 border:#920025 !important
}

input.new-push-button:hover, a.new-push-button:hover {
	background-color:#cae3e8 !important;
	border: #3C7D8A !important;
	color:#3C7D8A !important;
}

input[type="submit"], .push_button, a .push_button {
  background-color: #920025 !important;
  border: 1px solid !important;
  border-color: #920025 !important;
  color: white !important;
}

/* In-page actions (preview, AJAX) that do not submit the parent form. */
input.aux_button, button.aux_button, a.aux_button, a .aux_button {
  padding: 7px 7px !important;
  text-align: center !important;
  text-decoration: none !important;
  display: inline-block !important;
  font-size: 13px !important;
  margin: 4px 1.5px !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  font-family:'Open Sans',Sans-serif !important;
  font-weight: 600 !important;
  border-radius: 3px !important;
  background-color: #cae3e8 !important;
  border: 1px solid #3C7D8A !important;
  color: #3C7D8A !important;
}

input.aux_button:hover, button.aux_button:hover, a.aux_button:hover, a .aux_button:hover,
input.aux_button:focus, button.aux_button:focus, a.aux_button:focus, a .aux_button:focus {
  background-color: #ffffff !important;
  border-color: #3C7D8A !important;
  color: #3C7D8A !important;
  transition: .5s;
}

input.aux_button:disabled, button.aux_button:disabled, a.aux_button.disabled, a .aux_button.disabled {
  opacity: 30% !important;
  cursor: not-allowed !important;
}

input.aux_button:disabled:hover, button.aux_button:disabled:hover, a.aux_button.disabled:hover, a .aux_button.disabled:hover {
  background-color: #cae3e8 !important;
  color: #3C7D8A !important;
  border-color: #3C7D8A !important;
}

input.aux_button.processing-button,
button.aux_button.processing-button {
  opacity: 0.85;
  cursor: wait;
}

.thumbnail {
	margin:2px;
}

.thumbnail:not(.loc-thumbnail):hover {
	transform: scale(10);
}

.loc-thumbnail-wrap {
	display: inline-block;
	position: relative;
	overflow: visible;
	z-index: 1;
	vertical-align: top;
}

.loc-thumbnail-wrap.loc-thumbnail-active {
	z-index: 10001;
	min-width: 120px;
	min-height: 50px;
}

.loc-thumbnail-wrap.loc-thumbnail-active::before {
	content: '';
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	z-index: 10000;
	pointer-events: none;
}

.loc-thumbnail-wrap .loc-thumbnail {
	height: 50px !important;
	max-width: 120px !important;
	width: auto !important;
	cursor: pointer;
}

.loc-thumbnail-wrap.loc-thumbnail-active .thumbnail.loc-thumbnail {
	position: fixed !important;
	left: 50% !important;
	top: 50% !important;
	z-index: 10002;
	transform: translate(-50%, -50%) scale(10) !important;
	transform-origin: center center;
	opacity: 1 !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	background: #fff;
	border: 1px solid #ccc;
	padding: 8px;
	cursor: pointer;
}

@media only screen and (max-width: 640px), (hover: none) and (pointer: coarse) {
	.loc-thumbnail-wrap.loc-thumbnail-active .thumbnail.loc-thumbnail {
		transform: translate(-50%, -50%) scale(4) !important;
	}
}

.loc-thumbnail-close {
	display: none;
	position: fixed;
	z-index: 10003;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border: 1px solid #999;
	border-radius: 50%;
	background: #fff;
	color: #333;
	font-size: 28px;
	line-height: 32px;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.loc-thumbnail-wrap.loc-thumbnail-active .loc-thumbnail-close {
	display: block;
}

.applied-modification-card:has(.loc-thumbnail-wrap.loc-thumbnail-active) {
	overflow: visible;
	z-index: 10000;
	position: relative;
}

.warning-top:has(.loc-thumbnail-wrap.loc-thumbnail-active) {
	overflow: visible;
}

.banded-in-context:has(.loc-thumbnail-wrap.loc-thumbnail-active) {
	overflow: visible;
}

table.list:has(.loc-thumbnail-wrap.loc-thumbnail-active) {
	overflow: visible;
}

table.list tr:has(.loc-thumbnail-wrap.loc-thumbnail-active) {
	overflow: visible;
}

/* Keep zoomed LOC preview / close button above sibling form columns */
.columnWrapper:has(.loc-thumbnail-wrap.loc-thumbnail-active),
.column-1-of-2:has(.loc-thumbnail-wrap.loc-thumbnail-active),
.one-half-column:has(.loc-thumbnail-wrap.loc-thumbnail-active) {
	overflow: visible;
	z-index: 10000;
	position: relative;
}

.previous-value del {
	text-decoration: line-through;
}

.previous-value del a {
	text-decoration: line-through;
}

.previous-value del .loc-file-replaced-link {
	text-decoration: line-through;
	color: inherit;
}

.previous-value del .loc-file-replaced {
	position: relative;
	display: inline-block;
	text-decoration: line-through;
}

.previous-value del .loc-file-replaced img {
	opacity: 0.65;
}

.previous-value del .loc-file-replaced::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	border-top: 2px solid #888;
	pointer-events: none;
	z-index: 2;
}

.kiosk-list {
	list-style: none;
}

.kiosk-list ul li {
	margin: 20px 0;
}

.kiosk-list ul li:hover {
	background-color: beige;
}

#main-pane.dark-mode {
  filter: invert(100%);
  background: white;
}

table.list,
table.banded-in-context {
  width: 100%;
  border-collapse: collapse;
  margin-top: 5px;
  margin-bottom: 5px;
  clear: both;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: normal;
  background-color: #ffffff;
}

.full table,
table[width="100%"] {
  font-size: 13px;
}

table.list th,
table.banded-in-context th {
  font-weight: bold;
}

table.list:not(.formula-ingredients-table) tbody tr:not(.odd):not(.even):nth-child(odd) td,
table.banded-in-context tbody tr:not(.odd):not(.even):nth-child(odd) td,
table.list:not(.formula-ingredients-table) > tr:not(.odd):not(.even):nth-child(odd) td,
table.banded-in-context > tr:not(.odd):not(.even):nth-child(odd) td {
  background-color: #fbfcef;
}

table.list:not(.formula-ingredients-table) tbody tr:not(.odd):not(.even):nth-child(even) td,
table.banded-in-context tbody tr:not(.odd):not(.even):nth-child(even) td,
table.list:not(.formula-ingredients-table) > tr:not(.odd):not(.even):nth-child(even) td,
table.banded-in-context > tr:not(.odd):not(.even):nth-child(even) td {
  background-color: #ffffff;
}

table.list th,
table.list td,
table.banded-in-context th,
table.banded-in-context td {
  padding: 6px 8px;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
  background-color: #ffffff;
}

table.list th,
table.banded-in-context th {
  border-bottom: 2px solid #666;
  border-left: none;
  border-right: none;
  background-color: #ffffff;
}

table.list th a,
table.banded-in-context th a {
  color: #0b4e8d;
  text-decoration: none;
}

table.list td p,
table.banded-in-context td p {
  text-align: justify;
  margin: 4px auto;
}

table.list tbody tr.selected td {
  background-color: #3d80df;
  color: #ffffff;
  font-weight: bold;
}

table.list tbody tr.total td {
  background-color: #ffffcc;
}

#main-pane.dark-mode table.list,
#main-pane.dark-mode table.banded-in-context {
  width: 100%;
  border-collapse: collapse;
  background-color: transparent;
}

#main-pane.dark-mode table.list:not(.formula-ingredients-table) tbody tr:not(.odd):not(.even):nth-child(odd) td,
#main-pane.dark-mode table.banded-in-context tbody tr:not(.odd):not(.even):nth-child(odd) td,
#main-pane.dark-mode table.list:not(.formula-ingredients-table) > tr:not(.odd):not(.even):nth-child(odd) td,
#main-pane.dark-mode table.banded-in-context > tr:not(.odd):not(.even):nth-child(odd) td {
  background-color: rgba(255, 255, 255, 0.05);
}

#main-pane.dark-mode table.list:not(.formula-ingredients-table) tbody tr:not(.odd):not(.even):nth-child(even) td,
#main-pane.dark-mode table.banded-in-context tbody tr:not(.odd):not(.even):nth-child(even) td,
#main-pane.dark-mode table.list:not(.formula-ingredients-table) > tr:not(.odd):not(.even):nth-child(even) td,
#main-pane.dark-mode table.banded-in-context > tr:not(.odd):not(.even):nth-child(even) td {
  background-color: transparent;
}

#main-pane.dark-mode table.list.formula-ingredients-table tbody tr.odd td,
#main-pane.dark-mode table.list.formula-ingredients-table > tr.odd td {
  background-color: rgba(255, 255, 255, 0.05);
}

#main-pane.dark-mode table.list.formula-ingredients-table tbody tr.even td,
#main-pane.dark-mode table.list.formula-ingredients-table > tr.even td {
  background-color: transparent;
}

#main-pane.dark-mode table.list:not(.formula-ingredients-table) tr.odd td,
#main-pane.dark-mode table.banded-in-context tr.odd td {
  background-color: rgba(255, 255, 255, 0.05);
}

#main-pane.dark-mode table.list:not(.formula-ingredients-table) tr.even td,
#main-pane.dark-mode table.banded-in-context tr.even td {
  background-color: transparent;
}

#main-pane.dark-mode table.list th,
#main-pane.dark-mode table.list td,
#main-pane.dark-mode table.banded-in-context th,
#main-pane.dark-mode table.banded-in-context td {
  padding: 6px 8px;
  border: 1px solid #555;
  background-color: transparent;
}

#main-pane.dark-mode table.list th,
#main-pane.dark-mode table.banded-in-context th {
  border-bottom: 2px solid #888;
  border-left: none;
  border-right: none;
}

.arrow-action-btn {
  display: inline-block;
  padding: 6px 18px 6px 12px;
  margin: 0 0 0 0;
  background: #e6f0fa;
  color: #006699 !important;
  border: 1px solid #bde0f1;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  text-align: right;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.arrow-action-btn:hover {
  background: #cce3f6;
  color: #003355 !important;
}
.arrow-action-btn:after {
  content: ' \2192'; /* Unicode right arrow */
  font-size: 120%;
  margin-left: 8px;
  vertical-align: middle;
}

.arrow-action-btn.disabled {
  pointer-events: none;
  background: #e6f0fa;
  color: #b0b0b0 !important;
  border-color: #e0e0e0;
  cursor: not-allowed;
}
.arrow-action-btn.disabled:hover {
  background: #e6f0fa;
  color: #b0b0b0 !important;
}

/* Accounting report subtotal and total rows */
.list tr.subtotal,
tr.subtotal {
  background-color: #f5f5f5 !important;
}

.subtotal td {
  border-top: 2px solid #999;
}

.accounting .total td {
  border-top: 2px solid #999;
}

/* Shared desktop + mobile menu search result styling */
#menu-search-results li,
#mobile-menu-search-results li {
  float: none;
  width: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu-search-results li a,
#mobile-menu-search-results li a {
  display: block;
  white-space: normal;
  padding: 4px 8px;
}

/* Mobile menu sets #mainmenu * to float/sticky; reset for search results */
#mobile-menu-search-results,
#mobile-menu-search-results *,
#mobile-menu-search-panel,
#mobile-menu-search-panel * {
  float: none !important;
  position: static !important;
}

#mobile-menu-search-results li,
#mobile-menu-search-results li a,
#mobile-menu-search-results .menu-search-path,
#mobile-menu-search-results .menu-search-label {
  width: 100% !important;
  box-sizing: border-box;
}

/* Banded result rows for easier scanning */
#menu-search-results li:nth-child(odd) a,
#mobile-menu-search-results li:nth-child(odd) a {
  background-color: #fbfcef;
}

#menu-search-results li:nth-child(even) a,
#mobile-menu-search-results li:nth-child(even) a {
  background-color: #fff;
}

#menu-search-results .menu-search-path,
#mobile-menu-search-results .menu-search-path {
  display: block;
  font-size: 11px;
  color: #666;
  line-height: 1.2;
}

#menu-search-results .menu-search-label,
#mobile-menu-search-results .menu-search-label {
  display: block;
  color: #005b9a !important;
}

#menu-search-results .menu-search-empty,
#mobile-menu-search-results .menu-search-empty {
  color: #666;
  padding: 4px 8px;
}

.unified-top-search-results {
  position: fixed;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 5000;
  text-align: left;
  box-sizing: border-box;
}

body.portal-with-sidebar .unified-top-search-results,
body.portal-public .unified-top-search-results {
  z-index: 5000 !important;
}

.unified-search-columns {
  display: flex;
  min-height: 0;
}

.unified-search-rows {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.unified-search-rows > .unified-search-columns {
  flex: 0 1 auto;
  max-height: 45vh;
  min-height: 0;
  overflow: hidden;
}

.unified-search-rows > .unified-search-global-row {
  border-top: 1px solid #e2e8f0;
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
}

.unified-search-global-link-col {
  padding: 0.45rem 0.65rem;
}

.unified-search-global-link-col a {
  display: block;
  font-size: 0.9rem;
  color: #1d4ed8;
  text-decoration: none;
}

.unified-search-global-link-col a:hover {
  text-decoration: underline;
}

.unified-search-rows > .unified-search-plant-row {
  border-top: 1px solid #e2e8f0;
}

.unified-search-facility-stack {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 40vh;
}

.unified-search-column .unified-search-facility-stack ul {
  max-height: none;
  overflow: visible;
  flex: 0 0 auto;
}

.unified-top-search-results .unified-search-subsection {
  border-top: 1px solid #e2e8f0;
}

.unified-search-column {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  border-right: 1px solid #e2e8f0;
}

.unified-search-column:last-child {
  border-right: none;
}

.unified-search-column.unified-search-colspan-2 {
  flex: 1 1 100%;
  width: 100%;
  border-right: none;
}

.unified-search-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  max-height: 40vh;
}

.unified-search-empty-panel {
  padding: 8px 10px;
  box-sizing: border-box;
}

.unified-top-search-results li {
  margin: 0;
  padding: 0;
}

.unified-top-search-results .unified-search-section {
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  flex-shrink: 0;
}

.unified-top-search-results li a {
  display: block;
  white-space: normal;
  padding: 6px 10px;
  text-decoration: none;
  text-align: left;
}

.unified-top-search-results .unified-search-depth-0 a {
  padding-left: 10px;
}

.unified-top-search-results .unified-search-depth-1 a {
  padding-left: 22px;
}

.unified-top-search-results .unified-search-depth-2 a {
  padding-left: 34px;
}

.unified-top-search-results .unified-search-depth-3 a {
  padding-left: 46px;
}

.unified-top-search-results .unified-search-depth-4 a {
  padding-left: 58px;
}

.unified-top-search-results .unified-search-facility:nth-child(odd) a,
.unified-top-search-results .unified-search-company:nth-child(odd) a,
.unified-top-search-results .unified-search-menu:nth-child(odd) a,
.unified-top-search-results .unified-search-product:nth-child(odd) a,
.unified-top-search-results .unified-search-ingredient:nth-child(odd) a {
  background-color: #fbfcef;
}

.unified-top-search-results .unified-search-facility:nth-child(even) a,
.unified-top-search-results .unified-search-company:nth-child(even) a,
.unified-top-search-results .unified-search-menu:nth-child(even) a,
.unified-top-search-results .unified-search-product:nth-child(even) a,
.unified-top-search-results .unified-search-ingredient:nth-child(even) a {
  background-color: #fff;
}

.unified-top-search-results .menu-search-path {
  display: block;
  font-size: 11px;
  color: #666;
  line-height: 1.2;
}

.unified-top-search-results .menu-search-label {
  display: block;
  color: #005b9a !important;
}

.unified-top-search-results .menu-search-empty {
  color: #666;
  padding: 8px 10px;
  text-align: left;
}

@media only screen and (max-width: 768px) {
  .unified-search-rows > .unified-search-columns {
    flex: 0 1 auto;
    max-height: 50vh;
  }

  .unified-search-columns {
    flex-direction: column;
  }

  .unified-search-column {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    flex: 0 1 auto;
    max-height: none;
  }

  .unified-search-column:last-child {
    border-bottom: none;
  }

  .unified-search-column ul {
    max-height: 40vh;
  }

  .unified-search-facility-stack {
    max-height: 40vh;
  }
}

.unified-top-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.unified-top-bar .user-avatar-menu {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -16px;
  flex: 0 0 auto;
  z-index: 2;
}

.unified-top-search-wrapper {
  display: block;
  position: relative;
  text-align: center;
  flex: 0 1 520px;
  min-width: 0;
  max-width: 520px;
  width: 100%;
  box-sizing: border-box;
}

.unified-top-search-context {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
  color: #e8e6e1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.unified-top-search-company {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.unified-top-search-divider {
  color: rgba(232, 230, 225, 0.75);
  font-weight: 400;
}

.unified-top-search-subsidiary {
  width: auto !important;
  min-width: 120px;
  max-width: 200px;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 0 20px 0 4px !important;
  height: auto !important;
  line-height: 1.2 !important;
  border-radius: 0;
  background: transparent !important;
  color: #e8e6e1 !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  vertical-align: baseline;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23e8e6e1' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 2px center !important;
  background-size: 10px 6px !important;
}

.unified-top-search-context .unified-top-search-subsidiary option {
  color: #0f172a;
  background: #ffffff;
}

.unified-top-search-input-row {
  position: relative;
  text-align: left;
}

.unified-top-search-input {
  width: 100% !important;
  max-width: 520px;
  box-sizing: border-box;
  padding-right: 28px !important;
  text-align: left;
}

.unified-top-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -8px;
  float: none;
}

.mobile-unified-top-search {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  transform: none !important;
}

body.portal-with-sidebar .headerloggedin,
body.portal-public .headerloggedin {
  display: flex !important;
  align-items: center !important;
  padding: 0 12px;
  box-sizing: border-box;
  position: sticky !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
}

body.portal-with-sidebar .headerloggedin .top-logo,
body.portal-public .headerloggedin .top-logo {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%);
  flex: none;
  margin-right: 0;
  overflow: visible;
  z-index: 1203;
  pointer-events: auto;
}

body.portal-with-sidebar .top-pane:not(.mobile-top-bar),
body.portal-public .top-pane:not(.mobile-top-bar),
body.portal-with-sidebar .top-pane-nobar,
body.portal-public .top-pane-nobar {
  position: relative !important;
  flex: 1 1 auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  height: 60px !important;
  width: 0 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: stretch !important;
  overflow: visible !important;
  float: none !important;
  box-sizing: border-box !important;
  pointer-events: none;
}

body.portal-with-sidebar .plant-selection,
body.portal-public .plant-selection,
body.portal-with-sidebar .unified-top-bar,
body.portal-public .unified-top-bar {
  float: none !important;
  width: 100%;
}

body.portal-with-sidebar .headerloggedin #top-pane:not(.mobile-top-bar) > .plant-selection,
body.portal-public .headerloggedin #top-pane:not(.mobile-top-bar) > .plant-selection,
body.portal-with-sidebar .headerloggedin #top-pane:not(.mobile-top-bar) > .unified-top-bar,
body.portal-public .headerloggedin #top-pane:not(.mobile-top-bar) > .unified-top-bar,
body.portal-with-sidebar .headerloggedin #top-pane-nobar > .plant-selection,
body.portal-public .headerloggedin #top-pane-nobar > .plant-selection,
body.portal-with-sidebar .headerloggedin #top-pane-nobar > .unified-top-bar,
body.portal-public .headerloggedin #top-pane-nobar > .unified-top-bar,
body.portal-with-sidebar .plant-selection.unified-top-bar,
body.portal-public .plant-selection.unified-top-bar,
body.portal-with-sidebar .unified-top-bar,
body.portal-public .unified-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  pointer-events: none;
}

body.portal-with-sidebar .headerloggedin #top-pane:not(.mobile-top-bar) .user-avatar-menu,
body.portal-public .headerloggedin #top-pane:not(.mobile-top-bar) .user-avatar-menu,
body.portal-with-sidebar .headerloggedin #top-pane-nobar .user-avatar-menu,
body.portal-public .headerloggedin #top-pane-nobar .user-avatar-menu {
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  margin-top: -16px !important;
  z-index: 2;
  pointer-events: auto;
}

/*
 * Keep search in the true header center. Use the short logo unless the header
 * is wide enough for the expanded wordmark without covering the search field.
 */
body.portal-with-sidebar .headerloggedin #top-pane:not(.mobile-top-bar) .unified-top-search-wrapper,
body.portal-public .headerloggedin #top-pane:not(.mobile-top-bar) .unified-top-search-wrapper,
body.portal-with-sidebar .headerloggedin #top-pane-nobar .unified-top-search-wrapper,
body.portal-public .headerloggedin #top-pane-nobar .unified-top-search-wrapper {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  flex: none !important;
  width: min(520px, calc(100% - 48px)) !important;
  max-width: 520px !important;
  min-width: 0 !important;
  z-index: 1;
  pointer-events: auto;
}

/* Mobile layout owns its own search centering; never apply desktop logo offset there. */
body.portal-with-sidebar #top-pane.mobile-top-bar .unified-top-search-wrapper,
body.portal-with-sidebar #top-pane.mobile-top-bar .mobile-unified-top-search {
  transform: none !important;
  max-width: none !important;
  flex: none !important;
  pointer-events: auto;
}

body.portal-with-sidebar .portal-layout-main,
body.portal-public .portal-layout-main,
body.portal-with-sidebar .full,
body.portal-public .full {
  background-color: transparent;
  background: none;
}

body.portal-with-sidebar:not(.portal-full-width-page) .portal-layout-main > .body {
  width: 800px !important;
  max-width: 800px !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.portal-with-sidebar:not(.portal-full-width-page) .portal-layout-main .full {
  /* Match body width; border-box + styleNB padding leaves ~762px for columnWrapper */
  width: 800px !important;
  max-width: 800px !important;
  float: none !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow-x: auto;
}

body.portal-with-sidebar:not(.portal-full-width-page) .portal-layout-main .full .middle-long,
body.portal-with-sidebar:not(.portal-full-width-page) .portal-layout-main .full .middle_long {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
}

body.portal-with-sidebar:not(.portal-full-width-page) .portal-layout-main .full .announcement,
body.portal-with-sidebar:not(.portal-full-width-page) .portal-layout-main .full .flash-message,
body.portal-with-sidebar:not(.portal-full-width-page) .portal-layout-main .full .title.flash-message {
  width: auto !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.portal-with-sidebar.portal-full-width-page .portal-layout-main > .body,
body.portal-with-sidebar.portal-full-width-page .portal-layout-main .full {
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* Full-width pages skip the .full wrapper, so reapply the in-flow card rules
   that .full .middle-long / .full .center-div normally provide. */
body.portal-with-sidebar.portal-full-width-page .portal-layout-main .middle-long,
body.portal-with-sidebar.portal-full-width-page .portal-layout-main .middle_long,
body.portal-with-sidebar.portal-full-width-page .portal-layout-main .center-div,
body.portal-with-sidebar.portal-full-width-page .portal-layout-main .center-div-label {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
  zoom: 1 !important;
}

body.portal-with-sidebar.portal-full-width-page table.list th input[type="text"],
body.portal-with-sidebar.portal-full-width-page table.list th input[type="password"],
body.portal-with-sidebar.portal-full-width-page table.list th select {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

body.portal-with-sidebar.portal-full-width-page #content img[title="Clear all search fields"] {
  float: none !important;
  vertical-align: middle;
  margin-left: 8px;
}

body.portal-with-sidebar.portal-full-width-page .portal-layout-main .middle-long h2,
body.portal-with-sidebar.portal-full-width-page .portal-layout-main .middle_long h2 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 0.5em 0;
}

.top-logo {
  flex-shrink: 0;
  overflow: visible;
  line-height: 0;
}

.top-logo a {
  display: inline-block;
  line-height: 0;
  pointer-events: auto;
  position: relative;
  z-index: 1203;
}

.top-logo-compact {
  display: inline-block;
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.top-logo-full {
  display: none;
  height: 42px;
  width: auto;
  max-height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Expanded wordmark only when it fits beside a centered 520px search. */
@media only screen and (min-width: 1200px) {
  .top-logo-compact {
    display: none;
  }

  .top-logo-full {
    display: block;
  }
}

@media only screen and (max-width: 829px) {
  .top-logo-compact {
    display: inline-block;
  }

  .top-logo-full {
    display: none;
  }
}

@media only screen and (max-width: 699px) {
  .unified-top-search-context {
    font-size: 12px;
  }

  .unified-top-search-company {
    max-width: 42vw;
  }

  .unified-top-search-subsidiary {
    min-width: 90px;
    max-width: 34vw;
  }

  .unified-top-search-wrapper {
    max-width: none;
    flex-basis: auto;
  }
}

.mobile-unified-top-search {
  max-width: 72vw;
  min-width: 0;
}

.mobile-selector-cell .unified-top-search-context {
  font-size: 12px;
  margin-bottom: 2px;
}

.mobile-selector-cell .unified-top-search-company {
  max-width: 34vw;
}

.mobile-selector-cell .unified-top-search-subsidiary {
  min-width: 90px;
  max-width: 34vw;
  font-size: 12px !important;
}

/* Shared flash styling across mobile and desktop layouts */
.announcement, .flash-message, .title.flash-message {
  background: #c7efbf;
  border: solid 2px #a1da96;
  border-radius: .35em;
  padding: 10px 15px;
  margin-bottom: 10px;
  font-size: 14px;
  text-align: left;
  color: #337627;
  clear: both;
  margin-right: 2vw;
}

.full .announcement,
.full .flash-message,
.full .title.flash-message {
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.announcement table tr td,
.flash-message table tr td,
.title.flash-message table tr td {
  font-size: 14px;
  line-height: normal;
}

.flash-message.warning,
.title.flash-message.warning {
  background: #fff6cc;
  border-color: #f0d98c;
  color: #6f5300;
}

.flash-message.error,
.title.flash-message.error {
  background: #fde4e4;
  border-color: #e5b0b0;
  color: #990000;
}

.instructions {
  background-color: #f8f9fa;
  border: 2px solid #006699;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.instructions h4 {
  color: #006699;
  margin-bottom: 15px;
}

.instructions table tr td {
  font-size: 14px;
  line-height: normal;
}

.instructions.outage-announcement {
  display: flex;
  justify-content: center;
  align-items: center;
}

.instructions.outage-announcement table {
  margin: 0 auto;
  width: auto;
}

@media only screen and (min-width:600px) {
  .announcement, .disruption_alert, .flash-message, .title.flash-message {
    margin-right: 2.5vw;
  }
}

/* ===== Product formula edit page ===== */
.formula-edit-page {
  max-width: 1100px;
  margin: 0 auto 2em;
  padding: 0 12px;
  box-sizing: border-box;
}

.formula-edit-summary {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0f7fc;
  border-left: 4px solid #006699;
  border-radius: 0 4px 4px 0;
  color: #203451;
  font-size: 0.95em;
}

.formula-edit-help {
  margin: 6px 0 0;
  color: #444;
  font-size: 0.92em;
  line-height: 1.4;
}

.formula-edit-ingredients .portal-card-body,
.formula-edit-ingredients-body {
  padding: 0 12px 12px;
}

.formula-edit-notes .portal-card-body,
.formula-edit-notes-body,
.formula-edit-notes .formula-notes-content {
  padding: 12px 16px 16px;
}

.notebook-notes-panel .notebook-note-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.notebook-note-delete img {
  vertical-align: middle;
}

.notebook-notes-add-link {
  margin-top: 6px;
  display: inline-block;
}

.notebook-notes-add-form {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fafafa;
}

.notebook-notes-add-form textarea {
  width: 100%;
  box-sizing: border-box;
  display: block;
  margin-bottom: 6px;
}

.notebook-notes-save-btn {
  font-size: 0.85em;
  padding: 2px 10px;
}

.notebook-notes-save-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.formula-ingredients-table {
  width: 100%;
  margin-top: 8px;
}

/* Class-based banding only (by ingredient group); beats table.list td default */
table.list.formula-ingredients-table tbody tr.odd td,
table.list.formula-ingredients-table > tr.odd td {
  background-color: #fbfcef !important;
}

table.list.formula-ingredients-table tbody tr.even td,
table.list.formula-ingredients-table > tr.even td {
  background-color: #ffffff !important;
}

table.list.formula-ingredients-table tbody tr.odd.added td,
table.list.formula-ingredients-table > tr.odd.added td {
  background-color: #e1ffe1 !important;
}

table.list.formula-ingredients-table tbody tr.even.added td,
table.list.formula-ingredients-table > tr.even.added td {
  background-color: #ecffec !important;
}

table.list.formula-ingredients-table tbody tr.odd.removed td,
table.list.formula-ingredients-table > tr.odd.removed td {
  background-color: #fedacd !important;
}

table.list.formula-ingredients-table tbody tr.even.removed td,
table.list.formula-ingredients-table > tr.even.removed td {
  background-color: #ffe8df !important;
}

.formula-ingredients-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ebebeb;
}

.formula-ingredients-table th a {
  color: #006699;
  text-decoration: none;
}

.formula-ingredients-table th a:hover {
  text-decoration: underline;
}

.formula-add-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
}

@media (min-width: 768px) {
  .formula-add-options {
    grid-template-columns: 1fr 1fr;
  }
}

.formula-add-option {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.formula-add-option:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.formula-add-option-label {
  font-weight: 600;
  color: #203451;
  margin-bottom: 4px;
}

.formula-add-option-label label {
  font-weight: 600;
  cursor: pointer;
}

.formula-add-option-desc {
  margin: 0 0 10px;
  color: #666;
  font-size: 0.88em;
  line-height: 1.35;
}

.formula-add-option-control {
  width: 100%;
}

.formula-add-input,
.formula-add-textarea {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  float: none !important;
  display: block;
}

.formula-add-textarea {
  min-height: 4.5em;
  resize: vertical;
}

.formula-add-link {
  display: inline-block;
  padding: 8px 14px;
  background: #006699;
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.formula-add-link:hover {
  background: #004d73;
  text-decoration: none;
}

.formula-edit-completion {
  padding-bottom: 8px;
}

.formula-completion-table {
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  box-sizing: border-box;
}

.formula-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 24px;
  clear: both;
}

.formula-edit-btn,
.formula-edit-actions input[type="submit"] {
  padding: 10px 18px;
  font-size: 1em;
  font-weight: 600;
  border: 1px solid #006699;
  border-radius: 5px;
  background: #006699;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.formula-edit-btn:hover,
.formula-edit-actions input[type="submit"]:hover {
  background: #004d73;
  border-color: #004d73;
}

/* Dark mode is filter:invert(100%) on #main-pane. Keep light source colors
   so cards invert to dark. True dark fills (#2a2a2a) invert to light gray
   and wash out navy links (#0b4e8d → pale orange). */
#main-pane.dark-mode .portal-card {
  background: #ffffff;
  border-color: #dbe2ec;
}

#main-pane.dark-mode .portal-card-header {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
  color: #0f172a;
}

/* Double-invert plain links so they keep a bright blue on the inverted
   (black) cards. Status badges already invert to high-contrast chips. */
#main-pane.dark-mode #content .link-list-single > a:not(.status-badge-high):not(.status-badge-medium),
#main-pane.dark-mode #content .link-item a:not(.status-badge-high):not(.status-badge-medium),
#main-pane.dark-mode #content .link-list-single .link-item a:not(.status-badge-high):not(.status-badge-medium),
#main-pane.dark-mode .home-dashboard .portal-card-body a:not(.status-badge-high):not(.status-badge-medium) {
  filter: invert(1);
  color: #7ec8ff;
}

#main-pane.dark-mode #content .link-list-single > a:not(.status-badge-high):not(.status-badge-medium):hover,
#main-pane.dark-mode #content .link-item a:not(.status-badge-high):not(.status-badge-medium):hover,
#main-pane.dark-mode #content .link-list-single .link-item a:not(.status-badge-high):not(.status-badge-medium):hover,
#main-pane.dark-mode .home-dashboard .portal-card-body a:not(.status-badge-high):not(.status-badge-medium):hover {
  filter: invert(1);
  background-color: #16324f !important;
  color: #8ec5ff;
}

#main-pane.dark-mode .formula-edit-help,
#main-pane.dark-mode .formula-add-option-desc {
  color: #bbb;
}

#main-pane.dark-mode .formula-edit-summary {
  background: #1e3a4a;
  border-left-color: #4a9fd4;
  color: #cce4f0;
}

#main-pane.dark-mode .formula-add-option {
  background: #333;
  border-color: #555;
}

#main-pane.dark-mode .formula-add-option-label {
  color: #e0e0e0;
}

@media only screen and (max-width: 800px) {
  .formula-edit-page {
    padding: 0 6px;
  }

  .formula-add-options {
    padding: 12px;
    gap: 10px;
  }

  .formula-edit-actions {
    flex-direction: column;
  }

  .formula-edit-btn,
  .formula-edit-actions input[type="submit"] {
    width: 100%;
    box-sizing: border-box;
  }

  .formula-ingredients-table-wrap {
    margin: 0 -4px;
  }
}

.product-search-form {
  width: 100%;
  margin-bottom: 1em;
  box-sizing: border-box;
}

/* Form + results share one column; width follows layout (@full_width on this page). */
.product-search-page {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.product-search-page .product-search-form {
  max-width: none;
  width: 100%;
}

.product-search-page .center-div {
  width: 100% !important;
  justify-content: center;
}

.product-search-form form {
  width: auto;
  margin: 0 auto;
}

.product-search-page .full {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  overflow-x: auto;
}

body.portal-with-sidebar:not(.portal-full-width-page) .portal-layout-main .product-search-page .full {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.product-search-results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65em 1em;
  margin: 0 0 1em 0;
  padding: 0.85em 1.1em;
  border: 1px solid #c5ddf5;
  border-left: 4px solid #005FA5;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7fc 100%);
  box-sizing: border-box;
}

.product-search-results-heading {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: #005FA5;
  letter-spacing: 0.01em;
}

.product-search-results-count {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: #005FA5;
  color: #fff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.product-search-results-header--error {
  border-left-color: #c0392b;
  background: linear-gradient(180deg, #fff8f7 0%, #fff1ef 100%);
}

.product-search-results-header--error .product-search-results-heading {
  color: #a93226;
}

.product-search-results-message {
  margin: 0;
  flex: 1 1 100%;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #444;
}

.product-search-results-filter {
  margin: 0.5em 0 0.75em 0;
}

.product-search-results-filter-input {
  width: 100%;
  max-width: 20em;
  box-sizing: border-box;
}

.product-search-table {
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.product-search-keywords-cell {
  vertical-align: middle;
}

.product-search-input-row {
  position: relative;
  width: 22em;
  max-width: 100%;
}

.product-search-input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 28px !important;
}

.product-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -8px;
  float: none;
}

.product-search-options-row td:not(.input-box) {
  border: none !important;
  vertical-align: middle;
}

.product-search-limit-cell,
.product-search-submit-cell {
  white-space: nowrap;
  text-align: center;
}

.product-search-limit-label {
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
  margin: 0;
}

.product-search-submit-cell .push_button {
  margin: 0;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .product-search-form {
    max-width: none;
  }

  .product-search-table,
  .product-search-options-row {
    display: block;
    width: 100%;
  }

  .product-search-options-row td {
    display: block;
    width: 100%;
    padding-left: 0;
  }

  .product-search-input-row {
    width: 100%;
    max-width: none;
  }

  .product-search-limit-cell,
  .product-search-submit-cell {
    white-space: normal;
    text-align: center;
    padding-top: 0.5em;
  }

  .product-search-limit-label {
    display: block;
    margin: 0 0 0.5em 0;
  }

  .product-search-submit-cell .push_button {
    display: inline-block;
    margin: 0 0 0.35em 0;
  }
}