/**
 * Styles des pages B2B gérées en interne (non désactivables par le thème).
 * Pages concernées : Connexion, Valider la commande, Commandes, Utilisateurs, Dashboard.
 *
 * Ce fichier est chargé indépendamment du filtre 'catalogue_dehon_load_css'.
 */

/* ========================================
   LOGIN
   ======================================== */

.b2b-login-page {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
}

.b2b-login-page h1 {
    font-size: 2.5em;
    font-weight: 400;
    text-align: center;
    margin: 0 0 50px;
    letter-spacing: -0.02em;
}

.b2b-login-form {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.b2b-login-form h2 {
    margin: 0 0 30px;
    font-size: 1.8em;
    font-weight: 400;
    text-align: left;
    color: #333;
}

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

.b2b-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #333;
    font-size: 0.95em;
}

.b2b-login-form label .required {
    color: #c00;
}

.b2b-login-form input[type="text"],
.b2b-login-form input[type="password"],
.b2b-login-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 1em;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.b2b-login-form input[type="text"]:focus,
.b2b-login-form input[type="password"]:focus,
.b2b-login-form input[type="email"]:focus {
    outline: none;
    border-color: #333;
}

.b2b-login-form .remember-row {
    margin-top: 25px;
}

.b2b-login-form .remember-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.b2b-login-form .remember-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.b2b-login-form .login-submit {
    display: inline-block;
    padding: 14px 30px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 15px;
}

.b2b-login-form .login-submit:hover {
    background: #333;
}

.b2b-login-form .login-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

.b2b-login-form .forgot-password {
    display: inline-block;
    margin-top: 0;
}

.b2b-login-form .forgot-password a {
    color: #333;
    text-decoration: underline;
    font-size: 0.9em;
}

.b2b-login-form .forgot-password a:hover {
    color: #666;
}

.b2b-login-form .login-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

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

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

.b2b-login-form.b2b-logged-in {
    text-align: center;
}

.b2b-login-form .logged-in-message {
    margin-bottom: 25px;
}

.b2b-login-form .logged-in-message p {
    margin: 5px 0;
    color: #333;
}

.b2b-login-form .logged-in-message p:first-child {
    font-size: 1.2em;
    font-weight: 500;
}

.b2b-login-form .logged-in-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.b2b-login-form .logged-in-actions .button {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.b2b-login-form .logged-in-actions .button-primary {
    background: #e67e22;
    color: #fff;
}

.b2b-login-form .logged-in-actions .button-primary:hover {
    background: #d35400;
}

.b2b-login-form .logged-in-actions .button-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.b2b-login-form .logged-in-actions .button-secondary:hover {
    background: #f5f5f5;
}

/* ========================================
   CHECKOUT PAGE
   ======================================== */

.b2b-checkout-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.checkout-breadcrumb {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.checkout-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.checkout-breadcrumb a:hover {
    color: #e67e22;
}

.checkout-breadcrumb .sep {
    margin: 0 6px;
}

.checkout-back-row {
    margin-bottom: 30px;
}

.checkout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 1.4em;
}

.checkout-back-link:hover {
    color: #e67e22;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 960px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-section {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    background: #fff;
}

.checkout-section h2 {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.checkout-section .section-icon {
    display: inline-flex;
    align-items: center;
}

.checkout-section .section-icon svg {
    vertical-align: middle;
}

.checkout-items {
    display: flex;
    flex-direction: column;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.checkout-item-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.checkout-item-image .no-image .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #ccc;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-title {
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-meta {
    font-size: 0.8em;
    color: #888;
    margin-top: 2px;
}

.checkout-item-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-qty-btn {
    width: 30px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 1em;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.checkout-qty-btn:hover {
    background: #e5e5e5;
}

.checkout-qty-input {
    width: 36px;
    height: 32px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
}

.checkout-qty-input::-webkit-outer-spin-button,
.checkout-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.checkout-item-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: #fafafa;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    flex-shrink: 0;
    transition: all 0.2s;
}

.checkout-item-remove:hover {
    background: #fee;
    color: #e74c3c;
}

.checkout-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkout-form-grid .form-row {
    margin-bottom: 0;
}

.checkout-form-grid .form-row-full {
    width: 100%;
}

.checkout-form-grid .form-row-half {
    flex: 1;
    min-width: 140px;
}

.checkout-section label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.checkout-section input[type="text"],
.checkout-section select,
.checkout-section textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.checkout-section input[type="text"]:focus,
.checkout-section select:focus,
.checkout-section textarea:focus {
    border-color: #e67e22;
    outline: none;
}

.checkout-section select {
    appearance: auto;
}

.checkout-section textarea {
    resize: vertical;
}

.checkout-sidebar .checkout-section {
    margin-bottom: 0;
}

.checkout-confirm-area {
    margin-top: 20px;
    padding: 0;
}

.checkout-cgv-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85em;
    color: #555;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: 400 !important;
}

.checkout-cgv-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #e67e22;
}

.checkout-cgv-label a {
    color: #e67e22;
    text-decoration: none;
}

.checkout-cgv-label a:hover {
    text-decoration: underline;
}

.button-confirm-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.button-confirm-order:hover:not(:disabled) {
    background: #d35400;
}

.button-confirm-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-confirm-order svg {
    flex-shrink: 0;
}

.checkout-success {
    text-align: center;
    padding: 80px 40px;
}

.checkout-success svg {
    margin-bottom: 20px;
}

.checkout-success h2 {
    font-size: 1.4em;
    font-weight: 500;
    color: #333;
    margin: 0 0 25px;
}

.checkout-success .button {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
}

.checkout-success .button-primary {
    background: #e67e22;
    color: #fff;
}

.checkout-success .button-primary:hover {
    background: #d35400;
}

@media (max-width: 600px) {
    .checkout-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .checkout-item-info {
        flex: 1 1 calc(100% - 70px);
    }

    .checkout-item-qty {
        margin-left: 65px;
    }
}

/* ========================================
   COMMANDES
   ======================================== */

.b2b-orders-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 32px;
    box-sizing: border-box;
    font-family: "Inter", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: hsl(0, 0%, 9%);
    line-height: 1.5;
}

