.dsa41.dialog.battle {

  section[data-application-part="form"] {

    display: grid;
    height: 100%;

    grid-template-columns: 1fr 1fr;
    grid-template-rows: 32px 1fr 32px;
    gap: 8px;
    grid-template-areas: "presets presets" "offense defense" "summary summary";

    .presets {
      grid-area: presets;

      label {
        display: flex;
        flex-direction: row;
        height: 32px;
        justify-content: center;
        gap: 0 8px;

        span {
          height: 32px;
          line-height: 32px;
          vertical-align: middle;
          flex: 0;
        }

        select {
          flex: 0;
          width: 180px;
        }

        button {
          height: 32px;
          flex: 0;
        }

      }
    }

    .offense-character {
      grid-area: offense;
    }

    .defense-character {
      grid-area: defense;
    }

    .summary {
      grid-area: summary;
    }

    .scroll-y {
      overflow: hidden;
      overflow-y: auto;
      height: calc(3 * (32px + 8px))
    }

    .actor {
      height: 32px;
      margin-bottom: 8px;
      display: grid;
      grid-template-columns: 32px 1fr;

      img {
        width: 32px;
        height: 32px;
        border-radius: 4px;
        background-color: rgba(0, 0, 0, 0.5);
        border: 1px inset;
      }

      span {
        height: 32px;
        line-height: 32px;
        vertical-align: middle;
      }

      &.selected {
        background-color: rgba(255, 140, 0, 0.2);
        border: 1px solid orange;
        border-radius: 4px;
      }

    }

    span.dummylabel {
      height: 16px;
      line-height: 16px;
      display: block;
    }

    .attributes {
      display: grid;
      grid-template-columns: repeat(8, 1fr);
      height: 48px;

      .attribut {
        label {
          span {
            display: block;
            height: 16px;
            line-height: 16px;
            vertical-align: middle;
            width: 100%;
            text-align: center;
          }

          input {
            height: 32px;
            width: 100%;
          }

          output {
            height: 32px;
            width: 100%;
            line-height: 32px;
            vertical-align: middle;
            display: block;
            padding: 0 8px;
            border: 1px inset;
            border-radius: 4px;
            box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
          }
        }
      }

    }

    .talent {
      display: grid;
      grid-template-columns: 1fr 32px 32px 32px 32px;
      height: 48px;

      label {

        span {
          display: block;
          height: 16px;
          line-height: 16px;
          vertical-align: middle;
          text-align: center;
          width: 100%;
        }

        input {
          height: 32px;
          width: 100%;

          &.attrib {
            padding: 0;
            text-align: center;
          }
        }

      }
    }

    .summary {

      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-areas: "offense buttons defense";

      button {
        grid-area: buttons;
      }

      .offenseActorSave {
        grid-area: offense;

        input {
          position: relative;
          top: 2px;
        }
      }

      .defenseActorSave {
        grid-area: defense;
        justify-self: end;

        input {
          position: relative;
          top: 2px;
        }
      }

    }

  }


}