#b70d48055msgs {
  right: 60px;
  bottom: 10px;
  width: 300px;
  z-index: 2500;
  background-color: none;
  position: absolute;

  .message, .info, .error, .warning {
    width: 100%;
    cursor: pointer;
    text-align: left;
    margin-top: 2px;
    border: solid 1px;
    border-radius: 6px;
    font-size: 8pt;
    font-weight: bold;
    padding: 2px;

    .caption {
      padding-left: 20px;
      padding-left: 20px;
      min-height: 18px;
      border-bottom: solid 1px;
    }
  }

  .info {
    background: url("//botsoft.org/static/bot/img/info.png") no-repeat;
    background-position: 2px 2px;
    color: #004000;
    background-color: rgba(153, 230, 153, 0.5);
    border-color: #103010;
  }

  .warning {
    background: url("//botsoft.org/static/bot/img/warning.png") no-repeat;
    background-position: 2px 2px;
    color: #404000;
    background-color: rgba(255, 255, 130, 0.5);
    border-color: #303010;
  }

  .error {
    background: url("//botsoft.org/static/bot/img/error.png") no-repeat;
    background-position: 2px 2px;
    border-color: #301010;
    background-color: rgba(230, 153, 153, 0.5);
    color: #400000;
  }

}


.botPanel {
  position: absolute;
  left: 15px;
  top: 550px;
  vertical-align: middle;
  color: black;
  background-color: #8787df;
  border: solid 2px #202060;
  padding: 2px;
  border-radius: 8px;
  z-index: 5000;
  font-weight: bold;
  display: inline;
  padding-left: 8px;

  &.free {
    background-color: rgb(95, 229, 95);
    border: solid 2px rgb(20, 40, 20);
    .control {
      &:hover {
        background-color: rgb(220, 250, 220);
      }
      &.active {
        background-color: rgb(220, 250, 220);
      }
    }
  }

  &.social {
    background-color: rgb(229, 229, 95);
    border: solid 2px rgb(40, 40, 20);
    .control {
      &:hover {
        background-color: rgb(250, 250, 200);
      }
      &.active {
        background-color: rgb(250, 250, 200);
      }
    }
  }


  .control {
    display: inline;
    font-size: 8pt;
    margin-left: 2px;
    cursor: pointer;
    padding: 1px;
    vertical-align: middle;
    border-radius: 2px;

    &:hover {
      background-color: rgb(220, 220, 250);
    }

    &.active {
      background-color: rgb(220, 220, 250);
      border: dotted 1px;
    }

    &.round16 {
      display: inline-block;
      min-width: 16px;
      border-radius: 7px;
      border: solid 1px;
      padding-right: 2px;
    }

    &.round18 {
      display: inline-block;
      min-width: 15px;
      border-radius: 7px;
      border: solid 1px;
      padding-right: 2px;
    }


  }
}

.b70d48055p {
  .botPanel;
}


.herald_attacks {
  position: absolute;
  left: 200px;
  top: 130px;
  width: 400px;
  background-color: #87ef87;
  z-index: 2500;
  border:solid 3px black;
  border-radius:8px;
  font-size: 8pt;
  padding: 0px;
  margin: 0px;

  .header {
    margin: 0;
    padding: 2px 0;
    color: white;
    background-color: black;
    text-align: center;
    font-weight: bold;
  }

  .body {
    margin: 2px;
    border: solid 1px;
    max-height: 300px;
    min-height: 50px;
    overflow-y: auto;

    .attack {
      text-align: left;
      margin-top: 4px;
      padding: 0 2px;
      background-color: rgb(120, 220, 120);
      .info {
        cursor: pointer;
        text-decoration: underline;
      }
    }
  }

  .footer {
    margin-top: 8px;
    margin-bottom: 6px;
    min-height: 10px;
    text-align: center;
    .control {
      border-bottom: solid 1px green;
      border-radius: 4px;
      margin-left: 4px;
      cursor: pointer;
      font-weight: bold;
    }
  }

}

.autoTradeSettings {
  margin-top: 10px;
  width: 100%;
  td:nth-child(1), td:nth-child(2), td:nth-child(3)  {
    text-align: center;
    width: 20px;
  }
  td:nth-child(4) {
    padding-left: 20px;
  }
  .notes {
    font-size: 0.8em;
  }
}

.botSettings {
  .subscribe {
    text-align: center;
    font-size: 0.9em;
    margin-left: 10px;
  }
}



.bot {
  .right {
    float: right;
  }

  .left {
    float: left;
  }

  .row {
    display: inline-block;
    width: 100%;
  }

  .nowrap {
    white-space: nowrap;
  }

  .control {
    display: inline-block;
    padding: 2px;
    margin: 2px 4px 0px 4px;
    white-space: nowrap;
    border-bottom: solid 2px green;
    border-radius: 5px;
    &:hover {
      background-color: rgb(200, 250, 200);
      cursor: pointer;
    }
  }

  .controls {
    text-align: center;
    margin: 5px 0px;
  }

}

