/* Styles embarques dans le composant: assets/custom.css renvoie une erreur 500
     sur toute ecriture cote SellAuth. A rapatrier la-bas quand ce sera resolu. */
  .dtf-st { padding: 2rem 0 3.5rem; }

  .dtf-st-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
  .dtf-c-ok { background: #4ade80; }
  .dtf-c-work { background: #60a5fa; }
  .dtf-c-test { background: #7c5cff; }
  .dtf-c-risk { background: #f87171; }
  .dtf-c-down { background: #ef4444; }

  /* Barre de resume */
  .dtf-st-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(125, 150, 190, .16);
    border-radius: 10px;
    background: #121a26;
    margin-bottom: 1rem;
  }

  .dtf-st-total { display: flex; align-items: center; gap: .55rem; color: #8b9ab5; font-size: .92rem; }
  .dtf-st-total b { color: #fff; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }

  .dtf-st-legend { display: flex; flex-wrap: wrap; gap: .45rem; }

  .dtf-st-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .7rem;
    border: 1px solid rgba(125, 150, 190, .18);
    border-radius: 8px;
    background: #0e141e;
    font-size: .78rem; color: #8b9ab5;
  }
  .dtf-st-chip b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

  /* Recherche + filtres */
  .dtf-st-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }

  .dtf-st-search {
    flex: 1 1 320px;
    display: flex; align-items: center; gap: .6rem;
    padding: 0 .9rem;
    border: 1px solid rgba(125, 150, 190, .18);
    border-radius: 10px;
    background: #121a26;
    color: #7a869c;
    transition: border-color .15s ease;
  }
  .dtf-st-search:focus-within { border-color: rgba(124, 92, 255, .55); }
  .dtf-st-search input {
    flex: 1 1 auto; background: transparent; border: 0; outline: none;
    color: #fff; font-size: .88rem; padding: .7rem 0;
  }
  .dtf-st-search input::placeholder { color: #7a869c; }

  .dtf-st-filters { display: flex; flex-wrap: wrap; gap: .4rem; }

  .dtf-st-f {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem .9rem;
    border: 1px solid rgba(125, 150, 190, .18);
    border-radius: 10px;
    background: #121a26;
    color: #8b9ab5;
    font-size: .82rem; font-weight: 600;
    cursor: pointer;
    transition: border-color .14s ease, color .14s ease;
  }
  .dtf-st-f:hover { color: #fff; border-color: rgba(125, 150, 190, .36); }
  .dtf-st-f.is-on { color: #fff; border-color: rgba(124, 92, 255, .55); background: #16202e; }

  /* Section par jeu */
  .dtf-st-box {
    border: 1px solid rgba(125, 150, 190, .16);
    border-radius: 12px;
    background: rgba(18, 26, 38, .5);
    padding: 1.1rem 1.15rem 1.2rem;
    margin-bottom: .9rem;
  }

  .dtf-st-ghead { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; }

  .dtf-st-gicon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(124, 92, 255, .12);
    border: 1px solid rgba(124, 92, 255, .22);
    color: #a78bfa; flex: 0 0 auto;
  }

  .dtf-st-ghead h2 {
    margin: 0; flex: 1 1 auto;
    font-size: .88rem; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; color: #fff;
  }

  .dtf-st-count {
    min-width: 26px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 .45rem;
    border: 1px solid rgba(125, 150, 190, .18);
    border-radius: 7px;
    background: #0e141e;
    font-size: .74rem; font-weight: 700; color: #8b9ab5;
    font-variant-numeric: tabular-nums;
  }

  /* Cartes produit */
  .dtf-st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }

  .dtf-st-card {
    display: flex; align-items: center; gap: .7rem;
    padding: .65rem .75rem;
    border: 1px solid rgba(125, 150, 190, .16);
    border-radius: 10px;
    background: #0e141e;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
  }
  .dtf-st-card:hover { border-color: rgba(124, 92, 255, .45); background: #16202e; }

  .dtf-st-thumb {
    width: 40px; height: 40px; flex: 0 0 auto;
    border-radius: 8px; overflow: hidden; background: #121a26;
  }
  .dtf-st-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .dtf-st-body { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }

  .dtf-st-name {
    font-size: .82rem; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .dtf-st-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    align-self: flex-start;
    padding: .18rem .5rem;
    border-radius: 6px;
    font-size: .7rem; font-weight: 700;
  }
  .dtf-p-ok { background: rgba(74, 222, 128, .12); color: #4ade80; }
  .dtf-p-work { background: rgba(96, 165, 250, .12); color: #60a5fa; }
  .dtf-p-test { background: rgba(124, 92, 255, .14); color: #a78bfa; }
  .dtf-p-risk { background: rgba(248, 113, 113, .12); color: #f87171; }
  .dtf-p-down { background: rgba(239, 68, 68, .14); color: #ef4444; }

  .dtf-st-empty { text-align: center; color: #8b9ab5; padding: 2.5rem 0; }

  @media (max-width: 1199.98px) { .dtf-st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 767.98px) { .dtf-st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 479.98px) { .dtf-st-grid { grid-template-columns: 1fr; } }

  @media (prefers-reduced-motion: reduce) {
    .dtf-st-card, .dtf-st-f, .dtf-st-search { transition: none; }
  }