/* Styles personnalisés Aksil */

/* ── BRAND TOKENS ── */
:root {
    --ak-primary:        #C2541A;
    --ak-primary-dark:   #A3450F;
    --ak-primary-darker: #8E3B0D;
    --ak-primary-light:  #D96825;
    --ak-primary-rgb:    194, 84, 26;
    --ak-primary-bg:     #FFF0E8;

    /* Bootstrap 5 overrides */
    --bs-primary:           #C2541A;
    --bs-primary-rgb:       194, 84, 26;
    --bs-link-color:        #C2541A;
    --bs-link-color-rgb:    194, 84, 26;
    --bs-link-hover-color:  #A3450F;

    /* EasyAdmin — boutons */
    --button-primary-bg:                 #C2541A;
    --button-primary-hover-bg:           #A3450F;
    --button-primary-active-bg:          #8E3B0D;
    --button-primary-border-color:       transparent;
    --button-primary-hover-border-color: transparent;
    --button-primary-active-border-color:transparent;
    --link-color:                        #C2541A;
    --link-color-rgb:                    194, 84, 26;
    --link-hover-color:                  #A3450F;

    /* EasyAdmin — couleur primaire globale + pagination */
    --color-primary:          #C2541A;
    --pagination-active-bg:   #C2541A;
    --pagination-active-color:#fff;
    --pagination-color:       #C2541A;

    /* Bootstrap pagination */
    --bs-pagination-active-bg:          #C2541A;
    --bs-pagination-active-border-color:#C2541A;
    --bs-pagination-color:              #C2541A;
    --bs-pagination-hover-color:        #A3450F;
    --bs-pagination-focus-color:        #A3450F;
    --bs-pagination-focus-box-shadow:   0 0 0 .25rem rgba(194,84,26,.25);

    /* EasyAdmin — sidebar */
    --sidebar-bg:                    #1E2A3B;
    --sidebar-border-color:          #2D3F57;
    --sidebar-logo-color:            #fff;
    --sidebar-menu-color:            rgba(255,255,255,.80);
    --sidebar-menu-icon-color:       rgba(255,255,255,.55);
    --sidebar-menu-header-color:     rgba(255,255,255,.35);
    --sidebar-menu-submenu-color:    rgba(255,255,255,.70);
    --sidebar-menu-active-item-bg:   rgba(194,84,26,.18);
    --sidebar-menu-active-item-color:#C2541A;
    --sidebar-menu-badge-bg:         rgba(194,84,26,.25);
    --sidebar-menu-badge-color:      #fff;
}

/* Bootstrap btn-primary — écrase les variables compilées EasyAdmin/Bootstrap */
.btn-primary,
.btn-primary.btn.disabled,
.btn-primary.btn:disabled {
    --bs-btn-bg:                    #C2541A;
    --bs-btn-color:                 #fff;
    --bs-btn-border-color:          #C2541A;
    --bs-btn-hover-bg:              #A3450F;
    --bs-btn-hover-color:           #fff;
    --bs-btn-hover-border-color:    #A3450F;
    --bs-btn-active-bg:             #8E3B0D;
    --bs-btn-active-color:          #fff;
    --bs-btn-active-border-color:   #8E3B0D;
    --bs-btn-disabled-bg:           #C2541A;
    --bs-btn-disabled-border-color: #C2541A;
    --bs-btn-focus-shadow-rgb:      194, 84, 26;
    --button-bg:       #C2541A;
    --button-hover-bg: #A3450F;
    background:        #C2541A !important;
    border-color:      transparent !important;
    color:             #fff !important;
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: #A3450F !important;
    color:      #fff !important;
}
.btn-primary:active {
    background: #8E3B0D !important;
    color:      #fff !important;
}

.btn-outline-primary {
    --bs-btn-color:               #C2541A;
    --bs-btn-border-color:        #C2541A;
    --bs-btn-hover-bg:            #C2541A;
    --bs-btn-hover-border-color:  #C2541A;
    --bs-btn-active-bg:           #A3450F;
    --bs-btn-active-border-color: #A3450F;
    --bs-btn-focus-shadow-rgb:    194, 84, 26;
    color:        #C2541A !important;
    border-color: #C2541A !important;
}
.btn-outline-primary:hover {
    background-color: #C2541A !important;
    color: #fff !important;
}

