/* ============================================================
   SÉNÉGAL BUSINESS MANAGER — Global App Design System
   Modern, Ultra-clean, High-End Mobile & Desktop Interface
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --sbm-brand-green: #0B4624;
    --sbm-brand-green-dark: #07381C;
    --sbm-brand-green-light: #0F5E30;
    --sbm-brand-glow: rgba(11, 70, 36, 0.14);
    
    --sbm-sn-green: #00853F;
    --sbm-sn-yellow: #F59E0B;
    --sbm-sn-red: #E31B23;
    
    --sbm-bg-main: #FAFCF8;
    --sbm-bg-card: #FFFFFF;
    --sbm-border-card: #E2E8F0;
    --sbm-border-pill: #CBD5E1;
    
    --sbm-text-title: #0A4325;
    --sbm-text-primary: #0F172A;
    --sbm-text-secondary: #334155;
    --sbm-text-muted: #64748B;
    --sbm-text-light: #94A3B8;
    
    --sbm-radius-pill: 9999px;
    --sbm-radius-card: 20px;
    --sbm-radius-inner: 14px;
    
    --sbm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --sbm-shadow-card: 0 4px 16px -2px rgba(11, 70, 36, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    --sbm-shadow-hover: 0 8px 24px -4px rgba(11, 70, 36, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ── AMBIENT BACKGROUND ── */
.sbm-app-bg {
    background-color: var(--sbm-bg-main);
    background-image: 
        radial-gradient(circle at 92% 6%, rgba(22, 163, 74, 0.10) 0%, rgba(22, 163, 74, 0.02) 40%, transparent 65%),
        radial-gradient(circle at 8% 94%, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.02) 40%, transparent 65%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ── HEADER MOBILE BAR ── */
.sbm-top-brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 8px;
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.sbm-top-brand-bar .btn-nav-back,
.sbm-top-brand-bar .btn-nav-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E293B;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}
.sbm-top-brand-bar .btn-nav-back:hover,
.sbm-top-brand-bar .btn-nav-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--sbm-brand-green);
}

.sbm-top-brand-bar .brand-logo-center {
    height: 38px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* ── TITRES SBM ── */
.sbm-screen-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--sbm-text-title);
    text-align: center;
    letter-spacing: -0.02em;
    margin: 6px 0 16px;
    line-height: 1.25;
}

.sbm-screen-subtitle {
    font-size: 13.5px;
    color: var(--sbm-text-muted);
    text-align: center;
    margin-top: -10px;
    margin-bottom: 18px;
    font-weight: 500;
}

/* ── BOUTONS EN PILULE ── */
.sbm-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border-radius: var(--sbm-radius-pill);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.sbm-btn-pill.btn-solid {
    background: var(--sbm-brand-green);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(11, 70, 36, 0.24);
}
.sbm-btn-pill.btn-solid:hover {
    background: var(--sbm-brand-green-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 70, 36, 0.32);
    color: #FFFFFF;
}
.sbm-btn-pill.btn-solid:active {
    transform: translateY(0);
    background: var(--sbm-brand-green-dark);
}

.sbm-btn-pill.btn-outline {
    background: transparent;
    border: 1.5px solid var(--sbm-brand-green);
    color: var(--sbm-brand-green);
}
.sbm-btn-pill.btn-outline:hover {
    background: rgba(11, 70, 36, 0.06);
    color: var(--sbm-brand-green);
}

.sbm-btn-pill.btn-full {
    width: 100%;
}

/* ── BARRE DE RECHERCHE EN PILULE ── */
.sbm-search-bar {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
}

.sbm-search-input {
    width: 100%;
    height: 48px;
    border-radius: var(--sbm-radius-pill);
    border: 1.5px solid var(--sbm-border-pill);
    background: #FFFFFF;
    padding: 0 20px 0 44px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--sbm-text-primary);
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--sbm-shadow-sm);
}

.sbm-search-input:focus {
    border-color: var(--sbm-brand-green);
    box-shadow: 0 0 0 3px var(--sbm-brand-glow);
}

.sbm-search-input::placeholder {
    color: var(--sbm-text-light);
    font-weight: 400;
}

.sbm-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sbm-text-muted);
    font-size: 15px;
    pointer-events: none;
}

/* ── CAPSULES DE FILTRES HORIZONTALES ── */
.sbm-filters-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 14px 2px;
    margin-bottom: 8px;
}
.sbm-filters-scroll::-webkit-scrollbar {
    display: none;
}

.sbm-filter-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--sbm-radius-pill);
    border: 1.5px solid var(--sbm-brand-green);
    background: transparent;
    color: var(--sbm-brand-green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.sbm-filter-chip:hover {
    background: rgba(11, 70, 36, 0.05);
    color: var(--sbm-brand-green);
}

.sbm-filter-chip.active {
    background: var(--sbm-brand-green);
    color: #FFFFFF;
    border-color: var(--sbm-brand-green);
    box-shadow: 0 2px 8px rgba(11, 70, 36, 0.2);
}

/* ── CARTES MODERNES (Produit / Client / Vente) ── */
.sbm-item-card {
    background: var(--sbm-bg-card);
    border: 1px solid var(--sbm-border-card);
    border-radius: var(--sbm-radius-card);
    box-shadow: var(--sbm-shadow-card);
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.sbm-item-card:hover {
    transform: translateY(-1.5px);
    box-shadow: var(--sbm-shadow-hover);
    border-color: #CBD5E1;
}

/* ── BADGES SBM ── */
.sbm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--sbm-radius-pill);
    white-space: nowrap;
}

.sbm-badge-low-stock {
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid #FDE68A;
}

.sbm-badge-wave {
    background: #E0F2FE;
    color: #0284C7;
    border: 1px solid #BAE6FD;
}

.sbm-badge-om {
    background: #FFEDD5;
    color: #EA580C;
    border: 1px solid #FED7AA;
}

