/* Picking Modal Global Styles */
/* Bu stiller Modal component içinde render edilen içerik için gerekli */

.picking-modal-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Order/Product Picking Header */
.order-picking-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.order-picking-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-picking-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.order-picking-image-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.order-picking-image-placeholder svg {
    width: 28px;
    height: 28px;
}

.order-picking-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.order-picking-number {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.order-picking-customer {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.order-picking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.order-picking-meta .meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

.order-picking-meta .meta-badge.store {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.order-picking-meta .meta-badge.city {
    background: var(--bg-input);
    color: var(--text-secondary);
}

.order-picking-meta .meta-badge.tracking {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-family: var(--font-mono);
}

.order-picking-meta .meta-badge.tracking svg {
    flex-shrink: 0;
}

.order-picking-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 80px;
}

.order-picking-progress .progress-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-picking-progress .progress-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.order-picking-progress .progress-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Barcode Section */
.barcode-section {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Scan Mode Toggle */
.scan-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    background: var(--bg-input);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.mode-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.mode-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.mode-btn svg {
    flex-shrink: 0;
}

/* Barcode Input */
.barcode-scanner-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.scan-input-section {
    text-align: center;
}

.scan-input-wrapper {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.scan-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 18px;
    font-family: var(--font-mono);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-primary);
    text-align: center;
    transition: all 0.2s;
}

.scan-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.scan-button {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.scan-button:hover:not(:disabled) {
    background: var(--primary-hover);
}

.scan-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.scan-button svg {
    width: 24px;
    height: 24px;
}

.scan-hint {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Scan Result */
.scan-result {
    display: block;
    width: 100%;
    padding: 20px;
    border-radius: var(--radius-lg);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scan-result.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.scan-result.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.scan-result.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.scan-result.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.scan-result-content {
    width: 100%;
}

.scan-result-message {
    margin: 0 0 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Scanned Item Info */
.scanned-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-top: 12px;
}

.scanned-item-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.scanned-item-image-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.scanned-item-image-placeholder svg {
    width: 24px;
    height: 24px;
}

.scanned-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scanned-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scanned-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scanned-item-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.scanned-item-meta .meta-item svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.scanned-item-qty {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
}

.scanned-item-qty .qty-picked {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
}

.scanned-item-qty .qty-separator {
    color: var(--text-muted);
    font-size: 14px;
}

.scanned-item-qty .qty-total {
    font-size: 14px;
    color: var(--text-secondary);
}

.scanned-item-qty .qty-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Multi Product Card (for multiple orders) */
.multi-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 12px;
}

.multi-product-image-section {
    flex-shrink: 0;
}

.multi-product-image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--border);
}

.multi-product-image-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.multi-product-image-placeholder svg {
    width: 28px;
    height: 28px;
}

.multi-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.multi-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multi-product-codes {
    display: flex;
    gap: 8px;
}

.multi-product-codes .product-code {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
}

.multi-product-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius);
}

.multi-product-count .count-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.multi-product-count .count-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Multiple Orders List */
.multiple-orders-list {
    margin-top: 16px;
}

.multiple-orders-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.multiple-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
    position: relative;
}

.multiple-order-item:hover:not(:disabled) {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.multiple-order-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.multiple-order-item.processing {
    pointer-events: none;
}

.item-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.order-item-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-select-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-select-number {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.order-select-customer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-primary);
}

.order-select-customer svg.detail-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.order-item-right {
    flex-shrink: 0;
}

.order-select-qty {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-input);
    border-radius: var(--radius);
}

.order-select-qty .qty-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.order-select-qty .qty-unit {
    font-size: 12px;
    color: var(--text-muted);
}

/* Items Section */
.items-section {
    margin-top: 0;
}

.items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.items-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.items-title svg {
    color: #3b82f6;
}

.items-count {
    font-weight: 400;
    color: var(--text-muted);
}

.items-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.item-row.picked {
    opacity: 0.6;
    background: rgba(34, 197, 94, 0.05);
}

.item-row.clickable {
    cursor: pointer;
}

