.character-content {
  .sheet-common();
  .character-sheet-common();
  overflow: scroll;
}

.character-main {
  display: flex;

  .character-pc {
    display: flex;
    gap: 10px;
    flex: 1;

    .character-left {
      min-width: 200px;
      max-width: 200px;
      display: flex;
      flex-direction: column;

      .character-left-image {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 8px;
        .character-img {
          height: 140px;
          width: 140px;
          width: auto;
          border: none;
        }
      }
      .character-hp {
        display: flex;
        gap: 4px;
        align-items: center;
        margin-bottom: 4px;
        .name {
          flex: none;
          min-width: 2.5rem;
          max-width: 2.5rem;
        }
        input {
          flex: none;
          min-width: 2.2rem;
          max-width: 2.2rem;
          margin-left: 4px;
          font-size: calc(var(--font-size-standard) * 1);
        }
        .character-hp-max {
          clear: both;
          display: flex;
          flex-direction: row;
          flex-wrap: wrap;
          margin: 4px 0;
          align-items: center;
          input {
            width: 3.2rem;
            text-align: center;
            font-size: calc(var(--font-size-standard) * 1);
          }
        }
      }
    }

    .character-right {
      display: flex;
      flex-direction: column;
      gap: 4px;

      .character-name {
        display: flex;
        input {
          width: 400px;
        }
      }
    }
  }

  .character-pc-play {
    min-width: 320px;
  }

  .character-pc-edit {
    min-width: 320px;
  }

  .character-characteristics {
    display: flex;
    flex-direction: column;
    gap: 4px;

    .character-characteristic {
      display: flex;
      align-items: center;
      span {
        min-width: 2.2rem;
        max-width: 2.2rem;
      }
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .form-group {
        flex: 1;
        padding-left: 4px;
        .form-fields {
          flex: none;
          width: 3rem;
        }
      }
    }
  }

  .character-challenges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;

    .character-challenge {
      display: flex;
      align-items: center;
      margin-right: 0.5rem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .name {
        flex: 1;
        min-width: 3rem;
        margin-left: 0.5rem;
      }
      .form-group {
        flex: 1;
        padding-left: 4px;
        .form-fields {
          flex: none;
          width: 50px;
        }
      }
    }
  }

  .character-movements {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;

    .character-movement {
      display: flex;
      align-items: center;
      margin-right: 0.5rem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .name {
        flex: 1;
        min-width: 3rem;
        margin-left: 0.5rem;
      }
      .form-group {
        flex: 1;
        padding-left: 4px;
        .form-fields {
          flex: none;
          width: 50px;
        }
      }
    }
  }

  .character-saves {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;

    .character-save {
      display: flex;
      align-items: center;
      margin-right: 0.5rem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .name {
        flex: 0;
        min-width: 5rem;
        max-width: 5rem;
        margin-left: 0.5rem;
      }
      .name-pain {
        flex: 0;
        min-width: 3rem;
        max-width: 3rem;
        margin-left: 0.5rem;
      }
      .form-group {
        flex: 0;
        padding-left: 4px;
        .form-fields {
          flex: none;
          width: 50px;
        }
      }
    }
  }

  .character-characteristics-play {
    min-width: 160px;
  }

  .character-characteristic-edit {
    min-width: 160px;
  }
}

.tab.character-biography .main-div {
  .biodata {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    .biodata-elem {
      display: flex;
      align-items: center;
      gap: 4px;
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
      .name {
        min-width: 8rem;
      }
    }
  }
}

.character-biography {
  prose-mirror.inactive {
    min-height: 40px;
  }
  prose-mirror.active {
    min-height: 150px;
  }
}

.tab.character-skills .main-div {
  display: grid;
  grid-template-columns: 1fr;
  legend {
    a {
      font-size: calc(var(--font-size-standard) * 1);
      padding-left: 4px;
    }
  }
  .skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    .skill {
      display: flex;
      align-items: center;
      gap: 4px;
      .item-img {
        width: 24px;
        height: 24px;
      }
      .name {
        min-width: 12rem;
      }
    }
  }
  .gifts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    .gift {
      display: flex;
      align-items: center;
      gap: 4px;
      .item-img {
        width: 24px;
        height: 24px;
      }
      .name {
        min-width: 12rem;
      }
    }
  }
  .vulnerabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    .vulnerability {
      display: flex;
      align-items: center;
      gap: 4px;
      .item-img {
        width: 24px;
        height: 24px;
      }
      .name {
        min-width: 12rem;
      }
    }
  }
}