.sbm-badge-cash {
    background: #DCFCE7;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

.sbm-badge-pro-tag {
    background: #D97706;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    border-radius: 5px;
    padding: 2px 6px;
    letter-spacing: 0.5px;
}

/* ── KPI GRILLE 2x2 (Écran Ventes) ── */
.sbm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sbm-kpi-card {
    background: #FFFFFF;
    border: 1px solid var(--sbm-border-card);
    border-radius: var(--sbm-radius-card);
    padding: 16px 14px;
    box-shadow: var(--sbm-shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sbm-kpi-label {
    font-size: 12.5px;
    color: var(--sbm-text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.sbm-kpi-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--sbm-text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.sbm-kpi-val.color-green {
    color: var(--sbm-brand-green);
}

.sbm-kpi-sub {
    font-size: 11.5px;
    color: var(--sbm-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sbm-kpi-sub .trend-up {
    color: #10B981;
    font-weight: 700;
}

/* ── SWITCH IOS SBM ── */
.sbm-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.sbm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sbm-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #CBD5E1;
    transition: 0.25s;
    border-radius: 34px;
}

.sbm-switch-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sbm-switch input:checked + .sbm-switch-slider {
    background-color: var(--sbm-brand-green);
}

.sbm-switch input:checked + .sbm-switch-slider::before {
    transform: translateX(22px);
}

/* ── CONTENEUR MOBILE CENTRÉ SUR BUREAU ── */
.sbm-app-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 10px 16px 40px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .sbm-app-container.in-dashboard {
        max-width: 100%;
        padding: 24px 32px 60px;
    }
}

/* ============================================================
   NOUVEAUX COMPOSANTS EXACTS DES MAQUETTES SBM
   ============================================================ */

/* ── BADGE PRO DORÉ OFFICIEL ── */
.sbm-badge-pro-gold {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--sbm-radius-pill);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    line-height: 1;
}

/* ── BARRE SUPÉRIEURE MOBILE ── */
.sbm-mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 8px;
    margin-bottom: 8px;
    width: 100%;
}
.sbm-mobile-top-bar .brand-logo-img {
    height: 38px;
    max-width: 110px;
    object-fit: contain;
}
.sbm-mobile-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--sbm-brand-green);
    letter-spacing: -0.02em;
    margin: 4px 0 14px;
}

/* ── FILTRES PÉRIODE (Tableau de bord) ── */
.sbm-period-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0 16px;
    margin-bottom: 4px;
}
.sbm-period-pills::-webkit-scrollbar { display: none; }
.sbm-period-pill {
    flex: 1;
    min-width: 72px;
    height: 36px;
    border-radius: var(--sbm-radius-pill);
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sbm-period-pill:hover {
    background: rgba(11, 70, 36, 0.04);
    border-color: #CBD5E1;
    color: var(--sbm-brand-green);
}
.sbm-period-pill.active {
    background: var(--sbm-brand-green);
    border-color: var(--sbm-brand-green);
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(11, 70, 36, 0.25);
}

/* ── GRILLE 4 KPI (2x2) ── */
.sbm-dash-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.sbm-dash-kpi-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 14px 14px 12px;
    box-shadow: 0 4px 16px -2px rgba(11, 70, 36, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 98px;
}
.sbm-dash-kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.sbm-dash-kpi-val {
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    line-height: 1.2;
}
.sbm-trend-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--sbm-radius-pill);
    width: fit-content;
}
.sbm-trend-tag.up { background: #DCFCE7; color: #15803D; }
.sbm-trend-tag.down { background: #FEE2E2; color: #B91C1C; }

/* ── CARTE GRAPHIQUE ÉVOLUTION CA ── */
.sbm-chart-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 16px 16px 14px;
    box-shadow: 0 4px 16px -2px rgba(11, 70, 36, 0.04);
    margin-bottom: 20px;
}
.sbm-chart-header {
    margin-bottom: 12px;
}
.sbm-chart-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}
.sbm-chart-unit {
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
    margin-top: 2px;
}

/* ── CARTE PRODUITS LES PLUS VENDUS ── */
.sbm-top-prods-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 4px 16px -2px rgba(11, 70, 36, 0.04);
    margin-bottom: 20px;
}
.sbm-top-prods-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.sbm-top-prods-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}
.sbm-top-prods-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--sbm-brand-green);
    text-decoration: none;
}
.sbm-top-prods-link:hover { text-decoration: underline; }

.sbm-prod-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
}
.sbm-prod-item-row:last-child { border-bottom: none; padding-bottom: 0; }
.sbm-prod-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sbm-prod-details {
    flex: 1;
    min-width: 0;
}
.sbm-prod-line-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.sbm-prod-name {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sbm-prod-sales-cnt {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}
.sbm-prog-track {
    height: 5px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}
.sbm-prog-fill {
    height: 100%;
    background: var(--sbm-brand-green);
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* ── CAISSE POS TACTILE (Écran 2) ── */
.sbm-caisse-search-wrap {
    position: relative;
    margin-bottom: 12px;
}
.sbm-caisse-search-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 15px;
}
.sbm-caisse-search-wrap .barcode-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 17px;
    cursor: pointer;
}
.sbm-caisse-search-input {
    width: 100%;
    height: 46px;
    border-radius: var(--sbm-radius-pill);
    border: 1.5px solid #E2E8F0;
    padding: 0 44px 0 40px;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 500;
    background: #FFFFFF;
    outline: none;
    transition: all 0.2s ease;
}
.sbm-caisse-search-input:focus {
    border-color: var(--sbm-brand-green);
    box-shadow: 0 0 0 3px rgba(11, 70, 36, 0.1);
}

.sbm-caisse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 100px; /* Espace pour le tiroir panier */
}
.sbm-caisse-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
    min-height: 200px;
}
.sbm-caisse-item.active-in-cart {
    border-color: var(--sbm-brand-green);
    box-shadow: 0 4px 16px rgba(11, 70, 36, 0.12);
}
.sbm-caisse-img-box {
    width: 100%;
    height: 100px;
    background: #F8FAFC;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}
.sbm-caisse-img-box img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}
.sbm-caisse-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}
.sbm-caisse-item-price {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
}
.sbm-caisse-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.sbm-caisse-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 32px;
    border: 1.5px solid var(--sbm-brand-green);
    border-radius: 8px;
    background: #FFFFFF;
    overflow: hidden;
}
.sbm-caisse-stepper button {
    width: 32px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--sbm-brand-green);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sbm-caisse-stepper span {
    font-size: 13px;
    font-weight: 800;
    color: var(--sbm-brand-green);
}
.sbm-caisse-add-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.15s ease;
}
.sbm-caisse-add-btn:hover {
    background: var(--sbm-brand-green);
    border-color: var(--sbm-brand-green);
    color: #FFFFFF;
}

/* ── TIROIR PANIER FLOTTANT CAISSE ── */
.sbm-caisse-cart-drawer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
    padding: 10px 18px 20px;
    z-index: 1040;
}
.sbm-caisse-drawer-handle {
    width: 40px;
    height: 4px;
    background: #CBD5E1;
    border-radius: 999px;
    margin: 0 auto 10px;
}
.sbm-caisse-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.sbm-caisse-cart-row .cart-label {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}
.sbm-caisse-cart-row .cart-total-txt {
    font-size: 15px;
    font-weight: 800;
    color: var(--sbm-brand-green);
}
.sbm-caisse-btn-pay {
    width: 100%;
    height: 48px;
    background: var(--sbm-brand-green);
    color: #FFFFFF;
    border: none;
    border-radius: var(--sbm-radius-pill);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(11, 70, 36, 0.3);
    transition: all 0.2s ease;
}
.sbm-caisse-btn-pay:hover {
    background: var(--sbm-brand-green-light);
    transform: translateY(-1px);
}

