/* =============================
   MON LOCKIPAY – DASHBOARD
   ============================= */




.lk-dash-container {
    max-width: 1400px;
    margin: 30px auto 60px;
    padding: 0 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lk-dash-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
}

/* ===== Sidebar ===== */

.lk-dash-sidebar {
     background: linear-gradient(180deg, #1F1F5C, #282868);
    box-shadow: 0 12px 30px rgba(31,31,92,0.4);
    border-radius: 10px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 12px 30px rgba(15, 118, 180, 0.35);
    min-height: 520px;
}

.lk-dash-logo {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
}

.lk-dash-user {
    font-size: 13px;
    opacity: 0.9;
}

.lk-dash-menu {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lk-dash-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 9px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #e5f3ff;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.08s ease;
}

.lk-dash-menu-link span {
    pointer-events: none;
}

.lk-dash-menu-link:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(1px);
}

.lk-dash-menu-link.is-active {
    background: #ffffff;
    color: #0f172a;
}

.lk-dash-menu-link.is-active span.lk-dash-menu-pill {
    background: #0f7cc7;
    color: #ffffff;
}

.lk-dash-menu-pill {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

/* Petit bloc "quick info" en bas de sidebar (optionnel) */

.lk-dash-sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 11px;
    opacity: 0.9;
}

/* ===== Zone principale ===== */

.lk-dash-main {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
    padding: 18px 18px 22px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.lk-dash-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lk-dash-main-header h1 {
    margin: 0;
    font-size: 20px;
    color: #111827;
}

.lk-dash-main-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.lk-dash-main-body {
    margin-top: 14px;
    font-size: 13px;
    color: #4b5563;
}

/* ===== Style type tableau  pour plus tard (placeholder) ===== */

.lk-dash-table {
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    font-size: 13px;
}

.lk-dash-table-header {
    background: #f3f4f6;
    display: grid;
    grid-template-columns: 150px 1fr 120px 120px 120px;
    padding: 7px 10px;
    font-weight: 600;
    color: #111827;
}

.lk-dash-table-row {
    display: grid;
    grid-template-columns: 150px 1fr 120px 120px 120px;
    padding: 7px 10px;
    border-top: 1px solid #e5e7eb;
    align-items: center;
}

.lk-dash-table-row:nth-child(even) {
    background: #f9fafb;
}

.lk-dash-table-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-block;
}

.lk-dash-table-status--pending {
    background: #fef3c7;
    color: #92400e;
}

.lk-dash-table-status--captured {
    background: #dcfce7;
    color: #166534;
}

.lk-dash-table-status--released {
    background: #e0f2fe;
    color: #075985;
}

.lk-dash-table-actions {
    display: flex;
    gap: 4px;
}

.lk-dash-btn {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
}

/* ===== Responsive ===== */

@media (max-width: 960px) {
    .lk-dash-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .lk-dash-sidebar {
        min-height: auto;
    }

    .lk-dash-main {
        min-height: auto;
    }

    .lk-dash-table-header,
    .lk-dash-table-row {
        grid-template-columns: 1.3fr 1fr;
        row-gap: 4px;
    }
}

/* =============================
   ONGLETS – SECTION PARAMÈTRES
   ============================= */

.lk-dash-main .lk-tabs-bar {
    margin-top: 4px;
    margin-bottom: 16px;
    padding: 4px 24px;                 /* agrandit le bloc et ajoute du souffle à gauche/droite */
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    justify-content: center;           /* centrage des onglets */
    gap: 8px;
    flex-wrap: nowrap;
    max-width: calc(100% - 48px);      /* évite que ça colle aux bords */
}

/* pastilles d’onglets */
.lk-dash-main .lk-tab-link {
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 15px;               /* moins arrondi */
    text-decoration: none;
    border: 1px solid rgba(15, 124, 199, 0.55);   /* même bleu que la zone droite */
    color: #0f7cc7 !important;
    background: #ffffff !important;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.08s ease;
    white-space: nowrap;
}

.lk-dash-main .lk-tab-link:hover {
    background: #e0f2ff !important;
    color: #0b4f82 !important;
    transform: translateY(-1px);
}

.lk-dash-main .lk-tab-link.is-active {
    background: #0f7cc7 !important;         /* même bleu que la partie de droite */
    color: #ffffff !important;
    border-color: #0f7cc7 !important;
    box-shadow: 0 4px 10px rgba(15, 124, 199, 0.35);
}

/* Panneau de contenu sous les onglets */
.lk-dash-main .lk-tab-panel {
    margin-top: 0;
    padding: 16px 24px 20px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
    font-size: 13px;
    color: #4b5563;
}

.lk-dash-main .lk-tab-panel h2 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 16px;
    color: #111827;
}

/* Responsive : petite largeur */
@media (max-width: 700px) {
    .lk-dash-main .lk-tabs-bar {
        justify-content: flex-start;
        padding: 4px 12px;
        max-width: 100%;
        overflow-x: auto;
    }

    .lk-dash-main .lk-tab-link {
        flex: 1 1 auto;
        text-align: center;
    }
}


/* ===== Cartes licences Lockipay ===== */

.lk-licences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.lk-licence-card {
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 124, 199, 0.15);
}

.lk-licence-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #eff6ff;
    color: #0f172a;
    display: inline-block;
    margin-bottom: 6px;
}

.lk-licence-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #4b5563;
}

/* ===== Formulaire Stripe ===== */

.lk-form {
    margin-top: 10px;
}

.lk-form-row {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lk-form-row label {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

.lk-input {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 7px 10px;
    font-size: 13px;
    width: 100%;
    background: #f9fafb;
}

.lk-input:focus {
    outline: none;
    border-color: #0f7cc7;
    box-shadow: 0 0 0 1px rgba(15, 124, 199, 0.35);
    background: #ffffff;
}

.lk-form-actions {
    margin-top: 6px;
}

.lk-primary-btn {
    border: none;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    background: linear-gradient(135deg, #0f7cc7, #2563eb);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 118, 180, 0.35);
    transition: transform 0.08s ease, box-shadow 0.15s ease;
}

.lk-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 118, 180, 0.45);
}

/* Messages succès / erreur */

.lk-alert {
    margin: 8px 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
}

.lk-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.lk-alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Champs mot de passe avec icône œil */

.lk-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lk-password-wrapper .lk-input {
    padding-right: 36px; /* place pour l’œil */
}

.lk-password-toggle {
    position: absolute;
    right: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.6;
}

.lk-password-toggle:hover {
    opacity: 1;
}

/* ===== Moyens de paiement (cartes) ===== */

.lk-payments-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lk-payment-card {
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 124, 199, 0.18);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.lk-payment-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.lk-payment-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.lk-payment-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
}

.lk-payment-meta {
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}

/* Bouton secondaire (lien vers /mon-compte/payment-methods/) */

.lk-secondary-btn {
    display: inline-block;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    border: 1px solid #0f7cc7;
    background: #ffffff;
    color: #0f7cc7;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.lk-secondary-btn:hover {
    background: #eff6ff;
    color: #0b4f82;
    box-shadow: 0 8px 18px rgba(15, 118, 180, 0.25);
    transform: translateY(-1px);
}

/* ===== Intégration du formulaire WooCommerce "add payment method" via iframe ===== */

.lk-payments-add-wrapper {
    margin-top: 8px;
    padding: 0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
    border: 1px solid rgba(15, 124, 199, 0.16);
    overflow: hidden;
    position: relative;
}

.lk-payments-add-header {
    padding: 10px 12px;
}

.lk-payments-iframe {
    width: 166.666%;          /* 1 / 0.6 pour compenser le scale */
    min-height: 1200px;
    border: none;
    transform: scale(1);       /* réduction de 40 % sur desktop */
    transform-origin: 0 0;
    display: block;
}

/* Sur téléphone : l'iframe devient une popup plein écran */

@media (max-width: 700px) {
    .lk-payments-add-wrapper {
        position: fixed;
        inset: 0;
        z-index: 9999;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: rgba(15, 23, 42, 0.65); /* voile sombre */
        padding: 10px;
        display: flex;
        flex-direction: column;
    }

    .lk-payments-add-header {
        padding: 0 0 8px 0;
        display: flex;
        justify-content: flex-start;
    }

    .lk-payments-iframe {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        height: 100%;
        border: none;
        transform: none;              /* pas de zoom sur mobile */
    }
}


/* On laisse WooCommerce/Stripe gérer la mise en forme interne,
   on se contente juste du "card" extérieur cohérent avec le reste. */

.lk-coming-soon {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    font-size: 14px;
    color: #374151;
}

.lk-coming-soon h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #0f7cc7;
}

.lk-settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lk-settings-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 35, 52, 0.08);
    padding: 16px 18px;
}

.lk-settings-card__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.lk-settings-card__subtitle {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7280;
}

.lk-settings-grid {
    display: grid;
    gap: 10px 16px;
}

.lk-settings-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lk-settings-field--full {
    grid-column: 1 / -1;
}

.lk-settings-field label {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    color: #374151;
}

.lk-settings-help {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #9ca3af;
}

.lk-settings-actions {
    margin-top: 8px;
    text-align: right;
}

.lk-settings-alert {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.lk-settings-alert--success {
    background: #ecfdf3;
    border: 1px solid #4ade80;
    color: #166534;
}

@media (max-width: 700px) {
    .lk-settings-grid--2 {
        grid-template-columns: 1fr;
    }
}


/* ===== Bloc licence & téléchargements ===== */

.lk-licence-wrapper {
    margin-top: 20px;
}

.lk-licence-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 18px 45px rgba(0, 81, 255, 0.12);
    border: 1px solid rgba(0, 122, 255, 0.12);
}