.b2b-orders-page .b2b-orders-topbar {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e67e22;
    border-radius: 0;
}

.b2b-orders-page .b2b-back-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none !important;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

.b2b-orders-page .b2b-back-btn .b2b-back-arrow {
    font-size: 1.1em;
    line-height: 1;
}

.b2b-orders-page .b2b-back-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
    text-decoration: none !important;
}

.b2b-orders-page .b2b-breadcrumb {
    display: flex !important;
    align-items: center;
    font-size: 0.85em;
    color: #888;
    line-height: 1.4;
    padding-top: 14px;
}

.b2b-orders-page .b2b-breadcrumb a,
.b2b-orders-page .b2b-breadcrumb .b2b-breadcrumb-link {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    color: #888;
    text-decoration: none !important;
}

.b2b-orders-page .b2b-breadcrumb .b2b-breadcrumb-link svg {
    display: inline-block !important;
    vertical-align: middle;
    flex-shrink: 0;
}

.b2b-orders-page .b2b-breadcrumb a:hover,
.b2b-orders-page .b2b-breadcrumb .b2b-breadcrumb-link:hover {
    color: #e67e22;
}

.b2b-orders-page .b2b-breadcrumb-sep {
    margin: 0 6px;
    color: #ccc;
}

.b2b-orders-page .b2b-breadcrumb-current {
    color: #e67e22;
    font-weight: 500;
}

.b2b-orders-page .b2b-orders-subtitle {
    margin: 0 0 20px !important;
    padding: 0 !important;
    font-size: 0.9em;
    color: #666;
    font-weight: 400;
}

.b2b-orders-page .b2b-orders-filter-box {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
    background: #fff;
}

.b2b-orders-page .b2b-orders-filter-header {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.b2b-orders-page .b2b-orders-filter-header svg {
    flex-shrink: 0;
}

.b2b-orders-page .b2b-orders-filter-header span {
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
}

.b2b-orders-page .b2b-orders-filters {
    display: flex !important;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.b2b-orders-page .b2b-orders-filter-group {
    flex: 1;
}

.b2b-orders-page .b2b-orders-filter-group label {
    display: block !important;
    font-size: 0.82em;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px !important;
}

.b2b-orders-page .b2b-orders-filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    background: #fff;
    min-height: 36px;
}

.b2b-orders-page .b2b-orders-filter-group select:focus {
    border-color: #e67e22;
    outline: none;
}

.b2b-orders-page .b2b-orders-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    box-shadow: none !important;
}

