/* =Wizard css
-------------------------------------------------------------- */

.wizard {
  display: inline-block;
  > ul {
    position: relative;
    display: table;
    width: 100%;
    list-style: none;
    padding: 0;
    @media (max-width: $screen-xs-max) {
      margin: 0;
    }
    > li {
      display: table-cell;
      width: 1%;
      width: 36px;
      text-align: center;
      @media (max-width: $screen-xs-max) {
        width: 26px;
      }
      a {
        position: relative;
        cursor: default;
        display: block;
        opacity: 1;
        color: #666;
        -moz-opacity: 1;
        text-decoration: none;
        padding-right: 8px;
        &:before {
          position: absolute;
          z-index: 4;
          top: 14px;
          left: 0;
          width: 100%;
          height: 3px;
          content: '';
          background: #ccc;
          @media (max-width: $screen-xs-max) {
            top: 12px;
          }
        }
        &.disabled .wizard-step {
          background: #ccc;
        }
        .wizard-step {
          font-size: 16px;
          line-height: 36px;
          position: relative;
          z-index: 5;
          display: block;
          width: 36px;
          height: 36px;
          margin: 0 auto 5px;
          cursor: default;
          text-align: center;
          color: #fafafa;
          border-radius: 100px;
          background: #ccc;
          @media (max-width: $screen-xs-max) {
            width: 26px;
            height: 26px;
            line-height: 26px;
            font-size: 14px;
          }
        }
      }
      &:first-child a:before {
        left: 50%;
      }
      &:last-child a:before {
        right: 50%;
        left: auto;
        width: 50%;
      }
      &.enabled a .wizard-step {
        background: $brand-primary;
      }
    }
    > li:last-child a {
      padding-right: 0;
    }
  }
}

.msgBox {
  display: none;
}
.loader {
  display: none;
}
.actionBar {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 20px 0 0;
  border-top: #ddd solid 1px;
}
.actionBar a.btn {
  float: right;
  margin-left: 10px;
}

#project-wizard { // applies to only adding a new project
  .content-single {
    position: relative;
    width: 100%;
  }
  #org-wrapper {
    margin-top: 16px;
  }
  .panel {
    .panel-buttons { // buttons at bottom of panels containing forms
      text-align: right;
      .btn {
        min-width: 120px;
      }
      .btn-link {
        min-width: 60px;
      }
      .btn-group {
        @media (max-width: $screen-xs-max) {
          width: 100%;
          .btn {
            max-width: 50%;
            min-width: 50% !important;
          }
        }
      }
    }
  }
  &.map { // keep full layout for map extents
    .content-single {
      position: absolute;
      @media (max-width: $screen-sm-max) {
        position: relative;
      }
    }
  }
}

.btn-group.btn-reverse {
  > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }
  > .btn:last-child:not(:first-child), > .dropdown-toggle:not(:first-child) {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .btn + .btn {
    margin-left: 0;
  }
}

