:root {
	--color-page: #eef2f5;
	--color-surface: #fff;
	--color-border: #dde4ea;
	--color-border-strong: #cbd5df;
	--color-text: #1f2933;
	--color-muted: #52616f;
	--color-heading: #17212b;
	--color-primary: #0b6b57;
	--color-primary-hover: #095947;
	--color-header: #1f2933;
	--shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.06);
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	color: var(--color-text);
	background: var(--color-page);
}

* {
	box-sizing: border-box;
}

a {
	color: var(--color-primary);
	border: none;
}

img {
	border: none;
	max-width: 100%;
}

.clr {
	clear: both;
}

.left {
	float: left;
}

label.left {
	margin: 0 10px;
}

h1 {
	display: block;
	margin: 0 0 18px;
	padding: 0;
	color: var(--color-heading);
	background: transparent;
	border: 0;
	text-shadow: none;
	font: 700 24px/1.25 Arial, Helvetica, sans-serif;
}

#content-wrapper {
	min-height: calc(100vh - 48px);
	margin: 0;
	padding: 76px 24px 24px;
	background: var(--color-page);
}

#content {
	width: 100%;
	margin: 0 auto;
}

#version {
	width: 100%;
	padding: 10px 24px 18px;
	text-align: center;
	color: #64748b;
	background: var(--color-page);
}

#version a,
#version a:visited {
	color: #64748b;
	text-decoration: none;
	font-size: 12px;
}

/* Login */
.register-form {
	width: min(380px, calc(100% - 32px));
	margin: 0 auto;
	padding: 24px;
	background: #fff;
	border: 1px solid #dde4ea;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.register-form #logo {
	margin: 0 0 20px;
	text-align: center;
}

.register-form #logo img {
	max-height: 78px;
	object-fit: contain;
}

.register-form h1 {
	margin: 0 0 18px;
	text-align: center;
	font-size: 22px;
}

.register-form p {
	margin: 0 0 14px;
}

.register-form label {
	display: block;
	margin: 0 0 6px;
	color: #52616f;
	font-size: 14px;
	font-weight: 700;
}

.register-form input[type="text"],
.register-form input[type="password"] {
	display: block;
	width: 100%;
	height: 42px;
	padding: 8px 10px;
	color: #1f2933;
	background: #fff;
	border: 1px solid #cbd5df;
	border-radius: 6px;
	font: 15px/1.3 Arial, Helvetica, sans-serif;
	outline: 0;
}

.register-form input[type="text"]:focus,
.register-form input[type="password"]:focus,
.bookform input:focus,
.bookform select:focus,
.bookform textarea:focus,
#filter_form input:focus,
#filter_form select:focus {
	border-color: #0b8068;
	box-shadow: 0 0 0 3px rgba(11, 128, 104, 0.14);
}

.remember-login label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

.remember-login input {
	width: 16px;
	height: 16px;
}

.register-form .btn,
.register-form .register {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 96px;
	height: 40px;
	padding: 0 16px;
	color: #fff;
	background: #0b6b57;
	border: 0;
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.register-form .btn:hover,
.register-form .register:hover {
	background: #095947;
}

.error_message,
.success_message {
	width: min(720px, calc(100% - 32px));
	margin: 12px auto;
	padding: 10px 14px;
	border-radius: 6px;
	text-align: left;
	font-size: 14px;
}

.error_message {
	color: #8a1f17;
	background: #fde8e4;
	border: 1px solid #fac5bd;
}

.success_message {
	color: #14532d;
	background: #dcfce7;
	border: 1px solid #86efac;
}

.error_message p,
.success_message p {
	margin: 4px 0;
}

/* Forms */
.bookform {
	max-width: 760px;
	margin: 0 0 24px;
	padding: 0;
}

.user-management-form,
.user-management-form form.bookform {
	max-width: 100%;
	width: 100%;
}

.bookform h1 > span {
	font-size: 12px;
	color: #52616f;
}

.bookform label {
	display: block;
	margin: 0;
}

.bookform label > span {
	display: block;
	float: none;
	margin: 0 0 6px;
	color: #52616f;
	font-size: 14px;
	font-weight: 700;
}

.form-actions {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-align: left;
}

.bookform input[type="text"],
.bookform input[type="email"],
.bookform input[type="password"],
.bookform textarea,
.bookform select {
	display: block;
	float: none;
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	color: #1f2933;
	background: #fff;
	border: 1px solid #cbd5df;
	border-radius: 6px;
	outline: 0;
	box-shadow: none;
	font: 15px/1.35 Arial, Helvetica, sans-serif;
}

.bookform input:disabled {
	color: #64748b;
	background: #f1f5f9;
	cursor: not-allowed;
}

.bookform textarea {
	min-height: 100px;
	resize: vertical;
}

.bookform select {
	appearance: auto;
}

.bookform .button,
.bookform input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 10px 18px;
	color: #fff;
	background-color: #0b6b57;
	border: none;
	border-radius: 6px;
	font-weight: 700;
	text-shadow: none;
	cursor: pointer;
}

