/* Optinovate Supplier Portal – uses the theme's fonts and colours where it can. */
.optsp {
	--optsp-accent: #0e5a6b;
	--optsp-line: #dde3e7;
	--optsp-soft: #f4f7f9;
	--optsp-muted: #5f6b73;
	max-width: 1000px;
	margin: 0 auto;
}
.optsp *,
.optsp *::before,
.optsp *::after {
	box-sizing: border-box;
}
.optsp-group {
	margin: 0 0 20px;
	padding: 14px 16px 6px;
	border: 1px solid var(--optsp-line);
	border-radius: 10px;
	background: #fff;
}
.optsp-group legend {
	padding: 0 6px;
	font-weight: 700;
}
.optsp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
}
.optsp-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 12px;
	min-width: 0;
}
.optsp-type-textarea,
.optsp-type-lines {
	grid-column: 1 / -1;
}
.optsp-field label {
	font-weight: 600;
	font-size: .95em;
}
.optsp-field abbr {
	color: #b32d2e;
	text-decoration: none;
}
.optsp-field small,
.optsp-uploads small,
.optsp-small {
	color: var(--optsp-muted);
	font-size: .85em;
}
.optsp input[type="text"],
.optsp input[type="email"],
.optsp input[type="url"],
.optsp input[type="tel"],
.optsp input[type="number"],
.optsp input[type="date"],
.optsp select,
.optsp textarea {
	width: 100%;
	max-width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--optsp-line);
	border-radius: 8px;
	background: #fff;
	font: inherit;
}
.optsp-button {
	background: var(--optsp-accent) !important;
	color: #fff !important;
	border-radius: 8px;
	padding: 10px 20px;
}
.optsp-notice {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-left: 4px solid var(--optsp-accent);
	background: var(--optsp-soft);
}
.optsp-notice ul {
	margin: 0;
	padding-left: 18px;
}
.optsp-error {
	border-left-color: #b32d2e;
	background: #fcf0f1;
}
.optsp-ok {
	border-left-color: #00a32a;
	background: #edfaef;
}
.optsp-table {
	width: 100%;
	margin: 0 0 16px;
	border-collapse: collapse;
}
.optsp-table th,
.optsp-table td {
	padding: 8px;
	border-bottom: 1px solid var(--optsp-line);
	text-align: left;
	vertical-align: top;
}
.optsp-status {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--optsp-soft);
	font-size: .85em;
}
.optsp-status-info {
	background: #fff4d6;
}
.optsp-status-accepted,
.optsp-status-listed {
	background: #edfaef;
}
.optsp-status-rejected {
	background: #fcf0f1;
}
.optsp-upload-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	align-items: end;
	margin: 0 0 12px;
	padding: 10px;
	border: 1px dashed var(--optsp-line);
	border-radius: 8px;
}
.optsp-upload-row select,
.optsp-upload-row input[type="file"] {
	grid-column: 1 / -1;
}
.optsp-date {
	display: flex;
	flex-direction: column;
	font-size: .8em;
}
.optsp-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 10px;
}
.optsp-photos label {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: .85em;
}
.optsp-photos img {
	width: 120px;
	height: 120px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--optsp-line);
	border-radius: 8px;
}
.optsp-messages {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}
.optsp-messages li {
	margin: 0 0 8px;
	padding: 8px 12px;
	border: 1px solid var(--optsp-line);
	border-radius: 10px;
	background: #fff;
}
.optsp-messages .optsp-msg-owner {
	border-color: var(--optsp-accent);
}
.optsp-summary {
	display: grid;
	grid-template-columns: minmax(160px, 1fr) 2fr;
	gap: 4px 16px;
}
.optsp-summary dt {
	font-weight: 600;
}
.optsp-summary dd {
	margin: 0;
}
.optsp-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
@media (max-width: 700px) {
	.optsp-grid,
	.optsp-upload-row,
	.optsp-summary {
		grid-template-columns: 1fr;
	}
}
.optsp-login {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--optsp-line);
	border-radius: 10px;
	background: var(--optsp-soft);
}
.optsp-login summary {
	font-weight: 700;
	cursor: pointer;
}
.optsp-login form p {
	margin: 10px 0;
}
.optsp-login input[type="text"],
.optsp-login input[type="password"] {
	width: 100%;
	max-width: 360px;
	padding: 8px 10px;
	border: 1px solid var(--optsp-line);
	border-radius: 8px;
}
.optsp-login label {
	display: block;
	margin: 0 0 4px;
}
.optsp-login .login-remember label {
	display: inline;
}
.optsp-login input[type="submit"] {
	padding: 9px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--optsp-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.optsp-rules {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px solid var(--optsp-line);
	border-radius: 10px;
	background: #fff;
}
.optsp-rules summary {
	font-weight: 700;
	cursor: pointer;
}
.optsp-rules-text {
	max-height: 480px;
	overflow-y: auto;
	margin-top: 10px;
	padding-right: 8px;
	font-size: .95em;
}
.optsp-rules-text h3 {
	margin: 16px 0 6px;
	font-size: 1.05em;
}
.optsp-rules-text ul {
	margin: 0 0 8px;
	padding-left: 20px;
}
.optsp-doc-expired {
	color: #b32d2e;
	font-weight: 700;
}
.optsp-doc-soon {
	color: #996800;
	font-weight: 700;
}
.optsp-po-new,
.optsp-po-received {
	background: #fff4d6;
}
.optsp-po-confirmed,
.optsp-po-shipped {
	background: #e5f2fb;
}
.optsp-po-passed,
.optsp-po-ncr_closed {
	background: #edfaef;
}
.optsp-po-ncr {
	background: #fcf0f1;
	color: #b32d2e;
	font-weight: 700;
}
.optsp-pay-paid {
	color: #007017;
	font-weight: 700;
}
.optsp-pay-overdue,
.optsp-pay-hold {
	color: #b32d2e;
	font-weight: 700;
}

/* The portal menu: clear tabs, the open one marked (0.12.4). */
.optsp-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
}
.optsp-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--optsp-line);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}
.optsp-nav a:hover,
.optsp-nav a:focus-visible {
	border-color: var(--optsp-accent);
}
.optsp-nav a.is-current {
	border-color: var(--optsp-accent);
	background: var(--optsp-accent);
	color: #fff;
}

/* A group of questions that can wait: folded (0.13.0). */
details.optsp-folded {
	margin: 0 0 12px;
	padding: 12px 16px;
	border: 1px solid var(--optsp-line);
	border-radius: 12px;
	background: #fff;
}
details.optsp-folded > summary {
	cursor: pointer;
}
details.optsp-folded[open] > summary {
	margin-bottom: 14px;
}

/* The table to add several products at once (0.14.0). */
.optsp-quick td {
	padding: 4px 6px;
	vertical-align: middle;
}
.optsp-quick td:first-child {
	width: 28px;
	color: var(--optsp-muted);
}
.optsp .optsp-quick input[type="text"],
.optsp .optsp-quick select {
	min-width: 150px;
}

/* On a phone a wide table scrolls inside its own box, so the page itself never scrolls sideways (found 5 Oct 2026). */
@media (max-width: 700px) {
	.optsp-table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}
