/* Custom Styles for eightorder Theme */

/* Login Page Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body.custom-login-page {
	background-color: #000000;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #ffffff;
}

.login-container {
	width: 100%;
	max-width: 400px;
	padding: 40px 20px;
	text-align: center;
}

.login-logo {
	margin-bottom: 40px;
}

.login-logo img {
	max-width: 150px;
	height: auto;
}

.login-logo-placeholder {
	width: 120px;
	height: 120px;
	background-color: #333333;
	border: 2px solid #555555;
	border-radius: 8px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888888;
	font-size: 14px;
}

.login-form {
	background-color: transparent;
}

/* Login form styles - scoped to login page only */
.custom-login-page .form-group {
	margin-bottom: 20px;
	text-align: left;
}

.custom-login-page .form-group input[type="text"],
.custom-login-page .form-group input[type="password"] {
	width: 100%;
	padding: 12px 16px;
	background-color: #1a1a1a;
	border: 1px solid #333333;
	border-radius: 4px;
	color: #ffffff;
	font-size: 16px;
	transition: border-color 0.3s;
}

.custom-login-page .form-group input[type="text"]:focus,
.custom-login-page .form-group input[type="password"]:focus {
	outline: none;
	border-color: #555555;
}

.custom-login-page .form-group input[type="text"]::placeholder,
.custom-login-page .form-group input[type="password"]::placeholder {
	color: #666666;
}

.remember-me {
	margin-bottom: 24px;
	text-align: left;
}

.remember-me label {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 14px;
	color: #cccccc;
}

.remember-me input[type="checkbox"] {
	margin-right: 8px;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.custom-login-page .login-submit,
.custom-login-page #wp-submit,
.login-submit,
#wp-submit {
	width: 100%;
	padding: 14px;
	background-color: #6b03ff !important;
	color: #ffffff !important;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
}

.custom-login-page .login-submit:hover,
.custom-login-page #wp-submit:hover,
.login-submit:hover,
#wp-submit:hover {
	background-color: #5a02d4 !important;
}

.custom-login-page .login-submit:active,
.custom-login-page #wp-submit:active,
.login-submit:active,
#wp-submit:active {
	background-color: #4a02b3 !important;
}

.login-error {
	background-color: #ff4444;
	color: #ffffff;
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
	text-align: left;
}

.login-success {
	background-color: #44ff44;
	color: #000000;
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
	text-align: left;
}

/* Dashboard Styles */
body.dashboard-view {
	overflow: hidden;
	background-color: #f0f0f1;
	height: 100vh;
	margin: 0;
	padding: 0;
}

html {
	height: 100%;
	margin: 0;
	padding: 0;
}

body.dashboard-view #page {
	margin: 0;
	padding: 0;
}

