<form class="{{cssClass}} flexcol-coc7 {{#if permissionLimited}}permission-limited{{/if}}" autocomplete="off" data-actor-id="{{actor.id}}" {{#if tokenId}}data-token-id="{{tokenId}}" {{/if}}>
  <div class="token-extras">
    {{#if canDragToken}}
      <div draggable="true" class="token-drag-handle" title="{{ localize 'CoC7.ActorIsTokenHint'}}"><i class="fas fa-user-circle"></i></div>
    {{/if}}
    {{#if linkedActor}}
      <div title="{{ localize 'CoC7.ActorDataLinked'}}"><i class="fas fa-link"></i></div>
    {{else}}
      <div title="{{ localize 'CoC7.ActorDataNotLinked'}}"><i class="fas fa-unlink"></i></div>
    {{/if}}
    {{#if isToken}}
      <div title="{{ localize 'CoC7.ActorIsSyntheticActor'}}"><i class="game-icon game-icon-backup"></i></div>
    {{/if}}
  </div>
  {{!-- Sheet Header --}}
  <header class="sheet-header flexrow-coc7" style="flex: 0 0 auto;padding-bottom: 10px;border-bottom: 2px groove;">
    {{#unless permissionLimited}}
      <div class="flexcol-coc7">
        <div class="infos flexrow-coc7" style="flex: 0 0 auto;display: flex;">
          {{#if isCreature}}
            <div class="flexrow-coc7 flex1">
              <label>{{localize 'CoC7.Name'}}</label>
              <input name="name" type="text" value="{{actor.name}}" placeholder="{{localize 'CoC7.Name'}}" />
            </div>
            <div class="flexrow-coc7 flex1">
              <label>{{localize 'CoC7.Type'}}</label>
              <input name="system.infos.type" type="text" value="{{data.system.infos.type}}" />
            </div>
          {{else}}
            <div class="flexrow-coc7 flex2">
              <label>{{localize 'CoC7.Name'}}</label>
              <input name="name" type="text" value="{{actor.name}}" placeholder="{{localize 'CoC7.Name'}}" />
            </div>
            <div class="flexrow-coc7 flex2">
              <label>{{localize 'CoC7.Occupation'}}</label>
              <input name="system.infos.occupation" type="text" value="{{data.system.infos.occupation}}" />
            </div>
            {{#if pulpRuleOrganization}}
              <div class="flexrow-coc7 flex2">
                <label>{{localize 'CoC7.Organization'}}</label>
                <input name="system.infos.organization" type="text" value="{{data.system.infos.organization}}" />
              </div>
            {{/if}}
            <div class="flexrow-coc7 flex1">
              <label>{{localize 'CoC7.Age'}}</label>
              <input name="system.infos.age" type="text" value="{{data.system.infos.age}}" />
            </div>
          {{/if}}
        </div>

        <div class="characteritics flexrow-coc7" style="flex: 0 0 auto;display: flex;">
          {{#each data.system.characteristics as |characteristic key|}}
            {{#if ../data.system.flags.locked}}
              {{#if characteristic.display}}
                <div class="flexcol-coc7 char-box" style=" margin-right: 2px;" data-characteristic="{{key}}">
                  <div class="characteristic-label rollable" draggable="true" style="text-align: left;">
                    <label data-context-menu="skill-roll" data-target-type="characteristic">{{localize characteristic.short}}</label>
                  </div>
                  <div style="text-align:center;border: 1px groove;margin-right: 2px;">
                    {{#if characteristic.editable}}
                      <input class="characteristic-score" style="text-align: center;" type="text" name="system.characteristics.{{key}}.value" value="{{characteristic.value}}" data-dtype="Number">
                    {{else}}
                      <input class="characteristic-score read-only" style="text-align: center;" type="text" name="system.characteristics.{{key}}.value" value="{{characteristic.value}}" data-dtype="Number" {{#if ../data.system.flags.locked}}readonly{{/if}}>
                    {{/if}}
                  </div>
                </div>
              {{/if}}
            {{else}}
              <div class="flexcol-coc7" style=" margin-right: 2px;" data-characteristic="{{key}}">
                <div class="characteristic-label rollable" draggable="true" style="text-align: left;">
                  <label>{{localize characteristic.short}}</label>
                </div>
                {{#if ../displayFormula}}
                  <div style="text-align:center;border: 1px groove;margin-right: 2px;">
                    <input class="characteristic-formula" style="text-align: center;" type="text" name="system.characteristics.{{key}}.formula" value="{{characteristic.formula}}">
                  </div>
                {{else}}
                  <div style="text-align:center;border: 1px groove;margin-right: 2px;">
                    {{#if characteristic.editable}}
                      <input class="characteristic-score" style="text-align: center;" type="text" name="system.characteristics.{{key}}.value" value="{{characteristic.value}}" data-dtype="Number">
                    {{else}}
                      <input class="characteristic-score {{#if ../data.system.flags.locked}}read-only{{/if}}" style="text-align: center;" type="text" name="system.characteristics.{{key}}.value" value="{{characteristic.value}}" data-dtype="Number" {{#if ../data.system.flags.locked}}readonly{{/if}}>
                    {{/if}}
                  </div>
                {{/if}}
              </div>
            {{/if}}
          {{/each}}
        </div>

        <div class="attribute-list flexrow-coc7" style="display: flex;">
          <div class="flexrow-coc7 flex1 attribute" style="display: flex;" data-attrib="hp">
            <label class="attribute-label">{{localize 'CoC7.HP'}} :</label>
            <input class="attribute-value" type="text" name="system.attribs.hp.value" value="{{data.system.attribs.hp.value}}" data-dtype="Number" />
            <span style="flex: none;font-size: 14px;line-height:20px;">/</span>
            {{#if data.system.attribs.hp.auto}}
              <input class="attribute-max" type="text" name="system.attribs.hp.max" value="{{data.system.attribs.hp.max}}" data-dtype="Number" readonly />
            {{else}}
              <input class="attribute-max {{#if data.system.flags.locked}}read-only{{/if}}" type="text" name="system.attribs.hp.max" value="{{data.system.attribs.hp.max}}" data-dtype="Number" {{#if data.system.flags.locked}}readonly{{/if}}>
            {{/if}}

            {{#unless data.system.flags.locked}}
              <div class="auto-toggle {{#if data.system.attribs.hp.auto}}auto-on{{else}}auto-off{{/if}}"><i class="fas fa-cogs" style="padding-top: 4px;"></i></div>
            {{/unless}}
          </div>
          {{#if data.system.flags.locked}}
            <div class="flexrow-coc7 flex1 attribute" data-attrib="mp">
              {{#if hasMp}}
                <label class="attribute-label">{{localize 'CoC7.MP'}} :</label>
                <input class="attribute-value" type="text" name="system.attribs.mp.value" value="{{data.system.attribs.mp.value}}" data-dtype="Number" />
                <span style="flex: none;font-size: 14px;line-height:20px;">/</span>
                {{#if data.system.attribs.mp.auto}}
                  <input class="attribute-max" type="text" name="system.attribs.mp.max" value="{{data.system.attribs.mp.max}}" data-dtype="Number" readonly />
                {{else}}
                  <input class="attribute-max {{#if data.system.flags.locked}}read-only{{/if}}" type="text" name="system.attribs.mp.max" value="{{data.system.attribs.mp.max}}" data-dtype="Number" {{#if data.system.flags.locked}}readonly{{/if}}>
                {{/if}}
              {{/if}}
            </div>

            <div class="flexrow-coc7 flex1 attribute" data-attrib="san">
              {{#if hasSan}}
                <label class="attribute-label rollable" draggable="true" data-context-menu="san-roll" data-target-type="attribute">{{localize 'CoC7.SAN'}} :</label>
                <input class="attribute-value" type="text" name="system.attribs.san.value" value="{{data.system.attribs.san.value}}" data-dtype="Number" />
                <span style="flex: none;font-size: 14px;line-height:20px;">/</span>
                {{#if data.system.attribs.san.auto}}
                  <input class="attribute-max" type="text" name="system.attribs.san.max" value="{{data.system.attribs.san.max}}" data-dtype="Number" readonly />
                {{else}}
                  <input class="attribute-max {{#if data.system.flags.locked}}read-only{{/if}}" type="text" name="system.attribs.san.max" value="{{data.system.attribs.san.max}}" data-dtype="Number" {{#if data.system.flags.locked}}readonly{{/if}}>
                {{/if}}
              {{/if}}
            </div>

            <div class="flexrow-coc7 flex1 attribute" data-attrib="lck">
              {{#if hasLuck}}
                <label class="attribute-label rollable" draggable="true">{{localize 'CoC7.Luck'}} :</label>
                <input class="attribute-value single read-only" type="text" name="system.attribs.lck.value" value="{{data.system.attribs.lck.value}}" data-dtype="Number" readonly>
              {{/if}}
            </div>
          {{else}}
            <div class="flexrow-coc7 flex1 attribute" data-attrib="mp">
              <label class="attribute-label" draggable="true">{{localize 'CoC7.MP'}} :</label>
              <input class="attribute-value" type="text" name="system.attribs.mp.value" value="{{data.system.attribs.mp.value}}" data-dtype="Number" />
              <span style="flex: none;font-size: 14px;line-height:20px;">/</span>
              {{#if data.system.attribs.mp.auto}}
                <input class="attribute-max" type="text" name="system.attribs.mp.max" value="{{data.system.attribs.mp.max}}" data-dtype="Number" readonly />
              {{else}}
                <input class="attribute-max {{#if data.system.flags.locked}}read-only{{/if}}" type="text" name="system.attribs.mp.max" value="{{data.system.attribs.mp.max}}" data-dtype="Number" {{#if data.system.flags.locked}}readonly{{/if}}>
              {{/if}}
              <div class="auto-toggle {{#if data.system.attribs.mp.auto}}auto-on{{else}}auto-off{{/if}}"><i class="fas fa-cogs" style="padding-top: 4px;"></i></div>
            </div>

            <div class="flexrow-coc7 flex1 attribute" data-attrib="san">
              <label class="attribute-label rollable">{{localize 'CoC7.SAN'}} :</label>
              <input class="attribute-value" type="text" name="system.attribs.san.value" value="{{data.system.attribs.san.value}}" data-dtype="Number" />
              <span style="flex: none;font-size: 14px;line-height:20px;">/</span>
              {{#if data.system.attribs.san.auto}}
                <input class="attribute-max" type="text" name="system.attribs.san.max" value="{{data.system.attribs.san.max}}" data-dtype="Number" readonly />
              {{else}}
                <input class="attribute-max {{#if data.system.flags.locked}}read-only{{/if}}" type="text" name="system.attribs.san.max" value="{{data.system.attribs.san.max}}" data-dtype="Number" {{#if data.system.flags.locked}}readonly{{/if}}>
              {{/if}}
              <div class="auto-toggle {{#if data.system.attribs.san.auto}}auto-on{{else}}auto-off{{/if}}"><i class="fas fa-cogs" style="padding-top: 4px;"></i></div>
            </div>

            <div class="flexrow-coc7 flex1 attribute" data-attrib="lck">
              <label class="attribute-label rollable">{{localize 'CoC7.Luck'}} :</label>
              <input class="attribute-value single read-only" type="text" name="system.attribs.lck.value" value="{{data.system.attribs.lck.value}}" data-dtype="Number">
            </div>
          {{/if}}
        </div>

        <div class="attribute-list flexrow-coc7" style="flex: 0 0 auto;">
          <div style="flex: 2">
            <div class="flexrow-coc7 flex1 attribute" data-attrib="mov">
              <label>{{localize 'CoC7.Mov'}} :</label>
              {{#if data.system.attribs.mov.auto}}
                <span class="attribute-value single" type="text" style="line-height: 22px;flex: 0 0 1.54rem;"> {{data.system.attribs.mov.value}} </span>
              {{else}}
                <input class="attribute-value single {{#if data.system.flags.locked}}read-only{{/if}}" style="flex: 0 0 1.54rem;" type="text" name="system.attribs.mov.value" value="{{data.system.attribs.mov.value}}" data-dtype="Number" {{#if data.system.flags.locked}}readonly{{/if}}>
              {{/if}}

              {{#unless data.system.flags.locked}}
                <select class="attribute-dtype" name="system.attribs.mov.type" style="height: auto;">
                  {{selectOptions movementTypes selected=data.system.attribs.mov.type localize=true valueAttr="id" labelAttr="name"}}
                </select>
                <div class="auto-toggle {{#if data.system.attribs.mov.auto}}auto-on{{else}}auto-off{{/if}}" style="flex: 0 0 1.2rem"><i class="fas fa-cogs" style="padding-top: 4px;"></i></div>
              {{else}}
                <span class="attribute-value single" type="text" style="line-height: 22px;">{{localize (selectValue movementTypes data.system.attribs.mov.type 'id' 'name')}}</span>
              {{/unless}}
            </div>
            {{#each data.system.special.movement as |movement key|}}
              <div class="flexrow-coc7 flex1 attribute">
                <label>{{localize 'CoC7.Mov'}} :</label>
                <input class="attribute-value single {{#if ../data.system.flags.locked}}read-only{{/if}}" style="flex: 0 0 1.54rem;" type="text" name="system.special.movement.{{key}}.value" value="{{movement.value}}" data-dtype="Number" {{#if ../data.system.flags.locked}}readonly{{/if}}>
                {{#unless ../data.system.flags.locked}}
                  <select class="attribute-dtype" name="system.special.movement.{{key}}.type" style="height: auto;">
                    {{selectOptions ../movementTypes selected=movement.type localize=true valueAttr="id" labelAttr="name"}}
                  </select>
                  <div class="remove-movement" style="padding-left: 4px;flex: 0 0 1.2rem" data-index="{{key}}"><i class="fas fa-minus-circle" style="padding-top: 0.3rem;"></i></div>
                {{else}}
                  <span class="attribute-value single" type="text" style="line-height: 22px;">{{localize (selectValue ../movementTypes movement.type 'id' 'name')}}</span>
                {{/unless}}
              </div>
            {{/each}}
            {{#unless data.system.flags.locked}}
              <div class="flexrow-coc7 flex1 attribute">
                <label>{{localize 'CoC7.Mov'}} :</label>
                <div class="add-movement"><i class="fas fa-plus-circle" style="padding-top: 0.3rem;"></i></div>
              </div>
            {{/unless}}
          </div>
          <div class="flexrow-coc7 flex1 attribute" data-attrib="db" data-roll-formula="{{data.system.attribs.db.value}}">
            <label class="attribute-label rollable">{{localize 'CoC7.DB'}} :</label>

            {{#if data.system.attribs.db.auto}}
              <span class="attribute-value single" type="text" style="line-height: 22px;"> {{data.system.attribs.db.value}} </span>
            {{else}}
              <input class="attribute-value single {{#if data.system.flags.locked}}read-only{{/if}}" type="text" name="system.attribs.db.value" value="{{data.system.attribs.db.value}}" data-dtype="String" {{#if data.system.flags.locked}}readonly{{/if}}>
            {{/if}}

            {{#unless data.system.flags.locked}}
              <div class="auto-toggle {{#if data.system.attribs.db.auto}}auto-on{{else}}auto-off{{/if}}"><i class="fas fa-cogs" style="padding-top: 4px;"></i></div>
            {{/unless}}
          </div>
          <div class="flexrow-coc7 flex1 attribute" data-attrib="build">
            <label>{{localize 'CoC7.Build'}} :</label>
            {{#if data.system.attribs.build.auto}}
              <span class="attribute-value single" type="text" style="line-height: 22px;"> {{data.system.attribs.build.value}} </span>
            {{else}}
              <input class="attribute-value single {{#if data.system.flags.locked}}read-only{{/if}}" type="text" name="system.attribs.build.value" value="{{data.system.attribs.build.value}}" data-dtype="Number" {{#if data.system.flags.locked}}readonly{{/if}}>
            {{/if}}

            {{#unless data.system.flags.locked}}
              <div class="auto-toggle {{#if data.system.attribs.build.auto}}auto-on{{else}}auto-off{{/if}}"><i class="fas fa-cogs" style="padding-top: 4px;"></i></div>
            {{/unless}}
          </div>
          <div class="flexrow-coc7 flex1 attribute" data-attrib="armor">
            <label>{{localize 'CoC7.Armor'}} :</label>
            <input class="attribute-value single {{#if data.system.flags.locked}}read-only{{/if}}" type="text" name="system.attribs.armor.value" value="{{data.system.attribs.armor.value}}" data-dtype="Number" {{#if data.system.flags.locked}}readonly{{/if}}>
          </div>
        </div>

        <div class="condition-monitors flexrow-coc7">
          {{#if isDying}}
            <a class='dying-check' style="text-align: center;font-size: 20px;" title="{{localize 'CoC7.DyingCheck'}}"><i class="fas fa-dice-d20"></i></a>
          {{else}}
            <a class="condition-monitor {{#if data.system.conditions.prone.value}}status-on{{/if}}" title="{{localize 'CoC7.Prone'}}" data-condition='prone'> <i class="game-icon game-icon-falling"></i></a>
            <a class="condition-monitor {{#if data.system.conditions.unconscious.value}}status-on{{/if}}" title="{{localize 'CoC7.Unconsious'}}" data-condition="unconscious"> <i class="game-icon game-icon-knocked-out-stars"></i></a>
            <a class="condition-monitor {{#if data.system.conditions.criticalWounds.value}}status-on{{/if}}" title="{{localize 'CoC7.CriticalWounds'}}" data-condition="criticalWounds"> <i class="fas fa-user-injured"></i></a>
            <a class="condition-monitor {{#if data.system.conditions.dying.value}}status-on{{/if}}" title="{{localize 'CoC7.Dying'}}" data-condition="dying"> <i class="fas fa-heartbeat"></i></a>

            <a class="condition-monitor {{#if data.system.conditions.tempoInsane.value}}status-on{{/if}}" title="{{localize 'CoC7.BoutOfMadness'}}{{#if actor.getTempoInsaneDurationText}}: {{actor.getTempoInsaneDurationText}}{{/if}}" data-condition="tempoInsane"><i class="game-icon game-icon-hanging-spider"></i></a>
            <a class="condition-monitor {{#if data.system.conditions.indefInsane.value}}status-on{{/if}}" title="{{#if data.system.conditions.indefInsane.value}}{{localize 'CoC7.UnderlyingInsanity'}}{{else}}{{localize 'CoC7.IndefiniteInsanity'}}{{/if}}" data-condition="indefInsane"><i class="game-icon game-icon-tentacles-skull"></i></a>
            <div class="flex1"></div>

            <div class="san-check flexrow-coc7" style="flex: 8; font-size: 12px;" draggable="true" data-context-menu="san-loss-roll" data-target-type="san-check">
              <label class="roll-san rollable" style="text-align: right;" title="{{ localize 'CoC7.SanRollHint'}}">{{ localize "CoC7.SANLoss" }} :</label>
              {{#if data.system.flags.locked}}
                <span class="san-value pass flex1" style="line-height: 22px;padding-left: 2px; text-align: right;" placeholder="{{localize 'CoC7.SANLossPass'}}">{{data.system.special.sanLoss.checkPassed}}</span>
                <span class="flex0" style="line-height: 22px;">/</span>
                <span class="san-value failed flex1" style="line-height: 22px;padding-left: 2px;" placeholder="{{localize 'CoC7.SANLossFail'}}">{{data.system.special.sanLoss.checkFailled}}</span>
              {{else}}
                <input class="san-value flex1" style="text-align: right;" type="text" name="system.special.sanLoss.checkPassed" value="{{data.system.special.sanLoss.checkPassed}}" data-dtype="String" placeholder="{{localize 'CoC7.SANLossPass'}}">
                <span class="flex0" style="line-height: 22px;">/</span>
                <input class="san-value flex1" type="text" name="system.special.sanLoss.checkFailled" value="{{data.system.special.sanLoss.checkFailled}}" data-dtype="String" placeholder="{{localize 'CoC7.SANLossFail'}}">
              {{/if}}
            </div>
            <div class="flex1"></div>

            <div class="flexrow-coc7 sheet-controls" style="flex: 0 0 96px;align-content: flex-start;">
              {{#if allowFormula}}
                {{#if data.system.flags.locked}}
                  <div style="flex: 0 0 32px;"></div>
                {{else}}
                  {{#if displayFormula}}
                    <div style="flex: 0 0 32px;"></div>
                  {{else}}
                    <a class="roll-characteritics" style="flex: 0 0 16px;color: darkred;" data-html="true" title="{{localize 'CoC7.NpcRollCharacteristics'}}"> <i class="fas fa-dice"></i></a>
                    <a class="average-characteritics" style="flex: 0 0 16px;color: darkred;" title="{{localize 'CoC7.NpcAvarageCharacteristics'}}"> <i class="fas fa-balance-scale"></i></a>
                  {{/if}}
                {{/if}}
              {{else}}
                <div style="flex: 0 0 16px;"></div>
              {{/if}}
              {{#if data.system.flags.locked}}
                <a class="lock" style="flex: 0 0 32px;align-content: flex-start;" title="{{localize 'CoC7.UnlockActor'}}" data-locked="true"> <i class="fas fa-lock"></i></a>
              {{else}}
                <a class="lock" style="flex: 0 0 16px;" title="{{localize 'CoC7.LockActor'}}" data-locked="false"> <i class="fas fa-lock-open"></i></a>
                {{#if allowFormula}}
                  {{#if displayFormula}}
                    <a class="formula" style="flex: 0 0 16px;" title="{{localize 'CoC7.NpcCharacteristicsValues'}}" data-locked="true"> <i class="fas fa-user-edit"></i></a>
                  {{else}}
                    <a class="formula" style="flex: 0 0 16px;" title="{{localize 'CoC7.NpcCharacteristicsFormula'}}" data-locked="false"> <i class="fas fa-square-root-alt"></i></a>
                  {{/if}}
                {{/if}}
              {{/if}}
            </div>
          {{/if}}
        </div>
      </div>
    {{/unless}}
    {{#if isDead}}
      <div class="condition-monitor {{#if data.system.status.dead.value}}status-on{{/if}}" data-condition="dead" style="flex: 0 0 100px;margin: 6px;">
        <i style="font-size: 100px;color: darkred;line-height: 100px;" class="game-icon game-icon-tombstone"></i>
      </div>
    {{else}}
      {{#if isDying}}
        <div class="condition-monitor {{#if data.system.status.dying.value}}status-on{{/if}}" data-condition="dying" style="flex: 0 0 100px;margin: 6px;">
          <i style="font-size: 100px;color: darkred;line-height: 100px;" class="fas fa-heartbeat"></i>
        </div>
      {{else}}
        <img class="profile-img" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />
      {{/if}}
    {{/if}}
  </header>

  {{!-- Sheet Body --}}
  {{#unless permissionLimited}}
    <section class="sheet-body">
      <div class="tab">

        <section class="sheet-section">
          <div class="section-header flexrow-coc7" data-pannel="skills">
            <h3 class="flex1">{{localize 'CoC7.Skills'}}</h3>
            {{#unless data.system.flags.locked}}
              <div style="flex: 0 0 14px;">
                <a class="add-item" title="{{localize 'CoC7.AddSkill'}}" data-type="skill"><i class="fas fa-plus-circle"></i></a>
              </div>
            {{/unless}}
          </div>
          <div class="pannel skills expanded" style="padding-top: 1px;border-bottom: 2px groove;">
            {{> "systems/CoC7/templates/actors/parts/npc-skills.html"}}
          </div>
        </section>

        <section class="sheet-section">
          <div class="section-header flexrow-coc7" data-pannel="combat">
            <h3 class="flex1">{{localize 'CoC7.Combat'}}</h3>
            {{#unless data.system.flags.locked}}
              <div style="flex: 0 0 14px;">
                <a class="add-item" title="{{localize 'CoC7.AddWeapon'}}" data-type="weapon" data-melee="true"><i class="fas fa-plus-circle"></i></a>
              </div>
            {{/unless}}
          </div>
          <div class="pannel combat expanded" style="padding-top: 1px;border-bottom: 2px groove;">
            <div class="flexrow-coc7" style="border-bottom: 1px groove;">
              <div class="flexrow-coc7" style="flex: 0 0 66%;flex-wrap: wrap;">&nbsp;</div>
              <div class="flexrow-coc7" style="flex: 0 0 33%;flex-wrap: wrap;border-left: 1px groove;">
                <h4 style="height:18px;padding: 1px 0 1px 2px;margin: 0;overflow: hidden;">{{localize 'CoC7.AttacksPerRound'}} :</h4>
                {{#if data.system.flags.locked}}
                  <div style="flex: 0 0 25px;height: fit-content;padding: 0 2px;text-align: center;">{{data.system.special.attacksPerRound}}</div>
                {{else}}
                  <input style="flex: 0 0 25px;height: fit-content;padding: 0 2px;text-align: center;" type="text" name="system.special.attacksPerRound" value="{{data.system.special.attacksPerRound}}" data-dtype="Number">
                {{/if}}
              </div>
            </div>
            {{> "systems/CoC7/templates/actors/parts/npc-combat.html"}}
          </div>
        </section>

        {{#if hasInventory}}
          <section class="sheet-section">
            <div class="section-header flexrow-coc7" data-pannel="inventory">
              <h3 class="flex1">{{localize 'CoC7.Inventory'}}</h3>
            </div>
            <div class="inventory flexrow-coc7 pannel expanded">
              {{> "systems/CoC7/templates/actors/parts/actor-inventory-items.html"}}
            </div>
          </section>
        {{/if}}

        <section class="sheet-section">
          <div class="section-header flexrow-coc7" data-pannel="description">
            <h3 class="flex1">{{localize 'CoC7.Notes'}} </h3>
          </div>
          <div class="description pannel expanded resizededitor">
            {{editor enrichedBiographyPersonalDescription target="system.biography.personalDescription.value" engine="prosemirror" button=true owner=owner editable=editable}}
          </div>
        </section>

        {{#if macros.length}}
          <section class="sheet-section">
            <div class="section-header flexrow-coc7" data-pannel="macros">
              <h3 class="flex1">{{localize 'DOCUMENT.Macros'}}</h3>
            </div>
            <div class="macros flexcol-coc7 pannel expanded" style="padding: 0 0.2em;">
              {{#each macros as |macro key|}}
                <div class="flexrow">
                  <div class="macro-click execute-macro" data-uuid="{{macro.uuid}}">{{macro.name}}</div>
                  <div class="macro-click remove-macro" style="flex: 0 0 auto" data-index="{{key}}"><i class="fas fa-trash"></i></div>
                </div>
              {{/each}}
            </div>
          </section>
        {{/if}}

        <section class="sheet-section">
          <div class="section-header flexrow-coc7" data-pannel="effects">
            <h3 class="flex1">{{localize 'CoC7.Effects'}} <i class="game-icon game-icon-aura"></i></h3>
          </div>
          <div class="effects flexrow-coc7 pannel">
            {{> "systems/CoC7/templates/common/active-effects.hbs"}}
          </div>
        </section>

        {{#if isKeeper}}
          <section class="sheet-section">
            <div class="section-header flexrow-coc7" data-pannel="keeper">
              <h3 class="flex1 keeper-only-tab">{{localize 'CoC7.GmNotes'}} <i class="game-icon game-icon-tentacles-skull"></i></h3>
            </div>
            <div class="keeper pannel resizededitor">
              {{editor enrichedDescriptionKeeper target="system.description.keeper" engine="prosemirror" button=true owner=owner editable=editable}}
              {{#if hasConditions}}
                <div><a class="clear_conditions button">{{localize 'CoC7.ClearAllConditions'}}</a></div>
              {{/if}}
            </div>
          </section>
        {{/if}}
      </div>
    </section>
  {{/unless}}
</form>