.b2b-orders-page .b2b-orders-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff;
}

.b2b-orders-page .b2b-orders-table thead {
    background: #f5f5f5 !important;
}

.b2b-orders-page .b2b-orders-table thead tr {
    background: #f5f5f5 !important;
}

.b2b-orders-page .b2b-orders-table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 0.82em;
    font-weight: 600;
    color: #555 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-left: none !important;
    border-right: none !important;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
}

.b2b-orders-page .b2b-orders-table td {
    padding: 14px 20px;
    font-size: 0.88em;
    color: #444;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    vertical-align: middle;
    background: transparent !important;
}

.b2b-orders-page .b2b-orders-table tbody tr {
    background: #fff !important;
}

.b2b-orders-page .b2b-orders-table tbody tr:last-child td {
    border-bottom: none !important;
}

.b2b-orders-page .b2b-orders-table tbody tr:hover {
    background: #fafafa !important;
}

.b2b-orders-page .b2b-order-ref {
    font-weight: 500;
    color: #333;
}

.b2b-orders-page .b2b-order-detail-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #1a1a2e;
    color: #fff !important;
    border-radius: 4px;
    font-size: 0.82em;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.b2b-orders-page .b2b-order-detail-btn svg {
    flex-shrink: 0;
}

.b2b-orders-page .b2b-order-detail-btn:hover {
    background: #2d2d4e;
    color: #fff !important;
    text-decoration: none !important;
}

.b2b-orders-page .b2b-orders-pagination-wrap {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #eee;
}

.b2b-orders-page .b2b-orders-pagination-info {
    font-size: 0.82em;
    color: #888;
}

.b2b-orders-page .b2b-orders-pagination {
    display: flex !important;
    align-items: center;
    gap: 4px;
}

.b2b-orders-page .b2b-pg-btn {
    padding: 6px 12px;
    font-size: 0.82em;
    color: #555;
    text-decoration: none !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    white-space: nowrap;
}

.b2b-orders-page .b2b-pg-btn:hover {
    background: #f5f5f5;
    color: #333;
    text-decoration: none !important;
}

.b2b-orders-page .b2b-pg-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.b2b-orders-page .b2b-pg-num {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.82em;
    color: #555;
    text-decoration: none !important;
    border-radius: 4px;
    background: #fff;
}

.b2b-orders-page .b2b-pg-num:hover {
    background: #f5f5f5;
    text-decoration: none !important;
}

.b2b-orders-page .b2b-pg-num.active {
    background: #e67e22 !important;
    color: #fff !important;
    font-weight: 600;
}

.b2b-orders-page .b2b-no-results {
    text-align: center;
    padding: 50px 20px;
    color: #888;
    font-size: 0.95em;
    margin: 0;
}

@media (max-width: 768px) {
    .b2b-orders-page {
        padding: 15px;
    }

    .b2b-orders-page .b2b-orders-topbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .b2b-orders-page .b2b-orders-filters {
        flex-direction: column;
        gap: 12px;
    }

    .b2b-orders-page .b2b-orders-card {
        overflow-x: auto;
    }

    .b2b-orders-page .b2b-orders-table th,
    .b2b-orders-page .b2b-orders-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }

    .b2b-orders-page .b2b-orders-pagination-wrap {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ========================================
   ORDER DETAIL
   ======================================== */

.b2b-order-detail-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 32px;
    box-sizing: border-box;
    font-family: "Inter", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: hsl(0, 0%, 9%);
    line-height: 1.5;
}

.b2b-order-detail-page .b2b-orders-topbar {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 0 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e67e22;
    border-radius: 0;
}

.b2b-order-detail-page .b2b-back-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none !important;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

.b2b-order-detail-page .b2b-back-btn .b2b-back-arrow {
    font-size: 1.1em;
    line-height: 1;
}

.b2b-order-detail-page .b2b-back-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
    text-decoration: none !important;
}

.b2b-order-detail-page .b2b-breadcrumb {
    display: flex !important;
    align-items: center;
    font-size: 0.85em;
    color: #888;
    line-height: 1.4;
    flex: 1;
    padding-top: 14px;
}

.b2b-order-detail-page .b2b-breadcrumb a,
.b2b-order-detail-page .b2b-breadcrumb .b2b-breadcrumb-link {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    color: #888;
    text-decoration: none !important;
}

