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

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

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

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

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

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

      .spec {
        label {
          max-width: 4rem;
        }
        input {
          max-width: 4rem;
        }
      }
    }

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

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

      .cargo,
      .capacity {
        label {
          max-width: 7rem;
        }
        input {
          max-width: 6rem;
          margin-right: 0.5rem;
        }
        .cargo-content {
          display: flex;
          flex-direction: column;
          gap: 4px;
          .cargo-line {
            display: flex;
            align-items: center;
            gap: 4px;
          }
        }
        .npc-crew-field {
          display: flex;
          align-items: center;
          gap: 4px;
          .npc-crew-roll {
            cursor: pointer;
            color: var(--color-text-dark-primary);
            &:hover {
              color: var(--color-text-hyperlink);
            }
          }
        }
      }

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

        label {
          min-width: 120px;
        }

        .vehicle-hp {
          display: flex;
          gap: 2px;
          align-items: center;
          .vehicle-hp-value {
            .form-fields input {
              flex: none;
              width: 50px;
              margin-left: 4px;
              font-size: calc(var(--font-size-standard) * 1.4);
            }
          }
          .vehicle-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;
          }
        }
      }
    }
  }

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

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

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

  .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.vehicle-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;
    }
  }
  .crew {
    .crew-list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      padding: 4px;
    }
    .crew-member {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 4px;
      border: 1px solid var(--color-border-dark);
      border-radius: 4px;
      background: var(--color-light-2);
      .crew-img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid var(--color-border-dark);
        cursor: pointer;
        &:hover {
          opacity: 0.8;
          box-shadow: 0 0 4px var(--color-shadow-primary);
        }
      }
      .crew-name {
        flex: 1;
        font-size: var(--font-size-small);
        cursor: pointer;
        &:hover {
          color: var(--color-text-dark-highlight);
          text-shadow: 0 0 4px var(--color-shadow-primary);
        }
      }
      .controls {
        display: flex;
        gap: 4px;
        min-width: 3rem;
        a {
          color: var(--color-text-dark-primary);
          &:hover {
            color: var(--color-text-dark-highlight);
          }
        }
        .pilot-button {
          color: var(--color-text-light-primary);
          &:hover {
            color: var(--color-text-light-highlight);
          }
        }
      }
    }
    .crew-empty {
      grid-column: 1 / -1;
      text-align: center;
      padding: 8px;
      font-style: italic;
      color: var(--color-text-dark-secondary);
    }
  }

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