body {
	margin: 0;
	font-family: Arial, sans-serif;
}

.header {
	background-color: #f1f1f1;
	border-bottom: 1px solid #ddd;
	padding: 5px 20px 0px 10px;
	/* Adjusted padding for consistency */
	text-align: left;
	font-size: 24px;
	position: sticky;
	top: 0;
	height: 60px;
	z-index: 1001;
	/* Ensure subheader stays above other content */
}

.display-none {
	display: none;
}

.display-block {
	display: none;
}

@media (max-width: 768px) {
	.header div {
		width: 100%;
		/* Make inner divs take up full width */
	}

	.header #header-title {
		flex-direction: column !important;
		align-items: start !important;
	}

	#header-title span {
		font-size: 12px !important;
	}

	.header img {
		height: 30px !important;
		/* Reduce logo size for smaller screens */
	}

	.version {
		position: static;
		text-align: left;
		font-size: 12px;
		/* Reduce font size for version details */
		margin-top: 10px;
		/* Add space between the text and version info */
	}
}

.version {
	position: absolute;
	top: 5px;
	/* Adjust as needed */
	right: 20px;
	/* Adjust as needed */
	font-size: 14px;
	/* Adjust as needed */
	color: #666;
	/* Adjust as needed */
	padding-top: 4px;
	z-index: 1000;
	/* Ensure subheader stays above other content */
	text-align: right;
}

.subheader {
	background-color: #f8f8f8;
	border-bottom: 1px solid #ddd;
	padding: 10px 20px;
	text-align: left;
	font-size: 15px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	position: sticky;
	top: 66px;
	z-index: 1000;
	display: flex;
	/* Updated to use flexbox */
	justify-content: flex-start;
}

.subheader select {
	margin: 0px 20px 0px 10px;
}

.timestamp {
	font-style: italic;
	color: #3ac52b;
	/* Subtle color for the timestamp */
	font-size: 14px;
	/* Slightly smaller font size than subheader for distinction */
}

.sidebar {
	position: fixed;
	width: 275px;
	height: 100%;
	overflow: auto;
	font-size: 15px;
	background-color: #f0f0f0;
	border-right: 1px solid #ddd;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
	padding-right: 10px;
	padding-top: 10px;
}

.page-content {
	margin-left: 275px;
	/* Same as sidebar width */
	padding: 0px 20px;
}

.products-container {
	margin-left: 50px !important;
}

.burger-menu {
	display: none;
}

#control-bar--small {
	display: none;
}

#control-bar {
	display: flex;
	align-items: center;
}

#save_timestamp--small {
	display: none;
}

#save_button--small {
	display: none;
}

#add_page {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.select-container {
	flex: 0 1 auto;
	display: flex;
	align-items: center;
	padding: 5px;
}

@media (max-width: 768px) {
	.sidebar {
		display: none;
		z-index: 999;
	}

	.sidebar.open {
		display: block;
	}

	.page-content,
	.products-container {
		margin-left: 0px !important;
	}

	.subheader {
		padding: 5px;
		gap: 8px;
		align-items: center;
	}

	.subheader select {
		margin: 0;
	}

	#product-select {
		width: 200px;
	}

	#version-select {
		width: 75px;
	}

	#control-bar--small {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 3px;
		margin-left: 10px;
		min-height: 45px;
		padding-bottom: 10px;
		border-bottom: 1px solid gray;
	}

	#control-bar {
		display: none !important;
	}

	#control-bar #save_timestamp {
		display: none !important;
	}

	#control-bar #save_button {
		display: none !important;
	}

	#save_timestamp--small {
		display: block;
	}

	#save_button--small {
		display: block;
	}

	.burger-menu {
		display: block;
		color: #333;
		cursor: pointer;
		min-width: 30px;
	}

	.select-container {
		gap: 5px;
		flex: 1;
	}
}

.menu-item,
.content {
	cursor: pointer;
	padding: 5px 5px 0px 10px;
	/* Base padding for left and right */
	background-color: #f0f0f0;
	/* Consistent background */
	margin: 0;
	/* Ensure no default margins are affecting layout */
	font-size: 13px;
}

