/*
Theme Name: Horecawaarheid MVP
Theme URI: https://horecawaarheid.nl/
Author: Horecawaarheid
Description: Besloten dashboardthema voor Horecawaarheid met login, registratie, financiele invoer, contracten, adviezen, rapporten en bedrijfsprofiel.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: horecawaarheid
*/

body {
	margin: 0;
}

.hw-theme-content {
	min-height: 100vh;
}

.hw-theme-content:has(.hw-app),
.hw-theme-content:has(.hw-auth-page) {
	background: #f4f6fb;
	min-height: auto;
}

.hw-theme-content:has(.hw-app) > p:empty {
	display: none;
}

.footer {
	background: #101827;
	box-sizing: border-box;
	color: #b7c0cf;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 18px 40px;
	position: relative;
	width: 100vw;
	z-index: 5;
}

.footer-minimal-inner {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1500px;
}

.footer-minimal span,
.footer-minimal a {
	color: #b7c0cf;
	font-size: 12px;
	text-decoration: none;
}

.footer-minimal a:hover,
.footer-minimal a:focus {
	color: #ffffff;
}

.footer-minimal nav {
	display: flex;
	gap: 18px;
}

.hw-action-card span {
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	flex: 0 0 46px;
	height: 46px;
	min-height: 46px;
	min-width: 46px;
	padding: 0;
	width: 46px;
}

.hw-topbar {
	align-items: center;
	background: #ffffff;
	border-bottom: 1px solid #e5e9f0;
	box-sizing: border-box;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	min-height: 86px;
	padding: 14px 30px;
	position: relative;
	width: 100vw;
	z-index: 10;
}

.hw-topbar-logo {
	align-items: center;
	color: #071225;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 18px;
	font-weight: 900;
	min-height: 64px;
	text-decoration: none;
}

.hw-topbar-logo img {
	display: block;
	height: 120px;
	max-width: 175px;
	object-fit: contain;
	width: auto;
}

.hw-user-menu {
	flex: 0 1 auto;
	margin-left: auto;
	max-width: min(440px, calc(100vw - 220px));
	min-width: 0;
	position: relative;
}

.hw-user-menu::after {
	content: "";
	display: block;
	height: 12px;
	left: 0;
	position: absolute;
	right: 0;
	top: 100%;
}

.hw-user-menu-toggle {
	align-items: center;
	background: #ffffff;
	border: 1px solid #dfe4ec;
	border-radius: 999px;
	color: #071225;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	gap: 10px;
	max-width: 100%;
	min-height: 40px;
	min-width: 0;
	overflow: hidden;
	padding: 0 14px 0 18px;
}

