* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Arial, sans-serif;
	background: #f4f1ea;
	color: #2b2118;
}

.hidden {
	display: none !important;
}

/* LOGIN */

.login-screen {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background:
		linear-gradient(rgba(70, 39, 18, 0.55), rgba(70, 39, 18, 0.55)),
		linear-gradient(135deg, #8d5524, #d6a15f);
}

.login-card {
	width: 900px;
	max-width: 100%;
	min-height: 460px;
	background: #fffaf2;
	border-radius: 24px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1fr;
	box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.login-left {
	background: linear-gradient(135deg, #5b3215, #b97932);
	color: white;
	padding: 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bakker-logo {
	width: 90px;
	height: 90px;
	border-radius: 24px;
	background: rgba(255,255,255,0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	margin-bottom: 24px;
}

.login-left h1 {
	margin: 0 0 12px 0;
	font-size: 38px;
}

.login-left p {
	margin: 0;
	font-size: 18px;
	opacity: 0.9;
}

.login-right {
	padding: 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.login-right h2 {
	margin: 0 0 28px 0;
	font-size: 28px;
	color: #4a2a14;
}

.login-right label {
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 6px;
	color: #5b3215;
}

.login-right input {
	width: 100%;
	height: 46px;
	border: 1px solid #d7c2a7;
	border-radius: 12px;
	padding: 0 14px;
	font-size: 16px;
	margin-bottom: 18px;
	background: white;
}

.login-right input:focus {
	outline: none;
	border-color: #a36528;
	box-shadow: 0 0 0 3px rgba(163, 101, 40, 0.18);
}

.btn-main {
	height: 48px;
	border: none;
	border-radius: 12px;
	background: #8d5524;
	color: white;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	margin-top: 8px;
}

.btn-main:hover {
	background: #6f421c;
}

.login-help {
	margin-top: 18px;
	font-size: 13px;
	color: #80654a;
}

/* APP */

.app-screen {
	min-height: 100vh;
}

.topbar {
	height: 76px;
	background: #5b3215;
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.topbar h1 {
	margin: 0;
	font-size: 24px;
}

.topbar span {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	opacity: 0.85;
}

.btn-logout {
	border: 1px solid rgba(255,255,255,0.35);
	background: rgba(255,255,255,0.12);
	color: white;
	border-radius: 10px;
	padding: 10px 16px;
	cursor: pointer;
}

.btn-logout:hover {
	background: rgba(255,255,255,0.22);
}

.dashboard {
	padding: 32px;
}

.dashboard h2 {
	margin: 0 0 22px 0;
	color: #4a2a14;
}

.dash-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(180px, 1fr));
	gap: 22px;
}

.dash-card {
	background: #fffaf2;
	border: 1px solid #e4d2ba;
	border-radius: 22px;
	padding: 26px;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(74, 42, 20, 0.08);
	transition: 0.16s ease;
}

.dash-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(74, 42, 20, 0.14);
	border-color: #b97932;
}

.dash-icon {
	width: 58px;
	height: 58px;
	border-radius: 18px;
	background: #f2dfc3;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	margin-bottom: 18px;
}

.dash-card h3 {
	margin: 0 0 8px 0;
	color: #4a2a14;
	font-size: 22px;
}

.dash-card p {
	margin: 0;
	color: #75583c;
	line-height: 1.45;
}

.page-content {
	margin-top: 28px;
	background: white;
	border: 1px solid #e4d2ba;
	border-radius: 20px;
	padding: 24px;
	min-height: 170px;
}

.page-content h3 {
	margin: 0 0 10px 0;
	color: #4a2a14;
}

.page-content p {
	margin: 0;
	color: #75583c;
}

/* TOAST */

.toast-box {
	position: fixed;
	right: 20px;
	top: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.toast {
	min-width: 240px;
	padding: 14px 16px;
	border-radius: 12px;
	color: white;
	box-shadow: 0 8px 22px rgba(0,0,0,0.18);
	font-size: 14px;
}

.toast.good {
	background: #2e7d32;
}

.toast.error {
	background: #b3261e;
}






/* FORM */

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(180px, 1fr));
	gap: 16px;
}

.form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-row label {
	font-size: 13px;
	font-weight: bold;
	color: #5b3215;
}

.form-row input,
.form-row select {
	height: 42px;
	border: 1px solid #d7c2a7;
	border-radius: 10px;
	padding: 0 12px;
	font-size: 15px;
}

.form-row input:focus,
.form-row select:focus {
	outline: none;
	border-color: #a36528;
	box-shadow: 0 0 0 3px rgba(163, 101, 40, 0.15);
}

.form-actions {
	margin-top: 18px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.btn-small {
	border: none;
	border-radius: 10px;
	background: #8d5524;
	color: white;
	padding: 10px 14px;
	font-weight: bold;
	cursor: pointer;
}

.btn-small:hover {
	background: #6f421c;
}

.btn-soft {
	border: 1px solid #d7c2a7;
	border-radius: 10px;
	background: #fffaf2;
	color: #5b3215;
	padding: 10px 14px;
	font-weight: bold;
	cursor: pointer;
}

.btn-soft:hover {
	background: #f2dfc3;
}

/* SUGGESTIONS */

.suggest-box {
	margin-top: 8px;
	border: 1px solid #e4d2ba;
	border-radius: 12px;
	overflow: hidden;
	background: white;
}

.suggest-item {
	padding: 10px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f0e4d4;
}

.suggest-item:last-child {
	border-bottom: none;
}

.suggest-item:hover {
	background: #fff3df;
}

/* TABLE */

.bb-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
	font-size: 14px;
}

.bb-table th,
.bb-table td {
	border-bottom: 1px solid #eadcc8;
	padding: 10px;
	text-align: left;
}

.bb-table th {
	background: #fff3df;
	color: #5b3215;
}

.bb-table tr:hover td {
	background: #fffaf2;
}

/* MODAL */

.bb-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.bb-modal {
	width: 620px;
	max-width: 100%;
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(0,0,0,0.25);
	overflow: hidden;
}

.bb-modal-head {
	background: #5b3215;
	color: white;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.bb-modal-head h3 {
	margin: 0;
}

.bb-modal-close {
	border: none;
	background: transparent;
	color: white;
	font-size: 28px;
	cursor: pointer;
}

.bb-modal-body {
	padding: 20px;
}

/* RIGHTS */

.rights-box {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fffaf2;
	border: 1px solid #e4d2ba;
	border-radius: 12px;
	padding: 12px;
}

.rights-box label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: normal;
}

.rights-box input {
	width: auto;
	height: auto;
}










/* ***********************************************************
   Compact dashboard menu na keuze
*********************************************************** */

.dashboard.compact-menu {
	padding-top: 18px;
}

.dashboard.compact-menu .dash-grid {
	gap: 12px;
	margin-bottom: 14px;
}

.dashboard.compact-menu .dash-card {
	padding: 14px 18px;
	border-radius: 16px;
	min-height: auto;

	display: grid;
	grid-template-columns: 46px 1fr;
	grid-template-areas:
		"icon title"
		"icon text";
	column-gap: 12px;
	align-items: center;
}

.dashboard.compact-menu .dash-icon {
	grid-area: icon;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	font-size: 24px;
	margin-bottom: 0;
}

.dashboard.compact-menu .dash-card h3 {
	grid-area: title;
	margin: 0 0 2px 0;
	font-size: 19px;
}

.dashboard.compact-menu .dash-card p {
	grid-area: text;
	margin: 0;
	font-size: 14px;
	line-height: 1.25;
}

.dashboard.compact-menu .page-content {
	margin-top: 14px;
	min-height: calc(100vh - 210px);
}








/* ***********************************************************
   Laatste scans onder verbruik
*********************************************************** */

.laatste-verbruik-box {
	margin-top: 22px;
	max-width: 1150px;
}

.laatste-verbruik-box h4 {
	margin: 0 0 10px 0;
	color: #4a2a14;
	font-size: 18px;
}

.laatste-verbruik-box p {
	margin: 0;
	color: #75583c;
}

.laatste-verbruik-table {
	margin-top: 0;
}

.laatste-verbruik-table th,
.laatste-verbruik-table td {
	padding: 8px 10px;
	font-size: 13px;
}

.btn-delete-mini {
	border: none;
	border-radius: 8px;
	background: #b3261e;
	color: white;
	padding: 7px 10px;
	font-size: 12px;
	font-weight: bold;
	cursor: pointer;
}

.btn-delete-mini:hover {
	background: #8f1d18;
}

/* ***********************************************************
   Product beheer
*********************************************************** */

.product-toolbar {
	display: flex;
	gap: 10px;
	align-items: end;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.product-toolbar .form-row {
	min-width: 260px;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: bold;
}

.status-pill.active {
	background: #e4f3e5;
	color: #2e7d32;
}

.status-pill.inactive {
	background: #f8e4e1;
	color: #b3261e;
}




.auto-scan-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #d7c2a7;
	border-radius: 10px;
	background: #fffaf2;
	color: #5b3215;
	font-weight: bold;
	cursor: pointer;
}

.auto-scan-check input {
	width: auto;
	height: auto;
	margin: 0;
}

/* ***********************************************************
   Topbar knoppen rechts
*********************************************************** */

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}





@media (max-width: 1100px) {
	.dash-grid {
		grid-template-columns: repeat(2, minmax(180px, 1fr));
	}
}

@media (max-width: 760px) {
	.login-card {
		grid-template-columns: 1fr;
	}

	.login-left {
		padding: 32px;
	}

	.login-right {
		padding: 32px;
	}

	.dash-grid {
		grid-template-columns: 1fr;
	}

	.topbar {
		padding: 0 18px;
	}
	
	
	.form-grid {
		grid-template-columns: 1fr;
	}

}