/* Wrapper générique */
.json-scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  border-radius: .25rem;
}

.json-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 900px;
}

.color-sector{
  color: #E9500E !important;
}

.json-table th,
.json-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.text-end {
  text-align: right;
}

/* Figer 1ère colonne si demandé */
/* .freeze-first-1 thead th:first-child,
.freeze-first-1 tbody td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  box-shadow: 4px 0 0 rgba(0, 0, 0, .03);
} */

.freeze-first-1 thead th:first-child {
  z-index: 2;
}

/* Tuiles */
/* .index-tile {
  position: relative;
  background: #f8f9fb;
  border-radius: 4px;
  padding: 10px 16px 12px;
  border-top: 4px solid #E9500E;
} */

.index-tile .tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
  align-items: start;
}

.index-tile .name {
  font-weight: 700;
  letter-spacing: .2px;
  font-family: Helvetica;
  color: #09244B;
  font-size: 16px;
}

.index-tile .current {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2px;
  font-size: 14px;
  color: #09244B;
  font-family: Helvetica;
}

.index-tile .muted {
  color: #09244B;
  font-size: 14px;
  font-weight: 400;
}

.index-tile .v {
  font-weight: 400;
  margin-left: .35rem;
}

.index-tile .v.pos {
  color: #24BE58;
}

.index-tile .v.neg {
  color: #FF0000;
}

.index-tile .block {
  display: flex;
  flex-direction: column;
}

.index-tile .mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: space-around;
  text-align: center;
}

.index-tile .mini .val {
  font-weight: 700;
  line-height: 1.1;
}

.index-tile .mini small {
  color: #09244B;
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 640px) {
  .index-tile .tile-row {
    grid-template-columns: 1fr;
  }
}

/* Variante compacte pour la tuile marché global */
.market-global-tile {
  border-top-color: #0b254b;
  /* bleu */
}

.market-global-tile .tile-row {
  grid-template-columns: 1.2fr 1fr .6fr;
  /* un peu plus compacte */
}

/* Barre de stats marché */
.market-stats-tile {
  border-top-color: #E9500E;
}

/* .market-stats-tile .stats-line {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 3px solid #E9500E;
} */

.market-stats-tile .stat-block {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.market-stats-tile .label {
  color: #0b254b;
  font-weight: 600;
  font-size: 14px;
  font-family: Helvetica;
}

/* Pastilles */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 40px;
  padding: 6px 10px;
  border-radius: 15px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  height: 30px;
  font-family: "DM Sans", sans-serif;
  text-align: center;
  justify-content: center;
  margin-top: 15px;
}
.stats-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.stat-chip .ic {
  font-size: 12px;
  opacity: .9
}

.chip-up {
  background: #24BE58
}

/* vert */
.chip-down {
  background: #FF0000;
}

/* rouge */
.chip-flat {
  background: #0f274a;
}

/* bleu nuit */
.chip-nc {
  background: #7f858a;
}

/* gris */
.chip-susp {
  background: #E9500E;
}

/* orange */

.market-stats-tile .total-note {
  margin-top: 8px;
  font-size: 12px;
  color: #6c757d;
}


.cap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  color: #09244B;
}

.cap-table thead th {
  background: #0b254b;
  color: #fff;
  padding: 10px 14px;
  font-weight: 700
}

.cap-table thead th+th {
  border-left: 2px solid #fff;
}

.cap-table td {
  border-top: 1px solid #BBC2C6CC;
  vertical-align: middle;
  padding: 5px 0;
  font-family: Helvetica;
  font-size: 13px;
}

.cap-table .row-total td {
  background: #f3f4f6;
  font-weight: 700;
  padding: 5px 0;
}

.cap-right .cum {
  font-weight: 700
}

.cap-right .var {
  font-size: .95em
}

.dash-card {
  padding: 0 10px;
}
.hitorique-market-watch .bggris {
   border-top: 3px solid #F74D40;
  background: #F3F3F3;
  padding: 15px;
}

.dash-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 .5rem;
}

.dash-stack>.dash-card+.dash-card {
  margin-top: 12px;
}

.dash-tight .dash-card {
  padding: 0;
  overflow: hidden;
}

.dash-tight .cap-table,
.dash-tight .capitaux-card {
  border: 0;
  border-radius: 0;
  text-align: center;
}

.indices-card-803x521 .json-scroll-x {
  --minw: 900px;
}

/* .mp-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden
} */

.mp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0
}

.mp-table thead th {
  background: #0b254b;
  color: #fff;
  padding: 10px 12px;
  font-weight: 700;
  border-bottom: 3px solid #E9500E
}

.mp-table td {
  padding: 10px 12px;
  border-top: 1px solid #edf0f3;
  vertical-align: middle
}

.mp-table .text-end {
  text-align: right;
  font-variant-numeric: tabular-nums
}

.capitaux-header {
  background: #0b254b;
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
}

.capitaux-subheader {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid #eee;
  background: #f7f8fb;
  font-weight: 600;
}

.capitaux-subheader .c2 {
  text-align: right;
}

.capitaux-body {
  padding: 8px 14px;
}

.cap-row {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
}