.hw-user-menu-toggle span {
	display: block;
	max-width: min(340px, 46vw);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hw-user-menu-toggle i,
.hw-user-menu-toggle::after {
	color: #5f6d85;
	content: none !important;
	display: none !important;
	flex: 0 0 auto;
	font-size: 11px;
	font-style: normal;
}

.hw-user-dropdown {
	background: #ffffff;
	border: 1px solid #dfe4ec;
	border-radius: 10px;
	box-shadow: 0 16px 36px rgba(16, 24, 39, 0.12);
	display: none;
	flex-direction: column;
	min-width: 168px;
	padding: 8px;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 30;
}

.hw-user-dropdown a {
	border-radius: 7px;
	color: #071225;
	font-size: 13px;
	font-weight: 800;
	padding: 10px 12px;
	text-decoration: none;
}

.hw-user-dropdown a:hover,
.hw-user-dropdown a:focus {
	background: #f4f6fb;
}

.hw-user-menu:hover .hw-user-dropdown,
.hw-user-menu:focus-within .hw-user-dropdown {
	display: flex;
}

.hw-header-menu-lock {
	overflow: hidden;
}

.hw-topbar-actions {
	align-items: center;
	display: flex;
	flex: 0 1 auto;
	gap: 10px;
	justify-content: flex-end;
	margin-left: auto;
	min-width: 0;
	position: relative;
}

.hw-topbar-actions .hw-user-menu {
	margin-left: 0;
	max-width: min(440px, 46vw);
}

.hw-topbar-actions .hw-user-dropdown {
	z-index: 70;
}

.hw-user-pill {
	align-items: center;
	background: #ffffff;
	border: 1px solid #dfe4ec;
	border-radius: 999px;
	box-shadow: 0 12px 28px rgba(16, 24, 39, 0.06);
	box-sizing: border-box;
	color: #071225;
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	max-width: min(340px, 42vw);
	min-height: 40px;
	min-width: 0;
	overflow: hidden;
	padding: 0 18px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hw-header-menu-toggle,
.hw-header-menu-close {
	align-items: center;
	background: #111216;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #f8f7f4;
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hw-header-menu-toggle {
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(16, 24, 39, 0.16);
	display: none !important;
	flex: 0 0 44px;
	flex-direction: column;
	gap: 5px;
	height: 44px;
	padding: 0;
	width: 44px;
}

.hw-header-menu-toggle span {
	background: currentColor;
	border-radius: 999px;
	display: block;
	height: 2px;
	transition: opacity 180ms ease, transform 180ms ease;
	width: 20px;
}

.hw-topbar-actions.is-menu-open .hw-header-menu-toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.hw-topbar-actions.is-menu-open .hw-header-menu-toggle span:nth-child(2) {
	opacity: 0;
}

.hw-topbar-actions.is-menu-open .hw-header-menu-toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.hw-header-menu-toggle:hover,
.hw-header-menu-toggle:focus-visible,
.hw-header-menu-close:hover,
.hw-header-menu-close:focus-visible {
	background: #1d1f25;
	border-color: rgba(217, 36, 36, 0.58);
	box-shadow: 0 14px 34px rgba(217, 36, 36, 0.22);
	outline: none;
	transform: translateY(-1px);
}

.hw-header-menu {
	background: linear-gradient(160deg, rgba(18, 18, 20, 0.99), rgba(33, 34, 39, 0.99));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
	box-sizing: border-box;
	opacity: 0;
	padding: 12px;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: calc(100% + 12px);
	transform: translateY(-8px) scale(0.98);
	transform-origin: top right;
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
	visibility: hidden;
	width: min(380px, calc(100vw - 32px));
	z-index: 50;
}

.hw-header-menu {
	display: none !important;
}

.hw-topbar-actions.is-menu-open .hw-header-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
	visibility: visible;
}

.hw-header-menu-title {
	align-items: center;
	color: #aaaab2;
	display: flex;
	font-size: 12px;
	font-weight: 800;
	justify-content: flex-end;
	line-height: 1;
	padding: 8px 8px 12px;
	text-transform: uppercase;
}

.hw-header-menu-close {
	border-radius: 12px;
	height: 34px;
	padding: 0;
	width: 34px;
}

.hw-header-menu ul {
	display: grid;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hw-header-menu-item {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 14px;
	color: #ebe8e1;
	display: flex;
	font-size: 14px;
	font-weight: 800;
	gap: 12px;
	line-height: 1.25;
	min-height: 48px;
	padding: 12px 14px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hw-header-menu-item .dashicons {
	color: #aaaab2;
	font-size: 22px;
	height: 22px;
	transition: color 160ms ease, transform 160ms ease;
	width: 22px;
}

.hw-header-menu-item:hover,
.hw-header-menu-item:focus-visible {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	outline: none;
	transform: translateX(-2px);
}

.hw-header-menu-item:hover .dashicons,
.hw-header-menu-item:focus-visible .dashicons {
	color: #ffffff;
	transform: scale(1.05);
}

.hw-header-menu-item.is-active {
	background: linear-gradient(135deg, rgba(217, 36, 36, 0.18), rgba(255, 255, 255, 0.05));
	border-color: rgba(217, 36, 36, 0.42);
	box-shadow: inset 3px 0 0 #d92424;
	color: #ffffff;
}

.hw-header-menu-item.is-active .dashicons {
	color: #ff5a5a;
}

.hw-header-menu-item.is-logout {
	color: #ffc6c6;
	margin-top: 8px;
}

.hw-header-menu-overlay {
	background: rgba(0, 0, 0, 0.58);
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity 220ms ease;
	z-index: 40;
}

@media (max-width: 760px) {
	.hw-topbar {
		padding: 12px 14px;
	}

	.hw-topbar-logo img {
		height: 56px;
		max-width: 130px;
	}

	.hw-user-menu {
		max-width: calc(100vw - 170px);
	}

	.hw-user-menu-toggle span {
		max-width: calc(100vw - 230px);
	}

	.hw-topbar-actions {
		gap: 8px;
		max-width: calc(100vw - 150px);
	}

	.hw-user-pill {
		font-size: 12px;
		max-width: calc(100vw - 220px);
		min-height: 38px;
		padding: 0 14px;
	}

	.hw-header-menu-toggle {
		border-radius: 13px;
		display: inline-flex !important;
		flex-basis: 42px;
		height: 42px;
		width: 42px;
	}

	.hw-header-menu {
		border-radius: 20px 0 0 20px;
		border-width: 0 0 0 1px;
		bottom: 0;
		display: block !important;
		height: 100dvh;
		max-width: 390px;
		overflow-y: auto;
		padding: 18px 14px;
		position: fixed;
		right: 0;
		top: 0;
		transform: translateX(105%);
		transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
		width: min(88vw, 390px);
		z-index: 60;
	}

	.hw-topbar-actions.is-menu-open .hw-header-menu {
		transform: translateX(0);
	}

	.hw-topbar-actions.is-menu-open .hw-header-menu-overlay {
		opacity: 1;
		pointer-events: auto;
	}

	.hw-header-menu-title {
		padding: 6px 4px 16px;
	}

	.hw-header-menu-item {
		min-height: 52px;
		padding: 14px;
	}

	.footer {
		padding: 16px 18px;
	}

	.footer-minimal-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
}

@media (max-width: 420px) {
	.hw-topbar {
		gap: 10px;
	}

	.hw-topbar-logo img {
		max-width: 112px;
	}

	.hw-user-pill {
		max-width: calc(100vw - 190px);
	}
}
