/* B2B Commerce Frontend Styles - Free Version */

/* PASSWORD TOGGLE STYLES */
.b2b-registration-form .password-toggle {
    background: #f0f0f0 !important;
    border: 1px solid #ccc !important;
    color: #333 !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: normal !important;
    width: 50px !important;
    height: 20px !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    border-radius: 3px !important;
    display: block !important;
    text-align: center !important;
    line-height: 12px !important;
}

.b2b-registration-form .password-toggle:hover {
    background: #e0e0e0 !important;
}

.b2b-registration-form .password-toggle .eye-icon {
    display: block !important;
    font-size: 16px !important;
    font-weight: normal !important;
    color: #333 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.b2b-registration-form .password-toggle .eye-icon.show::before {
    content: "👁" !important;
    display: block !important;
    font-size: 16px !important;
}

.b2b-registration-form .password-toggle .eye-icon.hide::before {
    content: "🙈" !important;
    display: block !important;
    font-size: 16px !important;
}

.b2b-registration-form .password-toggle .eye-icon::before {
    content: "👁" !important;
    display: block !important;
    font-size: 16px !important;
}

.password-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 60px !important;
}

/* Force text visibility when password is shown */
.b2b-registration-form input[type="text"] {
    -webkit-text-security: none !important;
    text-security: none !important;
    color: #333 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Ensure password input shows text when type is changed */
.b2b-registration-form input[name="user_password"] {
    -webkit-text-security: none !important;
    text-security: none !important;
    color: #333 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== BASE STYLES ===== */
.b2b-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.b2b-dashboard h1,
.b2b-dashboard h2,
.b2b-dashboard h3 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.b2b-dashboard h1 {
    font-size: 2em;
    border-bottom: 2px solid #2196f3;
    padding-bottom: 10px;
}

.b2b-dashboard h2 {
    font-size: 1.5em;
    color: #2196f3;
}

.b2b-dashboard h3 {
    font-size: 1.2em;
    color: #666;
}

/* ===== STATISTICS GRID ===== */
.b2b-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.b2b-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.b2b-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.b2b-stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #2196f3;
    margin-bottom: 10px;
    line-height: 1;
}

.b2b-stat-label {
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== BUTTONS ===== */
.b2b-quote-button,
.b2b-inquiry-button,
.b2b-btn,
.b2b-admin-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    margin: 5px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.b2b-quote-button:hover,
.b2b-inquiry-button:hover,
.b2b-btn:hover,
.b2b-admin-btn:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.b2b-btn-success {
    background: #4caf50;
}

.b2b-btn-success:hover {
    background: #45a049;
}

.b2b-btn-danger {
    background: #f44336;
}

.b2b-btn-danger:hover {
    background: #da190b;
}

.b2b-btn-warning {
    background: #ff9800;
}

.b2b-btn-warning:hover {
    background: #f57c00;
}

.b2b-btn-secondary {
    background: #6c757d;
}

.b2b-btn-secondary:hover {
    background: #5a6268;
}

/* ===== FORMS ===== */
.b2b-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.b2b-form h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.b2b-form input,
.b2b-form select,
.b2b-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.b2b-form input:focus,
.b2b-form select:focus,
.b2b-form textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.b2b-form input.error,
.b2b-form select.error,
.b2b-form textarea.error {
    border-color: #f44336;
}

.b2b-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.b2b-form button {
    background: #2196f3;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.b2b-form button:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

.b2b-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ===== TABLES ===== */
.b2b-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.b2b-table th,
.b2b-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.b2b-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.b2b-table tr:hover {
    background: #f8f9fa;
}

.b2b-table tr:last-child td {
    border-bottom: none;
}

/* ===== MESSAGES ===== */
.b2b-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.b2b-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.b2b-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ===== CARDS ===== */
.b2b-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.b2b-card-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.b2b-card-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* ===== NAVIGATION ===== */
.b2b-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    margin-bottom: 30px;
}

.b2b-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.b2b-nav li {
    margin: 0;
}

.b2b-nav a {
    display: block;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.b2b-nav a:hover,
.b2b-nav a.active {
    color: #2196f3;
    border-bottom-color: #2196f3;
    background: #f8f9fa;
}

/* ===== BADGES ===== */
.b2b-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.b2b-badge-success {
    background: #d4edda;
    color: #155724;
}

.b2b-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.b2b-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.b2b-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* ===== LOADING STATES ===== */
.b2b-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.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 #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .b2b-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .b2b-dashboard {
        padding: 10px;
    }
    
    .b2b-form {
        padding: 20px;
        margin: 10px;
    }
    
    .b2b-table {
        font-size: 0.9em;
    }
    
    .b2b-table th,
    .b2b-table td {
        padding: 10px;
    }
    
    .b2b-nav ul {
        flex-direction: column;
    }
    
    .b2b-nav a {
        border-bottom: 1px solid #e0e0e0;
        border-right: none;
    }
    
    .b2b-nav a:hover,
    .b2b-nav a.active {
        border-bottom-color: #e0e0e0;
        border-right: 3px solid #2196f3;
    }
}

@media (max-width: 480px) {
    .b2b-dashboard h1 {
        font-size: 1.5em;
    }
    
    .b2b-stat-number {
        font-size: 2em;
    }
    
    .b2b-btn,
    .b2b-admin-btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .b2b-btn,
    .b2b-admin-btn,
    .b2b-nav {
        display: none;
    }
    
    .b2b-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .b2b-table {
        box-shadow: none;
    }
}
.b2b-tiered-pricing h4 {
    margin-bottom: 12px !important;
}
.b2b-role-pricing h4 {
    margin-bottom: 12px !important;
}

/* B2B Commerce Pro - Professional Admin UI */

/* ===== MAIN LAYOUT ===== */
.b2b-commerce-pro-admin-wrapper {
    display: flex;
    min-height: calc(100vh - 32px);
    background: #f0f0f1;
    margin: -20px -20px 0 -20px;
}

/* ===== SIDEBAR ===== */
.b2b-commerce-pro-sidebar {
    width: 280px;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    color: #fff;
    padding: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.b2b-commerce-pro-logo {
    padding: 32px 24px 24px 24px;
    text-align: center;
    border-bottom: 1px solid #404040;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
}

.b2b-commerce-pro-logo h1 {
    color: #fff;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.b2b-commerce-pro-logo .dashicons {
    font-size: 2.5em;
    color: #ffd700;
    margin-bottom: 8px;
    display: block;
}

.b2b-commerce-pro-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.b2b-commerce-pro-menu li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #404040;
}

.b2b-commerce-pro-menu li a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.b2b-commerce-pro-menu li a:hover,
.b2b-commerce-pro-menu li a.active {
    background: linear-gradient(90deg, #007cba 0%, #005a87 100%);
    color: #fff;
    transform: translateX(4px);
}

.b2b-commerce-pro-menu li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffd700;
}

.b2b-commerce-pro-menu .dashicons {
    margin-right: 12px;
    font-size: 1.3em;
    width: 20px;
    text-align: center;
}

.b2b-commerce-pro-menu .menu-badge {
    background: #ff4444;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: auto;
    font-weight: bold;
}

/* ===== MAIN CONTENT ===== */
.b2b-commerce-pro-content {
    flex: 1;
    padding: 40px;
    background: #f0f0f1;
    overflow-y: auto;
}

.b2b-commerce-pro-header {
    background: #fff;
    padding: 32px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 32px;
    border-left: 4px solid #007cba;
}

.b2b-commerce-pro-header h1 {
    font-size: 2.2em;
    font-weight: 700;
    color: #1e1e1e;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
}

.b2b-commerce-pro-header h1 .dashicons {
    margin-right: 12px;
    color: #007cba;
    font-size: 1.2em;
}

.b2b-commerce-pro-header p {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

/* ===== CARDS ===== */
.b2b-commerce-pro-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.b2b-commerce-pro-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.b2b-commerce-pro-card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f1;
    display: flex;
    align-items: center;
}

.b2b-commerce-pro-card-title .dashicons {
    margin-right: 12px;
    color: #007cba;
    font-size: 1.2em;
}

/* ===== STATS CARDS ===== */
.b2b-commerce-pro-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.b2b-commerce-pro-stat-card {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,123,186,0.3);
    transition: all 0.3s ease;
}