.b2b-order-detail-page .b2b-breadcrumb .b2b-breadcrumb-link svg {
    display: inline-block !important;
    vertical-align: middle;
    flex-shrink: 0;
}

.b2b-order-detail-page .b2b-breadcrumb a:hover,
.b2b-order-detail-page .b2b-breadcrumb .b2b-breadcrumb-link:hover {
    color: #e67e22;
}

.b2b-order-detail-page .b2b-breadcrumb-sep {
    margin: 0 6px;
    color: #ccc;
}

.b2b-order-detail-page .b2b-breadcrumb-current {
    color: #e67e22;
    font-weight: 500;
}

.b2b-order-detail-page .b2b-print-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
}

.b2b-order-detail-page .b2b-print-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.b2b-order-detail-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #e67e22;
    margin: 20px 0 24px !important;
}

.b2b-order-info-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 28px;
    background: #fff;
}

.b2b-order-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
}

.b2b-order-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.b2b-order-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fef2e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.b2b-order-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.b2b-order-info-label {
    font-size: 0.78em;
    color: #888;
    font-weight: 400;
}

.b2b-order-info-value {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

.b2b-order-items-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 28px;
}

.b2b-order-items-title {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    font-weight: 600;
    color: #333;
    padding: 18px 24px;
    margin: 0 !important;
    border-bottom: 1px solid #e0e0e0;
}

.b2b-order-items-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff;
}

.b2b-order-items-table thead {
    background: #f8f8f8 !important;
}

.b2b-order-items-table thead tr {
    background: #f8f8f8 !important;
}

.b2b-order-items-table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 0.8em;
    font-weight: 600;
    color: #666 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
}

.b2b-order-items-table th:last-child {
    text-align: right;
}

.b2b-order-items-table td {
    padding: 14px 20px;
    font-size: 0.88em;
    color: #444;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    vertical-align: middle;
    background: transparent !important;
}

.b2b-order-items-table tbody tr {
    background: #fff !important;
}

.b2b-order-items-table tbody tr:last-child td {
    border-bottom: none !important;
}

.b2b-order-items-table tbody tr:hover {
    background: #fafafa !important;
}

.b2b-item-product-cell {
    min-width: 200px;
}

.b2b-item-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.b2b-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.b2b-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b2b-item-title {
    font-weight: 500;
    color: #333;
    font-size: 0.9em;
}

.b2b-item-qty {
    text-align: right;
    font-weight: 600;
    color: #333;
}

.b2b-order-address-section {
    margin-bottom: 28px;
}

.b2b-order-address-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    background: #fff;
}

.b2b-order-address-title {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 14px !important;
}

.b2b-order-address-card p {
    margin: 0 0 4px !important;
    font-size: 0.9em;
    color: #444;
    line-height: 1.5;
}

.b2b-order-address-card p:last-child {
    margin-bottom: 0 !important;
}

.b2b-address-contact {
    font-weight: 600;
    color: #333 !important;
}

.b2b-order-billing-section {
    margin-bottom: 28px;
}

.b2b-order-billing-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    background: #fff;
}

.b2b-order-billing-title {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 14px !important;
}

.b2b-order-billing-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.b2b-billing-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fef2e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.b2b-billing-content {
    flex: 1;
}

.b2b-billing-label {
    font-size: 0.92em;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px !important;
}

.b2b-billing-desc {
    font-size: 0.82em;
    color: #888;
    margin: 0 !important;
}

.b2b-billing-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: hsl(18, 83%, 42%);
    color: #fff !important;
    border-radius: 4px;
    font-size: 0.82em;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.b2b-billing-btn:hover {
    background: hsl(18, 83%, 46%);
    color: #fff !important;
    text-decoration: none !important;
}

.b2b-order-detail-footer {
    text-align: center;
    padding: 20px 0;
}

.b2b-back-orders-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #171717;
    text-decoration: none !important;
    font-size: 0.9em;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    transition: all 0.15s ease;
}

.b2b-back-orders-link:hover {
    background: #fff;
    border-color: #e0e0e0;
    color: #e67e22;
    text-decoration: none !important;
}

.b2b-back-orders-link:hover span {
    color: #e67e22;
}

