//
// Admin
// --------------------------------------------------

#admin-menu {
  ul:nth-child(n) {
    li {
      list-style-type: none;

      > a:not(.icon-only) {
        padding-left: $sidebar-padding-horizontal + 5px + $icon-width;
        background-repeat: no-repeat;
        background-position: $sidebar-padding-horizontal center;
      }
    }
  }

  #admin-index > & {
    ul {
      margin: 0;
      padding: 0;
    }

    li {
      padding: ($sidebar-padding-vertical + 1px) ($sidebar-padding-horizontal + 3px);
    }

    a {
      display: inline-block;
      padding-left: 5px + $icon-width;
      background-position: 0 center;
    }
  }
}


//== Groups
//

table.members,
table.memberships {
  td.roles {
    width: 45%;
  }
}


//== Permissions
//

table.permissions {
  td.role {
    color: $gray-700;
    font-weight: $font-weight-normal;
    text-align: center;
    vertical-align: bottom;
  }
}


//== Workflows
//

.controller-workflows {
  table.list,
  fieldset.collapsible {
    margin-bottom: $line-height-computed;
  }
}

table.transitions {
  td.enabled {
    background: $state-success;
  }
}

#workflow_copy_form select {
  width: 200px;
}

#workflow_form table select {
  width: 90%;
  min-width: 60px;
}

table.fields_permissions {
  td.readonly {
    background: $gray-600;
  }

  td.required {
    background: $state-danger;
  }
}


//== Custom fields -> Issues -> Key values
//

#custom_field_enumerations {
  padding-left: 0;
  list-style: none;

  li {
    min-height: $input-height-base;
    padding: 1px 0;

    .sort-handle,
    label {
      line-height: $input-height-base;
    }

    label input {
      vertical-align: baseline;
    }
  }
}


//== Settings labels
//

fieldset.settings label {
  display: block;
}


//== Settings -> Notifications
//

fieldset#notified_events {
  .parent {
    padding-left: 20px;
  }
}


//== Settings -> Repositories
//

.settings.enabled_scm {
  table {
    width: 100%;
  }

  td.scm_name {
    font-weight: $font-weight-bold;
  }
}