.bg-primary     { background-color: #C2541A !important; }
.text-primary   { color: #C2541A !important; }
.border-primary { border-color: #C2541A !important; }
.badge.bg-primary, .badge.text-bg-primary { background-color: #C2541A !important; }

/* Liens EasyAdmin (sidebar, breadcrumb, tableaux…) */
a:not(.btn):not(.ak-btn):not(.ak-hero-link):not(.cg-btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.vp-nav-brand):not(.vp-nav-back):not(.vp-btn-verify) {
    color: #C2541A;
}
a:not(.btn):not(.ak-btn):not(.ak-hero-link):not(.cg-btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.vp-nav-brand):not(.vp-nav-back):not(.vp-btn-verify):hover {
    color: #A3450F;
}

/* Texte blanc sur les éléments avec la couleur principale (#C2541A) en background */
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active {
    color: #fff !important;
}

/* ── LOGIN ── */
.login-page {
    min-height: 100vh;
    display: flex;
    background: #F9FAFB;
    font-family: 'Manrope', sans-serif;
}

/* Panneau gauche — branding */
.login-brand {
    display: none;
    width: 45%;
    flex-shrink: 0;
    background: linear-gradient(160deg, #111E2E 0%, #1E2A3B 55%, #2D3F57 100%);
    padding: 48px 52px;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.login-brand::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}
.login-brand::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
}
@media (min-width: 768px) {
    .login-brand { display: flex; }
}

.login-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}
.login-brand-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 12px;
}
.login-brand-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.6;
    margin-bottom: 48px;
}
.login-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.login-brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    font-weight: 500;
}
.login-brand-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    flex-shrink: 0;
}
.login-brand-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    margin-top: auto;
    padding-top: 40px;
}

/* Panneau droit — formulaire */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}
.login-form-box {
    width: 100%;
    max-width: 400px;
}
.login-form-header {
    margin-bottom: 36px;
    text-align: center;
}
.login-form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.login-form-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}
.login-form-desc {
    font-size: 14px;
    color: #6b7280;
}
.login-field {
    margin-bottom: 20px;
}
.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}
.login-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    font-family: inherit;
}
.login-field input:focus {
    border-color: #C2541A;
    box-shadow: 0 0 0 3px rgba(194, 84, 26, .1);
}
.login-field input::placeholder {
    color: #9ca3af;
}
.login-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #C2541A, #D96825);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    font-family: inherit;
    transition: opacity .15s, transform .1s;
    letter-spacing: .01em;
}
.login-submit:hover  { opacity: .92; transform: translateY(-1px); }
.login-submit:active { transform: translateY(0); }
.login-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-alert-error {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #fca5a5;
}

/* ── DASHBOARD ── */
.ak-dashboard {
    font-family: 'Manrope', sans-serif;
    padding: 8px 0;
}

/* ── TITRES DE SECTION ── */
.ak-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

/* ── CARDS ── */
.ak-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 24px;
}
.ak-card-muted {
    background: #F9FAFB;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
}
.ak-card-warning {
    background: #FFF7ED;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 20px 22px;
}