/* ── MES BOUTIQUES (Écran 3) ── */
.sbm-shops-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.sbm-shops-subtitle {
    font-size: 13.5px;
    color: #64748B;
    font-weight: 500;
    margin-bottom: 16px;
}
.sbm-btn-add-shop {
    width: 100%;
    height: 48px;
    border-radius: var(--sbm-radius-pill);
    background: var(--sbm-brand-green);
    color: #FFFFFF !important;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(11, 70, 36, 0.25);
    margin-bottom: 18px;
    transition: all 0.2s ease;
}
.sbm-btn-add-shop:hover {
    background: var(--sbm-brand-green-light);
    transform: translateY(-1px);
}
.sbm-shop-card-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sbm-shop-card-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #F1F5F9;
    flex-shrink: 0;
}
.sbm-shop-card-info {
    flex: 1;
    min-width: 0;
}
.sbm-shop-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}
.sbm-shop-card-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sbm-shop-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--sbm-radius-pill);
}
.sbm-shop-status-badge.open {
    background: #ECFDF5;
    color: #059669;
}
.sbm-shop-status-badge.open::before {
    content: "•";
    font-size: 14px;
    line-height: 1;
    color: #10B981;
}
.sbm-shop-location {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sbm-shop-stats-line {
    font-size: 11px;
    color: #0F172A;
    font-weight: 500;
}
.sbm-shop-stats-line strong {
    font-weight: 700;
}
.sbm-btn-shop-manage {
    background: var(--sbm-brand-green);
    color: #FFFFFF !important;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--sbm-radius-pill);
    text-decoration: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.sbm-btn-shop-manage:hover {
    background: var(--sbm-brand-green-light);
}

/* ── PARAMÈTRES GROUPÉS iOS (Écran 4) ── */
.sbm-settings-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 16px 80px;
}
.sbm-settings-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.sbm-settings-back-btn {
    position: absolute;
    left: 0;
    top: 6px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E293B;
    font-size: 18px;
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s;
}
.sbm-settings-back-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--sbm-brand-green);
}
.sbm-settings-logo {
    height: 42px;
    max-width: 130px;
    object-fit: contain;
    margin-bottom: 6px;
}
.sbm-settings-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--sbm-text-title);
    margin: 0;
    letter-spacing: -0.02em;
}
.sbm-settings-card-group {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 4px 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}
.sbm-settings-sec-label {
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    margin: 16px 0 8px 6px;
}
.sbm-settings-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}
.sbm-settings-item-row:last-child {
    border-bottom: none;
}
.sbm-settings-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.sbm-settings-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #DCFCE7;
    color: var(--sbm-brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}
.sbm-settings-user-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
    margin-bottom: 2px;
}
.sbm-settings-user-sub {
    font-size: 12.5px;
    color: #64748B;
    word-break: break-all;
}
.sbm-settings-shop-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #F1F5F9;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.sbm-settings-chevron {
    color: #94A3B8;
    font-size: 14px;
    flex-shrink: 0;
}
.sbm-switch-ios {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}
.sbm-switch-ios input { opacity: 0; width: 0; height: 0; }
.sbm-switch-ios .slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #CBD5E1;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}
.sbm-switch-ios .slider:before {
    position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px;
    background-color: white;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}
