/* --- ID 168: hivepress - dashboard --- */
/* --- Dashboard : tableau des stats --- */
.hp-page__content .hp-table {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
  border-collapse: separate;
  border-spacing: 0;
}

/* En-tête du tableau */
.hp-page__content .hp-table thead {
  background: linear-gradient(90deg, #1abc9c, #3498db);
  color: #ffffff;
}

.hp-page__content .hp-table thead th {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Lignes du tableau */
.hp-page__content .hp-table tbody th,
.hp-page__content .hp-table tbody td {
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.hp-page__content .hp-table tbody tr:first-child th,
.hp-page__content .hp-table tbody tr:first-child td {
  border-top: none;
}

/* Ligne au survol */
.hp-page__content .hp-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.02);
}

/* --- Dashboard : bloc du graphique --- */
.hp-page__content .hp-chart[data-component="chart"] {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem 1.75rem;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
}








/* ================================
   1) DASHBOARD — MOBILE OPTIMISÉ
   ================================ */

@media (max-width: 900px) {

  /* Contenu du dashboard sur toute la largeur */
  .hp-page__content.hp-col-sm-8.hp-col-xs-12 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  /* --- Tableau Orders / Revenue en vraie "card" --- */
  .hp-page__content .hp-table {
    width: 100%;
    margin-top: 12px;
    border-radius: 24px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;                         /* arrondis visibles */
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    display: table;                           /* on reste un vrai tableau */
  }

  /* En-tête plus soft (gris clair) */
  .hp-page__content .hp-table thead {
    background: #f3f4f6;
    color: #6b7280;
  }

  .hp-page__content .hp-table thead th {
    padding: 0.85rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* Lignes du corps */
  .hp-page__content .hp-table tbody th,
  .hp-page__content .hp-table tbody td {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
  }

  .hp-page__content .hp-table tbody tr:first-child th,
  .hp-page__content .hp-table tbody tr:first-child td {
    border-top: none;
  }

  /* Pas de mode "scroll" qui casse le cadre */
  .hp-page__content .hp-table-wrapper {
    overflow: visible;
  }

  /* --- Bloc du graphique en carte responsive --- */
  .hp-page__content .hp-chart[data-component="chart"] {
    margin-top: 18px;
    padding: 1.25rem 1.5rem 1.5rem;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .hp-page__content canvas.hp-chart {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Marge douce avec le titre "Dashboard" */
  .hp-page__title {
    margin-bottom: 10px;
  }
}


/* ========== RESET LAYOUT DESKTOP APRÈS MODE MOBILE ========== */
@media (min-width: 901px) {

  /* Sidebar : redevient visible et en 1/3 de largeur */
  .hp-page__sidebar.hp-col-sm-4.hp-col-xs-12.site-sidebar {
    display: block !important;
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    position: relative; /* pour annuler d’éventuels comportements bizarres */
  }

  /* Contenu : reprend les 2/3 de largeur */
  .hp-page__content.hp-col-sm-8.hp-col-xs-12 {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
    width: 100%;
  }
}







/* ========== MOBILE : AFFICHER SEULEMENT LE SOLDE ========== */
@media (max-width: 900px) {

  /* La sidebar redevient visible mais prend toute la largeur */
  .hp-page__sidebar.hp-col-sm-4.hp-col-xs-12.site-sidebar {
    display: block !important;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  /* On transforme le bloc Balance en petite carte premium */
  .hp-page__sidebar .hp-vendor__balance {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    font-size: 14px;
  }

  .hp-page__sidebar .hp-vendor__balance strong {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
  }

  .hp-page__sidebar .hp-vendor__balance span {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
  }

  /* On masque le reste du widget (payout form, modal…) */
  .hp-page__sidebar .hp-vendor__actions > :not(.hp-vendor__balance) {
    display: none !important;
  }

  /* On masque le menu latéral sur mobile */
  .hp-page__sidebar .hp-menu--user-account {
    display: none !important;
  }
}