.menu-item {
	padding-right: 0;
}

.menu-item:hover {
	background-color: #f0f0f0;
}

.menu-level-1 {
	color: #0c47eb;
}

.menu-level-2 {
	color: #d51f1f;
}

.content {
	display: none;
	padding: 0;
	/* Remove padding inside content */
	padding-left: 0px;
	/* Only add padding to the left for child indentation */
}

.expanded>.content {
	display: block;
}

.indicator {
	margin-right: 5px;
	width: 15px;
	height: 10px;
	display: inline-block;
	background-size: contain;
	background-repeat: no-repeat;
	vertical-align: middle;
}

.indicator-page {
	width: 15px;
	/* Larger width */
	height: 15px;
	/* Larger height */
	/* background-image: url("static/img/page.png"); */
	/* Set the page icon */
	background-size: contain;
	/* Adjust if needed to make the icon fit well */
	background-repeat: no-repeat;
	/* padding-bottom: 5px;
	padding-right: 10px;
	margin-right: 15px; */
	margin-right: 12px;
}

.name {
	line-height: 2em;
	word-wrap: break-word;
}

.current-item>div>.name {
	font-weight: bold !important;
}

.page-content .table_layout {
	width: 100%;
	/* Make table use full width of its container */
	border-collapse: collapse;
	/* Remove space between borders */
}

.page-content .td_layout {
	width: 50%;
	/* Split cell width evenly */
	border: none;
	/* Remove cell borders */
	vertical-align: top;
	/* Align content to the top of the cell */
	line-height: 1.5em;
	padding: 10px;
	font-size: 15px;
}

@media (max-width: 600px) {
    .page-content .td_layout {
        font-size: 12px;
    }
}

.page-content td {
	line-height: 1em;
	padding: 0px 5px;
	font-size: 15px;
	padding-top: 10px;
}

.td_layout td {
	background-color: #f9f9f9;
	font-size: 12px;
}

.page-content .table_layout img {
	max-width: 100%;
	height: auto;
	display: block;
	border: solid 1px #999;
}

.tox-statusbar {
	display: none;
}

.editButton {
	float: right;
}

.td_layout img {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ====================================== */
#addProductModal,
#addProductCategoryModal,
#updateProductModal,
#updateProductCategoryModal,
#editModal,
#addModal {
	display: none;
	position: fixed;
	z-index: 1001;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
	padding-top: 50px;
}

#loginModal {
	position: fixed;
	z-index: 1001;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
	padding-top: 50px;
}

#loginModal .modal-body {
	padding-top: 30px;
}

.modal-container {
	background-color: #fefefe;
	margin: auto;
	padding: 0;
	border: 1px solid #888;
	width: 80%;
	max-width: 500px;
	border-radius: 10px;
}

.modal-header,
.modal-footer {
	padding: 10px 15px;
	line-height: 0px;
	background: #f5f5f5;
	border-bottom: 1px solid #e5e5e5;
	display: flex;
	align-items: center;
	justify-content: end;
	gap: 15px
}