.sbm-switch-ios input:checked + .slider {
    background-color: #10B981;
}
.sbm-switch-ios input:checked + .slider:before {
    transform: translateX(20px);
}
.sbm-badge-active-green {
    background: #DCFCE7;
    color: #15803D;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--sbm-radius-pill);
    display: inline-block;
}
.sbm-settings-danger-row {
    color: #DC2626 !important;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}
.sbm-shop-thumb-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #F0FDF4;
    color: var(--sbm-brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid #DCFCE7;
}

/* ── NOTIFICATIONS SCREEN (Écran Notifications) ── */
.sbm-notifs-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 16px 80px;
}
.sbm-notifs-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.sbm-notif-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--sbm-radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.sbm-notif-action-pill:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: var(--sbm-brand-green);
}
.sbm-notif-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.sbm-notif-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.sbm-notif-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.sbm-notif-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.sbm-notif-icon-circle.green { background: #DCFCE7; color: #15803D; }
.sbm-notif-icon-circle.orange { background: #FFEDD5; color: #C2410C; }
.sbm-notif-icon-circle.blue { background: #E0F2FE; color: #0369A1; }
.sbm-notif-title-wrap {
    flex: 1;
    min-width: 0;
}
.sbm-notif-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    line-height: 1.2;
}
.sbm-notif-title.green { color: #0B4624; }
.sbm-notif-title.orange { color: #C2410C; }
.sbm-notif-time {
    font-size: 12px;
    color: #94A3B8;
    margin-top: 2px;
}
.sbm-notif-body-txt {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 10px;
}
.sbm-notif-btn-action {
    background: var(--sbm-brand-green);
    color: #FFFFFF !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: var(--sbm-radius-pill);
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sbm-notif-btn-action:hover {
    background: var(--sbm-brand-green-light);
}
.sbm-notif-btn-outline {
    background: #FFFFFF;
    color: var(--sbm-brand-green) !important;
    border: 1.5px solid var(--sbm-brand-green);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: var(--sbm-radius-pill);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.sbm-notif-btn-outline:hover {
    background: #F0FDF4;
}

/* ── BADGES MOYENS DE PAIEMENT ── */
.sbm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    border-radius: var(--sbm-radius-pill);
    font-size: 11px;
    font-weight: 700;
}
.sbm-badge.sbm-badge-wave {
    background: #0284C7;
    color: #FFFFFF;
}
.sbm-badge.sbm-badge-om {
    background: #EA580C;
    color: #FFFFFF;
}
.sbm-badge.sbm-badge-cash {
    background: #10B981;
    color: #FFFFFF;
}

/* ══════════════════════════════════════════════════════════
   SBM BOUTIQUE VITRINE — MAQUETTE EXACTE MOBILE & RESPONSIVE
   Forest Green (#0B4624), Gold PRO (#D97706), Pill Design
   ══════════════════════════════════════════════════════════ */
.sbm-vitrine-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 14px 40px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .sbm-vitrine-wrapper {
        max-width: 920px;
        padding: 0 20px 50px;
    }
}

/* 1. Header Centré : Logo SBM + Titre Boutique Vitrine */
body.sbm-boutique-page .public-navbar {
    display: none !important;
}

.sbm-vitrine-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px 10px;
    position: relative;
    width: 100%;
}
.sbm-top-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    position: relative;
}
.sbm-top-nav-btn:hover {
    background: #F8FAFC;
    color: #0B4624;
}
.sbm-top-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #FFFFFF;
}
.sbm-top-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.sbm-vitrine-header-wrap {
    text-align: center;
    padding: 14px 0 10px;
}
.sbm-vitrine-sbm-logo {
    height: 38px;
    max-width: 130px;
    object-fit: contain;
    margin-bottom: 4px;
    mix-blend-mode: multiply;
}
.sbm-vitrine-screen-title {
    font-size: 20px;
    font-weight: 800;
    color: #0A4325;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* ══════════════════════════════════════════════════════════
   SBM ABONNEMENT — MAQUETTE 2 PLANS & VRAIS LOGOS
   ══════════════════════════════════════════════════════════ */
.sbm-plans-top-bar {
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
}
.sbm-plans-back-btn {
    color: #1E293B;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.sbm-plans-back-btn:hover {
    color: #0B4624;
}
.sbm-plans-sbm-logo {
    height: 38px;
    max-width: 130px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.sbm-plans-title-badge {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
}

.sbm-plans-2col-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 740px;
    margin: 0 auto 16px;
}
@media (min-width: 768px) {
    .sbm-plans-2col-wrap {
        gap: 18px;
    }
}

.sbm-plan-card-box {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px 12px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid #E2E8F0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.sbm-plan-card-box.popular-card {
    border-color: #818CF8;
}
.sbm-plan-card-box.pro-card-box {
    border-color: #34D399;
}
.sbm-plan-card-box.current-card {
    border-color: #10B981;
    background: #F0FDF4;
}

.sbm-plan-top-badge {
    position: absolute;
    top: -11px;
    right: 14px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.sbm-plan-top-badge.badge-popular {
    background: #6366F1;
    color: #FFFFFF;
}
.sbm-plan-top-badge.badge-pro {
    background: #10B981;
    color: #FFFFFF;
}
.sbm-plan-top-badge.badge-current {
    background: #10B981;
    color: #FFFFFF;
}

.sbm-plan-name-title {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 2px;
}
.sbm-plan-price-block {
    text-align: center;
    margin-bottom: 2px;
}
.sbm-plan-price-block .price-val {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}
.sbm-plan-price-block .price-unit {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    margin-left: 2px;
}
.sbm-plan-subtitle-txt {
    font-size: 11px;
    color: #64748B;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.25;
}

.sbm-plan-features-ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.sbm-plan-features-ul li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11.5px;
    color: #334155;
    line-height: 1.35;
}
.sbm-plan-features-ul li .feat-icon-bullet {
    font-size: 11px;
    color: #10B981;
    margin-top: 1px;
    flex-shrink: 0;
}
.sbm-plan-features-ul li .feat-text-content {
    flex: 1;
}
.badge-feat-pro {
    background: #FEF3C7;
    color: #B45309;
    font-size: 8.5px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 3px;
    vertical-align: middle;
}

.sbm-plan-btn-action {
    width: 100%;
    height: 40px;
    border-radius: 9999px;
    border: none;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sbm-plan-btn-action.btn-popular {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.sbm-plan-btn-action.btn-popular:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}
.sbm-plan-btn-action.btn-pro {
    background: #10B981;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.sbm-plan-btn-action.btn-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}
.sbm-plan-btn-action.btn-current {
    background: #10B981;
    color: #FFFFFF;
    cursor: default;
}

.sbm-plans-bottom-wrap {
    max-width: 500px;
    margin: 0 auto;
}
.sbm-plans-no-commit-txt {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
}
.sbm-plans-pay-title {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
}
.sbm-real-pay-logo {
    border-radius: 10px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
}
.sbm-sn-dashes-bar {
    display: flex;
    gap: 3px;
    justify-content: center;
    width: 34px;
    margin: 4px auto 0;
}
.sbm-sn-dashes-bar span {
    height: 3px;
    flex: 1;
    border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════
   SBM COMMANDES — MAQUETTE EXACTE MOBILE & GESTION
   ══════════════════════════════════════════════════════════ */
.sbm-orders-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 14px 40px;
}
.sbm-order-banner-top {
    background: #15803D;
    color: #FFFFFF;
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}
.sbm-order-search-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}
.sbm-order-search-input {
    width: 100%;
    height: 44px;
    border-radius: 9999px;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    padding: 0 18px 0 42px;
    font-size: 13.5px;
    color: #0F172A;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.sbm-order-search-input:focus {
    border-color: #0B4624;
    box-shadow: 0 0 0 3px rgba(11, 70, 36, 0.08);
}
.sbm-order-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 14px;
    pointer-events: none;
}
.sbm-order-filter-pill {
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    background: #FFFFFF;
    color: #475569;
    border: 1.2px solid #E2E8F0;
    transition: all 0.18s ease;
    flex-shrink: 0;
}
.sbm-order-filter-pill:hover {
    background: #F8FAFC;
    color: #0A4325;
}
.sbm-order-filter-pill.active {
    background: #0B4624;
    color: #FFFFFF;
    border-color: #0B4624;
    font-weight: 700;
}
.sbm-order-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 14px;
    transition: all 0.2s ease;
}
.sbm-order-card:hover {
    box-shadow: 0 6px 18px rgba(11, 70, 36, 0.06);
    border-color: #CBD5E1;
}
.sbm-order-num {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F172A;
}
.sbm-order-date {
    font-size: 12px;
    color: #64748B;
}
.sbm-order-badge-new {
    background: #FEF3C7;
    color: #D97706;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
    letter-spacing: 0.3px;
}
.sbm-order-badge-confirmed {
    background: #DCFCE7;
    color: #15803D;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
}
.sbm-order-badge-delivered {
    background: #E0F2FE;
    color: #0284C7;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
}
.sbm-order-badge-other {
    background: #F1F5F9;
    color: #475569;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
}
.sbm-order-client-name {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}
.sbm-order-detail-line {
    font-size: 12.5px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}
.sbm-order-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
}
.sbm-order-circle-btn:hover {
    transform: scale(1.08);
}
.sbm-order-circle-btn.wa {
    background: #25D366;
}
.sbm-order-circle-btn.call {
    background: #0284C7;
}
.sbm-order-items-box {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sbm-order-item-row {
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.sbm-order-item-qty {
    font-weight: 800;
    color: #0F172A;
}
.sbm-order-item-name {
    font-weight: 500;
}
.sbm-order-total-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.sbm-order-total-lbl {
    font-size: 14px;
    font-weight: 700;
    color: #64748B;
}
.sbm-order-total-val {
    font-size: 16px;
    font-weight: 900;
    color: #0A4325;
}
.sbm-btn-order-refuse {
    height: 42px;
    border-radius: 9999px;
    border: 1.5px solid #DC2626;
    background: #FFFFFF;
    color: #DC2626;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sbm-btn-order-refuse:hover {
    background: #FEF2F2;
}
.sbm-btn-order-accept {
    height: 42px;
    border-radius: 9999px;
    border: none;
    background: #0B4624;
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sbm-btn-order-accept:hover {
    background: #07381C;
    transform: translateY(-1px);
}



/* 2. Carte Principale Boutique */
.sbm-vitrine-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(11, 70, 36, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-bottom: 22px;
    position: relative;
}

/* 3. Bannière Couverture */
.sbm-vitrine-banner {
    position: relative;
    width: 100%;
    height: 180px;
    background: #0F172A;
    overflow: hidden;
}
@media (min-width: 576px) {
    .sbm-vitrine-banner { height: 210px; }
}
@media (min-width: 768px) {
    .sbm-vitrine-banner { height: 240px; }
}
.sbm-vitrine-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.sbm-vitrine-banner-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.05) 0%, transparent 40%, rgba(15,23,42,0.35) 100%);
    pointer-events: none;
}
.sbm-vitrine-banner-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A4325 0%, #0F5E30 50%, #15803D 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sbm-vitrine-banner-fallback::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(#FFFFFF 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}