.dashboard-wrapper {
	display: flex;
	height: 100vh;
	background-color: #f0f0f1;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Sidebar Styles */
.dashboard-sidebar {
	width: 240px;
	background-color: #141319;
	color: #f0f0f1;
	display: flex;
	flex-direction: column;
	position: fixed;
	left: 0;
	top: 0; /* Push down to account for WordPress admin bar */
	height: 100vh; /* Adjust height to account for admin bar */
	z-index: 1000;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
	padding: 20px;
	border-bottom: 1px solid #3c434a;
	background-color: #141319;
}

.sidebar-logo {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sidebar-logo img {
	max-width: 100%;
	height: auto;
	max-height: 90px;
	object-fit: contain;
}

.sidebar-menu {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 10px 0;
	overflow-y: auto;
}

.menu-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu-items.menu-items-bottom {
	margin-top: auto;
	border-top: 1px solid #3c434a;
	padding-top: 10px;
}

.menu-item {
	margin: 0;
}

.menu-link {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	color: #b4b9be;
	text-decoration: none;
	transition: all 0.2s;
	border-left: 4px solid transparent;
}

.menu-link:visited {
	color: #b4b9be; /* Keep same color for visited links */
}

.menu-link:hover {
	background-color: #2c3338;
	color: #ffffff;
}

.menu-link:hover:visited {
	color: #ffffff; /* White on hover even if visited */
}

.menu-item.active .menu-link {
	background-color: #6b03ff;
	color: #ffffff;
	border-left-color: #9d5aff;
}

.menu-item.active .menu-link:visited {
	color: #ffffff; /* White when active even if visited */
}

.menu-icon {
	font-size: 18px;
	margin-right: 12px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.menu-icon svg {
	width: 100%;
	height: 100%;
	color: inherit;
}

.menu-text {
	font-size: 14px;
	font-weight: 500;
}

/* Main Content Wrapper */
.dashboard-content-wrapper {
	flex: 1;
	margin-left: 240px;
	display: flex;
	flex-direction: column;
	height: 100vh;
	min-height: 0;
	overflow: hidden;
	background-color: #ffffff;
}

/* Top Bar Styles */
.dashboard-topbar {
	background-color: #ffffff;
	border-bottom: 1px solid #dcdcde;
	padding: 0 20px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.topbar-left {
	display: flex;
	align-items: center;
	gap: 15px;
}

/* Hamburger Menu Toggle Button */
.hamburger-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	margin-right: 10px;
	z-index: 1001;
	position: relative;
}

.hamburger-icon {
	display: flex;
	flex-direction: column;
	width: 24px;
	height: 18px;
	justify-content: space-between;
}

.hamburger-icon span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: #1d2327;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.hamburger-menu-toggle.active .hamburger-icon span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu-toggle.active .hamburger-icon span:nth-child(2) {
	opacity: 0;
}

.hamburger-menu-toggle.active .hamburger-icon span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

.dashboard-page-title {
	font-size: 23px;
	font-weight: 400;
	margin: 0;
	color: #1d2327;
	padding: 0;
	line-height: 60px;
}

.topbar-right {
	display: flex;
	align-items: center;
}

.user-menu {
	display: flex;
	align-items: center;
	gap: 10px;
}

.user-name {
	font-size: 14px;
	color: #2c3338;
	font-weight: 500;
	margin-right: 10px;
}

.logout-btn {
	padding: 6px 12px;
	background-color: #6b03ff;
	color: #ffffff;
	text-decoration: none;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 500;
	transition: background-color 0.2s, color 0.2s;
}

.logout-btn:hover,
.logout-btn:focus,
.logout-btn:active {
	background-color: #5a02d4;
	color: #ffffff;
}

/* Dashboard Content */
.dashboard-content {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior-y: contain;
	-webkit-overflow-scrolling: touch;
	padding: 0 20px 20px 20px; /* Remove top padding to eliminate gap */
	background-color: #f0f0f9;
}

.content-container {
	max-width: 1400px;
	margin: 0 auto;
}

.welcome-section {
	margin: 30px 0;
	padding: 20px;
	background-color: #ffffff;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.welcome-section h2 {
	font-size: 24px;
	font-weight: 500;
	margin: 0 0 10px 0;
	color: #1d2327;
}

.welcome-section p {
	margin: 0;
	color: #646970;
	font-size: 14px;
}

/* Stats Grid */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.stat-card {
	background-color: #ffffff;
	padding: 20px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 20px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-icon {
	font-size: 40px;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f0f0f1;
	border-radius: 8px;
}

.stat-info {
	flex: 1;
}

.stat-info h3 {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 5px 0;
	color: #646970;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stat-value {
	font-size: 32px;
	font-weight: 600;
	margin: 0;
	color: #1d2327;
	line-height: 1;
}

.stat-label {
	font-size: 13px;
	color: #646970;
	margin: 5px 0 0 0;
}

/* Dashboard Status Box (index: submitted today or submit button) */
.dashboard-status-box {
	background-color: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 30px;
}

.dashboard-status-message {
	font-size: 15px;
	margin: 0 0 12px 0;
}

.dashboard-status-ok {
	color: #00a32a;
}

.dashboard-status-pending {
	color: #646970;
	margin-bottom: 12px;
}

.dashboard-status-btn {
	display: inline-block;
	padding: 10px 18px;
	background-color: #6b03ff;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.dashboard-status-btn:hover,
.dashboard-status-btn:visited,
.dashboard-status-btn:focus {
	color: #ffffff !important;
	text-decoration: none;
}

.dashboard-status-btn:hover {
	background-color: #5a02d4;
}

/* Content Sections */
.content-sections {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 20px;
}

.content-section {
	background-color: #ffffff;
	padding: 20px;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-section h3 {
	font-size: 18px;
	font-weight: 500;
	margin: 0 0 15px 0;
	color: #1d2327;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.placeholder-text {
	color: #646970;
	font-size: 14px;
	margin: 0;
	font-style: italic;
}

/* Hide default header/footer when dashboard is active */
/* Hide default WordPress header on inventory, order, and request pages */
body.inventory-page #masthead,
body.inventory-page .site-header,
body.stock-page #masthead,
body.stock-page .site-header,
body.order-page #masthead,
body.order-page .site-header,
body.request-page #masthead,
body.request-page .site-header,
body.cost-page #masthead,
body.cost-page .site-header,
body.dashboard-view #masthead,
body.dashboard-view #colophon,
body.dashboard-view .site-main:not(.dashboard-content) {
	display: none !important;
}

body.dashboard-view #page {
	display: block;
	margin: 0;
	padding: 0;
}

/* Responsive Design */
@media (max-width: 782px) {
	.stats-grid {
		grid-template-columns: 1fr;
	}
	
	.content-sections {
		grid-template-columns: 1fr;
	}
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
	.hamburger-menu-toggle {
		display: block;
	}
	
	.dashboard-topbar .user-name {
		display: none;
	}
	
	.dashboard-sidebar {
		width: 240px;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		padding-bottom: 80px;
		box-sizing: border-box;
	}
	
	.dashboard-sidebar.sidebar-open {
		transform: translateX(0);
		z-index: 1001;
	}
	
	.dashboard-content-wrapper {
		margin-left: 0;
		width: 100%;
	}
	
	/* Overlay when sidebar is open */
	.sidebar-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 1000;
	}
}

@media (max-width: 600px) {
	.dashboard-topbar {
		padding: 0 15px;
	}
	
	.dashboard-page-title {
		font-size: 18px;
	}
	
	.dashboard-sidebar {
		width: 240px;
	}
}

/* Inventory Page Styles */
.inventory-page-header {
	margin-bottom: 30px;
	padding: 20px;
	background-color: #ffffff;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.inventory-page-header h2 {
	font-size: 24px;
	font-weight: 500;
	margin: 0 0 10px 0;
	color: #1d2327;
}

.inventory-page-header p {
	margin: 0;
	color: #646970;
	font-size: 14px;
}

.inventory-message {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
}

.inventory-message-success {
	background-color: #00a32a;
	color: #ffffff;
}

.inventory-message-error {
	background-color: #d63638;
	color: #ffffff;
}

/* Success Notification Popup */
.success-notification {
	position: fixed;
	top: 20px;
	left: 50%;
	background-color: #00a32a;
	color: #ffffff;
	padding: 16px 20px;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	min-width: 300px;
	max-width: 400px;
	opacity: 0;
	transform: translateX(-50%) translateY(-20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-notification.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.success-notification .notification-message {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.success-notification .notification-close {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.success-notification .notification-close:hover {
	opacity: 1;
}

.success-notification .notification-close:focus {
	outline: 2px solid rgba(255, 255, 255, 0.5);
	outline-offset: 2px;
}

.inventory-form-wrapper {
	background-color: #ffffff;
	padding: 30px;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.inventory-form {
	max-width: 100%;
}

.inventory-form .form-group {
	margin-bottom: 25px;
}

.inventory-form .form-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #1d2327;
}

.inventory-form .form-label .required {
	color: #d63638;
	margin-left: 3px;
}

/* Unified Form Input Styles - Applied to all dashboard forms */
.inventory-form .form-input,
.inventory-form .form-select,
.filter-input,
.filter-select {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background-color: #ffffff;
	color: #1d2327;
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: inherit;
	line-height: 1.5;
	box-sizing: border-box;
	height: 42px; /* Fixed height for consistency across browsers */
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

/* Safari-specific select styling */
.inventory-form .form-select,
.filter-select,
.dashboard-content select,
.modal-content select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231d2327' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	padding-right: 36px;
	cursor: pointer;
}

.inventory-form .form-input:focus,
.inventory-form .form-select:focus,
.filter-input:focus,
.filter-select:focus {
	outline: none;
	border-color: #6b03ff;
	box-shadow: 0 0 0 1px #6b03ff;
}

/* Ensure all text inputs in dashboard have consistent styling */
.dashboard-content input[type="text"],
.dashboard-content input[type="email"],
.dashboard-content input[type="number"],
.dashboard-content input[type="search"],
.dashboard-content textarea,
.dashboard-content select,
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="number"],
.modal-content input[type="search"],
.modal-content textarea,
.modal-content select {
	background-color: #ffffff !important;
	color: #1d2327 !important;
	border: 1px solid #8c8f94 !important;
	border-radius: 4px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.5;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	height: 42px; /* Fixed height for consistency */
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

/* File inputs should not have fixed height */
.dashboard-content input[type="file"],
.modal-content input[type="file"] {
	height: auto !important;
	min-height: 42px;
	overflow: hidden;
}

/* Textarea should not have fixed height */
.dashboard-content textarea,
.modal-content textarea {
	height: auto;
	min-height: 100px;
	resize: vertical;
}

/* Select dropdown arrow styling */
.dashboard-content select,
.modal-content select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231d2327' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	padding-right: 36px;
	cursor: pointer;
}

.dashboard-content input[type="text"]:focus,
.dashboard-content input[type="email"]:focus,
.dashboard-content input[type="number"]:focus,
.dashboard-content input[type="search"]:focus,
.dashboard-content textarea:focus,
.dashboard-content select:focus,
.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="number"]:focus,
.modal-content input[type="search"]:focus,
.modal-content textarea:focus,
.modal-content select:focus {
	outline: none;
	border-color: #6b03ff !important;
	box-shadow: 0 0 0 1px #6b03ff;
}

.dashboard-content input[type="text"]::placeholder,
.dashboard-content input[type="email"]::placeholder,
.dashboard-content input[type="number"]::placeholder,
.dashboard-content input[type="search"]::placeholder,
.dashboard-content textarea::placeholder,
.modal-content input[type="text"]::placeholder,
.modal-content input[type="email"]::placeholder,
.modal-content input[type="number"]::placeholder,
.modal-content input[type="search"]::placeholder,
.modal-content textarea::placeholder {
	color: #8c8f94;
}

.inventory-form .form-input[type="file"] {
	padding: 8px;
	cursor: pointer;
	height: auto; /* Override fixed height for file inputs */
	min-height: 42px;
	box-sizing: border-box;
	overflow: hidden; /* Prevent button from bleeding out */
}

.inventory-form .form-input[type="file"]::-webkit-file-upload-button {
	padding: 8px 16px;
	margin-right: 12px;
	background-color: #f0f0f1;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	color: #1d2327;
	height: auto;
	line-height: 1.5;
	box-sizing: border-box;
}

.inventory-form .form-input[type="file"]::-webkit-file-upload-button:hover {
	background-color: #e0e0e0;
}

/* Firefox file input button */
.inventory-form .form-input[type="file"]::file-selector-button {
	padding: 8px 16px;
	margin-right: 12px;
	background-color: #f0f0f1;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	color: #1d2327;
	height: auto;
	line-height: 1.5;
	box-sizing: border-box;
}

.inventory-form .form-input[type="file"]::file-selector-button:hover {
	background-color: #e0e0e0;
}

.inventory-form .form-help {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #646970;
	font-style: italic;
}

.inventory-form .form-submit-btn {
	padding: 0 24px;
	height: 42px; /* Match form input height */
	background-color: #6b03ff;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.inventory-form .form-submit-btn:hover {
	background-color: #5a02d4;
}

.inventory-form .form-submit-btn:active {
	background-color: #0a4b78;
}

.image-preview {
	margin-top: 15px;
}

.image-preview .preview-image {
	max-width: 200px;
	max-height: 200px;
	border-radius: 4px;
	border: 1px solid #dcdcde;
	padding: 5px;
	background-color: #f0f0f1;
	object-fit: contain;
}

/* Restaurant Checkboxes */
.restaurant-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}

.size-checkboxes {
	display: flex;
	flex-direction: row;
	gap: 10px;
	margin-top: 8px;
}

.checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 10px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background-color: #ffffff;
	transition: all 0.2s;
}

.checkbox-label:hover {
	background-color: #f6f7f7;
	border-color: #6b03ff;
}

.form-checkbox {
	width: 18px;
	height: 18px;
	margin-right: 12px;
	cursor: pointer;
	accent-color: #6b03ff;
	flex-shrink: 0;
}

.form-checkbox:checked + .checkbox-text {
	color: #6b03ff;
}

/* Use JavaScript class for better compatibility */
.checkbox-label.checked {
	background-color: #f0e6ff;
	border-color: #6b03ff;
}

.checkbox-text {
	font-size: 14px;
	color: #1d2327;
	font-weight: 500;
	transition: color 0.2s;
}

/* Inventory Page Header */
.inventory-page-header {
	margin: 20px 0 30px 0; /* Add top margin to compensate for removed dashboard-content padding */
	padding: 20px;
	background-color: #ffffff;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.inventory-page-header .header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}


.view-mode-toggle {
	display: flex;
	background-color: #f0f0f1;
	border-radius: 4px;
	padding: 2px;
	gap: 2px;
}

.view-btn {
	background: none;
	border: none;
	padding: 6px 8px;
	cursor: pointer;
	color: #646970;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.view-btn:hover {
	background-color: #ffffff;
	color: #1d2327;
}

.view-btn.active {
	background-color: #ffffff;
	color: #6b03ff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.inventory-page-header h2 {
	font-size: 24px;
	font-weight: 500;
	margin: 0 0 5px 0;
	color: #1d2327;
}

.inventory-page-header p {
	margin: 0;
	color: #646970;
	font-size: 14px;
}

.btn-add-item {
	padding: 10px 20px;
	background-color: #6b03ff;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
	text-decoration: none;
	display: inline-block;
}

.btn-add-item:hover {
	background-color: #5a02d4;
}

/* Inventory Filters */
.inventory-filters {
	background-color: #ffffff;
	padding: 20px;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin-bottom: 30px;
	width: 100%;
	box-sizing: border-box;
}

.filters-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	align-items: end;
	width: 100%;
	box-sizing: border-box;
}

/* Cost page: search field 2/3, button 1/3 */
.cost-page .filters-form {
	grid-template-columns: 2fr 1fr;
}

.cost-list-header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding-bottom: 12px;
}

.filter-group {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

.filter-group.filter-actions {
	flex-direction: row;
	gap: 10px;
	align-items: flex-end;
	width: 100%;
	box-sizing: border-box;
}

.filter-label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1d2327;
}

/* Filter inputs now inherit from unified form styles above */

.btn-filter {
	padding: 0 16px;
	height: 42px; /* Match form input height */
	background-color: #6b03ff;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-width: 0;
}

.btn-filter:hover {
	background-color: #5a02d4;
}

.btn-clear {
	padding: 0 16px;
	height: 42px; /* Match form input height */
	background-color: #f0f0f1;
	color: #1d2327;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
	box-sizing: border-box;
	flex: 1;
	min-width: 0;
}

/* Remove default link styling for Clear button */
.btn-clear:link,
.btn-clear:visited,
.btn-clear:active {
	color: #1d2327;
	text-decoration: none;
}

.btn-clear:hover {
	background-color: #e0e0e0;
	color: #1d2327;
	text-decoration: none;
}

.btn-clear:focus {
	outline: 2px solid #6b03ff;
	outline-offset: 2px;
	text-decoration: none;
}

/* Inventory Items List */
.inventory-items-list {
	background-color: #ffffff;
	padding: 15px;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	position: relative;
}

/* Order page specific - more compact */
.order-page .inventory-items-list {
	padding: 12px 15px;
}

.items-list-header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-bottom: 12px;
	gap: 12px;
}
.inventory-print-list-btn {
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: #1d2327;
	background-color: #f0f0f1;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
}
.inventory-print-list-btn:hover {
	background-color: #e0e0e1;
	border-color: #c3c4c7;
}
.inventory-print-list-btn:visited {
	color: #551a8b;
}

.order-page .items-list-header {
	padding-bottom: 10px;
}

.items-container {
	transition: all 0.3s ease;
}

/* Card View (Default) - 5 cards per row */
.items-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 15px;
}