.bookform .button:hover,
.bookform input[type="submit"]:hover {
	background-color: #095947;
}

.article-form-action-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-left: auto;
	padding: 6px;
	background: #fff7ed;
	border: 1px solid #f59e0b;
	border-radius: 8px;
	cursor: pointer;
	vertical-align: middle;
}

.article-send-button {
	background: #fff7ed;
	border-color: #f59e0b;
}

.article-send-button:hover {
	background: #ffedd5;
}

.article-restore-button {
	background: #fef3c7;
	border-color: #f59e0b;
}

.article-restore-button:hover {
	background: #fde68a;
}

.article-form-action-button img {
	display: block;
	width: 28px;
	height: 28px;
	max-width: none;
	object-fit: contain;
}

#bookformlist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
	width: 100%;
	margin: 0 0 18px;
	padding: 18px;
	list-style: none;
	background: #fff;
	border: 1px solid #dde4ea;
	border-radius: 8px;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

#bookformlist li {
	width: auto;
	float: none;
	padding: 0;
}

#bookformlist .form-actions {
	grid-column: 1 / -1;
}

.user-management-form #bookformlist {
	grid-template-columns: repeat(2, minmax(260px, 1fr));
	width: 100%;
}

.user-management-form .edit-password-hint {
	color: #64748b;
	font-size: 12px;
	font-weight: 400;
}

.secondary-button {
	margin-left: 8px;
	color: #334155 !important;
	background: #f8fafc !important;
	border: 1px solid #cbd5df !important;
}

.secondary-button:hover {
	background: #edf2f7 !important;
}

/* Filter form */
#filter_form_div {
	margin: 0 0 16px;
	padding: 14px 16px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
}

#filter_form_div label {
	float: none;
	margin: 0;
	line-height: 36px;
	text-align: left;
	white-space: nowrap;
}

#filter_form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0;
	font: 14px Arial, Helvetica, sans-serif;
}

#filter_form .left {
	float: none;
}

#filter_form input[type="text"],
#filter_form select,
#submit_free_search,
#reset_free_form {
	min-height: 36px;
	margin: 0;
	padding: 7px 10px;
	border: 1px solid var(--color-border-strong);
	border-radius: 6px;
	background: var(--color-surface);
	font: 14px Arial, Helvetica, sans-serif;
}

#input_free_search {
	flex: 1 1 260px;
	max-width: 320px;
}

#filter_locatie,
#viewtype {
	flex: 0 1 220px;
	min-width: 180px;
}

.ui-autocomplete {
	z-index: 2000;
	font: 13px Arial, Helvetica, sans-serif;
	border: 1px solid var(--color-border-strong);
	border-radius: 6px;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
	overflow: hidden;
}

.ui-autocomplete .ui-menu-item {
	font-size: 13px;
	line-height: 1.35;
}

.ui-autocomplete .ui-menu-item-wrapper {
	padding: 7px 10px;
}

#submit_free_search,
#reset_free_form {
	color: #fff;
	background: var(--color-primary);
	border-color: var(--color-primary);
	font-weight: 700;
	cursor: pointer;
}

#reset_free_form {
	color: #334155;
	background: #f8fafc;
	border-color: var(--color-border-strong);
}

#submit_free_search:hover {
	background: var(--color-primary-hover);
}

#reset_free_form:hover {
	background: #edf2f7;
}

