/* PixMyEvent Gestion — interface autonome (aucune dépendance externe) */

:root {
    --pmg-navy: #0f1e3d;
    --pmg-navy-light: #1c3159;
    --pmg-gold: #c9a961;
    --pmg-gold-light: #e0c894;
    --pmg-bg: #f4f6f9;
    --pmg-white: #ffffff;
    --pmg-text: #1a1a1a;
    --pmg-text-light: #6b7280;
    --pmg-border: #dfe3ea;
    --pmg-success: #16794f;
    --pmg-warning: #b45309;
    --pmg-danger: #b42318;
    --pmg-radius: 10px;
    --pmg-radius-lg: 16px;
    --pmg-shadow: 0 1px 3px rgba(15, 30, 61, .09);
    --pmg-font-display: Georgia, "Times New Roman", serif;
    --pmg-font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body.pmg-body {
    margin: 0;
    background: var(--pmg-bg);
    color: var(--pmg-text);
    font-family: var(--pmg-font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

h1 { font-family: var(--pmg-font-display); font-size: 25px; margin: 0 0 4px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .6px; color: var(--pmg-text-light); margin: 0 0 14px; }
a { color: var(--pmg-navy); }

/* En-tête */
.pmg-header {
    background: var(--pmg-navy);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 20;
}
.pmg-brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 700; }
.pmg-brand-mark {
    background: var(--pmg-gold); color: var(--pmg-navy);
    border-radius: 7px; padding: 4px 8px; font-size: 12px; letter-spacing: .5px;
}
.pmg-brand-text { font-family: var(--pmg-font-display); font-size: 17px; }
.pmg-nav { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.pmg-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; padding: 6px 0; }
.pmg-nav a:hover, .pmg-nav a.is-active { color: #fff; box-shadow: inset 0 -2px 0 var(--pmg-gold); }
.pmg-nav-logout { margin: 0; }
.pmg-burger { display: none; background: none; border: 0; color: #fff; font-size: 22px; margin-left: auto; cursor: pointer; }

.pmg-main { max-width: 1180px; margin: 0 auto; padding: 22px 18px 120px; }

.pmg-footer {
    max-width: 1180px; margin: 0 auto; padding: 0 18px 36px;
    display: flex; justify-content: space-between;
    color: var(--pmg-text-light); font-size: 12px;
}

/* Blocs */
.pmg-card {
    background: var(--pmg-white);
    border: 1px solid var(--pmg-border);
    border-radius: var(--pmg-radius-lg);
    box-shadow: var(--pmg-shadow);
    padding: 20px;
    margin-bottom: 18px;
}
.pmg-card-narrow { max-width: 480px; }
.pmg-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.pmg-card-head h2 { margin: 0; }

.pmg-page-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.pmg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pmg-actions-row { margin-bottom: 18px; align-items: center; }
.pmg-inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }

/* Boutons */
.pmg-btn {
    display: inline-block; background: var(--pmg-white); color: var(--pmg-navy);
    border: 1px solid var(--pmg-border); border-radius: var(--pmg-radius);
    padding: 9px 15px; font-size: 14px; font-weight: 600;
    text-decoration: none; cursor: pointer; font-family: inherit;
}
.pmg-btn:hover { border-color: var(--pmg-navy); }
.pmg-btn-primary { background: var(--pmg-navy); color: #fff; border-color: var(--pmg-navy); }
.pmg-btn-primary:hover { background: var(--pmg-navy-light); }
.pmg-btn-block { width: 100%; }
.pmg-link-button { background: none; border: 0; color: var(--pmg-navy); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.pmg-danger { color: var(--pmg-danger); }
.pmg-danger-zone { border-color: #f0d3d0; }

/* Champs */
label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--pmg-text-light); font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url],
input[type=date], input[type=number], input[type=search], input[type=color], select, textarea {
    width: 100%; padding: 10px 12px; margin-top: 5px;
    border: 1px solid var(--pmg-border); border-radius: var(--pmg-radius);
    font: inherit; font-size: 15px; color: var(--pmg-text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pmg-gold); outline-offset: 1px; }
input[type=file] { margin-top: 5px; font-size: 13px; }
.pmg-check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--pmg-text); }
.pmg-check input { width: auto; margin: 0; }

.pmg-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
.pmg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.pmg-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }

.pmg-columns { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }

/* Messages */
.pmg-notice {
    border-radius: var(--pmg-radius); padding: 12px 15px; margin-bottom: 16px;
    border-left: 4px solid var(--pmg-navy); background: #eef2f8; font-size: 14px;
}
.pmg-notice-success { border-color: var(--pmg-success); background: #e8f5ef; }
.pmg-notice-warning { border-color: var(--pmg-warning); background: #fdf3e6; }
.pmg-notice-error { border-color: var(--pmg-danger); background: #fdecea; }

/* Statistiques */
.pmg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.pmg-stat {
    background: var(--pmg-white); border: 1px solid var(--pmg-border);
    border-radius: var(--pmg-radius-lg); padding: 18px; text-align: center;
}
.pmg-stat strong { display: block; font-family: var(--pmg-font-display); font-size: 25px; color: var(--pmg-navy); }
.pmg-stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--pmg-text-light); }

/* Filtres */
.pmg-filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.pmg-chip {
    background: #fff; border: 1px solid var(--pmg-border); border-radius: 999px;
    padding: 6px 14px; font-size: 13px; text-decoration: none; color: var(--pmg-text);
}
.pmg-chip.is-active { background: var(--pmg-navy); color: #fff; border-color: var(--pmg-navy); }
.pmg-filter-sep { width: 1px; height: 20px; background: var(--pmg-border); }

.pmg-searchbar { display: flex; gap: 8px; margin-bottom: 16px; }
.pmg-searchbar input { margin-top: 0; }

/* Tableaux */
.pmg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pmg-table th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
    color: var(--pmg-text-light); padding: 8px 10px; border-bottom: 1px solid var(--pmg-border);
}
.pmg-table td { padding: 11px 10px; border-bottom: 1px solid #eef0f4; vertical-align: top; }
.pmg-table .pmg-right, .pmg-right { text-align: right; }
.pmg-table tbody tr:hover { background: #f8fafc; }
.pmg-row-muted { opacity: .55; }
.pmg-table td span.pmg-small { display: block; }

.pmg-plainlist { list-style: none; padding: 0; margin: 0; }
.pmg-plainlist li { padding: 7px 0; border-bottom: 1px solid #eef0f4; }

/* Pastilles */
.pmg-badge {
    display: inline-block; border-radius: 999px; padding: 3px 10px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
}
.pmg-badge-grey { background: #eceff3; color: #555; }
.pmg-badge-blue { background: #e5edfb; color: #1c3159; }
.pmg-badge-green { background: #e3f4ec; color: var(--pmg-success); }
.pmg-badge-amber { background: #fdf1e1; color: var(--pmg-warning); }
.pmg-badge-red { background: #fdeceb; color: var(--pmg-danger); }
.pmg-locked { color: var(--pmg-warning); font-weight: 600; }

.pmg-muted { color: var(--pmg-text-light); }
.pmg-small { font-size: 12px; }

/* Connexion */
.pmg-bare { background: var(--pmg-navy); }
.pmg-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pmg-login-card {
    background: #fff; border-radius: var(--pmg-radius-lg); padding: 32px;
    width: 100%; max-width: 400px; box-shadow: 0 18px 50px rgba(0,0,0,.3);
}
.pmg-login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.pmg-login-brand h1 { font-size: 21px; line-height: 1.15; margin: 0; }
.pmg-login-brand small { font-size: 13px; color: var(--pmg-text-light); font-family: var(--pmg-font-body); }
.pmg-login-hint { font-size: 13px; color: var(--pmg-text-light); }
.pmg-login-alt { text-align: center; font-size: 13px; margin-top: 14px; }

/* Sécurité */
.pmg-steps { padding-left: 20px; font-size: 14px; color: var(--pmg-text); }
.pmg-steps li { margin-bottom: 6px; }
.pmg-secret {
    background: #f4f6f9; border: 1px dashed var(--pmg-border); border-radius: var(--pmg-radius);
    padding: 14px; margin-bottom: 12px; text-align: center;
}
.pmg-secret span { display: block; font-size: 11px; text-transform: uppercase; color: var(--pmg-text-light); }
.pmg-secret code { font-size: 17px; letter-spacing: 2px; font-weight: 700; }
.pmg-backup-codes { background: #fdf8ec; border: 1px solid var(--pmg-gold-light); border-radius: var(--pmg-radius); padding: 14px; margin-bottom: 14px; }
.pmg-backup-codes ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.pmg-backup-codes code { font-size: 15px; letter-spacing: 1px; }
.pmg-radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.pmg-radio-card {
    border: 2px solid var(--pmg-border); border-radius: var(--pmg-radius);
    padding: 14px; cursor: pointer; margin: 0; font-weight: 400;
}
.pmg-radio-card:has(input:checked) { border-color: var(--pmg-navy); background: #f6f9ff; }
.pmg-radio-card input { width: auto; margin: 0 0 8px; }
.pmg-radio-title { display: block; font-weight: 700; color: var(--pmg-text); }
.pmg-radio-desc { display: block; font-size: 12.5px; color: var(--pmg-text-light); margin-top: 4px; }

/* Sélecteur d'entité */
.pmg-entity-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pmg-entity {
    border: 2px solid var(--pmg-border); border-radius: var(--pmg-radius);
    padding: 14px; cursor: pointer; margin: 0; font-weight: 400;
}
.pmg-entity.is-active { border-color: var(--pmg-navy); background: #f6f9ff; }
.pmg-entity input { width: auto; margin: 0 8px 0 0; }
.pmg-entity-name { font-weight: 700; color: var(--pmg-text); font-size: 15px; }
.pmg-entity-meta { display: block; font-size: 12px; color: var(--pmg-text-light); margin-top: 4px; }

/* Ajout rapide */
.pmg-quickadd { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pmg-quickadd-group { width: 100%; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--pmg-text-light); margin-top: 6px; }
.pmg-quickadd button {
    background: #fff; border: 1px solid var(--pmg-border); border-radius: 999px;
    padding: 9px 15px; font: inherit; font-size: 13.5px; cursor: pointer;
}
.pmg-quickadd button:hover { border-color: var(--pmg-navy); background: #f6f9ff; }
.pmg-quickadd button span { color: var(--pmg-text-light); margin-left: 6px; font-size: 12px; }

/* Lignes */
.pmg-line { border: 1px solid var(--pmg-border); border-radius: var(--pmg-radius); padding: 12px; margin-bottom: 10px; background: #fcfdfe; }
.pmg-line-main { display: grid; grid-template-columns: 1fr 70px 110px 80px 90px 110px 26px 34px; gap: 10px; align-items: end; }
/* Réordonnancement des lignes : l'ordre à l'écran est celui du PDF. */
.pmg-line-move { display: flex; flex-direction: column; gap: 2px; padding-bottom: 2px; }
.pmg-line-move button {
    background: none; border: 1px solid var(--pmg-border); border-radius: 5px;
    width: 26px; height: 19px; line-height: 1; padding: 0; cursor: pointer;
    color: var(--pmg-text-light); font-size: 9px;
}
.pmg-line-move button:hover { border-color: var(--pmg-navy); color: var(--pmg-navy); }
.pmg-line:first-child .pmg-line-move button[data-pmg-move="up"],
.pmg-line:last-child .pmg-line-move button[data-pmg-move="down"] { opacity: .3; pointer-events: none; }
.pmg-line-main label { margin-bottom: 0; }
.pmg-line-total { text-align: right; font-weight: 700; padding-bottom: 10px; }
.pmg-line-desc { margin: 8px 0 0; font-size: 12px; }
.pmg-line-desc textarea { min-height: 48px; font-size: 13px; }
.pmg-line-remove {
    background: none; border: 1px solid var(--pmg-border); border-radius: var(--pmg-radius);
    width: 34px; height: 40px; cursor: pointer; color: var(--pmg-danger); font-size: 18px;
}

.pmg-inline-field { display: flex; gap: 8px; align-items: flex-end; }
.pmg-inline-field label { flex: 1; }
.pmg-inline-field select { width: 90px; margin-bottom: 12px; }

/* Totaux */
.pmg-totals { margin-left: auto; max-width: 380px; margin-top: 16px; }
.pmg-totals > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #eef0f4; }
.pmg-total-main { border-bottom: 0 !important; background: var(--pmg-navy); color: #fff; padding: 12px 14px !important; border-radius: var(--pmg-radius); margin-top: 6px; }
.pmg-total-main strong { font-size: 19px; }
.pmg-balance { display: flex; justify-content: space-between; padding: 14px; background: #f4f6f9; border-radius: var(--pmg-radius); margin: 14px 0; font-size: 17px; }

.pmg-payment-form { border-top: 1px solid var(--pmg-border); padding-top: 16px; }

.pmg-timeline { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.pmg-timeline li { padding: 6px 0; border-bottom: 1px solid #eef0f4; }
.pmg-timeline span.pmg-small { display: block; color: var(--pmg-text-light); }

.pmg-logo-preview { background: #f4f6f9; border-radius: var(--pmg-radius); padding: 14px; text-align: center; margin-bottom: 12px; }
.pmg-logo-preview img { max-width: 100%; max-height: 90px; }

/* Barre d'action collante */
.pmg-sticky-actions {
    position: sticky; bottom: 0; z-index: 15;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--pmg-border);
    padding: 12px 18px; display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin: 0 -18px; backdrop-filter: blur(6px); flex-wrap: wrap;
}
.pmg-sticky-total { display: flex; flex-direction: column; }
.pmg-sticky-total span { font-size: 11px; text-transform: uppercase; color: var(--pmg-text-light); }
.pmg-sticky-total strong { font-size: 21px; font-family: var(--pmg-font-display); color: var(--pmg-navy); }
.pmg-sticky-buttons { display: flex; gap: 8px; }

/* Mobile */
@media (max-width: 900px) {
    .pmg-columns { grid-template-columns: 1fr; }
    .pmg-stats { grid-template-columns: repeat(2, 1fr); }
    .pmg-grid-3, .pmg-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pmg-line-main { grid-template-columns: 1fr 1fr; }
    .pmg-line-move { flex-direction: row; }
    .pmg-line-move button { flex: 1; height: 32px; }
    .pmg-line-label { grid-column: 1 / -1; }
    .pmg-line-total { grid-column: 1 / -1; text-align: left; }
    .pmg-radio-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .pmg-burger { display: block; }
    .pmg-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--pmg-navy); flex-direction: column; align-items: stretch;
        gap: 0; padding: 8px 20px 16px;
    }
    .pmg-nav.is-open { display: flex; }
    .pmg-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .pmg-grid-2, .pmg-grid-3, .pmg-grid-4 { grid-template-columns: 1fr; }
    .pmg-stats { grid-template-columns: repeat(2, 1fr); }

    /* Tableaux en cartes */
    .pmg-table-cards thead { display: none; }
    .pmg-table-cards tr {
        display: block; border: 1px solid var(--pmg-border);
        border-radius: var(--pmg-radius); margin-bottom: 10px; padding: 6px 10px; background: #fff;
    }
    .pmg-table-cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; text-align: right; }
    .pmg-table-cards td::before {
        content: attr(data-label); font-size: 11px; text-transform: uppercase;
        letter-spacing: .5px; color: var(--pmg-text-light); text-align: left; flex: 0 0 42%;
    }
    .pmg-totals { max-width: none; }
    .pmg-sticky-actions { flex-direction: column; align-items: stretch; }
    .pmg-sticky-buttons { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------ *
 * Rapport (1.11)
 * ------------------------------------------------------------------ */
.pmg-stats-5 { grid-template-columns: repeat(5, 1fr); }
.pmg-stat em { display: block; font-style: normal; font-size: 13px; color: var(--pmg-text-light); margin-top: 4px; }
.pmg-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.pmg-report-stack { display: flex; flex-direction: column; gap: 0; }
.pmg-report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pmg-report-head h2 { margin: 0; }
.pmg-report-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #eef0f4; font-size: 13px; color: var(--pmg-text-light); }
.pmg-report-foot strong { color: var(--pmg-text); }
.pmg-report-dates { display: flex; gap: 6px; align-items: center; margin: 0; }
.pmg-report-dates input[type=date] { margin: 0; padding: 5px 8px; font-size: 13px; width: auto; }
.pmg-report-dates button { cursor: pointer; font: inherit; font-size: 13px; }
.pmg-text-danger { color: var(--pmg-danger); }
.pmg-text-success { color: var(--pmg-success); }
.pmg-text-warning { color: var(--pmg-warning); }

.pmg-funnel-row { display: grid; grid-template-columns: 120px 1fr 150px; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.pmg-funnel-label { font-weight: 600; }
a.pmg-funnel-row.is-link { color: inherit; text-decoration: none; border-radius: 8px; margin-left: -8px; margin-right: -8px; padding: 4px 8px; }
a.pmg-funnel-row.is-link:hover, a.pmg-funnel-row.is-link.is-open { background: #f7f2e6; }
a.pmg-funnel-row.is-link .pmg-funnel-label { color: var(--pmg-navy); text-decoration: underline; text-underline-offset: 3px; }
.pmg-funnel-track { height: 24px; background: #eef1f5; border-radius: 6px; overflow: hidden; }
.pmg-funnel-bar { display: block; height: 100%; border-radius: 6px; min-width: 2px; }
.pmg-funnel-value { text-align: right; white-space: nowrap; }
.pmg-funnel-bar.is-navy { background: var(--pmg-navy-light); }
.pmg-funnel-bar.is-gold { background: var(--pmg-gold); }
.pmg-funnel-bar.is-green { background: var(--pmg-success); }
.pmg-legend i.is-navy { background: var(--pmg-navy); }

.pmg-legend { display: flex; gap: 14px; font-size: 12px; color: var(--pmg-text-light); }
.pmg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pmg-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.pmg-legend i.is-gold { background: var(--pmg-gold-light); }
.pmg-bars { display: flex; gap: 8px; align-items: stretch; height: 190px; }
.pmg-bars-month { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pmg-bars-pair { flex: 1; display: flex; gap: 2px; align-items: flex-end; border-bottom: 1px solid var(--pmg-border); }
.pmg-bars-pair span { flex: 1; border-radius: 3px 3px 0 0; min-height: 1px; }
.pmg-bars-pair span.is-navy { background: var(--pmg-navy); }
.pmg-bars-pair span.is-gold { background: var(--pmg-gold-light); }
.pmg-bars-label { font-size: 11px; text-align: center; color: var(--pmg-text-light); }
.pmg-report-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #eef0f4; }
.pmg-report-money span { display: block; font-size: 13px; color: var(--pmg-text-light); }
.pmg-report-money strong { font-size: 18px; }

.pmg-followups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pmg-followup { border: 1px solid var(--pmg-border); border-radius: var(--pmg-radius); overflow: hidden; background: #fff; }
.pmg-followup-head { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pmg-followup-head span { font-size: 12px; color: #3f4754; }
.pmg-followup.is-red .pmg-followup-head { background: #fdecea; color: #9b1c12; }
.pmg-followup.is-blue .pmg-followup-head { background: #e8eef8; color: var(--pmg-navy-light); }
.pmg-followup.is-amber .pmg-followup-head { background: #fdf1e1; color: #9a4507; }
.pmg-followup-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid #eef0f4; font-size: 13px; }
.pmg-followup-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pmg-followup-row a:first-child { text-decoration: none; }
.pmg-followup-empty { margin: 0; padding: 12px 14px; font-size: 13px; color: var(--pmg-text-light); border-top: 1px solid #eef0f4; }
.pmg-btn-small { padding: 7px 12px; font-size: 13px; white-space: nowrap; }

.pmg-rate { display: inline-block; width: 56px; height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.pmg-rate span { display: block; height: 100%; background: var(--pmg-gold); }
.pmg-table-wrap { overflow-x: auto; }

.pmg-date-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef0f4; font-size: 14px; color: var(--pmg-text); text-decoration: none; }
.pmg-date-row strong { width: 90px; flex: none; color: var(--pmg-navy); }
.pmg-date-row span:nth-child(2) { flex: 1; min-width: 0; }

/* Suivi d'un devis */
.pmg-track { list-style: none; margin: 0; padding: 0; }
.pmg-track li { display: flex; gap: 12px; }
.pmg-track-rail { display: flex; flex-direction: column; align-items: center; width: 16px; flex: none; }
.pmg-track-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #b8c0cc; background: #fff; margin-top: 3px; flex: none; }
.pmg-track-line { flex: 1; width: 2px; background: #e3e7ee; min-height: 18px; }
.pmg-track li:last-child .pmg-track-line { display: none; }
.pmg-track-body { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; font-size: 13px; min-width: 0; }
.pmg-track-body strong { font-size: 14px; }
.pmg-track-body span { color: var(--pmg-text-light); overflow-wrap: anywhere; }
.pmg-track .is-done .pmg-track-dot { background: var(--pmg-navy); border-color: var(--pmg-navy); }
.pmg-track .is-seen .pmg-track-dot { background: var(--pmg-gold); border-color: var(--pmg-gold); }
.pmg-track .is-bad .pmg-track-dot { background: var(--pmg-danger); border-color: var(--pmg-danger); }
.pmg-track .is-todo strong { color: var(--pmg-text-light); }
.pmg-notice-info { border-color: var(--pmg-navy-light); background: #e8eef8; }
.pmg-salon-tag { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #fbf4e3; color: #7a5a12; font-weight: 600; margin-left: 6px; }

@media (max-width: 1100px) {
    .pmg-stats-5 { grid-template-columns: repeat(3, 1fr); }
    .pmg-followups { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .pmg-report-grid { grid-template-columns: 1fr; }
    .pmg-stats-5 { grid-template-columns: repeat(2, 1fr); }
    .pmg-funnel-row { grid-template-columns: 96px 1fr; }
    .pmg-funnel-value { grid-column: 2; text-align: left; font-size: 13px; color: var(--pmg-text-light); }
    .pmg-report-money { grid-template-columns: 1fr; }
}