/* Cost page - more compact grid for ingredients */
.cost-page .items-grid {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.items-grid .inventory-item-card {
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
	background-color: #ffffff;
	transition: transform 0.2s, box-shadow 0.2s;
	cursor: pointer;
	position: relative;
}

.items-grid .inventory-item-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.items-grid .item-actions {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	gap: 8px;
	z-index: 10;
}

.items-grid .item-image-wrapper {
	display: block;
}

.items-grid .item-image {
	width: 100%;
	aspect-ratio: 16 / 10.8; /* 16:9 ratio increased by 20% height */
	overflow: hidden;
	background-color: #21222b;
	display: flex;
	align-items: center;
	justify-content: center;
}

.items-grid .item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.items-grid .item-image-placeholder {
	color: #d5dbe3;
	font-size: 14px;
}

/* Black background for "No Image" placeholder on order page */
.order-no-image {
	background-color: #1d2327 !important;
	color: #ffffff !important;
}

.items-grid .item-details {
	padding: 15px;
}

.items-grid .item-name {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 6px 0;
	color: #1d2327;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 8px;
}

.items-grid .item-invoice-priority,
.items-list .item-invoice-priority {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 700;
	color: #6b03ff;
	background-color: #f0e6ff;
	border-radius: 4px;
	flex-shrink: 0;
}

.items-grid .item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
	align-items: center;
}

