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

.sheet-tabs {
  background-color: var(--color-light-1);
}

.character-main {
  /*background-color: var(--color-light-1);*/
  display: flex;

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

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

      .character-left-image {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 8px;
        .character-img {
          height: 140px;
          width: auto;
          border: none;
        }
      }

      .character-hp {
        gap: 2px;
        align-items: center;
        input {
          flex: none;
          width: 2.5rem;
          margin-left: 2px;
          margin-right: 4px;
        }
        .hp-separator {
          font-size: calc(var(--font-size-standard) * 1.2);
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }

      .character-dv,
      .character-dmax {
        .form-fields {
          flex: none;
        }
      }
    }

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

      .character-definition {
        .character-definition-pronouns {
          input {
            min-width: 21.2rem;
            max-width: 21.2rem;
          }
        }
        .form-group {
          display: flex;
          align-items: center;
          margin-bottom: 4px;
        }
        .splitted {
          display: flex;
          flex-direction: row;
          gap: 4px;
        }
        label {
          max-width: 5rem;
          min-width: 5rem;
        }
        input {
          text-align: left;
          min-width: 9rem;
          max-width: 9rem;
          margin-bottom: auto;
        }
        .trait {
          min-width: 7rem;
          max-width: 7rem;
          margin-right: 1rem;
          margin-bottom: auto;
        }
      }
      .character-name {
        display: flex;
        input {
          font-family: var(--font-title);
          font-size: var(--font-size-title);
          width: 400px;
        }
      }
      label {
        min-width: 120px;
      }
    }
  }

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

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

  .character-stats {
    /*background-color: var(--color-light-1);*/
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;

    .character-stat {
      display: flex;
      align-items: center;
      .icon-stat {
        width: 24px;
        height: 24px;
        margin-right: 4px;
      }
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .rollable {
        min-width: 3.5rem;
        max-width: 3.5rem;
      }
      input {
        min-width: 2.5rem;
        max-width: 2.5rem;
      }
    }
  }

  .character-stats-play {
    min-width: 120px;
  }

  .character-stats-edit {
    min-width: 120px;
  }
}