.item-row.clickable:hover:not(.picked):not(.disabled) {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.item-row.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.item-row.picked {
    cursor: default;
}

.item-row.just-picked {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    animation: pickFlash 0.3s ease-out;
}

/* Order Row (for product-based picking) */
.item-row.order-row {
    padding: 12px 16px;
}

@keyframes pickFlash {
    0% {
        transform: scale(1);
        background: rgba(34, 197, 94, 0.3);
    }
    50% {
        transform: scale(1.02);
        background: rgba(34, 197, 94, 0.2);
    }
    100% {
        transform: scale(1);
        background: rgba(34, 197, 94, 0.1);
    }
}

/* Item Image */
.item-image {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.item-image-placeholder svg {
    width: 24px;
    height: 24px;
}

.item-picked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.85);
    border-radius: var(--radius);
    color: white;
}

.item-picked-overlay svg {
    width: 28px;
    height: 28px;
}

.item-picked-overlay.animate {
    animation: checkmarkPop 0.3s ease-out;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Item Details */
.item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-variant {
    font-size: 12px;
    color: var(--text-secondary);
}

.item-codes {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.item-barcode, .item-sku {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Item Location */
.item-location {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Item Quantity */
.item-quantity {
    display: flex;
    align-items: baseline;
    gap: 2px;
    padding: 6px 12px;
    background: var(--bg-input);
    border-radius: var(--radius);
    min-width: 60px;
    justify-content: center;
}

.item-quantity.complete {
    background: rgba(34, 197, 94, 0.1);
}

.item-quantity .qty-picked {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.item-quantity.complete .qty-picked {
    color: #22c55e;
}

.item-quantity .qty-sep {
    color: var(--text-muted);
    font-size: 14px;
}

.item-quantity .qty-total {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Item Status */
.item-status {
    flex-shrink: 0;
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.status-icon svg {
    width: 16px;
    height: 16px;
}

.status-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-icon.pending {
    background: var(--bg-input);
    color: var(--text-muted);
}

/* Product Orders Section */
.product-orders-section {
    margin-top: 0;
}

.product-orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.product-orders-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.product-orders-title svg {
    color: #8b5cf6;
}

.orders-count {
    font-weight: 400;
    color: var(--text-muted);
}

.orders-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.product-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-order-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.product-order-row:hover:not(.picked):not(.disabled) {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.product-order-row.picked {
    opacity: 0.6;
    background: rgba(34, 197, 94, 0.05);
    cursor: default;
}

.product-order-row.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.product-order-row.just-picked {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    animation: pickFlash 0.3s ease-out;
}

.order-main-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-number-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-number-row .order-number {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.status-badge.partial {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-badge.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.order-customer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-primary);
}

.order-customer-row svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.order-store-row {
    margin-top: 2px;
}

.order-store-row .store-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 4px;
}

.order-quantity-info {
    display: flex;
    align-items: baseline;
    gap: 2px;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: var(--radius);
    min-width: 60px;
    justify-content: center;
}

.order-quantity-info.complete {
    background: rgba(34, 197, 94, 0.1);
}

.order-quantity-info .qty-picked {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.order-quantity-info.complete .qty-picked {
    color: #22c55e;
}

.order-quantity-info .qty-sep {
    color: var(--text-muted);
    font-size: 14px;
}

.order-quantity-info .qty-total {
    font-size: 14px;
    color: var(--text-secondary);
}

.order-status-icon {
    flex-shrink: 0;
}

.order-status-icon .status-icon.animate {
    animation: checkmarkPop 0.3s ease-out;
}

/* Camera */
.camera-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
}

.camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scan-region {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 30%;
    border: 2px solid rgba(59, 130, 246, 0.8);
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
    0%, 100% {
        top: 0;
    }
    50% {
        top: calc(100% - 2px);
    }
}

.camera-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    gap: 12px;
}

.camera-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.camera-loading p {
    margin: 0;
    font-size: 14px;
}

.camera-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    gap: 12px;
    padding: 20px;
    text-align: center;
}

.camera-error svg {
    color: #ef4444;
}

.camera-error p {
    margin: 0;
    font-size: 14px;
    max-width: 280px;
}

.retry-btn {
    padding: 8px 20px;
    border: none;
    background: var(--primary);
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.retry-btn:hover {
    background: var(--primary-hover);
}

.camera-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.camera-control-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.camera-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.camera-control-btn.active {
    background: #fbbf24;
    color: #000;
}

.camera-control-btn svg {
    width: 20px;
    height: 20px;
}

.camera-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Recent Scans */
.recent-scans-section {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.recent-scans-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.recent-scans-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-scan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-input);
    border-radius: var(--radius);
    border-left: 3px solid;
}

.recent-scan-item.success {
    border-left-color: #10b981;
}

.recent-scan-item.failed {
    border-left-color: #ef4444;
}

.recent-scan-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recent-scan-barcode {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.recent-scan-name {
    font-size: 13px;
    color: var(--text-primary);
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-scan-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-scan-item.success .recent-scan-status {
    color: #10b981;
}

.recent-scan-item.failed .recent-scan-status {
    color: #ef4444;
}

.recent-scan-status svg {
    width: 18px;
    height: 18px;
}

/* Spinner */
.spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .picking-modal-container {
        gap: 16px;
    }

    .order-picking-header {
        padding: 12px;
        margin-bottom: 12px;
        position: relative;
    }

    .order-picking-info {
        flex-wrap: wrap;
        gap: 12px;
    }

    .order-picking-image,
    .order-picking-image-placeholder {
        width: 48px;
        height: 48px;
    }

    .order-picking-details {
        flex: 1;
        min-width: 0;
    }

    .order-picking-number {
        font-size: 14px;
    }

    .order-picking-customer {
        font-size: 13px;
    }

    .order-picking-meta {
        gap: 6px;
    }

    .order-picking-meta .meta-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .order-picking-meta .meta-badge.tracking {
        display: none;
    }

    .order-picking-progress {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 8px 12px;
        min-width: 60px;
    }

    .order-picking-progress .progress-value {
        font-size: 14px;
    }

    .order-picking-progress .progress-label {
        font-size: 10px;
    }

    .scan-mode-toggle {
        padding: 3px;
        margin-bottom: 12px;
    }

    .mode-btn {
        padding: 8px 16px;
        font-size: 12px;
        gap: 6px;
    }

    .scan-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .scan-input {
        padding: 12px 16px;
        font-size: 16px;
    }

    .scan-button {
        width: 100%;
        height: 48px;
    }

    .items-header {
        margin-bottom: 12px;
    }

    .items-title {
        font-size: 13px;
    }

    .items-hint {
        display: none;
    }

    .items-list {
        gap: 6px;
    }

    .item-row {
        padding: 10px;
        gap: 10px;
    }

    .item-row .item-image {
        width: 44px;
        height: 44px;
    }

    .item-row .item-name {
        font-size: 13px;
    }

    .item-row .item-codes {
        display: none;
    }

    .item-row .item-location {
        font-size: 11px;
        padding: 4px 8px;
    }

    .item-row .item-quantity {
        padding: 4px 8px;
        min-width: 50px;
    }

    .item-row .item-quantity .qty-picked {
        font-size: 14px;
    }

    .item-row .item-status {
        display: none;
    }

    .product-orders-header {
        margin-bottom: 12px;
    }

    .product-orders-title {
        font-size: 13px;
    }

    .orders-hint {
        display: none;
    }

    .product-orders-list {
        gap: 6px;
    }

    .product-order-row {
        padding: 10px 12px;
        gap: 10px;
    }

    .order-number-row .order-number {
        font-size: 13px;
    }

    .order-customer-row {
        font-size: 12px;
    }

    .order-store-row .store-badge {
        font-size: 10px;
    }

    .order-quantity-info {
        padding: 6px 10px;
        min-width: 50px;
    }

    .order-quantity-info .qty-picked {
        font-size: 14px;
    }

    .recent-scans-section {
        padding-top: 16px;
    }

    .recent-scans-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .recent-scans-list {
        gap: 6px;
    }

    .recent-scan-item {
        padding: 8px 10px;
    }

    .recent-scan-barcode {
        font-size: 11px;
    }

    .recent-scan-name {
        font-size: 12px;
        max-width: 180px;
    }

    .camera-container {
        max-width: 100%;
    }
}
