.poFormContainer{
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
}
.formBorder{
    min-width: 800px;
    min-height: 450px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    border-radius: 5px;
    padding: 20px;
}
.poForm{
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.formInput{
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    border: none;
    border-radius: 5px;
    height: 30px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    padding: 0 10px;
}
.formSelect{
    margin-bottom: 10px;
    width: 60%;
    margin-right: 2%;
}

.formLabel{
    max-width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 5px;
}
.checkboxContainer{
    width: 90%;
    margin: auto auto 20px;
}
.formCheckbox{
    margin-left: 0;
}
.formBtnContainer{
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
}
.submitBtn{
    border: none;
    background-color: #00A000;
    color: white;
    height: 40px;
    width: 30%;
    border-radius: 5px;
    font-weight: 700;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.clearBtn{
    border: none;
    background-color: yellow;
    color: black;
    height: 40px;
    width: 30%;
    border-radius: 5px;
    font-weight: 700;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.submitBtn:hover {
    background-color: #008000;
    cursor: pointer;
}

.clearBtn:hover {
    background-color: #FFD700;
    cursor: pointer;
}

.reportTable {
    border-collapse: collapse;
    width: 80%;
    margin: auto;
}

.reportTable th {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.reportTable td {
    border: 1px solid #ccc;
    padding: 8px;
}

.reportTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

.reportTable tr:nth-child(odd) {
    background-color: #ffffff;
}
.reportTitle{
    text-align: center;
    font-size: 30px;
}
.exportBtnContainer{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.exportBtn{
    border: none;
    background-color: #00B5E2;
    color: white;
    height: 40px;
    border-radius: 5px;
    font-weight: 700;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

#newProductContainer, #newProductsContainer{
    width: 90%;
    margin-left: 5%;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.newFormInput{
    width: 100%;
    margin-bottom: 10px;
}

/* Product row styles */
.productRow, .newProductRow {
    width: 90%;
    margin-left: 5%;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    position: relative;
}

.productRow {
    display: grid;
    grid-template-columns: auto 2fr auto auto 100px 30px;
    align-items: center;
    gap: 10px;
}

.productRow .formLabel {
    margin: 0;
    white-space: nowrap;
}

.productRow .select2-container {
    grid-column: 2;
}

.quantityInput {
    width: 100px !important;
    margin: 0 !important;
}

.cartonInfo {
    color: #4CAF50;
    font-weight: bold;
}

.quantityError {
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    background-color: #ffebee;
    border: 1px solid #f44336;
    border-radius: 5px;
    padding: 8px;
    margin-top: 5px;
    font-size: 14px;
    z-index: 10;
}

.suggestionBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.suggestionBtn:hover {
    background-color: #45a049;
}

.newProductRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.newProductRow .formLabel {
    flex: 0 0 auto;
    margin: 0;
    margin-right: 5px;
}

.newProductRow .newFormInput {
    flex: 1 1 150px;
    margin: 0;
}

/* Add and Remove buttons */
.addProductBtn {
    border: none;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 4px 12px;
}

.addProductBtn:hover {
    background-color: #45a049;
}

.removeBtn {
    border: none;
    background-color: #f44336;
    color: white;
    padding: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.removeBtn:hover {
    background-color: #da190b;
}

/* Select2 custom styling */
.select2-container {
    margin-bottom: 10px;
}

.select2-container .select2-selection--single {
    height: 30px;
    border: none;
    border-radius: 5px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    padding-left: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 28px;
}

.select2-dropdown {
    border-radius: 5px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border: none;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px;
}

.select2-results__option--highlighted {
    background-color: #4CAF50 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .formBorder {
        min-width: 95%;
        padding: 10px;
    }

    .productRow {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .productRow .formLabel {
        margin-bottom: 5px;
    }

    .productRow .select2-container, .quantityInput, .newFormInput {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .quantityError {
        position: static;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .newProductRow {
        flex-direction: column;
        align-items: flex-start;
    }
}