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

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

.robot-main {
  background-color: var(--color-light-1);
  display: flex;

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

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

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

      .robot-cost {
        label {
          min-width: 3rem;
          max-width: 3rem;
        }
        input {
          min-width: 6rem;
          max-width: 6rem;
        }
      }
    }

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

      .robot-name {
        display: flex;
        input {
          font-family: var(--font-title);
          font-size: calc(var(--font-size-standard) * 1.4);
          width: 380px;
        }
      }

      .robot-brain {
        min-width: 25rem;
        max-width: 25rem;
        textarea {
          min-width: 23rem;
          max-width: 23rem;
          background-color: rgba(0, 0, 0, 0.2);
          color: var(--color-dark-3);
        }
      }

      .main-stats {
        min-width: 25rem;
        max-width: 25rem;
        .encumbered {
          color: red;
          font-weight: bold;
        }
      }
      .cargo,
      .capacity {
        label {
          min-width: 4rem;
          max-width: 4rem;
        }
        input {
          max-width: 6rem;
          margin-right: 0.5rem;
        }
        .cargo-content {
          display: flex;
          align-items: center;
          gap: 4px;
        }
      }

      .robot-infos {
        display: flex;
        flex-direction: column;
        gap: 4px;

        label {
          min-width: 120px;
        }

        .robot-hp {
          display: flex;
          gap: 2px;
          align-items: center;
          .robot-hp-value {
            .form-fields input {
              flex: none;
              width: 50px;
              margin-left: 4px;
              font-size: calc(var(--font-size-standard) * 1.4);
            }
          }
          .robot-hp-max {
            clear: both;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            margin: 3px 0;
            align-items: center;
            input {
              width: 50px;
              text-align: center;
              font-size: calc(var(--font-size-standard) * 1.4);
            }
          }
          .hp-separator {
            font-size: calc(var(--font-size-standard) * 1.2);
            display: flex;
            align-items: center;
            justify-content: center;
          }
        }
      }
    }
  }

  .robot-skills {
    background-color: var(--color-light-1);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex: 1;

    .robot-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;
        }
      }
    }
  }

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

  .robot-skill-edit {
    min-width: 225px;
  }

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

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

.robot-description {
  .text-center {
    text-align: left;
    align-content: center;
  }
  background-color: var(--color-light-1);
  prose-mirror.inactive {
    min-height: 40px;
  }
  prose-mirror.active {
    min-height: 150px;
  }
  .field-label {
    margin-left: 8px;
  }
  .robot-brain {
    input {
      min-width: 32rem;
      max-width: 32rem;
    }
  }
  .section-editor {
    min-height: 10rem;
    .editor {
      min-height: 10rem;
    }
    .editor-content {
      min-height: 10rem;
    }
  }

  .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.robot-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;
    }
  }
  .weapons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    .weapon {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 13rem;
      max-width: 13srem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .controls {
        min-width: 2rem;
        max-width: 2rem;
      }
      .damage {
        min-width: 5rem;
        max-width: 5rem;
      }
      .name {
        min-width: 8rem;
        max-width: 8rem;
      }
      .item-img {
        width: 32px;
        height: 32px;
        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: 13srem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .controls {
        min-width: 2rem;
        max-width: 2rem;
      }
      .damage {
        min-width: 5rem;
        max-width: 5rem;
      }
      .name {
        min-width: 8rem;
        max-width: 8rem;
      }
      .item-img {
        width: 32px;
        height: 32px;
        margin: 4px 0 0 0;
      }
    }
  }

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