@media print {
    .b2b-order-detail-page .b2b-orders-topbar,
    .b2b-order-detail-footer {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .b2b-order-detail-page {
        padding: 15px;
    }

    .b2b-order-detail-page .b2b-orders-topbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .b2b-order-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .b2b-order-items-section {
        overflow-x: auto;
    }

    .b2b-order-items-table th,
    .b2b-order-items-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }

    .b2b-order-billing-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   DASHBOARD
   ======================================== */

.b2b-dashboard-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 32px;
    font-family: "Inter", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: hsl(0, 0%, 9%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

.b2b-dashboard-page > *:first-child {
    margin-top: 0 !important;
}

.b2b-dashboard-page *,
.b2b-dashboard-page *::before,
.b2b-dashboard-page *::after {
    box-sizing: border-box;
}

.b2b-dashboard-page a,
.b2b-dashboard-page a:visited,
.b2b-dashboard-page a:focus,
.b2b-dashboard-page a:active,
.b2b-dashboard-page a:hover {
    text-decoration: none !important;
    outline: none;
}

.b2b-dashboard-page p.b2b-dashboard-label {
    font-size: 14px !important;
    color: hsl(0, 0%, 40%) !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.b2b-dashboard-page h1.b2b-dashboard-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: hsl(0, 0%, 9%) !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em;
}

.b2b-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.b2b-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: hsl(0, 0%, 98%);
    border: 1px solid hsl(0, 0%, 83%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 hsl(0 0% 0% / .1), 0 1px 2px -1px hsl(0 0% 0% / .1);
}

.b2b-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.b2b-stat-card .b2b-stat-label {
    font-size: 13px;
    color: hsl(0, 0%, 40%);
    font-weight: 400;
    line-height: 1.3;
}

.b2b-stat-card .b2b-stat-value {
    font-size: 30px;
    font-weight: 700;
    color: hsl(0, 0%, 9%);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.b2b-stat-card .b2b-stat-value.b2b-stat-value--pending {
    color: hsl(18, 83%, 42%);
}

.b2b-stat-card .b2b-stat-value.b2b-stat-value--completed {
    color: hsl(18, 83%, 42%);
}

.b2b-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.b2b-stat-icon--orders {
    background: hsl(18, 80%, 93%);
    color: hsl(18, 83%, 42%);
}

.b2b-stat-icon--pending {
    background: hsl(18, 80%, 93%);
    color: hsl(18, 83%, 42%);
}

.b2b-stat-icon--completed {
    background: hsl(142, 40%, 90%);
    color: hsl(142, 76%, 36%);
}

.b2b-dashboard-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.b2b-dashboard-orders {
    background: hsl(0, 0%, 98%);
    border: 1px solid hsl(0, 0%, 83%);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 hsl(0 0% 0% / .1), 0 4px 6px -1px hsl(0 0% 0% / .1);
}

.b2b-dashboard-orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.b2b-dashboard-orders .b2b-dashboard-orders-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: hsl(0, 0%, 9%);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.b2b-dashboard-page a.b2b-dashboard-see-all,
.b2b-dashboard-page a.b2b-dashboard-see-all:visited {
    font-size: 14px;
    color: hsl(18, 83%, 42%) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s;
}

.b2b-dashboard-page a.b2b-dashboard-see-all:hover {
    background: hsl(18, 83%, 42%, 0.1);
    text-decoration: none !important;
}

.b2b-dashboard-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.b2b-dashboard-page a.b2b-dashboard-order-row,
.b2b-dashboard-page a.b2b-dashboard-order-row:visited,
.b2b-dashboard-page a.b2b-dashboard-order-row:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.15s;
    cursor: pointer;
    background: hsl(0, 0%, 9%, 0.03);
}

.b2b-dashboard-page a.b2b-dashboard-order-row:hover {
    background: hsl(0, 0%, 9%, 0.06);
    text-decoration: none !important;
}

.b2b-dashboard-order-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.b2b-dashboard-order-row .b2b-dashboard-order-ref {
    font-size: 14px;
    font-weight: 500;
    color: hsl(0, 0%, 9%);
    text-decoration: none !important;
    transition: color 0.15s;
}

.b2b-dashboard-page a.b2b-dashboard-order-row:hover .b2b-dashboard-order-ref {
    color: hsl(18, 83%, 42%);
}

.b2b-dashboard-order-row .b2b-dashboard-order-meta {
    font-size: 12px;
    color: hsl(0, 0%, 40%);
    font-weight: 400;
    text-decoration: none !important;
}

.b2b-dashboard-empty {
    padding: 24px;
    text-align: center;
    color: hsl(0, 0%, 40%);
    font-size: 14px;
}

.b2b-order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.b2b-order-status-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.b2b-order-status--prise_en_compte {
    background: hsl(30, 100%, 94%);
    color: hsl(30, 100%, 35%);
}

.b2b-order-status--prise_en_compte::before {
    background: hsl(30, 100%, 45%);
}

.b2b-order-status--terminee {
    background: hsl(142, 40%, 90%);
    color: hsl(142, 76%, 30%);
}

.b2b-order-status--terminee::before {
    background: hsl(142, 76%, 36%);
}

.b2b-order-status--annulee {
    background: hsl(0, 80%, 94%);
    color: hsl(0, 70%, 40%);
}

.b2b-order-status--annulee::before {
    background: hsl(0, 70%, 50%);
}

.b2b-dashboard-quickaccess {
    background: hsl(0, 0%, 98%);
    border: 1px solid hsl(0, 0%, 83%);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 hsl(0 0% 0% / .1), 0 4px 6px -1px hsl(0 0% 0% / .1);
}

.b2b-dashboard-quickaccess h2 {
    font-size: 18px;
    font-weight: 600;
    color: hsl(0, 0%, 9%);
    margin: 0 0 16px;
    padding: 0;
    letter-spacing: -0.02em;
}

.b2b-quickaccess-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.b2b-dashboard-page .b2b-quickaccess-links a.b2b-quickaccess-link,
.b2b-dashboard-page .b2b-quickaccess-links a.b2b-quickaccess-link:visited {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    color: hsl(0, 0%, 9%);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 1px solid hsl(0, 0%, 83%);
    background: hsl(0, 0%, 98%);
}

.b2b-dashboard-page .b2b-quickaccess-links a.b2b-quickaccess-link:hover {
    background: hsl(18, 83%, 42%, 0.08);
    color: hsl(18, 83%, 42%);
    border-color: hsl(18, 83%, 42%, 0.3);
    text-decoration: none !important;
}

.b2b-dashboard-page .b2b-quickaccess-links a.b2b-quickaccess-link.b2b-quickaccess-link--active,
.b2b-dashboard-page .b2b-quickaccess-links a.b2b-quickaccess-link.b2b-quickaccess-link--active:visited {
    background: hsl(18, 83%, 42%);
    color: #fff;
    border-color: hsl(18, 83%, 42%);
}

.b2b-dashboard-page .b2b-quickaccess-links a.b2b-quickaccess-link.b2b-quickaccess-link--active:hover {
    background: hsl(18, 83%, 38%);
    color: #fff;
    border-color: hsl(18, 83%, 38%);
}

.b2b-dashboard-page .b2b-quickaccess-links a.b2b-quickaccess-link.b2b-quickaccess-link--active svg {
    stroke: #fff;
}

@media (min-width: 1024px) {
    .b2b-dashboard-main {
        grid-template-columns: 2fr 1fr;
    }

    .b2b-dashboard-orders {
        grid-column: span 1;
    }
}

@media (max-width: 1023px) {
    .b2b-dashboard-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .b2b-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .b2b-dashboard-main {
        grid-template-columns: 1fr;
    }

    .b2b-dashboard-orders {
        grid-column: span 1;
    }

    .b2b-dashboard-page h1.b2b-dashboard-title {
        font-size: 20px;
    }
}

/* ========================================
   PROFIL
   ======================================== */

.b2b-profil-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 32px;
    box-sizing: border-box;
    font-family: "Inter", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: hsl(0, 0%, 9%);
    line-height: 1.5;
}

.b2b-profil-page .b2b-orders-topbar {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e67e22;
    border-radius: 0;
}

.b2b-profil-page .b2b-back-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none !important;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

.b2b-profil-page .b2b-back-btn:hover {
    background: #f5f5f5;
}

.b2b-profil-page .b2b-back-btn .b2b-back-arrow {
    font-size: 1.1em;
    line-height: 1;
}

.b2b-profil-page .b2b-breadcrumb {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: #666;
    flex-wrap: wrap;
    padding-top: 14px;
}

.b2b-profil-page .b2b-breadcrumb-link {
    color: #555 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.b2b-profil-page .b2b-breadcrumb-link:hover {
    color: #e67e22 !important;
}

.b2b-profil-page .b2b-breadcrumb-sep {
    color: #bbb;
    font-size: 1.1em;
}

.b2b-profil-page .b2b-breadcrumb-current {
    color: #e67e22;
    font-weight: 600;
}

.b2b-profil-page h1.b2b-profil-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: hsl(0, 0%, 9%) !important;
    margin: 8px 0 4px !important;
    padding: 0 !important;
    letter-spacing: -0.01em;
    line-height: 1.3 !important;
}

