
/* Professional Purchase Page Styles */

/* Purchase Form Styles */
.purchase-form-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 20px;
}

.purchase-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.purchase-form-group {
    margin-bottom: 20px;
}

.purchase-form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: none;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.purchase-form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.purchase-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    display: block;
}

/* Purchase Table Styles */
.purchase-table-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.purchase-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

.purchase-table thead {
    background-color: #3498db;
    color: #ffffff;
}

.purchase-table thead th {
    font-weight: 600;
    text-align: left;
    padding: 15px 12px;
    font-size: 14px;
    border-bottom: none;
}

.purchase-table tbody tr {
    transition: all 0.3s ease;
}

.purchase-table tbody td {
    padding: 12px;
    border-top: 1px solid #eaeaea;
    vertical-align: middle;
}

.purchase-table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.purchase-table tbody tr:hover {
    background-color: #f1f7fd;
}

/* Purchase Search Styles */
.purchase-search-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.purchase-search-input {
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: none;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.purchase-search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.purchase-search-btn {
    background-color: #3498db;
    color: #ffffff;
    border-radius: 6px;
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.purchase-search-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Purchase Totals Styles */
.purchase-totals-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.purchase-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eaeaea;
}

.purchase-total-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
}

.purchase-total-label {
    font-weight: 500;
    color: #34495e;
}

.purchase-total-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Purchase Actions Styles */
.purchase-actions-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.purchase-action-btn {
    background-color: #3498db;
    color: #ffffff;
    border-radius: 6px;
    border: none;
    padding: 12px 25px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 5px;
}

.purchase-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.purchase-action-btn-success {
    background-color: #2ecc71;
}

.purchase-action-btn-success:hover {
    background-color: #27ae60;
}

.purchase-action-btn-danger {
    background-color: #e74c3c;
}

.purchase-action-btn-danger:hover {
    background-color: #c0392b;
}

/* Purchase Product Autocomplete */
.purchase-product-autocomplete {
    width: 100%;
    position: relative;
}

.purchase-product-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.purchase-product-suggestion:hover {
    background-color: #f1f7fd;
}

.purchase-product-suggestion:last-child {
    border-bottom: none;
}

.purchase-product-suggestion-name {
    font-weight: 600;
    color: #2c3e50;
}

.purchase-product-suggestion-sku {
    font-size: 12px;
    color: #7f8c8d;
}

/* Responsive Design for Purchase Page */
@media (max-width: 767px) {
    .purchase-form-container,
    .purchase-table-container,
    .purchase-search-container,
    .purchase-totals-container,
    .purchase-actions-container {
        padding: 15px;
    }

    .purchase-table {
        font-size: 12px;
    }

    .purchase-table thead th {
        padding: 10px 8px;
        font-size: 13px;
    }

    .purchase-table tbody td {
        padding: 8px;
    }

    .purchase-action-btn {
        padding: 10px 15px;
        font-size: 13px;
        margin: 5px;
    }
}

/* Purchase Status Indicators */
.purchase-status {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.purchase-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.purchase-status-pending {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.purchase-status-pending::before {
    background-color: #f39c12;
}

.purchase-status-ordered {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.purchase-status-ordered::before {
    background-color: #3498db;
}

.purchase-status-received {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.purchase-status-received::before {
    background-color: #2ecc71;
}

/* Purchase Product Details */
.purchase-product-details {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.purchase-product-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.purchase-product-sku {
    font-size: 12px;
    color: #7f8c8d;
}

.purchase-product-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.purchase-quantity-input {
    width: 80px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-align: center;
    margin: 0 5px;
}

.purchase-quantity-btn {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purchase-quantity-btn:hover {
    background-color: #2980b9;
}

/* Purchase Product Price */
.purchase-product-price {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.purchase-price-input {
    width: 120px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-align: right;
}

/* Purchase Product Discount */
.purchase-product-discount {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.purchase-discount-input {
    width: 80px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-align: right;
    margin: 0 5px;
}

.purchase-discount-type {
    width: 100px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Purchase Product Tax */
.purchase-product-tax {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.purchase-tax-select {
    width: 150px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Purchase Product Total */
.purchase-product-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #2c3e50;
    border-top: 1px solid #eaeaea;
    padding-top: 10px;
}

/* Purchase Product Actions */
.purchase-product-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.purchase-product-remove-btn {
    background-color: #e74c3c;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purchase-product-remove-btn:hover {
    background-color: #c0392b;
}