/* ── ACCENTS HAUT DE CARD ── */
.ak-card-top-green  { border-top: 3px solid #22C55E; }
.ak-card-top-amber  { border-top: 3px solid #F59E0B; }
.ak-card-top-blue   { border-top: 3px solid #3B82F6; }
.ak-card-top-indigo { border-top: 3px solid #6366F1; }
.ak-card-top-sky    { border-top: 3px solid #0EA5E9; }
.ak-card-top-red    { border-top: 3px solid #EF4444; }

/* ── GRILLES ── */
.ak-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.ak-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* ── VALEURS KPI ── */
.ak-kpi-value {
    font-size: 24px;
    font-weight: 800;
}
.ak-kpi-value-lg {
    font-size: 32px;
    font-weight: 800;
}
.ak-kpi-value-xl {
    font-size: 36px;
    font-weight: 800;
}
.ak-kpi-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* ── COULEURS KPI ── */
.ak-text-blue   { color: #3B82F6; }
.ak-text-amber  { color: #F59E0B; }
.ak-text-red    { color: #EF4444; }
.ak-text-green  { color: #22C55E; }
.ak-text-dark   { color: #1E2A3B; }
.ak-text-orange { color: #EA580C; }
.ak-text-indigo { color: #6366F1; }
.ak-text-sky    { color: #0EA5E9; }
.ak-text-gray   { color: #6b7280; }

/* ── ACTIONS RAPIDES ── */
.ak-quick-actions-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}
.ak-quick-actions-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ak-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: white;
}
.ak-btn:hover           { color: white; opacity: .88; }
.ak-btn-green           { background: #C2541A; }
.ak-btn-blue            { background: #0D9488; }
.ak-btn-red             { background: #DC2626; }
.ak-btn-purple          { background: #7C3AED; }
.ak-btn-sky             { background: #0EA5E9; }

/* ── COMMANDES ── */
.ak-commandes-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.ak-commandes-total-num {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}
.ak-commandes-total-label {
    font-size: 13px;
    color: #6b7280;
}
.ak-statuts-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ak-statut-badge {
    border-radius: 10px;
    padding: 14px 20px;
    min-width: 110px;
    text-align: center;
}
.ak-statut-badge-num {
    font-size: 24px;
    font-weight: 800;
}
.ak-statut-badge-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
}

/* Couleurs par statut de commande */
.ak-statut-en_attente                   { background: #F3F4F6; }
.ak-statut-en_attente .ak-statut-badge-num { color: #6B7280; }
.ak-statut-confirmee                    { background: #DCFCE7; }
.ak-statut-confirmee  .ak-statut-badge-num { color: #16A34A; }
.ak-statut-livree                       { background: #DBEAFE; }
.ak-statut-livree     .ak-statut-badge-num { color: #2563EB; }
.ak-statut-annulee                      { background: #CFFAFE; }
.ak-statut-annulee    .ak-statut-badge-num { color: #0891B2; }
.ak-statut-remboursee                   { background: #FEE2E2; }
.ak-statut-remboursee .ak-statut-badge-num { color: #DC2626; }
.ak-statut-consommee                    { background: #F0FDF4; }
.ak-statut-consommee  .ak-statut-badge-num { color: #15803D; }

/* ── HERO PARTENAIRE ── */
.ak-hero {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    color: #111827;
}
.ak-hero-subtitle {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 4px;
}
.ak-hero-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}
.ak-hero-desc {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}
.ak-hero-meta {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 4px;
}
.ak-hero-link {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: #C2541A;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.ak-hero-link:hover { background: #A3450F; color: #fff; }

/* ── PIED DE PAGE PARTENAIRE ── */
.ak-footer {
    margin-top: 8px;
    padding: 10px 0;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--ak-border, #e5e7eb);
    letter-spacing: .5px;
}

/* ── TABLEAU SCROLL (dashboard admin) ── */
.ak-scroll-table {
    overflow-x: auto;
    max-height: 420px;
    overflow-y: auto;
}
.ak-scroll-table thead th {
    position: sticky;
    top: 0;
    background: #f9fafb;
    z-index: 1;
}

/* ── DEALS EN COURS (dashboard partenaire) ── */
.ak-deal-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ak-deal-row:last-child { border-bottom: none; padding-bottom: 0; }
.ak-deal-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #C2541A, #D96825);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.ak-deal-body { flex: 1; min-width: 0; }
.ak-deal-titre {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}
.ak-deal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 7px;
}
.ak-deal-meta-item { font-size: 11px; color: #9ca3af; }
.ak-deal-progress {
    height: 5px;
    border-radius: 4px;
    background: #f3f4f6;
    overflow: hidden;
}
.ak-deal-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: rgb(243, 156, 18);
    transition: width .4s ease;
}
.ak-deal-right { text-align: right; flex-shrink: 0; }
.ak-deal-ca { font-size: 13px; font-weight: 700; color: #111827; }
.ak-deal-comm { font-size: 11px; color: #9ca3af; margin-top: 2px; }
/* Badges statut deal */
.ak-badge-deal-draft     { background: #F3F4F6; color: #6B7280; }
.ak-badge-deal-open      { background: #E0F2FE; color: #0369A1; }
.ak-badge-deal-activated { background: #DCFCE7; color: #16A34A; }
.ak-badge-deal-completed { background: #EEF2FF; color: #4338CA; }
.ak-badge-deal-failed    { background: #FEE2E2; color: #DC2626; }
.ak-badge-deal-suspended { background: #FEF3C7; color: #D97706; }

/* ── LIGNES KPI FINANCIER ── */
.ak-fin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}
.ak-fin-row:last-child { border-bottom: none; padding-bottom: 0; }
.ak-fin-label {
    font-size: 13px;
    color: #6b7280;
}
.ak-fin-value {
    font-size: 16px;
    font-weight: 700;
}

/* ── TABLEAUX ONGLETS DEAL ── */
.ak-tab-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.ak-tab-table-count {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}
.ak-tab-search {
    height: 34px;
    padding: 0 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Manrope', sans-serif;
    outline: none;
    min-width: 200px;
    transition: border-color .15s, box-shadow .15s;
}
.ak-tab-search:focus {
    border-color: #C2541A;
    box-shadow: 0 0 0 3px rgba(194, 84, 26, .08);
}
.ak-sortable-table thead th[data-col] {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.ak-sortable-table thead th[data-col]:hover {
    background: #f9fafb;
}
.ak-sort-icon {
    font-size: 11px;
    color: #d1d5db;
    margin-left: 4px;
    transition: color .1s;
}
.ak-sort-icon.ak-sort-active {
    color: #C2541A;
}

/* ── TRANSACTIONS LIVE ── */
@keyframes ak-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .45; }
}
.ak-live-badge {
    font-size: 10px;
    font-weight: 700;
    color: #16A34A;
    background: #DCFCE7;
    padding: 2px 9px;
    border-radius: 20px;
    animation: ak-pulse 2s infinite;
}
.ak-tx-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.ak-tx-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}
.ak-tx-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ak-tx-row:last-child { border-bottom: none; padding-bottom: 0; }
.ak-tx-body { flex: 1; }
.ak-tx-user {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}
.ak-tx-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.ak-tx-montant {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}
.ak-tx-time {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── VÉRIFICATION ACHAT ── */
.vp-page {
    min-height: 100vh;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
}
.vp-nav {
    background: #C2541A;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vp-nav-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}
.vp-nav-brand:hover { color: #fff; }
.vp-nav-back {
    color: #bfdbfe;
    font-size: 13px;
    text-decoration: none;
}
.vp-nav-back:hover { color: #bfdbfe; }
.vp-container {
    max-width: 520px;
    margin: 40px auto;
    padding: 0 16px;
    width: 100%;
}
.vp-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}
.vp-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 28px;
}
.vp-inline-code {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
}
.vp-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 28px;
}
.vp-success-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.vp-success-icon {
    width: 48px;
    height: 48px;
    background: #065f46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}
.vp-success-title {
    font-size: 18px;
    font-weight: 700;
    color: #065f46;
}
.vp-success-sub {
    font-size: 13px;
    color: #047857;
}
.vp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.vp-table td {
    padding: 8px 0;
    border-bottom: 1px solid #d1fae5;
}
.vp-table tr:last-child td { border-bottom: none; }
.vp-table-label {
    color: #6b7280;
    width: 40%;
}
.vp-table-value {
    font-weight: 600;
    color: #111827;
}
.vp-table-amount {
    font-weight: 700;
    color: #065f46;
    font-size: 18px;
}
.vp-table-code {
    background: #d1fae5;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}
.vp-qr-block {
    margin-top: 24px;
    text-align: center;
}
.vp-qr-block svg {
    width: 180px;
    height: 180px;
    display: block;
    margin: 0 auto;
}
.vp-qr-code-label {
    margin-top: 10px;
    font-family: monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #065f46;
}
.vp-success-footer {
    margin-top: 24px;
    text-align: center;
}
.vp-btn-verify {
    display: inline-block;
    background: #065f46;
    color: #fff;
    padding: 11px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.vp-btn-verify:hover { color: #fff; }
.vp-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #991b1b;
    font-size: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.vp-error-icon {
    font-size: 18px;
    margin-top: 1px;
}
.vp-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.vp-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.vp-form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 20px;
    font-family: monospace;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    box-sizing: border-box;
    transition: border-color .2s;
}
.vp-form-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 24px;
}
.vp-form-submit {
    width: 100%;
    background: #C2541A;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .5px;
}
.vp-help {
    margin-top: 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    color: #92400e;
}
.vp-help-code {
    background: #fef3c7;
    padding: 1px 5px;
    border-radius: 3px;
}

/* ── BADGES INLINE ── */
.ak-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}
/* Commandes */
.ak-badge-en_attente          { background: #F3F4F6; color: #6B7280; }
.ak-badge-confirmee           { background: #DCFCE7; color: #16A34A; }
.ak-badge-livree              { background: #DBEAFE; color: #2563EB; }
.ak-badge-annulee             { background: #CFFAFE; color: #0891B2; }
.ak-badge-remboursee          { background: #FEE2E2; color: #DC2626; }
.ak-badge-consommee           { background: #F0FDF4; color: #15803D; }
/* Transactions — statut */
.ak-badge-succes              { background: #DCFCE7; color: #16A34A; }
.ak-badge-echec               { background: #FEE2E2; color: #DC2626; }
.ak-badge-rembourse           { background: #FEF3C7; color: #D97706; }
/* Transactions — type */
.ak-badge-escrow              { background: #DBEAFE; color: #2563EB; }
.ak-badge-paiement_partenaire { background: #DCFCE7; color: #16A34A; }
.ak-badge-remboursement       { background: #FEE2E2; color: #DC2626; }
.ak-badge-frais_annulation    { background: #CFFAFE; color: #0891B2; }
/* Moyen de paiement */
.ak-badge-wave                { background: #EEF2FF; color: #4338CA; }
.ak-badge-orange_money        { background: #FFF7ED; color: #C2410C; }
.ak-badge-free_money          { background: #FEF3C7; color: #B45309; }
.ak-badge-carte               { background: #F3F4F6; color: #374151; }
/* Commission statut */
.ak-badge-commission-en_attente { background: #F3F4F6; color: #6B7280; }
.ak-badge-commission-reverse    { background: #DCFCE7; color: #16A34A; }
.ak-badge-commission-annule     { background: #CFFAFE; color: #0891B2; }

/* ── Commandes groupées par bureau (Aksilunch) ──────────────────────────── */
.cg-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.cg-toolbar form {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.cg-toolbar input[type="date"] {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: .4rem .75rem;
    font-size: .9rem;
}
.cg-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.cg-btn-primary { background: #C2541A; color: #fff; }
.cg-btn-primary:hover { background: #A3450F; color: #fff; }
.cg-btn-export { background: #16a34a; color: #fff; }
.cg-btn-export:hover { background: #15803d; color: #fff; }
.cg-empty {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}
.cg-group {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.75rem;
    overflow: hidden;
}
.cg-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.cg-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 .2rem;
}
.cg-group-sub {
    font-size: .8rem;
    color: #6b7280;
}
.cg-badge {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 600;
}
.cg-badge-green  { background: #059669; color: #fff; }
.cg-badge-orange { background: #d97706; color: #fff; }
.cg-badge-gray   { background: #6b7280; color: #fff; }
.cg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.cg-table th {
    background: #f3f4f6;
    padding: .6rem 1rem;
    text-align: left;
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cg-table td {
    padding: .65rem 1rem;
    border-top: 1px solid #f3f4f6;
    color: #374151;
}
.cg-table tr:hover td { background: #fafafa; }
.cg-table .cg-total-row td {
    background: #f9fafb;
    font-weight: 700;
    border-top: 2px solid #e5e7eb;
    color: #111827;
}
.cg-statut {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
}
.cg-statut-confirmee  { background: #2563eb; color: #fff; }
.cg-statut-en_attente { background: #d97706; color: #fff; }
.cg-statut-livree     { background: #059669; color: #fff; }
.cg-statut-annulee    { background: #dc2626; color: #fff; }
.cg-statut-remboursee { background: #7c3aed; color: #fff; }
/* Tri colonnes */
.cg-table th[data-sort] {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.cg-table th[data-sort]:hover { background: #e2e4e8; color: #111827; }
.cg-table th[data-sort]::after {
    content: '';
    display: inline-block;
    margin-left: .4rem;
    width: 0;
    height: 0;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    border-bottom: 5px solid transparent;
    opacity: .25;
}
.cg-table th[data-sort].sort-asc::after {
    border-top: none;
    border-bottom: 5px solid #C2541A;
    opacity: 1;
}
.cg-table th[data-sort].sort-desc::after {
    border-top: 5px solid #C2541A;
    border-bottom: none;
    opacity: 1;
}
.cg-table th[data-sort].sort-asc,
.cg-table th[data-sort].sort-desc {
    color: #C2541A;
    background: #FFF0E8;
}
/* Contacts gérant / co-gérant */
.cg-group-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}
.cg-contact {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: .2rem .6rem;
    font-size: .78rem;
    color: #374151;
}
.cg-contact-role {
    font-weight: 700;
    color: #C2541A;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.cg-contact-role--co { color: #7c3aed; }
.cg-contact-phone {
    color: #6b7280;
    text-decoration: none;
    font-family: monospace;
}
.cg-contact-phone:hover { color: #C2541A; text-decoration: underline; }