/* 4. Avatar Circulaire Superposé (Logo ou Auvent + Initiales) */
.sbm-vitrine-avatar-wrap {
    margin-top: -42px;
    margin-left: 18px;
    margin-bottom: 12px;
    position: relative;
    z-index: 10;
}
.sbm-vitrine-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #FAF6F0;
    border: 3.5px solid #FFFFFF;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.sbm-vitrine-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sbm-vitrine-avatar-awning {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 2px;
}
.sbm-vitrine-awning-svg {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sbm-vitrine-avatar-initials {
    font-size: 15px;
    font-weight: 800;
    color: #0B4624;
    letter-spacing: 0.5px;
    line-height: 1;
    font-family: inherit;
}

/* 5. Corps de la Carte Boutique */
.sbm-vitrine-card-body {
    padding: 0 18px 20px;
}
.sbm-vitrine-shop-name {
    font-size: 21px;
    font-weight: 800;
    color: #0A4325;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.sbm-vitrine-owner-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.sbm-vitrine-owner-name {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
}
.sbm-vitrine-verified-icon {
    color: #10B981;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}
.sbm-vitrine-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.sbm-vitrine-info-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.sbm-vitrine-info-item i {
    color: #0B4624;
    font-size: 12px;
}
.sbm-vitrine-description {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 16px;
}

/* 6. Boutons d'Action (Contacter, Commander, Partager ma boutique PRO) */
.sbm-vitrine-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.sbm-vitrine-actions-row1 {
    display: flex;
    gap: 10px;
    width: 100%;
}
.sbm-vitrine-btn-contact {
    flex: 1;
    height: 44px;
    background: #0B4624;
    color: #FFFFFF !important;
    border: none;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(11, 70, 36, 0.18);
}
.sbm-vitrine-btn-contact:hover {
    background: #07381C;
    transform: translateY(-1px);
}
.sbm-vitrine-btn-order {
    flex: 1;
    height: 44px;
    background: #FFFFFF;
    color: #0B4624 !important;
    border: 1.5px solid #0B4624;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
}
.sbm-vitrine-btn-order:hover {
    background: #F0FDF4;
    transform: translateY(-1px);
}
.sbm-vitrine-btn-share {
    width: 100%;
    height: 44px;
    background: #FFFFFF;
    color: #0B4624 !important;
    border: 1.5px solid #0B4624;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sbm-vitrine-btn-share:hover {
    background: #F0FDF4;
    transform: translateY(-1px);
}
.sbm-badge-pro-gold {
    background: #D97706;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* 7. Section "Nos produits" */
.sbm-vitrine-section-head {
    margin: 22px 0 12px;
}
.sbm-vitrine-section-title {
    font-size: 19px;
    font-weight: 800;
    color: #0A4325;
    margin: 0;
    letter-spacing: -0.01em;
}

/* 8. Barre de Recherche Pilule */
.sbm-vitrine-search-wrap {
    position: relative;
    margin-bottom: 12px;
    width: 100%;
}
.sbm-vitrine-search-input {
    width: 100%;
    height: 44px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 9999px;
    padding: 0 44px 0 18px;
    font-size: 13.5px;
    color: #0F172A;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.sbm-vitrine-search-input:focus {
    border-color: #0B4624;
    box-shadow: 0 0 0 3px rgba(11, 70, 36, 0.08);
}
.sbm-vitrine-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 14px;
    pointer-events: none;
}

/* 9. Chips / Filtres Catégories Horizontaux */
.sbm-vitrine-cats-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.sbm-vitrine-cats-scroll::-webkit-scrollbar {
    display: none;
}
.sbm-vitrine-cat-pill {
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    background: #FFFFFF;
    color: #475569;
    border: 1.2px solid #E2E8F0;
    transition: all 0.18s ease;
    flex-shrink: 0;
}
.sbm-vitrine-cat-pill:hover {
    background: #F8FAFC;
    color: #0A4325;
    border-color: #CBD5E1;
}
.sbm-vitrine-cat-pill.active {
    background: #0B4624;
    color: #FFFFFF;
    border-color: #0B4624;
    font-weight: 700;
}

/* 10. Grille de Produits (2 Colonnes Mobile) */
.sbm-vitrine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .sbm-vitrine-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}
@media (min-width: 992px) {
    .sbm-vitrine-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* 11. Carte Produit */
.sbm-vitrine-pcard {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.22s ease;
    box-sizing: border-box;
    height: 100%;
}
.sbm-vitrine-pcard:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 70, 36, 0.08);
}

/* 12. Thumbnail Produit (Image du Commerçant ou Fallback Neutre) */
.sbm-vitrine-pthumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #F8FAFC;
    position: relative;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sbm-vitrine-pthumb a {
    display: block;
    width: 100%;
    height: 100%;
}
.sbm-vitrine-pthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.25s ease;
}
.sbm-vitrine-pcard:hover .sbm-vitrine-pthumb img {
    transform: scale(1.04);
}
.sbm-vitrine-pthumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    color: #94A3B8;
    gap: 6px;
}
.sbm-vitrine-pthumb-empty i {
    font-size: 28px;
    color: #CBD5E1;
}

/* 13. Informations Produit */
.sbm-vitrine-pinfo {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.sbm-vitrine-pname {
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    transition: color 0.15s ease;
}
.sbm-vitrine-pname:hover {
    color: #0B4624;
}

/* 14. Ligne Prix & Stock */
.sbm-vitrine-pprice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: auto;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.sbm-vitrine-pprice {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}
.sbm-vitrine-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2.5px 8px;
    border-radius: 9999px;
    white-space: nowrap;
}
.sbm-vitrine-stock-badge.in-stock {
    background: #DCFCE7;
    color: #15803D;
}
.sbm-vitrine-stock-badge.out-stock {
    background: #FEE2E2;
    color: #DC2626;
}

/* 15. Bouton Ajouter au Panier */
.sbm-vitrine-btn-add-cart {
    width: 100%;
    height: 38px;
    background: #0B4624;
    color: #FFFFFF !important;
    border: none;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.18s ease;
    text-decoration: none;
}
.sbm-vitrine-btn-add-cart:hover {
    background: #07381C;
    transform: translateY(-1px);
}
.sbm-vitrine-btn-add-cart:active {
    transform: translateY(0) scale(0.98);
}
.sbm-vitrine-btn-add-cart:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
/* ============================================================
   NOUVELLE VENTE / CAISSE MODERNE (Conforme Maquette 4)
   ============================================================ */