.tab.character-status .main-div {
  /*background-color: var(--color-light-1);*/
  display: grid;
  grid-template-columns: 1fr;
  legend {
    a {
      font-size: calc(var(--font-size-standard) * 1.4);
      padding-left: 5px;
    }
  }
  .mortality {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    min-width: 12rem;
    max-width: 12rem;
    label {
      min-width: 5rem;
      max-width: 5rem;
    }
  }

  .counters {
    display: flex;
    direction: column;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    .characteristics-label {
      color: grey;
      font-size: small;
    }
    label {
      min-width: 4rem;
      max-width: 4rem;
    }
    .spaced-left {
      margin-left: 0.8rem;
    }
    input {
      min-width: 2.5rem;
      max-width: 2.5rem;
    }
  }
  .ailments {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    .ailment {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-left: 4px;
      min-width: 8rem;
      max-width: 8rem;
      label {
        min-width: 5rem;
        max-width: 5rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }
  .perks {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4px;
    .perk {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-left: 4px;
      min-width: 20rem;
      max-width: 20rem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .controls {
        font-size: 0.7rem;
        min-width: 1.8rem;
        max-width: 1.8rem;
      }
      .flavor {
        min-width: 24rem;
        max-width: 24rem;
      }
      .role {
        min-width: 5rem;
        max-width: 5rem;
      }
      .level {
        min-width: 4rem;
        max-width: 4rem;
      }
      .name {
        min-width: 10rem;
        max-width: 10rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }
}

.tab.character-maleficas .main-div {
  /*background-color: var(--color-light-1);*/
  display: grid;
  grid-template-columns: 1fr;
  legend {
    a {
      font-size: calc(var(--font-size-standard) * 1.4);
      padding-left: 5px;
    }
  }

  .maleficas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .malefica {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 20rem;
      max-width: 20rem;
      .controls {
        font-size: 0.7rem;
        min-width: 1.8rem;
        max-width: 1.8rem;
      }
      .name {
        min-width: 10rem;
        max-width: 10rem;
      }
      .damage {
        min-width: 3.2rem;
        max-width: 3.2rem;
      }
      .domain {
        min-width: 4rem;
        max-width: 4rem;
      }
      .level {
        min-width: 2rem;
        max-width: 2rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

  .rituals {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4px;
    .ritual {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 14rem;
      max-width: 14rem;
      .controls {
        font-size: 0.7rem;
        min-width: 1.8rem;
        max-width: 1.8rem;
      }
      .ingredients {
        min-width: 24rem;
        max-width: 24rem;
      }
      .name {
        min-width: 12rem;
        max-width: 12rem;
      }
      .difficulty {
        min-width: 2rem;
        max-width: 2rem;
      }
      .threshold {
        min-width: 2rem;
        max-width: 2rem;
      }
      .limit {
        min-width: 2rem;
        max-width: 2rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }
}

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

  .limboes {
    display: flex;
    flex-direction: row;
    .limboes-line {
      display: flex;
      flex-direction: row;
    }
    .form-group {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 4px;
      margin-left: 4px;
      min-width: 6rem;
      max-width: 6rem;
    }
    .ammo-quantity {
      text-align: left;
      max-width: 3rem;
      min-width: 3rem;
    }
    input {
      text-align: left;
      min-width: 8rem;
      max-width: 8rem;
    }
  }

  .weapons {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4px;
    .weapon {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 13rem;
      max-width: 13rem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .controls {
        font-size: 0.7rem;
        min-width: 1.8rem;
        max-width: 1.8rem;
      }
      .properties {
        min-width: 16.3rem;
        max-width: 16.3rem;
      }
      .range {
        min-width: 4.5rem;
        max-width: 4.5rem;
      }
      .ammo {
        min-width: 4.5rem;
        max-width: 4.5rem;
      }
      .ammoQuantity {
        min-width: 4.2rem;
        max-width: 4.2rem;
      }
      .type {
        min-width: 3rem;
        max-width: 3rem;
      }
      .damage {
        min-width: 4rem;
        max-width: 4rem;
      }
      .name {
        min-width: 10rem;
        max-width: 10rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

  .armors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .armor {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 13rem;
      max-width: 13rem;
      .controls {
        font-size: 0.7rem;
        min-width: 1.8rem;
        max-width: 1.8rem;
      }
      .bonus {
        min-width: 2rem;
        max-width: 2rem;
      }
      .resilience {
        min-width: 2rem;
        max-width: 2rem;
      }
      .reduction {
        min-width: 2rem;
        max-width: 2rem;
      }
      .name {
        min-width: 13.5rem;
        max-width: 13.5rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

  .equipments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    .equipment {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 13rem;
      max-width: 13rem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .controls {
        font-size: 0.7rem;
        min-width: 1.8rem;
        max-width: 1.8rem;
      }
      .name {
        min-width: 10rem;
        max-width: 10rem;
      }
      .quantity {
        min-width: 2rem;
        max-width: 2rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

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

.tab.character-biography .main-div {
  /*background-color: var(--color-light-1);*/
  display: grid;
  grid-template-columns: 1fr;
  legend {
    a {
      font-size: calc(var(--font-size-standard) * 1.4);
      padding-left: 5px;
    }
  }
  .splitted-text {
    display: flex;
    flex-direction: row;
    gap: 4px;
    fieldset {
      width: 100%;
    }
  }
  .deals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    .deal {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-left: 4px;
      min-width: 12rem;
      max-width: 12rem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .controls {
        font-size: 0.7rem;
        min-width: 1.8rem;
        max-width: 1.8rem;
      }
      .name {
        min-width: 10rem;
        max-width: 10rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }
  .aliases {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 4px;
    margin-left: 4px;
    .form-group {
      label {
        min-width: 6rem;
        max-width: 6rem;
      }
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 4px;
      margin-left: 4px;
    }
    input {
      text-align: left;
      min-width: 41rem;
      max-width: 41rem;
    }
  }
  .biodata {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    .experience {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 4px;
      margin-left: 4px;
    }
    .form-group {
      label {
        min-width: 6rem;
        max-width: 6rem;
      }
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 4px;
      margin-left: 4px;
      min-width: 14rem;
      max-width: 14rem;
    }
    input {
      text-align: left;
      min-width: 8rem;
      max-width: 8rem;
    }
  }

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