.modal-header {
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modal-close-button {
	background: none;
	border: none;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	color: #333;
	transition: color 0.3s ease;
}

.modal-close-button:hover {
	color: red;
}

.modal-body {
	padding: 5px 20px 20px 20px;
}

.modal-body label {
	padding: 20px;
}

.full-width {
	width: 100%;
	padding: 4px;
	box-sizing: border-box;
}

.btn {
	padding: 4px 8px;
	margin-top: 10px;
	cursor: pointer;
	border: 1px solid #000000;
}

.modal-footer {
	border-top: 1px solid #e5e5e5;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	text-align: right;
}

hr {
	margin: 0px 0px;
}

@media (max-width: 768px) {
	.modal-container {
		width: 80%;
		/* Take almost full width on small screens */
		border-radius: 5px;
		/* Reduce border radius for smaller screens */
	}

	/* Adjust modal padding and font size */
	.modal-header,
	.modal-body,
	.modal-footer {
		padding: 10px;
		/* Less padding on smaller screens */
	}

	.modal-body label {
		font-size: 12px;
		/* Adjust label font size */
	}

	.modal-body p {
		margin: 5px 0;
	}

	.full-width {
		width: 100%;
		padding: 2px;
		/* Increase padding for input fields */
		box-sizing: border-box;
	}

	.label {
		display: none;
	}
}

/* ====================================== */

.dropZone {
	border: 2px dashed #007bff;
	border-radius: 5px;
	color: #007bff;
	text-align: center;
	padding: 20px;
	cursor: pointer;
	margin: 10px;
}

.dropZone:hover {
	background-color: #f0f8ff;
}

/* ====================================== */

code {
	background-color: #e0dff7;
	padding: 2px 5px;
	font-size: 13px;
	margin-left: 20px;
	border-radius: 4px;
}

/* ====================================== */

.home-link {
	display: inline-block;
	background-color: #f0f0f0;
	/* Background color */
	padding: 8px;
	/* Space around the icon */
	border-radius: 50%;
	/* Circular background */
	transition: background-color 0.3s ease, transform 0.3s ease;
	margin-right: 10px;
	/* Margin to the right */
}

.home-icon {
	width: 18px;
	/* Make the icon smaller */
	height: 18px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.home-link:hover {
	background-color: #e0e0e0;
	/* Change background color on hover */
	transform: scale(1.1);
	/* Slightly increase the size of the entire link on hover */
}

.home-link:hover .home-icon {
	opacity: 0.8;
	/* Make the icon slightly transparent on hover */
}

.container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	align-items: stretch;
	max-width: 50%;
	margin: 0 auto;
	text-align: center;
}

.doc-box {
	width: 150px;
	background-color: #003366;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	text-align: center;
	cursor: pointer;
	transition: transform 0.3s, box-shadow 0.3s;
	position: relative;
	padding: 10px;
	box-sizing: border-box;
}

.doc-box:hover {
	transform: scale(1.1);
	box-shadow: 0 0 20px rgba(0, 51, 102, 0.6);
}

.doc-box:active::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle,
			rgba(255, 255, 255, 0.6) 10%,
			transparent 40%);
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0);
	animation: sparkle 0.5s forwards;
}

.icon {
	width: 30px;
	height: 30px;
	margin-top: 30px;
}

@media (max-width: 600px) {
	.doc-box {
		width: 150px;
		height: 120px;
	}

	.container {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.container h3 {
		grid-column: span 2;
		justify-self: center;
	}

	.icon {
		margin-top: 5px;
	}

	.container .doc-box:last-child {
		grid-column: span 2;
		justify-self: center;
	}
}

.product-table {
	width: 100% !important;
	border-collapse: collapse;
	margin-bottom: 20px !important;
}

.product-table-header-row,
.product-table-column {
	border: 1px solid #ccc !important;
	padding: 8px !important;
	text-align: left !important;
}

.product-table-header-row {
	background-color: #f4f4f4;
}

.product-table-row:nth-child(even) {
	background-color: #f9f9f9;
}

.product-table-actions {
	display: flex;
	gap: 10px;
}

.product-table-button {
	padding: 5px 10px !important;
	border: none;
	color: white;
	background-color: #999;
	cursor: pointer;
}

.delete-btn {
	background-color: #e74c3c !important;
}

.confirm-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10000;
	width: 400px;
	background: white;
	border: 1px solid #ccc;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	text-align: center;
}

.confirm-modal-header {
	font-size: 18px;
	margin-bottom: 10px;
}

.confirm-modal-footer {
	display: flex;
	justify-content: space-around;
	margin-top: 20px;
}

.confirm-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
}

.chip {
	display: inline-block;
	padding: 5px 10px;
	margin: 5px 5px 0 0;
	background-color: #f1f1f1;
	border-radius: 15px;
	font-size: 14px;
}

.chip-button {
	background: none;
	border: none;
	font-size: 14px;
	border-radius: 50%;
	background-color: #e4e1e1;
	cursor: pointer;
	margin-left: 5px;
}