.sbm-pos-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 16px;
    width: 100%;
}
.sbm-pos-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1E293B;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.sbm-pos-back-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0B4624;
}
.sbm-pos-title {
    font-size: 20px;
    font-weight: 800;
    color: #0A4325;
    margin: 0;
    letter-spacing: -0.02em;
}
.sbm-pos-logo {
    height: 34px;
    max-width: 90px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Recherche & Code-barres */
.sbm-pos-search-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
}
.sbm-pos-search-input {
    width: 100%;
    height: 44px;
    border-radius: 9999px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 10px 44px 10px 42px;
    font-size: 13.5px;
    color: #0F172A;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.sbm-pos-search-input:focus {
    background: #FFFFFF;
    border-color: #0B4624;
    box-shadow: 0 0 0 3px rgba(11, 70, 36, 0.08);
}
.sbm-pos-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 14px;
    pointer-events: none;
}
.sbm-pos-barcode-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}
.sbm-pos-barcode-icon:hover {
    color: #0B4624;
}

/* Filtres Catégories */
.sbm-pos-chips-wrap {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.sbm-pos-chips-wrap::-webkit-scrollbar { display: none; }
.sbm-pos-chip {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    background: #FFFFFF;
    color: #475569;
    border: 1.2px solid #E2E8F0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    flex-shrink: 0;
}
.sbm-pos-chip:hover {
    background: #F8FAFC;
    color: #0A4325;
}
.sbm-pos-chip.active {
    background: #0B4624;
    color: #FFFFFF;
    border-color: #0B4624;
    font-weight: 700;
}

/* Liste des Produits (Lignes verticales) */
.sbm-pos-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 120px;
}
.sbm-pos-item {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #F1F5F9;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}
.sbm-pos-item:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(11, 70, 36, 0.05);
}
.sbm-pos-thumb {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #F8FAFC;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #F1F5F9;
}
.sbm-pos-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sbm-pos-info {
    flex: 1;
    min-width: 0;
}
.sbm-pos-name {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sbm-pos-price {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F172A;
    margin-top: 3px;
}
.sbm-pos-action {
    flex-shrink: 0;
}
.sbm-pos-btn-add {
    background: #FFFFFF;
    border: 1.5px solid #0B4624;
    color: #0B4624;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.18s ease;
}
.sbm-pos-btn-add:hover {
    background: #0B4624;
    color: #FFFFFF;
}
.sbm-pos-stepper {
    background: #0B4624;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    gap: 10px;
    color: #FFFFFF;
}
.sbm-pos-stepper button {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sbm-pos-stepper span {
    font-size: 13.5px;
    font-weight: 800;
    min-width: 16px;
    text-align: center;
}

/* Tiroir / Bandeau Panier en bas */
.sbm-pos-bottom-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 14px 20px 22px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    max-width: 540px;
    margin: 0 auto;
    border: 1px solid #E2E8F0;
    border-bottom: none;
    box-sizing: border-box;
}
.sbm-pos-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.sbm-pos-cart-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
}
.sbm-pos-cart-sub {
    font-size: 11.5px;
    color: #64748B;
    font-weight: 500;
}
.sbm-pos-cart-total {
    font-size: 17px;
    font-weight: 900;
    color: #0F172A;
}
.sbm-pos-btn-submit {
    width: 100%;
    height: 46px;
    background: #0B4624;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(11, 70, 36, 0.22);
    transition: all 0.2s ease;
}
.sbm-pos-btn-submit:hover {
    background: #07381C;
    transform: translateY(-1px);
}


/* ============================================================
   DETTES & CRÉDITS (Conforme Maquette 5)
   ============================================================ */
.sbm-debts-container {
    max-width: 540px;
    margin: 0 auto;
    padding: 12px 14px 80px;
}
.sbm-debts-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 12px;
}
.sbm-debts-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1E293B;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.sbm-debts-back-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0B4624;
}
.sbm-debts-logo {
    height: 38px;
    max-width: 120px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.sbm-debts-title {
    font-size: 24px;
    font-weight: 800;
    color: #0A4325;
    margin: 6px 0 16px;
    letter-spacing: -0.02em;
}

/* 2 KPI Cards */
.sbm-debts-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.sbm-debts-kpi-card {
    border-radius: 18px;
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sbm-debts-kpi-card.kpi-red {
    background: #FEE2E2;
    border: 1px solid #FECACA;
}
.sbm-debts-kpi-card.kpi-blue {
    background: #E0F2FE;
    border: 1px solid #BAE6FD;
}
.sbm-debts-kpi-val {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.sbm-debts-kpi-card.kpi-red .sbm-debts-kpi-val {
    color: #DC2626;
}
.sbm-debts-kpi-card.kpi-blue .sbm-debts-kpi-val {
    color: #0284C7;
}
.sbm-debts-kpi-lbl {
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    margin-top: 4px;
}

/* Recherche Pilule */
.sbm-debts-search-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}
.sbm-debts-search-input {
    width: 100%;
    height: 44px;
    border-radius: 9999px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 10px 18px 10px 42px;
    font-size: 13.5px;
    color: #0F172A;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.sbm-debts-search-input:focus {
    background: #FFFFFF;
    border-color: #0B4624;
    box-shadow: 0 0 0 3px rgba(11, 70, 36, 0.08);
}
.sbm-debts-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 14px;
    pointer-events: none;
}

/* Chips de Statut */
.sbm-debts-chips-wrap {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.sbm-debts-chips-wrap::-webkit-scrollbar { display: none; }
.sbm-debts-chip {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    background: #FFFFFF;
    color: #475569;
    border: 1.2px solid #E2E8F0;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s ease;
    flex-shrink: 0;
}
.sbm-debts-chip:hover {
    background: #F8FAFC;
    color: #0A4325;
}
.sbm-debts-chip.active {
    background: #0B4624;
    color: #FFFFFF;
    border-color: #0B4624;
    font-weight: 700;
}

/* Cartes Dettes */
.sbm-debt-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}
.sbm-debt-card:hover {
    box-shadow: 0 4px 14px rgba(11, 70, 36, 0.06);
    border-color: #CBD5E1;
}
.sbm-debt-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}
.sbm-debt-client-name {
    font-size: 15.5px;
    font-weight: 800;
    color: #0F172A;
}
.sbm-debt-amount {
    font-size: 15.5px;
    font-weight: 900;
    color: #0F172A;
}
.sbm-debt-mid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sbm-debt-sub-info {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
}
.sbm-debt-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2.5px 10px;
    border-radius: 9999px;
}
.sbm-debt-status-badge.late {
    background: #FEE2E2;
    color: #DC2626;
}
.sbm-debt-status-badge.ongoing {
    background: #FEF3C7;
    color: #D97706;
}
.sbm-debt-status-badge.paid {
    background: #DCFCE7;
    color: #15803D;
}
.sbm-debt-actions-row {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 8px;
}
.sbm-debt-btn-action {
    height: 38px;
    border-radius: 9999px;
    border: 1.5px solid #0B4624;
    background: #FFFFFF;
    color: #0B4624 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
}
.sbm-debt-btn-action:hover {
    background: #0B4624;
    color: #FFFFFF !important;
}
.sbm-debt-btn-action i {
    font-size: 13px;
}