.b2b-commerce-pro-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,123,186,0.4);
}

.b2b-commerce-pro-stat-card h3 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.b2b-commerce-pro-stat-card p {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

/* ===== FORMS ===== */
.b2b-commerce-pro-form {
    max-width: 100%;
}

.b2b-commerce-pro-form-group {
    margin-bottom: 24px;
}

.b2b-commerce-pro-form-group label {
    display: block;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.b2b-commerce-pro-form-group input[type="text"],
.b2b-commerce-pro-form-group input[type="email"],
.b2b-commerce-pro-form-group input[type="password"],
.b2b-commerce-pro-form-group select,
.b2b-commerce-pro-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #fafafa;
}

.b2b-commerce-pro-form-group input:focus,
.b2b-commerce-pro-form-group select:focus,
.b2b-commerce-pro-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,123,186,0.1);
}

.b2b-commerce-pro-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== TOGGLE SWITCHES ===== */
.b2b-commerce-pro-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.b2b-commerce-pro-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.b2b-commerce-pro-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.b2b-commerce-pro-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.b2b-commerce-pro-toggle input:checked + .b2b-commerce-pro-toggle-slider {
    background-color: #007cba;
}

.b2b-commerce-pro-toggle input:checked + .b2b-commerce-pro-toggle-slider:before {
    transform: translateX(26px);
}