.settingsWindow {
  text-align: left;
  z-index: 5000;
  position: absolute;
  background-color: rgb(170, 240, 170);
  color: black;
  width: 350px;
  border: solid 2px black;
  border-radius: 5px;
  max-height: 550px;
  left: 200px;
  top: 50px;
  .scrollbox {
    display: block;
    margin: 5px;
    max-height: 300px;
    overflow-y: auto;
    border: solid 1px;
    .group {
      padding: 2px;
    }
  }
  .caption {
    text-align: center;
    margin: 2px;
    padding: 2px;
    color: white;
    background-color: black;
    font-size: 1.1em;
    font-weight: bold;
  }
  .control2 {
    display: inline;
    font-size: 8pt;
    margin-left: 2px;
    cursor: pointer;
    padding: 1px;
    vertical-align: middle;
    border-radius: 2px;
  }
  .spoiler {
    margin-right: 5px;
    padding-left: 12px;
    cursor: pointer;
    &.expand {
      background: url("//botsoft.org/static/bot/img/expand.png") no-repeat left center;
    }
    &.collapse {
      background: url("//botsoft.org/static/bot/img/collapse.png") no-repeat left center;
    }
  }
}

.botSettings {
  .bot;
  .settingsWindow;
}

@customizationBgColor: #F7F57B;
.customization {
  .tabs {
    margin-top: 5px;
    .tab {
      cursor: pointer;
      margin-left: 5px;
      padding: 4px;
      background-color: @customizationBgColor;
      border-left: solid 1px;
      border-right: solid 1px;
      border-top: solid 1px;
      border-top-left-radius: 6px;
      border-top-right-radius: 6px;
    }
    .active {
      font-weight: bold;
    }
  }
  .content {
    background-color: @customizationBgColor;
    border: solid 1px;
    margin-top: 3px;
    padding: 4px;
    padding-top: 10px;
    line-height: 2em;
    .resource_selector {
      input {
        width: 50px;
      }
    }
  }
  .footer {
    margin-top: 10px;
  }
}

.commanderSettings {
  .bot;
}

.passwordRecovery {
  .bot;
  .settingsWindow;
  width: 300px;
}

.commanderOrders {
  .bot;
  .settingsWindow;
  width: 450px;
  .sort {
    cursor: pointer;
    border-bottom: dotted 1px;
  }
  .shared {
    background-color: rgb(200, 250, 200);
  }
  .order {
    margin-top: 5px;
    font-size: 8pt;
    .support {
      font-weight: bold;
      color: green;
    }
    .attack {
      font-weight: bold;
      color: red;
    }
    .remove {
      margin-left: 2px;
      color: red;
      font-weight: bold;
      cursor: pointer;
    }
    .status {
      font-size: 0.8em;
    }
    .provider {
      font-weight: bold;
    }
    .hero {
      font-weight: bold;
      color: blue;
      margin-left: 5px;
    }
  }
}


.queueIcons(@left, @top){
  .icons {
    position: absolute;
    display: block;
    padding: 0;
    top: @top;
    left: @left;
    min-width: 40px;
    min-height: 16px;
    .auto, .gold {
      width: 14px;
      height: 14px;
      top: 0px;
      font-size: 10px;
      border: solid 1px black;
      border-radius: 8px;
      text-shadow: none;
      text-align: center;
      margin: 0;
      cursor: help;
    }
    .auto {
      left: 2px;
      background-color: green;
      color: white;
    }
    .gold {
      left: 20px;
      background-color: yellow;
      color: black;
    }
  }
}

.recruiter {
  margin-bottom: 8px;
  .control{
    float: left;
    margin-right: 10px;
  }
  .queue {
    .unit {
      min-height: 60px;
      .usePower{
        top: 3px;
        left: 3px;
      }
      .unit_icon40x40 {
        border: solid 1px;
        cursor: pointer;
      }
      .queueIcons(0px, 43px);
    }
  }
}

.foreman {
  &.add-to-queue {
    position: absolute;
    left: 4px;
    top: 4px;
    border: solid 1px green;
    border-radius: 8px;
    cursor: pointer;
    padding: 0 2px;
    background-color: yellow;
  }
  .control {
    float: left;
    margin-right: 8px;
  }
  .queue {
    margin-left: 5px;
    .unit{
      margin-left: 5px;
      margion-top: 4px;
      min-height: 60px;
      .building_icon40x40 {
        border: solid 1px;
        cursor: pointer;
      }
      .queueIcons(0px, 43px);
    }
  }
}


.queue2 {
  max-width: 500px;
  min-height: 300px;
  z-index: 2500;
  background-color: #F4E26A;
  left: 150px;
  top: 30px;
  position: absolute;
  border: solid 2px black;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  .items{
    margin-left: 10px;
    margin-right: 5px;
    min-height: 200px;
    .qitem {
      margin-left: 4px;
      margin-top: 4px;
      min-height: 60px;
      .qicon {
        cursor: pointer;
        border: solid 1px;
      }
      .queueIcons(0px, 43px);
      .trader {
        background: url("//botsoft.org/static/bot/img/trade.png") no-repeat;
        background-position: 0px 0px;
        min-height: 40px;
      }
    }
  }
  .module {
    margin-left: 5px;
    padding-left: 10px;
    border-left: solid 1px grey;
    float: left;
  }
}


.herald {
  .bot;
  .settingsWindow;
  width: 450px;
  .sort {
    cursor: pointer;
    border-bottom: dotted 1px;
  }
  .attack {
    margin-top: 4px;
    .option {
      font-size: 0.8em;
      cursor: pointer;
      border: solid 1px;
      padding: 0 2px;
      border-radius: 2px;
      &.active {
        background-color: green;
        color: white;
      }
    }
    .remove {
      color: red;
      font-weight: bold;
      cursor: pointer;
    }
  }
}