/* Card View - Smaller tags */
.items-grid .item-category,
.items-grid .item-size,
.items-grid .item-property-codes {
	font-size: 10px;
	padding: 2px 5px;
	border-radius: 3px;
	font-weight: 500;
	white-space: nowrap;
}

.items-grid .item-category {
	background-color: #e8f5e9;
	color: #2e7d32;
}

.items-grid .item-property-codes {
	background-color: #f0e6ff;
	color: #6b03ff;
}

.items-grid .item-size {
	background-color: #f0f0f1;
	color: #646970;
}

.items-grid .item-cost {
	font-size: 11px;
	font-weight: 600;
}

/* List View */
.items-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.items-list .inventory-item-card {
	border: 1px solid #eee;
	border-radius: 3px;
	background-color: #ffffff;
	display: flex;
	align-items: center;
	padding: 8px 12px;
	transition: background-color 0.2s;
	cursor: pointer;
	position: relative;
}

.items-list .inventory-item-card:hover {
	background-color: #f6f7f7;
	box-shadow: none;
	transform: none;
}

.items-list .item-actions {
	display: flex;
	gap: 8px;
	margin-left: auto;
	flex-shrink: 0;
}

.items-list .item-image-wrapper {
	display: none;
}

.items-list .item-details {
	padding: 0;
	flex: 1;
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
	min-width: 0;
}

.items-list .item-name {
	font-size: 13px;
	font-weight: 600;
	margin: 0;
	color: #1d2327;
	min-width: 200px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.items-list .item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px; /* Reduced gap for even spacing between all tags */
	margin: 0;
	flex: 1;
	align-items: center;
}

.items-list .item-property-codes {
	font-size: 10px;
	padding: 2px 5px;
	background-color: #f0e6ff;
	border-radius: 3px;
	color: #6b03ff;
	font-weight: 500;
	margin: 0; /* Remove margin, use gap instead */
}

/* List View - Same smaller size as card view */
.items-list .item-category,
.items-list .item-size {
	font-size: 10px;
	padding: 2px 5px;
	border-radius: 3px;
	white-space: nowrap;
	font-weight: 500;
}

.items-list .item-category {
	background-color: #e8f5e9;
	color: #2e7d32;
}

.items-list .item-property-codes {
	background-color: #f0e6ff;
	color: #6b03ff;
}

.items-list .item-size {
	background-color: #f0f0f1;
	color: #646970;
}

.items-list .item-cost {
	font-size: 11px;
	font-weight: 600;
	margin: 0 10px 0 0;
	display: inline-flex;
	align-items: center;
}

/* Item Action Buttons */
.item-action-btn {
	background: none;
	border: none;
	padding: 6px;
	cursor: pointer;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	color: #a7a1bf;
}

.item-action-btn:hover {
	background-color: #f0f0f1;
}

.item-edit-btn:hover {
	color: #6b03ff;
	background-color: #f0e6ff;
}

.item-delete-btn:hover {
	color: #d63638;
	background-color: #ffeaea;
}

.item-action-btn svg {
	width: 16px;
	height: 16px;
}

.no-items {
	text-align: center;
	padding: 60px 20px;
	color: #646970;
}

.no-items p {
	margin: 10px 0;
	font-size: 16px;
}

/* Modal Styles */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
}

/* Checkout modal should be above cart sidebar */
#checkout-modal {
	z-index: 10002 !important;
}

.modal-overlay.modal-active {
	display: flex;
}

/* Stock page: numpad modal (iPad-friendly) */
#stock-add-modal.stock-numpad-modal {
	z-index: 10001;
}

.stock-numpad-modal-content {
	max-width: 420px;
	padding: 0;
}

.stock-numpad-inner {
	padding: 48px 20px 28px;
}

.stock-numpad-heading {
	margin: 0 0 8px;
	font-size: 22px;
	text-align: center;
	color: #1d2327;
}

.stock-numpad-item-name {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 600;
	color: #6b03ff;
	text-align: center;
	line-height: 1.35;
}

.stock-numpad-label {
	margin: 0 0 10px;
	font-size: 15px;
	color: #646970;
	text-align: center;
}

.stock-numpad-display {
	font-size: 42px;
	font-weight: 700;
	text-align: right;
	font-variant-numeric: tabular-nums;
	padding: 16px 18px;
	background: #f6f7f7;
	border-radius: 10px;
	margin-bottom: 16px;
	min-height: 56px;
	line-height: 1.2;
	border: 2px solid transparent;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.stock-numpad-display.stock-numpad-display--error {
	border-color: #d63638;
	background: #fcf0f1;
}

.stock-numpad-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.stock-numpad-key {
	min-height: 64px;
	font-size: 26px;
	font-weight: 600;
	border: 2px solid #dcdcde;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	color: #1d2327;
}

.stock-numpad-key:active {
	background: #f0f0f1;
}

.stock-numpad-key-secondary {
	font-size: 16px;
	font-weight: 600;
	color: #646970;
}

.stock-numpad-actions {
	display: flex;
	gap: 12px;
}

.stock-numpad-btn-cancel {
	flex: 1;
	min-height: 56px;
	border-radius: 10px;
	border: 2px solid #c3c4c7;
	background: #fff;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.stock-numpad-btn-cancel:active {
	background: #f6f7f7;
}

.stock-numpad-btn-confirm {
	flex: 2;
	min-height: 56px;
	border-radius: 10px;
	border: none;
	background: #6b03ff;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.stock-numpad-btn-confirm:active {
	filter: brightness(0.95);
}

.stock-numpad-btn-confirm.stock-numpad-btn-confirm--remove {
	background: #d63638;
}

.stock-numpad-btn-confirm.stock-numpad-btn-confirm--remove:active {
	filter: brightness(0.95);
}

.stock-numpad-hidden-form {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.modal-content {
	background-color: #ffffff;
	border-radius: 8px;
	width: 100%;
	max-width: 700px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	position: relative;
	margin: auto;
}

.modal-content.modal-large {
	max-width: 900px;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	padding-right: 48px; /* room for close button in top-right corner */
	border-bottom: 1px solid #dcdcde;
	position: sticky;
	top: 0;
	background-color: #ffffff;
	z-index: 1;
}

.modal-header h2 {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
	color: #1d2327;
}

/* Close button at top-right corner of modal box (inside the card, not full-width top) */
.modal-content .modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
}
.modal-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #646970;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s, color 0.2s;
	text-decoration: none; /* Remove underline */
}

/* Remove all default link styling for modal close buttons */
.modal-close:link,
.modal-close:visited,
.modal-close:active {
	color: #646970;
	text-decoration: none;
}

.modal-close:hover {
	background-color: #f0f0f1;
	color: #1d2327;
	text-decoration: none;
}

.modal-close:focus {
	outline: 2px solid #6b03ff;
	outline-offset: 2px;
	text-decoration: none;
}

.modal-body {
	padding: 20px;
}

.form-actions {
	display: flex;
	gap: 10px;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
}