/* ===== BUTTONS ===== */
.b2b-commerce-pro-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
    min-width: 120px;
}

.b2b-commerce-pro-btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,123,186,0.3);
}

.b2b-commerce-pro-btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,186,0.4);
}

.b2b-commerce-pro-btn-secondary {
    background: #f8f9fa;
    color: #1e1e1e;
    border: 2px solid #e0e0e0;
}

.b2b-commerce-pro-btn-secondary:hover {
    background: #e9ecef;
    border-color: #007cba;
    color: #007cba;
}

.b2b-commerce-pro-btn .dashicons {
    margin-right: 8px;
}

/* ===== TABLES ===== */
.b2b-commerce-pro-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.b2b-commerce-pro-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1e1e1e;
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    font-size: 1.1em;
}

.b2b-commerce-pro-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f1;
    color: #333;
}

.b2b-commerce-pro-table tr:hover {
    background: #f8f9fa;
}

.b2b-commerce-pro-table tr:last-child td {
    border-bottom: none;
}

/* ===== STATUS BADGES ===== */
.b2b-commerce-pro-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-commerce-pro-badge-success {
    background: #d4edda;
    color: #155724;
}

.b2b-commerce-pro-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.b2b-commerce-pro-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.b2b-commerce-pro-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* ===== ALERTS ===== */
.b2b-commerce-pro-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
}

.b2b-commerce-pro-alert .dashicons {
    margin-right: 12px;
    font-size: 1.2em;
}

.b2b-commerce-pro-alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.b2b-commerce-pro-alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.b2b-commerce-pro-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.b2b-commerce-pro-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .b2b-commerce-pro-admin-wrapper {
        flex-direction: column;
    }
    
    .b2b-commerce-pro-sidebar {
        width: 100%;
        height: auto;
    }
    
    .b2b-commerce-pro-content {
        padding: 20px;
    }
    
    .b2b-commerce-pro-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITY CLASSES ===== */
.b2b-commerce-pro-text-center { text-align: center; }
.b2b-commerce-pro-text-right { text-align: right; }
.b2b-commerce-pro-mb-0 { margin-bottom: 0; }
.b2b-commerce-pro-mb-1 { margin-bottom: 8px; }
.b2b-commerce-pro-mb-2 { margin-bottom: 16px; }
.b2b-commerce-pro-mb-3 { margin-bottom: 24px; }
.b2b-commerce-pro-mt-0 { margin-top: 0; }
.b2b-commerce-pro-mt-1 { margin-top: 8px; }
.b2b-commerce-pro-mt-2 { margin-top: 16px; }
.b2b-commerce-pro-mt-3 { margin-top: 24px; }

/* ===== FRONTEND STYLES ===== */
.b2b-registration-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.b2b-registration-form h2 {
    color: #23272f;
    margin-bottom: 20px;
    text-align: center;
}

.b2b-registration-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.b2b-registration-form .form-group {
    display: flex;
    flex-direction: column;
}

.b2b-registration-form label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #23272f;
}

.b2b-registration-form input,
.b2b-registration-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    width: 100% !important;
}

.b2b-registration-form input:focus,
.b2b-registration-form select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.b2b-registration-form button {
    background: #007cba;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.b2b-registration-form button:hover {
    background: #005a87;
}

.b2b-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

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

/* B2B Dashboard Styles */
.b2b-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.b2b-dashboard h2 {
    color: #23272f;
    margin-bottom: 30px;
}