.b2b-profil-page .b2b-profil-subtitle {
    font-size: 14px !important;
    color: hsl(0, 0%, 45%) !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    font-weight: 400;
}

.b2b-profil-page .b2b-detail-card {
    background: #fff;
    border: 1px solid hsl(0, 0%, 90%);
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.b2b-profil-page .b2b-detail-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid hsl(0, 0%, 92%);
}

.b2b-profil-page .b2b-detail-card-title {
    font-size: 18px;
    font-weight: 700;
    color: hsl(0, 0%, 9%);
}

.b2b-profil-page .b2b-detail-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.b2b-profil-page .b2b-detail-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.b2b-profil-page .b2b-detail-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: hsl(0, 0%, 30%);
    margin-bottom: 6px;
    text-transform: none;
}

.b2b-profil-page .b2b-detail-value {
    background: hsl(0, 0%, 94%);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: hsl(0, 0%, 15%);
    font-weight: 400;
}

.b2b-profil-page .b2b-detail-value-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.b2b-profil-page .b2b-detail-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: hsl(0, 0%, 9%);
    margin-top: 28px;
    margin-bottom: 12px;
    padding-top: 20px;
    border-top: 1px solid hsl(0, 0%, 92%);
}

.b2b-profil-page .b2b-detail-entreprise {
    background: hsl(0, 0%, 94%);
    border-radius: 8px;
    padding: 14px 18px;
}

