.fme-barcode-scanner-container {
max-width: 600px;
margin: 20px auto;
padding: 20px;
}
.fme-barcode-input-section {
margin-bottom: 20px;
}
.fme-barcode-title {
margin: 0 0 15px 0;
font-size: 20px;
font-weight: 600;
color: #333;
text-align: center;
}
.fme-barcode-input-wrapper {
display: flex;
flex-direction: column;
gap: 15px;
}
.fme-barcode-label {
font-weight: 500;
color: #555;
margin-bottom: 5px;
display: block;
}
.fme-barcode-input-group {
display: flex;
gap: 10px;
align-items: stretch;
}
.fme-barcode-input {
flex: 1;
padding: 12px 15px;
font-size: 16px;
transition: border-color 0.3s ease;
}
.fme-barcode-input:focus {
outline: none;
border-color: #007cba;
box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}
.fme-scan-button {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 20px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background-color 0.3s ease;
white-space: nowrap;
}
.fme-scan-icon {
font-size: 16px;
} .fme-scanner-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
}
.fme-scanner-modal-content {
background: white;
border-radius: 8px;
max-width: 90%;
max-height: 90%;
overflow: hidden;
position: relative;
}
.fme-scanner-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
border-bottom: 1px solid #ddd;
background: #f8f9fa;
}
.fme-scanner-header h3 {
margin: 0;
font-size: 18px;
color: #333;
}
.fme-close-scanner {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #666;
padding: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
}
.fme-close-scanner:hover {
color: #000;
}
.fme-scanner-body {
padding: 20px;
text-align: center;
}
.fme-scanner-video-container {
position: relative;
display: inline-block;
max-width: 100%;
}
.fme-scanner-video {
max-width: 100%;
height: auto;
border-radius: 6px;
background: #000;
}
.fme-scanner-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
display: flex;
align-items: center;
justify-content: center;
}
.fme-scanner-frame {
width: 250px;
height: 150px;
border: 3px solid #00ff00;
border-radius: 8px;
box-shadow: 
0 0 0 9999px rgba(0, 0, 0, 0.3),
0 0 20px rgba(0, 255, 0, 0.5);
position: relative;
}
.fme-scanner-frame::before,
.fme-scanner-frame::after {
content: '';
position: absolute;
width: 20px;
height: 20px;
border: 3px solid #00ff00;
}
.fme-scanner-frame::before {
top: -3px;
left: -3px;
border-right: none;
border-bottom: none;
}
.fme-scanner-frame::after {
bottom: -3px;
right: -3px;
border-left: none;
border-top: none;
}
.fme-scanner-loading {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
border-radius: 6px;
}
.fme-loading-spinner {
width: 40px;
height: 40px;
border: 4px solid #333;
border-top: 4px solid #00ff00;
border-radius: 50%;
animation: fme-spin 1s linear infinite;
margin-bottom: 10px;
}
.fme-scanner-canvas {
max-width: 100%;
height: auto;
}
.fme-scanner-instructions {
margin-top: 15px;
color: #666;
font-size: 14px;
}
.fme-scanner-tip {
font-size: 12px;
color: #999;
margin-top: 5px;
} @media (max-width: 768px) {
.fme-barcode-scanner-container {
margin: 10px;
padding: 15px;
}
.fme-barcode-input-group {
flex-direction: column;
}
.fme-scan-button {
justify-content: center;
}
.fme-scanner-modal-content {
max-width: 95%;
max-height: 95%;
}
.fme-scanner-header {
padding: 10px 15px;
}
.fme-scanner-body {
padding: 15px;
}
.fme-scanner-frame {
width: 200px;
height: 120px;
}
}
@media (max-width: 480px) {
.fme-barcode-title {
font-size: 18px;
}
.fme-barcode-input {
font-size: 16px; }
} @keyframes fme-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.fme-loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid #007cba;
border-radius: 50%;
animation: fme-spin 1s linear infinite;
} .fme-barcode-input:focus,
.fme-scan-button:focus,
.fme-close-scanner:focus {
outline: 2px solid #007cba;
outline-offset: 2px;
} @media (prefers-contrast: high) {
.fme-barcode-scanner-container {
border: 2px solid #000;
}
.fme-barcode-input {
border: 2px solid #000;
}
.fme-scan-button {
border: 2px solid #000;
}
}  .fme-order-results {
display: grid;
gap: 15px;
}
.fme-order-item {
padding: 15px;
border: 1px solid #e1e5e9;
border-radius: 6px;
background: white;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: box-shadow 0.2s ease;
}
.fme-order-item:hover {
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.fme-order-item h5 {
margin: 0 0 10px 0;
font-size: 16px;
font-weight: 600;
color: #2c3e50;
}
.fme-order-item p {
margin: 5px 0;
font-size: 14px;
color: #555;
}
.fme-order-item strong {
color: #333;
font-weight: 500;
}
.fme-order-item .button {
margin-top: 10px;
padding: 8px 16px;
text-decoration: none;
background-color: #0073aa;
color: white;
border-radius: 4px;
display: inline-block;
font-size: 13px;
transition: background-color 0.2s ease;
}
.fme-order-item .button:hover {
background-color: #005a87;
color: white;
text-decoration: none;
}
.fme-error {
color: #d63638;
font-style: italic;
text-align: center;
padding: 10px;
}
.fme-no-results {
color: #666;
text-align: center;
padding: 20px;
font-style: italic;
} .fme-product-results {
display: grid;
gap: 15px;
}
.fme-product-item {
padding: 15px;
border: 1px solid #e1e5e9;
border-radius: 6px;
background: white;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: box-shadow 0.2s ease;
}
.fme-product-item:hover {
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.fme-product-item h5 {
margin: 0 0 10px 0;
font-size: 16px;
font-weight: 600;
color: #2c3e50;
}
.fme-product-item p {
margin: 5px 0;
font-size: 14px;
color: #555;
}
.fme-product-item strong {
color: #333;
font-weight: 500;
}
.fme-product-item .button {
margin-top: 10px;
padding: 8px 16px;
text-decoration: none;
background-color: #0073aa;
color: white;
border-radius: 4px;
display: inline-block;
font-size: 13px;
transition: background-color 0.2s ease;
}
.fme-product-item .button:hover {
background-color: #005a87;
color: white;
text-decoration: none;
} .fme-stock-actions {
margin-top: 10px;
display: flex;
gap: 8px;
align-items: center;
}
.fme-stock-behavior {
padding: 6px 12px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
font-weight: 500;
transition: background-color 0.2s ease;
}
.stock-qty {
font-weight: 600;
color: #2c3e50;
margin: 0 5px;
} @media (max-width: 768px) {
.fme-barcode-results {
margin: 15px 0;
padding: 10px;
}
.fme-order-item,
.fme-product-item {
padding: 12px;
}
.fme-stock-actions {
flex-wrap: wrap;
}
.fme-order-item .button,
.fme-product-item .button {
display: block;
text-align: center;
margin-top: 8px;
}
}