#input_price {
	display: inline-block;
	width: 16px;
	height: 16px;
}

/* Tables */
.table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 8px;
	box-shadow: var(--shadow-soft);
}

.table-scroll .data-table {
	box-shadow: none;
}

.data-table {
	position: relative;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: var(--shadow-soft);
}

.article-table {
	min-width: 1120px;
	table-layout: fixed;
}

.article-table-empty {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	box-shadow: none;
}

.empty-table-state {
	width: 100%;
	margin-top: -1px;
	padding: 14px 12px;
	color: var(--color-text);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 0 0 8px 8px;
	font: 13px Arial, Helvetica, sans-serif;
}

#artikelnummer_col {
	width: 150px;
}

.article-table th:nth-child(1),
.article-table td:nth-child(1) {
	width: 90px;
}

.article-table th:nth-child(2),
.article-table td:nth-child(2) {
	width: 180px;
}

.article-table th:nth-child(4),
.article-table td:nth-child(4) {
	width: 150px;
}

.article-table th:nth-child(6),
.article-table td:nth-child(6) {
	width: 110px;
}

.article-table th:nth-child(7),
.article-table td:nth-child(7) {
	width: 140px;
}

.article-table th:nth-child(8),
.article-table td:nth-child(8),
.article-table th:nth-child(9),
.article-table td:nth-child(9) {
	width: 120px;
}

.article-table th:nth-child(10),
.article-table td:nth-child(10) {
	width: 58px;
}

.data-table tr:nth-of-type(odd) {
	background: #f8fafc;
}

.data-table tr:nth-of-type(even) {
	background: #fff;
}

th,
th a {
	color: #fff;
	background: var(--color-header);
	font-weight: 700;
	text-decoration: none;
}

th a {
	display: block;
	line-height: 1.15;
}

.sort-link {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 28px;
}

.sort-label {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
}

.sort-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	color: #dbe5ed;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	font-size: 11px;
	line-height: 1;
}

.sort-active .sort-icon {
	color: #fff;
	background: var(--color-primary);
	border-color: var(--color-primary);
}

.sort-link:hover .sort-icon {
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
}

td,
th {
	padding: 10px 8px;
	border: 0;
	border-bottom: 1px solid #e5ebf0;
	text-align: left;
	font-size: 13px;
}

td {
	color: #334155;
	overflow-wrap: anywhere;
	word-break: normal;
}

.data-table tr:last-child td {
	border-bottom: 0;
}

.data-table-row:hover {
	background: #edf7f4 !important;
}

.article-selected-row,
.article-selected-row td {
	background: #ecfdf5 !important;
}

.article-selected-row td:first-child {
	box-shadow: inset 4px 0 0 var(--color-primary);
}

.users-table .user-row {
	cursor: pointer;
}

.users-table .user-row:hover,
.users-table .user-row.selected {
	background: #edf7f4 !important;
}

.users-table .user-row.selected td:first-child {
	box-shadow: inset 4px 0 0 #0b6b57;
}

.action-cell {
	width: 48px;
	min-width: 48px;
	padding: 6px 10px;
	text-align: center;
	white-space: nowrap;
}

.calculator_image,
.pdf_image,
.delete_image,
.restore_image {
	height: 24px;
	margin-top: 0;
	cursor: pointer;
}

.action-icon {
	display: inline-block;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	min-width: 32px;
	max-width: none;
	padding: 5px;
	vertical-align: middle;
	border-radius: 6px;
	object-fit: contain;
}

.action-icon:hover {
	background: #e2ece8;
}

.restore_image {
	background: #fef3c7 url("../images/undo.svg?v=3") center / 22px 22px no-repeat;
	border: 1px solid #f59e0b;
}

/* Pagination */
#pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 14px auto 0;
	padding: 10px 12px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: var(--shadow-soft);
	text-align: center;
}

#pagination a:hover {
	cursor: pointer;
	text-decoration: none;
}

#pagination span {
	display: inline-block;
	padding: 6px 10px;
	color: #fff;
	background: var(--color-header);
	border: 1px solid var(--color-header);
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none;
}

#pagination a.active span {
	color: #fff;
	background: var(--color-primary);
	border-color: var(--color-primary);
}