/* ============================================================
   CONFIGURATION BOUTIQUE EN LIGNE (Conforme Maquette 1)
   ============================================================ */
.sbm-config-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 12px 14px 60px;
}
.sbm-config-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 12px;
}
.sbm-config-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1E293B;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.sbm-config-back-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0B4624;
}
.sbm-config-logo {
    height: 38px;
    max-width: 120px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.sbm-config-title {
    font-size: 24px;
    font-weight: 800;
    color: #0A4325;
    margin: 0;
    text-align: center;
    line-height: 1.2;
}
.sbm-config-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #0B4624;
    margin: 2px 0 20px;
    text-align: center;
}

/* Sections */
.sbm-config-sec-label {
    font-size: 11.5px;
    font-weight: 800;
    color: #1E293B;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.sbm-config-sub-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.sbm-config-sec-sub {
    font-size: 12px;
    color: #64748B;
    margin-top: -4px;
    margin-bottom: 10px;
}

/* Visuels upload */
.sbm-config-visuals-grid {
    display: flex !important;
    gap: 14px !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
.sbm-config-logo-circle {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
    border-radius: 50% !important;
    background: #FAFDFB;
    border: 1.5px dashed #0B4624;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden !important;
    position: relative !important;
    color: #0B4624;
    transition: all 0.2s ease;
    flex-shrink: 0 !important;
}
.sbm-config-logo-circle:hover {
    background: #F0FDF4;
    border-color: #059669;
}
.sbm-config-logo-circle img:not([src]),
.sbm-config-logo-circle img[src=""],
.sbm-config-cover-box img:not([src]),
.sbm-config-cover-box img[src=""],
#logoImgPreview:not([src]),
#logoImgPreview[src=""],
#coverImgPreview:not([src]),
#coverImgPreview[src=""] {
    display: none !important;
}
.sbm-config-logo-circle img[src]:not([src=""]),
#logoImgPreview[src]:not([src=""]) {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
}
.sbm-config-logo-circle i {
    font-size: 20px;
    margin-bottom: 2px;
}
.sbm-config-logo-circle span {
    font-size: 10.5px;
    font-weight: 800;
}

.sbm-config-cover-box {
    flex: 1 !important;
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
    border-radius: 14px !important;
    background: #FAFDFB;
    border: 1.5px dashed #0B4624;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden !important;
    position: relative !important;
    color: #0B4624;
    transition: all 0.2s ease;
    text-align: center;
    padding: 0 !important;
}
.sbm-config-cover-box:hover {
    background: #F0FDF4;
    border-color: #059669;
}
.sbm-config-cover-box img[src]:not([src=""]),
#coverImgPreview[src]:not([src=""]) {
    width: 100% !important;
    height: 100% !important;
    max-height: 84px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
}
.sbm-config-cover-box i {
    font-size: 20px;
    margin-bottom: 4px;
}
.sbm-config-cover-box span {
    font-size: 11.5px;
    font-weight: 700;
}

/* Champs formulaires */
.sbm-config-field-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 8px 14px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.sbm-config-field-box:focus-within {
    border-color: #0B4624;
    box-shadow: 0 0 0 3px rgba(11, 70, 36, 0.06);
}
.sbm-field-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    margin-bottom: 2px;
    display: block;
}
.sbm-field-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 13.5px;
    color: #0F172A;
    background: transparent;
    padding: 2px 0;
}
.sbm-field-textarea {
    width: 100%;
    border: none;
    outline: none;
    font-size: 13.5px;
    color: #0F172A;
    background: transparent;
    padding: 2px 0;
    resize: none;
}

.sbm-config-phone-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sbm-config-phone-box:focus-within {
    border-color: #0B4624;
    box-shadow: 0 0 0 3px rgba(11, 70, 36, 0.06);
}
.sbm-sn-flag {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
}
.sbm-phone-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13.5px;
    color: #0F172A;
    background: transparent;
}

.sbm-config-hours-row {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
}
.sbm-config-hours-row:hover {
    border-color: #0B4624;
}
.sbm-hours-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
}
.sbm-hours-sub {
    font-size: 12px;
    color: #64748B;
}

/* Catégories chips */
.sbm-config-cats-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.sbm-cat-tag {
    background: #F1F5F9;
    color: #334155;
    border-radius: 9999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sbm-cat-tag button {
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
    line-height: 1;
}
.sbm-add-cat-btn {
    border: 1.5px dashed #0B4624;
    background: #FAFDFB;
    color: #0B4624;
    border-radius: 9999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.sbm-add-cat-btn:hover {
    background: #F0FDF4;
}

/* Vidéos slots */
.sbm-config-videos-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
}
.sbm-video-slot {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.sbm-video-slot.dashed {
    border: 1.5px dashed #0B4624;
    background: #FAFDFB;
    cursor: pointer;
    flex-direction: column;
    color: #0B4624;
    gap: 3px;
}
.sbm-video-slot.dashed span {
    font-size: 10px;
    font-weight: 700;
}
.sbm-video-slot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Activation et Sécurité */
.sbm-config-security-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.sbm-switch-custom {
    width: 44px !important;
    height: 24px !important;
    cursor: pointer;
}
.sbm-switch-custom:checked {
    background-color: #0B4624 !important;
    border-color: #0B4624 !important;
}

.sbm-config-btn-submit {
    width: 100%;
    height: 48px;
    background: #0B4624;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(11, 70, 36, 0.22);
    transition: all 0.2s ease;
}
.sbm-config-btn-submit:hover {
    background: #07381C;
    transform: translateY(-1px);
}


/* ============================================================
   MARCHÉ & VITRINE PUBLIC (Conforme Maquette 2)
   ============================================================ */
.sbm-mkt-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 12px 14px 80px;
}
.sbm-mkt-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.sbm-mkt-logo {
    height: 42px;
    max-width: 120px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.sbm-mkt-title {
    font-size: 17px;
    font-weight: 900;
    color: #0A4325;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
}

/* Recherche Marché */
.sbm-mkt-search-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
}
.sbm-mkt-search-input {
    width: 100%;
    height: 44px;
    border-radius: 9999px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 10px 42px 10px 18px;
    font-size: 13.5px;
    color: #0F172A;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.sbm-mkt-search-input:focus {
    background: #FFFFFF;
    border-color: #0B4624;
    box-shadow: 0 0 0 3px rgba(11, 70, 36, 0.08);
}
.sbm-mkt-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 15px;
    pointer-events: none;
}

