.bulk-order-page {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.master-wrapper-content, .master-column-wrapper {
  z-index: inherit !important;
}
.bulk-order-page .page-title h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.bulk-order-instructions {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.bulk-order-instructions a {
    color: #4ab2f1;
    text-decoration: none;
}

.bulk-order-instructions a:hover {
    text-decoration: underline;
}

.bulk-order-table-wrapper {
    max-height: 380px;
    overflow-x: auto;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.bulk-order-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.bulk-order-table thead {
    background: #f8f8f8;
    border-bottom: 2px solid #ddd;
}

.bulk-order-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f8f8;
    box-shadow: 0 1px 0 #ddd;
}

.bulk-order-table th {
    padding: 12px 8px;
    text-align: start;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.bulk-order-table tbody tr {
    border-bottom: 1px solid #eee;
}

.bulk-order-table tbody tr:hover {
    background: #fafafa;
}

.bulk-order-table tbody tr.error-row {
    background: #fff5f5;
    border-inline-start: 3px solid #e74c3c;
}

.bulk-order-table td {
    padding: 12px 8px;
    vertical-align: middle;
}

.sku-column {
    width: 15%;
}

.quantity-column {
    width: 10%;
}

.product-column {
    width: 45%;
}

.price-column {
    width: 15%;
}

.price-column,
.total-column {
    text-align: end;
}

.delete-column {
    width: 5%;
    text-align: center;
}

.sku-input,
.quantity-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.sku-input:focus,
.quantity-input:focus {
    outline: none;
    border-color: #4ab2f1;
}

.quantity-input {
    text-align: center;
}

.product-info {
    min-height: 40px;
}

.product-details {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.product-name-section {
    flex: 1;
}

.product-name-section strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.product-placeholder {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

.loading-message {
    color: #4ab2f1;
    font-style: italic;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
}

.attribute-section {
    margin-top: 8px;
}

.select-attributes-btn {
    background: #f39c12;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 5px;
}

.select-attributes-btn:hover {
    background: #e67e22;
}

.selected-attributes {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.selected-attrs-list div {
    padding: 2px 0;
}

.unit-price,
.row-total {
    text-align: end;
}

.unit-price {
    font-weight: 600;
    color: #27ae60;
    font-size: 15px;
}

.delete-row-btn {
    background: #e74c3c;
    color: #fff;
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-row-btn:hover {
    background: #c0392b;
}

.bulk-order-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
}

.left-actions,
.right-actions {
    display: flex;
    gap: 10px;
}

.button-1,
.button-2,
.button-3 {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.add-row-button {
    background: #27ae60;
    color: #fff;
}

.add-row-button:hover {
    background: #229954;
}

.clear-all-button {
    background: #e74c3c;
    color: #fff;
}

.clear-all-button:hover {
    background: #c0392b;
}

.add-to-cart-button,
.add-to-wishlist-button {
    background: #4ab2f1;
    color: #fff;
}

.add-to-cart-button:hover,
.add-to-wishlist-button:hover {
    background: #3498db;
}

.message-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: #f8f8f8;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: end;
    border-radius: 0 0 8px 8px;
}

.file-upload-section {
    margin-bottom: 20px;
}

#excel-file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-button {
    background: #4ab2f1;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}

.file-button:hover {
    background: #3498db;
}

.file-name {
    color: #666;
    font-size: 14px;
}

.sample-file-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.sample-file-section a {
    color: #4ab2f1;
    text-decoration: none;
    font-size: 14px;
}

.sample-file-section a:hover {
    text-decoration: underline;
}

.import-button {
    background: #4ab2f1;
    color: #fff;
}

.import-button:hover {
    background: #3498db;
}

.attribute-group {
    margin-bottom: 20px;
}

.attribute-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.attribute-group .required {
    color: #e74c3c;
}

.attribute-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.radio-option,
.checkbox-option {
    margin-bottom: 8px;
}

.radio-option input,
.checkbox-option input {
    margin-inline-end: 8px;
}

.radio-option label,
.checkbox-option label {
    display: inline;
    font-weight: normal;
    cursor: pointer;
}

.error-messages {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

.save-attributes-button {
    background: #4ab2f1;
    color: #fff;
}

.save-attributes-button:hover {
    background: #3498db;
}

@media (max-width: 768px) {
    .bulk-order-table {
        font-size: 12px;
        min-width: 560px;
    }

    .bulk-order-table th,
    .bulk-order-table td {
        padding: 8px 4px;
    }

    .product-thumbnail {
        width: 40px;
        height: 40px;
    }

    .bulk-order-actions {
        flex-direction: column;
        gap: 15px;
    }

    .left-actions,
    .right-actions {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

.paste-items-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.paste-instructions {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.paste-instructions ul {
    margin: 10px 0;
    padding-inline-start: 20px;
}

.paste-instructions li {
    margin: 5px 0;
}

.paste-example {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    margin: 10px 0;
}

.paste-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.paste-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

.paste-textarea:focus {
    outline: none;
    border-color: #4ab2f1;
}

.paste-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.parse-button {
    background: #4ab2f1;
    color: #fff;
}

.parse-button:hover {
    background: #3498db;
}

.clear-button {
    background: #e74c3c;
    color: #fff;
}

.clear-button:hover {
    background: #c0392b;
}

.button-3 {
    background: #95a5a6;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.button-3:hover {
    background: #7f8c8d;
}

.parsed-results {
    margin-top: 30px;
}

.parsed-results h3 {
    margin-bottom: 15px;
    color: #333;
}

.parsed-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
}

.parsed-table thead {
    background: #f8f8f8;
    border-bottom: 2px solid #ddd;
}

.parsed-table th {
    padding: 12px 8px;
    text-align: start;
    font-weight: 600;
    color: #333;
}

.parsed-table tbody tr {
    border-bottom: 1px solid #eee;
}

.parsed-table tbody tr:hover {
    background: #fafafa;
}

.parsed-table tbody tr.error-row {
    background: #fff5f5;
}

.parsed-table td {
    padding: 12px 8px;
}

.status-valid {
    color: #27ae60;
    font-weight: 600;
}

.status-error {
    color: #e74c3c;
    font-weight: 600;
}

.parsed-actions {
    margin-top: 15px;
}

.add-to-form-button {
    background: #27ae60;
    color: #fff;
}

.add-to-form-button:hover {
    background: #229954;
}

@media (max-width: 768px) {
    .paste-actions {
        flex-direction: column;
    }

    .paste-actions button,
    .paste-actions a {
        width: 100%;
        text-align: center;
    }
}

