/* ============================================================
   B-ON Aligner CRM — Stili Frontend (My Account)
   File: /wp-content/plugins/bon-aligner-crm/assets/bon-crm.css
   ============================================================ */

.bon-dashboard { max-width: 900px; margin: 0 auto; font-family: inherit; }
.bon-dashboard-title { font-size: 1.5em; margin-bottom: 20px; }

/* KPI Cards */
.bon-kpi-grid { display: flex; gap: 16px; margin: 24px 0; flex-wrap: wrap; }
.bon-kpi {
    flex: 1;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 22px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.bon-kpi__number { display: block; font-size: 2.6em; font-weight: 700; line-height: 1; }
.bon-kpi--acquistate .bon-kpi__number { color: #1a73e8; }
.bon-kpi--consumate .bon-kpi__number  { color: #d93025; }
.bon-kpi--rimanenti .bon-kpi__number  { color: #1e8e3e; }
.bon-kpi__label {
    display: block;
    margin-top: 8px;
    font-size: 0.82em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Barra avanzamento */
.bon-progress-wrap { margin: 0 0 28px; }
.bon-progress-label { display: flex; justify-content: space-between; font-size: 0.88em; color: #555; margin-bottom: 8px; }
.bon-progress-bar { background: #e8e8e8; border-radius: 8px; height: 16px; }
.bon-progress-fill {
    background: linear-gradient(90deg, #1a73e8, #0d47a1);
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

/* Tabella pacchetti */
.bon-table-title { font-size: 1.1em; margin: 28px 0 12px; }
.bon-table-wrap { overflow-x: auto; }
.bon-table { width: 100%; border-collapse: collapse; font-size: 0.88em; }
.bon-table th {
    background: #f5f5f5;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}
.bon-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
.bon-table tbody tr:hover { background: #fafafa; }

/* Righe evidenziate */
.bon-row--basse   td { background: #fffde7 !important; }
.bon-row--esaurite td { background: #ffebee !important; }

/* Badge stato */
.bon-badge {
    display: inline-block;
    font-size: 0.72em;
    padding: 2px 8px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 4px;
}
.bon-badge--red    { background: #d93025; }
.bon-badge--orange { background: #f9a825; }

/* Empty state */
.bon-empty { color: #888; font-style: italic; margin-top: 20px; }