.lk-licence-card--empty {
    text-align: left;
}

.lk-licence-card h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: #05336f;
}

.lk-licence-subtitle {
    margin: 0;
    font-size: 14px;
    color: #4f8edc;
}

.lk-licence-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.lk-licence-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lk-licence-status--ok {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.lk-licence-status--warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.lk-licence-status--danger {
    background: rgba(248, 113, 113, 0.12);
    color: #b91c1c;
}

.lk-licence-status--neutral {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.lk-licence-card-body {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding-top: 12px;
    margin-top: 8px;
}

.lk-licence-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
}

.lk-licence-label {
    font-weight: 500;
    color: #0f172a;
}

.lk-licence-value {
    text-align: right;
    color: #1e293b;
}

.lk-licence-card-footer {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Boutons cohérents */

.lk-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #007cff, #00b1ff);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.35);
    cursor: pointer;
}

.lk-btn-primary:hover {
    filter: brightness(1.05);
}

.lk-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.lk-btn-ghost:hover {
    background: #e5efff;
}

@media (max-width: 768px) {
    .lk-licence-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .lk-licence-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .lk-licence-value {
        text-align: left;
    }
    .lk-licence-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
}


.lk-licence-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #0b1b2c;
    color: #ffffff;
    font-size: 14px;
}

.lk-licence-banner.is-trial {
    background: #167ec8; /* Essai 7 jours */
}

.lk-licence-banner.is-active {
    background: #2f855a; /* Licence active */
}

.lk-licence-banner-info {
    flex: 1;
    min-width: 0;
}

.lk-licence-banner .lk-btn {
    white-space: nowrap;
}
.lk-licence-btn {
    display: inline-block;
    background: #ffffff;
    color: #0b1b2c;
    font-weight: 600;
    padding: 4px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: 0.2s ease;
}

.lk-licence-btn:hover {
    background: #e2e8f0;
    color: #0b1b2c;
}


.lk-licence-main {
    font-weight: 600;
    margin-bottom: 2px;
}

.lk-licence-sms {
    font-size: 12px;
    opacity: 0.9;
}







































/* =========================================================
   LOCKIPAY – UI PREMIUM UNIFIÉE
   À coller tout en bas du CSS dashboard principal
   ========================================================= */

:root{
  --lk-ui-bg: #f5f6fb;
  --lk-ui-surface: #ffffff;
  --lk-ui-surface-2: #f8f9fe;
  --lk-ui-border: #e4e8f3;

  --lk-ui-text: #202748;
  --lk-ui-text-soft: #6f7898;

  --lk-ui-primary: #2c2a72;
  --lk-ui-primary-2: #1f1d58;
  --lk-ui-primary-3: #4f57c8;
  --lk-ui-primary-4: #6473ff;

  --lk-ui-success: #1ea86d;
  --lk-ui-success-bg: #eaf8f1;

  --lk-ui-warning: #f59e0b;
  --lk-ui-warning-bg: #fff5df;

  --lk-ui-danger: #e15b64;
  --lk-ui-danger-bg: #fdecee;

  --lk-ui-shadow-soft: 0 8px 22px rgba(30, 36, 74, 0.08);
  --lk-ui-shadow-md: 0 14px 35px rgba(30, 36, 74, 0.10);
  --lk-ui-shadow-lg: 0 22px 50px rgba(30, 36, 74, 0.14);

  --lk-ui-radius-sm: 10px;
  --lk-ui-radius-md: 14px;
  --lk-ui-radius-lg: 20px;
}

/* ===== PAGE GLOBALE ===== */
body,
.lk-db-page,
.lk-dash-container {
  background: var(--lk-ui-bg) !important;
  color: var(--lk-ui-text);
}

/* ===== SHELL ===== */
.lk-dash-container{
  max-width: 1440px !important;
  margin: 24px auto 50px !important;
  padding: 0 18px !important;
}

.lk-dash-shell{
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) 340px !important;
  gap: 20px !important;
  align-items: start !important;
}

/* Si la 3e colonne n’existe pas sur certaines vues, aucun souci */
@media (max-width: 1200px){
  .lk-dash-shell{
    grid-template-columns: 240px minmax(0, 1fr) !important;
  }
}
@media (max-width: 960px){
  .lk-dash-shell{
    grid-template-columns: 1fr !important;
  }
}

/* ===== SIDEBAR ===== */
.lk-dash-sidebar{
  background: linear-gradient(180deg, #2c2a72 0%, #1f1d58 100%) !important;
  color: #ffffff !important;
  border-radius: 22px !important;
  padding: 18px 16px !important;
  box-shadow: 0 20px 45px rgba(34, 31, 92, 0.28) !important;
  min-height: 720px !important;
  border: 1px solid rgba(255,255,255,0.06);
}

.lk-dash-logo{
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
}

.lk-dash-user,
.lk-dash-sidebar-footer{
  color: rgba(255,255,255,0.78) !important;
  font-size: 13px !important;
}

.lk-dash-menu{
  margin-top: 12px !important;
  gap: 8px !important;
}

.lk-dash-menu-link{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.04) !important;
  color: #eef2ff !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease !important;
}

.lk-dash-menu-link:hover{
  background: rgba(91,116,255,0.16) !important;
  border-color: rgba(130,145,255,0.18) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03) !important;
  transform: none !important;
}