/* Chips Marché */
.sbm-mkt-chips-wrap {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.sbm-mkt-chips-wrap::-webkit-scrollbar { display: none; }
.sbm-mkt-chip {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    background: #FFFFFF;
    color: #475569;
    border: 1.2px solid #E2E8F0;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s ease;
    flex-shrink: 0;
}
.sbm-mkt-chip:hover {
    background: #F8FAFC;
    color: #0A4325;
}
.sbm-mkt-chip.active {
    background: #0B4624;
    color: #FFFFFF;
    border-color: #0B4624;
    font-weight: 700;
}

.sbm-mkt-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #0A4325;
    margin: 6px 0 16px;
    letter-spacing: -0.02em;
}

/* Cartes Boutiques en vedette */
.sbm-mkt-shop-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.22s ease;
}
.sbm-mkt-shop-card:hover {
    box-shadow: 0 8px 24px rgba(11, 70, 36, 0.08);
    border-color: #CBD5E1;
}

/* Grille 4 photos au-dessus de la carte boutique */
.sbm-mkt-photos-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 110px;
    gap: 2px;
    background: #F1F5F9;
    overflow: hidden;
}
.sbm-mkt-photo-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sbm-mkt-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.sbm-mkt-shop-card:hover .sbm-mkt-photo-item img {
    transform: scale(1.05);
}

/* Infos boutique */
.sbm-mkt-shop-info-row {
    padding: 14px 16px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sbm-mkt-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #FAF6F0;
    border: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #0B4624;
    flex-shrink: 0;
    overflow: hidden;
}
.sbm-mkt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sbm-mkt-shop-details {
    flex: 1;
    min-width: 0;
}
.sbm-mkt-shop-name {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sbm-mkt-shop-loc {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 6px;
}
.sbm-mkt-tags-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.sbm-mkt-tag {
    background: #ECFDF5;
    color: #065F46;
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 700;
}

.sbm-mkt-btn-enter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0B4624;
    color: #FFFFFF !important;
    border-radius: 9999px;
    height: 42px;
    font-size: 13.5px;
    font-weight: 700;
    margin: 8px 16px 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(11, 70, 36, 0.2);
    transition: all 0.2s ease;
}
.sbm-mkt-btn-enter:hover {
    background: #07381C;
    transform: translateY(-1px);
}

/* Bottom Nav Bar Marché */
.sbm-mkt-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}
.sbm-mkt-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748B;
    font-size: 11px;
    font-weight: 600;
    gap: 3px;
    transition: color 0.18s;
}
.sbm-mkt-nav-item:hover, .sbm-mkt-nav-item.active {
    color: #0B4624;
    font-weight: 700;
}
.sbm-mkt-nav-item i {
    font-size: 17px;
}

/* ============================================================
   SBM ADVANCED ANALYTICS (ANALYTICS AVANCÉ) — EXACT MOCKUP DESIGN
   ============================================================ */
.sbm-ana-page-body {
    background-color: #F4F8F5 !important;
    background-image: 
        radial-gradient(ellipse at 85% 0%, rgba(34, 197, 94, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 15% 15%, rgba(11, 70, 36, 0.08) 0%, transparent 50%) !important;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    padding-bottom: 80px;
}

.sbm-ana-container {
    max-width: 440px;
    margin: 0 auto;
    padding: 12px 16px 20px;
}

/* Top Bar: SBM Logo + 3D Gold PRO Badge */
.sbm-ana-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    margin-bottom: 18px;
}

.sbm-ana-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.sbm-ana-brand-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.sbm-ana-brand-text {
    display: flex;
    flex-direction: column;
}

.sbm-ana-brand-main {
    font-size: 13.5px;
    font-weight: 800;
    color: #0B4624;
    line-height: 1.1;
    letter-spacing: -0.2px;
}

.sbm-ana-badge-pro-gold {
    background: linear-gradient(135deg, #FFE277 0%, #E5A823 45%, #B3740A 100%);
    border: 1px solid #FFF0A3;
    border-radius: 10px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 900;
    color: #5C3A00;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(179, 116, 10, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* Title & Period Selector */
.sbm-ana-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sbm-ana-title {
    font-size: 20px;
    font-weight: 800;
    color: #0A3D22;
    margin: 0;
    letter-spacing: -0.4px;
}

.sbm-ana-period-pill {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 9999px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1F2937;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
    text-decoration: none;
}

.sbm-ana-period-pill:hover {
    border-color: #9CA3AF;
    background: #F9FAFB;
}

/* Horizontal 3 KPI Cards */
.sbm-ana-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.sbm-ana-kpi-card {
    background: #FFFFFF;
    border: 1px solid #E8EEF3;
    border-radius: 16px;
    padding: 12px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.sbm-ana-kpi-icon {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 6px;
}

.sbm-ana-kpi-icon.icon-green {
    color: #16A34A;
}

.sbm-ana-kpi-icon.icon-slate {
    color: #475569;
}

.sbm-ana-kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
    line-height: 1.25;
}

.sbm-ana-kpi-value {
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sbm-ana-kpi-badge {
    background: #DCFCE7;
    color: #15803D;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9999px;
    padding: 2px 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
}

/* Card: Tendances des Ventes */
.sbm-ana-section-card {
    background: #FFFFFF;
    border: 1px solid #E8EEF3;
    border-radius: 18px;
    padding: 16px 14px 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 14px;
}

.sbm-ana-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}

.sbm-ana-chart-wrap {
    position: relative;
    width: 100%;
    height: 170px;
}

.sbm-ana-chart-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
}

.sbm-ana-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
}

.sbm-ana-line-real {
    width: 18px;
    height: 3px;
    background: #0E4B28;
    border-radius: 2px;
}

.sbm-ana-line-obj {
    width: 18px;
    height: 3px;
    border-top: 2px dashed #4ADE80;
}

/* Card: Répartition des revenus */
.sbm-ana-donut-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sbm-ana-donut-chart {
    width: 130px;
    height: 130px;
    position: relative;
    flex-shrink: 0;
}

.sbm-ana-legend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sbm-ana-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1E293B;
}

.sbm-ana-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Card: Prévisions IA */
.sbm-ana-ai-card {
    background: linear-gradient(135deg, #E6F5EC 0%, #D4EFE0 100%);
    border: 1px solid #A4DFC0;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.08);
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.sbm-ana-ai-icon {
    font-size: 20px;
    color: #10B981;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.sbm-ana-ai-body {
    flex: 1;
}

.sbm-ana-ai-title {
    font-size: 14px;
    font-weight: 800;
    color: #064E3B;
    margin-bottom: 4px;
}

.sbm-ana-ai-text {
    font-size: 12px;
    color: #134E2E;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

/* Bottom Nav Bar (Exact Mockup) */
.sbm-ana-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
    max-width: 440px;
    margin: 0 auto;
}

.sbm-ana-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748B;
    font-size: 11px;
    font-weight: 600;
    gap: 3px;
    transition: color 0.18s;
}

.sbm-ana-nav-item:hover, .sbm-ana-nav-item.active {
    color: #0B4624;
    font-weight: 700;
}

.sbm-ana-nav-item i {
    font-size: 17px;
}