.b2b-dashboard-links {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.b2b-dashboard-links li a {
    display: block;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #23272f;
    text-align: center;
    transition: all 0.3s ease;
}

.b2b-dashboard-links li a:hover {
    background: #007cba;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Order History Table - Professional Design */
.b2b-order-history {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.b2b-order-history th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: #334155;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.b2b-order-history th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, #cbd5e1, transparent);
}

.b2b-order-history td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.b2b-order-history tr {
    transition: all 0.2s ease;
}

.b2b-order-history tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
}

.b2b-order-history tr:hover td {
    color: #1e293b;
}

/* Bulk Order Styles */
.b2b-bulk-order {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.b2b-bulk-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.b2b-product-search {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.b2b-search-list {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.b2b-search-list li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.b2b-search-list li:hover {
    background: #f8f9fa;
}

.b2b-search-list li:last-child {
    border-bottom: none;
}

/* B2B Buttons Container - Horizontal Layout */
.b2b-buttons-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    position: relative;
}

.b2b-buttons-container .button {
    flex: 1;
    min-width: 150px;
    margin: 0;
}

/* Prevent forms from affecting button layout */
.b2b-quote-form,
.b2b-inquiry-form {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    margin-top: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Quote Request Styles */
.b2b-quote-request {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.b2b-quote-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.b2b-quote-btn:hover {
    background: #005a87;
}

/* Product Inquiry Button Styles */
.b2b-inquiry-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.b2b-inquiry-btn:hover {
    background: #005a87;
}

.b2b-quote-form {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.b2b-quote-form h4 {
    margin-top: 0;
    color: #23272f;
}

.b2b-quote-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.b2b-quote-form input,
.b2b-quote-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.b2b-quote-form textarea {
    height: 80px;
    resize: vertical;
}

/* Bulk Pricing Calculator Styles */
.b2b-bulk-calculator {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.b2b-bulk-calculator h4 {
    margin-top: 0;
    color: #23272f;
}

.b2b-bulk-calculator label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.b2b-bulk-calculator input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.b2b-bulk-calculator .bulk-price-display {
    color: #007cba;
    font-weight: 600;
}

.calculate-bulk-price {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.calculate-bulk-price:hover {
    background: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .b2b-registration-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .b2b-bulk-row {
        grid-template-columns: 1fr;
    }
    
    .b2b-dashboard-links {
        grid-template-columns: 1fr;
    }
    
    .b2b-quote-form input,
    .b2b-quote-form textarea {
        width: 100%;
    }
    
    .b2b-bulk-calculator input {
        width: 100%;
    }
} 

/* B2B Commerce Pro Styles */

/* Discount Badge */
.b2b-discount-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 5px;
}

/* Bulk Pricing Calculator */
.b2b-bulk-calculator {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.b2b-bulk-calculator h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.1em;
}

.b2b-bulk-calculator input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.b2b-bulk-calculator .calculate-bulk-price {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
}

.b2b-bulk-calculator .calculate-bulk-price:hover {
    background: #005a87;
}

/* Quote Request */
.b2b-quote-request {
    margin: 15px 0;
}

.b2b-quote-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
}

.b2b-quote-btn:hover {
    background: #218838;
}

/* Product Inquiry Button Styles */
.b2b-inquiry-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
}

.b2b-inquiry-btn:hover {
    background: #218838;
}

/* Product Inquiry Form Styles */
.b2b-inquiry-form {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.b2b-inquiry-form h4 {
    margin-top: 0;
    color: #23272f;
}

.b2b-inquiry-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.b2b-inquiry-form input,
.b2b-inquiry-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.b2b-inquiry-form textarea {
    height: 80px;
    resize: vertical;
}

.b2b-tiered-pricing h4 {
    margin-bottom: 12px;
}

.b2b-role-pricing h4 {
    margin-bottom: 12px;
}

.b2b-bulk-calculator h4 {
    margin-bottom: 12px;
}

button.button.calculate-bulk-price {
    margin-top: 16px;
}


.submit-inquiry {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
}

.submit-inquiry:hover {
    background: #005a87;
}

.cancel-inquiry {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
}

.cancel-inquiry:hover {
    background: #545b62;
}

.b2b-quote-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
}

.b2b-quote-form h4 {
    margin-top: 0;
    color: #333;
}

.b2b-quote-form input,
.b2b-quote-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 10px;
}

.b2b-quote-form textarea {
    height: 80px;
    resize: vertical;
}

.submit-quote {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 5px;
}

.submit-quote:hover {
    background: #005a87;
}

.cancel-quote {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 5px;
}

.cancel-quote:hover {
    background: #545b62;
}

/* Form button container for better spacing */
.b2b-form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.b2b-form-buttons .submit-quote,
.b2b-form-buttons .cancel-quote,
.b2b-form-buttons .submit-inquiry,
.b2b-form-buttons .cancel-inquiry {
    margin: 0;
    flex: 1;
}

/* Admin Styles */
.b2b-admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.b2b-admin-header h1 {
    margin: 0;
    font-size: 2em;
}

.b2b-admin-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

.b2b-admin-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.b2b-admin-card-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.b2b-admin-form {
    max-width: 600px;
}

.b2b-admin-form .form-table th {
    width: 200px;
    padding: 15px 10px 15px 0;
}

.b2b-admin-form input[type="text"],
.b2b-admin-form input[type="number"],
.b2b-admin-form input[type="email"],
.b2b-admin-form select,
.b2b-admin-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.b2b-admin-form input[type="text"]:focus,
.b2b-admin-form input[type="number"]:focus,
.b2b-admin-form input[type="email"]:focus,
.b2b-admin-form select:focus,
.b2b-admin-form textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

.b2b-admin-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 5px;
}

.b2b-admin-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.b2b-admin-btn-danger {
    background: #dc3545;
}

.b2b-admin-btn-danger:hover {
    background: #c82333;
}

.b2b-admin-btn-success {
    background: #28a745;
}

.b2b-admin-btn-success:hover {
    background: #218838;
}

/* Stats Cards */
.b2b-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.b2b-stat-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.b2b-stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

.b2b-stat-label {
    color: #666;
    font-size: 1.1em;
}

/* Tables */
.b2b-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.b2b-table th,
.b2b-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.b2b-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.b2b-table tr:hover {
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .b2b-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .b2b-admin-form .form-table th {
        width: 100%;
        display: block;
        padding: 10px 0 5px 0;
    }
    
    .b2b-admin-form .form-table td {
        display: block;
        padding: 0 0 15px 0;
    }
    
    .b2b-table {
        font-size: 14px;
    }
    
    .b2b-table th,
    .b2b-table td {
        padding: 8px;
    }
} 

/* ===== MODAL STYLES ===== */
.b2b-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

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

.b2b-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.b2b-modal-close:hover,
.b2b-modal-close:focus {
    color: #000;
    text-decoration: none;
}

.b2b-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

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

.b2b-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
}

.b2b-modal textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

.b2b-modal button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.b2b-modal button:hover {
    background: #005a87;
}

/* ===== INQUIRY BUTTON STYLES ===== */
.b2b-respond-btn,
.b2b-close-btn,
.b2b-view-response-btn,
.b2b-delete-btn {
    display: block !important;
    background: #007cba !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin: 3px 0 !important;
    line-height: 1.2 !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.b2b-respond-btn {
    background: #007cba !important;
}

.b2b-respond-btn:hover {
    background: #005a87 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.b2b-close-btn {
    background: #dc3545 !important;
}

.b2b-close-btn:hover {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.b2b-view-response-btn {
    background: #17a2b8 !important;
}

.b2b-view-response-btn:hover {
    background: #138496 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.b2b-delete-btn {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin: 3px 0 !important;
    line-height: 1.2 !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.b2b-delete-btn:hover {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* ===== ACTIONS COLUMN STYLING ===== */
.b2b-admin-table td:last-child {
    white-space: nowrap !important;
    text-align: center !important;
    vertical-align: middle !important;
    min-width: 120px !important;
    max-width: 140px !important;
}

.b2b-admin-table .actions-cell {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 6px !important;
}

/* ===== MESSAGE COLUMN STYLING ===== */
.b2b-admin-table td:nth-child(4) {
    max-width: 400px !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

.b2b-admin-table td:nth-child(4) .message-content {
    max-height: none !important;
    overflow: visible !important;
    line-height: 1.4 !important;
    padding: 4px 0 !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .b2b-respond-btn,
    .b2b-close-btn,
    .b2b-view-response-btn,
    .b2b-delete-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
        width: 100% !important;
    }
    
    .b2b-admin-table .actions-cell {
        gap: 3px !important;
        padding: 6px 4px !important;
    }
    
    .b2b-admin-table td:last-child {
        min-width: 100px !important;
    }
    
    .b2b-admin-table td:nth-child(4) {
        max-width: 250px !important;
    }
}

/* ===== NAVIGATION BADGE STYLES ===== */
.b2b-nav-badge {
    background: #ff4444;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: auto;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.b2b-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== STATUS BADGE STYLES ===== */
.b2b-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    margin: 2px 3px;
    text-align: center;
    min-width: 60px;
}

.b2b-status-responded {
    background: #28a745;
}

.b2b-status-closed {
    background: #6c757d;
}

.b2b-status-pending {
    background: #ffc107;
    color: #212529;
}

/* Modern B2B Dashboard Styles - Premium Design */

/* Dashboard Container - Professional Corporate Style */
.b2b-dashboard-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    position: relative;
}

/* Header Section - Professional Dark Design */
.b2b-dashboard-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: none;
}

.b2b-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="20" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="80" cy="80" r="0.8" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.b2b-header-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.b2b-dashboard-header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.b2b-dashboard-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.b2b-welcome-section {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.b2b-welcome-icon {
    background: #3498db;
    border-radius: 12px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.b2b-welcome-icon:hover {
    transform: scale(1.05);
    background: #2980b9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.b2b-welcome-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.b2b-welcome-text h2 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-shadow: none;
    position: relative;
}

.b2b-welcome-text p {
    margin: 8px 0 0 0;
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.4;
    color: #ecf0f1;
}

.b2b-welcome-stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
}

.b2b-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}



.b2b-stat-number {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffffff;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.b2b-stat-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    position: relative;
    z-index: 2;
}

.b2b-role-badge {
    background: #27ae60;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    color: white;
    overflow: hidden;
}

.b2b-role-badge:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Quick Actions Section - Premium Design */
.b2b-quick-actions {
    margin-bottom: 48px;
}

.b2b-section-title {
    margin-bottom: 32px;
    position: relative;
}



.b2b-section-title h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #2c3e50;
    padding-left: 0;
    line-height: 1.2;
    text-shadow: none;
}

.b2b-section-title p {
    font-size: 1.1em;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.b2b-action-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.b2b-action-card {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.b2b-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}



/* Card Color Variants - White backgrounds with colored icons */
.b2b-card-primary .b2b-card-icon {
    background: #e3f2fd;
}

.b2b-card-primary .b2b-card-icon svg path {
    fill: #1976d2;
}

.b2b-card-success .b2b-card-icon {
    background: #e8f5e8;
}

.b2b-card-success .b2b-card-icon svg path {
    fill: #388e3c;
}

.b2b-card-warning .b2b-card-icon {
    background: #fff3e0;
}

.b2b-card-warning .b2b-card-icon svg path {
    fill: #f57c00;
}

.b2b-card-info .b2b-card-icon {
    background: #f3e5f5;
}

.b2b-card-info .b2b-card-icon svg path {
    fill: #7b1fa2;
}

.b2b-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    flex-shrink: 0;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.b2b-card-icon svg {
    transition: all 0.4s ease;
}
.b2b-card-icon svg path {
    fill: #64748b;
}

.b2b-action-card:hover .b2b-card-icon {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.b2b-card-primary:hover .b2b-card-icon {
    background: #bbdefb;
}

.b2b-card-success:hover .b2b-card-icon {
    background: #c8e6c9;
}

.b2b-card-warning:hover .b2b-card-icon {
    background: #ffcc02;
}

.b2b-card-info:hover .b2b-card-icon {
    background: #e1bee7;
}

.b2b-card-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.b2b-card-content h4 {
    margin: 0 0 6px 0;
    font-size: 1.2em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.b2b-card-content p {
    margin: 0;
    font-size: 0.9em;
    color: #64748b;
    line-height: 1.4;
    font-weight: 500;
}

.b2b-card-arrow {
    color: #64748b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    opacity: 0.8;
    transform: scale(0.9);
}

.b2b-action-card:hover .b2b-card-arrow {
    opacity: 1;
    color: #2c3e50;
    transform: translateX(6px);
}

/* Dashboard Sections - Premium Design */
.b2b-dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 36px;
}

.b2b-section-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    transform: translateY(0);
}

a.b2b-csv-template {
    text-decoration: none !IMPORTANT;
}



.b2b-section-header {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 24px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}
.b2b-action-cards a{
    text-decoration: none !IMPORTANT;
}

.b2b-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.b2b-dashboard-sections svg path{
    fill:#fff !important;
}

.b2b-section-card:hover .b2b-section-header::before {
    opacity: 1;
}

.b2b-section-actions {
    display: flex;
    gap: 12px;
}

.b2b-view-all-btn {
    background: #3498db;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.b2b-view-all-btn:hover {
    background: #2980b9;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.b2b-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3498db;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    border: none;
    transition: all 0.3s ease;
}

.b2b-section-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.b2b-section-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    z-index: 2;
    letter-spacing: 0.3px;
}

.b2b-section-content {
    padding: 32px;
}

/* Order History Table - Premium Design */
.b2b-order-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    background: #ffffff;
    padding: 0;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.b2b-order-history-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    border-radius: 0;
    overflow: hidden;
    border: none;
}

.b2b-order-history-modern th {
    background: #2c3e50;
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid #34495e;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.b2b-order-history-modern th::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: #34495e;
}

.b2b-order-history-modern th:last-child::after {
    display: none;
}

.b2b-order-history-modern td {
    padding: 16px 20px;
    border-bottom: 1px solid #e1e8ed;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    vertical-align: middle;
    white-space: nowrap;
}

.b2b-order-history-modern tr {
    transition: all 0.3s ease;
}

.b2b-order-history-modern tr:hover {
    background: #f8f9fa;
    transform: none;
}

.b2b-order-history-modern tr:hover td {
    color: #2c3e50;
    font-weight: 600;
}

/* Order Details Styling */
.b2b-order-number {
    font-weight: 700;
    color: #3B82F6;
    font-size: 1.1em;
}

.b2b-order-date {
    color: #64748b;
    font-weight: 500;
}

.b2b-order-total {
    font-weight: 700;
    color: #10B981;
    font-size: 1.1em;
}

/* Professional Status Badges */
.b2b-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.b2b-status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.b2b-status-badge:hover::before {
    opacity: 1;
}

.b2b-status-completed {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.b2b-status-processing {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.b2b-status-pending {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.b2b-status-cancelled {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Professional Invoice Buttons */
.b2b-invoice-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.b2b-invoice-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.b2b-invoice-link:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.b2b-invoice-link:hover::before {
    left: 100%;
}

/* Empty State - Simplified */
.b2b-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

.b2b-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #999999;
}

.b2b-empty-state h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.b2b-empty-state p {
    margin: 0 0 24px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
}

.b2b-empty-action {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.b2b-empty-action:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Account Form - Simplified */
.b2b-account-form-modern {
    max-width: 500px;
}

.b2b-form-row {
    margin-bottom: 20px;
}

.b2b-form-group {
    display: flex;
    flex-direction: column;
}

.b2b-form-group label {
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    font-size: 14px;
}

.b2b-form-group input {
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    color: #333333;
}

.b2b-form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.b2b-form-group input::placeholder {
    color: #999999;
}

.b2b-form-actions {
    margin-top: 30px;
}

.b2b-submit-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.b2b-submit-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Success Message - Simplified */
.b2b-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 16px;
    border-radius: 6px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.b2b-success-icon {
    font-size: 20px;
}

.b2b-success-message p {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive Design - Simplified */
@media (max-width: 768px) {
    .b2b-dashboard-modern {
        padding: 15px;
    }
    
    .b2b-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .b2b-action-cards {
        grid-template-columns: 1fr;
    }
    
    .b2b-dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .b2b-order-history-modern {
        font-size: 12px;
    }
    
    .b2b-order-history-modern th,
    .b2b-order-history-modern td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .b2b-welcome-section {
        flex-direction: column;
        text-align: center;
    }
    
    .b2b-action-card {
        flex-direction: column;
        text-align: center;
    }
    
    .b2b-card-arrow {
        display: none;
    }
} 

/* Modern Bulk Order Styles - Simplified */

/* Bulk Order Container */
.b2b-bulk-order-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
}

/* Header Section - Simplified */
.b2b-bulk-header {
    background: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.b2b-bulk-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.b2b-bulk-icon {
    font-size: 40px;
    background: #007bff;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-bulk-title h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333333;
}

.b2b-bulk-title p {
    margin: 0;
    font-size: 14px;
    color: #666666;
}

.b2b-bulk-stats {
    display: flex;
    gap: 20px;
}

.b2b-stat-item {
    text-align: center;
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.b2b-stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #007bff;
}

.b2b-stat-label {
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Main Content */
.b2b-bulk-content {
    display: grid;
    gap: 20px;
}

/* Section Cards - Improved */
.b2b-section-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}


.b2b-section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 24px 28px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 16px;
}

.b2b-section-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.b2b-section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-section-content {
    padding: 24px;
}

/* Product List - Improved Design */
.b2b-product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.b2b-product-row {
    display: grid;
    grid-template-columns: 1fr 100px 120px 60px;
    gap: 20px;
    align-items: center;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;
}

.b2b-product-row:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.b2b-product-row:first-child {
    background: #f8f9fa;
    border-color: #e9ecef;
    border-style: solid;
}

.b2b-product-search-wrapper {
    position: relative;
}

.b2b-product-search {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #333333;
    transition: all 0.2s ease;
    font-weight: 500;
}

.b2b-product-search:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: #ffffff;
}

.b2b-product-search::placeholder {
    color: #999999;
    font-weight: 400;
}

.b2b-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 4px;
}

.b2b-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.b2b-search-list li {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.b2b-search-list li:hover {
    background: #f8f9fa;
    color: #007bff;
}

.b2b-search-list li:last-child {
    border-bottom: none;
}

.b2b-product-qty-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.b2b-product-qty-wrapper label {
    font-size: 12px;
    font-weight: 700;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.b2b-qty-input {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    background: white;
    color: #333333;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 80px;
}

.b2b-qty-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}



.b2b-product-price-wrapper {
    text-align: center;
    font-weight: 700;
    color: #28a745;
    font-size: 16px;
    padding: 12px 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-product-price-wrapper:empty::before {
    content: "-";
    color: #999999;
    font-weight: 400;
}

.b2b-product-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.b2b-remove-row {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    position: relative;
    z-index: 10;
    /* Make it more obvious it's clickable */
    border: 2px solid #dc3545;
}

.b2b-remove-row:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    border-color: #c82333;
}

.b2b-remove-row:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.5);
}

.b2b-remove-row:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Add Product Section - Improved */
.b2b-add-product-section {
    margin-top: 24px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.b2b-add-product-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-add-product-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.b2b-add-icon {
    font-size: 18px;
    font-weight: bold;
}

/* CSV Import Section - Improved */
.b2b-csv-import {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.b2b-csv-info {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.b2b-csv-info p {
    margin: 0 0 16px 0;
    color: #333333;
    line-height: 1.6;
    font-size: 15px;
    font-weight: 500;
}

.b2b-csv-template {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-csv-template:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.b2b-file-upload {
    text-align: center;
    margin-top: 16px;
}

.b2b-file-input {
    display: none;
}

.b2b-file-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 30px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-width: 300px;
}



.b2b-upload-icon {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 4px;
}

.b2b-file-label span {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Order Summary - Improved */
.b2b-order-summary {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.b2b-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}



.b2b-summary-label {
    font-weight: 700;
    color: #333333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-summary-value {
    font-weight: 800;
    color: #007bff;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Bulk Actions - Improved */
.b2b-bulk-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.b2b-add-to-cart-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.b2b-cart-icon {
    font-size: 18px;
    font-weight: bold;
}

.b2b-clear-all-btn {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-clear-all-btn:hover {
    background: linear-gradient(135deg, #545b62 0%, #495057 100%);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

/* Response Messages - Simplified */
.b2b-bulk-order-response {
    margin-top: 16px;
}

.b2b-bulk-order-response .notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 0;
    font-size: 14px;
}

.b2b-bulk-order-response .notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.b2b-bulk-order-response .notice-error {
    background: #f8d7da;
    border: 1px solid #feb2b2;
    color: #742a2a;
}

/* Responsive Design - Improved */
@media (max-width: 768px) {
    .b2b-bulk-order-modern {
        padding: 15px;
    }
    
    .b2b-bulk-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .b2b-bulk-stats {
        gap: 12px;
    }
    
    .b2b-product-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .b2b-product-qty-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        justify-content: space-between;
    }
    
    .b2b-qty-input {
        max-width: 100px;
    }
    
    .b2b-product-price-wrapper {
        text-align: center;
        justify-content: center;
    }
    
    .b2b-product-actions {
        justify-content: center;
    }
    
    .b2b-bulk-actions {
        flex-direction: column;
    }
    
    .b2b-add-to-cart-btn,
    .b2b-clear-all-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .b2b-bulk-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .b2b-bulk-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .b2b-stat-item {
        padding: 12px 16px;
    }
} 

/* Product List Display Styles */
.b2b-product-list-display {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.b2b-product-list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.b2b-product-list-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.b2b-product-list-item:hover {
    background-color: #f8f9fa;
}

.b2b-product-list-item:last-child {
    border-bottom: none;
}

.b2b-product-sku {
    font-weight: 600;
    color: #495057;
}

.b2b-product-qty {
    text-align: center;
    font-weight: 600;
    color: #28a745;
}

.b2b-product-price {
    text-align: right;
    font-weight: 700;
    color: #007bff;
}

/* Status Message Styles */
.b2b-status-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-weight: 500;
}

.b2b-status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

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

/* Professional Order Status and Invoice Button Styles */
.b2b-order-status {
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.b2b-order-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.b2b-order-status:hover::before {
    opacity: 1;
}

.b2b-order-status.completed {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.b2b-order-status.pending {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.b2b-order-status.processing {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.b2b-order-status.cancelled {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.b2b-invoice-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.b2b-invoice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.b2b-invoice-btn:hover::before {
    left: 100%;
}

.b2b-invoice-btn:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Responsive Design for Dashboard */
@media (max-width: 1200px) {
    .b2b-action-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .b2b-dashboard-modern {
        padding: 16px;
    }
    
    .b2b-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }
    
    .b2b-welcome-text h2 {
        font-size: 2em;
    }
    
    .b2b-action-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .b2b-dashboard-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .b2b-section-card {
        border-radius: 16px;
    }
    
    .b2b-order-history {
        font-size: 0.9em;
    }
    
    .b2b-order-history th,
    .b2b-order-history td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .b2b-dashboard-header {
        padding: 20px;
    }
    
    .b2b-welcome-text h2 {
        font-size: 1.8em;
    }
    
    .b2b-welcome-text p {
        font-size: 1.1em;
    }
    
    .b2b-action-card {
        padding: 20px;
        gap: 16px;
    }
    
    .b2b-card-icon {
        width: 56px;
        height: 56px;
    }
}

/* CLEAN PASSWORD TOGGLE */
.password-toggle {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
}

.password-toggle:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 80px !important;
}

