.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-dmax-edit {
        input {
          display: flex;
          width: 60px;
          font-size: calc(var(--font-size-standard) * 1.4);
          align-items: center;
          justify-content: center;
          padding: 0 5px 0 5px;
          text-align: center;
        }
      }
    }

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

      .character-spec {
        label {
          max-width: 6rem;
        }
        .hero-armor {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 4px;
          input {
            max-width: 3rem;
          } 
        }
      }
      .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: 650px;
  }

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

    .character-skill {
      display: flex;
      align-items: center;
      .icon-skill {
        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: 4.5rem;
        max-width: 4.5rem;
      }
      .char-text {
        margin-left: 0.5rem;
      }
      .d100 {
        flex: 0;
        max-width: 0.6rem;
      }
      .form-group {
        flex: 0;
        padding-left: 5px;
        .form-fields {
          font-size: 1.1rem;
          flex: none;
          width: 40px;
        }
      }
    }
  }

  .character-skill-play {
    min-width: 225px;
  }

  .character-skill-edit {
    min-width: 400px;
  }
}

.character-biography {
  background-color: var(--color-light-1);
  prose-mirror.inactive {
    min-height: 40px;
  }
  prose-mirror.active {
    min-height: 150px;
  }
  .field-label {
    margin-left: 8px;
  }

  .rank {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    label {
      min-width: 6rem;
    }
    input {
      max-width: 4rem;
    }
  }

  .biodata {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    label {
      min-width: 12rem;
    }
  }

  .resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    label {
      min-width: 8rem;
    }
  }

  .features,
  .biodata {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    label {
      min-width: 3rem;
    }
    .feature {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 18rem;
      max-width: 18rem;
    }
  }
}

.tab.character-skills {
  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;
    }
  }
  .skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    .skill {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-left: 4px;
      min-width: 12.3rem;
      max-width: 12.3rem;
      .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;
      }
      .score {
        min-width: 1.2rem;
        max-width: 1.2rem;
      }
      .name {
        min-width: 10rem;
        max-width: 10rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }
}

.tab.character-status {
  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;
    }
  }

  .bonds {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .bond {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 18rem;
      max-width: 18rem;
      .controls {
        font-size: 0.7rem;
        min-width: 1.8rem;
        max-width: 1.8rem;
      }
      .name {
        min-width: 12rem;
        max-width: 12rem;
      }
      .type {
        min-width: 6rem;
        max-width: 6rem;
      }
      .level {
        min-width: 2rem;
        max-width: 2rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

  .motivations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .motivation {
      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;
      }
      .name {
        min-width: 12rem;
        max-width: 12rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

  .mentaldisorders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .mentaldisorder {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 18rem;
      max-width: 18rem;
      .controls {
        font-size: 0.7rem;
        min-width: 1.8rem;
        max-width: 1.8rem;
      }
      .name {
        min-width: 14rem;
        max-width: 14rem;
      }
      .cured {
        min-width: 5rem;
        max-width: 5rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

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

.tab.character-talents {
  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;
    }
  }

  .talents {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .talent {
      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;
      }
      .damage {
        min-width: 6rem;
        max-width: 6rem;
      }
      .name {
        min-width: 10rem;
        max-width: 10rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

  .languages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .language {
      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;
      }
      .damage {
        min-width: 6rem;
        max-width: 6rem;
      }
      .name {
        min-width: 10rem;
        max-width: 10rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

  .psionics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .psionic {
      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;
      }
      .damage {
        min-width: 6rem;
        max-width: 6rem;
      }
      .name {
        min-width: 10rem;
        max-width: 10rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

}

.tab.character-equipment {
  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;
    }
  }
  .encumbrance {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    input {
      max-width: 4rem;
    }
    .encumbered {
      color: red;
      font-weight: bold;
    }
  }

  .implants {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .implant {
      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;
      }
      .damage {
        min-width: 6rem;
        max-width: 6rem;
      }
      .name {
        min-width: 10rem;
        max-width: 10rem;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

  
  .weapons {
    display: grid;
    grid-template-columns: repeat(2, 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;
      }
      .damage {
        min-width: 6rem;
        max-width: 6rem;
      }
      .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;
      }
      .protection {
        min-width: 6rem;
        max-width: 6rem;
      }
      .name {
        min-width: 10rem;
        max-width: 10rem;
      }
      .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;
      }
      .item-img {
        width: 24px;
        height: 24px;
        margin: 4px 0 0 0;
      }
    }
  }

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