@import "variables";
@import "utilities";

.system-vermine2047 .item-formula {
  flex: 0 0 200px;
  padding: 0 8px;
}

.system-vermine2047 .vermine2047.item .window-content {
  padding: 0 1rem;

  .flexrow { align-items: center; }

  header, h1, h2, h3, h4, h5 {
    .background-image(url("@{ui-path}/scotch.webp"), no-repeat, cover, 50% 50%);
    text-transform: uppercase;
    font-family: "DistressBlack";
    margin-top: 1rem;
    border-bottom: none;
  }

  h2, h3, h4 { text-align: center; }
  h5 { margin-bottom: 0; }

  .resource-label {
    font-size: 0.75rem;
    color: @color-text-light-highlight;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
  }

  .resource {
    border: 1px solid @color-border-dark-3;
    border-left: 3px solid @theme-color-primary;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    text-align: center;
    .transition();

    &:hover {
      background: rgba(0, 0, 0, 0.2);
      border-color: @theme-color-primary;
    }

    .flexrow {
      min-width: 5rem;
      box-shadow: none;
    }
  }

  .damages-row {
    margin: 0;
    .radios {
      margin: 0;
      padding: 0.5rem;
    }
  }

  .damage-pannes,
  .damage-state,
  .damage-effect {
    text-align: center;
    font-family: "DistressBlack";
  }

  select {
    .custom-select-style();
    color: @color-text-dark-primary;
    font-family: "DistressBlack", sans-serif;
    font-size: 0.875rem;
    text-align: center;

    option {
      background: @color-bg-option;
      color: @color-text-dark-primary;
    }
  }

  .traits {
    .shadow();

    h3, h4 { margin: 0; }
  }

  .editor,
  .editor-content {
    color: @color-text-dark-primary;
    background: rgba(255, 255, 255, 0.3);
    min-height: 6rem;

    p { margin: 0.25rem 0; }
  }
}

ol#chat-log div.item-card header img,
ol.chat-log div.item-card header img {
  max-width: 30%;
}

// Icônes des cartes d'item envoyées au chat (ApplicationV2).
// Le template des cartes (templates/item/chatCards/parts/base.hbs) rend
// une <img> pleine taille : on la plafonne à 64×64.
ol#chat-log .chat-card-img,
ol.chat-log .chat-card-img {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}