.tab.character-equipment .main-div {
  display: grid;
  grid-template-columns: 1fr;
  legend {
    a {
      font-size: calc(var(--font-size-standard) * 1.4);
      padding-left: 4px;
    }
  }

  .moneys {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .equipments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    .equipment {
      display: flex;
      align-items: center;
      gap: 4px;
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
      .name {
        min-width: 12rem;
      }
    }
    .name {
      min-width: 12rem;
    }
  }
}

.tab.character-combat .main-div {
  display: grid;
  grid-template-columns: 1fr;
  legend {
    a {
      font-size: calc(var(--font-size-standard) * 1.4);
      padding-left: 4px;
    }
  }

  .combat-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .combat-detail {
      display: flex;
      align-items: center;
      gap: 4px;
      .input {
        min-width: 2.5rem;
        max-width: 2.5rem;
      }
      .ranged-attack-button {
        font-size: 0.8rem;
      }
      button {
        min-width: 9rem;
      }
      .armor-hp {
        margin-right: 4px;
        .name {
          min-width: 6rem;
          max-width: 6rem;
        }
        min-width: 11rem;
        max-width: 11rem;
        .input {
          min-width: 3.5rem;
          max-width: 3.5rem;
        }
      }
      .granted {
        min-width: 8rem;
        max-width: 8rem;
        .input {
          min-width: 2.5rem;
          max-width: 2.5rem;
        }
      }
    }
  }

  .wounds {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .wound {
      display: flex;
      align-items: center;
      gap: 4px;
      .wound-description {
        min-width: 14rem;
        max-width: 14rem;
      }
      .wound-duration {
        min-width: 3rem;
        max-width: 3rem;
      }
      .wound-value {
        min-width: 3rem;
        max-width: 3rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
      .name {
        min-width: 12rem;
      }
    }
  }

  .weapons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .weapon {
      display: flex;
      align-items: center;
      gap: 4px;
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
      .name {
        min-width: 12rem;
      }
      .attack-icons a {
        margin-left: 8px;
        margin-right: 8px;
      }
    }
  }
  .armors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .armor {
      display: flex;
      align-items: center;
      gap: 4px;
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
    .name {
      min-width: 12rem;
    }
    .item-detail {
      min-width: 2rem;
    }
  }
  .shields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    min-width: 20rem;
    .shield {
      display: flex;
      align-items: center;
      gap: 4px;
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
    .item-detail {
      min-width: 2.5rem;
    }
    .name {
      min-width: 12rem;
    }
  }
}

.tab.character-spells .main-div {
  display: grid;
  grid-template-columns: 1fr;
  legend {
    a {
      font-size: calc(var(--font-size-standard) * 1.4);
      padding-left: 4px;
    }
  }

  .spell-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .spell-detail {
      display: flex;
      align-items: center;
      gap: 4px;
      button {
        min-width: 10rem;
      }
      .armor-hp {
        min-width: 12rem;
        max-width: 12rem;
        .input {
          flex: 0;
          min-width: 3rem;
          max-width: 3rem;
        }
      }
    }
  }

  .spells {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    min-width: 18rem;
    .spell {
      display: flex;
      align-items: center;
      gap: 4px;
      .item-img {
        min-width: 24px;
        max-width: 24px;
        height: 24px;
      }
      .name {
        min-width: 12rem;
      }
    }
  }

  prose-mirror.inactive {
    min-height: 40px;
  }
  prose-mirror.active {
    min-height: 150px;
  }
}

.tab.character-miracles .main-div {
  display: grid;
  grid-template-columns: 1fr;
  legend {
    a {
      font-size: calc(var(--font-size-standard) * 1.4);
      padding-left: 4px;
    }
  }

  .miracle-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .miracle-detail {
      display: flex;
      align-items: center;
      gap: 4px;
      button {
        min-width: 10rem;
      }
      .armor-hp {
        min-width: 20rem;
        max-width: 20rem;
        .input {
          min-width: 3rem;
          max-width: 3rem;
        }
      }
    }
  }

  .miracles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    min-width: 18rem;
    .miracle {
      display: flex;
      align-items: center;
      gap: 4px;
      .item-img {
        width: 24px;
        height: 24px;
      }
      .name {
        min-width: 12rem;
      }
    }
  }

  prose-mirror.inactive {
    min-height: 40px;
  }
  prose-mirror.active {
    min-height: 150px;
  }
}