/* Edit modals: Update & Cancel left, Delete right */
.form-actions-with-delete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.form-actions-with-delete .form-actions-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.form-cancel-btn {
	padding: 0 20px;
	height: 42px; /* Match form input height */
	background-color: #f0f0f1;
	color: #1d2327;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

/* Remove default link styling for Cancel button */
.form-cancel-btn:link,
.form-cancel-btn:visited,
.form-cancel-btn:active {
	color: #1d2327;
	text-decoration: none;
}

.form-cancel-btn:hover {
	background-color: #e0e0e0;
	color: #1d2327;
	text-decoration: none;
}

.form-cancel-btn:focus {
	outline: 2px solid #6b03ff;
	outline-offset: 2px;
	text-decoration: none;
}

/* Item Detail Styles */
.item-detail-view {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 30px;
}

.item-detail-image {
	width: 100%;
	height: 300px;
	overflow: hidden;
	background-color: #f0f0f1;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.item-detail-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.item-detail-image-placeholder {
	color: #646970;
	font-size: 14px;
}

.item-detail-info h3 {
	font-size: 24px;
	margin: 0 0 20px 0;
	color: #1d2327;
}

.item-detail-info .detail-row {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #dcdcde;
}

/* Smaller styling for meta information (Created/Updated) */
.item-detail-info .detail-row-meta {
	margin-bottom: 8px;
	padding-bottom: 8px;
}

.item-detail-info .detail-row-meta .detail-label {
	font-size: 11px;
	color: #8c8f94;
}

.item-detail-info .detail-row-meta .detail-value {
	font-size: 12px;
	color: #646970;
}

.item-detail-info .detail-row:last-child {
	border-bottom: none;
}

.item-detail-info .detail-label {
	font-size: 12px;
	font-weight: 600;
	color: #646970;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 5px;
}

.item-detail-info .detail-value {
	font-size: 16px;
	color: #1d2327;
}

/* Tags in Detail View */
.restaurant-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.restaurant-tag,
.detail-tag {
	display: inline-block;
	font-size: 11px;
	padding: 3px 6px;
	border-radius: 3px;
	font-weight: 500;
	white-space: nowrap;
}

.restaurant-tag {
	background-color: #f0e6ff;
	color: #6b03ff;
}

.detail-tag-category {
	background-color: #e8f5e9;
	color: #2e7d32;
}

.detail-tag-size {
	background-color: #f0f0f1;
	color: #646970;
}

.detail-tag-sku {
	background-color: #fff3e0; /* Light orange */
	color: #e65100; /* Darker orange */
}

.item-detail-actions {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
	display: flex;
	gap: 10px;
}

.btn-edit,
.btn-delete {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	display: inline-block;
}

.btn-edit {
	background-color: #6b03ff;
	color: #ffffff;
}

.btn-edit:hover {
	background-color: #5a02d4;
}

.btn-delete {
	background-color: #d63638;
	color: #ffffff;
}

.btn-delete:hover {
	background-color: #b32d2e;
}

.current-image-preview {
	margin-bottom: 15px;
}

.current-image-preview img {
	max-width: 200px;
	max-height: 200px;
	border-radius: 4px;
	border: 1px solid #dcdcde;
	padding: 5px;
	background-color: #f0f0f1;
	object-fit: contain;
}

.loading-state {
	text-align: center;
	padding: 40px;
	color: #646970;
}

/* Delete Confirmation */
.delete-confirmation {
	background-color: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 20px;
}

.delete-confirmation p {
	margin: 0 0 10px 0;
	color: #856404;
}

.delete-confirmation-actions {
	display: flex;
	gap: 10px;
}

.btn-confirm-delete {
	padding: 8px 16px;
	background-color: #d63638;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.btn-confirm-delete:hover {
	background-color: #b32d2e;
}

.btn-cancel-delete {
	padding: 8px 16px;
	background-color: #f0f0f1;
	color: #1d2327;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.btn-cancel-delete:hover {
	background-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.inventory-page-header .header-content {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.items-list-header {
		margin-bottom: 10px;
		padding-bottom: 10px;
	}
	
	.filters-form {
		grid-template-columns: 1fr;
	}
	
	/* Cost page: keep 2/3 and 1/3 even on mobile */
	.cost-page .filters-form {
		grid-template-columns: 2fr 1fr;
	}
	
	.filter-group.filter-actions {
		flex-direction: column;
	}
	
	.items-grid {
		grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile instead of 1 */
		gap: 10px;
	}
	
	.items-list .item-details {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	.items-list .item-name {
		min-width: auto;
		width: 100%;
	}
	
	.items-list .item-restaurants {
		min-width: auto;
		width: 100%;
	}
	
	.modal-content {
		max-width: 100%;
		margin: 20px;
	}
}

/* Add your custom styles below */

/* Shopping Cart Styles */
.cart-btn,
.order-history-btn {
	position: relative;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	margin-right: 0;
	color: #646970;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

/* Close gap between the two icons */
.order-history-btn {
	margin-right: 4px;
}

/* Add separation after cart icon before user name */
.cart-btn {
	margin-right: 25px;
}

.cart-btn:hover,
.order-history-btn:hover {
	color: #6b03ff;
}

.cart-count {
	position: absolute;
	top: -5px;
	right: -5px;
	background-color: #d63638;
	color: #ffffff;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	min-width: 18px;
	text-align: center;
	display: none;
}

.btn-add-to-cart {
	width: 100%;
	padding: 10px;
	background-color: #6b03ff;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
	margin-top: 10px;
}

.btn-add-to-cart:hover {
	background-color: #5a02d4;
}

/* Cart Sidebar */
.cart-sidebar {
	position: fixed;
	top: 0;
	right: -400px;
	width: 400px;
	height: 100vh;
	background-color: #ffffff;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	z-index: 10001;
	display: flex;
	flex-direction: column;
	transition: right 0.3s ease;
}

.cart-sidebar.cart-open {
	right: 0;
}

.cart-header {
	padding: 20px;
	border-bottom: 1px solid #dcdcde;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cart-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #1d2327;
}

.cart-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #646970;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s, color 0.2s;
}

.cart-close:hover {
	background-color: #f0f0f1;
	color: #1d2327;
}

.cart-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.cart-empty {
	text-align: center;
	padding: 40px 20px;
	color: #646970;
}

.cart-items {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.cart-item {
	padding: 15px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background-color: #f9f9f9;
	margin-bottom: 5px;
}

.cart-item-content {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.cart-item-top {
	display: flex;
	align-items: center;
	gap: 15px;
}

.cart-item-info {
	flex: 1;
	min-width: 0;
}

.cart-item-name {
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 5px;
	font-size: 13px;
}

.cart-item-details {
	display: flex;
	gap: 10px;
	font-size: 10px;
	color: #646970;
}

.cart-item-quantity {
	display: flex;
	align-items: center;
	gap: 5px;
}

.cart-qty-btn {
	width: 28px;
	height: 28px;
	background-color: #f0f0f1;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #1d2327;
	transition: background-color 0.2s;
}

.cart-qty-btn:hover {
	background-color: #e0e0e0;
}

.cart-qty-input {
	width: 50px;
	height: 28px;
	text-align: center;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-size: 14px;
	-moz-appearance: textfield;
	-webkit-appearance: none;
	appearance: none;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cart-item-remove {
	background: none;
	border: none;
	font-size: 24px;
	color: #d63638;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.cart-item-remove:hover {
	background-color: #ffeaea;
}

.cart-footer {
	padding: 20px;
	border-top: 1px solid #dcdcde;
	background-color: #f9f9f9;
}

.cart-total {
	margin-bottom: 15px;
	font-size: 16px;
	color: #1d2327;
}

.btn-checkout {
	width: 100%;
	padding: 12px;
	background-color: #6b03ff;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
}

.btn-checkout:hover:not(:disabled) {
	background-color: #5a02d4;
}

.btn-checkout:disabled {
	background-color: #dcdcde;
	color: #8c8f94;
	cursor: not-allowed;
}

.cart-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 10000;
}

/* Checkout Modal Styles */
#checkout-modal .checkout-submit-btn {
	padding: 12px 24px;
	background-color: #6b03ff;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
}

#checkout-modal .checkout-submit-btn:hover {
	background-color: #5a02d4;
}

#checkout-modal .checkout-submit-btn:active {
	background-color: #4a02b3;
}

#checkout-modal .checkout-submit-btn:focus {
	outline: 2px solid #6b03ff;
	outline-offset: 2px;
}

.checkout-items {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 20px;
}

.checkout-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 15px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background-color: #f9f9f9;
}

