/* B2B Warehouse Manager Frontend Styles */

.b2b-warehouse-selection,
.b2b-po-number,
.b2b-special-instructions,
.b2b-tax-exemption-section {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.b2b-warehouse-selection h3,
.b2b-po-number h3,
.b2b-special-instructions h3,
.b2b-tax-exemption-section h3 {
    margin-top: 0;
    color: #333;
}

.b2b-status-notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.b2b-status-notice.approved {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.b2b-status-notice.pending {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.b2b-dashboard {
    max-width: 800px;
}

.b2b-customer-info,
.b2b-quick-actions {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.b2b-info-table {
    width: 100%;
    border-collapse: collapse;
}

.b2b-info-table td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.b2b-info-table td:first-child {
    width: 150px;
    font-weight: bold;
}

.b2b-exemptions-table,
.b2b-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.b2b-exemptions-table th,
.b2b-exemptions-table td,
.b2b-orders-table th,
.b2b-orders-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.b2b-exemptions-table th,
.b2b-orders-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
}

.status-approved {
    color: #28a745;
    font-weight: bold;
}

.status-pending {
    color: #ffc107;
    font-weight: bold;
}

.b2b-add-exemption {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.b2b-add-exemption h3 {
    margin-top: 0;
}

.b2b-add-exemption p {
    margin: 15px 0;
}

.b2b-add-exemption label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.b2b-add-exemption input,
.b2b-add-exemption select,
.b2b-add-exemption textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.b2b-add-exemption .required {
    color: #dc3545;
}

.b2b-exemptions-list {
    margin-top: 30px;
}

.b2b-warehouse-orders {
    max-width: 100%;
    overflow-x: auto;
}

.b2b-orders-table a {
    color: #0073aa;
    text-decoration: none;
}

.b2b-orders-table a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .b2b-warehouse-selection,
    .b2b-po-number,
    .b2b-special-instructions,
    .b2b-tax-exemption-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .b2b-exemptions-table,
    .b2b-orders-table {
        font-size: 14px;
    }
    
    .b2b-exemptions-table th,
    .b2b-exemptions-table td,
    .b2b-orders-table th,
    .b2b-orders-table td {
        padding: 8px 5px;
    }
    
    .b2b-add-exemption input,
    .b2b-add-exemption select,
    .b2b-add-exemption textarea {
        max-width: 100%;
    }
}

/* Form Styling */
#b2b-registration-fields {
    background: #f9f9f9;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#b2b-registration-fields p {
    margin: 10px 0;
}

#b2b-registration-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#b2b-registration-fields input {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.required {
    color: #dc3545;
}

/* Button Styling */
.b2b-quick-actions .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Loading States */
.b2b-loading {
    opacity: 0.6;
    pointer-events: none;
}

.b2b-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: b2b-spin 1s linear infinite;
}

@keyframes b2b-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