.b2b-profil-page .b2b-detail-entreprise-name {
    font-size: 15px;
    font-weight: 700;
    color: hsl(0, 0%, 9%);
    margin-bottom: 2px;
}

.b2b-profil-page .b2b-detail-entreprise-info {
    font-size: 13px;
    color: hsl(0, 0%, 45%);
    font-weight: 400;
}

@media (max-width: 600px) {
    .b2b-profil-page .b2b-detail-row-2col {
        grid-template-columns: 1fr;
    }

    .b2b-profil-page .b2b-detail-card {
        padding: 20px 18px;
    }
}

/* ========================================
   B2B LAYOUT (Header + Sidebar + Content)
   ======================================== */

body.b2b-fullpage {
    margin: 0 !important;
    padding: 0 !important;
    background: hsl(0, 0%, 96%);
    overflow: hidden;
}

.b2b-layout,
.b2b-layout *,
.b2b-layout *::before,
.b2b-layout *::after {
    font-family: "Inter", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

.b2b-layout {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ---- Header (WHITE) ---- */
.b2b-layout-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    min-height: 56px;
    background: #fff;
    color: #222;
    border-bottom: 1px solid hsl(0, 0%, 88%);
    z-index: 1000;
    box-sizing: border-box;
}

.b2b-layout-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.b2b-layout-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.b2b-layout-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #222 !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
}

.b2b-layout-header-sep {
    width: 1px;
    height: 24px;
    background: hsl(0, 0%, 82%);
}

.b2b-layout-header-label {
    font-size: 14px;
    font-weight: 400;
    color: hsl(0, 0%, 45%);
}

.b2b-layout-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.b2b-layout-client-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.b2b-layout-client-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.b2b-layout-client-details {
    font-size: 11px;
    color: hsl(0, 0%, 50%);
    font-weight: 400;
}

.b2b-layout-client-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: hsl(0, 0%, 92%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(0, 0%, 40%);
}

.b2b-layout-header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(0, 0%, 40%) !important;
    text-decoration: none !important;
    transition: color 0.2s, background 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.b2b-layout-header-icon-btn:hover {
    color: #222 !important;
    background: hsl(0, 0%, 94%);
}

/* ---- Body (Sidebar + Main) ---- */
.b2b-layout-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ---- Sidebar (FIXED, dark) ---- */
.b2b-layout-sidebar {
    width: 220px;
    min-width: 220px;
    background: #07171c;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 0;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

.b2b-layout-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
}