.checkout-item-info {
	flex: 1;
}

.checkout-item-info strong {
	display: block;
	margin-bottom: 2px;
	color: #1d2327;
	font-size: 14px;
}

.checkout-item-details {
	display: flex;
	gap: 15px;
	font-size: 10px;
	color: #646970;
}

.checkout-item-qty {
	font-weight: 600;
	color: #1d2327;
	font-size: 14px;
}

/* Order Category Section */
.order-category-section {
	margin-bottom: 25px;
}

.order-category-section:last-child {
	margin-bottom: 0;
}

.category-title {
	font-size: 12px;
	font-weight: 600;
	color: #ffffff;
	background-color: #6b03ff;
	border-radius: 20px;
	margin: 0 0 16px 0;
	padding: 3px 24px;
	display: inline-block;
	border: none;
	text-decoration: none;
	text-align: center;
}

/* Sams Category Unavailable Styles */
.sams-unavailable-message {
	background-color: #f0f0f1;
	border-left: 4px solid #d63638;
	padding: 12px 16px;
	margin-bottom: 16px;
	border-radius: 4px;
}

.sams-unavailable-message p {
	margin: 0;
	color: #d63638;
	font-size: 14px;
	font-weight: 600;
}

.sams-category-unavailable .order-category-cards {
	opacity: 0.5;
	position: relative;
}

.sams-category-unavailable .inventory-item-list,
.sams-category-unavailable .order-item-card-view {
	opacity: 0.5;
	filter: grayscale(100%);
	pointer-events: none;
}

.sams-category-unavailable .size-select:disabled,
.sams-category-unavailable .qty-btn:disabled,
.sams-category-unavailable .qty-input:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.order-item-card {
	position: relative;
}

.order-actions {
	margin-top: 10px;
}

/* Special Request Section (Order Page) */
.special-request-section {
	margin-top: 0;
	margin-bottom: 0;
}
.special-request-section .category-title {
	margin-bottom: 16px;
}
.special-requests-textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
}
.special-requests-textarea:focus {
	border-color: #6b03ff;
	outline: none;
	box-shadow: 0 0 0 1px #6b03ff;
}

/* Request Page Styles */
.orders-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.order-date-section {
	margin-bottom: 30px;
}

.order-date-section:last-child {
	margin-bottom: 0;
}

.order-date-header {
	font-size: 12px;
	font-weight: 600;
	color: #ffffff;
	background-color: #6b03ff;
	border-radius: 20px;
	margin: 0 0 20px 0;
	padding: 8px 24px;
	display: inline-block;
	border: none;
	text-decoration: none;
	text-align: center;
}

.order-date-section .order-card {
	margin-bottom: 20px;
}

.order-date-section .order-card:last-child {
	margin-bottom: 0;
}

.order-card {
	background-color: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 30px;
}

.order-info h3 {
	margin: 0 0 15px 0;
	font-size: 13px;
	font-weight: 600;
	color: #6b03ff;
	display: flex;
	align-items: center;
	gap: 8px;
}

.detail-tag-combined {
	background-color: #f0e6ff;
	color: #6b03ff;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 3px;
	font-weight: 500;
	margin-left: 8px;
	vertical-align: middle;
}

.item-order-indicator {
	display: inline-block;
	margin-left: 8px;
}

.item-order-indicator .order-numbers {
	font-size: 11px;
	color: #646970;
	font-weight: 500;
	font-style: italic;
}

.item-order-indicator .order-number-newest {
	color: #6b03ff;
	font-weight: 600;
	text-decoration: underline;
}

.item-added-tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: 8px;
	vertical-align: middle;
}

.detail-tag-added {
	background-color: #f0e6ff;
	color: #6b03ff;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 3px;
	font-weight: 500;
}

.order-time-tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	vertical-align: middle;
}

.detail-tag-time {
	background-color: #f0f0f1;
	color: #646970;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 3px;
	font-weight: 500;
}

.order-meta {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 13px;
	color: #646970;
}

.order-restaurant {
	font-weight: 600;
	color: #1d2327;
	font-size: 18px;
}

.order-status {
	display: flex;
	align-items: center;
}

