.custom-bulk-order-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.date-filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.date-inputs {
    display: flex;
    gap: 15px;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-input-group label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.date-input-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 120px;
    font-size: 14px;
}

.products-counter {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.products-grid {
    min-height: 400px;
    margin-bottom: 20px;
}

.product-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card.selected {
    border-color: #007cba;
    background-color: #f0f8ff;
}

.product-checkbox {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.product-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.product-sku {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.product-order-info {
    font-size: 12px;
    color: #888;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #007cba;
    margin-right: 20px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.qty-btn:hover {
    background: #f5f5f5;
    border-color: #007cba;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #007cba;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#current-page {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.bottom-action-bar {
    position: sticky;
    bottom: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.selected-info {
    font-size: 14px;
    color: #666;
}

.subtotal-info {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.add-to-cart-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-products-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-products-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .date-inputs {
        width: 100%;
        justify-content: space-between;
    }
    
    .product-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .bottom-action-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.product-variation {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    padding: 2px 8px;
    background: #f0f8ff;
    border-radius: 4px;
    display: inline-block;
}

.product-card.selected .product-variation {
    background: #e6f3ff;
}

.custom-bulk-order-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.date-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.date-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.date-filters input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-container {
    margin-bottom: 20px;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Table View Styles */
.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.products-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.products-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.products-table tr:hover {
    background-color: #f8f9fa;
}

.products-table tr.selected {
    background-color: #e3f2fd;
}

.products-table .product-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.products-table .product-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.products-table .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-table .product-name {
    font-weight: 500;
    color: #333;
}

.products-table .product-variation {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.products-table .product-sku {
    color: #666;
    font-size: 13px;
}

.products-table .product-order-info {
    font-size: 12px;
    color: #888;
}

.products-table .product-price {
    font-weight: 600;
    color: #333333;
}

.products-table .quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-table .qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.products-table .qty-btn:hover {
    background: #e8e8e8;
}

.products-table .qty-input {
    width: 60px;
    height: 28px;
    text-align: justify;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Pagination Styles */
.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pagination-controls {
    display: flex;
    gap: 10px;
}

.pagination-controls button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-controls button:hover:not(:disabled) {
    background: #f0f0f0;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ui-datepicker .ui-datepicker-title {
	display: flex;
}
.ui-datepicker-header {
	background: black;
	border: 1px solid black;
}

/* Selected Products Bar */
.selected-products-info {
/*     position: fixed; */
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.selected-products-info .info {
    font-size: 14px;
    color: #666;
}

.selected-products-info .add-to-cart-btn {
    padding: 10px 20px;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.selected-products-info .add-to-cart-btn:hover {
    background: #135e96;
}

.selected-products-info .add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading and Messages */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-spinner::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-products-message {
    display: none;
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@media (max-width: 768px) {
    .products-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .products-table thead {
        display: none;
    }
    .products-table tr {
        margin-bottom: 18px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.07);
        background: #fff;
        border: 1px solid #e0e0e0;
        padding: 12px 0;
        display: block;
    }
    .products-table td {
        border: none;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        padding-left: 45%;
        min-height: 44px;
        text-align: left;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .products-table td:before {
        position: absolute;
        top: 12px;
        left: 16px;
        width: 40%;
        white-space: nowrap;
        font-weight: 600;
        color: #888;
        content: attr(data-label);
    }
    .products-table .product-image {
        margin-bottom: 10px;
    }
    .products-table .product-sku {
        font-size: 13px;
        color: #666;
        margin-bottom: 5px;
        display: block;
    }
    .products-table .quantity-controls {
        margin-top: 8px;
    }
    .selected-products-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 10px;
        font-size: 15px;
    }
	
    .pagination-container, .pagination-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 10px 5px;
    }
	.pagination-controls {
		width: 100%;
	}
    .pagination-controls button, .pagination-btn {
        width: 100%;
        margin-bottom: 6px;
        font-size: 15px;
        padding: 10px 0;
    }
} 