table.detail-table {
  /* dsfr changes this to block, but want fixed width when expanding rows */
  display: table;
}

tr.stocks-row {
  display: grid;
  grid-template-columns: 1fr 0.6fr 0.9fr 0.9fr 0.5fr;
  justify-content: flex-start;
}

tr.other-stocks-row {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr 0.5fr;
  justify-content: flex-start;
}

tr.flux-row {
  display: grid;
  grid-template-columns: 0.9fr 0.7fr 1fr 0.3fr;
  justify-content: flex-start;
}

tr.expandable-row {
  cursor: pointer;
}

tr.expandable-row:hover {
  /* blue-cumulus-950 */
  background-color: #e6eefe !important;
}

.expanded-row-content {
  border-top: none;
  display: grid;
  grid-column: 1/-1;
  justify-content: flex-start;
  background-color: #fff;
  cursor: default;
}

.hide-row {
  display: none !important;
}

.formula {
  display: flex;
  align-items: center;
}

.captioned-value {
  display: flex;
  flex-direction: column;
}

.hyphenate {
  overflow-wrap: break-word;
  hyphens: auto;
}

th.flux-surface-col {
  min-width: 9em;
}

/* inbetween fr-col-1 and fr-col-2 */
.my-col-1-5 {
  flex: 0 0 13%;
  max-width: 13%;
  width: 13%;
}

.chart-wrapper {
  max-width: 70%;
}

/* Keep the two matrix tables in the flux tab readable without horizontal scrolling. */
.flux-compact-table table {
  table-layout: fixed;
  width: 100%;
}

.flux-compact-table th,
.flux-compact-table td {
  padding-inline: 0.3rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.flux-compact-table th.flux-surface-col {
  min-width: 5.5rem;
}

.flux-compact-table th[scope="row"] {
  min-width: 7rem;
}

.flux-compact-input {
  padding-inline: 0.3rem;
}

.flux-compact-table thead th {
  font-size: 0.8rem;
}

/* Section navigation styled as a compact segmented menu. */
.territory-nav .fr-nav__list {
  gap: 0.5rem;
  border-bottom: 1px solid #d6d6d6;
}

.territory-nav .fr-nav__link {
  min-height: 2.5rem;
  padding: 0.6rem 0.9rem 0.75rem;
  border: none;
  border-radius: 0;
  background-color: transparent;
  box-shadow: inset 0 -3px 0 transparent;
  color: #3a3a3a;
  font-size: 1rem;
  font-weight: 700;
}

.territory-nav .fr-nav__link[aria-current="page"] {
  background-color: #f5f5fe;
  box-shadow: inset 0 -3px 0 #000091;
  color: #000091;
  font-weight: 700;
}

@media (min-width: 62rem) {
  .flux-compact-table {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 3rem);
    max-width: none;
    margin-left: 0;
  }
}
/* Outil CAT'ENR */
.catenr-table th[scope="row"] {
  font-weight: 700;
  min-width: 16rem;
}

.catenr-table .catenr-child-row {
  padding-left: 2rem;
  font-weight: 400;
}

.catenr-table .catenr-hint {
  display: block;
  font-weight: 400;
  color: #666;
}

.catenr-table .fr-input,
.catenr-table .fr-select {
  min-width: 7rem;
}

.catenr-table td:nth-child(4) .fr-select,
.catenr-table td:nth-child(6) .fr-select {
  min-width: 14rem;
}

/* Schéma des emprises : SVG aux couleurs de la charte + légende numérotée */
.catenr-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.catenr-legende {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.75rem 1.5rem;
}

.catenr-legende li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.catenr-pastille,
.catenr-swatch {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

.catenr-pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1f6b45;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.catenr-swatch {
  border-radius: 0.25rem;
}

.catenr-aide {
  color: var(--text-mention-grey);
  font-size: 0.875rem;
}

.catenr-chart .chart-wrapper {
  max-width: 100%;
  margin: 0 auto;
}
