/* HOCKAI BANQUIER V3.3 — FINITION FONCTIONNELLE */
/* Aucun changement de navigation, de données ou de calcul métier. */

@media (max-width: 767px) {
  #tab-banquier {
    padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: 150px !important;
  }

  #tab-banquier .bk8-bottom-nav {
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  #bk8-view-plan .bk9-plan-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  #bk8-view-plan .bk9-plan-summary .bk8-stat:first-child {
    grid-column: 1 / -1;
  }

  #bk8-view-plan .bk9-plan-summary .bk8-stat {
    min-width: 0 !important;
    padding: 12px !important;
  }

  #bk8-view-plan .bk9-plan-summary .bk8-stat > span {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  #bk8-view-plan .bk9-plan-summary .bk8-stat > strong {
    display: block !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-top: 4px !important;
    overflow-wrap: anywhere;
  }

  #bk8-view-plan #bk8-plan-total-full {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }
}

#bk8-market-performance.hk33-original-hidden {
  display: none !important;
}

.hk33-market-report {
  margin: 10px 0 16px;
  color: #e8f7ff;
}

.hk33-report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.hk33-report-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.hk33-refresh {
  border: 1px solid rgba(83, 220, 249, .4);
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(32, 155, 205, .14);
  color: #a9eeff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.hk33-market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hk33-market-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(91, 163, 201, .25);
  border-radius: 15px;
  background: linear-gradient(155deg, #112941, #081827);
}

.hk33-market-name {
  font-size: 12px;
  font-weight: 900;
  color: #d7f7ff;
}

.hk33-market-profit {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.hk33-positive { color: #48e7b4; }
.hk33-negative { color: #ff798e; }

.hk33-market-meta {
  margin-top: 5px;
  font-size: 11px;
  color: #a3bfd1;
  line-height: 1.5;
}

.hk33-market-note {
  margin-top: 12px;
  color: #95b5cb;
  font-size: 11px;
  line-height: 1.55;
}

.hk33-market-state {
  padding: 15px;
  border: 1px solid rgba(91, 163, 201, .2);
  border-radius: 13px;
  background: rgba(7, 20, 36, .75);
  font-size: 12px;
  color: #a8cbdf;
  line-height: 1.5;
}

@media (max-width: 360px) {
  .hk33-market-grid { gap: 7px; }
  .hk33-market-card { padding: 10px; }
  .hk33-market-profit { font-size: 16px; }
}