.lk-dash-menu-link.is-active{
  background: linear-gradient(135deg, #5d6aff 0%, #4f57c8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(79,87,200,0.32) !important;
  border-color: transparent !important;
}

.lk-dash-menu-pill{
  background: rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
}

.lk-dash-menu-link.is-active .lk-dash-menu-pill{
  background: rgba(255,255,255,0.18) !important;
  color: #ffffff !important;
}

/* ===== ZONE PRINCIPALE ===== */
.lk-dash-main,
.lk-db-card,
.lk-pp-panel,
.lk-support-card,
.lk-support-side-card,
.lk-licence-card{
  background: var(--lk-ui-surface) !important;
  border: 1px solid var(--lk-ui-border) !important;
  border-radius: 22px !important;
  box-shadow: var(--lk-ui-shadow-md) !important;
}

.lk-dash-main{
  padding: 18px 18px 20px !important;
  min-height: 720px !important;
}

.lk-dash-main-header h1,
.lk-pp-panel-header h2,
.lk-support-card h2,
.lk-support-side-card h3{
  color: var(--lk-ui-text) !important;
}

.lk-dash-main-subtitle,
.lk-help,
.lk-support-intro,
.lk-pp-panel-intro,
.lk-db-item__meta,
.lk-db-select-label{
  color: var(--lk-ui-text-soft) !important;
}

/* ===== ALERTES / MESSAGES ===== */
.lk-db-alert,
.lk-pp-notice,
.lk-support-alert{
  border-radius: 14px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
}

.lk-db-alert--warning{
  background: #fff6de !important;
  border: 1px solid #f3d58b !important;
  color: #7a5a00 !important;
}

.lk-pp-notice-success,
.lk-support-alert--success,
.updated,
.notice-success{
  background: #eaf8f1 !important;
  border: 1px solid #bfe6d2 !important;
  color: #1f7a50 !important;
}

.lk-pp-notice-error,
.lk-support-alert--error,
.notice-error{
  background: #fdecee !important;
  border: 1px solid #f3c7cb !important;
  color: #a13643 !important;
}

/* ===== TOOLBAR / SEARCH / SELECT ===== */
.lk-db-toolbar{
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.lk-db-toolbar__search{
  position: relative !important;
}

.lk-db-input,
.lk-db-select,
.lk-input,
.lk-textarea,
.lk-support-input,
.lk-support-textarea,
.lk-public-checkout input[type="text"],
.lk-public-checkout input[type="email"],
.lk-public-checkout select{
  background: #fbfcff !important;
  color: var(--lk-ui-text) !important;
  border: 1px solid var(--lk-ui-border) !important;
  border-radius: 14px !important;
  min-height: 44px !important;
  box-shadow: none !important;
}

.lk-textarea,
.lk-support-textarea{
  min-height: 110px !important;
  padding-top: 12px !important;
}

.lk-db-input:focus,
.lk-db-select:focus,
.lk-input:focus,
.lk-textarea:focus,
.lk-support-input:focus,
.lk-support-textarea:focus,
.lk-public-checkout input[type="text"]:focus,
.lk-public-checkout input[type="email"]:focus,
.lk-public-checkout select:focus{
  outline: none !important;
  border-color: rgba(91,116,255,0.45) !important;
  box-shadow: 0 0 0 4px rgba(91,116,255,0.10) !important;
  background: #ffffff !important;
}

/* ===== BOUTONS PRINCIPAUX ===== */
.lk-db-btn,
.lk-btn,
.lk-primary-btn,
.lk-support-btn-primary,
.lk-btn-primary{
  border-radius: 999px !important;
  min-height: 40px !important;
  padding: 9px 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  transition: all .16s ease !important;
}

.lk-db-btn--primary,
.lk-primary-btn,
.lk-support-btn-primary,
.lk-btn-primary{
  background: linear-gradient(135deg, #5d6aff 0%, #4f57c8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(91,116,255,0.26) !important;
}

.lk-db-btn--primary:hover,
.lk-primary-btn:hover,
.lk-support-btn-primary:hover,
.lk-btn-primary:hover{
  filter: brightness(1.03) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 16px 30px rgba(91,116,255,0.32) !important;
}

/* Boutons ghost / transparents pro */
.lk-db-btn--ghost,
.lk-btn-outline,
.lk-btn-secondary{
  background: rgba(91,116,255,0.06) !important;
  color: var(--lk-ui-primary) !important;
  border: 1px solid rgba(91,116,255,0.18) !important;
  box-shadow: none !important;
}

.lk-db-btn--ghost:hover,
.lk-btn-outline:hover,
.lk-btn-secondary:hover{
  background: rgba(91,116,255,0.12) !important;
  border-color: rgba(91,116,255,0.26) !important;
  color: var(--lk-ui-primary) !important;
  transform: translateY(-1px) !important;
}

/* Boutons blancs dans bandeaux */
.lk-db-btn--white,
.lk-db-header-btn--capture{
  background: #ffffff !important;
  color: var(--lk-ui-primary) !important;
  border: 1px solid rgba(255,255,255,0.8) !important;
  box-shadow: 0 6px 14px rgba(20,24,60,0.10) !important;
}
.lk-db-btn--white:hover,
.lk-db-header-btn--capture:hover{
  background: rgba(255,255,255,0.92) !important;
}

/* Boutons transparents bleus au hover */
.lk-db-header-btn--release,
.lk-db-header-btn--refund,
.lk-db-item__toggle{
  border-radius: 999px !important;
  transition: all .16s ease !important;
}

.lk-db-header-btn--release{
  background: rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}
.lk-db-header-btn--release:hover{
  background: rgba(135,158,255,0.20) !important;
  border-color: rgba(255,255,255,0.22) !important;
}

.lk-db-header-btn--refund{
  background: rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: none !important;
}
.lk-db-header-btn--refund:hover{
  background: rgba(135,158,255,0.20) !important;
  border-color: rgba(255,255,255,0.22) !important;
}

.lk-db-item__toggle{
  color: #5b63a6 !important;
}
.lk-db-item__toggle:hover{
  background: rgba(91,116,255,0.10) !important;
  border-color: rgba(91,116,255,0.18) !important;
  color: var(--lk-ui-primary) !important;
}

/* ===== LISTE TRANSACTIONS ===== */
.lk-db-list{
  gap: 10px !important;
  max-height: none !important;
  overflow: visible !important;
}

.lk-db-item{
  border: 1px solid var(--lk-ui-border) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: var(--lk-ui-shadow-soft) !important;
  transition: transform .16s ease, box-shadow .16s ease !important;
}

.lk-db-item:hover{
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(30, 36, 74, 0.12) !important;
}

.lk-db-item__header{
  background: linear-gradient(135deg, #4f57c8 0%, #5d6aff 100%) !important;
  color: #ffffff !important;
  padding: 10px 12px !important;
}

.lk-db-item__reference{
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.lk-db-item__date{
  color: rgba(255,255,255,0.86) !important;
  font-size: 12px !important;
}

.lk-db-item__body{
  padding: 10px 12px 12px !important;
  color: var(--lk-ui-text) !important;
}

.lk-db-item__top{
  border-bottom: 1px solid #edf1f8 !important;
  padding-bottom: 7px !important;
  margin-bottom: 8px !important;
}

.lk-db-item__meta-row{
  gap: 8px 14px !important;
}

/* ===== STATUTS ===== */
.lk-db-status-dot{
  width: 8px !important;
  height: 8px !important;
}
.lk-db-status--valide{ background: var(--lk-ui-success) !important; }
.lk-db-status--libere{ background: #5d6aff !important; }
.lk-db-status--capture{ background: var(--lk-ui-danger) !important; }

/* ===== PAGINATION ===== */
.lk-db-pagination{
  margin-top: 14px !important;
  gap: 8px !important;
}

.lk-db-page-btn{
  min-width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid var(--lk-ui-border) !important;
  background: #ffffff !important;
  color: var(--lk-ui-text) !important;
  box-shadow: none !important;
}

.lk-db-page-btn:hover:not(:disabled):not(.lk-db-page-btn--active){
  background: rgba(91,116,255,0.08) !important;
  border-color: rgba(91,116,255,0.18) !important;
  color: var(--lk-ui-primary) !important;
  transform: translateY(-1px) !important;
}

.lk-db-page-btn--active{
  background: linear-gradient(135deg, #4f57c8 0%, #5d6aff 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 20px rgba(91,116,255,0.22) !important;
}

/* ===== ONGLETS / PASTILLES ===== */
.lk-dash-main .lk-tab-link,
.lk-pp-main-tab,
.lk-pp-sub-tab{
  border-radius: 999px !important;
  min-height: 36px !important;
  padding: 8px 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(91,116,255,0.16) !important;
  color: var(--lk-ui-primary) !important;
  box-shadow: none !important;
}

.lk-dash-main .lk-tab-link:hover,
.lk-pp-main-tab:hover,
.lk-pp-sub-tab:hover{
  background: rgba(91,116,255,0.08) !important;
  border-color: rgba(91,116,255,0.24) !important;
  color: var(--lk-ui-primary) !important;
  transform: translateY(-1px) !important;
}

.lk-dash-main .lk-tab-link.is-active,
.lk-pp-main-tab.is-active,
.lk-pp-sub-tab.is-active{
  background: linear-gradient(135deg, #4f57c8 0%, #5d6aff 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 20px rgba(91,116,255,0.22) !important;
}

/* ===== MODALES ===== */
.lk-db-modal__dialog{
  background: #ffffff !important;
  color: var(--lk-ui-text) !important;
  border-radius: 20px !important;
  box-shadow: 0 26px 60px rgba(30,36,74,0.20) !important;
  padding: 22px 22px 18px !important;
}

.lk-db-modal__header h3{
  color: var(--lk-ui-text) !important;
}

.lk-db-modal__close{
  color: #8690ad !important;
}
.lk-db-modal__close:hover{
  color: var(--lk-ui-primary) !important;
}

.lk-db-modal__info{
  color: var(--lk-ui-text-soft) !important;
}

.lk-db-modal__backdrop{
  background: rgba(16, 20, 52, 0.52) !important;
}

.lk-db-modal .lk-db-input,
.lk-db-modal .lk-db-textarea{
  background: #fbfcff !important;
  color: var(--lk-ui-text) !important;
  border: 1px solid var(--lk-ui-border) !important;
}

.lk-db-modal .lk-db-input:focus,
.lk-db-modal .lk-db-textarea:focus{
  border-color: rgba(91,116,255,0.45) !important;
  box-shadow: 0 0 0 4px rgba(91,116,255,0.10) !important;
}

/* ===== PAGE PUBLIQUE PAIEMENT / CAUTION ===== */
.lk-public-wrapper{
  background: var(--lk-ui-bg) !important;
}

.lk-public-card{
  background: #ffffff !important;
  border: 1px solid var(--lk-ui-border) !important;
  border-radius: 22px !important;
  box-shadow: var(--lk-ui-shadow-lg) !important;
}

.lk-public-title{
  color: var(--lk-ui-text) !important;
}

.lk-badge-mode{
  background: rgba(91,116,255,0.10) !important;
  color: var(--lk-ui-primary) !important;
}

.lk-badge-ephemere{
  background: #fff3d8 !important;
  color: #926000 !important;
}

.lk-public-checkout .lk-btn-primary{
  background: linear-gradient(135deg, #5d6aff 0%, #4f57c8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(91,116,255,0.24) !important;
}

/* ===== SUPPORT / DEMANDE ===== */
.lk-support-side-card{
  background: #f7f8fe !important;
}

/* ===== PETITS AJUSTEMENTS ===== */
.lk-db-empty{
  border-radius: 16px !important;
  border: 1px dashed #d7dced !important;
  background: #fbfcff !important;
  color: var(--lk-ui-text-soft) !important;
}

.lk-dash-main .lk-tabs-bar{
  background: transparent !important;
  box-shadow: none !important;
}

/* Scrollbars douces */
.lk-db-list::-webkit-scrollbar,
.lk-public-cgv-content::-webkit-scrollbar{
  width: 8px;
}
.lk-db-list::-webkit-scrollbar-thumb,
.lk-public-cgv-content::-webkit-scrollbar-thumb{
  background: #d8ddef;
  border-radius: 999px;
}
.lk-db-list::-webkit-scrollbar-track,
.lk-public-cgv-content::-webkit-scrollbar-track{
  background: transparent;
}





/* =========================================================
   LOCKIPAY – PATCH FINAL CIBLÉ
   Corrige :
   1) vide à droite
   2) mauvais bleu du header
   3) mauvaises couleurs boutons/pastilles
   4) logo sidebar
   ========================================================= */

:root{
  --lk-bg: #f3f4f8;
  --lk-surface: #ffffff;
  --lk-border: #e5e8f1;

  --lk-text: #1f2340;
  --lk-muted: #737b98;

  --lk-purple-1: #26256d;
  --lk-purple-2: #1d1c57;
  --lk-purple-3: #4e56c8;
  --lk-purple-4: #5f75ff;

  --lk-blue-soft: rgba(95,117,255,0.10);
  --lk-blue-soft-hover: rgba(95,117,255,0.16);

  --lk-shadow: 0 16px 38px rgba(27, 31, 74, 0.10);
  --lk-shadow-soft: 0 8px 22px rgba(27, 31, 74, 0.08);

  /* Remplace cette URL par l’URL MEDIA WORDPRESS de ton logo */
  --lk-logo-url: url("https://lockipay.fr/wp-content/uploads/2025/11/logo-1.png");
}

/* ===== Fond global ===== */
body,
.lk-dash-container,
.lk-db-page {
  background: var(--lk-bg) !important;
}

/* =========================================================
   1) SUPPRIMER LE GROS VIDE À DROITE
   ========================================================= */

/* Conteneur global plus propre */
.lk-dash-container{
  max-width: 1280px !important;
  margin: 28px auto 48px !important;
  padding: 0 18px !important;
}

/* IMPORTANT : on repasse sur 2 colonnes seulement */
.lk-dash-shell{
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

/* Zone principale pleine largeur */
.lk-dash-main{
  width: 100% !important;
  min-width: 0 !important;
  background: var(--lk-surface) !important;
  border-radius: 22px !important;
  box-shadow: var(--lk-shadow) !important;
  border: 1px solid var(--lk-border) !important;
  padding: 18px 18px 22px !important;
}

/* Si un bloc interne force une largeur trop faible, on le relâche */
.lk-db-card,
.lk-dash-main > *,
.lk-dash-main .lk-tab-panel{
  max-width: 100% !important;
}

/* Responsive */
@media (max-width: 960px){
  .lk-dash-shell{
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   2) HEADER HAUT : SUPPRIMER LE MAUVAIS BLEU
   Adapte les sélecteurs du header visuel existant
   ========================================================= */

/* Essaie ces sélecteurs génériques du bandeau supérieur */
.site-header,
#site-header,
.oceanwp-header-wrap,
#top-bar-wrap,
#site-logo,
.custom-logo-link,
header,
.lk-top-logo-bar {
  background: linear-gradient(90deg, var(--lk-purple-2) 0%, var(--lk-purple-1) 52%, #2f3384 100%) !important;
  border: none !important;
  box-shadow: none !important;
}

/* Si ton logo horizontal est dans un bandeau spécifique */
.oceanwp-header-wrap,
#site-header,
header {
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

/* =========================================================
   3) SIDEBAR + LOGO EXACT / PROPRE
   ========================================================= */

.lk-dash-sidebar{
  background: linear-gradient(180deg, var(--lk-purple-1) 0%, var(--lk-purple-2) 100%) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 40px rgba(31, 29, 87, 0.28) !important;
  padding: 18px 16px !important;
  min-height: 680px !important;
  color: #ffffff !important;
}

/* On masque le texte brut et on injecte le logo en fond */
.lk-dash-logo{
  position: relative !important;
  min-height: 86px !important;
  margin-bottom: 10px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Pseudo logo */
.lk-dash-logo::before{
  content: "" !important;
  display: block !important;
  width: 150px !important;
  height: 74px !important;
  background-image: var(--lk-logo-url) !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: contain !important;
}

/* Si le nom utilisateur est trop collé */
.lk-dash-user{
  color: rgba(255,255,255,0.78) !important;
  font-size: 13px !important;
  margin-top: 4px !important;
}

/* Liens menu */
.lk-dash-menu{
  margin-top: 8px !important;
  gap: 8px !important;
}

.lk-dash-menu-link{
  min-height: 44px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.05) !important;
  color: #eef1ff !important;
  border: 1px solid transparent !important;
  transition: all .16s ease !important;
}

.lk-dash-menu-link:hover{
  background: var(--lk-blue-soft-hover) !important;
  border-color: rgba(95,117,255,0.18) !important;
  color: #ffffff !important;
  transform: none !important;
}

.lk-dash-menu-link.is-active{
  background: linear-gradient(135deg, var(--lk-purple-3) 0%, var(--lk-purple-4) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(95,117,255,0.25) !important;
}

.lk-dash-menu-pill{
  background: rgba(255,255,255,0.14) !important;
  color: #ffffff !important;
}

/* =========================================================
   4) BOUTONS / PASTILLES / HOVER BLEU TRANSPARENT
   ========================================================= */

/* Boutons généraux */
.lk-db-btn,
.lk-btn,
.lk-primary-btn,
.lk-support-btn-primary,
.lk-btn-primary{
  border-radius: 999px !important;
  min-height: 40px !important;
  padding: 9px 16px !important;
  font-weight: 600 !important;
  transition: all .15s ease !important;
}

/* Boutons principaux */
.lk-db-btn--primary,
.lk-primary-btn,
.lk-support-btn-primary,
.lk-btn-primary{
  background: linear-gradient(135deg, var(--lk-purple-3) 0%, var(--lk-purple-4) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 10px 22px rgba(95,117,255,0.24) !important;
}

.lk-db-btn--primary:hover,
.lk-primary-btn:hover,
.lk-support-btn-primary:hover,
.lk-btn-primary:hover{
  filter: brightness(1.03) !important;
  transform: translateY(-1px) !important;
}

/* Boutons ghost / transparents bleu */
.lk-db-btn--ghost,
.lk-btn-outline,
.lk-btn-secondary,
.lk-db-item__toggle{
  background: var(--lk-blue-soft) !important;
  color: var(--lk-purple-1) !important;
  border: 1px solid rgba(95,117,255,0.18) !important;
  box-shadow: none !important;
}

.lk-db-btn--ghost:hover,
.lk-btn-outline:hover,
.lk-btn-secondary:hover,
.lk-db-item__toggle:hover{
  background: var(--lk-blue-soft-hover) !important;
  color: var(--lk-purple-1) !important;
  border-color: rgba(95,117,255,0.24) !important;
  transform: translateY(-1px) !important;
}

/* Onglets / tabs */
.lk-dash-main .lk-tab-link,
.lk-pp-main-tab,
.lk-pp-sub-tab{
  background: #ffffff !important;
  color: var(--lk-purple-1) !important;
  border: 1px solid rgba(95,117,255,0.18) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  transition: all .15s ease !important;
}

.lk-dash-main .lk-tab-link:hover,
.lk-pp-main-tab:hover,
.lk-pp-sub-tab:hover{
  background: var(--lk-blue-soft-hover) !important;
  color: var(--lk-purple-1) !important;
  border-color: rgba(95,117,255,0.24) !important;
}

.lk-dash-main .lk-tab-link.is-active,
.lk-pp-main-tab.is-active,
.lk-pp-sub-tab.is-active{
  background: linear-gradient(135deg, var(--lk-purple-3) 0%, var(--lk-purple-4) 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 20px rgba(95,117,255,0.22) !important;
}

/* Packs SMS : tes boutons verts entourés */
.lk-lockiz-card{
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
  color: var(--lk-text) !important;
  border: 1px solid var(--lk-border) !important;
  box-shadow: var(--lk-shadow) !important;
}

.lk-lockiz-card h2,
.lk-lockiz-card p,
.lk-lockiz-credits{
  color: var(--lk-text) !important;
}

.lk-lockiz-packs{
  gap: 14px !important;
}

.lk-lockiz-pack,
.lk-lockiz-pack--premium{
  background: linear-gradient(135deg, var(--lk-purple-3) 0%, var(--lk-purple-4) 100%) !important;
  color: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 24px rgba(95,117,255,0.24) !important;
  transform: none !important;
}

.lk-lockiz-pack::before,
.lk-lockiz-pack--premium::before,
.lk-lockiz-pack--premium::after{
  display: none !important;
}

.lk-lockiz-pack:hover,
.lk-lockiz-pack--premium:hover{
  filter: brightness(1.03) !important;
  transform: translateY(-2px) !important;
}

/* Switch / toggle (zone verte entourée en bas) */
input[type="checkbox"] + .slider,
.lkc-switch .slider,
.lk-switch .slider{
  background: rgba(95,117,255,0.18) !important;
}

input[type="checkbox"]:checked + .slider,
.lkc-switch input:checked + .slider,
.lk-switch input:checked + .slider{
  background: linear-gradient(135deg, var(--lk-purple-3) 0%, var(--lk-purple-4) 100%) !important;
}

/* ===== Inputs / cartes ===== */
.lk-db-card,
.lk-pp-panel,
.lk-support-card,
.lk-support-side-card,
.lk-licence-card{
  background: #ffffff !important;
  border: 1px solid var(--lk-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--lk-shadow-soft) !important;
}

.lk-db-input,
.lk-db-select,
.lk-input,
.lk-support-input,
.lk-support-textarea,
.lk-textarea{
  background: #fbfcff !important;
  border: 1px solid var(--lk-border) !important;
  border-radius: 14px !important;
  color: var(--lk-text) !important;
}

.lk-db-input:focus,
.lk-db-select:focus,
.lk-input:focus,
.lk-support-input:focus,
.lk-support-textarea:focus,
.lk-textarea:focus{
  outline: none !important;
  border-color: rgba(95,117,255,0.40) !important;
  box-shadow: 0 0 0 4px rgba(95,117,255,0.10) !important;
  background: #ffffff !important;
}

/* ===== Listes transactions ===== */
.lk-db-item{
  border-radius: 18px !important;
  border: 1px solid var(--lk-border) !important;
  box-shadow: var(--lk-shadow-soft) !important;
  overflow: hidden !important;
}

.lk-db-item__header{
  background: linear-gradient(135deg, var(--lk-purple-3) 0%, var(--lk-purple-4) 100%) !important;
  color: #ffffff !important;
}

.lk-db-header-btn--capture{
  background: #ffffff !important;
  color: var(--lk-purple-1) !important;
  border: 1px solid rgba(255,255,255,0.8) !important;
}

.lk-db-header-btn--release,
.lk-db-header-btn--refund{
  background: rgba(255,255,255,0.10) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}

.lk-db-header-btn--release:hover,
.lk-db-header-btn--refund:hover{
  background: rgba(135,158,255,0.20) !important;
}

/* ===== Pagination ===== */
.lk-db-page-btn{
  border-radius: 999px !important;
  border: 1px solid var(--lk-border) !important;
  background: #ffffff !important;
  color: var(--lk-text) !important;
}

.lk-db-page-btn:hover:not(:disabled):not(.lk-db-page-btn--active){
  background: var(--lk-blue-soft-hover) !important;
  color: var(--lk-purple-1) !important;
  border-color: rgba(95,117,255,0.24) !important;
}

.lk-db-page-btn--active{
  background: linear-gradient(135deg, var(--lk-purple-3) 0%, var(--lk-purple-4) 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* ===== Bandeau succès vert : plus propre ===== */
.updated,
.notice-success,
.lk-db-alert--warning{
  border-radius: 14px !important;
}


/* =========================================
   LOCKIPAY – SÉCURITÉ MOBILE
   ========================================= */
@media (max-width: 960px){

  .lk-dash-shell{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .lk-dash-sidebar,
  .lk-dash-main,
  .lk-db-card,
  .lk-pp-panel,
  .lk-support-card,
  .lk-support-side-card{
    width: 100% !important;
    min-width: 0 !important;
  }

  .lk-dash-container{
    padding: 0 12px !important;
    margin: 16px auto 28px !important;
  }

  .lk-dash-sidebar{
    min-height: auto !important;
    border-radius: 18px !important;
  }

  .lk-dash-main{
    padding: 14px !important;
    border-radius: 18px !important;
    min-height: auto !important;
  }

  /* évite que les contenus débordent */
  .lk-dash-main *,
  .lk-db-card *,
  .lk-pp-panel *,
  .lk-support-card *{
    max-width: 100%;
    box-sizing: border-box;
  }

  /* inputs et selects */
  .lk-db-input,
  .lk-db-select,
  .lk-input,
  .lk-support-input,
  .lk-support-textarea,
  .lk-textarea{
    width: 100% !important;
    min-width: 0 !important;
  }

  /* toolbar */
  .lk-db-toolbar{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .lk-db-toolbar__search,
  .lk-db-toolbar__filters{
    width: 100% !important;
  }

  .lk-db-toolbar__filters{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  /* lignes transactions */
  .lk-db-item__header{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .lk-db-item__header-actions{
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .lk-db-item__top{
    flex-wrap: wrap !important;
  }

  .lk-db-item__meta-row{
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .lk-db-item__details-inner{
    grid-template-columns: 1fr !important;
  }

  /* onglets paramètres */
  .lk-dash-main .lk-tabs-bar,
  .lk-pp-main-tabs,
  .lk-pp-sub-tabs{
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch;
  }

  .lk-dash-main .lk-tab-link,
  .lk-pp-main-tab,
  .lk-pp-sub-tab{
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  /* packs sms */
  .lk-lockiz-packs{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .lk-lockiz-pack,
  .lk-lockiz-pack--premium{
    max-width: 100% !important;
    width: 100% !important;
  }

  /* logo sidebar */
  .lk-dash-logo::before{
    width: 130px !important;
    height: 64px !important;
  }
}


/* =========================================================
   LOCKIPAY – FIX FINAL DASHBOARD / MOBILE / HEADER / LOGO
   À coller tout en bas APRÈS avoir corrigé l'accolade manquante
   ========================================================= */

/* =========================
   1) SUPPRIMER LE BANDEAU HAUT SUR MON LOCKIPAY
   ========================= */

/* Cache le header visuel du thème uniquement sur les pages Lockipay dashboard */
body.page .oceanwp-header-wrap,
body.page #site-header,
body.page .site-header,
body.page #top-bar-wrap {
  display: none !important;
}

/* Supprime l'espace laissé par le header */
body.page.admin-bar .lk-dash-container {
  margin-top: 20px !important;
}

/* Si tu veux cibler uniquement l’espace client Lockipay, plus propre : */
body[class*="mon-lockipay"] .oceanwp-header-wrap,
body[class*="mon-lockipay"] #site-header,
body[class*="mon-lockipay"] .site-header,
body[class*="mon-lockipay"] #top-bar-wrap {
  display: none !important;
}

body[class*="mon-lockipay"] #main,
body[class*="mon-lockipay"] .site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* =========================
   2) LOGO SIDEBAR À LA PLACE DE "Mon Lockipay"
   ========================= */

:root{
  --lk-logo-url: url("https://lockipay.fr/wp-content/uploads/2025/11/logo-1.png");
}

/* Cache le texte brut */
.lk-dash-logo{
  position: relative !important;
  min-height: 110px !important;
  margin-bottom: 12px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}

/* Injecte le logo */
.lk-dash-logo::before{
  content: "" !important;
  display: block !important;
  width: 180px !important;
  height: 90px !important;
  background-image: var(--lk-logo-url) !important;
  background-repeat: no-repeat !important;
  background-position: left top !important;
  background-size: contain !important;
}

/* =========================
   3) CORRIGER LE TEXTE QUI PART À DROITE SUR MOBILE
   ========================= */

@media (max-width: 960px){

  .lk-dash-shell{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .lk-dash-container{
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 12px !important;
    margin: 14px auto 24px !important;
    overflow-x: hidden !important;
  }

  .lk-dash-sidebar,
  .lk-dash-main,
  .lk-db-card,
  .lk-pp-panel,
  .lk-support-card,
  .lk-support-side-card,
  .lk-licence-card,
  .lk-settings-card,
  .lk-lockiz-card{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .lk-dash-sidebar{
    min-height: auto !important;
    padding: 16px 14px !important;
  }

  .lk-dash-main{
    min-height: auto !important;
    padding: 14px !important;
  }

  /* Évite les débordements internes */
  .lk-dash-main *,
  .lk-db-card *,
  .lk-pp-panel *,
  .lk-support-card *,
  .lk-licence-card *,
  .lk-settings-card *,
  .lk-lockiz-card *{
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    word-break: break-word;
  }

  /* Grilles en 1 colonne sur mobile */
  .lk-settings-grid,
  .lk-settings-grid--2,
  .lk-licences-grid,
  .lk-support-wrapper,
  .lk-field-grid,
  .lk-db-item__details-inner{
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  /* Ligne meta transactions */
  .lk-db-item__meta-row{
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  /* Toolbar */
  .lk-db-toolbar{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .lk-db-toolbar__search,
  .lk-db-toolbar__filters{
    width: 100% !important;
  }

  .lk-db-toolbar__filters{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  /* Onglets paramètres : scroll horizontal propre */
  .lk-dash-main .lk-tabs-bar,
  .lk-pp-main-tabs,
  .lk-pp-sub-tabs{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: flex-start !important;
    padding: 0 0 6px 0 !important;
    margin-bottom: 12px !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .lk-dash-main .lk-tab-link,
  .lk-pp-main-tab,
  .lk-pp-sub-tab{
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  /* Champs formulaire */
  .lk-input,
  .lk-db-input,
  .lk-db-select,
  .lk-support-input,
  .lk-support-textarea,
  .lk-textarea{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Paiements iframe */
  .lk-payments-add-wrapper{
    width: 100% !important;
    max-width: 100% !important;
  }

  .lk-payments-iframe{
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    min-height: 100% !important;
  }

  /* Logo plus petit sur mobile */
  .lk-dash-logo{
    min-height: 86px !important;
  }

  .lk-dash-logo::before{
    width: 145px !important;
    height: 70px !important;
  }
}

/* =========================
   4) PETIT NETTOYAGE SIDEBAR
   ========================= */

.lk-dash-sidebar{
  overflow: hidden !important;
}

.lk-dash-user{
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* =========================================
   FIX MINIMUM LOCKIPAY
   ========================================= */

/* 1) Supprimer le bandeau logo du haut sur la page Mon Lockipay */
body[class*="mon-lockipay"] #site-header,
body[class*="mon-lockipay"] .oceanwp-header-wrap,
body[class*="mon-lockipay"] .site-header,
body[class*="mon-lockipay"] #top-bar-wrap,
body[class*="mon-lockipay"] .custom-logo-link,
body[class*="mon-lockipay"] #site-logo {
  display: none !important;
}

body[class*="mon-lockipay"] #main,
body[class*="mon-lockipay"] .site-main,
body[class*="mon-lockipay"] #content-wrap {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 2) Bloc bleu "Permanent - Caution" : texte lisible + padding */
.lk-pp-panel .lk-pp-panel-header,
.lk-pp-panel-header {
  background: linear-gradient(135deg, #2c2a72 0%, #4e56c8 100%) !important;
  color: #ffffff !important;
  padding: 18px 20px !important;
  border-radius: 16px !important;
  margin-bottom: 14px !important;
}

.lk-pp-panel .lk-pp-panel-header h2,
.lk-pp-panel-header h2 {
  color: #ffffff !important;
  margin: 0 0 6px !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
}

.lk-pp-panel .lk-pp-panel-intro,
.lk-pp-panel-intro {
  color: rgba(255,255,255,0.92) !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* 3) Mobile : empêcher le texte/tableau de tomber lettre par lettre */
@media (max-width: 700px) {
  .lk-pp-table,
  .lk-pp-table thead,
  .lk-pp-table tbody,
  .lk-pp-table tr,
  .lk-pp-table th,
  .lk-pp-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .lk-pp-table th,
  .lk-pp-table td {
    padding: 8px 10px !important;
    text-align: left !important;
  }

  .lk-pp-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .lk-btn,
  .lk-pp-actions .lk-btn {
    width: 100% !important;
    justify-content: center !important;
    white-space: normal !important;
  }

  .lk-pp-link-input {
    max-width: 100% !important;
    width: 100% !important;
  }

  .lk-pp-qr {
    width: 56px !important;
    height: 56px !important;
  }
}


/* =========================================================
   FIX FINAL – PAGE PAIEMENT & CAUTIONS
   ========================================================= */

/* 1) SUPPRIMER LE BANDEAU BLEU ELEMENTOR DU HAUT */
.elementor-element.elementor-element-2ca7515,
.elementor-2 .elementor-element.elementor-element-2ca7515 {
  display: none !important;
}

/* au cas où le bandeau laisse un espace */
body .elementor-location-header,
body header.oceanwp-header-wrap,
body #site-header,
body #top-bar-wrap {
  display: none !important;
}

body #main,
body .site-main,
body #content-wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 2) REMETTRE LA TABLE COMME AVANT SUR MOBILE
   (on annule les display:block qui ont tout cassé) */
@media (max-width: 700px) {

  .lk-pp-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .lk-pp-table {
    display: table !important;
    width: 100% !important;
    min-width: 720px !important; /* scroll horizontal propre au lieu de tout casser */
    border-collapse: collapse !important;
    table-layout: auto !important;
  }

  .lk-pp-table thead {
    display: table-header-group !important;
  }

  .lk-pp-table tbody {
    display: table-row-group !important;
  }

  .lk-pp-table tr {
    display: table-row !important;
  }

  .lk-pp-table th,
  .lk-pp-table td {
    display: table-cell !important;
    width: auto !important;
    max-width: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    vertical-align: top !important;
    text-align: left !important;
    padding: 8px 10px !important;
  }

  /* 3) ACTIONS : propres, mais dans la bonne cellule */
  .lk-pp-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-width: 120px !important;
  }

  .lk-pp-actions .lk-btn,
  .lk-pp-actions button,
  .lk-pp-actions a {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .lk-pp-link-input {
    width: 100% !important;
    max-width: 180px !important;
  }

  .lk-pp-qr {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
  }
}

/* =========================================================
   KPI SIDEBAR PREMIUM
   ========================================================= */

.lk-sidebar-kpi {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 14px 0 18px;
}

.lk-kpi-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 22px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(14, 19, 66, 0.24);
}

.lk-kpi-card--sms {
    padding: 18px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #F3F4FF;
}

.lk-kpi-card--sms:hover {
    background: rgba(255,255,255,0.09);
}

.lk-kpi-card--total {
    padding: 24px 22px;
    background: linear-gradient(135deg, #3437A8 0%, #4B4FE0 45%, #5F75FF 100%); border: 1px solid rgba(255,255,255,0.08);
    color: #FFFFFF;
}

.lk-kpi-card__icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(93,106,255,0.22);
    color: #FFFFFF;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.lk-kpi-card__icon--soft {
    background: rgba(255,255,255,0.12);
}

.lk-kpi-card__icon svg,
.lk-kpi-card__arrow svg,
.lk-kpi-card__badge svg {
    width: 26px;
    height: 26px;
    display: block;
}

.lk-kpi-card__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lk-kpi-card__label {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    opacity: 0.92;
    letter-spacing: 0.01em;
}

.lk-kpi-card__value {
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lk-kpi-card__value--xl {
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-top: 3px;
    white-space: nowrap;
}

.lk-kpi-card__link {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.2;
    color: rgba(197, 204, 255, 0.95);
}

.lk-kpi-card__sub {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.25;
    color: rgba(234, 238, 255, 0.85);
}

.lk-kpi-card__arrow {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: rgba(255,255,255,0.72);
}

.lk-kpi-card__badge {
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 226, 187, 0.10);
    color: #77F0BA;
    box-shadow:
        0 0 0 14px rgba(108, 226, 187, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.lk-kpi-card__badge svg {
    width: 34px;
    height: 34px;
}

@media (max-width: 960px) {
    .lk-sidebar-kpi {
        gap: 12px;
    }

    .lk-kpi-card--sms {
        padding: 16px 16px;
    }

    .lk-kpi-card--total {
        padding: 18px 16px;
    }

    .lk-kpi-card__value--xl {
        font-size: 32px;
        white-space: normal;
    }

    .lk-kpi-card__badge {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }
}

/* =========================================================
   FIX KPI SIDEBAR MOBILE
   ========================================================= */

.lk-sidebar-kpi {
    width: 100%;
    min-width: 0;
}

.lk-kpi-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.lk-kpi-card__content {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.lk-kpi-card__label,
.lk-kpi-card__value,
.lk-kpi-card__value--xl,
.lk-kpi-card__link,
.lk-kpi-card__sub {
    writing-mode: initial !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.lk-kpi-card__value--xl {
    display: block;
    font-size: 44px;
    line-height: 1.05;
}

@media (max-width: 767px) {
    .lk-kpi-card {
        align-items: center;
    }

    .lk-kpi-card--sms {
        padding: 14px 14px;
        gap: 12px;
    }

    .lk-kpi-card--total {
        padding: 16px 14px;
        gap: 12px;
    }

    .lk-kpi-card__icon {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .lk-kpi-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .lk-kpi-card__arrow {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
    }

    .lk-kpi-card__arrow svg {
        width: 16px;
        height: 16px;
    }

    .lk-kpi-card__badge {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .lk-kpi-card__badge svg {
        width: 24px;
        height: 24px;
    }

    .lk-kpi-card__label {
        font-size: 12px;
        line-height: 1.2;
    }

    .lk-kpi-card__value {
        font-size: 22px;
        line-height: 1;
    }

    .lk-kpi-card__value--xl {
        font-size: 26px !important;
        line-height: 1.05;
        white-space: nowrap !important;
    }

    .lk-kpi-card__link,
    .lk-kpi-card__sub {
        font-size: 11px;
        line-height: 1.2;
    }
}



/* =========================================================
   KPI SIDEBAR – AJUSTEMENT FIN TABLETTE / PETIT DESKTOP
   ========================================================= */

@media (min-width: 481px) and (max-width: 767px) {

  .lk-dash-sidebar {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    row-gap: 12px !important;
    align-items: start !important;
  }

  .lk-dash-sidebar > div:first-child {
    margin-bottom: 8px !important;
  }

  .lk-dash-user {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .lk-sidebar-kpi {
    margin: 6px 0 14px !important;
  }

  .lk-kpi-card--sms {
    min-height: 90px !important;
    padding: 12px 14px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__label {
    font-size: 11px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__value {
    font-size: 16px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__link {
    font-size: 10px !important;
  }

  .lk-kpi-card--total {
    min-height: 96px !important;
    padding: 14px 16px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__label {
    font-size: 12px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__value,
  .lk-kpi-card--total .lk-kpi-card__value--xl {
    font-size: 18px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__sub {
    font-size: 11px !important;
  }
}

/* =========================================================
   KPI SIDEBAR – FIX TABLETTE / PETIT DESKTOP
   force les cartes à droite du logo
   ========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

  .lk-dash-sidebar {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    grid-template-areas:
      "brand sms"
      "user user"
      "total total"
      "menu menu"
      "footer footer" !important;
    column-gap: 14px !important;
    row-gap: 14px !important;
    align-items: start !important;
  }

  .lk-dash-sidebar > div:first-child {
    display: contents !important;
  }

  .lk-dash-logo {
    grid-area: brand !important;
    min-height: auto !important;
    margin: 0 !important;
  }

  .lk-dash-logo::before {
    width: 82px !important;
    height: 82px !important;
    background-position: left top !important;
    background-size: contain !important;
  }

  .lk-dash-user {
    grid-area: user !important;
    margin: -2px 0 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: rgba(255,255,255,0.88) !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .lk-sidebar-kpi {
    display: contents !important;
  }

  .lk-kpi-card--sms {
    grid-area: sms !important;
    min-height: 82px !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
    gap: 12px !important;
    align-items: center !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__icon {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    border-radius: 13px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__label {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__value {
    font-size: 16px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__link {
    font-size: 10px !important;
    line-height: 1.2 !important;
    margin-top: 3px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__arrow {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__arrow svg {
    width: 14px !important;
    height: 14px !important;
  }

  .lk-kpi-card--total {
    grid-area: total !important;
    min-height: 98px !important;
    padding: 14px 16px !important;
    gap: 12px !important;
    border-radius: 20px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    border-radius: 14px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__label {
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  .lk-kpi-card--total .lk-kpi-card__value,
  .lk-kpi-card--total .lk-kpi-card__value--xl {
    font-size: 18px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    margin-top: 2px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__sub {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin-top: 4px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__badge {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    flex: 0 0 52px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__badge svg {
    width: 24px !important;
    height: 24px !important;
  }

  .lk-dash-menu {
    grid-area: menu !important;
    margin-top: 2px !important;
  }

  .lk-dash-sidebar-footer {
    grid-area: footer !important;
    margin-top: 0 !important;
  }
}

/* =========================================================
   INFOS CLIENT – MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .lk-dash-user {
    margin: 2px 0 0 0 !important;
    padding: 0 2px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* =========================================================
   FIX FINAL KPI SIDEBAR – DESKTOP / TABLETTE
   vrai placement à droite du logo
   À COLLER TOUT EN BAS
   ========================================================= */

@media (min-width: 768px) {

  .lk-dash-sidebar {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    grid-template-areas:
      "brand sms"
      "user sms"
      "total total"
      "menu menu"
      "footer footer" !important;
    column-gap: 14px !important;
    row-gap: 14px !important;
    align-items: start !important;
  }

  /* on ouvre le wrapper logo + user */
  .lk-dash-sidebar > div:first-child {
    display: contents !important;
  }

  /* on ouvre aussi le wrapper des KPI */
  .lk-sidebar-kpi {
    display: contents !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .lk-dash-logo {
    grid-area: brand !important;
    min-height: auto !important;
    margin: 0 !important;
    align-self: start !important;
  }

  .lk-dash-logo::before {
    width: 96px !important;
    height: 96px !important;
    background-size: contain !important;
    background-position: left top !important;
  }

  .lk-dash-user {
    grid-area: user !important;
    margin: -2px 0 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    align-self: start !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* petite carte SMS à droite du logo */
  .lk-kpi-card--sms {
    grid-area: sms !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 90px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__icon {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__content {
    gap: 3px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__label {
    font-size: 12px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__value {
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__link {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__arrow {
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 14px !important;
    margin-left: auto !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__arrow svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* grande carte en dessous */
  .lk-kpi-card--total {
    grid-area: total !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 112px !important;
    margin: 0 !important;
    padding: 18px 18px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  .lk-kpi-card--total .lk-kpi-card__icon {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 15px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__label {
    font-size: 13px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  .lk-kpi-card--total .lk-kpi-card__value,
  .lk-kpi-card--total .lk-kpi-card__value--xl {
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .lk-kpi-card--total .lk-kpi-card__sub {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    white-space: normal !important;
  }

  .lk-kpi-card--total .lk-kpi-card__badge {
    flex: 0 0 56px !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    margin-left: auto !important;
  }

  .lk-kpi-card--total .lk-kpi-card__badge svg {
    width: 26px !important;
    height: 26px !important;
  }

  .lk-dash-menu {
    grid-area: menu !important;
    margin-top: 2px !important;
  }

  .lk-dash-sidebar-footer {
    grid-area: footer !important;
    margin-top: 0 !important;
  }
}

/* =========================================================
   FIX MOBILE – infos client mieux placées
   ========================================================= */

@media (max-width: 767px) {
  .lk-dash-user {
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* =========================================================
   FIX FINAL KPI SIDEBAR – DESKTOP + MOBILE
   ========================================================= */

/* -------- DESKTOP / TABLETTE -------- */
@media (min-width: 768px) {

  .lk-dash-sidebar {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    grid-template-areas:
      "brand sms"
      "user sms"
      "total total"
      "menu menu"
      "footer footer" !important;
    column-gap: 14px !important;
    row-gap: 14px !important;
    align-items: start !important;
  }

  .lk-dash-sidebar > div:first-child {
    display: contents !important;
  }

  .lk-sidebar-kpi {
    display: contents !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .lk-dash-logo {
    grid-area: brand !important;
    margin: 0 !important;
    min-height: auto !important;
    align-self: start !important;
  }

  .lk-dash-logo::before {
    width: 82px !important;
    height: 82px !important;
    background-position: left top !important;
    background-size: contain !important;
  }

  .lk-dash-user {
    grid-area: user !important;
    margin: -2px 0 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    align-self: start !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .lk-kpi-card--sms {
    grid-area: sms !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 90px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__icon {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__label {
    font-size: 12px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__value {
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__link {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__arrow {
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 14px !important;
    margin-left: auto !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__arrow svg {
    width: 14px !important;
    height: 14px !important;
  }

  .lk-kpi-card--total {
    grid-area: total !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 112px !important;
    margin: 0 !important;
    padding: 18px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  .lk-kpi-card--total .lk-kpi-card__icon {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 15px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__label {
    font-size: 13px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  .lk-kpi-card--total .lk-kpi-card__value,
  .lk-kpi-card--total .lk-kpi-card__value--xl {
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .lk-kpi-card--total .lk-kpi-card__sub {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    white-space: normal !important;
  }

  .lk-kpi-card--total .lk-kpi-card__badge {
    flex: 0 0 56px !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    margin-left: auto !important;
  }

  .lk-kpi-card--total .lk-kpi-card__badge svg {
    width: 26px !important;
    height: 26px !important;
  }

  .lk-dash-menu {
    grid-area: menu !important;
    margin-top: 2px !important;
  }

  .lk-dash-sidebar-footer {
    grid-area: footer !important;
    margin-top: 0 !important;
  }
}

/* -------- MOBILE -------- */
@media (max-width: 767px) {
  .lk-dash-user {
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .lk-kpi-card__label,
  .lk-kpi-card__value,
  .lk-kpi-card__value--xl,
  .lk-kpi-card__link,
  .lk-kpi-card__sub {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}

/* =========================================================
   FIX KPI DESKTOP FINAL – SIDEBAR PLUS LARGE + KPI LISIBLES
   À COLLER TOUT EN BAS
   ========================================================= */

@media (min-width: 768px) {

  /* 1) on élargit vraiment la colonne gauche */
  .lk-dash-shell {
    grid-template-columns: 320px minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .lk-dash-sidebar {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;

    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    grid-template-areas:
      "brand sms"
      "user sms"
      "total total"
      "menu menu"
      "footer footer" !important;
    column-gap: 16px !important;
    row-gap: 16px !important;
    align-items: start !important;

    padding: 16px !important;
    box-sizing: border-box !important;
  }

  /* 2) on garde le wrapper logo/user éclaté */
  .lk-dash-sidebar > div:first-child {
    display: contents !important;
  }

  .lk-sidebar-kpi {
    display: contents !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }

  /* 3) logo un peu plus grand */
  .lk-dash-logo {
    grid-area: brand !important;
    margin: 0 !important;
    min-height: auto !important;
  }

  .lk-dash-logo::before {
    width: 92px !important;
    height: 92px !important;
    background-size: contain !important;
    background-position: left top !important;
  }

  /* 4) bloc infos client propre sous le logo */
  .lk-dash-user {
    grid-area: user !important;
    margin: -2px 0 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* 5) carte SMS plus lisible */
  .lk-kpi-card--sms {
    grid-area: sms !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;

    min-height: 102px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__icon {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 15px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__content {
    gap: 4px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__label {
    font-size: 13px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__value {
    font-size: 17px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__link {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__arrow {
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    margin-left: auto !important;
  }

  .lk-kpi-card--sms .lk-kpi-card__arrow svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* 6) carte montant total : plus large, plus premium, moins tassée */
  .lk-kpi-card--total {
    grid-area: total !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;

    width: 100% !important;
    min-height: 128px !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  .lk-kpi-card--total .lk-kpi-card__icon {
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__icon svg {
    width: 22px !important;
    height: 22px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__label {
    font-size: 15px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    color: rgba(255,255,255,0.94) !important;
  }

  .lk-kpi-card--total .lk-kpi-card__value,
  .lk-kpi-card--total .lk-kpi-card__value--xl {
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    margin: 2px 0 0 !important;
    white-space: nowrap !important;
    color: #ffffff !important;
  }

  .lk-kpi-card--total .lk-kpi-card__sub {
    font-size: 13px !important;
    line-height: 1.2 !important;
    margin-top: 3px !important;
    color: rgba(240,243,255,0.90) !important;
    white-space: normal !important;
  }

  /* 7) badge vert plus propre : moins gros halo, icône plus visible */
  .lk-kpi-card--total .lk-kpi-card__badge {
    flex: 0 0 62px !important;
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    margin-left: auto !important;
    border-radius: 50% !important;
    background: rgba(108, 226, 187, 0.08) !important;
    box-shadow:
      0 0 0 8px rgba(108, 226, 187, 0.04),
      inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }

  .lk-kpi-card--total .lk-kpi-card__badge svg {
    width: 28px !important;
    height: 28px !important;
  }

  /* 8) menu et footer */
  .lk-dash-menu {
    grid-area: menu !important;
    margin-top: 2px !important;
  }

  .lk-dash-sidebar-footer {
    grid-area: footer !important;
    margin-top: 0 !important;
  }
}

/* =========================================================
   FIX HALO ICÔNES KPI (réduction propre)
   ========================================================= */

/* Icône gauche (petit carré) */
.lk-kpi-card__icon {
  background: rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}

/* Icône gauche version "soft" (montant total) */
.lk-kpi-card__icon--soft {
  background: rgba(255,255,255,0.10) !important;
  box-shadow: none !important;
}

/* Badge vert à droite (le plus problématique) */
.lk-kpi-card__badge {
  background: rgba(108, 226, 187, 0.10) !important;

  /* halo beaucoup plus fin */
  box-shadow:
    0 0 0 4px rgba(108, 226, 187, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* Option encore plus clean (si tu veux quasi aucun halo) */
.lk-kpi-card__badge--clean {
  background: rgba(108, 226, 187, 0.12) !important;
  box-shadow: none !important;
}
.lk-kpi-card__badge {
  box-shadow: none !important;
}

/* =========================================================
   FIX RÉEL DES HALOS KPI
   À coller tout en bas du CSS
   ========================================================= */

/* 1) On enlève le halo du fond de la grande carte */
.lk-kpi-card--total {
  background:
    linear-gradient(135deg, #3437A8 0%, #4B4FE0 45%, #5F75FF 100%) !important;
}

/* 2) On réduit fortement les fonds des blocs icônes */
.lk-kpi-card__icon {
  background: rgba(255,255,255,0.06) !important;
  box-shadow: none !important;
}

.lk-kpi-card__icon--soft {
  background: rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
}

/* 3) On casse les halos injectés DANS les SVG */
.lk-kpi-card__icon svg g[filter],
.lk-kpi-card__badge svg g[filter] {
  filter: none !important;
}

/* 4) On supprime le gros halo radial vert du badge */
.lk-kpi-card__badge {
  background: rgba(108, 226, 187, 0.06) !important;
  box-shadow: none !important;
}

.lk-kpi-card__badge svg circle:first-child {
  display: none !important; /* halo radial vert */
}

/* 5) On allège aussi le cercle interne du badge */
.lk-kpi-card__badge svg circle:nth-of-type(2) {
  fill: rgba(255,255,255,0.04) !important;
}

/* 6) Option plus nette encore pour l'icône montant */
.lk-kpi-card__icon svg rect,
.lk-kpi-card__badge svg rect {
  filter: none !important;
}
.lk-kpi-card__icon {
  background: rgba(255,255,255,0.04) !important;
}

.lk-kpi-card__icon--soft {
  background: rgba(255,255,255,0.05) !important;
}

.lk-kpi-card__badge {
  background: transparent !important;
}

/* =========================================================
   LOCKIPAY – KPI SIDEBAR FINAL PROPRE
   ========================================================= */

/* structure haute sidebar */
.lk-sidebar-top{
  display:grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap:14px;
  align-items:start;
  margin: 0 0 16px 0;
}

.lk-sidebar-brand{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}

.lk-sidebar-kpi{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:0 !important;
  min-width:0;
}

/* logo */
.lk-dash-logo{
  margin:0 !important;
  min-height:auto !important;
}

.lk-dash-logo::before{
  width:86px !important;
  height:86px !important;
}

/* infos client */
.lk-dash-user{
  margin:0 !important;
  font-size:12px !important;
  line-height:1.45 !important;
  color:rgba(255,255,255,.88) !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
}

/* cartes KPI */
.lk-kpi-card{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  border-radius:20px !important;
}

.lk-kpi-card--sms{
  min-height:94px;
  padding:14px 16px !important;
  gap:12px !important;
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:none !important;
}

.lk-kpi-card--total{
  min-height:126px;
  padding:16px 16px !important;
  gap:12px !important;
  background:linear-gradient(135deg,#3437A8 0%,#4B4FE0 45%,#5F75FF 100%) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:none !important;
}

/* halos supprimés */
.lk-kpi-card__icon,
.lk-kpi-card__icon--soft{
  background:rgba(255,255,255,.08) !important;
  box-shadow:none !important;
}

.lk-kpi-card__badge{
  background:rgba(119,240,186,.06) !important;
  box-shadow:none !important;
}

/* tailles icônes */
.lk-kpi-card--sms .lk-kpi-card__icon{
  flex:0 0 42px !important;
  width:42px !important;
  height:42px !important;
  border-radius:14px !important;
}

.lk-kpi-card--sms .lk-kpi-card__icon svg{
  width:18px !important;
  height:18px !important;
}

.lk-kpi-card--total .lk-kpi-card__icon{
  flex:0 0 46px !important;
  width:46px !important;
  height:46px !important;
  border-radius:14px !important;
}

.lk-kpi-card--total .lk-kpi-card__icon svg{
  width:18px !important;
  height:18px !important;
}

.lk-kpi-card--total .lk-kpi-card__badge{
  flex:0 0 42px !important;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
}

.lk-kpi-card--total .lk-kpi-card__badge svg{
  width:20px !important;
  height:20px !important;
}

/* textes */
.lk-kpi-card__content{
  min-width:0 !important;
  gap:3px !important;
}

.lk-kpi-card__label{
  font-size:12px !important;
  line-height:1.2 !important;
  margin:0 !important;
}

.lk-kpi-card--sms .lk-kpi-card__value{
  font-size:18px !important;
  line-height:1 !important;
  margin:1px 0 0 !important;
}

.lk-kpi-card--sms .lk-kpi-card__link{
  font-size:11px !important;
  line-height:1.2 !important;
  margin-top:3px !important;
}

.lk-kpi-card--total .lk-kpi-card__label{
  font-size:12px !important;
  color:rgba(255,255,255,.92) !important;
}

.lk-kpi-card--total .lk-kpi-card__value,
.lk-kpi-card--total .lk-kpi-card__value--xl{
  font-size:17px !important;
  line-height:1 !important;
  font-weight:800 !important;
  margin:2px 0 0 !important;
  white-space:nowrap !important;
  letter-spacing:-0.02em !important;
}

.lk-kpi-card--total .lk-kpi-card__sub{
  font-size:11px !important;
  line-height:1.2 !important;
  margin-top:3px !important;
  color:rgba(238,242,255,.9) !important;
}

.lk-kpi-card__arrow{
  flex:0 0 14px !important;
  width:14px !important;
  height:14px !important;
}

.lk-kpi-card__arrow svg{
  width:14px !important;
  height:14px !important;
}

/* desktop et tablette */
@media (min-width: 768px){
  .lk-dash-sidebar{
    width:320px !important;
    min-width:320px !important;
  }

  .lk-sidebar-top{
    grid-template-columns: 96px minmax(0, 1fr);
    gap:16px;
  }

  .lk-dash-logo::before{
    width:96px !important;
    height:96px !important;
  }

  .lk-dash-user{
    font-size:13px !important;
  }

  .lk-kpi-card--sms{
    min-height:100px;
    padding:16px 18px !important;
  }

  .lk-kpi-card--total{
    min-height:136px;
    padding:18px 18px !important;
  }

  .lk-kpi-card--total .lk-kpi-card__value,
  .lk-kpi-card--total .lk-kpi-card__value--xl{
    font-size:19px !important;
  }
}

/* mobile */
@media (max-width: 767px){
  .lk-sidebar-top{
    grid-template-columns: 76px minmax(0, 1fr);
    gap:12px;
  }

  .lk-dash-logo::before{
    width:76px !important;
    height:76px !important;
  }

  .lk-dash-user{
    margin-top:2px !important;
  }
}

.lk-kpi-card__icon svg {
    width: 48px !important;
    height: 48px !important;
}
.lk-kpi-card__badge svg {
    width: 40px !important;
    height: 40px !important;
}
.lk-kpi-card__icon {
    width: 56px;
    height: 56px;
}
/* Ajustement du conteneur de l'icône pour enlever l'effet de halo trop large */
.lk-kpi-card__icon {
    width: 42px !important;  /* On réduit la taille du conteneur si nécessaire */
    height: 42px !important;
    padding: 0 !important;   /* Supprime le padding interne qui crée le halo */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important; /* Un fond léger plutôt qu'un gros halo */
}

/* Agrandissement du SVG à l'intérieur */
.lk-kpi-card__icon svg {
    width: 24px !important;  /* Taille plus grande pour l'icône elle-même */
    height: 24px !important;
    fill: currentColor !important;
}

/* Suppression du halo et agrandissement de l'icône */
.lk-kpi-card .lk-kpi-card__icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important; /* Enlève la marge interne qui crée l'effet de gros contour */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Redimensionnement du SVG internet */
.lk-kpi-card .lk-kpi-card__icon svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

/* CORRECTIF LOGOS ET HALO - PRIORITÉ MAXIMALE */

/* 1. On force la taille du conteneur de l'icône */
aside.lk-dash-sidebar .lk-kpi-card .lk-kpi-card__icon {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.15) !important; /* Halo léger et propre */
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important; /* Supprime les ombres portées qui font "halo sale" */
}

/* 2. On force le SVG à devenir grand à l'intérieur */
aside.lk-dash-sidebar .lk-kpi-card .lk-kpi-card__icon svg {
    width: 60px !important; /* Ici tu règles la taille du logo */
    height: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    display: block !important;
    margin: auto !important;
    filter: none !important; /* Supprime les flous/halos internes au SVG */
}

/* 3. On enlève les cercles de fond inutiles dans le SVG du badge vert */
.lk-kpi-card__badge {
    background: transparent !important;
    box-shadow: none !important;
}
.lk-kpi-card__badge svg {
    width: 60px !important;
    height:60px !important;
}
















/* =========================================================
   FIX TITRES POPUPS LOCKIPAY
   ========================================================= */

.lk-db-modal__header h3,
.lk-db-modal__header h2,
.lk-db-modal__title,
.lk-db-modal h3,
.lk-db-modal h2 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* Croix fermeture */
.lk-db-modal__close {
    color: rgba(255,255,255,0.75) !important;
}

.lk-db-modal__close:hover {
    color: #ffffff !important;
}

/* Header popup */
.lk-db-modal__header {
    background: #282868 !important;
    color: #ffffff !important;
}

/* Compteurs transactions dans le KPI lateral */
.lk-kpi-card__tx-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding-top: 9px !important;
    border-top: 1px solid rgba(255,255,255,0.18) !important;
}

.lk-kpi-card__tx-stat {
    min-width: 0 !important;
}

.lk-kpi-card__tx-value {
    display: block !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.lk-kpi-card__tx-label {
    display: block !important;
    margin-top: 4px !important;
    color: rgba(238,242,255,0.88) !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
}