.cap-row .val,
.var {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cap-row.total {
  background: #f3f4f6;
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.capitaux-body .sep {
  border: none;
  border-top: 1px solid #eee;
  margin: 6px 0;
}

.text-success {
  color: #24BE58;
}

.text-danger {
  color: #FF0000;
}

.text-muted {
  color: #6b7280;
}

@media (max-width:640px) {

  .cap-row,
  .capitaux-subheader {
    grid-template-columns: 1fr 120px 120px;
  }
}

.mrk-table .mrk-sort-btn {
  text-decoration: none;
  color: #0b1f3a;
}

.mrk-table .mrk-sort-btn .arrow {
  font-weight: 700;
}

.boxfiltre-his {
  padding: 0 10px;
}

.actions-historique {
  justify-content: flex-end;
  align-items: center;
}

.boxfiltre-historique-market {
  background: #F9F9F9;
  border-radius: 10px;
  padding: 20px;
  margin: 0 0 25px;
  gap: 1rem;
}

.actions-historique .button-marketwatch {
  margin-top: 25px;
}

.actions-historique input#edit-reset--2 {
  margin-top: 25px;
}

.tabs-about.hitorique-market-watch .nav li a {
  font-size: 14px
}

.tabs-about.hitorique-market-watch .nav.border-top.nav-tabs-historique {
  margin: 35px 0 25px;
}
.js-market-global .index-tile .tile-row {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 10px;
    align-items: start;
}
.index-tile .block>div.cap-boursiere {
    display: flex;
    align-items: center;
    font-family: Helvetica;
    color: #09244B;
    font-size: 14px;
    margin-bottom: 8px;
}
.mp-wrap .table-marche {
    width: 100%;
}

.mp-wrap .table-marche tr th {
    font-weight: 700;
    margin-top: 0;
    font-size: 14px;
    color: #09244B;
    font-family: Helvetica;
    /* height: 50px; */
    padding: 0;
    margin: 0;
    vertical-align: top;
}

.mp-wrap .table-marche tr td {
    font-weight: 700;
    margin-top: 0;
    font-size: 12px;
    color: #09244B;
    font-family: Helvetica;
    padding-top: 6px;
}
.dash-tight .cap-table thead tr:first-child th , .dash-tight .capitaux-card thead tr:first-child th {
    border-bottom: 3px solid #E9500E;
}

.dash-tight .cap-table tbody tr, .dash-tight .capitaux-card tbody tr td {
    padding: 5px 0;
}

.cap-table td.cap-left .cum {
    font-weight: 700;
}
.dash-tight .dash-card {
    margin: 0 0 40px;
}
.right-historique {
    padding-left: 50px !important;
    padding-right: 15px !important;
}
.box-table-index .index-tile .block.block-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
    color: #09244B;
}
.index-tile .block.pl-3 {
    padding-left: 35px;
}
.hitorique-market-watch table.json-table thead tr th {
    background: #f3f3f3;
    font-family: Helvetica;
    font-size: 14px;
    color: #09244B;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 0;
}

.hitorique-market-watch table.json-table {
    border-top: 3px solid #E9500E;
    border-radius: 0;
}

.hitorique-market-watch table.json-table tbody tr td {
    font-family: Helvetica;
    font-size: 14px;
    color: #09244B;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 0;
}

.hitorique-market-watch table.json-table tbody tr td span {
    color: #09244B;
}
.bloc-variation-market #market-title {
  font-size: 16px;
  color:#09244B;
  font-weight: 700;
}
.bg-title-historique {
    background: #09244B;
    border-radius: 5px;
    padding: 10px 15px;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 35px;
}

.section-historique  table thead tr th {
    background: #f3f3f3;
    font-family: Helvetica;
    font-size: 14px;
    color: #09244B;
    font-weight: 700;
    padding: 10px;
    border-radius: 0;
    border-bottom: 1px solid #BBC2C6;
}

.section-historique table {
    border-top: 3px solid #E9500E;
    border-radius: 0;
}
.section-historique table tbody tr td {
    font-family: Helvetica;
    font-size: 14px;
    color: #09244B;
    font-weight: 400;
    padding: 10px;
    border-radius: 0;
}
.section-historique .card {
    height: 350px !important;
}
.pal-1, .pal-2, .pal-3, .pal-4, .pal-5, .pal-6, .pal-8, .pal-9, .pal-7, .pal-10 {
    margin-bottom: 35px;
}
.section-historique table thead tr th button {
    color: #09244B;
    text-decoration: none;
    font-size: 14px;
}
.border-canvas {
    border: 1px solid #BBC2C6;
    border-radius: 6px;
    padding: 20px;
}
.padding-left {
    padding-left: 60px;
}
.padding-right {
    padding-right: 40px;
}
.section-historique table tbody tr.table-light.fw-semibold td {
    font-weight: 700;
   background: #F3F3F3;
}
.boxtitle-historique {
  text-align: center;
}
.box-cote-left {
    padding-right: 30px;
}
.box-cote-right {
    padding-left: 30px;
}
.kpi-card {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    min-height: 46px;
}

.kpi-card .kpi-value {
    background: #09244B1F;
    border-radius: 5px;
    padding: 10px;
    font-family: Helvetica;
    font-size: 16px;
    color: #09244B;
}

.kpi-card .kpi-title {
    font-family: Helvetica;
    font-size: 16px;
    color: #09244B;
}
.js-monthly-activity-bar{
  height: 500px !important;
}
.grayed {
  opacity: 0.4;
  pointer-events: none;
}
/* Fix disparition des lignes lors du scroll */
.json-scroll-x {
  position: relative;
  overflow-x: auto;
  overflow-y: visible !important;   /* >>> Fix majeur <<< */
  -webkit-overflow-scrolling: touch;
}

/* Gèle la première colonne */
.freeze-first-1 table td:first-child,
.freeze-first-1 table th:first-child {
  position: sticky;
  left: 0;
  background: #fff;     /* évite la transparence */
  z-index: 10;          /* stable */
  border-right: 1px solid #ddd;
}

/* Pour éviter le “saut” vertical */
.freeze-first-1 table tr {
  position: relative;
  z-index: 1;
}

/* Empêche le z-index de sauter */
.freeze-first-1 table tbody tr:hover {
  z-index: 2;
}
.js-market-resume-secondary thead th {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
