/* WP Unionbreaks — /inkoop en /verkoop. Basisstijlen die in wp-admin van WordPress komen, hier binnen .ub-front-root. */

.ub-front-root {
	--ub-accent: #2271b1;
	--ub-accent-dark: #135e96;
	font-size: 14px;
	line-height: 1.5;
	color: #1d2327;
	text-align: left;
}

/* Thema's beperken content vaak tot een smalle kolom; het portaal mag de beschikbare breedte gebruiken. */
.ub-front-root,
.entry-content > .ub-front-root,
.wp-block-post-content > .ub-front-root {
	max-width: min(1280px, 100%);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.ub-front-root *,
.ub-front-root *::before,
.ub-front-root *::after {
	box-sizing: border-box;
}

.ub-front-root h1,
.ub-front-root h2,
.ub-front-root h3 {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.3;
}

.ub-front-root .wp-heading-inline {
	font-size: 23px;
	font-weight: 400;
	margin: 0;
}

.ub-front-root .wp-header-end {
	display: none;
}

.ub-front-root input[type="text"],
.ub-front-root input[type="password"],
.ub-front-root input[type="email"],
.ub-front-root input[type="search"],
.ub-front-root input[type="date"],
.ub-front-root select,
.ub-front-root textarea {
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: #1d2327;
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	padding: 5px 8px;
	min-height: 32px;
	margin: 0;
	box-shadow: none;
}

.ub-front-root select {
	padding-right: 24px;
}

.ub-front-root input:focus,
.ub-front-root select:focus,
.ub-front-root textarea:focus {
	border-color: var(--ub-accent);
	box-shadow: 0 0 0 1px var(--ub-accent);
	outline: 2px solid transparent;
}

.ub-front-root input:disabled,
.ub-front-root select:disabled {
	background: #f6f7f7;
	color: #8c8f94;
}

.ub-front-root fieldset {
	min-width: 0;
}

/* Knoppen */
.ub-front-root .button,
.ub-front-root .page-title-action {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font: inherit;
	font-size: 13px;
	line-height: 1;
	min-height: 32px;
	padding: 0 12px;
	border-radius: 3px;
	border: 1px solid var(--ub-accent);
	background: #f6f7f7;
	color: var(--ub-accent);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.ub-front-root .button:hover,
.ub-front-root .page-title-action:hover {
	background: #f0f0f1;
	color: var(--ub-accent-dark);
	border-color: var(--ub-accent-dark);
}

.ub-front-root .button-primary {
	background: var(--ub-accent);
	color: #fff;
}

.ub-front-root .button-primary:hover {
	background: var(--ub-accent-dark);
	color: #fff;
}

.ub-front-root .button-large {
	min-height: 40px;
	padding: 0 16px;
	font-size: 14px;
}

.ub-front-root .button:disabled {
	opacity: 0.6;
	cursor: default;
}

.ub-front-root .button-link {
	background: none;
	border: 0;
	padding: 0;
	color: var(--ub-accent);
	cursor: pointer;
	font: inherit;
	text-decoration: underline;
}

/* Meldingen */
.ub-front-root .notice {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-left-width: 4px;
	padding: 4px 12px;
	margin: 12px 0;
}

.ub-front-root .notice p {
	margin: 8px 0;
}

.ub-front-root .notice-success {
	border-left-color: #00a32a;
}

.ub-front-root .notice-error {
	border-left-color: #d63638;
}

.ub-front-root .notice-warning {
	border-left-color: #dba617;
}

.ub-front-root .notice-info {
	border-left-color: #72aee6;
}

/* Tabellen */
.ub-front-root .widefat {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #c3c4c7;
	background: #fff;
	margin: 0;
}

.ub-front-root .widefat th,
.ub-front-root .widefat td {
	padding: 8px 10px;
	border: 0;
	border-bottom: 1px solid #f0f0f1;
	text-align: left;
	font-size: 13px;
}

.ub-front-root .widefat thead th {
	font-weight: 600;
	border-bottom: 1px solid #c3c4c7;
}

.ub-front-root .striped > tbody > tr:nth-child(odd) {
	background: #f6f7f7;
}

.ub-front-root .ub-table .num {
	text-align: right;
}

.ub-front-root code {
	font-size: 12px;
	background: #f0f0f1;
	padding: 1px 4px;
}

.ub-front-root .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.ub-front-root .ub-wrap {
	margin: 0;
}

.ub-front-root .ub-card {
	box-shadow: none;
}

.ub-front-root .ub-savebar {
	bottom: 0;
}

.ub-login {
	max-width: 480px;
}

/* Themastijlen neutraliseren die anders doorlekken. */
.ub-front-root button,
.ub-front-root .button,
.ub-front-root .button-link,
.ub-front-root label,
.ub-front-root legend,
.ub-front-root th {
	text-transform: none;
	letter-spacing: normal;
}

.ub-front-root button:not(.button):not(.button-link) {
	background: none;
	color: inherit;
	border: 0;
	padding: 0;
	font: inherit;
}

.ub-front-root input[type="file"] {
	border: 0;
	padding: 0;
	font-size: 13px;
	background: none;
	min-height: 0;
	max-width: 100%;
}

.ub-front-root input[type="radio"],
.ub-front-root input[type="checkbox"] {
	width: auto;
	min-height: 0;
	padding: 0;
	margin: 0 4px 0 0;
	border: revert;
}

/* ---------- Volle breedte zonder zijbalk ---------- */
.ub-portal-main {
	box-sizing: border-box;
	max-width: 1320px;
	width: 100%;
	margin: 0 auto;
	padding: 24px 20px 48px;
}

.ub-portal-title {
	margin: 0 0 8px;
}

body.ub-portal-page #secondary,
body.ub-portal-page aside.sidebar,
body.ub-portal-page .sidebar-primary,
body.ub-portal-page .widget-area[role="complementary"],
body.ub-portal-page aside.widget-area,
body.ub-portal-page #right-sidebar,
body.ub-portal-page #left-sidebar,
body.ub-portal-page .wp-block-template-part.sidebar {
	display: none !important;
}

body.ub-portal-page #primary,
body.ub-portal-page .content-area,
body.ub-portal-page .site-main,
body.ub-portal-page .entry-content,
body.ub-portal-page .wp-block-post-content {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	flex: 1 1 100% !important;
	border: 0 !important;
}

/* ---------- Wisselknop inkoop/verkoop ---------- */
.ub-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 16px;
}

.ub-switch-label {
	color: #646970;
	font-size: 13px;
	margin-right: 4px;
}

.ub-switch a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 16px;
	border: 1px solid #2271b1;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	color: #2271b1;
	background: #fff;
}

.ub-switch a[aria-current="page"] {
	background: #2271b1;
	color: #fff;
}

.ub-switch a:hover {
	background: #f0f6fc;
}

.ub-switch a[aria-current="page"]:hover {
	background: #135e96;
}

.ub-front-root .button.ub-button-danger {
	color: #b32d2e;
	border-color: #b32d2e;
	background: #fff;
}

.ub-front-root .button.ub-button-danger:hover {
	background: #fcf0f1;
	color: #8a2424;
	border-color: #8a2424;
}

.ub-front-root .button-link.ub-danger {
	color: #b32d2e;
}
