/**
 * B2B Bulk Order Portal & Proforma Modal Styling
 *
 * @package B2B_Bulk_Order_Proforma
 */

.b2b-bulk-order-container {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
}

/* Header & Controls */
.b2b-bulk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.b2b-search-box input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    min-width: 260px;
    outline: none;
    box-sizing: border-box;
}

.b2b-search-box input[type="text"]:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.15);
}

.b2b-excel-upload-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.b2b-excel-upload-form input[type="file"] {
    font-size: 13px;
    color: #475569;
}

.b2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

.b2b-btn-primary {
    background-color: #1e3a8a;
    color: #ffffff;
}

.b2b-btn-primary:hover {
    background-color: #172554;
    color: #ffffff;
}

.b2b-btn-secondary {
    background-color: #059669;
    color: #ffffff;
}

.b2b-btn-secondary:hover {
    background-color: #047857;
    color: #ffffff;
}

/* Bulk Table */
.b2b-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.b2b-order-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.b2b-order-table th {
    background: #f1f5f9;
    padding: 12px 14px;
    font-weight: 600;
    color: #334155;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}

.b2b-order-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.b2b-order-table tbody tr:hover {
    background-color: #f8fafc;
}

.b2b-qty-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.b2b-qty-input:focus {
    border-color: #1e3a8a;
    outline: none;
}

/* Footer / Review Trigger */
.b2b-bulk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.b2b-summary-pills {
    display: flex;
    gap: 15px;
    font-size: 15px;
    font-weight: 600;
}

.b2b-pill {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Interactive Proforma Review Modal */
.b2b-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
}

.b2b-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.b2b-modal-header {
    background: #1e3a8a;
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.b2b-modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.b2b-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.b2b-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.b2b-review-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.b2b-review-table th {
    background: #f8fafc;
    padding: 10px 12px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
}

.b2b-review-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.b2b-modal-summary {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 6px;
}

.b2b-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.b2b-loading-spinner {
    display: none;
    margin-left: 8px;
}