.b2b-layout-nav-sep {
    height: 1px;
    background: #1a2e35;
    margin: 8px 14px;
}

.b2b-layout-nav-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #FAFAFA !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.b2b-layout-nav-item:hover {
    background: #112228;
    color: #FFFFFF !important;
}

.b2b-layout-nav-item.active {
    background: #C75518;
    color: #FFFFFF !important;
    font-weight: 600;
}

.b2b-layout-nav-item svg {
    flex-shrink: 0;
}

/* ---- Sidebar user block (always at bottom) ---- */
.b2b-layout-sidebar-user {
    padding: 12px 10px 4px;
    border-top: 1px solid #1a2e35;
    margin-top: auto;
    flex-shrink: 0;
}

.b2b-layout-sidebar-user-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #fff !important;
    transition: background 0.15s;
}

.b2b-layout-sidebar-user-link:hover {
    background: #112228;
}

.b2b-layout-sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a2e35;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.b2b-layout-sidebar-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.b2b-layout-sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.b2b-layout-sidebar-user-status {
    font-size: 11px;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 4px;
}

.b2b-layout-sidebar-user-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4caf50;
    display: inline-block;
}

/* ---- Main content area (SCROLLABLE) ---- */
.b2b-layout-main {
    flex: 1;
    background: hsl(0, 0%, 96%);
    padding: 0;
    min-width: 0;
    overflow-y: auto;
    overflow-x: auto;
}

.b2b-layout-main > *:first-child {
    margin-top: 0 !important;
}

.b2b-layout-main > p:empty {
    display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    body.b2b-fullpage {
        overflow: auto;
    }

    .b2b-layout {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .b2b-layout-body {
        flex-direction: column;
        overflow: visible;
    }

    .b2b-layout-sidebar {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .b2b-layout-nav {
        flex-direction: row;
        gap: 0;
        padding: 8px 10px;
        overflow-x: auto;
    }

    .b2b-layout-nav-sep {
        display: none;
    }

    .b2b-layout-nav-item {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .b2b-layout-sidebar-user {
        display: none;
    }

    .b2b-layout-main {
        padding: 20px 16px;
        overflow: visible;
    }

    .b2b-layout-client-info {
        display: none;
    }

    .b2b-layout-client-icon {
        display: none;
    }
}

@media (max-width: 600px) {
    .b2b-layout-header {
        padding: 0 12px;
        height: 50px;
        min-height: 50px;
    }

    .b2b-layout-header-label {
        display: none;
    }

    .b2b-layout-header-sep {
        display: none;
    }
}

li.b2b-menu-cart {
    list-style: none !important;
}

li.b2b-menu-cart > a,
li.b2b-menu-cart > a:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px !important;
    color: hsl(195, 45%, 6%) !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

li.b2b-menu-cart > a:hover {
    color: hsl(18, 83%, 42%) !important;
}

li.b2b-menu-cart svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
}

li.b2b-menu-espace-pro {
    list-style: none !important;
}

a.b2b-btn-espace-pro,
a.b2b-btn-espace-pro:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    white-space: nowrap !important;
    border-radius: 0px !important;
    border: 1px solid hsl(197, 15%, 22%) !important;
    background-color: hsl(0, 0%, 96%) !important;
    padding: 0.5rem 1rem !important;
    height: 3rem !important;
    font-size: 1rem !important;
    line-height: 1.5rem !important;
    font-weight: 600 !important;
    color: hsl(195, 45%, 6%) !important;
    text-decoration: none !important;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 0.15s !important;
    box-sizing: border-box !important;
}

a.b2b-btn-espace-pro:hover {
    background-color: hsl(47, 100%, 96%) !important;
    color: hsl(37, 92%, 50%) !important;
}

a.b2b-btn-espace-pro:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px hsl(0, 0%, 96%), 0 0 0 4px hsl(20, 90%, 48%) !important;
}

.b2b-espace-pro-icon-wrap {
    position: relative !important;
    display: inline-flex !important;
}

.b2b-espace-pro-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
}

.b2b-espace-pro-dot {
    position: absolute !important;
    top: -0.25rem !important;
    right: -0.25rem !important;
    width: 0.625rem !important;
    height: 0.625rem !important;
    background-color: hsl(142, 71%, 45%) !important;
    border-radius: 9999px !important;
    border: 2px solid hsl(0, 0%, 98%) !important;
}