#pagination .pagination-gap,
#pagination .pagination-total {
	color: #52616f;
	background: transparent;
	border-color: transparent;
	font-weight: 400;
}

#pagination .per-page-form {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--color-muted);
	font-size: 13px;
}

#pagination .per-page-form label {
	font-weight: 700;
}

#pagination .per-page-form select {
	min-height: 34px;
	padding: 5px 28px 5px 8px;
	color: var(--color-text);
	background: var(--color-surface);
	border: 1px solid var(--color-border-strong);
	border-radius: 6px;
	font: 13px Arial, Helvetica, sans-serif;
}

#page_total_div {
	margin-top: 12px;
	padding: 10px 12px;
	color: #fff;
	background: var(--color-header);
	border-radius: 6px;
	text-align: right;
	font-weight: 700;
	font-size: 16px;
}

@media only screen and (max-width: 760px) {
	#content-wrapper {
		padding: 64px 12px 16px;
	}

	h1 {
		font-size: 22px;
	}

	#bookformlist {
		grid-template-columns: 1fr;
		padding: 14px;
	}

	.bookform {
		max-width: 100%;
	}

	#filter_form {
		display: grid;
		grid-template-columns: 1fr;
	}

	#filter_form input[type="text"],
	#filter_form select,
	#submit_free_search,
	#reset_free_form {
		width: 100%;
	}

	.data-table {
		border-radius: 6px;
	}

	.table-scroll {
		border-radius: 6px;
	}

	.article-table {
		min-width: 0;
		table-layout: fixed;
	}

	.article-table th:nth-child(1),
	.article-table td:nth-child(1) {
		width: 58px;
	}

	.article-table th:nth-child(2),
	.article-table td:nth-child(2) {
		width: 104px;
	}

	.article-table th:nth-child(5),
	.article-table td:nth-child(5) {
		width: auto;
	}

	.article-table th:nth-child(3),
	.article-table td:nth-child(3),
	.article-table th:nth-child(4),
	.article-table td:nth-child(4),
	.article-table th:nth-child(6),
	.article-table td:nth-child(6),
	.article-table th:nth-child(7),
	.article-table td:nth-child(7),
	.article-table th:nth-child(8),
	.article-table td:nth-child(8),
	.article-table th:nth-child(9),
	.article-table td:nth-child(9) {
		display: none;
	}

	.article-table th:nth-child(10),
	.article-table td:nth-child(10) {
		width: 50px;
	}

	.article-table th,
	.article-table td {
		padding: 8px 6px;
		font-size: 12px;
	}

	.article-table .sort-link {
		gap: 4px;
	}

	.article-table .sort-icon {
		width: 18px;
		height: 18px;
		flex-basis: 18px;
		font-size: 10px;
	}

	.users-table {
		min-width: 720px;
	}
}

@media only screen and (max-width: 900px) and (orientation: landscape) {
	.article-table {
		min-width: 1120px;
		table-layout: fixed;
	}

	.article-table th:nth-child(3),
	.article-table td:nth-child(3),
	.article-table th:nth-child(4),
	.article-table td:nth-child(4),
	.article-table th:nth-child(6),
	.article-table td:nth-child(6),
	.article-table th:nth-child(7),
	.article-table td:nth-child(7),
	.article-table th:nth-child(8),
	.article-table td:nth-child(8),
	.article-table th:nth-child(9),
	.article-table td:nth-child(9) {
		display: table-cell;
	}

	.article-table th:nth-child(1),
	.article-table td:nth-child(1) {
		width: 90px;
	}

	.article-table th:nth-child(2),
	.article-table td:nth-child(2) {
		width: 180px;
	}

	.article-table th:nth-child(4),
	.article-table td:nth-child(4) {
		width: 150px;
	}

	.article-table th:nth-child(6),
	.article-table td:nth-child(6) {
		width: 110px;
	}

	.article-table th:nth-child(7),
	.article-table td:nth-child(7) {
		width: 140px;
	}

	.article-table th:nth-child(8),
	.article-table td:nth-child(8),
	.article-table th:nth-child(9),
	.article-table td:nth-child(9) {
		width: 120px;
	}

	.article-table th:nth-child(10),
	.article-table td:nth-child(10) {
		width: 58px;
	}
}
