/* =========================================================
   Sensaulia Location – Styles espace client
   ========================================================= */

/* =========================================================
   Sous-navigation Mon Abonnement
   ========================================================= */
.snsl-abonnement { }

.snsl-subnav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.snsl-subnav-item {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 6px 6px 0 0;
    font-size: .92em;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    background: #f5f5f5;
    transition: background .15s, color .15s;
    margin-bottom: -2px;
}

.snsl-subnav-item:hover {
    background: #eaf2ff;
    color: #2c5282;
    text-decoration: none;
}

.snsl-subnav-item--active {
    background: #fff;
    color: #2c5282;
    border-color: #e0e0e0;
    border-bottom-color: #fff;
}

.snsl-section-content { padding-top: 4px; }

.snsl-end-date { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.snsl-no-renewal {
    font-size: .78em;
    color: #744210;
    background: #fefcbf;
    border: 1px solid #f6e05e;
    border-radius: 10px;
    padding: 2px 8px;
    white-space: nowrap;
}

.snsl-contract-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* --- Cartes contrat --- */
.snsl-contract-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.snsl-contract-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.snsl-contract-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.snsl-contract-meta {
    display: flex;
    gap: 24px;
    color: #555;
    font-size: .92em;
    margin-bottom: 14px;
}

/* --- Statut badges --- */
.snsl-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: .8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.snsl-status--active    { background: #d4edda; color: #155724; }
.snsl-status--expired   { background: #f8d7da; color: #721c24; }
.snsl-status--suspended { background: #fff3cd; color: #856404; }

/* --- Barre de progression quota --- */
.snsl-quota-summary { margin: 14px 0; font-size: .95em; }

.snsl-progress-bar {
    background: #e9ecef;
    border-radius: 8px;
    height: 10px;
    margin-top: 6px;
    overflow: hidden;
}

.snsl-progress-fill {
    background: #4a90d9;
    height: 100%;
    border-radius: 8px;
    transition: width .4s ease;
}

/* --- Table diffuseurs --- */
.snsl-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: .92em;
}

.snsl-table th,
.snsl-table td {
    text-align: left;
    padding: 7px 10px;
    border-bottom: 1px solid #eee;
}

.snsl-table th { background: #f5f5f5; font-weight: 600; }

/* --- Bouton fragrances --- */
.snsl-btn-fragrances { margin-top: 12px !important; }

/* --- Appareils --- */
.snsl-devices { margin-top: 16px; }
.snsl-devices h4 { font-size: .95em; margin: 0 0 10px; color: #444; }

.snsl-devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.snsl-device-card {
    display: flex;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    align-items: flex-start;
}

.snsl-device-photo {
    flex-shrink: 0;
    width: 80px;
}

.snsl-device-photo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 1px solid #e0e0e0;
    transition: opacity .2s;
}

.snsl-device-photo a:hover img { opacity: .85; }

.snsl-device-body { font-size: .88em; line-height: 1.6; }

.snsl-device-model {
    font-weight: 700;
    font-size: 1em;
    color: #2d3748;
    margin-bottom: 2px;
}

.snsl-device-serial code,
.snsl-device-warranty-ref code {
    background: #e9ecef;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: .9em;
}

.snsl-device-warranty  { font-size: .85em; margin-top: 4px; }
.snsl-warranty--ok     { color: #276749; }
.snsl-warranty--expired { color: #c53030; }

.snsl-device-install { color: #666; font-size: .82em; }

.snsl-device-manual { margin-top: 8px; }

.snsl-btn-manual {
    font-size: .82em !important;
    padding: 4px 10px !important;
    background: #fff8f0 !important;
    border-color: #dd6b20 !important;
    color: #dd6b20 !important;
}
.snsl-btn-manual:hover {
    background: #dd6b20 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.snsl-empty { text-align: center; color: #666; padding: 30px 0; line-height: 2; }

/* =========================================================
   Échéancier client
   ========================================================= */
.snsl-ech-summary {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.snsl-ech-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 18px;
    min-width: 100px;
}

.snsl-ech-stat--paid      { border-color: #38a169; background: #f0fff4; }
.snsl-ech-stat--remaining { border-color: #4a90d9; background: #ebf4ff; }
.snsl-ech-stat--late      { border-color: #e53e3e; background: #fff5f5; }

.snsl-ech-num  { font-size: 1.3em; font-weight: 700; color: #2d3748; }
.snsl-ech-lbl  { font-size: .78em; color: #666; margin-top: 2px; }

.snsl-ech-table-client { font-size: .9em; }

.snsl-ech-row--paid td    { background: #f0fff4; }
.snsl-ech-row--late td    { background: #fff5f5; }
.snsl-ech-row--pending td { background: #fff; }

.snsl-ech-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .82em;
    font-weight: 600;
}

.snsl-ech-status--paid    { background: #c6f6d5; color: #276749; }
.snsl-ech-status--pending { background: #bee3f8; color: #2a4365; }
.snsl-ech-status--late    { background: #fed7d7; color: #822727; }

/* =========================================================
   Page fragrances
   ========================================================= */

.snsl-quota-banner {
    background: #f0f6ff;
    border: 1px solid #c7dcf7;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.snsl-quota-banner h3 { margin-top: 0; }

.snsl-quota-grid {
    display: flex;
    gap: 24px;
    margin: 14px 0 10px;
    flex-wrap: wrap;
}

.snsl-quota-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #dce8f8;
    border-radius: 6px;
    padding: 10px 20px;
    min-width: 100px;
}

.snsl-quota-stat--highlight { border-color: #4a90d9; background: #e8f1fb; }

.snsl-quota-num   { font-size: 1.5em; font-weight: 700; color: #333; }
.snsl-quota-label { font-size: .8em; color: #666; margin-top: 2px; }

.snsl-notice {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: .93em;
}

.snsl-notice--info    { background: #e8f4fd; border-left: 4px solid #4a90d9; }
.snsl-notice--warning { background: #fff8e1; border-left: 4px solid #f0a500; }

/* --- Grille produits --- */
.snsl-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.snsl-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    position: relative;
    text-align: center;
    transition: box-shadow .2s;
}

.snsl-product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.snsl-product-card--covered { border-color: #4a90d9; }

.snsl-product-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.snsl-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .72em;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.snsl-badge--inclus { background: #4a90d9; color: #fff; }

.snsl-product-title { font-size: .95em; margin: 6px 0 4px; }
.snsl-product-title a { color: inherit; text-decoration: none; }
.snsl-product-title a:hover { color: #4a90d9; }

.snsl-product-volume { font-size: .83em; color: #888; margin: 0 0 6px; }

.snsl-product-price { font-weight: 600; margin: 6px 0 10px; }

.snsl-price-inclus { color: #4a90d9; }
.snsl-price-inclus small { font-weight: 400; color: #777; }

.snsl-add-btn { width: 100%; display: block; text-align: center; }
