





#current-product-details {
    flex-grow: 1;
    overflow-y: auto;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#current-product-details .current-category-header {
    font-size: 0.75em;
    color: #666;
}

#current-product-details .current-product-header {
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
#current-product-details.unknown-barcode-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.unknown-barcode-message {
    font-size: 1.5em;
    font-weight: bold;
    color: #dc3545;
}

#create-new-article-btn {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
}

#cancel-new-article-btn {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    color: white;
    background-color: #6c757d;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
}

#keyboard-area {
    flex-shrink: 0;
    padding-top: 10px;
}
#stock-display-container {
    font-weight: bold;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 10px;
    /*
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    */
}

/* Stock Tab Styles */
#current-product-details p {
    margin: 8px 0;
    font-size: 16px;
}
#current-product-details .detail-label {
    font-weight: bold;
    color: #555;
}
.stock-value-current {
    font-size: 1.2em;
    font-weight: bold;
    color: #dc3545;
}
.stock-value-current.counted {
    color: #28a745;
}
.update-success-message, .change-info-message {
    color: #28a745;
    font-weight: bold;
    margin-top: 10px !important;
}
.info-message {
    color: #007bff; /* Blue for info */
    font-weight: bold;
    margin-top: 10px !important;
    background-color: #e7f3ff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
.change-info-message .old-stock {
    color: #dc3545;
}
.error-message {
    color: #dc3545;
    font-weight: bold;
}
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    margin-top: 10px;
}
.quantity-label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}
#quantity-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: right;
    font-size: 24px;
    font-weight: bold;
    flex-grow: 1;
    -moz-appearance: textfield;
    background-color: #ffffff;
    color: #000000;
}
#quantity-input::-webkit-outer-spin-button,
#quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#quantity-input.input-error {
    border-color: #dc3545;
}
#quantity-input.input-error::placeholder {
    color: #dc3545;
    opacity: 0.8;
}
#clear-quantity-btn {
    padding: 15px;
    width: 50px;
    font-size: 24px;
    font-weight: bold;
    
    background-color: #dc3545; /* Red matches keyboard Clear */
    color: white;
    border: 1px solid #888;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    
    cursor: pointer;
    flex-shrink: 0;
    height: 50px;
}
#clear-quantity-btn:active {
    background-color: #c82333;
    transform: translateY(1px);
    box-shadow: none;
}

#numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 5px;
}
#numpad button {
    padding: 10px;
    font-size: 24px;
    font-weight: bold;
    
    background-color: #ffffff;
    border: 1px solid #888;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    color: #000;
}
#numpad button:active {
    background-color: #e5e7eb;
    transform: translateY(1px);
    box-shadow: none;
}
#numpad button:disabled {
    background-color: #e0e0e0;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
    border-color: #ccc;
}
#numpad #pack-multiplier-btn, #numpad #add-pack-btn {
    background-color: #eab308; /* Match keyboard Backspace */
    color: black;
}
#numpad #pack-multiplier-btn:active, #numpad #add-pack-btn:active {
    background-color: #ca8a04;
}

#numpad-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}
#numpad-actions button {
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    
    border: 1px solid #888;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
#numpad-actions button:active {
    transform: translateY(1px);
    box-shadow: none;
    filter: brightness(0.9);
}
#numpad-actions button:disabled {
    background-color: #cccccc !important;
    cursor: not-allowed;
    box-shadow: none;
    filter: none;
}
.numpad-action-replace { background-color: #007bff; }
.numpad-action-add { background-color: #28a745; }
.numpad-action-subtract { background-color: #fd7e14; }

@keyframes highlight-scan-anim {
    0% {
        background-color: rgba(0, 86, 179, 0.1);
    }
    50% {
        background-color: rgba(0, 86, 179, 0.4);
    }
    100% {
        background-color: #fff;
    }
}

#current-product-details.highlight-scan {
    animation: highlight-scan-anim 1s ease-out;
}