.status-badge {
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.status-pending {
	background-color: #fff3cd;
	color: #856404;
}

.status-preparing {
	background-color: #cfe2ff;
	color: #084298;
}

.status-completed {
	background-color: #d1e7dd;
	color: #0f5132;
}

.order-items {
	margin-top: 15px;
}

.order-items h4 {
	margin: 0 0 15px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.order-items-table {
	width: 100%;
	border-collapse: collapse;
}

.order-items-table thead {
	background-color: #f0f0fb;
}

.order-items-table th {
	padding: 10px;
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	border-bottom: 2px solid #e7e7f7;
}

.order-items-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #f0f0f1;
	font-size: 14px;
	color: #1d2327;
}

.order-items-table tbody tr:hover {
	background-color: #f9f9f9;
}

.order-items-table .item-size {
	display: inline-block;
	padding: 3px 6px;
	background-color: #f0f0f1;
	color: #646970;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 500;
}

/* Category tags on request page – tag style, one color per category */
.order-category-tag {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	background-color: #f5f5f5;
	color: #616161;
}
.order-category-tag-meat { background-color: #ffebee; color: #b71c1c; }
.order-category-tag-seafood { background-color: #e3f2fd; color: #0d47a1; }
.order-category-tag-deep-fried { background-color: #fff3e0; color: #e65100; }
.order-category-tag-skewer { background-color: #efebe9; color: #4e342e; }
.order-category-tag-sushi { background-color: #e8f5e9; color: #1b5e20; }
.order-category-tag-vegetable { background-color: #c8e6c9; color: #2e7d32; }
.order-category-tag-sauce { background-color: #f3e5f5; color: #6a1b9a; }
.order-category-tag-repo { background-color: #eceff1; color: #455a64; }
.order-category-tag-sams { background-color: #fff8e1; color: #f57f17; }
.order-category-tag-other { background-color: #f5f5f5; color: #616161; }

.order-no-orders {
	text-align: center;
	padding: 40px 20px;
}

.no-orders-message {
	margin: 0;
	font-size: 14px;
	color: #646970;
	font-style: italic;
}

/* Special Request table – same look as items table (purple header, white body) */
.order-special-request-table {
	margin-top: 20px;
	border-top: 1px solid #e7e7f7;
}

.order-special-request-table .order-special-request-text {
	white-space: pre-wrap;
	font-size: 14px;
	color: #1d2327;
}

.order-special-request-table .detail-tag-added + .order-special-request-text {
	margin-top: 6px;
}

/* Cost Manager / Ingredients Page Styles */
.cost-page .ingredient-card {
	cursor: default;
	transition: transform 0.2s, box-shadow 0.2s;
}

.cost-page .ingredient-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Ingredient cards - compact styling (cost page only) */
.cost-page .items-grid .ingredient-card {
	cursor: default; /* Remove pointer cursor since card is not clickable */
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0;
}

.cost-page .items-grid .ingredient-card .item-details {
	padding: 10px;
	min-height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
}

.cost-page .items-grid .ingredient-card .item-name {
	font-size: 13px;
	margin-bottom: 4px;
	line-height: 1.3;
}

.cost-page .items-grid .ingredient-card .item-meta {
	margin-bottom: 0;
	gap: 6px;
}

.cost-page .items-grid .ingredient-card .item-category {
	font-size: 12px;
	padding: 2px 6px;
}

/* Sauce per-liter tag: light orange background (not green) */
.cost-page .items-grid .sauce-card .sauce-cost-per-liter,
.items-grid .sauce-cost-per-liter {
	background-color: #fff0e6 !important;
	color: #f07000 !important;
}

.cost-page .items-grid .ingredient-card .item-actions {
	position: static;
	padding: 0 5px;
	flex-shrink: 0;
}

/* Ensure cost page header has proper spacing */
.cost-page .inventory-page-header,
.page-cost .inventory-page-header {
	margin: 20px 0 30px 0;
}

/* Order Page List View */
.items-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.order-item-list {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background-color: #ffffff;
	border: 1px solid #eee;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	margin-bottom: 6px;
	transition: background-color 0.15s ease;
}
.order-item-list:hover {
	background-color: #f0f0f1;
}

.order-item-list .item-image-wrapper {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
}

.order-item-list .item-image {
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f0f0f1;
}

.order-item-list .item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.order-item-list .item-details {
	flex: 1;
	min-width: 0;
}

.order-item-list .item-name {
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	margin: 0;
}

.order-item-list .item-meta {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.order-item-list .item-size {
	display: inline-block;
	padding: 3px 6px;
	background-color: #f0f0f1;
	color: #646970;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 500;
}

/* Order Item Controls (Size Selection + Quantity + Add to Cart) */
.order-item-controls {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.size-selection-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.size-select-label {
	font-size: 11px;
	font-weight: 500;
	color: #1d2327;
	min-width: 35px;
}

.size-select {
	height: 30px !important;
	padding: 0px 8px !important;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background-color: #ffffff;
	color: #1d2327;
	font-size: 12px;
	line-height: 1.2;
	cursor: pointer;
	width: 90px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231d2327' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 6px center;
	background-size: 9px;
	padding-right: 24px;
	box-sizing: border-box;
}

.size-select:focus {
	outline: none;
	border-color: #6b03ff;
	box-shadow: 0 0 0 1px #6b03ff;
}

/* Quantity Controls */
.quantity-control-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.quantity-label {
	font-size: 11px;
	font-weight: 500;
	color: #1d2327;
	min-width: 50px;
}

.quantity-controls {
	display: flex;
	align-items: center;
	gap: 2px;
}

.qty-btn {
	width: 30px;
	height: 30px;
	background-color: #6b03ff;
	border: 1px solid #6b03ff;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	transition: background-color 0.2s, border-color 0.2s;
	user-select: none;
	line-height: 1;
	padding: 0;
	transform: translateY(-1px);
}

.qty-btn:hover {
	background-color: #5a02d4;
	border-color: #5a02d4;
}

.qty-btn:active {
	background-color: #4a02b3;
}

.qty-input {
	width: 45px;
	height: 30px !important;
	text-align: center;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #1d2327;
	background-color: #ffffff;
	line-height: 30px;
	padding: 0 !important;
	margin: 0;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: textfield;
	appearance: none;
}

/* Remove number input spinners */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.qty-input[type=number] {
	-moz-appearance: textfield;
	appearance: textfield;
}

/* Card view item controls */
.order-item-card .order-item-controls {
	margin-top: 10px;
}

.order-item-card .quantity-control-group {
	justify-content: space-between;
}

/* Item State Visual Feedback */
.order-item-list.item-ready,
.order-item-card.item-ready {
	border-color: #6b03ff;
	background-color: #f0e6ff;
}
.order-item-list.item-ready:hover {
	background-color: #e4daf9;
}

.order-item-list.item-needs-qty,
.order-item-card.item-needs-qty {
	border-color: #e22847;
	background-color: #ffeaea;
}
.order-item-list.item-needs-qty:hover {
	background-color: #fad4d4;
}

.order-item-list.item-selected,
.order-item-card.item-selected {
	border-width: 2px;
}

/* Floating Add to Cart Button */
.floating-add-to-cart {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #ffffff;
	border-top: 2px solid #dcdcde;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	padding: 15px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	z-index: 9999;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.floating-add-to-cart.show {
	transform: translateY(0);
}

.floating-cart-info {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	color: #1d2327;
}

.floating-cart-count {
	font-weight: 600;
	color: #6b03ff;
	font-size: 18px;
}

.floating-cart-text {
	color: #646970;
}

.btn-floating-add-to-cart {
	padding: 12px 30px;
	background-color: #6b03ff;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
	min-width: 150px;
}

.btn-floating-add-to-cart:hover:not(:disabled) {
	background-color: #5a02d4;
}

.btn-floating-add-to-cart:disabled {
	background-color: #dcdcde;
	color: #8c8f94;
	cursor: not-allowed;
}

/* Add padding to bottom of content to account for floating button */
.dashboard-content {
	padding-bottom: 80px;
}

/* Order History Sidebar */
.order-history-sidebar {
	position: fixed;
	top: 0;
	right: -500px;
	width: 500px;
	height: 100vh;
	background-color: #ffffff;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	z-index: 10002;
	display: flex;
	flex-direction: column;
	transition: right 0.3s ease;
	overflow: hidden;
}

.order-history-sidebar.order-history-open {
	right: 0;
}

.order-history-header {
	padding: 20px;
	border-bottom: 1px solid #dcdcde;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #f9f9f9;
}

.order-history-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #1d2327;
}

.order-history-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #646970;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s, color 0.2s;
}

.order-history-close:hover {
	background-color: #f0f0f1;
	color: #1d2327;
}

.order-history-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.order-history-empty {
	text-align: center;
	padding: 60px 20px;
	color: #646970;
}

.order-history-empty-subtitle {
	font-size: 13px;
	color: #8c8f94;
	margin-top: 10px;
}

.order-history-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.order-history-item {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 15px;
	background-color: #ffffff;
	transition: box-shadow 0.2s;
}

.order-history-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-history-item-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #f0f0f1;
}

.order-history-info h3 {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.order-history-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: #646970;
}

.order-history-date {
	font-weight: 500;
}

.order-history-restaurant {
	display: inline-block;
	padding: 2px 6px;
	background-color: #f0e6ff;
	color: #6b03ff;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 500;
	width: fit-content;
}

.order-history-status {
	display: flex;
	align-items: center;
}

.status-completed {
	background-color: #d1e7dd;
	color: #0f5132;
}

.status-processing {
	background-color: #fff3cd;
	color: #856404;
}

.order-history-items {
	margin-top: 10px;
}

.order-history-summary {
	font-size: 13px;
	font-weight: 500;
	color: #1d2327;
	margin: 0 0 10px 0;
}

.order-history-items-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.order-history-item-detail {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	padding: 8px;
	background-color: #f9f9f9;
	border-radius: 4px;
}

.order-history-item-name {
	flex: 1;
	font-weight: 500;
	color: #1d2327;
}

.order-history-item-size {
	padding: 2px 6px;
	background-color: #f0f0f1;
	color: #646970;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 500;
}

.order-history-item-qty {
	color: #646970;
	font-weight: 500;
}

.order-history-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 10001;
}

/* Mobile Responsive for Order History */
@media (max-width: 768px) {
	.order-history-sidebar {
		width: 100%;
		right: -100%;
	}
}

/* Order Page View Toggle - Separate System */
.order-items-list-header {
	display: flex;
	justify-content: flex-end;
	padding-bottom: 12px;
}

.order-view-mode-toggle {
	display: flex;
	gap: 8px;
}

.order-view-btn {
	background: none;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #646970;
	transition: all 0.2s;
}

.order-view-btn:hover {
	background-color: #f0f0f1;
	color: #6b03ff;
	border-color: #6b03ff;
}

.order-view-btn.active {
	background-color: #6b03ff;
	color: #ffffff;
	border-color: #6b03ff;
}

/* Order Items Container - List View (Default) */
.order-items-container.order-items-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.order-items-list .order-item-list {
	display: flex;
}

.order-items-list .order-item-card-view {
	display: none !important;
}

/* Order Items Container - Grid View */
.order-items-container.order-items-grid {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.order-items-grid .order-category-section {
	width: 100%;
	margin-bottom: 25px;
	display: block;
}

.order-items-grid .order-category-section:last-child {
	margin-bottom: 0;
}

.order-items-grid .category-title {
	margin-bottom: 16px;
	display: inline-block;
	width: auto;
}

/* Grid layout for cards within each category */
.order-items-grid .order-category-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 15px;
	width: 100%;
}

.order-items-grid .order-category-section .order-item-list {
	display: none !important;
}

.order-items-grid .order-category-section .order-item-card-view {
	display: block;
}

/* Hide category cards wrapper in list view */
.order-items-list .order-category-cards {
	display: contents;
}

/* Order Card View Styles */
.order-item-card-view {
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
	background-color: #ffffff;
	transition: transform 0.2s, box-shadow 0.2s;
	position: relative;
}

.order-item-card-view:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.order-item-card-view.item-ready {
	border-color: #6b03ff;
	background-color: #f0e6ff;
	box-shadow: 0 2px 8px rgba(107, 3, 255, 0.2);
}

.order-item-card-view.item-needs-qty {
	border-color: #d63638;
	background-color: #ffeaea;
	box-shadow: 0 2px 8px rgba(214, 54, 56, 0.2);
}

.order-card-image-wrapper {
	display: block;
}

.order-card-image {
	width: 100%;
	aspect-ratio: 16 / 10.8;
	overflow: hidden;
	background-color: #f0f0f1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.order-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.order-card-image-placeholder {
	color: #646970;
	font-size: 14px;
}

.order-card-details {
	padding: 15px;
}

.order-card-name {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px 0;
	color: #1d2327;
	line-height: 1.3;
}

.order-card-controls {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Cart Indicator - Shows when item is already in cart */
.cart-indicator {
	width: 28px;
	height: 28px;
	background-color: #00c472;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	z-index: 10;
	pointer-events: none;
	flex-shrink: 0;
}

.cart-indicator-number {
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
}

/* Cart indicator for list view - right of item name */
.order-item-list {
	position: relative;
}

.order-item-list .item-details {
	display: flex;
	align-items: center;
	gap: 10px;
}

.order-item-list .cart-indicator {
	position: static;
	margin-left: auto;
}

/* Cart indicator for card view - top right corner */
.order-item-card-view {
	position: relative;
}

.order-item-card-view .cart-indicator {
	position: absolute;
	top: 8px;
	right: 8px;
}

/* Mobile Responsive for Cart */
@media (max-width: 768px) {
	.cart-sidebar {
		width: 100%;
		right: -100%;
		height: 100dvh;
		height: 100vh;
	}
	
	.cart-sidebar .cart-footer {
		padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px) + 80px);
	}
	
	/* Lock scroll to content area: use dynamic viewport so address bar doesn’t break height */
	body.dashboard-view {
		height: 100dvh;
		height: 100vh;
		overflow: hidden;
	}
	.dashboard-wrapper {
		height: 100dvh;
		height: 100vh;
		min-height: 0;
	}
	.dashboard-content-wrapper {
		height: 100dvh;
		height: 100vh;
		min-height: 0;
	}
	
	/* Order page: reduce padding/margin on white boxes; extra bottom padding so Special Request text box scrolls fully into view */
	.dashboard-content {
		padding: 0 10px 120px 10px;
	}
	
	.inventory-page-header {
		margin: 10px 0 16px 0;
		padding: 12px;
	}
	
	.inventory-items-list {
		padding: 8px;
	}
	
	.order-page .inventory-items-list {
		padding: 8px;
	}
	
	.order-items-list-header {
		padding-bottom: 8px;
	}
	
	.order-item-list {
		flex-wrap: wrap;
		padding: 8px 12px;
		gap: 6px;
		min-width: 0;
	}
	
	.order-item-list .item-details {
		flex: 1 1 100%;
		min-width: 0;
	}
	
	/* Item name: up to 2 lines, no truncation – full name visible for ordering */
	.order-item-list .item-name {
		overflow: hidden;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		line-clamp: 2;
		white-space: normal;
		word-break: break-word;
		font-size: 13px;
		margin: 0;
		line-height: 1.35;
	}
	
	.order-item-list .order-item-controls {
		flex: 1 1 100%;
		flex-wrap: nowrap;
		gap: 8px;
		min-width: 0;
		margin-top: 2px;
		justify-content: space-between;
	}
	
	.order-item-list .quantity-controls {
		flex-wrap: nowrap;
		gap: 2px;
	}
	
	/* Reserve space for price so hundreds and thousands don’t wrap */
	/* Price right-aligned: size qty on left, price on right */
	.order-item-list .quantity-control-group {
		flex: 1;
		min-width: 0;
	}
	.order-item-list .quantity-controls {
		flex: 1;
		justify-content: flex-start;
		min-width: 0;
	}
	.order-item-list .item-price-display {
		min-width: 56px !important;
		width: 56px !important;
		text-align: right;
		flex-shrink: 0;
		font-size: 13px !important;
		margin-left: auto;
	}
	
	.order-item-list .item-image-wrapper {
		width: 80px;
		height: 80px;
	}
	
	.order-quantity-controls {
		width: 100%;
		margin-top: 10px;
	}
}

/* Tighter controls on small phones so single row still fits */
@media (max-width: 480px) {
	.order-item-list .size-select {
		width: 72px !important;
		min-width: 72px;
		font-size: 11px !important;
		padding: 0 6px !important;
	}
	
	.order-item-list .qty-btn {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
	
	.order-item-list .qty-input {
		width: 32px;
		min-width: 32px;
		font-size: 12px;
	}
}

/* Most Ordered Items – restaurant breakdown tooltip on hover */
.restaurant-breakdown-tooltip {
	position: absolute;
	left: 0;
	bottom: 100%;
	margin-bottom: 6px;
	padding: 8px 12px;
	background: #1d2327;
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	border-radius: 6px;
	white-space: normal;
	min-width: 120px;
	max-width: 320px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 100;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	transition: opacity 0.15s ease, visibility 0.15s ease;
}
.most-ordered-item-row:hover .restaurant-breakdown-tooltip {
	opacity: 1;
	visibility: visible;
}
