/* HandyBarcodeScanner - Dolibarr integrated CSS */

/* General */
.hidden {
	display: none !important;
}

.scanner-wrapper {
	max-width: 800px;
	margin: 0 auto;
}

/* Mode Tabs */
.scanner-mode-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 10px;
	border-bottom: 2px solid var(--colorborder, #ddd);
}

.scanner-tab {
	flex: 1;
	padding: 10px 15px;
	border: none;
	background: none;
	font-size: 14px;
	font-weight: 500;
	color: var(--colortexttitlenotab, #666);
	cursor: pointer;
	position: relative;
	transition: color 0.2s ease;
}

.scanner-tab:hover {
	color: var(--colortextlink, #333);
}

.scanner-tab.active {
	color: var(--butactionbg, #0077b3);
	font-weight: 600;
}

.scanner-tab.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--butactionbg, #0077b3);
}

/* Scanner Video Box */
.scanner-box {
	background: #333;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 10px;
}

.scanner-video-box {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	max-height: 150px;
	background: #000;
}

#scanner-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.scan-region-highlight {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 70%;
	height: 60%;
	border: 3px solid var(--butactionbg, #0077b3);
	border-radius: 8px;
	box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.scanner-video-box.scanning .scan-region-highlight {
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { border-color: var(--butactionbg, #0077b3); }
	50% { border-color: #00b894; }
}

/* Scanner Controls */
.scanner-controls {
	padding: 8px;
	background: #444;
}

.scanner-controls .button {
	min-width: 150px;
	font-size: 16px;
	padding: 10px 25px;
}

/* Last Scan Info */
.scanner-last-scan {
	padding: 10px 15px;
	background: var(--colorbacklinepair1, #f8f8f8);
	border-radius: 6px;
	font-size: 14px;
}

.scanner-last-scan .badge {
	font-family: monospace;
	font-size: 14px;
	padding: 4px 10px;
}

/* Result Area */
.scanner-result {
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(15px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Product Card */
.product-card {
	background: var(--colorbacklinepair1, #f8f8f8);
	border: 1px solid var(--colorborder, #ddd);
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
}

.product-name {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 5px;
	color: var(--colortextlink, #333);
}

.product-ref {
	font-size: 13px;
	color: var(--colortexttitlenotab, #666);
	margin-bottom: 10px;
}

.product-stock {
	font-size: 14px;
	padding: 6px 12px;
	background: var(--colorbacktitle1, #e8e8e8);
	border-radius: 6px;
	display: inline-block;
}

/* Supplier Selection */
.supplier-list {
	margin: 15px 0;
}

.supplier-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--colortexttitlenotab, #666);
	margin-bottom: 10px;
	display: block;
}

.supplier-option {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	background: var(--colorbacklinepair1, #fff);
	border: 2px solid var(--colorborder, #ddd);
	border-radius: 8px;
	margin-bottom: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.supplier-option:hover {
	background: var(--colorbacklinepair2, #f5f5f5);
}

.supplier-option.selected {
	border-color: var(--butactionbg, #0077b3);
	background: rgba(0, 119, 179, 0.05);
}

.supplier-option:active {
	transform: scale(0.99);
}

.supplier-radio {
	width: 20px;
	height: 20px;
	border: 2px solid var(--colorborder, #999);
	border-radius: 50%;
	margin-right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.supplier-option.selected .supplier-radio {
	border-color: var(--butactionbg, #0077b3);
}

.supplier-option.selected .supplier-radio::after {
	content: '';
	width: 10px;
	height: 10px;
	background: var(--butactionbg, #0077b3);
	border-radius: 50%;
}

.supplier-info {
	flex: 1;
}

.supplier-name {
	font-size: 15px;
	font-weight: 500;
}

.supplier-ref {
	font-size: 12px;
	color: var(--colortexttitlenotab, #888);
	margin-top: 3px;
}

.supplier-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--butactionbg, #0077b3);
	text-align: right;
	white-space: nowrap;
}

.cheapest-badge {
	background: #00b894;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 8px;
	text-transform: uppercase;
}

/* Quantity Input */
.quantity-section {
	margin: 20px 0;
	text-align: center;
}

.quantity-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--colortexttitlenotab, #666);
	margin-bottom: 10px;
	display: block;
}

.quantity-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.qty-btn {
	width: 50px;
	height: 50px;
	border: 1px solid var(--colorborder, #ddd);
	border-radius: 8px;
	background: var(--colorbacklinepair1, #f8f8f8);
	color: var(--colortextlink, #333);
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.qty-btn:hover {
	background: var(--colorbacktitle1, #e8e8e8);
}

.qty-btn:active {
	transform: scale(0.95);
}

.qty-input {
	width: 80px;
	height: 50px;
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	border: 1px solid var(--colorborder, #ddd);
	border-radius: 8px;
	background: var(--colorbacklinepair1, #f8f8f8);
	color: var(--colortextlink, #333);
}

.qty-input:focus {
	border-color: var(--butactionbg, #0077b3);
	outline: none;
}

/* Action Buttons */
.action-btn {
	width: 100%;
	padding: 14px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 15px;
}

.action-btn:active {
	transform: scale(0.98);
}

.btn-primary {
	background: var(--butactionbg, #0077b3);
	color: #fff;
}

.btn-primary:hover {
	opacity: 0.9;
}

.btn-secondary {
	background: var(--colorbacklinepair1, #f8f8f8);
	color: var(--colortextlink, #333);
	border: 1px solid var(--colorborder, #ddd);
}

.btn-danger {
	background: #dc3545;
	color: #fff;
}

/* Inventory Mode */
.stock-display {
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 20px;
	background: var(--colorbacklinepair1, #f8f8f8);
	border: 1px solid var(--colorborder, #ddd);
	border-radius: 8px;
	margin-bottom: 15px;
}

.stock-item {
	text-align: center;
}

.stock-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--butactionbg, #0077b3);
}

.stock-label {
	font-size: 12px;
	color: var(--colortexttitlenotab, #666);
	text-transform: uppercase;
	margin-top: 5px;
}

.stock-arrow {
	font-size: 24px;
	color: var(--colortexttitlenotab, #999);
}

/* Shop Mode Links */
.shop-links {
	margin-top: 15px;
}

.shop-link-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: var(--colorbacktitle1, #3b3c3e) !important;
	border: 1px solid var(--colorborder, #2b2c2e) !important;
	border-radius: 8px;
	margin-bottom: 10px;
	text-decoration: none;
	color: var(--colortext, #ddd) !important;
	transition: all 0.2s ease;
	width: 100%;
	cursor: pointer;
	text-align: left;
}

.shop-link-btn:hover {
	background: var(--colorbackline, #444) !important;
	text-decoration: none;
}

.shop-link-btn:active {
	transform: scale(0.99);
}

.shop-link-name {
	font-size: 15px;
	font-weight: 600;
	flex: 1;
}

.shop-link-ref {
	font-size: 12px;
	color: var(--colortextmuted, #999);
	margin: 0 15px;
}

.shop-link-arrow {
	font-size: 18px;
	color: var(--butactionbg, #ad8c4f);
}

/* Confirmation Dialog */
.confirm-dialog {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
}

.confirm-content {
	background: #fff;
	border-radius: 12px;
	padding: 25px;
	width: 100%;
	max-width: 350px;
	text-align: center;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.confirm-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
}

.confirm-message {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
}

.confirm-buttons {
	display: flex;
	gap: 10px;
}

.confirm-buttons .action-btn {
	flex: 1;
	margin-top: 0;
	padding: 12px;
	font-size: 14px;
}

/* Toast Notifications - use Dolibarr's setEventMessages style */
.scanner-toast {
	position: fixed;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%);
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	z-index: 10001;
	animation: toastIn 0.3s ease;
}

.scanner-toast.success {
	background: #00b894;
	color: #fff;
}

.scanner-toast.error {
	background: #dc3545;
	color: #fff;
}

@keyframes toastIn {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(15px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

/* Error State */
.error-message {
	text-align: center;
	padding: 30px 20px;
	color: #dc3545;
}

.error-icon {
	font-size: 40px;
	margin-bottom: 15px;
}

.error-text {
	font-size: 15px;
}

/* No Supplier State */
.no-supplier {
	text-align: center;
	padding: 15px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	color: #856404;
	margin-bottom: 15px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
	.scanner-wrapper {
		padding: 0 10px;
	}

	.scanner-video-box {
		max-height: 250px;
	}

	.qty-btn {
		width: 60px;
		height: 60px;
		font-size: 28px;
	}

	.qty-input {
		width: 100px;
		height: 60px;
		font-size: 24px;
	}

	.action-btn {
		padding: 16px;
		font-size: 17px;
	}

	.supplier-option {
		padding: 15px;
	}

	.stock-value {
		font-size: 32px;
	}
}

/* Touch optimizations */
@media (pointer: coarse) {
	.qty-btn,
	.supplier-option,
	.action-btn,
	.shop-link-btn {
		min-height: 48px;
	}
}

/* ============================================
   ORDER VIEW ENHANCEMENTS
   ============================================ */

/* Tools row (search + freetext buttons) */
.order-tools {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.tool-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 12px;
	background: var(--colorbacklinepair1, #f8f8f8);
	border: 1px solid var(--colorborder, #ddd);
	border-radius: 6px;
	font-size: 13px;
	color: var(--colortextlink, #333);
	cursor: pointer;
	transition: all 0.2s ease;
}

.tool-btn:hover {
	background: var(--colorbacklinepair2, #f0f0f0);
}

.tool-btn:active {
	transform: scale(0.98);
}

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

/* Search Modal */
.search-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
	padding-top: 60px;
}

.search-modal-content {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 450px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.search-modal-header {
	padding: 15px;
	border-bottom: 1px solid var(--colorborder, #ddd);
	display: flex;
	align-items: center;
	gap: 10px;
}

.search-modal-header input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid var(--colorborder, #ddd);
	border-radius: 6px;
	font-size: 16px;
}

.search-modal-header input:focus {
	border-color: var(--butactionbg, #0077b3);
	outline: none;
}

.search-close-btn {
	padding: 8px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #999;
}

.search-results {
	flex: 1;
	overflow-y: auto;
	padding: 10px;
}

.search-result-item {
	padding: 12px;
	border: 1px solid var(--colorborder, #ddd);
	border-radius: 6px;
	margin-bottom: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.search-result-item:hover {
	background: var(--colorbacklinepair2, #f5f5f5);
}

.search-result-label {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
}

.search-result-info {
	font-size: 12px;
	color: #666;
	display: flex;
	gap: 15px;
}

.search-loading {
	text-align: center;
	padding: 20px;
	color: #666;
}

/* Freetext Modal */
.freetext-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
}

.freetext-modal-content {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.freetext-modal-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
}

.freetext-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.freetext-form label {
	font-size: 13px;
	font-weight: 500;
	color: #666;
	margin-bottom: 4px;
	display: block;
}

.freetext-form input,
.freetext-form select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--colorborder, #ddd);
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}

.freetext-form input:focus,
.freetext-form select:focus {
	border-color: var(--butactionbg, #0077b3);
	outline: none;
}

.freetext-row {
	display: flex;
	gap: 10px;
}

.freetext-row > div {
	flex: 1;
}

.freetext-buttons {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.freetext-buttons .action-btn {
	flex: 1;
	margin-top: 0;
}

/* ============================================
   SWIPEABLE ORDER OVERVIEW
   ============================================ */

.order-view-container {
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* Swipe indicator */
.swipe-indicator {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	padding: 8px;
	background: rgba(0,0,0,0.1);
	border-radius: 50%;
	font-size: 16px;
	color: #666;
	pointer-events: none;
	opacity: 0.6;
	animation: swipeHint 2s ease-in-out infinite;
	z-index: 5;
}

@keyframes swipeHint {
	0%, 100% { transform: translateY(-50%) translateX(0); }
	50% { transform: translateY(-50%) translateX(-5px); }
}

.order-view-container.swiped .swipe-indicator {
	display: none;
}

/* Orders panel (slides in from right) */
.orders-panel {
	position: absolute;
	top: 0;
	left: 100%;
	width: 100%;
	height: 100%;
	background: var(--colorbackbody, #fff);
	transition: transform 0.3s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.order-view-container.swiped .orders-panel {
	transform: translateX(-100%);
}

.orders-panel-header {
	padding: 12px 15px;
	background: var(--colorbacktitle1, #f0f0f0);
	border-bottom: 1px solid var(--colorborder, #ddd);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.orders-panel-title {
	font-weight: 600;
	font-size: 15px;
}

.orders-panel-back {
	padding: 6px 12px;
	background: none;
	border: 1px solid var(--colorborder, #ddd);
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
}

/* Horizontal order scroller */
.orders-scroller {
	flex: 1;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	padding: 15px;
	-webkit-overflow-scrolling: touch;
}

.orders-scroller::-webkit-scrollbar {
	height: 6px;
}

.orders-scroller::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

/* Order card */
.order-card {
	display: inline-block;
	vertical-align: top;
	width: 180px;
	min-height: 100px;
	padding: 12px;
	margin-right: 10px;
	background: var(--colorbacklinepair1, #f8f8f8);
	border: 2px solid var(--colorborder, #ddd);
	border-radius: 8px;
	cursor: pointer;
	white-space: normal;
	transition: all 0.2s ease;
}

.order-card:hover {
	border-color: var(--butactionbg, #0077b3);
}

.order-card.active {
	border-color: var(--butactionbg, #ad8c4f);
	background: rgba(173, 140, 79, 0.15);
}

.order-card.direkt {
	font-weight: bold;
}

.order-card.direkt .order-card-ref {
	font-weight: 700;
}

.order-card-supplier {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.order-card-ref {
	font-size: 12px;
	color: var(--colortextmuted, #b4b4b4);
	margin-bottom: 4px;
}

.order-card-status {
	display: inline-block;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 3px;
	background: #e9ecef;
	color: #495057;
}

.order-card-status.draft {
	background: #fff3cd;
	color: #856404;
}

.order-card-status.validated {
	background: #d4edda;
	color: #155724;
}

.order-card-info {
	margin-top: 8px;
	font-size: 11px;
	color: var(--colortextmuted, #b4b4b4);
}

/* Order delete button */
.order-delete-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border: none;
	background: transparent;
	color: var(--colortextmuted, #888);
	cursor: pointer;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	opacity: 0.6;
}

.order-delete-btn:hover {
	background: var(--danger, #993013);
	color: #fff;
	opacity: 1;
}

.order-delete-btn svg {
	width: 16px;
	height: 16px;
}

.order-card {
	position: relative;
}

/* Order detail panel */
.order-detail-panel {
	position: absolute;
	top: 0;
	left: 200%;
	width: 100%;
	height: 100%;
	background: var(--colorbackbody, #fff);
	transition: transform 0.3s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.order-view-container.detail-open .order-detail-panel {
	transform: translateX(-200%);
}

.order-detail-header {
	padding: 12px 15px;
	background: var(--colorbacktitle1, #f0f0f0);
	border-bottom: 1px solid var(--colorborder, #ddd);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.order-detail-title {
	font-weight: 600;
	font-size: 15px;
}

.order-detail-back {
	padding: 6px 12px;
	background: none;
	border: 1px solid var(--colorborder, #ddd);
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
}

.order-detail-content {
	flex: 1;
	overflow-y: auto;
	padding: 15px;
}

/* Order lines */
.order-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px;
	background: var(--colorbackline, #38393d);
	border: 1px solid var(--colorborder, #2b2c2e);
	border-radius: 6px;
	margin-bottom: 8px;
	transition: all 0.2s ease;
	color: var(--colortext, #dcdcdc);
}

.order-line-info {
	flex: 1;
	min-width: 0;
}

.order-line-label {
	font-size: 14px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.order-line-ref {
	font-size: 11px;
	color: var(--colortextmuted, #b4b4b4);
	margin-top: 2px;
}

.order-line-qty {
	font-size: 16px;
	font-weight: 700;
	color: var(--butactionbg, #0077b3);
	margin-left: 15px;
	white-space: nowrap;
}

.order-line-edit-btn {
	background: transparent;
	border: none;
	padding: 8px;
	margin-left: 8px;
	cursor: pointer;
	color: var(--colortextmuted, #888);
	border-radius: 6px;
	transition: all 0.2s;
}

.order-line-edit-btn:hover,
.order-line-edit-btn:active {
	background: var(--colorbacktitle, #3b3c3e);
	color: var(--butactionbg, #0077b3);
}

.order-line-edit-btn svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* Line edit dialog */
.line-edit-dialog {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
}

.line-edit-content {
	background: var(--colorbackcard, #1d1e20);
	color: var(--colortext, #dcdcdc);
	border-radius: 12px;
	padding: 20px;
	width: 100%;
	max-width: 350px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.line-edit-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--colortext, #dcdcdc);
}

.line-edit-info {
	background: var(--colorbackline, #38393d);
	padding: 12px;
	border-radius: 6px;
	margin-bottom: 15px;
}

.line-edit-stock {
	font-size: 13px;
	color: var(--colortextmuted, #b4b4b4);
	margin-bottom: 8px;
}

.line-edit-desc {
	margin-bottom: 15px;
}

.line-edit-desc label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 6px;
	color: var(--colortext, #dcdcdc);
}

.line-edit-desc input {
	width: 100%;
	padding: 10px;
	font-size: 14px;
	border: 1px solid var(--colorborder, #2b2c2e);
	border-radius: 6px;
	background: var(--colorbackinput, #464646);
	color: var(--colortext, #dcdcdc);
}

.line-edit-qty {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}

.line-edit-qty label {
	font-size: 14px;
	font-weight: 500;
	color: var(--colortext, #dcdcdc);
}

.line-edit-qty input {
	width: 80px;
	padding: 8px;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	border: 1px solid var(--colorborder, #2b2c2e);
	border-radius: 6px;
	background: var(--colorbackinput, #464646);
	color: var(--colortext, #dcdcdc);
}

.line-edit-buttons {
	display: flex;
	gap: 10px;
}

.line-edit-buttons .action-btn {
	flex: 1;
	margin-top: 0;
	padding: 12px;
}

/* No orders state */
.no-orders {
	text-align: center;
	padding: 30px 20px;
	color: #666;
}

/* Loading spinner */
.loading-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-top-color: var(--butactionbg, #0077b3);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Mobile adjustments for order view */
@media (max-width: 768px) {
	.order-card {
		width: 160px;
	}

	.search-modal {
		padding: 10px;
		padding-top: 20px;
	}

	.search-modal-content {
		max-height: 90vh;
	}
}
