/* head*/

.product-img {
    height: 250px;      /* Ajuste la hauteur selon ton design */
    width: 100%;
    object-fit: cover;  /* Recadre proprement sans déformer */
}

/*header*/
.navbar-bo {
    padding: 16px 0;
    background: #1a1a1a !important;
    border-bottom: 3px solid #ff4d00;
}

.navbar-bo .navbar-brand {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ff7b00, #ff4d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-bo .nav-link {
    font-size: 13px;
    font-weight: 600;
    color: #aaa !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-bo .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

.navbar-bo .nav-link.actif {
    color: #ff4d00 !important;
    background: rgba(255, 77, 0, 0.12);
}

.btn-magasin {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white !important;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 10px;
    transition: all .2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-magasin:hover {
    background: rgba(255,255,255,0.18);
    color: white !important;
}

/*commande*/

.bo-wrapper { background: #f4f6f9; min-height: 100vh; padding: 50px 30px; }
.bo-header { margin-bottom: 35px; }
.bo-header h1 { font-size: 2rem; font-weight: 800; color: #1a1a1a; }
.bo-header p { color: #888; font-size: 15px; }
.bo-table { background: #fff; border-radius: 18px; box-shadow: 0 4px 20px rgba(0,0,0,0.07); overflow: hidden; }
.bo-table table { width: 100%; border-collapse: collapse; }
.bo-table thead { background: #1a1a1a; color: white; }
.bo-table thead th { padding: 16px 20px; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.bo-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .15s; }
.bo-table tbody tr:hover { background: #fafafa; }
.bo-table tbody td { padding: 16px 20px; font-size: 14px; color: #444; }
.statut-badge { padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.statut-payee { background: #e6f9f0; color: #00b894; }
.statut-en_attente { background: #fff8e6; color: #f39c12; }
.statut-annulee { background: #ffeaea; color: #e74c3c; }
.statut-refusee { background: #ffeaea; color: #e74c3c; }
.btn-detail { padding: 8px 18px; background: linear-gradient(135deg, #ff7b00, #ff4d00); color: white; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; transition: opacity .2s; }
.btn-detail:hover { opacity: .85; color: white; }
.empty-state { text-align: center; padding: 60px; color: #aaa; font-size: 16px; }


/*dashboard*/
.dash-wrapper { background: #f4f6f9; min-height: 100vh; padding: 40px 30px; }
.dash-title { font-size: 1.8rem; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
.dash-subtitle { color: #888; font-size: 14px; margin-bottom: 35px; }

/* KPI CARDS */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.kpi-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); position: relative; overflow: hidden; }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.kpi-card.green::before { background: #00b894; }
.kpi-card.orange::before { background: #ff4d00; }
.kpi-card.blue::before { background: #0984e3; }
.kpi-card.purple::before { background: #6c5ce7; }
.kpi-label { font-size: 12px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.kpi-value { font-size: 2rem; font-weight: 800; color: #1a1a1a; }
.kpi-sub { font-size: 12px; color: #aaa; margin-top: 6px; }

/* OBJECTIFS */
.objectifs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.obj-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.obj-label { font-size: 12px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.obj-periode { font-size: 1.1rem; font-weight: 800; color: #1a1a1a; margin-bottom: 4px; }
.obj-target { font-size: 12px; color: #aaa; margin-bottom: 12px; }
.progress-bar-wrap { background: #f0f0f0; border-radius: 50px; height: 8px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 50px; transition: width .5s ease; }
.progress-ok { background: linear-gradient(90deg, #00b894, #00cec9); }
.progress-warn { background: linear-gradient(90deg, #fdcb6e, #e17055); }
.progress-danger { background: linear-gradient(90deg, #ff4d00, #d63031); }
.obj-percent { font-size: 13px; font-weight: 700; margin-top: 8px; }

/* SECTION */
.dash-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.dash-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.dash-card h2 { font-size: 1rem; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #f0f0f0; }
.dash-card-full { grid-column: 1 / -1; }

/* TABLE */
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { font-size: 11px; color: #aaa; text-transform: uppercase; padding-bottom: 10px; text-align: left; }
.mini-table td { font-size: 13px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; color: #444; }
.mini-table tr:last-child td { border-bottom: none; }

.statut-badge { padding: 4px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.statut-payee { background: #e6f9f0; color: #00b894; }
.statut-en_attente { background: #fff8e6; color: #f39c12; }
.statut-annulee, .statut-refusee { background: #ffeaea; color: #e74c3c; }

/* STATUTS DONUT */
.statut-list { display: flex; flex-direction: column; gap: 14px; }
.statut-item { display: flex; align-items: center; justify-content: space-between; }
.statut-bar { flex: 1; margin: 0 12px; background: #f0f0f0; border-radius: 50px; height: 8px; overflow: hidden; }
.statut-bar-fill { height: 100%; border-radius: 50px; }
.bar-payee { background: #00b894; }
.bar-en_attente { background: #fdcb6e; }
.bar-annulee { background: #ff7675; }
.bar-refusee { background: #d63031; }

/* TOP PRODUITS */
.top-prod-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.top-prod-item:last-child { border-bottom: none; }
.top-prod-rank { width: 28px; height: 28px; border-radius: 8px; background: #fff3ee; color: #ff4d00; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; }
.top-prod-name { font-weight: 600; font-size: 14px; color: #1a1a1a; }
.top-prod-vendu { font-size: 12px; color: #aaa; }
.top-prod-ca { font-weight: 700; color: #ff4d00; font-size: 14px; }

@media (max-width: 900px) {
    .kpi-grid, .objectifs-grid, .dash-section { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .kpi-grid, .objectifs-grid, .dash-section { grid-template-columns: 1fr; }
}

/*detailcommande*/

.bo-wrapper { background: #f4f6f9; min-height: 100vh; padding: 50px 40px; }
.bo-retour { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; background: #f0f0f0; color: #444; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; margin-bottom: 30px; transition: background .2s; }
.bo-retour:hover { background: #e0e0e0; color: #222; }
.bo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1300px; margin: 0 auto; }
.bo-card { background: #fff; border-radius: 20px; padding: 38px; box-shadow: 0 4px 20px rgba(0,0,0,0.07); margin-bottom: 28px; }
.bo-card h2 { font-size: 1.25rem; font-weight: 700; color: #1a1a1a; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid #f0f0f0; }
.bo-card-full { grid-column: 1 / -1; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #f8f8f8; font-size: 15px; }
.info-row:last-child { border-bottom: none; }
.info-label { color: #888; font-weight: 500; }
.info-value { font-weight: 700; text-align: right; color: #1a1a1a; }
.statut-badge { padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 700; }
.statut-payee { background: #e6f9f0; color: #00b894; }
.statut-en_attente { background: #fff8e6; color: #f39c12; }
.statut-annulee, .statut-refusee { background: #ffeaea; color: #e74c3c; }

.facturation-bloc p { font-size: 15px; line-height: 2; color: #444; margin: 0; }
.facturation-bloc strong { color: #1a1a1a; font-size: 16px; }

/* Table des produits */
.table-produits { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table-produits th { text-align: left; font-size: 13px; color: #aaa; text-transform: uppercase; letter-spacing: .5px; padding: 0 0 14px 0; }
.table-produits td { padding: 16px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; color: #444; }
.table-produits tbody tr:last-child td { border-bottom: none; }
.table-produits tbody tr:hover td { background: #fafafa; }
.prod-nom { font-weight: 700; color: #1a1a1a; font-size: 15px; }
.prod-prix { color: #ff4d00; font-weight: 700; }

/*paiement*/

.bo-wrapper { background: #f4f6f9; min-height: 100vh; padding: 50px 30px; }
.bo-header { margin-bottom: 35px; }
.bo-header h1 { font-size: 2rem; font-weight: 800; color: #1a1a1a; }
.bo-header p { color: #888; font-size: 15px; }
.bo-table { background: #fff; border-radius: 18px; box-shadow: 0 4px 20px rgba(0,0,0,0.07); overflow: hidden; }
.bo-table table { width: 100%; border-collapse: collapse; }
.bo-table thead { background: #1a1a1a; color: white; }
.bo-table thead th { padding: 16px 20px; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.bo-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .15s; }
.bo-table tbody tr:hover { background: #fafafa; }
.bo-table tbody td { padding: 16px 20px; font-size: 14px; color: #444; }
.statut-badge { padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.statut-accepte { background: #e6f9f0; color: #00b894; }
.statut-en_attente { background: #fff8e6; color: #f39c12; }
.statut-annule { background: #ffeaea; color: #e74c3c; }
.statut-refuse { background: #ffeaea; color: #e74c3c; }
.btn-detail { padding: 8px 18px; background: linear-gradient(135deg, #ff7b00, #ff4d00); color: white; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; transition: opacity .2s; }
.btn-detail:hover { opacity: .85; color: white; }
.empty-state { text-align: center; padding: 60px; color: #aaa; font-size: 16px; }